recce-nightly 1.11.0.20250707a0__py3-none-any.whl → 1.12.0.20250709__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of recce-nightly might be problematic. Click here for more details.

Files changed (98) hide show
  1. recce/VERSION +1 -1
  2. recce/adapter/dbt_adapter/__init__.py +7 -3
  3. recce/artifact.py +2 -2
  4. recce/cli.py +84 -67
  5. recce/core.py +1 -1
  6. recce/data/404.html +1 -1
  7. recce/data/_next/static/Sa2q8PU_U99P0fxGYpSh3/_buildManifest.js +1 -0
  8. recce/data/_next/static/chunks/12f8fac4-5a9b712765c49490.js +1 -0
  9. recce/data/_next/static/chunks/1951f239-0241698734729feb.js +1 -0
  10. recce/data/_next/static/chunks/1fc34c47-82fea75ece36aeed.js +1 -0
  11. recce/data/_next/static/chunks/33b75b42-057fbed319bd1e6b.js +1 -0
  12. recce/data/_next/static/chunks/36904ce4-556a624bb4305989.js +1 -0
  13. recce/data/_next/static/chunks/36f8eb77-7957147ce71df457.js +1 -0
  14. recce/data/_next/static/chunks/3739d5bc-1bdeed94256dfc05.js +1 -0
  15. recce/data/_next/static/chunks/3a92ee20-e14378a23f57b1c3.js +1 -0
  16. recce/data/_next/static/chunks/3f731c04-d29a1970ca672613.js +1 -0
  17. recce/data/_next/static/chunks/4352e4e9-b354cf97a03b69cf.js +1 -0
  18. recce/data/_next/static/chunks/52624530-92723350d55063d5.js +1 -0
  19. recce/data/_next/static/chunks/5398b9db-a2a70e696dd5f7eb.js +1 -0
  20. recce/data/_next/static/chunks/583-0138cef66612d810.js +1 -0
  21. recce/data/_next/static/chunks/63d31579-c7b10c9ffd8cfa20.js +1 -0
  22. recce/data/_next/static/chunks/6dc81886-9e4dc40a4c3662f1.js +1 -0
  23. recce/data/_next/static/chunks/71-a829703f4f507654.js +10 -0
  24. recce/data/_next/static/chunks/711-61299a23b04d7eb9.js +30 -0
  25. recce/data/_next/static/chunks/730580eb-2f3a1f2509dc4e9c.js +1 -0
  26. recce/data/_next/static/chunks/88-b883a8f747db27b5.js +1 -0
  27. recce/data/_next/static/chunks/8d700b6a.e1488f49ec200d5b.js +1 -0
  28. recce/data/_next/static/chunks/ae307f12-b81cf34ec2084e0b.js +1 -0
  29. recce/data/_next/static/chunks/app/_not-found/page-f3d6d0887e2475a0.js +1 -0
  30. recce/data/_next/static/chunks/app/layout-500042ac66908cd1.js +1 -0
  31. recce/data/_next/static/chunks/app/page-c7841e2372259324.js +1 -0
  32. recce/data/_next/static/chunks/c99dd624-aef946c4a087bc18.js +1 -0
  33. recce/data/_next/static/chunks/e308e2c0-3ab2fec387e5a04d.js +60 -0
  34. recce/data/_next/static/chunks/f1534c21-7c58efd12c5442ed.js +1 -0
  35. recce/data/_next/static/chunks/f81b4f07-a63a38c7ac3e2a77.js +1 -0
  36. recce/data/_next/static/chunks/framework-df522b11ac1052ec.js +1 -0
  37. recce/data/_next/static/chunks/main-6299a1c4ed293833.js +1 -0
  38. recce/data/_next/static/chunks/main-app-c7ffd6202921169c.js +1 -0
  39. recce/data/_next/static/chunks/pages/_app-9fd2d2c392ecd7a0.js +1 -0
  40. recce/data/_next/static/chunks/pages/_error-af159da794d1fa6d.js +1 -0
  41. recce/data/_next/static/chunks/webpack-e8321d14a0e3d7fd.js +1 -0
  42. recce/data/_next/static/css/abdb9814a3dd18bb.css +1 -0
  43. recce/data/_next/static/css/c21263c1520b615b.css +1 -0
  44. recce/data/_next/static/css/d4ebbb3f53edc04c.css +14 -0
  45. recce/data/index.html +1 -1
  46. recce/data/index.txt +26 -8
  47. recce/event/collector.py +3 -1
  48. recce/models/types.py +3 -0
  49. recce/server.py +37 -0
  50. recce/state.py +154 -75
  51. recce/util/api_token.py +3 -1
  52. recce/util/recce_cloud.py +38 -2
  53. {recce_nightly-1.11.0.20250707a0.dist-info → recce_nightly-1.12.0.20250709.dist-info}/METADATA +1 -1
  54. {recce_nightly-1.11.0.20250707a0.dist-info → recce_nightly-1.12.0.20250709.dist-info}/RECORD +60 -60
  55. tests/adapter/dbt_adapter/test_dbt_cll.py +31 -18
  56. recce/data/_next/static/9RP6um04jTPfW30JjpSAT/_buildManifest.js +0 -1
  57. recce/data/_next/static/chunks/12f8fac4-bfd9db49d424e3b6.js +0 -1
  58. recce/data/_next/static/chunks/1f4e3603-31f082bb8b20c62b.js +0 -1
  59. recce/data/_next/static/chunks/217-f44c1290f0369ddb.js +0 -2
  60. recce/data/_next/static/chunks/2689e558-7cc40697c77a806d.js +0 -1
  61. recce/data/_next/static/chunks/290-d0241c33eb0d7da1.js +0 -1
  62. recce/data/_next/static/chunks/29469774-efff969bcb61f064.js +0 -1
  63. recce/data/_next/static/chunks/3a92ee20-1081c360214f9602.js +0 -1
  64. recce/data/_next/static/chunks/3aece8b2-ac0acf1f9e6998dc.js +0 -1
  65. recce/data/_next/static/chunks/44627ff4-5b5f27c3fb1e29c6.js +0 -54
  66. recce/data/_next/static/chunks/6dc81886-adbfa45836061d79.js +0 -1
  67. recce/data/_next/static/chunks/8051d68c-47a268b639f37e90.js +0 -1
  68. recce/data/_next/static/chunks/810-f810a21d6ce1d5d1.js +0 -30
  69. recce/data/_next/static/chunks/841-3906c64bad7dfbe6.js +0 -10
  70. recce/data/_next/static/chunks/86730205-9a51d2ae7a6fccfd.js +0 -1
  71. recce/data/_next/static/chunks/8d700b6a.8bb140898499c512.js +0 -1
  72. recce/data/_next/static/chunks/9185059b-4aa97f7ef9600bff.js +0 -1
  73. recce/data/_next/static/chunks/94fe57b7-1e4a8aaff33d2190.js +0 -1
  74. recce/data/_next/static/chunks/9e4386a5-a179d31f5749a6ca.js +0 -1
  75. recce/data/_next/static/chunks/a2430784-33c3bbed35bad750.js +0 -1
  76. recce/data/_next/static/chunks/a57d9bf0-d5f1ef5880127ec7.js +0 -1
  77. recce/data/_next/static/chunks/ae307f12-fe8b68112b2096ab.js +0 -1
  78. recce/data/_next/static/chunks/app/_not-found/page-966ef938df37b7a8.js +0 -1
  79. recce/data/_next/static/chunks/app/layout-eb2419321b588d21.js +0 -1
  80. recce/data/_next/static/chunks/app/page-53100cf1381ab510.js +0 -1
  81. recce/data/_next/static/chunks/bbda5537-347ee468fb057748.js +0 -1
  82. recce/data/_next/static/chunks/c964bf81-9daa5d4b9b198dc2.js +0 -1
  83. recce/data/_next/static/chunks/ca9a4ea3-e63067487eceade5.js +0 -1
  84. recce/data/_next/static/chunks/da39ef8e-007ac1e7b9a02013.js +0 -1
  85. recce/data/_next/static/chunks/framework-ded83d71b51ce901.js +0 -1
  86. recce/data/_next/static/chunks/main-app-39061b0166c47f55.js +0 -1
  87. recce/data/_next/static/chunks/main-b5b3ae20a1405261.js +0 -1
  88. recce/data/_next/static/chunks/pages/_app-437c455677d62394.js +0 -1
  89. recce/data/_next/static/chunks/pages/_error-e7650df18ca04bde.js +0 -1
  90. recce/data/_next/static/chunks/webpack-bfc38373da122a44.js +0 -1
  91. recce/data/_next/static/css/17a96168e3a9db13.css +0 -1
  92. recce/data/_next/static/css/53e95329e874e996.css +0 -14
  93. recce/data/_next/static/css/8cad5bf143ce2c8e.css +0 -1
  94. /recce/data/_next/static/{9RP6um04jTPfW30JjpSAT → Sa2q8PU_U99P0fxGYpSh3}/_ssgManifest.js +0 -0
  95. {recce_nightly-1.11.0.20250707a0.dist-info → recce_nightly-1.12.0.20250709.dist-info}/WHEEL +0 -0
  96. {recce_nightly-1.11.0.20250707a0.dist-info → recce_nightly-1.12.0.20250709.dist-info}/entry_points.txt +0 -0
  97. {recce_nightly-1.11.0.20250707a0.dist-info → recce_nightly-1.12.0.20250709.dist-info}/licenses/LICENSE +0 -0
  98. {recce_nightly-1.11.0.20250707a0.dist-info → recce_nightly-1.12.0.20250709.dist-info}/top_level.txt +0 -0
@@ -1,10 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[841],{49413:function(e,t,n){var r;!function(i,o){"use strict";var a="function",s="undefined",l="object",u="string",c="model",d="name",f="type",h="vendor",p="version",g="architecture",v="console",m="mobile",b="tablet",y="smarttv",x="wearable",w="embedded",E="Amazon",S="Apple",k="ASUS",O="BlackBerry",C="Browser",I="Chrome",_="Firefox",T="Google",P="Huawei",R="Microsoft",A="Motorola",N="Opera",M="Samsung",L="Sharp",D="Sony",F="Xiaomi",V="Zebra",j="Facebook",z=function(e,t){var n={};for(var r in e)t[r]&&t[r].length%2==0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n},U=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},B=function(e,t){return typeof e===u&&-1!==W(t).indexOf(W(e))},W=function(e){return e.toLowerCase()},H=function(e,t){if(typeof e===u)return e=e.replace(/^\s\s*/,""),typeof t===s?e:e.substring(0,350)},$=function(e,t){for(var n,r,i,s,u,c,d=0;d<t.length&&!u;){var f=t[d],h=t[d+1];for(n=r=0;n<f.length&&!u;)if(u=f[n++].exec(e))for(i=0;i<h.length;i++)c=u[++r],typeof(s=h[i])===l&&s.length>0?2===s.length?typeof s[1]==a?this[s[0]]=s[1].call(this,c):this[s[0]]=s[1]:3===s.length?typeof s[1]!==a||s[1].exec&&s[1].test?this[s[0]]=c?c.replace(s[1],s[2]):void 0:this[s[0]]=c?s[1].call(this,c,s[2]):void 0:4===s.length&&(this[s[0]]=c?s[3].call(this,c.replace(s[1],s[2])):void 0):this[s]=c||o;d+=2}},q=function(e,t){for(var n in t)if(typeof t[n]===l&&t[n].length>0){for(var r=0;r<t[n].length;r++)if(B(t[n][r],e))return"?"===n?o:n}else if(B(t[n],e))return"?"===n?o:n;return e},G={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},K={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[p,[d,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[p,[d,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[d,p],[/opios[\/ ]+([\w\.]+)/i],[p,[d,N+" Mini"]],[/\bopr\/([\w\.]+)/i],[p,[d,N]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(weibo)__([\d\.]+)/i],[d,p],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[p,[d,"UC"+C]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[p,[d,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[p,[d,"WeChat"]],[/konqueror\/([\w\.]+)/i],[p,[d,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[p,[d,"IE"]],[/yabrowser\/([\w\.]+)/i],[p,[d,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[d,/(.+)/,"$1 Secure "+C],p],[/\bfocus\/([\w\.]+)/i],[p,[d,_+" Focus"]],[/\bopt\/([\w\.]+)/i],[p,[d,N+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[p,[d,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[p,[d,"Dolphin"]],[/coast\/([\w\.]+)/i],[p,[d,N+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[p,[d,"MIUI "+C]],[/fxios\/([-\w\.]+)/i],[p,[d,_]],[/\bqihu|(qi?ho?o?|360)browser/i],[[d,"360 "+C]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[d,/(.+)/,"$1 "+C],p],[/(comodo_dragon)\/([\w\.]+)/i],[[d,/_/g," "],p],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[d,p],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[d],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[d,j],p],[/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[d,p],[/\bgsa\/([\w\.]+) .*safari\//i],[p,[d,"GSA"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[p,[d,I+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[d,I+" WebView"],p],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[p,[d,"Android "+C]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[d,p],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[p,[d,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[p,d],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[d,[p,q,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[d,p],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[d,"Netscape"],p],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[p,[d,_+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[d,p],[/(cobalt)\/([\w\.]+)/i],[d,[p,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[g,"amd64"]],[/(ia32(?=;))/i],[[g,W]],[/((?:i[346]|x)86)[;\)]/i],[[g,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[g,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[g,"armhf"]],[/windows (ce|mobile); ppc;/i],[[g,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[g,/ower/,"",W]],[/(sun4\w)[;\)]/i],[[g,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[g,W]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[c,[h,M],[f,b]],[/\b((?:s[cgp]h|gt|sm)-\w+|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[c,[h,M],[f,m]],[/((ipod|iphone)\d+,\d+)/i],[c,[h,S],[f,m]],[/(ipad\d+,\d+)/i],[c,[h,S],[f,b]],[/\((ip(?:hone|od)[\w ]*);/i],[c,[h,S],[f,m]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[c,[h,S],[f,b]],[/(macintosh);/i],[c,[h,S]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[c,[h,P],[f,b]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[c,[h,P],[f,m]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[c,/_/g," "],[h,F],[f,m]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[c,/_/g," "],[h,F],[f,b]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[c,[h,"OPPO"],[f,m]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[c,[h,"Vivo"],[f,m]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[c,[h,"Realme"],[f,m]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[c,[h,A],[f,m]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[c,[h,A],[f,b]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[c,[h,"LG"],[f,b]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[c,[h,"LG"],[f,m]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[c,[h,"Lenovo"],[f,b]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[c,/_/g," "],[h,"Nokia"],[f,m]],[/(pixel c)\b/i],[c,[h,T],[f,b]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[c,[h,T],[f,m]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[c,[h,D],[f,m]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[c,"Xperia Tablet"],[h,D],[f,b]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[c,[h,"OnePlus"],[f,m]],[/(alexa)webm/i,/(kf[a-z]{2}wi)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[c,[h,E],[f,b]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[c,/(.+)/g,"Fire Phone $1"],[h,E],[f,m]],[/(playbook);[-\w\),; ]+(rim)/i],[c,h,[f,b]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[c,[h,O],[f,m]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[c,[h,k],[f,b]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[c,[h,k],[f,m]],[/(nexus 9)/i],[c,[h,"HTC"],[f,b]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic|sony(?!-bra))[-_ ]?([-\w]*)/i],[h,[c,/_/g," "],[f,m]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[c,[h,"Acer"],[f,b]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[c,[h,"Meizu"],[f,m]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[c,[h,L],[f,m]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[h,c,[f,m]],[/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[h,c,[f,b]],[/(surface duo)/i],[c,[h,R],[f,b]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[c,[h,"Fairphone"],[f,m]],[/(u304aa)/i],[c,[h,"AT&T"],[f,m]],[/\bsie-(\w*)/i],[c,[h,"Siemens"],[f,m]],[/\b(rct\w+) b/i],[c,[h,"RCA"],[f,b]],[/\b(venue[\d ]{2,7}) b/i],[c,[h,"Dell"],[f,b]],[/\b(q(?:mv|ta)\w+) b/i],[c,[h,"Verizon"],[f,b]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[c,[h,"Barnes & Noble"],[f,b]],[/\b(tm\d{3}\w+) b/i],[c,[h,"NuVision"],[f,b]],[/\b(k88) b/i],[c,[h,"ZTE"],[f,b]],[/\b(nx\d{3}j) b/i],[c,[h,"ZTE"],[f,m]],[/\b(gen\d{3}) b.+49h/i],[c,[h,"Swiss"],[f,m]],[/\b(zur\d{3}) b/i],[c,[h,"Swiss"],[f,b]],[/\b((zeki)?tb.*\b) b/i],[c,[h,"Zeki"],[f,b]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[h,"Dragon Touch"],c,[f,b]],[/\b(ns-?\w{0,9}) b/i],[c,[h,"Insignia"],[f,b]],[/\b((nxa|next)-?\w{0,9}) b/i],[c,[h,"NextBook"],[f,b]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[h,"Voice"],c,[f,m]],[/\b(lvtel\-)?(v1[12]) b/i],[[h,"LvTel"],c,[f,m]],[/\b(ph-1) /i],[c,[h,"Essential"],[f,m]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[c,[h,"Envizen"],[f,b]],[/\b(trio[-\w\. ]+) b/i],[c,[h,"MachSpeed"],[f,b]],[/\btu_(1491) b/i],[c,[h,"Rotor"],[f,b]],[/(shield[\w ]+) b/i],[c,[h,"Nvidia"],[f,b]],[/(sprint) (\w+)/i],[h,c,[f,m]],[/(kin\.[onetw]{3})/i],[[c,/\./g," "],[h,R],[f,m]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[c,[h,V],[f,b]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[c,[h,V],[f,m]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[h,c,[f,v]],[/droid.+; (shield) bui/i],[c,[h,"Nvidia"],[f,v]],[/(playstation [345portablevi]+)/i],[c,[h,D],[f,v]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[c,[h,R],[f,v]],[/smart-tv.+(samsung)/i],[h,[f,y]],[/hbbtv.+maple;(\d+)/i],[[c,/^/,"SmartTV"],[h,M],[f,y]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[h,"LG"],[f,y]],[/(apple) ?tv/i],[h,[c,S+" TV"],[f,y]],[/crkey/i],[[c,I+"cast"],[h,T],[f,y]],[/droid.+aft(\w)( bui|\))/i],[c,[h,E],[f,y]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[c,[h,L],[f,y]],[/(bravia[\w ]+)( bui|\))/i],[c,[h,D],[f,y]],[/(mitv-\w{5}) bui/i],[c,[h,F],[f,y]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w ]*; *(\w[^;]*);([^;]*)/i],[[h,H],[c,H],[f,y]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[f,y]],[/((pebble))app/i],[h,c,[f,x]],[/droid.+; (glass) \d/i],[c,[h,T],[f,x]],[/droid.+; (wt63?0{2,3})\)/i],[c,[h,V],[f,x]],[/(quest( 2)?)/i],[c,[h,j],[f,x]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[h,[f,w]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[c,[f,m]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[c,[f,b]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[f,b]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[f,m]],[/(android[-\w\. ]{0,9});.+buil/i],[c,[h,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[p,[d,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[p,[d,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i],[d,p],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[p,d]],os:[[/microsoft (windows) (vista|xp)/i],[d,p],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[d,[p,q,G]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[d,"Windows"],[p,q,G]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/cfnetwork\/.+darwin/i],[[p,/_/g,"."],[d,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[d,"Mac OS"],[p,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[p,d],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[d,p],[/\(bb(10);/i],[p,[d,O]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[p,[d,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[p,[d,_+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[p,[d,"webOS"]],[/crkey\/([\d\.]+)/i],[p,[d,I+"cast"]],[/(cros) [\w]+ ([\w\.]+\w)/i],[[d,"Chromium OS"],p],[/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[d,p],[/(sunos) ?([\w\.\d]*)/i],[[d,"Solaris"],p],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux)/i,/(unix) ?([\w\.]*)/i],[d,p]]},Z=function(e,t){if(typeof e===l&&(t=e,e=o),!(this instanceof Z))return new Z(e,t).getResult();var n=e||(typeof i!==s&&i.navigator&&i.navigator.userAgent?i.navigator.userAgent:""),r=t?z(K,t):K;return this.getBrowser=function(){var e,t={};return t[d]=o,t[p]=o,$.call(t,n,r.browser),t.major=typeof(e=t.version)===u?e.replace(/[^\d\.]/g,"").split(".")[0]:o,t},this.getCPU=function(){var e={};return e[g]=o,$.call(e,n,r.cpu),e},this.getDevice=function(){var e={};return e[h]=o,e[c]=o,e[f]=o,$.call(e,n,r.device),e},this.getEngine=function(){var e={};return e[d]=o,e[p]=o,$.call(e,n,r.engine),e},this.getOS=function(){var e={};return e[d]=o,e[p]=o,$.call(e,n,r.os),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return n},this.setUA=function(e){return n=typeof e===u&&e.length>350?H(e,350):e,this},this.setUA(n),this};Z.VERSION="0.7.33",Z.BROWSER=U([d,p,"major"]),Z.CPU=U([g]),Z.DEVICE=U([c,h,f,v,m,y,b,x,w]),Z.ENGINE=Z.OS=U([d,p]),typeof t!==s?(e.exports&&(t=e.exports=Z),t.UAParser=Z):n.amdO?o!==(r=(function(){return Z}).call(t,n,t,e))&&(e.exports=r):typeof i!==s&&(i.UAParser=Z);var Y=typeof i!==s&&(i.jQuery||i.Zepto);if(Y&&!Y.ua){var X=new Z;Y.ua=X.getResult(),Y.ua.get=function(){return X.getUA()},Y.ua.set=function(e){X.setUA(e);var t=X.getResult();for(var n in t)Y.ua[n]=t[n]}}}("object"==typeof window?window:this)},12974:function(e,t,n){"use strict";let r,i,o,a,s;n.d(t,{Pn:function(){return lt},j:function(){return ln}});var l,u,c,d,f,h,p,g,v,m,b,y,x,w,E,S,k,O,C,I,_,T,P,R,A,N,M,L,D,F,V,j,z,U,B,W,H,$,q,G,K,Z,Y,X,Q,J,ee,et,en,er,ei,eo,ea=function(e,t){return(ea=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function es(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}ea(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var el=function(){return(el=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function eu(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function ec(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((r=r.apply(e,t||[])).next())})}function ed(e,t){var n,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(n)throw TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}function ef(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function eh(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function ep(e,t,n){if(n||2==arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}function eg(e){return this instanceof eg?(this.v=e,this):new eg(e)}"function"==typeof SuppressedError&&SuppressedError;var ev=function(e){return{promise:e||Promise.resolve()}},em=function(){var e="ampIntegrationContext";return"undefined"!=typeof globalThis&&void 0!==globalThis[e]?globalThis[e]:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof self?self:void 0!==n.g?n.g:void 0},eb=function(){var e,t=em();return(null===(e=null==t?void 0:t.location)||void 0===e?void 0:e.search)?t.location.search.substring(1).split("&").filter(Boolean).reduce(function(e,t){var n=t.split("=",2),r=ey(n[0]),i=ey(n[1]);return i&&(e[r]=i),e},{}):{}},ey=function(e){void 0===e&&(e="");try{return decodeURIComponent(e)}catch(e){return""}},ex=function(){function e(){}return e.prototype.getApplicationContext=function(){return{versionName:this.versionName,language:ew(),platform:"Web",os:void 0,deviceModel:void 0}},e}(),ew=function(){return"undefined"!=typeof navigator&&(navigator.languages&&navigator.languages[0]||navigator.language)||""},eE=function(){function e(){this.queue=[]}return e.prototype.logEvent=function(e){this.receiver?this.receiver(e):this.queue.length<512&&this.queue.push(e)},e.prototype.setEventReceiver=function(e){this.receiver=e,this.queue.length>0&&(this.queue.forEach(function(t){e(t)}),this.queue=[])},e}(),eS=function(){return(eS=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function ek(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function eO(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}"function"==typeof SuppressedError&&SuppressedError;var eC=function(e,t){var n,r,i=typeof e;if(i!==typeof t)return!1;try{for(var o=ek(["string","number","boolean","undefined"]),a=o.next();!a.done;a=o.next())if(a.value===i)return e===t}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}if(null==e&&null==t)return!0;if(null==e||null==t||e.length!==t.length)return!1;var s=Array.isArray(e),l=Array.isArray(t);if(s!==l)return!1;if(s&&l){for(var u=0;u<e.length;u++)if(!eC(e[u],t[u]))return!1}else{if(!eC(Object.keys(e).sort(),Object.keys(t).sort()))return!1;var c=!0;return Object.keys(e).forEach(function(n){eC(e[n],t[n])||(c=!1)}),c}return!0};Object.entries||(Object.entries=function(e){for(var t=Object.keys(e),n=t.length,r=Array(n);n--;)r[n]=[t[n],e[t[n]]];return r});var eI=function(){function e(){this.identity={userProperties:{}},this.listeners=new Set}return e.prototype.editIdentity=function(){var e=this,t=eS({},this.identity.userProperties),n=eS(eS({},this.identity),{userProperties:t});return{setUserId:function(e){return n.userId=e,this},setDeviceId:function(e){return n.deviceId=e,this},setUserProperties:function(e){return n.userProperties=e,this},setOptOut:function(e){return n.optOut=e,this},updateUserProperties:function(e){var t,r,i,o,a,s,l=n.userProperties||{};try{for(var u=ek(Object.entries(e)),c=u.next();!c.done;c=u.next()){var d=eO(c.value,2),f=d[0],h=d[1];switch(f){case"$set":try{for(var p=(i=void 0,ek(Object.entries(h))),g=p.next();!g.done;g=p.next()){var v=eO(g.value,2),m=v[0],b=v[1];l[m]=b}}catch(e){i={error:e}}finally{try{g&&!g.done&&(o=p.return)&&o.call(p)}finally{if(i)throw i.error}}break;case"$unset":try{for(var y=(a=void 0,ek(Object.keys(h))),x=y.next();!x.done;x=y.next()){var m=x.value;delete l[m]}}catch(e){a={error:e}}finally{try{x&&!x.done&&(s=y.return)&&s.call(y)}finally{if(a)throw a.error}}break;case"$clearAll":l={}}}}catch(e){t={error:e}}finally{try{c&&!c.done&&(r=u.return)&&r.call(u)}finally{if(t)throw t.error}}return n.userProperties=l,this},commit:function(){return e.setIdentity(n),this}}},e.prototype.getIdentity=function(){return eS({},this.identity)},e.prototype.setIdentity=function(e){var t=eS({},this.identity);this.identity=eS({},e),eC(t,this.identity)||this.listeners.forEach(function(t){t(e)})},e.prototype.addIdentityListener=function(e){this.listeners.add(e)},e.prototype.removeIdentityListener=function(e){this.listeners.delete(e)},e}(),e_="undefined"!=typeof globalThis?globalThis:void 0!==n.g?n.g:self,eT=function(){function e(){this.identityStore=new eI,this.eventBridge=new eE,this.applicationContextProvider=new ex}return e.getInstance=function(t){return e_.analyticsConnectorInstances||(e_.analyticsConnectorInstances={}),e_.analyticsConnectorInstances[t]||(e_.analyticsConnectorInstances[t]=new e),e_.analyticsConnectorInstances[t]},e}(),eP=function(e){return void 0===e&&(e="$default_instance"),eT.getInstance(e)},eR=function(e,t){eP(t).identityStore.editIdentity().setUserId(e).commit()},eA=function(e,t){eP(t).identityStore.editIdentity().setDeviceId(e).commit()};(l=F||(F={})).Unknown="unknown",l.Skipped="skipped",l.Success="success",l.RateLimit="rate_limit",l.PayloadTooLarge="payload_too_large",l.Invalid="invalid",l.Failed="failed",l.Timeout="Timeout",l.SystemError="SystemError";var eN="".concat("AMP","_unsent"),eM="https://api2.amplitude.com/2/httpapi",eL=function(e,t){var n=Math.max(t,1);return e.reduce(function(e,t,r){var i=Math.floor(r/n);return e[i]||(e[i]=[]),e[i].push(t),e},[])},eD=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=F.Unknown),{event:e,code:t,message:n}};(u=V||(V={}))[u.None=0]="None",u[u.Error=1]="Error",u[u.Warn=2]="Warn",u[u.Verbose=3]="Verbose",u[u.Debug=4]="Debug";var eF="Amplitude Logger ",eV=function(){function e(){this.logLevel=V.None}return e.prototype.disable=function(){this.logLevel=V.None},e.prototype.enable=function(e){void 0===e&&(e=V.Warn),this.logLevel=e},e.prototype.log=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.logLevel<V.Verbose||console.log("".concat(eF,"[Log]: ").concat(e.join(" ")))},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.logLevel<V.Warn||console.warn("".concat(eF,"[Warn]: ").concat(e.join(" ")))},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.logLevel<V.Error||console.error("".concat(eF,"[Error]: ").concat(e.join(" ")))},e.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.logLevel<V.Debug||console.log("".concat(eF,"[Debug]: ").concat(e.join(" ")))},e}(),ej=function(){return{flushMaxRetries:12,flushQueueSize:200,flushIntervalMillis:1e4,instanceName:"$default_instance",logLevel:V.Warn,loggerProvider:new eV,offline:!1,optOut:!1,serverUrl:eM,serverZone:"US",useBatch:!1}},ez=function(){function e(e){this._optOut=!1;var t,n,r,i,o=ej();this.apiKey=e.apiKey,this.flushIntervalMillis=null!==(t=e.flushIntervalMillis)&&void 0!==t?t:o.flushIntervalMillis,this.flushMaxRetries=e.flushMaxRetries||o.flushMaxRetries,this.flushQueueSize=e.flushQueueSize||o.flushQueueSize,this.instanceName=e.instanceName||o.instanceName,this.loggerProvider=e.loggerProvider||o.loggerProvider,this.logLevel=null!==(n=e.logLevel)&&void 0!==n?n:o.logLevel,this.minIdLength=e.minIdLength,this.plan=e.plan,this.ingestionMetadata=e.ingestionMetadata,this.offline=void 0!==e.offline?e.offline:o.offline,this.optOut=null!==(r=e.optOut)&&void 0!==r?r:o.optOut,this.serverUrl=e.serverUrl,this.serverZone=e.serverZone||o.serverZone,this.storageProvider=e.storageProvider,this.transportProvider=e.transportProvider,this.useBatch=null!==(i=e.useBatch)&&void 0!==i?i:o.useBatch,this.loggerProvider.enable(this.logLevel);var a=eU(e.serverUrl,e.serverZone,e.useBatch);this.serverZone=a.serverZone,this.serverUrl=a.serverUrl}return Object.defineProperty(e.prototype,"optOut",{get:function(){return this._optOut},set:function(e){this._optOut=e},enumerable:!1,configurable:!0}),e}(),eU=function(e,t,n){if(void 0===e&&(e=""),void 0===t&&(t=ej().serverZone),void 0===n&&(n=ej().useBatch),e)return{serverUrl:e,serverZone:void 0};var r,i=["US","EU"].includes(t)?t:ej().serverZone;return{serverZone:i,serverUrl:(r=n,"EU"===i?r?"https://api.eu.amplitude.com/batch":"https://api.eu.amplitude.com/2/httpapi":r?"https://api2.amplitude.com/batch":eM)}},eB=function(){function e(){this.sdk={metrics:{histogram:{}}}}return e.prototype.recordHistogram=function(e,t){this.sdk.metrics.histogram[e]=t},e}(),eW=ep([],eh(Array(256).keys()),!1).map(function(e){return e.toString(16).padStart(2,"0")}),eH=function(e){var t,n=em();if(!(null===(t=null==n?void 0:n.crypto)||void 0===t?void 0:t.getRandomValues))return e?(e^16*Math.random()>>e/4).toString(16):(String(1e7)+String(-1e3)+String(-4e3)+String(-8e3)+String(-1e11)).replace(/[018]/g,eH);var r=n.crypto.getRandomValues(new Uint8Array(16));return r[6]=15&r[6]|64,r[8]=63&r[8]|128,ep([],eh(r.entries()),!1).map(function(e){var t=eh(e,2),n=t[0],r=t[1];return[4,6,8,10].includes(n)?"-".concat(eW[r]):eW[r]}).join("")};function e$(e){var t="";try{"body"in e&&(t=JSON.stringify(e.body,null,2))}catch(e){}return t}var eq=function(){function e(){this.name="amplitude",this.type="destination",this.retryTimeout=1e3,this.throttleTimeout=3e4,this.storageKey="",this.scheduleId=null,this.scheduledTimeout=0,this.flushId=null,this.queue=[]}return e.prototype.setup=function(e){var t;return ec(this,void 0,void 0,function(){var n,r=this;return ed(this,function(i){switch(i.label){case 0:return this.config=e,this.storageKey="".concat(eN,"_").concat(this.config.apiKey.substring(0,10)),[4,null===(t=this.config.storageProvider)||void 0===t?void 0:t.get(this.storageKey)];case 1:return(n=i.sent())&&n.length>0&&Promise.all(n.map(function(e){return r.execute(e)})).catch(),[2,Promise.resolve(void 0)]}})})},e.prototype.execute=function(e){var t=this;return e.insert_id||(e.insert_id=eH()),new Promise(function(n){t.queue.push({event:e,attempts:0,callback:function(e){return n(e)},timeout:0}),t.schedule(t.config.flushIntervalMillis),t.saveEvents()})},e.prototype.removeEventsExceedFlushMaxRetries=function(e){var t=this;return e.filter(function(e){return e.attempts+=1,e.attempts<t.config.flushMaxRetries||(t.fulfillRequest([e],500,"Event rejected due to exceeded retry count"),!1)})},e.prototype.scheduleEvents=function(e){var t=this;e.forEach(function(e){t.schedule(0===e.timeout?t.config.flushIntervalMillis:e.timeout)})},e.prototype.schedule=function(e){var t=this;if(!this.config.offline&&(null===this.scheduleId||this.scheduleId&&e>this.scheduledTimeout)){this.scheduleId&&clearTimeout(this.scheduleId),this.scheduledTimeout=e,this.scheduleId=setTimeout(function(){t.queue=t.queue.map(function(e){return e.timeout=0,e}),t.flush(!0)},e);return}},e.prototype.resetSchedule=function(){this.scheduleId=null,this.scheduledTimeout=0},e.prototype.flush=function(e){return void 0===e&&(e=!1),ec(this,void 0,void 0,function(){var t,n,r=this;return ed(this,function(i){switch(i.label){case 0:if(this.config.offline)return this.resetSchedule(),this.config.loggerProvider.debug("Skipping flush while offline."),[2];if(this.flushId)return this.resetSchedule(),this.config.loggerProvider.debug("Skipping flush because previous flush has not resolved."),[2];return this.flushId=this.scheduleId,this.resetSchedule(),t=[],n=[],this.queue.forEach(function(e){return 0===e.timeout?t.push(e):n.push(e)}),[4,eL(t,this.config.flushQueueSize).reduce(function(t,n){return ec(r,void 0,void 0,function(){return ed(this,function(r){switch(r.label){case 0:return[4,t];case 1:return r.sent(),[4,this.send(n,e)];case 2:return[2,r.sent()]}})})},Promise.resolve())];case 1:return i.sent(),this.flushId=null,this.scheduleEvents(this.queue),[2]}})})},e.prototype.send=function(e,t){return void 0===t&&(t=!0),ec(this,void 0,void 0,function(){var n,r,i,o;return ed(this,function(a){switch(a.label){case 0:if(!this.config.apiKey)return[2,this.fulfillRequest(e,400,"Event rejected due to missing API key")];n={api_key:this.config.apiKey,events:e.map(function(e){var t=e.event;return t.extra,eu(t,["extra"])}),options:{min_id_length:this.config.minIdLength},client_upload_time:new Date().toISOString(),request_metadata:this.config.requestMetadata},this.config.requestMetadata=new eB,a.label=1;case 1:return a.trys.push([1,3,,4]),r=eU(this.config.serverUrl,this.config.serverZone,this.config.useBatch).serverUrl,[4,this.config.transportProvider.send(r,n)];case 2:if(null===(i=a.sent()))return this.fulfillRequest(e,0,"Unexpected error occurred"),[2];if(!t)return"body"in i?this.fulfillRequest(e,i.statusCode,"".concat(i.status,": ").concat(e$(i))):this.fulfillRequest(e,i.statusCode,i.status),[2];return this.handleResponse(i,e),[3,4];case 3:var s;return o=(s=a.sent())instanceof Error?s.message:String(s),this.config.loggerProvider.error(o),this.handleResponse({status:F.Failed,statusCode:0},e),[3,4];case 4:return[2]}})})},e.prototype.handleResponse=function(e,t){var n=e.status;switch(n){case F.Success:this.handleSuccessResponse(e,t);break;case F.Invalid:this.handleInvalidResponse(e,t);break;case F.PayloadTooLarge:this.handlePayloadTooLargeResponse(e,t);break;case F.RateLimit:this.handleRateLimitResponse(e,t);break;default:this.config.loggerProvider.warn("{code: 0, error: \"Status '".concat(n,"' provided for ").concat(t.length,' events"}')),this.handleOtherResponse(t)}},e.prototype.handleSuccessResponse=function(e,t){this.fulfillRequest(t,e.statusCode,"Event tracked successfully")},e.prototype.handleInvalidResponse=function(e,t){var n=this;if(e.body.missingField||e.body.error.startsWith("Invalid API key")){this.fulfillRequest(t,e.statusCode,e.body.error);return}var r=new Set(ep(ep(ep(ep([],eh(Object.values(e.body.eventsWithInvalidFields)),!1),eh(Object.values(e.body.eventsWithMissingFields)),!1),eh(Object.values(e.body.eventsWithInvalidIdLengths)),!1),eh(e.body.silencedEvents),!1).flat()),i=t.filter(function(t,i){if(r.has(i)){n.fulfillRequest([t],e.statusCode,e.body.error);return}return!0});i.length>0&&this.config.loggerProvider.warn(e$(e));var o=this.removeEventsExceedFlushMaxRetries(i);this.scheduleEvents(o)},e.prototype.handlePayloadTooLargeResponse=function(e,t){if(1===t.length){this.fulfillRequest(t,e.statusCode,e.body.error);return}this.config.loggerProvider.warn(e$(e)),this.config.flushQueueSize/=2;var n=this.removeEventsExceedFlushMaxRetries(t);this.scheduleEvents(n)},e.prototype.handleRateLimitResponse=function(e,t){var n=this,r=Object.keys(e.body.exceededDailyQuotaUsers),i=Object.keys(e.body.exceededDailyQuotaDevices),o=e.body.throttledEvents,a=new Set(r),s=new Set(i),l=new Set(o),u=t.filter(function(t,r){if(t.event.user_id&&a.has(t.event.user_id)||t.event.device_id&&s.has(t.event.device_id)){n.fulfillRequest([t],e.statusCode,e.body.error);return}return l.has(r)&&(t.timeout=n.throttleTimeout),!0});u.length>0&&this.config.loggerProvider.warn(e$(e));var c=this.removeEventsExceedFlushMaxRetries(u);this.scheduleEvents(c)},e.prototype.handleOtherResponse=function(e){var t=this,n=e.map(function(e){return e.timeout=e.attempts*t.retryTimeout,e}),r=this.removeEventsExceedFlushMaxRetries(n);this.scheduleEvents(r)},e.prototype.fulfillRequest=function(e,t,n){this.removeEvents(e),e.forEach(function(e){return e.callback(eD(e.event,t,n))})},e.prototype.saveEvents=function(){if(this.config.storageProvider){var e=this.queue.map(function(e){return e.event});this.config.storageProvider.set(this.storageKey,e)}},e.prototype.removeEvents=function(e){this.queue=this.queue.filter(function(t){return!e.some(function(e){return e.event.insert_id===t.event.insert_id})}),this.saveEvents()},e}(),eG=function(){function e(){this.name="identity",this.type="before",this.identityStore=eP().identityStore}return e.prototype.execute=function(e){return ec(this,void 0,void 0,function(){var t;return ed(this,function(n){return(t=e.user_properties)&&this.identityStore.editIdentity().updateUserProperties(t).commit(),[2,e]})})},e.prototype.setup=function(e){return ec(this,void 0,void 0,function(){return ed(this,function(t){return e.instanceName&&(this.identityStore=eP(e.instanceName).identityStore),[2]})})},e}(),eK=function(e){if(Object.keys(e).length>1e3)return!1;for(var t in e){var n=e[t];if(!eZ(t,n))return!1}return!0},eZ=function(e,t){var n,r;if("string"!=typeof e)return!1;if(Array.isArray(t)){var i=!0;try{for(var o=ef(t),a=o.next();!a.done;a=o.next()){var s=a.value;if(Array.isArray(s))return!1;if("object"==typeof s)i=i&&eK(s);else if(!["number","string"].includes(typeof s))return!1;if(!i)return!1}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}}else if(null==t)return!1;else if("object"==typeof t)return eK(t);else if(!["number","string","boolean"].includes(typeof t))return!1;return!0},eY=function(){function e(){this._propertySet=new Set,this._properties={}}return e.prototype.getUserProperties=function(){return el({},this._properties)},e.prototype.set=function(e,t){return this._safeSet(j.SET,e,t),this},e.prototype.setOnce=function(e,t){return this._safeSet(j.SET_ONCE,e,t),this},e.prototype.append=function(e,t){return this._safeSet(j.APPEND,e,t),this},e.prototype.prepend=function(e,t){return this._safeSet(j.PREPEND,e,t),this},e.prototype.postInsert=function(e,t){return this._safeSet(j.POSTINSERT,e,t),this},e.prototype.preInsert=function(e,t){return this._safeSet(j.PREINSERT,e,t),this},e.prototype.remove=function(e,t){return this._safeSet(j.REMOVE,e,t),this},e.prototype.add=function(e,t){return this._safeSet(j.ADD,e,t),this},e.prototype.unset=function(e){return this._safeSet(j.UNSET,e,"-"),this},e.prototype.clearAll=function(){return this._properties={},this._properties[j.CLEAR_ALL]="-",this},e.prototype._safeSet=function(e,t,n){if(this._validate(e,t,n)){var r=this._properties[e];return void 0===r&&(r={},this._properties[e]=r),r[t]=n,this._propertySet.add(t),!0}return!1},e.prototype._validate=function(e,t,n){return!(void 0!==this._properties[j.CLEAR_ALL]||this._propertySet.has(t))&&(e===j.ADD?"number"==typeof n:e===j.UNSET||e===j.REMOVE||eZ(t,n))},e}();(c=j||(j={})).SET="$set",c.SET_ONCE="$setOnce",c.ADD="$add",c.APPEND="$append",c.PREPEND="$prepend",c.REMOVE="$remove",c.PREINSERT="$preInsert",c.POSTINSERT="$postInsert",c.UNSET="$unset",c.CLEAR_ALL="$clearAll";var eX=[j.CLEAR_ALL,j.UNSET,j.SET,j.SET_ONCE,j.ADD,j.APPEND,j.PREPEND,j.PREINSERT,j.POSTINSERT,j.REMOVE],eQ=function(){function e(){this.productId="",this.quantity=1,this.price=0}return e.prototype.setProductId=function(e){return this.productId=e,this},e.prototype.setQuantity=function(e){return e>0&&(this.quantity=e),this},e.prototype.setPrice=function(e){return this.price=e,this},e.prototype.setRevenueType=function(e){return this.revenueType=e,this},e.prototype.setCurrency=function(e){return this.currency=e,this},e.prototype.setRevenue=function(e){return this.revenue=e,this},e.prototype.setReceipt=function(e){return this.receipt=e,this},e.prototype.setReceiptSig=function(e){return this.receiptSig=e,this},e.prototype.setEventProperties=function(e){return eK(e)&&(this.properties=e),this},e.prototype.getEventProperties=function(){var e=this.properties?el({},this.properties):{};return e[z.REVENUE_PRODUCT_ID]=this.productId,e[z.REVENUE_QUANTITY]=this.quantity,e[z.REVENUE_PRICE]=this.price,e[z.REVENUE_TYPE]=this.revenueType,e[z.REVENUE_CURRENCY]=this.currency,e[z.REVENUE]=this.revenue,e[z.RECEIPT]=this.receipt,e[z.RECEIPT_SIG]=this.receiptSig,e},e}();(d=z||(z={})).REVENUE_PRODUCT_ID="$productId",d.REVENUE_QUANTITY="$quantity",d.REVENUE_PRICE="$price",d.REVENUE_TYPE="$revenueType",d.REVENUE_CURRENCY="$currency",d.REVENUE="$revenue",d.RECEIPT="$receipt",d.RECEIPT_SIG="$receiptSig";var eJ=function(e,t){return void 0===t&&(t=Date.now()),Date.now()-t>e};(f=U||(U={})).SET="$set",f.SET_ONCE="$setOnce",f.ADD="$add",f.APPEND="$append",f.PREPEND="$prepend",f.REMOVE="$remove",f.PREINSERT="$preInsert",f.POSTINSERT="$postInsert",f.UNSET="$unset",f.CLEAR_ALL="$clearAll",(h=B||(B={})).IDENTIFY="$identify",h.GROUP_IDENTIFY="$groupidentify",h.REVENUE="revenue_amount";var e0=function(){function e(e){this.client=e,this.queue=[],this.applying=!1,this.plugins=[]}return e.prototype.register=function(e,t){var n,r;return ec(this,void 0,void 0,function(){return ed(this,function(i){switch(i.label){case 0:if(this.plugins.some(function(t){return t.name===e.name}))return t.loggerProvider.warn("Plugin with name ".concat(e.name," already exists, skipping registration")),[2];return void 0===e.name&&(e.name=eH(),t.loggerProvider.warn("Plugin name is undefined. \n Generating a random UUID for plugin name: ".concat(e.name,". \n Set a name for the plugin to prevent it from being added multiple times."))),e.type=null!==(n=e.type)&&void 0!==n?n:"enrichment",[4,null===(r=e.setup)||void 0===r?void 0:r.call(e,t,this.client)];case 1:return i.sent(),this.plugins.push(e),[2]}})})},e.prototype.deregister=function(e,t){var n;return ec(this,void 0,void 0,function(){var r,i;return ed(this,function(o){switch(o.label){case 0:if(-1===(r=this.plugins.findIndex(function(t){return t.name===e})))return t.loggerProvider.warn("Plugin with name ".concat(e," does not exist, skipping deregistration")),[2];return i=this.plugins[r],this.plugins.splice(r,1),[4,null===(n=i.teardown)||void 0===n?void 0:n.call(i)];case 1:return o.sent(),[2]}})})},e.prototype.reset=function(e){this.applying=!1,this.plugins.map(function(e){var t;return null===(t=e.teardown)||void 0===t?void 0:t.call(e)}),this.plugins=[],this.client=e},e.prototype.push=function(e){var t=this;return new Promise(function(n){t.queue.push([e,n]),t.scheduleApply(0)})},e.prototype.scheduleApply=function(e){var t=this;this.applying||(this.applying=!0,setTimeout(function(){t.apply(t.queue.shift()).then(function(){t.applying=!1,t.queue.length>0&&t.scheduleApply(0)})},e))},e.prototype.apply=function(e){return ec(this,void 0,void 0,function(){var t,n,r,i,o,a,s,l,u,c,d,f,h,p;return ed(this,function(g){switch(g.label){case 0:if(!e)return[2];t=eh(e,1)[0],n=eh(e,2)[1],r=this.plugins.filter(function(e){return"before"===e.type}),g.label=1;case 1:g.trys.push([1,6,7,8]),o=(i=ef(r)).next(),g.label=2;case 2:if(o.done)return[3,5];if(!(a=o.value).execute)return[3,4];return[4,a.execute(el({},t))];case 3:if(null===(s=g.sent()))return n({event:t,code:0,message:""}),[2];t=s,g.label=4;case 4:return o=i.next(),[3,2];case 5:return[3,8];case 6:return d={error:g.sent()},[3,8];case 7:try{o&&!o.done&&(f=i.return)&&f.call(i)}finally{if(d)throw d.error}return[7];case 8:l=this.plugins.filter(function(e){return"enrichment"===e.type||void 0===e.type}),g.label=9;case 9:g.trys.push([9,14,15,16]),c=(u=ef(l)).next(),g.label=10;case 10:if(c.done)return[3,13];if(!(a=c.value).execute)return[3,12];return[4,a.execute(el({},t))];case 11:if(null===(s=g.sent()))return n({event:t,code:0,message:""}),[2];t=s,g.label=12;case 12:return c=u.next(),[3,10];case 13:return[3,16];case 14:return h={error:g.sent()},[3,16];case 15:try{c&&!c.done&&(p=u.return)&&p.call(u)}finally{if(h)throw h.error}return[7];case 16:return Promise.all(this.plugins.filter(function(e){return"destination"===e.type}).map(function(e){var n=el({},t);return e.execute(n).catch(function(e){return eD(n,0,String(e))})})).then(function(e){var r=eh(e,1)[0]||eD(t,100,"Event not tracked, no destination plugins on the instance");n(r)}),[2]}})})},e.prototype.flush=function(){return ec(this,void 0,void 0,function(){var e,t=this;return ed(this,function(n){switch(n.label){case 0:return e=this.queue,this.queue=[],[4,Promise.all(e.map(function(e){return t.apply(e)}))];case 1:return n.sent(),[4,Promise.all(this.plugins.filter(function(e){return"destination"===e.type}).map(function(e){return e.flush&&e.flush()}))];case 2:return n.sent(),[2]}})})},e.prototype.onIdentityChanged=function(e){this.plugins.forEach(function(t){var n;null===(n=t.onIdentityChanged)||void 0===n||n.call(t,e)})},e.prototype.onSessionIdChanged=function(e){this.plugins.forEach(function(t){var n;null===(n=t.onSessionIdChanged)||void 0===n||n.call(t,e)})},e.prototype.onOptOutChanged=function(e){this.plugins.forEach(function(t){var n;null===(n=t.onOptOutChanged)||void 0===n||n.call(t,e)})},e}(),e1=function(e,t){return el(el({},t),{event_type:B.IDENTIFY,user_properties:e.getUserProperties()})},e2=function(e,t,n,r){var i;return el(el({},r),{event_type:B.GROUP_IDENTIFY,group_properties:n.getUserProperties(),groups:((i={})[e]=t,i)})},e5=function(e,t,n){var r,i=new eY;return i.set(e,t),el(el({},n),{event_type:B.IDENTIFY,user_properties:i.getUserProperties(),groups:((r={})[e]=t,r)})},e4=function(){function e(e){void 0===e&&(e="$default"),this.initializing=!1,this.isReady=!1,this.q=[],this.dispatchQ=[],this.logEvent=this.track.bind(this),this.timeline=new e0(this),this.name=e}return e.prototype._init=function(e){return ec(this,void 0,void 0,function(){return ed(this,function(t){switch(t.label){case 0:return this.config=e,this.timeline.reset(this),[4,this.runQueuedFunctions("q")];case 1:return t.sent(),this.isReady=!0,[2]}})})},e.prototype.runQueuedFunctions=function(e){return ec(this,void 0,void 0,function(){var t,n,r,i,o,a;return ed(this,function(s){switch(s.label){case 0:t=this[e],this[e]=[],s.label=1;case 1:s.trys.push([1,8,9,10]),r=(n=ef(t)).next(),s.label=2;case 2:if(r.done)return[3,7];if(!((i=(0,r.value)())&&"promise"in i))return[3,4];return[4,i.promise];case 3:return s.sent(),[3,6];case 4:return[4,i];case 5:s.sent(),s.label=6;case 6:return r=n.next(),[3,2];case 7:return[3,10];case 8:return o={error:s.sent()},[3,10];case 9:try{r&&!r.done&&(a=n.return)&&a.call(n)}finally{if(o)throw o.error}return[7];case 10:if(!this[e].length)return[3,12];return[4,this.runQueuedFunctions(e)];case 11:s.sent(),s.label=12;case 12:return[2]}})})},e.prototype.track=function(e,t,n){var r=el(el(el({},"string"==typeof e?{event_type:e}:e),n),t&&{event_properties:t});return ev(this.dispatch(r))},e.prototype.identify=function(e,t){var n=e1(e,t);return ev(this.dispatch(n))},e.prototype.groupIdentify=function(e,t,n,r){var i=e2(e,t,n,r);return ev(this.dispatch(i))},e.prototype.setGroup=function(e,t,n){var r=e5(e,t,n);return ev(this.dispatch(r))},e.prototype.revenue=function(e,t){var n=el(el({},t),{event_type:B.REVENUE,event_properties:e.getEventProperties()});return ev(this.dispatch(n))},e.prototype.add=function(e){return this.isReady?this._addPlugin(e):(this.q.push(this._addPlugin.bind(this,e)),ev())},e.prototype._addPlugin=function(e){return ev(this.timeline.register(e,this.config))},e.prototype.remove=function(e){return this.isReady?this._removePlugin(e):(this.q.push(this._removePlugin.bind(this,e)),ev())},e.prototype._removePlugin=function(e){return ev(this.timeline.deregister(e,this.config))},e.prototype.dispatchWithCallback=function(e,t){if(!this.isReady)return t(eD(e,0,"Client not initialized"));this.process(e).then(t)},e.prototype.dispatch=function(e){return ec(this,void 0,void 0,function(){var t=this;return ed(this,function(n){return this.isReady?[2,this.process(e)]:[2,new Promise(function(n){t.dispatchQ.push(t.dispatchWithCallback.bind(t,e,n))})]})})},e.prototype.getOperationAppliedUserProperties=function(e){var t={};if(void 0===e)return t;var n={};return Object.keys(e).forEach(function(t){Object.values(U).includes(t)||(n[t]=e[t])}),eX.forEach(function(n){if(Object.keys(e).includes(n)){var r=e[n];switch(n){case U.CLEAR_ALL:Object.keys(t).forEach(function(e){delete t[e]});break;case U.UNSET:Object.keys(r).forEach(function(e){delete t[e]});break;case U.SET:Object.assign(t,r)}}}),Object.assign(t,n),t},e.prototype.process=function(e){return ec(this,void 0,void 0,function(){var t,n,r;return ed(this,function(i){switch(i.label){case 0:if(i.trys.push([0,2,,3]),this.config.optOut)return[2,eD(e,0,"Event skipped due to optOut config")];return e.event_type===B.IDENTIFY&&(t=this.getOperationAppliedUserProperties(e.user_properties),this.timeline.onIdentityChanged({userProperties:t})),[4,this.timeline.push(e)];case 1:return 200===(n=i.sent()).code?this.config.loggerProvider.log(n.message):100===n.code?this.config.loggerProvider.warn(n.message):this.config.loggerProvider.error(n.message),[2,n];case 2:return r=String(i.sent()),this.config.loggerProvider.error(r),[2,n=eD(e,0,r)];case 3:return[2]}})})},e.prototype.setOptOut=function(e){if(!this.isReady){this.q.push(this._setOptOut.bind(this,!!e));return}this._setOptOut(e)},e.prototype._setOptOut=function(e){this.config.optOut!==e&&(this.timeline.onOptOutChanged(e),this.config.optOut=!!e)},e.prototype.flush=function(){return ev(this.timeline.flush())},e.prototype.plugin=function(e){var t=this.timeline.plugins.find(function(t){return t.name===e});if(void 0===t){this.config.loggerProvider.debug("Cannot find plugin with name ".concat(e));return}return t},e.prototype.plugins=function(e){return this.timeline.plugins.filter(function(t){return t instanceof e})},e}(),e3=function(e,t){return"boolean"==typeof e?e:(null==e?void 0:e[t])!==!1},e6=function(e){return e3(e,"attribution")},e8=function(e){return e3(e,"pageViews")},e7=function(e){return e3(e,"sessions")},e9=function(e){return"object"==typeof e&&(!0===e.networkTracking||"object"==typeof e.networkTracking)},te=function(e){return"boolean"==typeof e?e:"object"==typeof e&&(!0===e.elementInteractions||"object"==typeof e.elementInteractions)},tt=function(e){if(te(e.autocapture)&&"object"==typeof e.autocapture&&"object"==typeof e.autocapture.elementInteractions)return e.autocapture.elementInteractions},tn=function(e){if(e9(e.autocapture)){if("object"==typeof e.autocapture&&"object"==typeof e.autocapture.networkTracking)return e.autocapture.networkTracking;if(e.networkTrackingOptions)return e.networkTrackingOptions}},tr=function(e){var t,n=function(){return!1},r=void 0,i=e.pageCounter;return e8(e.defaultTracking)&&(n=void 0,t=void 0,e.defaultTracking&&"object"==typeof e.defaultTracking&&e.defaultTracking.pageViews&&"object"==typeof e.defaultTracking.pageViews&&("trackOn"in e.defaultTracking.pageViews&&(n=e.defaultTracking.pageViews.trackOn),"trackHistoryChanges"in e.defaultTracking.pageViews&&(r=e.defaultTracking.pageViews.trackHistoryChanges),"eventType"in e.defaultTracking.pageViews&&e.defaultTracking.pageViews.eventType&&(t=e.defaultTracking.pageViews.eventType))),{trackOn:n,trackHistoryChanges:r,eventType:t,pageCounter:i}},ti=function(e,t){for(var n=0;n<t.length;n++){var r=t[n],i=r.name,o=r.args,a=r.resolve,s=e&&e[i];if("function"==typeof s){var l=s.apply(e,o);"function"==typeof a&&a(null==l?void 0:l.promise)}}return e},to=function(e){return e&&void 0!==e._q},ta=function(){if("undefined"==typeof navigator)return"";var e,t,n,r,i=navigator.userLanguage;return null!==(r=null!==(n=null!==(t=null===(e=navigator.languages)||void 0===e?void 0:e[0])&&void 0!==t?t:navigator.language)&&void 0!==n?n:i)&&void 0!==r?r:""},ts="2.17.8",tl=function(){function e(){this.name="@amplitude/plugin-context-browser",this.type="before",this.library="".concat("amplitude-ts","/").concat(ts),"undefined"!=typeof navigator&&(this.userAgent=navigator.userAgent)}return e.prototype.setup=function(e){return this.config=e,Promise.resolve(void 0)},e.prototype.execute=function(e){var t,n;return ec(this,void 0,void 0,function(){var r,i,o;return ed(this,function(a){return r=new Date().getTime(),i=null!==(t=this.config.lastEventId)&&void 0!==t?t:-1,o=null!==(n=e.event_id)&&void 0!==n?n:i+1,this.config.lastEventId=o,e.time||(this.config.lastEventTime=r),[2,el(el(el(el(el(el(el(el({user_id:this.config.userId,device_id:this.config.deviceId,session_id:this.config.sessionId,time:r},this.config.appVersion&&{app_version:this.config.appVersion}),this.config.trackingOptions.platform&&{platform:"Web"}),this.config.trackingOptions.language&&{language:ta()}),this.config.trackingOptions.ipAddress&&{ip:"$remote"}),{insert_id:eH(),partner_id:this.config.partnerId,plan:this.config.plan}),this.config.ingestionMetadata&&{ingestion_metadata:{source_name:this.config.ingestionMetadata.sourceName,source_version:this.config.ingestionMetadata.sourceVersion}}),e),{event_id:o,library:this.library,user_agent:this.userAgent})]})})},e}(),tu=function(){function e(){this.memoryStorage=new Map}return e.prototype.isEnabled=function(){return ec(this,void 0,void 0,function(){return ed(this,function(e){return[2,!0]})})},e.prototype.get=function(e){return ec(this,void 0,void 0,function(){return ed(this,function(t){return[2,this.memoryStorage.get(e)]})})},e.prototype.getRaw=function(e){return ec(this,void 0,void 0,function(){var t;return ed(this,function(n){switch(n.label){case 0:return[4,this.get(e)];case 1:return[2,(t=n.sent())?JSON.stringify(t):void 0]}})})},e.prototype.set=function(e,t){return ec(this,void 0,void 0,function(){return ed(this,function(n){return this.memoryStorage.set(e,t),[2]})})},e.prototype.remove=function(e){return ec(this,void 0,void 0,function(){return ed(this,function(t){return this.memoryStorage.delete(e),[2]})})},e.prototype.reset=function(){return ec(this,void 0,void 0,function(){return ed(this,function(e){return this.memoryStorage.clear(),[2]})})},e}(),tc=function(e,t,n){return void 0===t&&(t=""),void 0===n&&(n=10),["AMP",t,e.substring(0,n)].filter(Boolean).join("_")},td=function(){function e(e){this.options=el({},e)}return e.prototype.isEnabled=function(){return ec(this,void 0,void 0,function(){var t,n;return ed(this,function(r){switch(r.label){case 0:if(!em())return[2,!1];e.testValue=String(Date.now()),t=new e(this.options),n="AMP_TEST",r.label=1;case 1:return r.trys.push([1,4,5,7]),[4,t.set(n,e.testValue)];case 2:return r.sent(),[4,t.get(n)];case 3:return[2,r.sent()===e.testValue];case 4:return r.sent(),[2,!1];case 5:return[4,t.remove(n)];case 6:return r.sent(),[7];case 7:return[2]}})})},e.prototype.get=function(e){var t;return ec(this,void 0,void 0,function(){var n,r;return ed(this,function(i){switch(i.label){case 0:return[4,this.getRaw(e)];case 1:if(!(n=i.sent()))return[2,void 0];try{if(r=null!==(t=tf(n))&&void 0!==t?t:th(n),void 0===r)return console.error("Amplitude Logger [Error]: Failed to decode cookie value for key: ".concat(e,", value: ").concat(n)),[2,void 0];return[2,JSON.parse(r)]}catch(t){return console.error("Amplitude Logger [Error]: Failed to parse cookie value for key: ".concat(e,", value: ").concat(n)),[2,void 0]}return[2]}})})},e.prototype.getRaw=function(e){var t,n;return ec(this,void 0,void 0,function(){var r,i;return ed(this,function(o){return(i=(null!==(n=null===(t=null==(r=em())?void 0:r.document)||void 0===t?void 0:t.cookie.split("; "))&&void 0!==n?n:[]).find(function(t){return 0===t.indexOf(e+"=")}))?[2,i.substring(e.length+1)]:[2,void 0]})})},e.prototype.set=function(e,t){var n;return ec(this,void 0,void 0,function(){var r,i,o,a,s,l,u;return ed(this,function(c){try{r=null!==(n=this.options.expirationDays)&&void 0!==n?n:0,i=null!==t?r:-1,o=void 0,i&&((a=new Date).setTime(a.getTime()+864e5*i),o=a),s="".concat(e,"=").concat(btoa(encodeURIComponent(JSON.stringify(t)))),o&&(s+="; expires=".concat(o.toUTCString())),s+="; path=/",this.options.domain&&(s+="; domain=".concat(this.options.domain)),this.options.secure&&(s+="; Secure"),this.options.sameSite&&(s+="; SameSite=".concat(this.options.sameSite)),(l=em())&&(l.document.cookie=s)}catch(t){u=t instanceof Error?t.message:String(t),console.error("Amplitude Logger [Error]: Failed to set cookie for key: ".concat(e,". Error: ").concat(u))}return[2]})})},e.prototype.remove=function(e){return ec(this,void 0,void 0,function(){return ed(this,function(t){switch(t.label){case 0:return[4,this.set(e,null)];case 1:return t.sent(),[2]}})})},e.prototype.reset=function(){return ec(this,void 0,void 0,function(){return ed(this,function(e){return[2]})})},e}(),tf=function(e){try{return decodeURIComponent(atob(e))}catch(e){return}},th=function(e){try{return decodeURIComponent(atob(decodeURIComponent(e)))}catch(e){return}},tp=function(){function e(){}return e.prototype.send=function(e,t){return Promise.resolve(null)},e.prototype.buildResponse=function(e){if("object"!=typeof e)return null;var t,n,r,i,o,a,s,l,u,c,d,f,h,p,g,v,m,b,y,x,w,E,S=e.code||0,k=this.buildStatus(S);switch(k){case F.Success:return{status:k,statusCode:S,body:{eventsIngested:null!==(t=e.events_ingested)&&void 0!==t?t:0,payloadSizeBytes:null!==(n=e.payload_size_bytes)&&void 0!==n?n:0,serverUploadTime:null!==(r=e.server_upload_time)&&void 0!==r?r:0}};case F.Invalid:return{status:k,statusCode:S,body:{error:null!==(i=e.error)&&void 0!==i?i:"",missingField:null!==(o=e.missing_field)&&void 0!==o?o:"",eventsWithInvalidFields:null!==(a=e.events_with_invalid_fields)&&void 0!==a?a:{},eventsWithMissingFields:null!==(s=e.events_with_missing_fields)&&void 0!==s?s:{},eventsWithInvalidIdLengths:null!==(l=e.events_with_invalid_id_lengths)&&void 0!==l?l:{},epsThreshold:null!==(u=e.eps_threshold)&&void 0!==u?u:0,exceededDailyQuotaDevices:null!==(c=e.exceeded_daily_quota_devices)&&void 0!==c?c:{},silencedDevices:null!==(d=e.silenced_devices)&&void 0!==d?d:[],silencedEvents:null!==(f=e.silenced_events)&&void 0!==f?f:[],throttledDevices:null!==(h=e.throttled_devices)&&void 0!==h?h:{},throttledEvents:null!==(p=e.throttled_events)&&void 0!==p?p:[]}};case F.PayloadTooLarge:return{status:k,statusCode:S,body:{error:null!==(g=e.error)&&void 0!==g?g:""}};case F.RateLimit:return{status:k,statusCode:S,body:{error:null!==(v=e.error)&&void 0!==v?v:"",epsThreshold:null!==(m=e.eps_threshold)&&void 0!==m?m:0,throttledDevices:null!==(b=e.throttled_devices)&&void 0!==b?b:{},throttledUsers:null!==(y=e.throttled_users)&&void 0!==y?y:{},exceededDailyQuotaDevices:null!==(x=e.exceeded_daily_quota_devices)&&void 0!==x?x:{},exceededDailyQuotaUsers:null!==(w=e.exceeded_daily_quota_users)&&void 0!==w?w:{},throttledEvents:null!==(E=e.throttled_events)&&void 0!==E?E:[]}};case F.Timeout:default:return{status:k,statusCode:S}}},e.prototype.buildStatus=function(e){return e>=200&&e<300?F.Success:429===e?F.RateLimit:413===e?F.PayloadTooLarge:408===e?F.Timeout:e>=400&&e<500?F.Invalid:e>=500?F.Failed:F.Unknown},e}(),tg=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return es(t,e),t.prototype.send=function(e,t){return ec(this,void 0,void 0,function(){var n,r;return ed(this,function(i){switch(i.label){case 0:if("undefined"==typeof fetch)throw Error("FetchTransport is not supported");return[4,fetch(e,{headers:{"Content-Type":"application/json",Accept:"*/*"},body:JSON.stringify(t),method:"POST"})];case 1:return[4,(n=i.sent()).text()];case 2:r=i.sent();try{return[2,this.buildResponse(JSON.parse(r))]}catch(e){return[2,this.buildResponse({code:n.status})]}return[2]}})})},t}(tp),tv=function(){function e(e){this.storage=e}return e.prototype.isEnabled=function(){return ec(this,void 0,void 0,function(){var t,n,r;return ed(this,function(i){switch(i.label){case 0:if(!this.storage)return[2,!1];t=String(Date.now()),n=new e(this.storage),r="AMP_TEST",i.label=1;case 1:return i.trys.push([1,4,5,7]),[4,n.set(r,t)];case 2:return i.sent(),[4,n.get(r)];case 3:return[2,i.sent()===t];case 4:return i.sent(),[2,!1];case 5:return[4,n.remove(r)];case 6:return i.sent(),[7];case 7:return[2]}})})},e.prototype.get=function(e){return ec(this,void 0,void 0,function(){var t;return ed(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,this.getRaw(e)];case 1:if(!(t=n.sent()))return[2,void 0];return[2,JSON.parse(t)];case 2:return n.sent(),console.error("[Amplitude] Error: Could not get value from storage"),[2,void 0];case 3:return[2]}})})},e.prototype.getRaw=function(e){var t;return ec(this,void 0,void 0,function(){return ed(this,function(n){return[2,(null===(t=this.storage)||void 0===t?void 0:t.getItem(e))||void 0]})})},e.prototype.set=function(e,t){var n;return ec(this,void 0,void 0,function(){return ed(this,function(r){try{null===(n=this.storage)||void 0===n||n.setItem(e,JSON.stringify(t))}catch(e){}return[2]})})},e.prototype.remove=function(e){var t;return ec(this,void 0,void 0,function(){return ed(this,function(n){try{null===(t=this.storage)||void 0===t||t.removeItem(e)}catch(e){}return[2]})})},e.prototype.reset=function(){var e;return ec(this,void 0,void 0,function(){return ed(this,function(t){try{null===(e=this.storage)||void 0===e||e.clear()}catch(e){}return[2]})})},e}(),tm=function(e){function t(t){var n,r,i,o=this;try{i=null===(n=em())||void 0===n?void 0:n.localStorage}catch(e){null===(r=null==t?void 0:t.loggerProvider)||void 0===r||r.debug("Failed to access localStorage. error=".concat(JSON.stringify(e))),i=void 0}return(o=e.call(this,i)||this).loggerProvider=null==t?void 0:t.loggerProvider,o}return es(t,e),t.prototype.set=function(t,n){var r;return ec(this,void 0,void 0,function(){var i;return ed(this,function(o){switch(o.label){case 0:if(!(Array.isArray(n)&&n.length>1e3))return[3,2];return i=n.length-1e3,[4,e.prototype.set.call(this,t,n.slice(0,1e3))];case 1:return o.sent(),null===(r=this.loggerProvider)||void 0===r||r.error("Failed to save ".concat(i," events because the queue length exceeded ").concat(1e3,".")),[3,4];case 2:return[4,e.prototype.set.call(this,t,n)];case 3:o.sent(),o.label=4;case 4:return[2]}})})},t}(tv),tb=function(e){function t(){var t;return e.call(this,null===(t=em())||void 0===t?void 0:t.sessionStorage)||this}return es(t,e),t}(tv),ty=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={done:4},t}return es(t,e),t.prototype.send=function(e,t){return ec(this,void 0,void 0,function(){var n=this;return ed(this,function(r){return[2,new Promise(function(r,i){"undefined"==typeof XMLHttpRequest&&i(Error("XHRTransport is not supported."));var o=new XMLHttpRequest;o.open("POST",e,!0),o.onreadystatechange=function(){if(o.readyState===n.state.done){var e=o.responseText;try{r(n.buildResponse(JSON.parse(e)))}catch(e){r(n.buildResponse({code:o.status}))}}},o.setRequestHeader("Content-Type","application/json"),o.setRequestHeader("Accept","*/*"),o.send(JSON.stringify(t))})]})})},t}(tp),tx=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return es(t,e),t.prototype.send=function(e,t){return ec(this,void 0,void 0,function(){var n=this;return ed(this,function(r){return[2,new Promise(function(r,i){var o=em();if(!(null==o?void 0:o.navigator.sendBeacon))throw Error("SendBeaconTransport is not supported");try{var a=JSON.stringify(t);if(o.navigator.sendBeacon(e,JSON.stringify(t)))return r(n.buildResponse({code:200,events_ingested:t.events.length,payload_size_bytes:a.length,server_upload_time:Date.now()}));return r(n.buildResponse({code:500}))}catch(e){i(e)}})]})})},t}(tp),tw=function(e){var t=parseInt(e,32);if(!isNaN(t))return t},tE=function(e){if(atob&&escape&&e)try{return decodeURIComponent(escape(atob(e)))}catch(e){return}},tS="[Amplitude]",tk="".concat(tS," Form Started"),tO="".concat(tS," Form Submitted"),tC="".concat(tS," File Downloaded"),tI="session_start",t_="session_end",tT="".concat(tS," File Extension"),tP="".concat(tS," File Name"),tR="".concat(tS," Link ID"),tA="".concat(tS," Link Text"),tN="".concat(tS," Link URL"),tM="".concat(tS," Form ID"),tL="".concat(tS," Form Name"),tD="".concat(tS," Form Destination"),tF="cookie",tV=function(e){function t(t,n,r,i,o,a,s,l,u,c,d,f,h,p,g,v,m,b,y,x,w,E,S,k,O,C,I,_,T,P,R,A,N,M,L){void 0===r&&(r=new tu),void 0===i&&(i={domain:"",expiration:365,sameSite:"Lax",secure:!1,upgrade:!0}),void 0===l&&(l=1e3),void 0===u&&(u=5),void 0===c&&(c=30),void 0===d&&(d=tF),void 0===v&&(v=new eV),void 0===m&&(m=V.Warn),void 0===y&&(y=!1),void 0===x&&(x=!1),void 0===S&&(S=""),void 0===k&&(k="US"),void 0===C&&(C=18e5),void 0===I&&(I=new tm({loggerProvider:v})),void 0===_&&(_={ipAddress:!0,language:!0,platform:!0}),void 0===T&&(T="fetch"),void 0===P&&(P=!1),void 0===R&&(R=!0);var D=e.call(this,{apiKey:t,storageProvider:I,transportProvider:tz(T)})||this;return D.apiKey=t,D.appVersion=n,D.cookieOptions=i,D.defaultTracking=o,D.autocapture=a,D.flushIntervalMillis=l,D.flushMaxRetries=u,D.flushQueueSize=c,D.identityStorage=d,D.ingestionMetadata=f,D.instanceName=h,D.loggerProvider=v,D.logLevel=m,D.minIdLength=b,D.offline=y,D.partnerId=w,D.plan=E,D.serverUrl=S,D.serverZone=k,D.sessionTimeout=C,D.storageProvider=I,D.trackingOptions=_,D.transport=T,D.useBatch=P,D.fetchRemoteConfig=R,D.networkTrackingOptions=L,D.version=ts,D._optOut=!1,D._cookieStorage=r,D.deviceId=s,D.lastEventId=p,D.lastEventTime=g,D.optOut=x,D.sessionId=O,D.pageCounter=N,D.userId=A,D.debugLogsEnabled=M,D.loggerProvider.enable(M?V.Debug:D.logLevel),D.networkTrackingOptions=L,D}return es(t,e),Object.defineProperty(t.prototype,"cookieStorage",{get:function(){return this._cookieStorage},set:function(e){this._cookieStorage!==e&&(this._cookieStorage=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"deviceId",{get:function(){return this._deviceId},set:function(e){this._deviceId!==e&&(this._deviceId=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"userId",{get:function(){return this._userId},set:function(e){this._userId!==e&&(this._userId=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sessionId",{get:function(){return this._sessionId},set:function(e){this._sessionId!==e&&(this._sessionId=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"optOut",{get:function(){return this._optOut},set:function(e){this._optOut!==e&&(this._optOut=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastEventTime",{get:function(){return this._lastEventTime},set:function(e){this._lastEventTime!==e&&(this._lastEventTime=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastEventId",{get:function(){return this._lastEventId},set:function(e){this._lastEventId!==e&&(this._lastEventId=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pageCounter",{get:function(){return this._pageCounter},set:function(e){this._pageCounter!==e&&(this._pageCounter=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"debugLogsEnabled",{set:function(e){this._debugLogsEnabled!==e&&(this._debugLogsEnabled=e,this.updateStorage())},enumerable:!1,configurable:!0}),t.prototype.updateStorage=function(){var e={deviceId:this._deviceId,userId:this._userId,sessionId:this._sessionId,optOut:this._optOut,lastEventTime:this._lastEventTime,lastEventId:this._lastEventId,pageCounter:this._pageCounter,debugLogsEnabled:this._debugLogsEnabled};this.cookieStorage.set(tc(this.apiKey),e)},t}(ez),tj=function(e,t){switch(void 0===e&&(e=tF),void 0===t&&(t={}),e){case"localStorage":return new tm;case"sessionStorage":return new tb;case"none":return new tu;default:return new td(el(el({},t),{expirationDays:t.expiration}))}},tz=function(e){return"xhr"===e?new ty:"beacon"===e?new tx:new tg},tU=function(){var e="ampIntegrationContext";return"undefined"!=typeof globalThis&&void 0!==globalThis[e]?globalThis[e]:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof self?self:void 0!==n.g?n.g:void 0},tB=function(){var e,t=tU();return(null===(e=null==t?void 0:t.location)||void 0===e?void 0:e.search)?t.location.search.substring(1).split("&").filter(Boolean).reduce(function(e,t){var n=t.split("=",2),r=tW(n[0]),i=tW(n[1]);return i&&(e[r]=i),e},{}):{}},tW=function(e){void 0===e&&(e="");try{return decodeURIComponent(e)}catch(e){return""}},tH="dclid",t$="fbclid",tq="gbraid",tG="gclid",tK="ko_click_id",tZ="li_fat_id",tY="msclkid",tX="rtd_cid",tQ="ttclid",tJ="twclid",t0="wbraid",t1={utm_campaign:void 0,utm_content:void 0,utm_id:void 0,utm_medium:void 0,utm_source:void 0,utm_term:void 0,referrer:void 0,referring_domain:void 0,dclid:void 0,gbraid:void 0,gclid:void 0,fbclid:void 0,ko_click_id:void 0,li_fat_id:void 0,msclkid:void 0,rtd_cid:void 0,ttclid:void 0,twclid:void 0,wbraid:void 0},t2=function(){function e(){}return e.prototype.parse=function(){return ec(this,void 0,void 0,function(){return ed(this,function(e){return[2,el(el(el(el({},t1),this.getUtmParam()),this.getReferrer()),this.getClickIds())]})})},e.prototype.getUtmParam=function(){var e=tB();return{utm_campaign:e.utm_campaign,utm_content:e.utm_content,utm_id:e.utm_id,utm_medium:e.utm_medium,utm_source:e.utm_source,utm_term:e.utm_term}},e.prototype.getReferrer=function(){var e,t,n={referrer:void 0,referring_domain:void 0};try{n.referrer=document.referrer||void 0,n.referring_domain=null!==(t=null===(e=n.referrer)||void 0===e?void 0:e.split("/")[2])&&void 0!==t?t:void 0}catch(e){}return n},e.prototype.getClickIds=function(){var e,t=tB();return(e={})[tH]=t[tH],e[t$]=t[t$],e[tq]=t[tq],e[tG]=t[tG],e[tK]=t[tK],e[tZ]=t[tZ],e[tY]=t[tY],e[tX]=t[tX],e[tQ]=t[tQ],e[tJ]=t[tJ],e[t0]=t[t0],e},e}();(p=W||(W={})).SET="$set",p.SET_ONCE="$setOnce",p.ADD="$add",p.APPEND="$append",p.PREPEND="$prepend",p.REMOVE="$remove",p.PREINSERT="$preInsert",p.POSTINSERT="$postInsert",p.UNSET="$unset",p.CLEAR_ALL="$clearAll",(g=H||(H={})).REVENUE_PRODUCT_ID="$productId",g.REVENUE_QUANTITY="$quantity",g.REVENUE_PRICE="$price",g.REVENUE_TYPE="$revenueType",g.REVENUE_CURRENCY="$currency",g.REVENUE="$revenue",(v=$||($={})).IDENTIFY="$identify",v.GROUP_IDENTIFY="$groupidentify",v.REVENUE="revenue_amount";var t5=function(e){var t={};for(var n in e){var r=e[n];r&&(t[n]=r)}return t},t4=function(e){void 0===e&&(e={});var t,n,r=tU(),i=void 0,o=!1,a=e.trackOn,s=e.trackHistoryChanges,l=e.eventType,u=void 0===l?"[Amplitude] Page Viewed":l,c=function(e){var t=e;try{t=decodeURI(e)}catch(e){null==i||i.error("Malformed URI sequence: ",e)}return t},d=function(){return ec(void 0,void 0,void 0,function(){var e,t,n;return ed(this,function(r){switch(r.label){case 0:return e=c("undefined"!=typeof location&&location.href||""),n={event_type:u},t=[{}],[4,t3()];case 1:return[2,(n.event_properties=el.apply(void 0,[el.apply(void 0,t.concat([r.sent()])),{"[Amplitude] Page Domain":"undefined"!=typeof location&&location.hostname||"","[Amplitude] Page Location":e,"[Amplitude] Page Path":"undefined"!=typeof location&&c(location.pathname)||"","[Amplitude] Page Title":"undefined"!=typeof document&&document.title||"","[Amplitude] Page URL":e.split("?")[0]}]),n)]}})})},f=function(){return void 0===a||"function"==typeof a&&a()},h="undefined"!=typeof location?location.href:null,p=function(){return ec(void 0,void 0,void 0,function(){var e,n,r,o;return ed(this,function(a){switch(a.label){case 0:if(n=t8(s,e=location.href,h||"")&&f(),h=e,!n)return[3,4];if(null==i||i.log("Tracking page view event"),null!=t)return[3,1];return[3,3];case 1:return o=(r=t).track,[4,d()];case 2:o.apply(r,[a.sent()]),a.label=3;case 3:a.label=4;case 4:return[2]}})})},g=function(){p()};return{name:"@amplitude/plugin-page-view-tracking-browser",type:"enrichment",setup:function(e,a){return ec(void 0,void 0,void 0,function(){var s,l;return ed(this,function(u){switch(u.label){case 0:if(t=a,n=e,(i=e.loggerProvider).log("Installing @amplitude/plugin-page-view-tracking-browser"),o=!0,r&&(r.addEventListener("popstate",g),r.history.pushState=new Proxy(r.history.pushState,{apply:function(e,t,n){var r=eh(n,3),i=r[0],a=r[1],s=r[2];e.apply(t,[i,a,s]),o&&p()}})),!f())return[3,2];return i.log("Tracking page view event"),l=(s=t).track,[4,d()];case 1:l.apply(s,[u.sent()]),u.label=2;case 2:return[2]}})})},execute:function(e){return ec(void 0,void 0,void 0,function(){var t;return ed(this,function(r){switch(r.label){case 0:if(!("attribution"===a&&t6(e)))return[3,2];return null==i||i.log("Enriching campaign event to page view event with campaign parameters"),[4,d()];case 1:t=r.sent(),e.event_type=t.event_type,e.event_properties=el(el({},e.event_properties),t.event_properties),r.label=2;case 2:return n&&e.event_type===u&&(n.pageCounter=n.pageCounter?n.pageCounter+1:1,e.event_properties=el(el({},e.event_properties),{"[Amplitude] Page Counter":n.pageCounter})),[2,e]}})})},teardown:function(){return ec(void 0,void 0,void 0,function(){return ed(this,function(e){return r&&(r.removeEventListener("popstate",g),o=!1),[2]})})}}},t3=function(){return ec(void 0,void 0,void 0,function(){var e;return ed(this,function(t){switch(t.label){case 0:return e=t5,[4,new t2().parse()];case 1:return[2,e.apply(void 0,[t.sent()])]}})})},t6=function(e){if("$identify"===e.event_type&&e.user_properties){var t=e.user_properties,n=t[W.SET]||{},r=t[W.UNSET]||{},i=ep(ep([],eh(Object.keys(n)),!1),eh(Object.keys(r)),!1);return Object.keys(t1).every(function(e){return i.includes(e)})}return!1},t8=function(e,t,n){if("pathOnly"===e){if(""==n)return!0;var r=new URL(t),i=new URL(n);return r.origin+r.pathname!==i.origin+i.pathname}return t!==n},t7=function(){var e,t=[],n=function(e,n,r){e.addEventListener(n,r),t.push({element:e,type:n,handler:r})},r=function(){t.forEach(function(e){var t=e.element,n=e.type,r=e.handler;null==t||t.removeEventListener(n,r)}),t=[]};return{name:"@amplitude/plugin-form-interaction-tracking-browser",type:"enrichment",setup:function(t,r){return ec(void 0,void 0,void 0,function(){var i,o;return ed(this,function(a){return i=function(){if(!r){t.loggerProvider.warn("Form interaction tracking requires a later version of @amplitude/analytics-browser. Form interaction events are not tracked.");return}if("undefined"!=typeof document){var i=function(e){var t=!1;n(e,"change",function(){var n,i=ne(e);t||r.track(tk,((n={})[tM]=t9(e.id),n[tL]=t9(e.name),n[tD]=i,n)),t=!0}),n(e,"submit",function(){var n,i,o=ne(e);t||r.track(tk,((n={})[tM]=t9(e.id),n[tL]=t9(e.name),n[tD]=o,n)),r.track(tO,((i={})[tM]=t9(e.id),i[tL]=t9(e.name),i[tD]=o,i)),t=!1})};Array.from(document.getElementsByTagName("form")).forEach(i),"undefined"!=typeof MutationObserver&&(e=new MutationObserver(function(e){e.forEach(function(e){e.addedNodes.forEach(function(e){"FORM"===e.nodeName&&i(e),"querySelectorAll"in e&&"function"==typeof e.querySelectorAll&&Array.from(e.querySelectorAll("form")).map(i)})})})).observe(document.body,{subtree:!0,childList:!0})}},"complete"===document.readyState?i():(o=em())?o.addEventListener("load",i):t.loggerProvider.debug("Form interaction tracking is not installed because global is undefined."),[2]})})},execute:function(e){return ec(void 0,void 0,void 0,function(){return ed(this,function(t){return[2,e]})})},teardown:function(){return ec(void 0,void 0,void 0,function(){return ed(this,function(t){return null==e||e.disconnect(),r(),[2]})})}}},t9=function(e){if("string"==typeof e)return e},ne=function(e){var t=e.getAttribute("action");try{t=new URL(encodeURI(null!=t?t:""),window.location.href).href}catch(e){}return t},nt=function(){var e,t=[],n=function(e,n,r){e.addEventListener(n,r),t.push({element:e,type:n,handler:r})},r=function(){t.forEach(function(e){var t=e.element,n=e.type,r=e.handler;null==t||t.removeEventListener(n,r)}),t=[]};return{name:"@amplitude/plugin-file-download-tracking-browser",type:"enrichment",setup:function(t,r){return ec(void 0,void 0,void 0,function(){var i,o;return ed(this,function(a){return i=function(){if(!r){t.loggerProvider.warn("File download tracking requires a later version of @amplitude/analytics-browser. File download events are not tracked.");return}if("undefined"!=typeof document){var i=function(e){try{t=new URL(e.href,window.location.href)}catch(e){return}var t,i=o.exec(t.href),a=null==i?void 0:i[1];a&&n(e,"click",function(){var n;a&&r.track(tC,((n={})[tT]=a,n[tP]=t.pathname,n[tR]=e.id,n[tA]=e.text,n[tN]=e.href,n))})},o=/\.(pdf|xlsx?|docx?|txt|rtf|csv|exe|key|pp(s|t|tx)|7z|pkg|rar|gz|zip|avi|mov|mp4|mpe?g|wmv|midi?|mp3|wav|wma)(\?.+)?$/;Array.from(document.getElementsByTagName("a")).forEach(i),"undefined"!=typeof MutationObserver&&(e=new MutationObserver(function(e){e.forEach(function(e){e.addedNodes.forEach(function(e){"A"===e.nodeName&&i(e),"querySelectorAll"in e&&"function"==typeof e.querySelectorAll&&Array.from(e.querySelectorAll("a")).map(i)})})})).observe(document.body,{subtree:!0,childList:!0})}},"complete"===document.readyState?i():(o=em())?o.addEventListener("load",i):t.loggerProvider.debug("File download tracking is not installed because global is undefined."),[2]})})},execute:function(e){return ec(void 0,void 0,void 0,function(){return ed(this,function(t){return[2,e]})})},teardown:function(){return ec(void 0,void 0,void 0,function(){return ed(this,function(t){return null==e||e.disconnect(),r(),[2]})})}}},nn=!1,nr=function(e){nn||void 0!==e.defaultTracking||(e.loggerProvider.warn("`options.defaultTracking` is set to undefined. This implicitly configures your Amplitude instance to track Page Views, Sessions, File Downloads, and Form Interactions. You can suppress this warning by explicitly setting a value to `options.defaultTracking`. The value must either be a boolean, to enable and disable all default events, or an object, for advanced configuration. For example:\n\namplitude.init(<YOUR_API_KEY>, {\n defaultTracking: true,\n});\n\nVisit https://www.docs.developers.amplitude.com/data/sdks/browser-2/#tracking-default-events for more details."),nn=!0)},ni=function(){var e=em(),t=[],n=function(n,r){e&&(e.addEventListener(n,r),t.push({type:n,handler:r}))},r=function(){t.forEach(function(t){var n=t.type,r=t.handler;e&&e.removeEventListener(n,r)}),t=[]};return{name:"@amplitude/plugin-network-checker-browser",type:"before",setup:function(e,t){return ec(void 0,void 0,void 0,function(){return ed(this,function(r){return"undefined"==typeof navigator?(e.loggerProvider.debug("Network connectivity checker plugin is disabled because navigator is not available."),e.offline=!1):(e.offline=!navigator.onLine,n("online",function(){e.loggerProvider.debug("Network connectivity changed to online."),e.offline=!1,setTimeout(function(){t.flush()},e.flushIntervalMillis)}),n("offline",function(){e.loggerProvider.debug("Network connectivity changed to offline."),e.offline=!0})),[2]})})},teardown:function(){return ec(void 0,void 0,void 0,function(){return ed(this,function(e){return r(),[2]})})}}};(m=q||(q={})).Unknown="unknown",m.Skipped="skipped",m.Success="success",m.RateLimit="rate_limit",m.PayloadTooLarge="payload_too_large",m.Invalid="invalid",m.Failed="failed",m.Timeout="Timeout",m.SystemError="SystemError",(b=G||(G={})).US="US",b.EU="EU";var no="Remote config fetch rejected due to timeout after 5 seconds",na="Unexpected error occurred",ns=function(){function e(e){var t=e.localConfig,n=e.configKeys,r=this;this.retryTimeout=1e3,this.attempts=0,this.sessionTargetingMatch=!1,this.metrics={},this.getRemoteConfig=function(e,t,n){return ec(r,void 0,void 0,function(){var r,i,o;return ed(this,function(a){switch(a.label){case 0:return r=Date.now(),[4,this.fetchWithTimeout(n)];case 1:if((i=a.sent())&&(o=i.configs&&i.configs[e]))return this.metrics.fetchTimeAPISuccess=Date.now()-r,[2,o[t]];return this.metrics.fetchTimeAPIFail=Date.now()-r,[2,void 0]}})})},this.fetchWithTimeout=function(e){return ec(r,void 0,void 0,function(){var t,n,r;return ed(this,function(i){switch(i.label){case 0:return t=new AbortController,n=setTimeout(function(){return t.abort()},5e3),[4,this.fetchRemoteConfig(t.signal,e)];case 1:return r=i.sent(),clearTimeout(n),[2,r]}})})},this.fetchRemoteConfig=function(e,t){return ec(r,void 0,void 0,function(){var n,r,i,o,a,s,l,u,c,d,f;return ed(this,function(h){switch(h.label){case 0:if(t===this.lastFetchedSessionId&&this.attempts>=this.localConfig.flushMaxRetries)return[2,this.completeRequest({err:"Remote config fetch rejected due to exceeded retry count"})];if(e.aborted)return[2,this.completeRequest({err:no})];t!==this.lastFetchedSessionId&&(this.lastFetchedSessionId=t,this.attempts=0),h.label=1;case 1:h.trys.push([1,3,,4]),n=new URLSearchParams({api_key:this.localConfig.apiKey});try{for(i=(r=ef(this.configKeys)).next();!i.done;i=r.next())o=i.value,n.append("config_keys",o)}catch(e){c={error:e}}finally{try{i&&!i.done&&(d=r.return)&&d.call(r)}finally{if(c)throw c.error}}return t&&n.set("session_id",String(t)),a={headers:{Accept:"*/*"},method:"GET"},s="".concat(this.getServerUrl(),"?").concat(n.toString()),this.attempts+=1,[4,fetch(s,el(el({},a),{signal:e}))];case 2:if(null===(l=h.sent()))return[2,this.completeRequest({err:na})];switch(new tp().buildStatus(l.status)){case q.Success:return this.attempts=0,[2,this.parseAndStoreConfig(l)];case q.Failed:return[2,this.retryFetch(e,t)];default:return[2,this.completeRequest({err:"Network error occurred, remote config fetch failed"})]}return[3,4];case 3:if(u=h.sent(),e.aborted)return[2,this.completeRequest({err:no})];return[2,this.completeRequest({err:null!==(f=u.message)&&void 0!==f?f:na})];case 4:return[2]}})})},this.retryFetch=function(e,t){return ec(r,void 0,void 0,function(){var n=this;return ed(this,function(r){switch(r.label){case 0:return[4,new Promise(function(e){return setTimeout(e,n.attempts*n.retryTimeout)})];case 1:return r.sent(),[2,this.fetchRemoteConfig(e,t)]}})})},this.parseAndStoreConfig=function(e){return ec(r,void 0,void 0,function(){var t;return ed(this,function(n){switch(n.label){case 0:return[4,e.json()];case 1:return t=n.sent(),this.completeRequest({success:"Remote config successfully fetched"}),[2,t]}})})},this.localConfig=t,this.configKeys=n}return e.prototype.getServerUrl=function(){return this.localConfig.serverZone===G.STAGING?"https://sr-client-cfg.stag2.amplitude.com/config":this.localConfig.serverZone===G.EU?"https://sr-client-cfg.eu.amplitude.com/config":"https://sr-client-cfg.amplitude.com/config"},e.prototype.completeRequest=function(e){var t=e.err,n=e.success;if(t)throw Error(t);n&&this.localConfig.loggerProvider.log(n)},e}(),nl=function(e){var t=e.localConfig,n=e.configKeys;return ec(void 0,void 0,void 0,function(){return ed(this,function(e){return[2,new ns({localConfig:t,configKeys:n})]})})},nu=function(){function e(e){this.config=e,this.config.loggerProvider.debug("Local configuration before merging with remote config",JSON.stringify(this.config,null,2))}return e.prototype.initialize=function(){return ec(this,void 0,void 0,function(){var e;return ed(this,function(t){switch(t.label){case 0:return e=this,[4,nl({localConfig:this.config,configKeys:["analyticsSDK"]})];case 1:return e.remoteConfigFetch=t.sent(),[2]}})})},e.prototype.generateJoinedConfig=function(){var e,t,n,r,i,o;return ec(this,void 0,void 0,function(){var a,s,l,u,c,d,f,h,p,g,v,m,b;return ed(this,function(y){switch(y.label){case 0:if(y.trys.push([0,3,,4]),!(s=this.remoteConfigFetch))return[3,2];return[4,this.remoteConfigFetch.getRemoteConfig("analyticsSDK","browserSDK",this.config.sessionId)];case 1:s=y.sent(),y.label=2;case 2:if(a=s,this.config.loggerProvider.debug("Remote configuration:",JSON.stringify(a,null,2)),a&&"autocapture"in a){if("boolean"==typeof a.autocapture&&(this.config.autocapture=a.autocapture),"object"==typeof a.autocapture){if(l=el({},a.autocapture),void 0===this.config.autocapture&&(this.config.autocapture=a.autocapture),"object"==typeof a.autocapture.elementInteractions&&(null===(e=a.autocapture.elementInteractions.pageUrlAllowlistRegex)||void 0===e?void 0:e.length)){l.elementInteractions=el({},a.autocapture.elementInteractions),c=null!==(t=(u=l.elementInteractions).pageUrlAllowlist)&&void 0!==t?t:[],d=[];try{for(h=(f=ef(a.autocapture.elementInteractions.pageUrlAllowlistRegex)).next();!h.done;h=f.next()){p=h.value;try{d.push(new RegExp(p))}catch(e){this.config.loggerProvider.warn("Invalid regex pattern: ".concat(p),e)}}}catch(e){m={error:e}}finally{try{h&&!h.done&&(b=f.return)&&b.call(f)}finally{if(m)throw m.error}}g=c.concat(d),u.pageUrlAllowlist=g,delete u.pageUrlAllowlistRegex}"boolean"==typeof this.config.autocapture&&(this.config.autocapture=el({attribution:this.config.autocapture,fileDownloads:this.config.autocapture,formInteractions:this.config.autocapture,pageViews:this.config.autocapture,sessions:this.config.autocapture,elementInteractions:this.config.autocapture},l)),"object"==typeof this.config.autocapture&&(this.config.autocapture=el(el({},this.config.autocapture),l))}this.config.defaultTracking=this.config.autocapture}return this.config.loggerProvider.debug("Joined configuration: ",JSON.stringify(this.config,null,2)),null!==(n=(o=this.config).requestMetadata)&&void 0!==n||(o.requestMetadata=new eB),(null===(r=this.remoteConfigFetch)||void 0===r?void 0:r.metrics.fetchTimeAPISuccess)&&this.config.requestMetadata.recordHistogram("remote_config_fetch_time_API_success",this.remoteConfigFetch.metrics.fetchTimeAPISuccess),(null===(i=this.remoteConfigFetch)||void 0===i?void 0:i.metrics.fetchTimeAPIFail)&&this.config.requestMetadata.recordHistogram("remote_config_fetch_time_API_fail",this.remoteConfigFetch.metrics.fetchTimeAPIFail),[3,4];case 3:return v=y.sent(),this.config.loggerProvider.error("Failed to fetch remote configuration because of error: ",v),[3,4];case 4:return[2,this.config]}})})},e}(),nc=["a","button","input","select","textarea","label","video","audio",'[contenteditable="true" i]',"[data-amp-default-track]",".amp-default-track"],nd=["div","span","h1","h2","h3","h4","h5","h6"],nf="[Amplitude] Element Clicked",nh="[Amplitude] Element Tag",np="[Amplitude] Element Text",ng="[Amplitude] Page URL",nv="https://app.amplitude.com",nm={US:nv,EU:"https://app.eu.amplitude.com",STAGING:"https://apps.stag2.amplitude.com"},nb=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e};function ny(e){return"function"==typeof e}function nx(e){return ny(null==e?void 0:e.then)}function nw(e){var t=e(function(e){Error.call(e),e.stack=Error().stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var nE=nw(function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map(function(e,t){return t+1+") "+e.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=t}});function nS(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var nk=function(){var e;function t(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return t.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var e,t,n,r,i,o=this._parentage;if(o){if(this._parentage=null,Array.isArray(o))try{for(var a=ef(o),s=a.next();!s.done;s=a.next())s.value.remove(this)}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}else o.remove(this)}var l=this.initialTeardown;if(ny(l))try{l()}catch(e){i=e instanceof nE?e.errors:[e]}var u=this._finalizers;if(u){this._finalizers=null;try{for(var c=ef(u),d=c.next();!d.done;d=c.next()){var f=d.value;try{nI(f)}catch(e){i=null!=i?i:[],e instanceof nE?i=ep(ep([],eh(i)),eh(e.errors)):i.push(e)}}}catch(e){n={error:e}}finally{try{d&&!d.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}}if(i)throw new nE(i)}},t.prototype.add=function(e){var n;if(e&&e!==this){if(this.closed)nI(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!==(n=this._finalizers)&&void 0!==n?n:[]).push(e)}}},t.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},t.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},t.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&nS(t,e)},t.prototype.remove=function(e){var n=this._finalizers;n&&nS(n,e),e instanceof t&&e._removeParent(this)},t.EMPTY=((e=new t).closed=!0,e),t}(),nO=nk.EMPTY;function nC(e){return e instanceof nk||e&&"closed"in e&&ny(e.remove)&&ny(e.add)&&ny(e.unsubscribe)}function nI(e){ny(e)?e():e.unsubscribe()}var n_={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},nT={setTimeout:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=nT.delegate;return(null==i?void 0:i.setTimeout)?i.setTimeout.apply(i,ep([e,t],eh(n))):setTimeout.apply(void 0,ep([e,t],eh(n)))},clearTimeout:function(e){var t=nT.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function nP(e){nT.setTimeout(function(){var t=n_.onUnhandledError;if(t)t(e);else throw e})}function nR(){}var nA=nN("C",void 0,void 0);function nN(e,t,n){return{kind:e,value:t,error:n}}var nM=null;function nL(e){if(n_.useDeprecatedSynchronousErrorHandling){var t=!nM;if(t&&(nM={errorThrown:!1,error:null}),e(),t){var n=nM,r=n.errorThrown,i=n.error;if(nM=null,r)throw i}}else e()}var nD=function(e){function t(t){var n=e.call(this)||this;return n.isStopped=!1,t?(n.destination=t,nC(t)&&t.add(n)):n.destination=nW,n}return es(t,e),t.create=function(e,t,n){return new nz(e,t,n)},t.prototype.next=function(e){this.isStopped?nB(nN("N",e,void 0),this):this._next(e)},t.prototype.error=function(e){this.isStopped?nB(nN("E",void 0,e),this):(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped?nB(nA,this):(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(nk),nF=Function.prototype.bind;function nV(e,t){return nF.call(e,t)}var nj=function(){function e(e){this.partialObserver=e}return e.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){nU(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){nU(e)}else nU(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){nU(e)}},e}(),nz=function(e){function t(t,n,r){var i,o,a=e.call(this)||this;return ny(t)||!t?i={next:null!=t?t:void 0,error:null!=n?n:void 0,complete:null!=r?r:void 0}:a&&n_.useDeprecatedNextContext?((o=Object.create(t)).unsubscribe=function(){return a.unsubscribe()},i={next:t.next&&nV(t.next,o),error:t.error&&nV(t.error,o),complete:t.complete&&nV(t.complete,o)}):i=t,a.destination=new nj(i),a}return es(t,e),t}(nD);function nU(e){n_.useDeprecatedSynchronousErrorHandling?n_.useDeprecatedSynchronousErrorHandling&&nM&&(nM.errorThrown=!0,nM.error=e):nP(e)}function nB(e,t){var n=n_.onStoppedNotification;n&&nT.setTimeout(function(){return n(e,t)})}var nW={closed:!0,next:nR,error:function(e){throw e},complete:nR},nH="function"==typeof Symbol&&Symbol.observable||"@@observable";function n$(e){return e}var nq=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(e,t,n){var r,i=this,o=(r=e)&&r instanceof nD||r&&ny(r.next)&&ny(r.error)&&ny(r.complete)&&nC(r)?e:new nz(e,t,n);return nL(function(){var e=i.operator,t=i.source;o.add(e?e.call(o,t):t?i._subscribe(o):i._trySubscribe(o))}),o},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var n=this;return new(t=nG(t))(function(t,r){var i=new nz({next:function(t){try{e(t)}catch(e){r(e),i.unsubscribe()}},error:r,complete:t});n.subscribe(i)})},e.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},e.prototype[nH]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0===e.length?n$:1===e.length?e[0]:function(t){return e.reduce(function(e,t){return t(e)},t)})(this)},e.prototype.toPromise=function(e){var t=this;return new(e=nG(e))(function(e,n){var r;t.subscribe(function(e){return r=e},function(e){return n(e)},function(){return e(r)})})},e.create=function(t){return new e(t)},e}();function nG(e){var t;return null!==(t=null!=e?e:n_.Promise)&&void 0!==t?t:Promise}function nK(e){return Symbol.asyncIterator&&ny(null==e?void 0:e[Symbol.asyncIterator])}function nZ(e){return TypeError("You provided "+(null!==e&&"object"==typeof e?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}var nY="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator";function nX(e){return ny(null==e?void 0:e[nY])}function nQ(e){return function(e,t,n){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||[]),o=[];return r=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",function(e){return function(t){return Promise.resolve(t).then(e,u)}}),r[Symbol.asyncIterator]=function(){return this},r;function a(e,t){i[e]&&(r[e]=function(t){return new Promise(function(n,r){o.push([e,t,n,r])>1||s(e,t)})},t&&(r[e]=t(r[e])))}function s(e,t){try{var n;(n=i[e](t)).value instanceof eg?Promise.resolve(n.value.v).then(l,u):c(o[0][2],n)}catch(e){c(o[0][3],e)}}function l(e){s("next",e)}function u(e){s("throw",e)}function c(e,t){e(t),o.shift(),o.length&&s(o[0][0],o[0][1])}}(this,arguments,function(){var t,n,r;return ed(this,function(i){switch(i.label){case 0:t=e.getReader(),i.label=1;case 1:i.trys.push([1,,9,10]),i.label=2;case 2:return[4,eg(t.read())];case 3:if(r=(n=i.sent()).value,!n.done)return[3,5];return[4,eg(void 0)];case 4:return[2,i.sent()];case 5:return[4,eg(r)];case 6:return[4,i.sent()];case 7:return i.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}})})}function nJ(e){return ny(null==e?void 0:e.getReader)}function n0(e){if(e instanceof nq)return e;if(null!=e){if(ny(e[nH]))return new nq(function(t){var n=e[nH]();if(ny(n.subscribe))return n.subscribe(t);throw TypeError("Provided object does not correctly implement Symbol.observable")});if(nb(e))return new nq(function(t){for(var n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()});if(nx(e))return new nq(function(t){e.then(function(e){t.closed||(t.next(e),t.complete())},function(e){return t.error(e)}).then(null,nP)});if(nK(e))return n1(e);if(nX(e))return new nq(function(t){var n,r;try{for(var i=ef(e),o=i.next();!o.done;o=i.next()){var a=o.value;if(t.next(a),t.closed)return}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}t.complete()});if(nJ(e))return n1(nQ(e))}throw nZ(e)}function n1(e){return new nq(function(t){(function(e,t){var n,r,i,o;return ec(this,void 0,void 0,function(){var a;return ed(this,function(s){switch(s.label){case 0:s.trys.push([0,5,6,11]),n=function(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=ef(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise(function(r,i){(function(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)})(r,i,(t=e[n](t)).done,t.value)})}}}(e),s.label=1;case 1:return[4,n.next()];case 2:if((r=s.sent()).done)return[3,4];if(a=r.value,t.next(a),t.closed)return[2];s.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return i={error:s.sent()},[3,11];case 6:if(s.trys.push([6,,9,10]),!(r&&!r.done&&(o=n.return)))return[3,8];return[4,o.call(n)];case 7:s.sent(),s.label=8;case 8:return[3,10];case 9:if(i)throw i.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})})(e,t).catch(function(e){return t.error(e)})})}function n2(e){return function(t){if(ny(null==t?void 0:t.lift))return t.lift(function(t){try{return e(t,this)}catch(e){this.error(e)}});throw TypeError("Unable to lift unknown Observable type")}}function n5(e,t,n,r,i){return new n4(e,t,n,r,i)}var n4=function(e){function t(t,n,r,i,o,a){var s=e.call(this,t)||this;return s.onFinalize=o,s.shouldUnsubscribe=a,s._next=n?function(e){try{n(e)}catch(e){t.error(e)}}:e.prototype._next,s._error=i?function(e){try{i(e)}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._error,s._complete=r?function(){try{r()}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._complete,s}return es(t,e),t.prototype.unsubscribe=function(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var n=this.closed;e.prototype.unsubscribe.call(this),n||null===(t=this.onFinalize)||void 0===t||t.call(this)}},t}(nD);function n3(e,t){return n2(function(n,r){var i=0;n.subscribe(n5(r,function(n){r.next(e.call(t,n,i++))}))})}function n6(e,t,n,r,i){void 0===r&&(r=0),void 0===i&&(i=!1);var o=t.schedule(function(){n(),i?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(o),!i)return o}function n8(e,t,n){return(void 0===n&&(n=1/0),ny(t))?n8(function(n,r){return n3(function(e,i){return t(n,e,r,i)})(n0(e(n,r)))},n):("number"==typeof t&&(n=t),n2(function(t,r){var i,o,a,s,l,u,c,d,f;return i=n,a=[],s=0,l=0,u=!1,c=function(){!u||a.length||s||r.complete()},d=function(e){return s<i?f(e):a.push(e)},f=function(t){s++;var n=!1;n0(e(t,l++)).subscribe(n5(r,function(e){o?d(e):r.next(e)},function(){n=!0},void 0,function(){if(n)try{for(s--;a.length&&s<i;)!function(){var e=a.shift();f(e)}();c()}catch(e){r.error(e)}}))},t.subscribe(n5(r,d,function(){u=!0,c()})),function(){}}))}var n7=Array.isArray,n9=["addListener","removeListener"],re=["addEventListener","removeEventListener"],rt=["on","off"];function rn(e,t,n,r){if(ny(n)&&(r=n,n=void 0),r)return rn(e,t,n).pipe((i=r,n3(function(e){return n7(e)?i.apply(void 0,ep([],eh(e))):i(e)})));var i,o=eh(ny(e.addEventListener)&&ny(e.removeEventListener)?re.map(function(r){return function(i){return e[r](t,i,n)}}):ny(e.addListener)&&ny(e.removeListener)?n9.map(rr(e,t)):ny(e.on)&&ny(e.off)?rt.map(rr(e,t)):[],2),a=o[0],s=o[1];if(!a&&nb(e))return n8(function(e){return rn(e,t,n)})(n0(e));if(!a)throw TypeError("Invalid event target");return new nq(function(e){var t=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.next(1<t.length?t:t[0])};return a(t),function(){return s(t)}})}function rr(e,t){return function(n){return function(r){return e[n](t,r)}}}var ri=nw(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),ro=function(e){function t(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return es(t,e),t.prototype.lift=function(e){var t=new ra(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new ri},t.prototype.next=function(e){var t=this;nL(function(){var n,r;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var i=ef(t.currentObservers),o=i.next();!o.done;o=i.next())o.value.next(e)}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}}})},t.prototype.error=function(e){var t=this;nL(function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var n=t.observers;n.length;)n.shift().error(e)}})},t.prototype.complete=function(){var e=this;nL(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,n=this.hasError,r=this.isStopped,i=this.observers;return n||r?nO:(this.currentObservers=null,i.push(e),new nk(function(){t.currentObservers=null,nS(i,e)}))},t.prototype._checkFinalizedStatuses=function(e){var t=this.hasError,n=this.thrownError,r=this.isStopped;t?e.error(n):r&&e.complete()},t.prototype.asObservable=function(){var e=new nq;return e.source=this,e},t.create=function(e,t){return new ra(e,t)},t}(nq),ra=function(e){function t(t,n){var r=e.call(this)||this;return r.destination=t,r.source=n,r}return es(t,e),t.prototype.next=function(e){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===n||n.call(t,e)},t.prototype.error=function(e){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===n||n.call(t,e)},t.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},t.prototype._subscribe=function(e){var t,n;return null!==(n=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==n?n:nO},t}(ro);function rs(e){void 0===e&&(e={});var t=e.connector,n=void 0===t?function(){return new ro}:t,r=e.resetOnError,i=void 0===r||r,o=e.resetOnComplete,a=void 0===o||o,s=e.resetOnRefCountZero,l=void 0===s||s;return function(e){var t,r,o,s=0,u=!1,c=!1,d=function(){null==r||r.unsubscribe(),r=void 0},f=function(){d(),t=o=void 0,u=c=!1},h=function(){var e=t;f(),null==e||e.unsubscribe()};return n2(function(e,p){s++,c||u||d();var g=o=null!=o?o:n();p.add(function(){0!=--s||c||u||(r=rl(h,l))}),g.subscribe(p),!t&&s>0&&(t=new nz({next:function(e){return g.next(e)},error:function(e){c=!0,d(),r=rl(f,i,e),g.error(e)},complete:function(){u=!0,d(),r=rl(f,a),g.complete()}}),n0(e).subscribe(t))})(e)}}function rl(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];if(!0===t){e();return}if(!1!==t){var i=new nz({next:function(){i.unsubscribe(),e()}});return n0(t.apply(void 0,ep([],eh(n)))).subscribe(i)}}var ru=["input","select","textarea"],rc=function(e,t){return function(n,r){var i,o,a,s=e.pageUrlAllowlist,l=e.shouldTrackEventResolver,u=null===(o=null===(i=null==r?void 0:r.tagName)||void 0===i?void 0:i.toLowerCase)||void 0===o?void 0:o.call(i);if(!u)return!1;if(l)return l(n,r);if(!rp(window.location.href,s))return!1;var c=String(null==r?void 0:r.getAttribute("type"))||"";if("string"==typeof c)switch(c.toLowerCase()){case"hidden":case"password":return!1}if(t&&!t.some(function(e){var t;return!!(null===(t=null==r?void 0:r.matches)||void 0===t?void 0:t.call(r,e))}))return!1;switch(u){case"input":case"select":case"textarea":return"change"===n||"click"===n;default:var d=null===(a=null==window?void 0:window.getComputedStyle)||void 0===a?void 0:a.call(window,r);if(d&&"pointer"===d.getPropertyValue("cursor")&&"click"===n)return!0;return"click"===n}}},rd=function(e){return!(null==e||"string"==typeof e&&(/^(?:(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11}))$/.test((e||"").replace(/[- ]/g,""))||/(^\d{3}-?\d{2}-?\d{4}$)/.test(e)))},rf=function(e){var t,n,r,i=null===(n=null===(t=null==e?void 0:e.tagName)||void 0===t?void 0:t.toLowerCase)||void 0===n?void 0:n.call(t),o=e instanceof HTMLElement&&(null===(r=e.getAttribute("contenteditable"))||void 0===r?void 0:r.toLowerCase())==="true";return!ru.includes(i)&&!o},rh=function(e){var t="";return rf(e)&&e.childNodes&&e.childNodes.length&&e.childNodes.forEach(function(e){var n="";e&&3===e.nodeType?e.textContent&&(n=e.textContent):n=rh(e),t+=n.split(/(\s+)/).filter(rd).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255)}),t},rp=function(e,t){return!t||!t.length||t.some(function(t){return"string"==typeof t?e===t:e.match(t)})},rg=function(e){return Object.keys(e).reduce(function(t,n){var r=e[n];return null==r||"object"==typeof r&&0===Object.keys(r).length||"string"==typeof r&&0===r.trim().length||(t[n]=r),t},{})},rv=function(e){var t,n=e.parentElement;if(!n)return"";try{t=n.querySelector(":scope>span,h1,h2,h3,h4,h5,h6")}catch(e){t=null}if(t){var r=t.textContent||"";return rd(r)?r:""}return rv(n)},rm=function(e,t){return e?t.some(function(t){var n;return null===(n=null==e?void 0:e.matches)||void 0===n?void 0:n.call(e,t)})?e:rm(null==e?void 0:e.parentElement,t):null},rb=function(e){if(!e)return{};var t,n,r,i=null===(r=null===(n=null==e?void 0:e.tagName)||void 0===n?void 0:n.toLowerCase)||void 0===r?void 0:r.call(n);return rg(((t={})[nh]=i,t[np]=rh(e),t[ng]=window.location.href.split("?")[0],t))},ry=function(e){return null!==e.event.target&&!!e.closestTrackedAncestor},rx=function(){function e(e){var t=(void 0===e?{}:e).origin,n=this;this.endpoint=nv,this.requestCallbacks={},this.onSelect=function(e){n.notify({action:"element-selected",data:e})},this.onTrack=function(e,t){"selector-mode-changed"===e?n.notify({action:"track-selector-mode-changed",data:t}):"selector-moved"===e&&n.notify({action:"track-selector-moved",data:t})},this.endpoint=void 0===t?nv:t}return e.prototype.notify=function(e){var t,n,r,i;null===(n=null===(t=this.logger)||void 0===t?void 0:t.debug)||void 0===n||n.call(t,"Message sent: ",JSON.stringify(e)),null===(i=null===(r=window.opener)||void 0===r?void 0:r.postMessage)||void 0===i||i.call(r,e,this.endpoint)},e.prototype.sendRequest=function(e,t,n){var r=this;void 0===n&&(n={timeout:15e3});var i="".concat(Date.now(),"-").concat(Math.random().toString(36).substr(2,9)),o={id:i,action:e,args:t};return new Promise(function(t,a){r.requestCallbacks[i]={resolve:t,reject:a},r.notify(o),(null==n?void 0:n.timeout)>0&&setTimeout(function(){a(Error("".concat(e," timed out (id: ").concat(i,")"))),delete r.requestCallbacks[i]},n.timeout)})},e.prototype.handleResponse=function(e){var t;if(!this.requestCallbacks[e.id]){null===(t=this.logger)||void 0===t||t.warn("No callback found for request id: ".concat(e.id));return}this.requestCallbacks[e.id].resolve(e.responseData),delete this.requestCallbacks[e.id]},e.prototype.setup=function(e){var t=this,n=void 0===e?{}:e,r=n.logger,i=n.endpoint,o=n.isElementSelectable,a=n.cssSelectorAllowlist,s=n.actionClickAllowlist;this.logger=r,i&&this.endpoint===nv&&(this.endpoint=i);var l=null;window.addEventListener("message",function(e){if(null===(r=null===(n=t.logger)||void 0===n?void 0:n.debug)||void 0===r||r.call(n,"Message received: ",JSON.stringify(e)),t.endpoint===e.origin){var n,r,i,u,c,d=null==e?void 0:e.data,f=null==d?void 0:d.action;if(f){if("id"in d)null===(u=null===(i=t.logger)||void 0===i?void 0:i.debug)||void 0===u||u.call(i,"Received Response to previous request: ",JSON.stringify(e)),t.handleResponse(d);else if("ping"===f)t.notify({action:"pong"});else if("initialize-visual-tagging-selector"===f){var h,p=null==d?void 0:d.data;(h="https://cdn.amplitude.com/libs/visual-tagging-selector-1.0.0-alpha.js.gz",new Promise(function(e,t){var n;try{var r=document.createElement("script");r.type="text/javascript",r.async=!0,r.src=h,r.addEventListener("load",function(){e({status:!0})},{once:!0}),r.addEventListener("error",function(){t({status:!1,message:"Failed to load the script ".concat(h)})}),null===(n=document.head)||void 0===n||n.appendChild(r)}catch(e){t(e)}})).then(function(){var e;l=null===(e=null==window?void 0:window.amplitudeVisualTaggingSelector)||void 0===e?void 0:e.call(window,{getEventTagProps:rb,isElementSelectable:function(e){return!o||o((null==p?void 0:p.actionType)||"click",e)},onTrack:t.onTrack,onSelect:t.onSelect,visualHighlightClass:"amp-visual-tagging-selector-highlight",messenger:t,cssSelectorAllowlist:a,actionClickAllowlist:s}),t.notify({action:"selector-loaded"})}).catch(function(){var e;null===(e=t.logger)||void 0===e||e.warn("Failed to initialize visual tagging selector")})}else"close-visual-tagging-selector"===f&&(null===(c=null==l?void 0:l.close)||void 0===c||c.call(l))}}}),this.notify({action:"page-loaded"})},e}(),rw=["id","class","style","value","onclick","onchange","oninput","onblur","onsubmit","onfocus","onkeydown","onkeyup","onkeypress","data-reactid","data-react-checksum","data-reactroot"],rE=["type"],rS=["svg","path","g"],rk=["password","hidden"];function rO(e,t){return n2(function(n,r){var i=0;n.subscribe(n5(r,function(n){return e.call(t,n,i++)&&r.next(n)}))})}var rC=function(e){function t(t,n){return e.call(this)||this}return es(t,e),t.prototype.schedule=function(e,t){return void 0===t&&(t=0),this},t}(nk),rI={setInterval:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=rI.delegate;return(null==i?void 0:i.setInterval)?i.setInterval.apply(i,ep([e,t],eh(n))):setInterval.apply(void 0,ep([e,t],eh(n)))},clearInterval:function(e){var t=rI.delegate;return((null==t?void 0:t.clearInterval)||clearInterval)(e)},delegate:void 0},r_=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r.pending=!1,r}return es(t,e),t.prototype.schedule=function(e,t){if(void 0===t&&(t=0),this.closed)return this;this.state=e;var n,r=this.id,i=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(i,r,t)),this.pending=!0,this.delay=t,this.id=null!==(n=this.id)&&void 0!==n?n:this.requestAsyncId(i,this.id,t),this},t.prototype.requestAsyncId=function(e,t,n){return void 0===n&&(n=0),rI.setInterval(e.flush.bind(e,this),n)},t.prototype.recycleAsyncId=function(e,t,n){if(void 0===n&&(n=0),null!=n&&this.delay===n&&!1===this.pending)return t;null!=t&&rI.clearInterval(t)},t.prototype.execute=function(e,t){if(this.closed)return Error("executing a cancelled action");this.pending=!1;var n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(e,t){var n,r=!1;try{this.work(e)}catch(e){r=!0,n=e||Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),n},t.prototype.unsubscribe=function(){if(!this.closed){var t=this.id,n=this.scheduler,r=n.actions;this.work=this.state=this.scheduler=null,this.pending=!1,nS(r,this),null!=t&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t}(rC),rT={now:function(){return(rT.delegate||Date).now()},delegate:void 0},rP=function(){function e(t,n){void 0===n&&(n=e.now),this.schedulerActionCtor=t,this.now=n}return e.prototype.schedule=function(e,t,n){return void 0===t&&(t=0),new this.schedulerActionCtor(this,e).schedule(n,t)},e.now=rT.now,e}(),rR=new(function(e){function t(t,n){void 0===n&&(n=rP.now);var r=e.call(this,t,n)||this;return r.actions=[],r._active=!1,r}return es(t,e),t.prototype.flush=function(e){var t,n=this.actions;if(this._active){n.push(e);return}this._active=!0;do if(t=e.execute(e.state,e.delay))break;while(e=n.shift());if(this._active=!1,t){for(;e=n.shift();)e.unsubscribe();throw t}},t}(rP))(r_);function rA(e){return void 0===e&&(e=1/0),n8(n$,e)}var rN=new nq(function(e){return e.complete()});function rM(e){return e&&ny(e.schedule)}function rL(e){return e[e.length-1]}function rD(e){return rM(rL(e))?e.pop():void 0}function rF(e,t){return void 0===t&&(t=0),n2(function(n,r){n.subscribe(n5(r,function(n){return n6(r,e,function(){return r.next(n)},t)},function(){return n6(r,e,function(){return r.complete()},t)},function(n){return n6(r,e,function(){return r.error(n)},t)}))})}function rV(e,t){return void 0===t&&(t=0),n2(function(n,r){r.add(e.schedule(function(){return n.subscribe(r)},t))})}function rj(e,t){if(!e)throw Error("Iterable cannot be null");return new nq(function(n){n6(n,t,function(){var r=e[Symbol.asyncIterator]();n6(n,t,function(){r.next().then(function(e){e.done?n.complete():n.next(e.value)})},0,!0)})})}function rz(e,t){return t?function(e,t){if(null!=e){if(ny(e[nH]))return n0(e).pipe(rV(t),rF(t));if(nb(e))return new nq(function(n){var r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})});if(nx(e))return n0(e).pipe(rV(t),rF(t));if(nK(e))return rj(e,t);if(nX(e))return new nq(function(n){var r;return n6(n,t,function(){r=e[nY](),n6(n,t,function(){var e,t,i;try{t=(e=r.next()).value,i=e.done}catch(e){n.error(e);return}i?n.complete():n.next(t)},0,!0)}),function(){return ny(null==r?void 0:r.return)&&r.return()}});if(nJ(e))return rj(nQ(e),t)}throw nZ(e)}(e,t):n0(e)}function rU(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=rD(t),i=(e=1/0,"number"==typeof rL(t)?t.pop():e);return t.length?1===t.length?n0(t[0]):rA(i)(rz(t,r)):rN}function rB(e){return e<=0?function(){return rN}:n2(function(t,n){var r=0;t.subscribe(n5(n,function(t){++r<=e&&(n.next(t),e<=r&&n.complete())}))})}function rW(e){return e instanceof Date&&!isNaN(e)}var rH=nw(function(e){return function(t){void 0===t&&(t=null),e(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=t}});function r$(e){throw new rH(e)}(y=K||(K={})).ClickObservable="clickObservable",y.ChangeObservable="changeObservable",y.NavigateObservable="navigateObservable",y.MutationObservable="mutationObservable";var rq=function(e){void 0===e&&(e={});var t,n,r,i=e.dataAttributePrefix,o=void 0===i?"data-amp-track-":i,a=e.visualTaggingOptions,s=void 0===a?{enabled:!0,messenger:new rx}:a;e.cssSelectorAllowlist=null!==(t=e.cssSelectorAllowlist)&&void 0!==t?t:nc,e.actionClickAllowlist=null!==(n=e.actionClickAllowlist)&&void 0!==n?n:nd,e.debounceTime=null!==(r=e.debounceTime)&&void 0!==r?r:0;var l="@amplitude/plugin-autocapture-browser",u=[],c=function(){var e,t,n=rn(document,"click",{capture:!0}).pipe(n3(function(e){return f(e,"click")}),rs()),r=rn(document,"change",{capture:!0}).pipe(n3(function(e){return f(e,"change")}),rs());window.navigation&&(t=rn(window.navigation,"navigate").pipe(n3(function(e){return f(e,"navigate")}),rs()));var i=new nq(function(e){var t=new MutationObserver(function(t){e.next(t)});return t.observe(document.body,{childList:!0,attributes:!0,characterData:!0,subtree:!0}),function(){return t.disconnect()}}).pipe(n3(function(e){return f(e,"mutation")}),rs());return(e={})[K.ClickObservable]=n,e[K.ChangeObservable]=r,e[K.NavigateObservable]=t,e[K.MutationObservable]=i,e},d=function(e,t){var n,r,i,a,s=null===(a=null===(i=null==t?void 0:t.tagName)||void 0===i?void 0:i.toLowerCase)||void 0===a?void 0:a.call(i),l="function"==typeof t.getBoundingClientRect?t.getBoundingClientRect():{left:null,top:null},u=t.getAttribute("aria-label"),c=t.getAttributeNames().reduce(function(e,n){if(n.startsWith(o)){var r=n.replace(o,""),i=t.getAttribute(n);r&&(e[r]=i||"")}return e},{}),d=rv(t),f=((r={})["[Amplitude] Element ID"]=t.getAttribute("id")||"",r["[Amplitude] Element Class"]=t.getAttribute("class"),r["[Amplitude] Element Hierarchy"]=(n=t)?function(e,t){for(var n=0,r=0;r<e.length;r++){var i=e[r];if(null===i)n+=4;else{var o=function e(t,n){void 0===n&&(n=!1);try{if(null==t){if(n)return"None";return null}if("string"==typeof t){if(n){if((t=t.replace(/\\/g,"\\\\").replace(/\n/g,"\\n").replace(/\t/g,"\\t").replace(/\r/g,"\\r")).includes('"'))return"'".concat(t,"'");if(t.includes("'"))return'"'.concat(t.replace(/'/g,"\\'"),'"');return"'".concat(t,"'")}return t}if("boolean"==typeof t)return t?"True":"False";if(Array.isArray(t)){var r=t.map(function(t){return e(t,!0)});return"[".concat(r.join(", "),"]")}else if("object"==typeof t){var i=Object.entries(t).filter(function(e){var t=eh(e,1)[0];return null!=t}).map(function(t){var n=eh(t,2),r=n[0],i=n[1];return"".concat(String(e(r,!0)),": ").concat(String(e(i,!0)))}),o="{".concat(i.join(", "),"}");return o.includes("\\'")&&(o=o.replace(/'/g,"'").replace(/'/g,"\\'")),o}return t.toString()}catch(e){return null}}(i);n+=o?Array.from(o).length:4}if(n>1024)return e.slice(0,r)}return e}((function(e){var t=[];if(!e)return t;t.push(e);for(var n=e.parentElement;n&&"HTML"!==n.tagName;)t.push(n),n=n.parentElement;return t})(n).map(function(e){return function(e){if(null===e)return null;var t,n,r,i,o,a,s=String(e.tagName).toLowerCase(),l={tag:s},u=Array.from(null!==(i=null===(r=e.parentElement)||void 0===r?void 0:r.children)&&void 0!==i?i:[]);u.length&&(l.index=u.indexOf(e),l.indexOfType=u.filter(function(t){return t.tagName===e.tagName}).indexOf(e));var c=null===(a=null===(o=e.previousElementSibling)||void 0===o?void 0:o.tagName)||void 0===a?void 0:a.toLowerCase();c&&(l.prevSib=String(c));var d=e.getAttribute("id");d&&(l.id=String(d));var f=Array.from(e.classList);f.length&&(l.classes=f);var h={},p=Array.from(e.attributes).filter(function(e){return!rw.includes(e.name)}),g=!rf(e);if(!rk.includes(String(e.getAttribute("type")))&&!rS.includes(s))try{for(var v=ef(p),m=v.next();!m.done;m=v.next()){var b=m.value;(!g||rE.includes(b.name))&&(h[b.name]=String(b.value).substring(0,128))}}catch(e){t={error:e}}finally{try{m&&!m.done&&(n=v.return)&&n.call(v)}finally{if(t)throw t.error}}return Object.keys(h).length&&(l.attrs=h),l}(e)}),0):[],r[nh]=s,r[np]=rh(t),r["[Amplitude] Element Position Left"]=null==l.left?null:Math.round(l.left),r["[Amplitude] Element Position Top"]=null==l.top?null:Math.round(l.top),r["[Amplitude] Element Aria Label"]=u,r["[Amplitude] Element Attributes"]=c,r["[Amplitude] Element Parent Label"]=d,r[ng]=window.location.href.split("?")[0],r["[Amplitude] Page Title"]="undefined"!=typeof document&&document.title||"",r["[Amplitude] Viewport Height"]=window.innerHeight,r["[Amplitude] Viewport Width"]=window.innerWidth,r);return"a"===s&&"click"===e&&t instanceof HTMLAnchorElement&&(f["[Amplitude] Element Href"]=t.href),rg(f)},f=function(t,n){var r={event:t,timestamp:Date.now(),type:n};if(("click"===r.type||"change"===r.type)&&null!==r.event.target){var i=rm(r.event.target,e.cssSelectorAllowlist);i&&(r.closestTrackedAncestor=i,r.targetElementProperties=d(r.type,i))}return r};return{name:l,type:"enrichment",setup:function(t,n){return ec(void 0,void 0,void 0,function(){var r,i,o,a,f,h,p,g,v,m;return ed(this,function(b){var y,x,w,E,S,k,O,C,I,_,T,P,R,A,N,M,L,D,F,V,j,z,U,B,W,H,$,q,G,K,Z,Y,X,Q;return"undefined"==typeof document||(r=rc(e,e.cssSelectorAllowlist),i=rc(e,e.actionClickAllowlist),x=(y={allObservables:o=c(),options:e,amplitude:n,shouldTrackEvent:r}).amplitude,w=y.allObservables,E=y.options,S=y.shouldTrackEvent,I=rU((k=w.clickObservable).pipe(n2(function(e,t){var n,r=!1;e.subscribe(n5(t,function(e){var i=n;n=e,r&&t.next([i,e]),r=!0}))}),rO(function(e){var t=eh(e,2),n=t[0],r=t[1],i=n.event.target!==r.event.target,o=20>=Math.abs(r.event.screenX-n.event.screenX)&&20>=Math.abs(r.event.screenY-n.event.screenY);return i&&!o})),k.pipe((O=E.debounceTime,void 0===C&&(C=rR),n2(function(e,t){var n=null,r=null,i=null,o=function(){if(n){n.unsubscribe(),n=null;var e=r;r=null,t.next(e)}};function a(){var e=i+O,r=C.now();if(r<e){n=this.schedule(void 0,e-r),t.add(n);return}o()}e.subscribe(n5(t,function(e){r=e,i=C.now(),n||(n=C.schedule(a,O),t.add(n))},function(){o(),t.complete()},void 0,function(){r=n=null}))})),n3(function(){return"timeout"}))),a=k.pipe((void 0===_&&(_=rR),T=0,P=_,void 0===T&&(T=0),void 0===R&&(R=rR),A=-1,null!=P&&(rM(P)?R=P:A=P),N=new nq(function(e){var t=rW(T)?+T-R.now():T;t<0&&(t=0);var n=0;return R.schedule(function(){e.closed||(e.next(n++),0<=A?this.schedule(void 0,A):e.complete())},t)}),function e(t,n){return n?function(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return rA(1)(rz(e,rD(e)))}(n.pipe(rB(1),n2(function(e,t){e.subscribe(n5(t,nR))})),r.pipe(e(t)))}:n8(function(e,n){return n0(t(e,n)).pipe(rB(1),n3(function(){return e}))})}(function(){return N})),rO(ry),rO(function(e){return S("click",e.closestTrackedAncestor)}),n2(function(e,t){var n=[];return e.subscribe(n5(t,function(e){return n.push(e)},function(){t.next(n),t.complete()})),n0(I).subscribe(n5(t,function(){var e=n;n=[],t.next(e)},nR)),function(){n=null}})).subscribe(function(e){var t,n,r=(e.length,nf);try{for(var i=ef(e),o=i.next();!o.done;o=i.next()){var a=o.value;null==x||x.track(r,a.targetElementProperties)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}}),u.push(a),L=(M={allObservables:o,getEventProperties:d,amplitude:n,shouldTrackEvent:r}).amplitude,D=M.allObservables,F=M.getEventProperties,V=M.shouldTrackEvent,f=D.changeObservable.pipe(rO(ry),rO(function(e){return V("change",e.closestTrackedAncestor)})).subscribe(function(e){null==L||L.track("[Amplitude] Element Changed",F("change",e.closestTrackedAncestor))}),u.push(f),z=(j={allObservables:o,options:e,getEventProperties:d,amplitude:n,shouldTrackEvent:r,shouldTrackActionClick:i}).amplitude,U=j.allObservables,B=j.options,W=j.getEventProperties,H=j.shouldTrackEvent,$=j.shouldTrackActionClick,q=U.clickObservable,G=U.mutationObservable,K=U.navigateObservable,Z=q.pipe(rO(function(e){return!H("click",e.closestTrackedAncestor)}),n3(function(e){var t=rm(e.event.target,B.actionClickAllowlist);return e.closestTrackedAncestor=t,null!==e.closestTrackedAncestor&&(e.targetElementProperties=W(e.type,e.closestTrackedAncestor)),e}),rO(ry),rO(function(e){return $("click",e.closestTrackedAncestor)})),Y=[G],K&&Y.push(K),X=rU.apply(void 0,ep([],eh(Y),!1)),h=Z.pipe((Q=function(e){return X.pipe(rB(1),function(e,t){var n=rW(e)?{first:e}:"number"==typeof e?{each:e}:e,r=n.first,i=n.each,o=n.with,a=void 0===o?r$:o,s=n.scheduler,l=void 0===s?rR:s,u=n.meta,c=void 0===u?null:u;if(null==r&&null==i)throw TypeError("No timeout provided.");return n2(function(e,t){var n,o,s=null,u=0,d=function(e){o=n6(t,l,function(){try{n.unsubscribe(),n0(a({meta:c,lastValue:s,seen:u})).subscribe(t)}catch(e){t.error(e)}},e)};n=e.subscribe(n5(t,function(e){null==o||o.unsubscribe(),u++,t.next(s=e),i>0&&d(i)},void 0,void 0,function(){(null==o?void 0:o.closed)||null==o||o.unsubscribe(),s=null})),u||d(null!=r?"number"==typeof r?r:+r-l.now():i)})}({first:500,with:function(){return rN}}),n3(function(){return e}))},n2(function(e,t){var n=null,r=0,i=!1,o=function(){return i&&!n&&t.complete()};e.subscribe(n5(t,function(e){null==n||n.unsubscribe(),n0(Q(e,r++)).subscribe(n=n5(t,function(e){return t.next(e)},function(){n=null,o()}))},function(){i=!0,o()}))}))).subscribe(function(e){null==z||z.track(nf,W("click",e.closestTrackedAncestor))}),u.push(h),null===(v=null==t?void 0:t.loggerProvider)||void 0===v||v.log("".concat(l," has been successfully added.")),window.opener&&s.enabled&&(p=e.cssSelectorAllowlist,g=e.actionClickAllowlist,null===(m=s.messenger)||void 0===m||m.setup(el(el({logger:null==t?void 0:t.loggerProvider},(null==t?void 0:t.serverZone)&&{endpoint:nm[t.serverZone]}),{isElementSelectable:rc(e,ep(ep([],eh(p),!1),eh(g),!1)),cssSelectorAllowlist:p,actionClickAllowlist:g})))),[2]})})},execute:function(e){return ec(void 0,void 0,void 0,function(){return ed(this,function(t){return[2,e]})})},teardown:function(){return ec(void 0,void 0,void 0,function(){var e,t,n,r;return ed(this,function(i){try{for(t=(e=ef(u)).next();!t.done;t=e.next())t.value.unsubscribe()}catch(e){n={error:e}}finally{try{t&&!t.done&&(r=e.return)&&r.call(e)}finally{if(n)throw n.error}}return[2]})})}}},rG=function(){function e(e){this.request=e}return Object.defineProperty(e.prototype,"headers",{get:function(){if(this._headers)return this._headers;var e=this.request.headers;if(Array.isArray(e))this._headers=e.reduce(function(e,t){var n=eh(t,2),r=n[0],i=n[1];return e[r]=i,e},{});else if(e instanceof Headers){var t={};e.forEach(function(e,n){t[n]=e}),this._headers=t}else"object"==typeof e&&(this._headers=e);return this._headers},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"bodySize",{get:function(){if("number"==typeof this._bodySize)return this._bodySize;var e=em();if(null==e?void 0:e.TextEncoder){var t=this.request.body;return this._bodySize=rZ(t,100),this._bodySize}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"method",{get:function(){return this.request.method},enumerable:!1,configurable:!0}),e}(),rK=function(){function e(e){this.body=e}return Object.defineProperty(e.prototype,"bodySize",{get:function(){return rZ(this.body,100)},enumerable:!1,configurable:!0}),e}();function rZ(e,t){var n,r,i,o,a=em(),s=null==a?void 0:a.TextEncoder;if(s){if("string"==typeof e)o=e,i=new s().encode(o).length;else if(e instanceof Blob)i=(o=e).size;else if(e instanceof URLSearchParams)o=e,i=new s().encode(o.toString()).length;else if(ArrayBuffer.isView(e))i=(o=e).byteLength;else if(e instanceof ArrayBuffer)i=(o=e).byteLength;else if(e instanceof FormData){var l=0,u=0;try{for(var c=ef(e.entries()),d=c.next();!d.done;d=c.next()){var f=eh(d.value,2),h=f[0],p=f[1];if(l+=h.length,"string"==typeof p)l+=new s().encode(p).length;else{if(!(p instanceof Blob))return;l+=p.size}if(++u>=t)return}}catch(e){n={error:e}}finally{try{d&&!d.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}i=l}else if(e instanceof ReadableStream){o=e;return}return i}}var rY=function(){function e(e){this.response=e}return Object.defineProperty(e.prototype,"headers",{get:function(){var e;if(this._headers)return this._headers;if(this.response.headers instanceof Headers){var t=this.response.headers,n={};return null===(e=null==t?void 0:t.forEach)||void 0===e||e.call(t,function(e,t){n[t]=e}),this._headers=n,n}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"bodySize",{get:function(){if(void 0!==this._bodySize)return this._bodySize;var e,t,n=null===(t=null===(e=this.response.headers)||void 0===e?void 0:e.get)||void 0===t?void 0:t.call(e,"content-length"),r=n?parseInt(n,10):void 0;return this._bodySize=r,r},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"status",{get:function(){return this.response.status},enumerable:!1,configurable:!0}),e}(),rX=function(){function e(e,t,n){this.statusCode=e,this.headersString=t,this.size=n}return Object.defineProperty(e.prototype,"bodySize",{get:function(){return this.size},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"status",{get:function(){return this.statusCode},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"headers",{get:function(){if(this.headersString){var e,t,n={},r=this.headersString.split("\r\n");try{for(var i=ef(r),o=i.next();!o.done;o=i.next()){var a=o.value,s=eh(a.split(": "),2),l=s[0],u=s[1];l&&u&&(n[l]=u)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}return n}},enumerable:!1,configurable:!0}),e}(),rQ=function(){function e(e,t,n,r,i,o,a,s,l,u,c){void 0===a&&(a=0),this.type=e,this.method=t,this.timestamp=n,this.startTime=r,this.url=i,this.requestWrapper=o,this.status=a,this.duration=s,this.responseWrapper=l,this.error=u,this.endTime=c}return e.prototype.toSerializable=function(){var e,t,n,r;return Object.fromEntries(Object.entries({type:this.type,method:this.method,url:this.url,timestamp:this.timestamp,status:this.status,duration:this.duration,error:this.error,startTime:this.startTime,endTime:this.endTime,requestHeaders:null===(e=this.requestWrapper)||void 0===e?void 0:e.headers,requestBodySize:null===(t=this.requestWrapper)||void 0===t?void 0:t.bodySize,responseHeaders:null===(n=this.responseWrapper)||void 0===n?void 0:n.headers,responseBodySize:null===(r=this.responseWrapper)||void 0===r?void 0:r.bodySize}).filter(function(e){var t=eh(e,2);return void 0!==(t[0],t[1])}))},e}(),rJ=function(e,t){void 0===t&&(t=eH()),this.callback=e,this.id=t},r0=new(function(){function e(t){this.eventCallbacks=new Map,this.isObserving=!1,this.logger=t;var n=em();e.isSupported()&&(this.globalScope=n)}return e.isSupported=function(){var e=em();return!!e&&!!e.fetch},e.prototype.subscribe=function(e,t){var n,r,i,o,a,s,l;if(this.logger||(this.logger=t),this.eventCallbacks.set(e.id,e),!this.isObserving){var u=null===(i=null===(r=null===(n=this.globalScope)||void 0===n?void 0:n.XMLHttpRequest)||void 0===r?void 0:r.prototype)||void 0===i?void 0:i.open,c=null===(s=null===(a=null===(o=this.globalScope)||void 0===o?void 0:o.XMLHttpRequest)||void 0===a?void 0:a.prototype)||void 0===s?void 0:s.send;u&&c&&this.observeXhr(u,c);var d=null===(l=this.globalScope)||void 0===l?void 0:l.fetch;d&&this.observeFetch(d),this.isObserving=!0}},e.prototype.unsubscribe=function(e){this.eventCallbacks.delete(e.id)},e.prototype.triggerEventCallbacks=function(e){var t=this;this.eventCallbacks.forEach(function(n){var r;try{n.callback(e)}catch(e){null===(r=t.logger)||void 0===r||r.debug("an unexpected error occurred while triggering event callbacks",e)}})},e.prototype.handleNetworkRequestEvent=function(e,t,n,r,i,o,a){if(void 0!==o&&void 0!==a){var s,l,u,c,d="GET";"object"==typeof t&&null!==t&&"url"in t&&"method"in t?(l=t.url,d=t.method):l=null===(s=null==t?void 0:t.toString)||void 0===s?void 0:s.call(t),d=(null==n?void 0:n.method)||d,r&&(u=r.status),i&&(c={name:i.name||"UnknownError",message:i.message||"An unknown error occurred"},u=0);var f=Math.floor(performance.now()-a),h=Math.floor(o+f),p=new rQ(e,d,o,o,l,n,u,f,r,c,h);this.triggerEventCallbacks(p)}},e.prototype.getTimestamps=function(){var e,t;return{startTime:null===(e=Date.now)||void 0===e?void 0:e.call(Date),durationStart:null===(t=null==performance?void 0:performance.now)||void 0===t?void 0:t.call(performance)}},e.prototype.observeFetch=function(e){var t=this;this.globalScope&&e&&(this.globalScope.fetch=function(n,r){return ec(t,void 0,void 0,function(){var t,i,o,a,s;return ed(this,function(l){switch(l.label){case 0:try{t=this.getTimestamps()}catch(e){null===(a=this.logger)||void 0===a||a.debug("an unexpected error occurred while retrieving timestamps",e)}l.label=1;case 1:return l.trys.push([1,3,,4]),[4,e(n,r)];case 2:return i=l.sent(),[3,4];case 3:return o=l.sent(),[3,4];case 4:try{this.handleNetworkRequestEvent("fetch",n,r?new rG(r):void 0,i?new rY(i):void 0,o,null==t?void 0:t.startTime,null==t?void 0:t.durationStart)}catch(e){null===(s=this.logger)||void 0===s||s.debug("an unexpected error occurred while handling fetch",e)}if(i)return[2,i];throw o}})})})},e.prototype.observeXhr=function(e,t){if(this.globalScope&&e&&t){var n=this.globalScope.XMLHttpRequest.prototype,r=this;n.open=function(){for(var t,n,i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];var a=eh(i,2),s=a[0],l=a[1];try{this.$$AmplitudeAnalyticsEvent=el({method:s,url:null===(t=null==l?void 0:l.toString)||void 0===t?void 0:t.call(l)},r.getTimestamps())}catch(e){null===(n=r.logger)||void 0===n||n.debug("an unexpected error occurred while calling xhr open",e)}return e.apply(this,i)},n.send=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var i=this,o=e[0],a=i.$$AmplitudeAnalyticsEvent;return i.addEventListener("loadend",function(){var e;try{var t=i.getAllResponseHeaders(),n=i.getResponseHeader("content-length"),s=new rX(i.status,t,n?parseInt(n,10):void 0),l=new rK(o);a.status=i.status,r.handleNetworkRequestEvent("xhr",{url:a.url,method:a.method},l,s,void 0,a.startTime,a.durationStart)}catch(t){null===(e=r.logger)||void 0===e||e.debug("an unexpected error occurred while handling xhr send",t)}}),t.apply(i,e)}}},e}()),r1="500-599";function r2(e,t){return RegExp("^"+t.replace(/[-[\]{}()+?.,\\^$|#\s]/g,"\\$&").replace(/\*/g,".*")+"$").test(e)}function r5(e,t){var n,r,i=t.split(",");try{for(var o=ef(i),a=o.next();!a.done;a=o.next()){var s=a.value,l=eh(s.split("-").map(Number),2),u=l[0],c=l[1];if(e===u&&void 0===c||e>=u&&e<=c)return!0}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return!1}function r4(e){var t;if(e)try{var n=null===(t=em())||void 0===t?void 0:t.location.href,r=new URL(e,n),i=r.searchParams.toString(),o=r.hash.replace("#",""),a=r.href,s=r.host;r.hash="",r.search="";var l=r.href;return{query:i,fragment:o,href:a,hrefWithoutQueryOrHash:l,host:s}}catch(e){return}}(Z||(Z={})).NetworkObservable="networkObservable";var r3=function(e){void 0===e&&(e={});var t,n="@amplitude/plugin-network-capture-browser",r=[],i=function(){var e,n=new nq(function(e){var n=new rJ(function(t){var n={event:t,timestamp:Date.now(),type:"network"};e.next(n)});return r0.subscribe(n,t),function(){r0.unsubscribe(n)}});return(e={})[Z.NetworkObservable]=n,e};return{name:n,type:"enrichment",setup:function(o,a){return ec(void 0,void 0,void 0,function(){var s;return ed(this,function(l){var u,c,d,f;return"undefined"==typeof document||(c=(u={allObservables:i(),networkTrackingOptions:e,amplitude:a}).allObservables,d=u.networkTrackingOptions,f=u.amplitude,s=c.networkObservable.pipe(rO(function(e){return function(e,t){void 0===t&&(t={});var n,r,i=r4(e.url);if(!i)return!1;var o=i.host;return!(!1!==t.ignoreAmplitudeRequests&&(r2(o,"*.amplitude.com")||r2(o,"amplitude.com"))||(null===(n=t.ignoreHosts)||void 0===n?void 0:n.find(function(e){return r2(o,e)})))&&(!!t.captureRules||void 0===e.status||!!r5(e.status,r1))&&(!t.captureRules||(ep([],eh(t.captureRules),!1).reverse().find(function(t){var n;return n=e.status,void 0!==(r=t.hosts&&!t.hosts.find(function(e){return r2(o,e)})?void 0:!n&&0!==n||!!r5(n,t.statusCodeRange||r1))}),!!r))}(e.event,d)})).subscribe(function(e){var t,n,r,i=e.event,o=r4(i.url);if(o){var a=null===(n=i.responseWrapper)||void 0===n?void 0:n.bodySize,s=null===(r=i.requestWrapper)||void 0===r?void 0:r.bodySize,l=((t={})["[Amplitude] URL"]=o.hrefWithoutQueryOrHash,t["[Amplitude] URL Query"]=o.query,t["[Amplitude] URL Fragment"]=o.fragment,t["[Amplitude] Request Method"]=i.method,t["[Amplitude] Status Code"]=i.status,t["[Amplitude] Start Time"]=i.startTime,t["[Amplitude] Completion Time"]=i.endTime,t["[Amplitude] Duration"]=i.duration,t["[Amplitude] Request Body Size"]=s,t["[Amplitude] Response Body Size"]=a,t["[Amplitude] Request Type"]=i.type,t);null==f||f.track("[Amplitude] Network Request",l)}}),r.push(s),null==(t=null==o?void 0:o.loggerProvider)||t.log("".concat(n," has been successfully added."))),[2]})})},execute:function(e){return ec(void 0,void 0,void 0,function(){return ed(this,function(t){return[2,e]})})},teardown:function(){return ec(void 0,void 0,void 0,function(){var e,t,n,i;return ed(this,function(o){try{for(t=(e=ef(r)).next();!t.done;t=e.next())t.value.unsubscribe()}catch(e){n={error:e}}finally{try{t&&!t.done&&(i=e.return)&&i.call(e)}finally{if(n)throw n.error}}return[2]})})}}},r6="dclid",r8="fbclid",r7="gbraid",r9="gclid",ie="ko_click_id",it="li_fat_id",ir="msclkid",ii="rtd_cid",io="ttclid",ia="twclid",is="wbraid",il={utm_campaign:void 0,utm_content:void 0,utm_id:void 0,utm_medium:void 0,utm_source:void 0,utm_term:void 0,referrer:void 0,referring_domain:void 0,dclid:void 0,gbraid:void 0,gclid:void 0,fbclid:void 0,ko_click_id:void 0,li_fat_id:void 0,msclkid:void 0,rtd_cid:void 0,ttclid:void 0,twclid:void 0,wbraid:void 0},iu=function(e){var t=e.split(".");return t.length<=2?e:t.slice(t.length-2,t.length).join(".")},ic=function(e,t,n,r,i){void 0===i&&(i=!0),e.referrer;var o=e.referring_domain,a=eu(e,["referrer","referring_domain"]),s=t||{},l=(s.referrer,s.referring_domain),u=eu(s,["referrer","referring_domain"]);if(id(n.excludeReferrers,e.referring_domain))return r.debug("This is not a new campaign because ".concat(e.referring_domain," is in the exclude referrer list.")),!1;if(!i&&Object.values(e).every(function(e){return!e})&&t)return r.debug("This is not a new campaign because this is a direct traffic in the same session."),!1;var c=JSON.stringify(a)!==JSON.stringify(u),d=iu(o||"")!==iu(l||""),f=!t||c||d;return f?r.debug("This is a new campaign. An $identify event will be sent."):r.debug("This is not a new campaign because it's the same as the previous one."),f},id=function(e,t){return void 0===e&&(e=[]),void 0===t&&(t=""),e.some(function(e){return e instanceof RegExp?e.test(t):e===t})},ih=function(e){var t=e;return t?(t.startsWith(".")&&(t=t.substring(1)),[new RegExp("".concat(t.replace(".","\\."),"$"))]):[]},ip=function(){function e(){}return e.prototype.parse=function(){return ec(this,void 0,void 0,function(){return ed(this,function(e){return[2,el(el(el(el({},il),this.getUtmParam()),this.getReferrer()),this.getClickIds())]})})},e.prototype.getUtmParam=function(){var e=eb();return{utm_campaign:e.utm_campaign,utm_content:e.utm_content,utm_id:e.utm_id,utm_medium:e.utm_medium,utm_source:e.utm_source,utm_term:e.utm_term}},e.prototype.getReferrer=function(){var e,t,n={referrer:void 0,referring_domain:void 0};try{n.referrer=document.referrer||void 0,n.referring_domain=null!==(t=null===(e=n.referrer)||void 0===e?void 0:e.split("/")[2])&&void 0!==t?t:void 0}catch(e){}return n},e.prototype.getClickIds=function(){var e,t=eb();return(e={})[r6]=t[r6],e[r8]=t[r8],e[r7]=t[r7],e[r9]=t[r9],e[ie]=t[ie],e[it]=t[it],e[ir]=t[ir],e[ii]=t[ii],e[io]=t[io],e[ia]=t[ia],e[is]=t[is],e},e}(),ig=function(){function e(e,t){var n,r,i;this.shouldTrackNewCampaign=!1,this.options=el({initialEmptyValue:"EMPTY",resetSessionOnNewCampaign:!1,excludeReferrers:ih(null===(n=t.cookieOptions)||void 0===n?void 0:n.domain)},e),this.storage=t.cookieStorage,this.storageKey=(r=t.apiKey,void 0===i&&(i=10),["AMP","MKTG",r.substring(0,i)].filter(Boolean).join("_")),this.currentCampaign=il,this.sessionTimeout=t.sessionTimeout,this.lastEventTime=t.lastEventTime,this.logger=t.loggerProvider,t.loggerProvider.log("Installing web attribution tracking.")}return e.prototype.init=function(){return ec(this,void 0,void 0,function(){var e,t;return ed(this,function(n){switch(n.label){case 0:return[4,this.fetchCampaign()];case 1:if(t=eh.apply(void 0,[n.sent(),2]),this.currentCampaign=t[0],this.previousCampaign=t[1],e=!this.lastEventTime||eJ(this.sessionTimeout,this.lastEventTime),!ic(this.currentCampaign,this.previousCampaign,this.options,this.logger,e))return[3,3];return this.shouldTrackNewCampaign=!0,[4,this.storage.set(this.storageKey,this.currentCampaign)];case 2:n.sent(),n.label=3;case 3:return[2]}})})},e.prototype.fetchCampaign=function(){return ec(this,void 0,void 0,function(){return ed(this,function(e){switch(e.label){case 0:return[4,Promise.all([new ip().parse(),this.storage.get(this.storageKey)])];case 1:return[2,e.sent()]}})})},e.prototype.generateCampaignEvent=function(e){this.shouldTrackNewCampaign=!1;var t,n,r=(t=this.currentCampaign,n=this.options,e1(Object.entries(el(el({},il),t)).reduce(function(e,t){var r,i=eh(t,2),o=i[0],a=i[1];return(e.setOnce("initial_".concat(o),null!==(r=null!=a?a:n.initialEmptyValue)&&void 0!==r?r:"EMPTY"),a)?e.set(o,a):e.unset(o)},new eY)));return e&&(r.event_id=e),r},e.prototype.shouldSetSessionIdOnNewCampaign=function(){return this.shouldTrackNewCampaign&&!!this.options.resetSessionOnNewCampaign},e}(),iv=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return es(t,e),t.prototype.init=function(e,t,n){var r,i;return void 0===e&&(e=""),arguments.length>2?(r=t,i=n):"string"==typeof t?(r=t,i=void 0):(r=null==t?void 0:t.userId,i=t),ev(this._init(el(el({},i),{userId:r,apiKey:e})))},t.prototype._init=function(t){var n,r,i;return ec(this,void 0,void 0,function(){var o,a,s,l,u,c=this;return ed(this,function(d){var f,h,p,g,v;switch(d.label){case 0:if(this.initializing)return[2];return this.initializing=!0,[4,(f=t.apiKey,h=t,p=this,void 0===h&&(h={}),ec(void 0,void 0,void 0,function(){var e,t,n,r,i,o,a,s,l,u,c,d,g,v,m,b,y,x,w,E,S,k,O,C,I,_,T,P,R,A,N,M,L,D,F,V,j,z,U,B,W,H,$;return ed(this,function(q){var G,K,Z;switch(q.label){case 0:if(e=h.identityStorage||tF,w={},!(e!==tF))return[3,1];return n="",[3,5];case 1:if(!(null!==(S=null===(E=h.cookieOptions)||void 0===E?void 0:E.domain)&&void 0!==S))return[3,2];return r=S,[3,4];case 2:return[4,ec(void 0,void 0,void 0,function(){var e,t,n,r,i,o;return ed(this,function(a){switch(a.label){case 0:return[4,new td().isEnabled()];case 1:if(!a.sent()||"undefined"==typeof location||!location.hostname)return[2,""];for(e=(null!=G?G:location.hostname).split("."),t=[],n="AMP_TLDTEST",r=e.length-2;r>=0;--r)t.push(e.slice(r).join("."));r=0,a.label=2;case 2:if(!(r<t.length))return[3,7];return[4,(o=new td({domain:"."+(i=t[r])})).set(n,1)];case 3:return a.sent(),[4,o.get(n)];case 4:if(!a.sent())return[3,6];return[4,o.remove(n)];case 5:return a.sent(),[2,"."+i];case 6:return r++,[3,2];case 7:return[2,""]}})})];case 3:r=q.sent(),q.label=4;case 4:n=r,q.label=5;case 5:return t=el.apply(void 0,[(w.domain=n,w.expiration=365,w.sameSite="Lax",w.secure=!1,w.upgrade=!0,w),h.cookieOptions]),[4,(K=i=tj(h.identityStorage,t),void 0===(Z=null===(O=null===(k=h.cookieOptions)||void 0===k?void 0:k.upgrade)||void 0===O||O)&&(Z=!0),ec(void 0,void 0,void 0,function(){var e,t,n,r,i,o,a,s,l;return ed(this,function(u){switch(u.label){case 0:return e="".concat("amp","_").concat(f.substring(0,6)),[4,K.getRaw(e)];case 1:if(!(t=u.sent()))return[2,{optOut:!1}];if(!Z)return[3,3];return[4,K.remove(e)];case 2:u.sent(),u.label=3;case 3:return r=(n=eh(t.split("."),6))[0],i=n[1],o=n[2],a=n[3],s=n[4],l=n[5],[2,{deviceId:r,userId:tE(i),sessionId:tw(a),lastEventId:tw(l),lastEventTime:tw(s),optOut:!!o}]}})}))];case 6:return o=q.sent(),[4,i.get(tc(f))];case 7:return a=q.sent(),s=eb(),l=null!==(P=null!==(T=null!==(_=null!==(I=null!==(C=h.deviceId)&&void 0!==C?C:s.ampDeviceId)&&void 0!==I?I:s.deviceId)&&void 0!==_?_:null==a?void 0:a.deviceId)&&void 0!==T?T:o.deviceId)&&void 0!==P?P:eH(),u=null!==(R=null==a?void 0:a.lastEventId)&&void 0!==R?R:o.lastEventId,c=null!==(A=null==a?void 0:a.lastEventTime)&&void 0!==A?A:o.lastEventTime,d=null!==(M=null!==(N=h.optOut)&&void 0!==N?N:null==a?void 0:a.optOut)&&void 0!==M?M:o.optOut,g=null!==(L=null==a?void 0:a.sessionId)&&void 0!==L?L:o.sessionId,v=null!==(F=null!==(D=h.userId)&&void 0!==D?D:null==a?void 0:a.userId)&&void 0!==F?F:o.userId,p.previousSessionDeviceId=null!==(V=null==a?void 0:a.deviceId)&&void 0!==V?V:o.deviceId,p.previousSessionUserId=null!==(j=null==a?void 0:a.userId)&&void 0!==j?j:o.userId,m={ipAddress:null===(U=null===(z=h.trackingOptions)||void 0===z?void 0:z.ipAddress)||void 0===U||U,language:null===(W=null===(B=h.trackingOptions)||void 0===B?void 0:B.language)||void 0===W||W,platform:null===($=null===(H=h.trackingOptions)||void 0===H?void 0:H.platform)||void 0===$||$},b=null==a?void 0:a.pageCounter,y=null==a?void 0:a.debugLogsEnabled,void 0!==h.autocapture&&(h.defaultTracking=h.autocapture),[4,(x=new tV(f,h.appVersion,i,t,h.defaultTracking,h.autocapture,l,h.flushIntervalMillis,h.flushMaxRetries,h.flushQueueSize,e,h.ingestionMetadata,h.instanceName,u,c,h.loggerProvider,h.logLevel,h.minIdLength,h.offline,d,h.partnerId,h.plan,h.serverUrl,h.serverZone,g,h.sessionTimeout,h.storageProvider,m,h.transport,h.useBatch,h.fetchRemoteConfig,v,b,y,h.networkTrackingOptions)).storageProvider.isEnabled()];case 8:return q.sent()||(x.loggerProvider.warn("Storage provider ".concat(x.storageProvider.constructor.name," is not enabled. Falling back to MemoryStorage.")),x.storageProvider=new tu),[2,x]}})}))];case 1:if(!(o=d.sent()).fetchRemoteConfig)return[3,4];return[4,(g=o,ec(void 0,void 0,void 0,function(){var e;return ed(this,function(t){switch(t.label){case 0:return[4,(e=new nu(g)).initialize()];case 1:return t.sent(),[2,e]}})}))];case 2:return[4,d.sent().generateJoinedConfig()];case 3:o=d.sent(),d.label=4;case 4:return[4,e.prototype._init.call(this,o)];case 5:if(d.sent(),this.logBrowserOptions(o),!e6(this.config.defaultTracking))return[3,7];return a=e6((v=this.config).defaultTracking)&&v.defaultTracking&&"object"==typeof v.defaultTracking&&v.defaultTracking.attribution&&"object"==typeof v.defaultTracking.attribution?el({},v.defaultTracking.attribution):{},this.webAttribution=new ig(a,this.config),[4,this.webAttribution.init()];case 6:d.sent(),d.label=7;case 7:if(l=Number.isNaN(Number((s=eb()).ampSessionId))?void 0:Number(s.ampSessionId),this.setSessionId(null!==(i=null!==(r=null!==(n=t.sessionId)&&void 0!==n?n:l)&&void 0!==r?r:this.config.sessionId)&&void 0!==i?i:Date.now()),(u=eP(t.instanceName)).identityStore.setIdentity({userId:this.config.userId,deviceId:this.config.deviceId}),!(null!==this.config.offline))return[3,9];return[4,this.add(ni()).promise];case 8:d.sent(),d.label=9;case 9:return[4,this.add(new eq).promise];case 10:return d.sent(),[4,this.add(new tl).promise];case 11:return d.sent(),[4,this.add(new eG).promise];case 12:if(d.sent(),nr(this.config),!e3(this.config.defaultTracking,"fileDownloads"))return[3,14];return this.config.loggerProvider.debug("Adding file download tracking plugin"),[4,this.add(nt()).promise];case 13:d.sent(),d.label=14;case 14:if(!e3(this.config.defaultTracking,"formInteractions"))return[3,16];return this.config.loggerProvider.debug("Adding form interaction plugin"),[4,this.add(t7()).promise];case 15:d.sent(),d.label=16;case 16:if(!e8(this.config.defaultTracking))return[3,18];return this.config.loggerProvider.debug("Adding page view tracking plugin"),[4,this.add(t4(tr(this.config))).promise];case 17:d.sent(),d.label=18;case 18:if(!te(this.config.autocapture))return[3,20];return this.config.loggerProvider.debug("Adding user interactions plugin (autocapture plugin)"),[4,this.add(rq(tt(this.config))).promise];case 19:d.sent(),d.label=20;case 20:if(!e9(this.config.autocapture))return[3,22];return this.config.loggerProvider.debug("Adding network tracking plugin"),[4,this.add(r3(tn(this.config))).promise];case 21:d.sent(),d.label=22;case 22:return this.initializing=!1,[4,this.runQueuedFunctions("dispatchQ")];case 23:return d.sent(),u.eventBridge.setEventReceiver(function(e){c.track(e.eventType,e.eventProperties)}),[2]}})})},t.prototype.getUserId=function(){var e;return null===(e=this.config)||void 0===e?void 0:e.userId},t.prototype.setUserId=function(e){if(!this.config){this.q.push(this.setUserId.bind(this,e));return}this.config.loggerProvider.debug("function setUserId: ",e),(e!==this.config.userId||void 0===e)&&(this.config.userId=e,this.timeline.onIdentityChanged({userId:e}),eR(e,this.config.instanceName))},t.prototype.getDeviceId=function(){var e;return null===(e=this.config)||void 0===e?void 0:e.deviceId},t.prototype.setDeviceId=function(e){if(!this.config){this.q.push(this.setDeviceId.bind(this,e));return}this.config.loggerProvider.debug("function setDeviceId: ",e),e!==this.config.deviceId&&(this.config.deviceId=e,this.timeline.onIdentityChanged({deviceId:e}),eA(e,this.config.instanceName))},t.prototype.reset=function(){this.setDeviceId(eH()),this.setUserId(void 0)},t.prototype.getSessionId=function(){var e;return null===(e=this.config)||void 0===e?void 0:e.sessionId},t.prototype.setSessionId=function(e){var t,n=[];if(!this.config)return this.q.push(this.setSessionId.bind(this,e)),ev(Promise.resolve());if(e===this.config.sessionId)return ev(Promise.resolve());this.config.loggerProvider.debug("function setSessionId: ",e);var r=this.getSessionId();r!==e&&this.timeline.onSessionIdChanged(e);var i=this.config.lastEventTime,o=null!==(t=this.config.lastEventId)&&void 0!==t?t:-1;this.config.sessionId=e,this.config.lastEventTime=void 0,this.config.pageCounter=0,e7(this.config.defaultTracking)&&(r&&i&&n.push(this.track(t_,void 0,{device_id:this.previousSessionDeviceId,event_id:++o,session_id:r,time:i+1,user_id:this.previousSessionUserId}).promise),this.config.lastEventTime=this.config.sessionId);var a=this.trackCampaignEventIfNeeded(++o,n);return e7(this.config.defaultTracking)&&n.push(this.track(tI,void 0,{event_id:a?++o:o,session_id:this.config.sessionId,time:this.config.lastEventTime}).promise),this.previousSessionDeviceId=this.config.deviceId,this.previousSessionUserId=this.config.userId,ev(Promise.all(n))},t.prototype.extendSession=function(){if(!this.config){this.q.push(this.extendSession.bind(this));return}this.config.lastEventTime=Date.now()},t.prototype.setTransport=function(e){if(!this.config){this.q.push(this.setTransport.bind(this,e));return}this.config.transportProvider=tz(e)},t.prototype.identify=function(t,n){if(to(t)){var r=t._q;t._q=[],t=ti(new eY,r)}return(null==n?void 0:n.user_id)&&this.setUserId(n.user_id),(null==n?void 0:n.device_id)&&this.setDeviceId(n.device_id),e.prototype.identify.call(this,t,n)},t.prototype.groupIdentify=function(t,n,r,i){if(to(r)){var o=r._q;r._q=[],r=ti(new eY,o)}return e.prototype.groupIdentify.call(this,t,n,r,i)},t.prototype.revenue=function(t,n){if(to(t)){var r=t._q;t._q=[],t=ti(new eQ,r)}return e.prototype.revenue.call(this,t,n)},t.prototype.trackCampaignEventIfNeeded=function(e,t){if(!this.webAttribution||!this.webAttribution.shouldTrackNewCampaign)return!1;var n=this.webAttribution.generateCampaignEvent(e);return t?t.push(this.track(n).promise):this.track(n),this.config.loggerProvider.log("Tracking attribution."),!0},t.prototype.process=function(t){return ec(this,void 0,void 0,function(){var n,r,i;return ed(this,function(o){return n=Date.now(),r=eJ(this.config.sessionTimeout,this.config.lastEventTime),i=this.webAttribution&&this.webAttribution.shouldSetSessionIdOnNewCampaign(),t.event_type===tI||t.event_type===t_||t.session_id&&t.session_id!==this.getSessionId()||(r||i?(this.setSessionId(n),i&&this.config.loggerProvider.log("Created a new session for new campaign.")):r||this.trackCampaignEventIfNeeded()),[2,e.prototype.process.call(this,t)]})})},t.prototype.logBrowserOptions=function(e){try{var t=el(el({},e),{apiKey:e.apiKey.substring(0,10)+"********"});this.config.loggerProvider.debug("Initialized Amplitude with BrowserConfig:",JSON.stringify(t))}catch(e){this.config.loggerProvider.error("Error logging browser config",e)}},t}(e4),im=function(e){return function(){var t=el({},e.config);return{logger:t.loggerProvider,logLevel:t.logLevel}}},ib=function(e,t){var n,r;t=(t=t.replace(/\[(\w+)\]/g,".$1")).replace(/^\./,"");try{for(var i=ef(t.split(".")),o=i.next();!o.done;o=i.next()){var a=o.value;if(!(a in e))return;e=e[a]}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return e},iy=function(e,t){return function(){var n,r,i={};try{for(var o=ef(t),a=o.next();!a.done;a=o.next()){var s=a.value;i[s]=ib(e,s)}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return i}},ix=function(e,t,n,r,i){return void 0===i&&(i=null),function(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];var s=n(),l=s.logger,u=s.logLevel;if(u&&u<V.Debug||!u||!l)return e.apply(i,o);var c={type:"invoke public method",name:t,args:o,stacktrace:(Error().stack||"").split("\n").slice(3).map(function(e){return e.trim()}),time:{start:new Date().toISOString()},states:{}};r&&c.states&&(c.states.before=r());var d=e.apply(i,o);return d&&d.promise?d.promise.then(function(){r&&c.states&&(c.states.after=r()),c.time&&(c.time.end=new Date().toISOString()),l.debug(JSON.stringify(c,null,2))}):(r&&c.states&&(c.states.after=r()),c.time&&(c.time.end=new Date().toISOString()),l.debug(JSON.stringify(c,null,2))),d}};(x=Y||(Y={})).US="US",x.EU="EU",x.STAGING="STAGING";var iw="[Amplitude]",iE="".concat(iw," Session Replay ID"),iS=Y.US,ik="".concat(iw," Session Replay Debug"),iO="amp-mask";(w=X||(X={})).GET_SR_PROPS="get-sr-props",w.DEBUG_INFO="debug-info",w.FETCH_REQUEST="fetch-request",w.METADATA="metadata";var iC=function(){function e(e){this.logger=e,this.log=this.getSafeMethod("log"),this.warn=this.getSafeMethod("warn"),this.error=this.getSafeMethod("error"),this.debug=this.getSafeMethod("debug")}return e.prototype.getSafeMethod=function(e){if(!this.logger)return function(){};var t,n=this.logger[e];return"function"==typeof n?(null!==(t=n.__rrweb_original__)&&void 0!==t?t:n).bind(this.logger):function(){}},e.prototype.enable=function(e){this.logger.enable(e)},e.prototype.disable=function(){this.logger.disable()},e}(),iI=function(){return{flushMaxRetries:2,logLevel:V.Warn,loggerProvider:new eV,transportProvider:new tg}},i_=function(e){function t(t,n){var r,i=this,o=iI();return(i=e.call(this,el(el({transportProvider:o.transportProvider,loggerProvider:new iC(n.loggerProvider||o.loggerProvider)},n),{apiKey:t}))||this).flushMaxRetries=void 0!==n.flushMaxRetries&&n.flushMaxRetries<=o.flushMaxRetries?n.flushMaxRetries:o.flushMaxRetries,i.apiKey=t,i.sampleRate=n.sampleRate||0,i.serverZone=n.serverZone||iS,i.configServerUrl=n.configServerUrl,i.trackServerUrl=n.trackServerUrl,i.shouldInlineStylesheet=n.shouldInlineStylesheet,i.version=n.version,i.performanceConfig=n.performanceConfig,i.storeType=null!==(r=n.storeType)&&void 0!==r?r:"idb",n.privacyConfig&&(i.privacyConfig=n.privacyConfig),n.debugMode&&(i.debugMode=n.debugMode),n.experimental&&(i.experimental=n.experimental),i}return es(t,e),t}(ez),iT=n(56624);(E=Q||(Q={})).Unknown="unknown",E.Skipped="skipped",E.Success="success",E.RateLimit="rate_limit",E.PayloadTooLarge="payload_too_large",E.Invalid="invalid",E.Failed="failed",E.Timeout="Timeout",E.SystemError="SystemError";var iP=function(){function e(){}return e.prototype.send=function(e,t){return Promise.resolve(null)},e.prototype.buildResponse=function(e){if("object"!=typeof e)return null;var t,n,r,i,o,a,s,l,u,c,d,f,h,p,g,v,m,b,y,x,w,E,S=e.code||0,k=this.buildStatus(S);switch(k){case Q.Success:return{status:k,statusCode:S,body:{eventsIngested:null!==(t=e.events_ingested)&&void 0!==t?t:0,payloadSizeBytes:null!==(n=e.payload_size_bytes)&&void 0!==n?n:0,serverUploadTime:null!==(r=e.server_upload_time)&&void 0!==r?r:0}};case Q.Invalid:return{status:k,statusCode:S,body:{error:null!==(i=e.error)&&void 0!==i?i:"",missingField:null!==(o=e.missing_field)&&void 0!==o?o:"",eventsWithInvalidFields:null!==(a=e.events_with_invalid_fields)&&void 0!==a?a:{},eventsWithMissingFields:null!==(s=e.events_with_missing_fields)&&void 0!==s?s:{},eventsWithInvalidIdLengths:null!==(l=e.events_with_invalid_id_lengths)&&void 0!==l?l:{},epsThreshold:null!==(u=e.eps_threshold)&&void 0!==u?u:0,exceededDailyQuotaDevices:null!==(c=e.exceeded_daily_quota_devices)&&void 0!==c?c:{},silencedDevices:null!==(d=e.silenced_devices)&&void 0!==d?d:[],silencedEvents:null!==(f=e.silenced_events)&&void 0!==f?f:[],throttledDevices:null!==(h=e.throttled_devices)&&void 0!==h?h:{},throttledEvents:null!==(p=e.throttled_events)&&void 0!==p?p:[]}};case Q.PayloadTooLarge:return{status:k,statusCode:S,body:{error:null!==(g=e.error)&&void 0!==g?g:""}};case Q.RateLimit:return{status:k,statusCode:S,body:{error:null!==(v=e.error)&&void 0!==v?v:"",epsThreshold:null!==(m=e.eps_threshold)&&void 0!==m?m:0,throttledDevices:null!==(b=e.throttled_devices)&&void 0!==b?b:{},throttledUsers:null!==(y=e.throttled_users)&&void 0!==y?y:{},exceededDailyQuotaDevices:null!==(x=e.exceeded_daily_quota_devices)&&void 0!==x?x:{},exceededDailyQuotaUsers:null!==(w=e.exceeded_daily_quota_users)&&void 0!==w?w:{},throttledEvents:null!==(E=e.throttled_events)&&void 0!==E?E:[]}};case Q.Timeout:default:return{status:k,statusCode:S}}},e.prototype.buildStatus=function(e){return e>=200&&e<300?Q.Success:429===e?Q.RateLimit:413===e?Q.PayloadTooLarge:408===e?Q.Timeout:e>=400&&e<500?Q.Invalid:e>=500?Q.Failed:Q.Unknown},e}();(S=J||(J={})).US="US",S.EU="EU",S.STAGING="STAGING";var iR="Remote config fetch rejected due to timeout after 5 seconds",iA="Unexpected error occurred",iN=function(){function e(e){var t=e.localConfig,n=e.configKeys,r=this;this.retryTimeout=1e3,this.attempts=0,this.sessionTargetingMatch=!1,this.metrics={},this.getRemoteConfig=function(e,t,n){return ec(r,void 0,void 0,function(){var r,i,o;return ed(this,function(a){switch(a.label){case 0:return r=Date.now(),[4,this.fetchWithTimeout(n)];case 1:if((i=a.sent())&&(o=i.configs&&i.configs[e]))return this.metrics.fetchTimeAPISuccess=Date.now()-r,[2,o[t]];return this.metrics.fetchTimeAPIFail=Date.now()-r,[2,void 0]}})})},this.fetchWithTimeout=function(e){return ec(r,void 0,void 0,function(){var t,n,r;return ed(this,function(i){switch(i.label){case 0:return t=new AbortController,n=setTimeout(function(){return t.abort()},5e3),[4,this.fetchRemoteConfig(t.signal,e)];case 1:return r=i.sent(),clearTimeout(n),[2,r]}})})},this.fetchRemoteConfig=function(e,t){return ec(r,void 0,void 0,function(){var n,r,i,o,a,s,l,u,c,d,f;return ed(this,function(h){switch(h.label){case 0:if(t===this.lastFetchedSessionId&&this.attempts>=this.localConfig.flushMaxRetries)return[2,this.completeRequest({err:"Remote config fetch rejected due to exceeded retry count"})];if(e.aborted)return[2,this.completeRequest({err:iR})];t!==this.lastFetchedSessionId&&(this.lastFetchedSessionId=t,this.attempts=0),h.label=1;case 1:h.trys.push([1,3,,4]),n=new URLSearchParams({api_key:this.localConfig.apiKey});try{for(i=(r=ef(this.configKeys)).next();!i.done;i=r.next())o=i.value,n.append("config_keys",o)}catch(e){c={error:e}}finally{try{i&&!i.done&&(d=r.return)&&d.call(r)}finally{if(c)throw c.error}}return t&&n.set("session_id",String(t)),a={headers:{Accept:"*/*"},method:"GET"},s="".concat(this.getServerUrl(),"?").concat(n.toString()),this.attempts+=1,[4,fetch(s,el(el({},a),{signal:e}))];case 2:if(null===(l=h.sent()))return[2,this.completeRequest({err:iA})];switch(new iP().buildStatus(l.status)){case Q.Success:return this.attempts=0,[2,this.parseAndStoreConfig(l)];case Q.Failed:return[2,this.retryFetch(e,t)];default:return[2,this.completeRequest({err:"Network error occurred, remote config fetch failed"})]}return[3,4];case 3:if(u=h.sent(),e.aborted)return[2,this.completeRequest({err:iR})];return[2,this.completeRequest({err:null!==(f=u.message)&&void 0!==f?f:iA})];case 4:return[2]}})})},this.retryFetch=function(e,t){return ec(r,void 0,void 0,function(){var n=this;return ed(this,function(r){switch(r.label){case 0:return[4,new Promise(function(e){return setTimeout(e,n.attempts*n.retryTimeout)})];case 1:return r.sent(),[2,this.fetchRemoteConfig(e,t)]}})})},this.parseAndStoreConfig=function(e){return ec(r,void 0,void 0,function(){var t;return ed(this,function(n){switch(n.label){case 0:return[4,e.json()];case 1:return t=n.sent(),this.completeRequest({success:"Remote config successfully fetched"}),[2,t]}})})},this.localConfig=t,this.configKeys=n}return e.prototype.getServerUrl=function(){return this.localConfig.configServerUrl?this.localConfig.configServerUrl:this.localConfig.serverZone===J.STAGING?"https://sr-client-cfg.stag2.amplitude.com/config":this.localConfig.serverZone===J.EU?"https://sr-client-cfg.eu.amplitude.com/config":"https://sr-client-cfg.amplitude.com/config"},e.prototype.completeRequest=function(e){var t=e.err,n=e.success;if(t)throw Error(t);n&&this.localConfig.loggerProvider.log(n)},e}(),iM=function(e){var t=e.localConfig,n=e.configKeys;return ec(void 0,void 0,void 0,function(){return ed(this,function(e){return[2,new iN({localConfig:t,configKeys:n})]})})},iL="medium",iD=function(e,t,n){switch(t){case"light":if("input"!==e)return!0;var r,i=n?(r=n.type,n.hasAttribute("data-rr-is-password")?"password":r?r.toLowerCase():null):"";if(!i)return!1;if(["password","hidden","email","tel"].includes(i)||n.autocomplete.startsWith("cc-"))return!0;return!1;case"medium":case"conservative":return!0;default:return iD(e,iL,n)}},iF=function(e,t,n){var r,i,o;if(void 0===t&&(t={defaultMaskLevel:iL}),n){if(n.closest("."+iO)||(null!==(r=t.maskSelector)&&void 0!==r?r:[]).some(function(e){return n.closest(e)}))return!0;if(n.closest(".amp-unmask")||(null!==(i=t.unmaskSelector)&&void 0!==i?i:[]).some(function(e){return n.closest(e)}))return!1}return iD(e,null!==(o=t.defaultMaskLevel)&&void 0!==o?o:iL,n)},iV=function(e,t){return function(n,r){return iF(e,t,r)?n.replace(/[^\s]/g,"*"):n}},ij=function(e){var t=0;if(0===e.length)return t;for(var n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n)|0;return t},iz=function(){var e=em();return(null==e?void 0:e.location)?e.location.href:""},iU=function(e,t){return t||(e===Y.STAGING?"https://api-sr.stag2.amplitude.com/sessions/v2/track":e===Y.EU?"https://api-sr.eu.amplitude.com/sessions/v2/track":"https://api-sr.amplitude.com/sessions/v2/track")},iB=function(){return ec(void 0,void 0,void 0,function(){var e,t,n,r;return ed(this,function(i){switch(i.label){case 0:if(i.trys.push([0,3,,4]),!(e=em()))return[3,2];return[4,e.navigator.storage.estimate()];case 1:return n=(t=i.sent()).usage,r=t.quota,[2,{totalStorageSize:n?Math.round(n/1024):0,percentOfQuota:n&&r?Math.round((n/r+Number.EPSILON)*1e3)/1e3:0,usageDetails:JSON.stringify(t.usageDetails)}];case 2:return[3,4];case 3:return i.sent(),[3,4];case 4:return[2,{totalStorageSize:0,percentOfQuota:0,usageDetails:""}]}})})},iW=function(e){var t=el({},e),n=t.apiKey;return t.apiKey="****".concat(n.substring(n.length-4)),t},iH=function(e,t){var n=document.createDocumentFragment(),r=function(e){if(void 0===e&&(e=[]),"string"==typeof e&&(e=[e]),0!==(e=e.filter(function(e){try{n.querySelector(e)}catch(n){return t.warn('[session-replay-browser] omitting selector "'.concat(e,'" because it is invalid')),!1}return!0})).length)return e};return e.blockSelector=r(e.blockSelector),e.maskSelector=r(e.maskSelector),e.unmaskSelector=r(e.unmaskSelector),e},i$=function(){function e(e,t){this.localConfig=t,this.remoteConfigFetch=e}return e.prototype.generateJoinedConfig=function(e){var t,n,r;return ec(this,void 0,void 0,function(){var i,o,a,s,l,u,c,d,f,h,p,g,v,m,b,y,x,w,E,S;return ed(this,function(k){switch(k.label){case 0:(i=el({},this.localConfig)).optOut=this.localConfig.optOut,i.captureEnabled=!0,k.label=1;case 1:return k.trys.push([1,6,,7]),[4,this.remoteConfigFetch.getRemoteConfig("sessionReplay","sr_sampling_config",e)];case 2:return a=k.sent(),[4,this.remoteConfigFetch.getRemoteConfig("sessionReplay","sr_privacy_config",e)];case 3:return s=k.sent(),l=i,[4,this.remoteConfigFetch.getRemoteConfig("sessionReplay","sr_interaction_config",e)];case 4:return l.interactionConfig=k.sent(),u=i,[4,this.remoteConfigFetch.getRemoteConfig("sessionReplay","sr_logging_config",e)];case 5:return u.loggingConfig=k.sent(),(a||s)&&(o={},a&&(o.sr_sampling_config=a),s&&(o.sr_privacy_config=s)),[3,7];case 6:return c=k.sent(),this.localConfig.loggerProvider.warn(c.message),i.captureEnabled=!1,[3,7];case 7:if(!o)return[2,{localConfig:this.localConfig,joinedConfig:i,remoteConfig:o}];if(d=o.sr_sampling_config,f=o.sr_privacy_config,d&&Object.keys(d).length>0?(Object.prototype.hasOwnProperty.call(d,"capture_enabled")?i.captureEnabled=d.capture_enabled:i.captureEnabled=!1,Object.prototype.hasOwnProperty.call(d,"sample_rate")&&(i.sampleRate=d.sample_rate)):(i.captureEnabled=!0,this.localConfig.loggerProvider.debug("Remote config successfully fetched, but no values set for project, Session Replay capture enabled.")),f){h=null!==(t=i.privacyConfig)&&void 0!==t?t:{},p={defaultMaskLevel:null!==(r=null!==(n=f.defaultMaskLevel)&&void 0!==n?n:h.defaultMaskLevel)&&void 0!==r?r:"medium",blockSelector:[],maskSelector:[],unmaskSelector:[]},v=el(el({},(g=function(e){var t,n,r,i,o,a,s,l,u,c={};"string"==typeof e.blockSelector&&(e.blockSelector=[e.blockSelector]);try{for(var d=ef(null!==(s=e.blockSelector)&&void 0!==s?s:[]),f=d.next();!f.done;f=d.next()){var h=f.value;c[h]="block"}}catch(e){t={error:e}}finally{try{f&&!f.done&&(n=d.return)&&n.call(d)}finally{if(t)throw t.error}}try{for(var p=ef(null!==(l=e.maskSelector)&&void 0!==l?l:[]),g=p.next();!g.done;g=p.next()){var h=g.value;c[h]="mask"}}catch(e){r={error:e}}finally{try{g&&!g.done&&(i=p.return)&&i.call(p)}finally{if(r)throw r.error}}try{for(var v=ef(null!==(u=e.unmaskSelector)&&void 0!==u?u:[]),m=v.next();!m.done;m=v.next()){var h=m.value;c[h]="unmask"}}catch(e){o={error:e}}finally{try{m&&!m.done&&(a=v.return)&&a.call(v)}finally{if(o)throw o.error}}return c})(h)),g(f));try{for(b=(m=ef(Object.entries(v))).next();!b.done;b=m.next())x=(y=eh(b.value,2))[0],w=y[1],"mask"===w?p.maskSelector.push(x):"block"===w?p.blockSelector.push(x):"unmask"===w&&p.unmaskSelector.push(x)}catch(e){E={error:e}}finally{try{b&&!b.done&&(S=m.return)&&S.call(m)}finally{if(E)throw E.error}}i.privacyConfig=iH(p,this.localConfig.loggerProvider)}return this.localConfig.loggerProvider.debug(JSON.stringify({name:"session replay joined config",config:iW(i)},null,2)),[2,{localConfig:this.localConfig,joinedConfig:i,remoteConfig:o}]}})})},e}(),iq="Failed to store session replay events in IndexedDB",iG="1.22.10",iK=function(){function e(e){var t=e.trackServerUrl,n=e.loggerProvider,r=e.payloadBatcher;this.storageKey="",this.retryTimeout=1e3,this.scheduled=null,this.queue=[],this.loggerProvider=n,this.payloadBatcher=r||function(e){return e},this.trackServerUrl=t}return e.prototype.sendEventsList=function(e){this.addToQueue(el(el({},e),{attempts:0,timeout:0}))},e.prototype.addToQueue=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];t.filter(function(t){return t.attempts<(t.flushMaxRetries||0)?(t.attempts+=1,!0):(e.completeRequest({context:t,err:"Session replay event batch rejected due to exceeded retry count"}),!1)}).forEach(function(t){if(e.queue=e.queue.concat(t),0===t.timeout){e.schedule(0);return}setTimeout(function(){t.timeout=0,e.schedule(0)},t.timeout)})},e.prototype.schedule=function(e){var t=this;this.scheduled||(this.scheduled=setTimeout(function(){t.flush(!0).then(function(){t.queue.length>0&&t.schedule(e)})},e))},e.prototype.flush=function(e){return void 0===e&&(e=!1),ec(this,void 0,void 0,function(){var t,n,r=this;return ed(this,function(i){switch(i.label){case 0:return t=[],n=[],this.queue.forEach(function(e){return 0===e.timeout?t.push(e):n.push(e)}),this.queue=n,this.scheduled&&(clearTimeout(this.scheduled),this.scheduled=null),[4,Promise.all(t.map(function(t){return r.send(t,e)}))];case 1:return i.sent(),[2]}})})},e.prototype.send=function(e,t){var n,r;return void 0===t&&(t=!0),ec(this,void 0,void 0,function(){var i,o,a,s,l,u,c,d,f,h,p,g;return ed(this,function(v){switch(v.label){case 0:if(!(i=e.apiKey))return[2,this.completeRequest({context:e,err:"Session replay event batch not sent due to missing api key"})];if(!(o=e.deviceId))return[2,this.completeRequest({context:e,err:"Session replay event batch not sent due to missing device ID"})];if(a=iz(),s=iG,l=e.sampleRate,u=new URLSearchParams({device_id:o,session_id:"".concat(e.sessionId),type:"".concat(e.type)}),c="".concat((null===(n=e.version)||void 0===n?void 0:n.type)||"standalone","/").concat((null===(r=e.version)||void 0===r?void 0:r.version)||s),0===(d=this.payloadBatcher({version:1,events:e.events})).events.length)return this.completeRequest({context:e}),[2];v.label=1;case 1:return v.trys.push([1,3,,4]),f={headers:{"Content-Type":"application/json",Accept:"*/*",Authorization:"Bearer ".concat(i),"X-Client-Version":s,"X-Client-Library":c,"X-Client-Url":a.substring(0,1e3),"X-Client-Sample-Rate":"".concat(l)},body:JSON.stringify(d),method:"POST"},[4,fetch("".concat(iU(e.serverZone,this.trackServerUrl),"?").concat(u.toString()),f)];case 2:if(null===(h=v.sent()))return this.completeRequest({context:e,err:"Unexpected error occurred"}),[2];if(t)this.handleReponse(h.status,e);else{p="";try{p=JSON.stringify(h.body,null,2)}catch(e){}this.completeRequest({context:e,success:"".concat(h.status,": ").concat(p)})}return[3,4];case 3:return g=v.sent(),this.completeRequest({context:e,err:g}),[3,4];case 4:return[2]}})})},e.prototype.handleReponse=function(e,t){switch(new tp().buildStatus(e)){case F.Success:this.handleSuccessResponse(t);break;case F.Failed:this.handleOtherResponse(t);break;default:this.completeRequest({context:t,err:"Network error occurred, event batch rejected"})}},e.prototype.handleSuccessResponse=function(e){var t=Math.round(new Blob(e.events).size/1024);this.completeRequest({context:e,success:"Session replay event batch tracked successfully for session id ".concat(e.sessionId,", size of events: ").concat(t," KB")})},e.prototype.handleOtherResponse=function(e){this.addToQueue(el(el({},e),{timeout:e.attempts*this.retryTimeout}))},e.prototype.completeRequest=function(e){var t=e.context,n=e.err,r=e.success;t.onComplete(),n?this.loggerProvider.warn(n):r&&this.loggerProvider.log(r)},e}();let iZ=(e,t)=>t.some(t=>e instanceof t),iY=new WeakMap,iX=new WeakMap,iQ=new WeakMap,iJ={get(e,t,n){if(e instanceof IDBTransaction){if("done"===t)return iY.get(e);if("store"===t)return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return i0(e[t])},set:(e,t,n)=>(e[t]=n,!0),has:(e,t)=>e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e};function i0(e){var t;if(e instanceof IDBRequest)return function(e){let t=new Promise((t,n)=>{let r=()=>{e.removeEventListener("success",i),e.removeEventListener("error",o)},i=()=>{t(i0(e.result)),r()},o=()=>{n(e.error),r()};e.addEventListener("success",i),e.addEventListener("error",o)});return iQ.set(t,e),t}(e);if(iX.has(e))return iX.get(e);let n="function"==typeof(t=e)?(i||(i=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(t)?function(...e){return t.apply(i1(this),e),i0(this.request)}:function(...e){return i0(t.apply(i1(this),e))}:(t instanceof IDBTransaction&&function(e){if(iY.has(e))return;let t=new Promise((t,n)=>{let r=()=>{e.removeEventListener("complete",i),e.removeEventListener("error",o),e.removeEventListener("abort",o)},i=()=>{t(),r()},o=()=>{n(e.error||new DOMException("AbortError","AbortError")),r()};e.addEventListener("complete",i),e.addEventListener("error",o),e.addEventListener("abort",o)});iY.set(e,t)}(t),iZ(t,r||(r=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])))?new Proxy(t,iJ):t;return n!==e&&(iX.set(e,n),iQ.set(n,e)),n}let i1=e=>iQ.get(e),i2=["get","getKey","getAll","getAllKeys","count"],i5=["put","add","delete","clear"],i4=new Map;function i3(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&"string"==typeof t))return;if(i4.get(t))return i4.get(t);let n=t.replace(/FromIndex$/,""),r=t!==n,i=i5.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!(i||i2.includes(n)))return;let o=async function(e,...t){let o=this.transaction(e,i?"readwrite":"readonly"),a=o.store;return r&&(a=a.index(t.shift())),(await Promise.all([a[n](...t),i&&o.done]))[0]};return i4.set(t,o),o}iJ={...a=iJ,get:(e,t,n)=>i3(e,t)||a.get(e,t,n),has:(e,t)=>!!i3(e,t)||a.has(e,t)};let i6=["continue","continuePrimaryKey","advance"],i8={},i7=new WeakMap,i9=new WeakMap,oe={get(e,t){if(!i6.includes(t))return e[t];let n=i8[t];return n||(n=i8[t]=function(...e){i7.set(this,i9.get(this)[t](...e))}),n}};async function*ot(...e){let t=this;if(t instanceof IDBCursor||(t=await t.openCursor(...e)),!t)return;let n=new Proxy(t,oe);for(i9.set(n,t),iQ.set(n,i1(t));t;)yield n,t=await (i7.get(n)||t.continue()),i7.delete(n)}function on(e,t){return t===Symbol.asyncIterator&&iZ(e,[IDBIndex,IDBObjectStore,IDBCursor])||"iterate"===t&&iZ(e,[IDBIndex,IDBObjectStore])}iJ={...s=iJ,get:(e,t,n)=>on(e,t)?ot:s.get(e,t,n),has:(e,t)=>on(e,t)||s.has(e,t)};var or=function(){function e(e){var t,n,r,i=this;this.minInterval=500,this.maxInterval=1e4,this.maxPersistedEventsSize=1e6,this.interval=this.minInterval,this._timeAtLastSplit=Date.now(),this.shouldSplitEventsList=function(e,t){var n=new Blob([t]).size;return new Blob(e).size+n>=i.maxPersistedEventsSize||Date.now()-i.timeAtLastSplit>i.interval&&!!e.length&&(i.interval=Math.min(i.maxInterval,i.interval+i.minInterval),i._timeAtLastSplit=Date.now(),!0)},this.loggerProvider=e.loggerProvider,this.minInterval=null!==(t=e.minInterval)&&void 0!==t?t:this.minInterval,this.maxInterval=null!==(n=e.maxInterval)&&void 0!==n?n:this.maxInterval,this.maxPersistedEventsSize=null!==(r=e.maxPersistedEventsSize)&&void 0!==r?r:this.maxPersistedEventsSize}return Object.defineProperty(e.prototype,"timeAtLastSplit",{get:function(){return this._timeAtLastSplit},enumerable:!1,configurable:!0}),e}();(k=ee||(ee={})).RECORDING="recording",k.SENT="sent";var oi="sessionCurrentSequence",oo="sequencesToSend",oa=function(){var e=em();return new Promise(function(t,n){if(!e)return n(Error("Global scope not found"));if(!e.indexedDB)return n(Error("Session Replay: cannot find indexedDB"));try{var r=e.indexedDB.open("keyval-store");r.onupgradeneeded=function(){1===r.result.version&&(r.result.close(),r.transaction&&r.transaction.abort(),e.indexedDB.deleteDatabase("keyval-store"),t())},r.onsuccess=function(){t(r.result)}}catch(e){n(e)}})},os=function(e){return ec(void 0,void 0,void 0,function(){return ed(this,function(t){switch(t.label){case 0:if(!(e.length>0))return[3,2];return[4,Promise.all(e.splice(0,10))];case 1:return t.sent(),[3,0];case 2:return[2]}})})},ol=function(e){var t,n;return e.objectStoreNames.contains(oi)||(n=e.createObjectStore(oi,{keyPath:"sessionId"})),e.objectStoreNames.contains(oo)||(t=e.createObjectStore(oo,{keyPath:"sequenceId",autoIncrement:!0})).createIndex("sessionId","sessionId"),{sequencesStore:t,currentSequenceStore:n}},ou=function(e){function t(t){var n=e.call(this,t)||this;return n.getSequencesToSend=function(){return ec(n,void 0,void 0,function(){var e,t,n,r,i,o;return ed(this,function(a){switch(a.label){case 0:return a.trys.push([0,5,,6]),e=[],[4,this.db.transaction("sequencesToSend").store.openCursor()];case 1:t=a.sent(),a.label=2;case 2:if(!t)return[3,4];return r=(n=t.value).sessionId,i=n.events,e.push({events:i,sequenceId:t.key,sessionId:r}),[4,t.continue()];case 3:return t=a.sent(),[3,2];case 4:return[2,e];case 5:return o=a.sent(),this.loggerProvider.warn("".concat(iq,": ").concat(o)),[3,6];case 6:return[2,void 0]}})})},n.storeCurrentSequence=function(e){return ec(n,void 0,void 0,function(){var t,n,r;return ed(this,function(i){switch(i.label){case 0:return i.trys.push([0,4,,5]),[4,this.db.get(oi,e)];case 1:if(!(t=i.sent()))return[2,void 0];return[4,this.db.put(oo,{sessionId:e,events:t.events})];case 2:return n=i.sent(),[4,this.db.put(oi,{sessionId:e,events:[]})];case 3:return i.sent(),[2,el(el({},t),{sessionId:e,sequenceId:n})];case 4:return r=i.sent(),this.loggerProvider.warn("".concat(iq,": ").concat(r)),[3,5];case 5:return[2,void 0]}})})},n.addEventToCurrentSequence=function(e,t){return ec(n,void 0,void 0,function(){var n,r,i,o,a,s;return ed(this,function(l){switch(l.label){case 0:return l.trys.push([0,10,,11]),[4,(n=this.db.transaction(oi,"readwrite")).store.get(e)];case 1:if(r=l.sent())return[3,3];return[4,n.store.put({sessionId:e,events:[t]})];case 2:return l.sent(),[2];case 3:if(i=void 0,!this.shouldSplitEventsList(r.events,t))return[3,5];return i=r.events,[4,n.store.put({sessionId:e,events:[t]})];case 4:return l.sent(),[3,7];case 5:return o=r.events.concat(t),[4,n.store.put({sessionId:e,events:o})];case 6:l.sent(),l.label=7;case 7:return[4,n.done];case 8:if(l.sent(),!i)return[2,void 0];return[4,this.storeSendingEvents(e,i)];case 9:if(!(a=l.sent()))return[2,void 0];return[2,{events:i,sessionId:e,sequenceId:a}];case 10:return s=l.sent(),this.loggerProvider.warn("".concat(iq,": ").concat(s)),[3,11];case 11:return[2,void 0]}})})},n.storeSendingEvents=function(e,t){return ec(n,void 0,void 0,function(){var n;return ed(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,this.db.put(oo,{sessionId:e,events:t})];case 1:return[2,r.sent()];case 2:return n=r.sent(),this.loggerProvider.warn("".concat(iq,": ").concat(n)),[3,3];case 3:return[2,void 0]}})})},n.cleanUpSessionEventsStore=function(e,t){return ec(n,void 0,void 0,function(){var e;return ed(this,function(n){switch(n.label){case 0:if(!t)return[2];n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.db.delete(oo,t)];case 2:return n.sent(),[3,4];case 3:return e=n.sent(),this.loggerProvider.warn("".concat(iq,": ").concat(e)),[3,4];case 4:return[2]}})})},n.transitionFromKeyValStore=function(e){return ec(n,void 0,void 0,function(){var t,n,r,i,o,a,s,l=this;return ed(this,function(u){switch(u.label){case 0:return u.trys.push([0,6,,7]),[4,oa()];case 1:if(!(t=u.sent()))return[2];n=function(e,t){return ec(l,void 0,void 0,function(){var n,r,i=this;return ed(this,function(o){switch(o.label){case 0:return n=t.sessionSequences,r=[],Object.keys(n).forEach(function(o){var a=parseInt(o,10),s=n[a];if(a===t.currentSequenceId){var l=s.events.map(function(t){return ec(i,void 0,void 0,function(){return ed(this,function(n){return[2,this.addEventToCurrentSequence(e,t)]})})});r.concat(l)}else s.status!==ee.SENT&&r.push(i.storeSendingEvents(e,s.events))}),[4,os(r)];case 1:return o.sent(),[2]}})})},r="".concat(eN,"_").concat(this.apiKey.substring(0,10)),u.label=2;case 2:return u.trys.push([2,4,,5]),i=t.transaction("keyval").objectStore("keyval").getAll(r),[4,new Promise(function(t){i.onsuccess=function(r){return ec(l,void 0,void 0,function(){var i,o,a,s=this;return ed(this,function(l){switch(l.label){case 0:if(!(o=(i=r&&r.target.result)&&i[0]))return[3,2];return a=[],Object.keys(o).forEach(function(t){var r=parseInt(t,10),i=o[r];if(e===r)a.push(n(r,i));else{var l=i.sessionSequences;Object.keys(l).forEach(function(e){var t=parseInt(e,10);l[t].status!==ee.SENT&&a.push(s.storeSendingEvents(r,l[t].events))})}}),[4,os(a)];case 1:l.sent(),l.label=2;case 2:return t(),[2]}})})}})];case 3:return u.sent(),(o=em())&&o.indexedDB.deleteDatabase("keyval-store"),[3,5];case 4:return a=u.sent(),this.loggerProvider.warn("Failed to transition session replay events from keyval to new store: ".concat(a)),[3,5];case 5:return[3,7];case 6:return s=u.sent(),this.loggerProvider.warn("Failed to access keyval store: ".concat(s,". For more information, visit: https://www.docs.developers.amplitude.com/session-replay/sdks/standalone/#indexeddb-best-practices")),[3,7];case 7:return[2]}})})},n.apiKey=t.apiKey,n.db=t.db,n}return es(t,e),t.new=function(e,n,r){return ec(this,void 0,void 0,function(){var i,o,a,s;return ed(this,function(l){switch(l.label){case 0:var u;return l.trys.push([0,3,,4]),i="replay"===e?"":"_".concat(e),[4,(u="".concat(n.apiKey.substring(0,10),"_amp_session_replay_events").concat(i),ec(void 0,void 0,void 0,function(){return ed(this,function(e){switch(e.label){case 0:return[4,function(e,t,{blocked:n,upgrade:r,blocking:i,terminated:o}={}){let a=indexedDB.open(e,1),s=i0(a);return r&&a.addEventListener("upgradeneeded",e=>{r(i0(a.result),e.oldVersion,e.newVersion,i0(a.transaction),e)}),n&&a.addEventListener("blocked",e=>n(e.oldVersion,e.newVersion,e)),s.then(e=>{o&&e.addEventListener("close",()=>o()),i&&e.addEventListener("versionchange",e=>i(e.oldVersion,e.newVersion,e))}).catch(()=>{}),s}(u,0,{upgrade:ol})];case 1:return[2,e.sent()]}})}))];case 1:return o=l.sent(),[4,(a=new t(el(el({},n),{db:o}))).transitionFromKeyValStore(r)];case 2:return l.sent(),[2,a];case 3:return s=l.sent(),n.loggerProvider.warn("".concat(iq,": ").concat(s)),[3,4];case 4:return[2]}})})},t.prototype.getCurrentSequenceEvents=function(e){return ec(this,void 0,void 0,function(){var t,n,r,i,o,a;return ed(this,function(s){switch(s.label){case 0:if(!e)return[3,2];return[4,this.db.get("sessionCurrentSequence",e)];case 1:if(!(t=s.sent()))return[2,void 0];return[2,[t]];case 2:n=[],s.label=3;case 3:return s.trys.push([3,8,9,10]),[4,this.db.getAll("sessionCurrentSequence")];case 4:i=(r=ef.apply(void 0,[s.sent()])).next(),s.label=5;case 5:if(i.done)return[3,7];t=i.value,n.push(t),s.label=6;case 6:return i=r.next(),[3,5];case 7:return[3,10];case 8:return o={error:s.sent()},[3,10];case 9:try{i&&!i.done&&(a=r.return)&&a.call(r)}finally{if(o)throw o.error}return[7];case 10:return[2,n]}})})},t}(or),oc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.finalizedSequences={},t.sequences={},t.sequenceId=0,t}return es(t,e),t.prototype.resetCurrentSequence=function(e){this.sequences[e]=[]},t.prototype.addSequence=function(e){var t=this.sequenceId++,n=ep([],eh(this.sequences[e]),!1);return this.finalizedSequences[t]={sessionId:e,events:n},this.resetCurrentSequence(e),{sequenceId:t,events:n,sessionId:e}},t.prototype.getSequencesToSend=function(){return ec(this,void 0,void 0,function(){return ed(this,function(e){return[2,Object.entries(this.finalizedSequences).map(function(e){var t=eh(e,2),n=t[0],r=t[1],i=r.sessionId,o=r.events;return{sequenceId:Number(n),sessionId:i,events:o}})]})})},t.prototype.storeCurrentSequence=function(e){return ec(this,void 0,void 0,function(){return ed(this,function(t){return this.sequences[e]?[2,this.addSequence(e)]:[2,void 0]})})},t.prototype.addEventToCurrentSequence=function(e,t){return ec(this,void 0,void 0,function(){var n;return ed(this,function(r){return this.sequences[e]||this.resetCurrentSequence(e),this.shouldSplitEventsList(this.sequences[e],t)&&(n=this.addSequence(e)),this.sequences[e].push(t),[2,n]})})},t.prototype.storeSendingEvents=function(e,t){return ec(this,void 0,void 0,function(){return ed(this,function(n){return this.finalizedSequences[this.sequenceId]={sessionId:e,events:t},[2,this.sequenceId++]})})},t.prototype.cleanUpSessionEventsStore=function(e,t){return ec(this,void 0,void 0,function(){return ed(this,function(e){return void 0!==t&&delete this.finalizedSequences[t],[2]})})},t}(or),od=function(e){var t=e.config,n=e.sessionId,r=e.minInterval,i=e.maxInterval,o=e.type,a=e.payloadBatcher,s=e.storeType;return ec(void 0,void 0,void 0,function(){var e,l,u,c,d,f;function h(t){return void 0===t&&(t=!1),ec(this,void 0,void 0,function(){return ed(this,function(n){return[2,e.flush(t)]})})}return ed(this,function(p){switch(p.label){case 0:if(e=new iK(el(el({},t),{loggerProvider:t.loggerProvider,payloadBatcher:a})),l=function(){return new oc({loggerProvider:t.loggerProvider,maxInterval:i,minInterval:r})},u=function(){return ec(void 0,void 0,void 0,function(){var e;return ed(this,function(a){switch(a.label){case 0:return[4,ou.new(o,{loggerProvider:t.loggerProvider,minInterval:r,maxInterval:i,apiKey:t.apiKey},n)];case 1:return e=a.sent(),t.loggerProvider.log("Failed to initialize idb store, falling back to memory store."),[2,null!=e?e:l()]}})})},"idb"!==s)return[3,2];return[4,u()];case 1:return d=p.sent(),[3,3];case 2:d=l(),p.label=3;case 3:return c=d,f=function(n){var r=n.events,i=n.sessionId,a=n.deviceId,s=n.sequenceId;t.debugMode&&iB().then(function(e){var n=e.totalStorageSize,r=e.percentOfQuota,i=e.usageDetails;t.loggerProvider.debug("Total storage size: ".concat(n," KB, percentage of quota: ").concat(r,"%, usage details: ").concat(i))}).catch(function(){}),e.sendEventsList({events:r,sessionId:i,flushMaxRetries:t.flushMaxRetries,apiKey:t.apiKey,deviceId:a,sampleRate:t.sampleRate,serverZone:t.serverZone,version:t.version,type:o,onComplete:function(){return ec(void 0,void 0,void 0,function(){return ed(this,function(e){switch(e.label){case 0:return[4,c.cleanUpSessionEventsStore(i,s)];case 1:return e.sent(),[2]}})})}})},[2,{sendCurrentSequenceEvents:function(e){var n=e.sessionId,r=e.deviceId;c.storeCurrentSequence(n).then(function(e){e&&f({sequenceId:e.sequenceId,events:e.events,sessionId:e.sessionId,deviceId:r})}).catch(function(e){t.loggerProvider.warn("Failed to get current sequence of session replay events for session:",e)})},addEvent:function(e){var n=e.event,r=e.sessionId,i=e.deviceId;c.addEventToCurrentSequence(r,n.data).then(function(e){return e&&f({sequenceId:e.sequenceId,events:e.events,sessionId:e.sessionId,deviceId:i})}).catch(function(e){t.loggerProvider.warn("Failed to add event to session replay capture:",e)})},sendStoredEvents:function(e){var t=e.deviceId;return ec(void 0,void 0,void 0,function(){var e;return ed(this,function(n){switch(n.label){case 0:return[4,c.getSequencesToSend()];case 1:return(e=n.sent())&&e.forEach(function(e){f({sequenceId:e.sequenceId,events:e.events,sessionId:e.sessionId,deviceId:t})}),[2]}})})},flush:h}]}})})},of=function(){function e(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=new Map;e.forEach(function(e){n.set(e.name,e.manager)}),this.managers=n}return e.prototype.sendStoredEvents=function(e){return ec(this,void 0,void 0,function(){var t;return ed(this,function(n){switch(n.label){case 0:return t=[],this.managers.forEach(function(n){t.push(n.sendStoredEvents(e))}),[4,Promise.all(t)];case 1:return n.sent(),[2]}})})},e.prototype.addEvent=function(e){var t,n=e.sessionId,r=e.event,i=e.deviceId;null===(t=this.managers.get(r.type))||void 0===t||t.addEvent({sessionId:n,event:r,deviceId:i})},e.prototype.sendCurrentSequenceEvents=function(e){var t=e.sessionId,n=e.deviceId;this.managers.forEach(function(e){e.sendCurrentSequenceEvents({sessionId:t,deviceId:n})})},e.prototype.flush=function(e){return ec(this,void 0,void 0,function(){var t;return ed(this,function(n){switch(n.label){case 0:return t=[],this.managers.forEach(function(n){t.push(n.flush(e))}),[4,Promise.all(t)];case 1:return n.sent(),[2]}})})},e}(),oh=((O=oh||{})[O.DomContentLoaded=0]="DomContentLoaded",O[O.Load=1]="Load",O[O.FullSnapshot=2]="FullSnapshot",O[O.IncrementalSnapshot=3]="IncrementalSnapshot",O[O.Meta=4]="Meta",O[O.Custom=5]="Custom",O[O.Plugin=6]="Plugin",O),op=((C=op||{})[C.Mutation=0]="Mutation",C[C.MouseMove=1]="MouseMove",C[C.MouseInteraction=2]="MouseInteraction",C[C.Scroll=3]="Scroll",C[C.ViewportResize=4]="ViewportResize",C[C.Input=5]="Input",C[C.TouchMove=6]="TouchMove",C[C.MediaInteraction=7]="MediaInteraction",C[C.StyleSheetRule=8]="StyleSheetRule",C[C.CanvasMutation=9]="CanvasMutation",C[C.Font=10]="Font",C[C.Log=11]="Log",C[C.Drag=12]="Drag",C[C.StyleDeclaration=13]="StyleDeclaration",C[C.Selection=14]="Selection",C[C.AdoptedStyleSheet=15]="AdoptedStyleSheet",C[C.CustomElement=16]="CustomElement",C),og=((I=og||{})[I.MouseUp=0]="MouseUp",I[I.MouseDown=1]="MouseDown",I[I.Click=2]="Click",I[I.ContextMenu=3]="ContextMenu",I[I.DblClick=4]="DblClick",I[I.Focus=5]="Focus",I[I.Blur=6]="Blur",I[I.TouchStart=7]="TouchStart",I[I.TouchMove_Departed=8]="TouchMove_Departed",I[I.TouchEnd=9]="TouchEnd",I[I.TouchCancel=10]="TouchCancel",I),ov=((_=ov||{})[_.Mouse=0]="Mouse",_[_.Pen=1]="Pen",_[_.Touch=2]="Touch",_),om=((T=om||{})[T["2D"]=0]="2D",T[T.WebGL=1]="WebGL",T[T.WebGL2=2]="WebGL2",T),ob=((P=ob||{})[P.Play=0]="Play",P[P.Pause=1]="Pause",P[P.Seeked=2]="Seeked",P[P.VolumeChange=3]="VolumeChange",P[P.RateChange=4]="RateChange",P),oy=((R=oy||{}).Start="start",R.Pause="pause",R.Resume="resume",R.Resize="resize",R.Finish="finish",R.FullsnapshotRebuilded="fullsnapshot-rebuilded",R.LoadStylesheetStart="load-stylesheet-start",R.LoadStylesheetEnd="load-stylesheet-end",R.SkipStart="skip-start",R.SkipEnd="skip-end",R.MouseInteraction="mouse-interaction",R.EventCast="event-cast",R.CustomEvent="custom-event",R.Flush="flush",R.StateChange="state-change",R.PlayBack="play-back",R.Destroy="destroy",R),ox=((A=ox||{})[A.Document=0]="Document",A[A.DocumentType=1]="DocumentType",A[A.Element=2]="Element",A[A.Text=3]="Text",A[A.CDATA=4]="CDATA",A[A.Comment=5]="Comment",A);function ow(e,t,n){for(var r=null,i=[],o=e,a=0;o&&"break"!==function(){var e,s,l,u,c=new Date().getTime()-er.getTime();if(void 0!==et.timeoutMs&&c>et.timeoutMs)throw Error("Timeout: Can't find a unique selector after ".concat(c,"ms"));var d=oT((e=o.getAttribute("id"))&&et.idName(e)?{name:"#"+CSS.escape(e),penalty:0}:null)||oT.apply(void 0,ep([],eh(Array.from(o.attributes).filter(function(e){return et.attr(e.name,e.value)}).map(function(e){return{name:"[".concat(CSS.escape(e.name),'="').concat(CSS.escape(e.value),'"]'),penalty:.5}})),!1))||oT.apply(void 0,ep([],eh(Array.from(o.classList).filter(et.className).map(function(e){return{name:"."+CSS.escape(e),penalty:1}})),!1))||oT((s=o.tagName.toLowerCase(),et.tagName(s)?{name:s,penalty:2}:null))||[oC()],f=function(e){var t=e.parentNode;if(!t)return null;var n=t.firstChild;if(!n)return null;for(var r=0;n&&(n.nodeType===Node.ELEMENT_NODE&&r++,n!==e);)n=n.nextSibling;return r}(o);if("all"==t)f&&(d=d.concat(d.filter(o_).map(function(e){return oI(e,f)})));else if("two"==t)d=d.slice(0,1),f&&(d=d.concat(d.filter(o_).map(function(e){return oI(e,f)})));else if("one"==t){var h=eh(d=d.slice(0,1),1)[0];f&&o_(h)&&(d=[oI(h,f)])}else"none"==t&&(d=[oC()],f&&(d=[oI(d[0],f)]));try{for(var p=(l=void 0,ef(d)),g=p.next();!g.done;g=p.next()){var h=g.value;h.level=a}}catch(e){l={error:e}}finally{try{g&&!g.done&&(u=p.return)&&u.call(p)}finally{if(l)throw l.error}}if(i.push(d),i.length>=et.seedMinLength&&(r=oE(i,n)))return"break";o=o.parentElement,a++}(););return(r||(r=oE(i,n)),!r&&n)?n():r}function oE(e,t){var n,r,i=oR(function e(t,n){var r,i,o,a,s;return void 0===n&&(n=[]),ed(this,function(l){switch(l.label){case 0:if(!(t.length>0))return[3,9];l.label=1;case 1:l.trys.push([1,6,7,8]),i=(r=ef(t[0])).next(),l.label=2;case 2:if(i.done)return[3,5];return o=i.value,[5,ef(e(t.slice(1,t.length),n.concat(o)))];case 3:l.sent(),l.label=4;case 4:return i=r.next(),[3,2];case 5:return[3,8];case 6:return a={error:l.sent()},[3,8];case 7:try{i&&!i.done&&(s=r.return)&&s.call(r)}finally{if(a)throw a.error}return[7];case 8:return[3,11];case 9:return[4,n];case 10:l.sent(),l.label=11;case 11:return[2]}})}(e));if(i.length>et.threshold)return t?t():null;try{for(var o=ef(i),a=o.next();!a.done;a=o.next()){var s=a.value;if(oO(s))return s}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return null}function oS(e){for(var t=e[0],n=t.name,r=1;r<e.length;r++){var i=e[r].level||0;n=t.level===i-1?"".concat(e[r].name," > ").concat(n):"".concat(e[r].name," ").concat(n),t=e[r]}return n}function ok(e){return e.map(function(e){return e.penalty}).reduce(function(e,t){return e+t},0)}function oO(e){var t=oS(e);switch(en.querySelectorAll(t).length){case 0:throw Error("Can't select any node with this selector: ".concat(t));case 1:return!0;default:return!1}}function oC(){return{name:"*",penalty:3}}function oI(e,t){return{name:e.name+":nth-child(".concat(t,")"),penalty:e.penalty+1}}function o_(e){return"html"!==e.name&&!e.name.startsWith("#")}function oT(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e.filter(oP);return n.length>0?n:null}function oP(e){return null!=e}function oR(e){return ep([],eh(e),!1).sort(function(e,t){return ok(e)-ok(t)})}var oA=function(e){var t=e.version,n=e.events,r=[];return n.forEach(function(e){var t=JSON.parse(e);t.count=1,"click"===t.type&&r.push(t)}),{version:t,events:r}},oN=function(e){var t=e.version,n=e.events,r=[];return n.forEach(function(e){var t=JSON.parse(e);"click"===t.type&&r.push(t)}),{version:t,events:Object.values(r.reduce(function(e,t){var n=t.x,r=t.y,i=t.selector,o=t.timestamp,a=o-o%36e5,s="".concat(n,":").concat(r,":").concat(null!=i?i:"",":").concat(a);return e[s]?e[s].count+=1:e[s]=el(el({},t),{timestamp:a,count:1}),e},{}))}},oM=function(e,t){var n=t.eventsManager,r=t.sessionId,i=t.deviceIdFn;return function(t){if(t.type===og.Click){var o,a=em();if(a){var s=a.location,l=a.innerHeight,u=a.innerWidth;if(s){var c=t.x,d=t.y;if(void 0!==c&&void 0!==d){var f=iT.IM.mirror.getNode(t.id);if(f)try{o=function(e,t){if(er=new Date,e.nodeType!==Node.ELEMENT_NODE)throw Error("Can't generate CSS selector for non-element node type.");if("html"===e.tagName.toLowerCase())return"html";var n,r={root:document.body,idName:function(e){return!0},className:function(e){return!0},tagName:function(e){return!0},attr:function(e,t){return!1},seedMinLength:1,optimizedMinLength:2,threshold:1e3,maxNumberOfTries:1e4,timeoutMs:void 0};en=(n=(et=el(el({},r),void 0)).root).nodeType===Node.DOCUMENT_NODE?n:n===r.root?n.ownerDocument:n;var i=ow(e,"all",function(){return ow(e,"two",function(){return ow(e,"one",function(){return ow(e,"none")})})});if(i){var o=oR(function e(t,n,r){var i,o,a;return void 0===r&&(r={counter:0,visited:new Map}),ed(this,function(s){switch(s.label){case 0:if(!(t.length>2&&t.length>et.optimizedMinLength))return[3,5];i=1,s.label=1;case 1:var l;if(!(i<t.length-1))return[3,5];if(r.counter>et.maxNumberOfTries||(r.counter+=1,(o=ep([],eh(t),!1)).splice(i,1),a=oS(o),r.visited.has(a)))return[2];if(!(oO(o)&&(l=o,en.querySelector(oS(l))===n)))return[3,4];return[4,o];case 2:return s.sent(),r.visited.set(a,!0),[5,ef(e(o,n,r))];case 3:s.sent(),s.label=4;case 4:return i++,[3,1];case 5:return[2]}})}(i,e));return o.length>0&&(i=o[0]),oS(i)}throw Error("Selector was not found.")}(f)}catch(t){e.debug("error resolving selector from finder")}var h=iT.P6.getWindowScroll(a),p={x:c+h.left,y:d+h.top,selector:o,viewportHeight:l,viewportWidth:u,pageUrl:s.href,timestamp:Date.now(),type:"click"},g=i();g&&n.addEvent({sessionId:r,event:{type:"interaction",data:JSON.stringify(p)},deviceId:g})}}}}}},oL=function(){function e(e,t){var n=em();n&&n.navigator&&"function"==typeof n.navigator.sendBeacon?this.sendBeacon=function(e,t){try{if(n.navigator.sendBeacon(e,JSON.stringify(t)))return!0}catch(e){}return!1}:this.sendBeacon=function(){return!1},this.sendXhr=function(e,t){var n=new XMLHttpRequest;return n.open("POST",e,!0),n.setRequestHeader("Accept","*/*"),n.send(JSON.stringify(t)),!0},this.basePageUrl=iU(t.serverZone,t.trackServerUrl),this.apiKey=t.apiKey,this.context=e}return e.prototype.send=function(e,t){var n=this.context,r=n.sessionId,i=n.type,o=new URLSearchParams({device_id:e,session_id:String(r),type:String(i),api_key:this.apiKey}),a="".concat(this.basePageUrl,"?").concat(o.toString());this.sendBeacon(a,t)||this.sendXhr(a,t)},e}(),oD=iT.P6.getWindowHeight,oF=iT.P6.getWindowWidth,oV=function(){function e(e){var t=this;this.timestamp=Date.now(),this.hook=function(e){t.update(e)},this.send=function(e){return function(n){var r=e(),i=em();i&&r&&t.transport.send(r,{version:1,events:[{maxScrollX:t._maxScrollX,maxScrollY:t._maxScrollY,maxScrollWidth:t._maxScrollWidth,maxScrollHeight:t._maxScrollHeight,viewportHeight:oD(),viewportWidth:oF(),pageUrl:i.location.href,timestamp:t.timestamp,type:"scroll"}]})}},this._maxScrollX=0,this._maxScrollY=0,this._maxScrollWidth=oF(),this._maxScrollHeight=oD(),this.transport=e}return e.default=function(t,n){return new e(new oL(t,n))},Object.defineProperty(e.prototype,"maxScrollX",{get:function(){return this._maxScrollX},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxScrollY",{get:function(){return this._maxScrollY},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxScrollWidth",{get:function(){return this._maxScrollWidth},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxScrollHeight",{get:function(){return this._maxScrollHeight},enumerable:!1,configurable:!0}),e.prototype.update=function(e){var t=Date.now();if(e.x>this._maxScrollX){var n=oF();this._maxScrollX=e.x;var r=e.x+n;r>this._maxScrollWidth&&(this._maxScrollWidth=r),this.timestamp=t}if(e.y>this._maxScrollY){var i=oD();this._maxScrollY=e.y;var o=e.y+i;o>this._maxScrollHeight&&(this._maxScrollHeight=o),this.timestamp=t}},e}(),oj=function(e){var t=e.sessionId,n=e.deviceId;this.deviceId=n,this.sessionId=t,t&&n&&(this.sessionReplayId="".concat(n,"/").concat(t))},oz=Uint8Array,oU=Uint16Array,oB=Uint32Array,oW=new oz([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),oH=new oz([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),o$=new oz([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),oq=function(e,t){for(var n=new oU(31),r=0;r<31;++r)n[r]=t+=1<<e[r-1];for(var i=new oB(n[30]),r=1;r<30;++r)for(var o=n[r];o<n[r+1];++o)i[o]=o-n[r]<<5|r;return[n,i]},oG=oq(oW,2),oK=oG[0],oZ=oG[1];oK[28]=258,oZ[258]=28;for(var oY=oq(oH,0),oX=(oY[0],oY[1]),oQ=new oU(32768),oJ=0;oJ<32768;++oJ){var o0=(43690&oJ)>>>1|(21845&oJ)<<1;o0=(61680&(o0=(52428&o0)>>>2|(13107&o0)<<2))>>>4|(3855&o0)<<4,oQ[oJ]=((65280&o0)>>>8|(255&o0)<<8)>>>1}for(var o1=function(e,t,n){for(var r,i=e.length,o=0,a=new oU(t);o<i;++o)++a[e[o]-1];var s=new oU(t);for(o=0;o<t;++o)s[o]=s[o-1]+a[o-1]<<1;if(n){r=new oU(1<<t);var l=15-t;for(o=0;o<i;++o)if(e[o])for(var u=o<<4|e[o],c=t-e[o],d=s[e[o]-1]++<<c,f=d|(1<<c)-1;d<=f;++d)r[oQ[d]>>>l]=u}else for(o=0,r=new oU(i);o<i;++o)r[o]=oQ[s[e[o]-1]++]>>>15-e[o];return r},o2=new oz(288),oJ=0;oJ<144;++oJ)o2[oJ]=8;for(var oJ=144;oJ<256;++oJ)o2[oJ]=9;for(var oJ=256;oJ<280;++oJ)o2[oJ]=7;for(var oJ=280;oJ<288;++oJ)o2[oJ]=8;for(var o5=new oz(32),oJ=0;oJ<32;++oJ)o5[oJ]=5;var o4=o1(o2,9,0),o3=o1(o5,5,0),o6=function(e){return(e/8>>0)+(7&e&&1)},o8=function(e,t,n){(null==n||n>e.length)&&(n=e.length);var r=new(e instanceof oU?oU:e instanceof oB?oB:oz)(n-t);return r.set(e.subarray(t,n)),r},o7=function(e,t,n){n<<=7&t;var r=t/8>>0;e[r]|=n,e[r+1]|=n>>>8},o9=function(e,t,n){n<<=7&t;var r=t/8>>0;e[r]|=n,e[r+1]|=n>>>8,e[r+2]|=n>>>16},ae=function(e,t){for(var n=[],r=0;r<e.length;++r)e[r]&&n.push({s:r,f:e[r]});var i=n.length,o=n.slice();if(!i)return[new oz(0),0];if(1==i){var a=new oz(n[0].s+1);return a[n[0].s]=1,[a,1]}n.sort(function(e,t){return e.f-t.f}),n.push({s:-1,f:25001});var s=n[0],l=n[1],u=0,c=1,d=2;for(n[0]={s:-1,f:s.f+l.f,l:s,r:l};c!=i-1;)s=n[n[u].f<n[d].f?u++:d++],l=n[u!=c&&n[u].f<n[d].f?u++:d++],n[c++]={s:-1,f:s.f+l.f,l:s,r:l};for(var f=o[0].s,r=1;r<i;++r)o[r].s>f&&(f=o[r].s);var h=new oU(f+1),p=at(n[c-1],h,0);if(p>t){var r=0,g=0,v=p-t,m=1<<v;for(o.sort(function(e,t){return h[t.s]-h[e.s]||e.f-t.f});r<i;++r){var b=o[r].s;if(h[b]>t)g+=m-(1<<p-h[b]),h[b]=t;else break}for(g>>>=v;g>0;){var y=o[r].s;h[y]<t?g-=1<<t-h[y]++-1:++r}for(;r>=0&&g;--r){var x=o[r].s;h[x]==t&&(--h[x],++g)}p=t}return[new oz(h),p]},at=function(e,t,n){return -1==e.s?Math.max(at(e.l,t,n+1),at(e.r,t,n+1)):t[e.s]=n},an=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new oU(++t),r=0,i=e[0],o=1,a=function(e){n[r++]=e},s=1;s<=t;++s)if(e[s]==i&&s!=t)++o;else{if(!i&&o>2){for(;o>138;o-=138)a(32754);o>2&&(a(o>10?o-11<<5|28690:o-3<<5|12305),o=0)}else if(o>3){for(a(i),--o;o>6;o-=6)a(8304);o>2&&(a(o-3<<5|8208),o=0)}for(;o--;)a(i);o=1,i=e[s]}return[n.subarray(0,r),t]},ar=function(e,t){for(var n=0,r=0;r<t.length;++r)n+=e[r]*t[r];return n},ai=function(e,t,n){var r=n.length,i=o6(t+2);e[i]=255&r,e[i+1]=r>>>8,e[i+2]=255^e[i],e[i+3]=255^e[i+1];for(var o=0;o<r;++o)e[i+o+4]=n[o];return(i+4+r)*8},ao=function(e,t,n,r,i,o,a,s,l,u,c){o7(t,c++,n),++i[256];for(var d,f,h,p,g=ae(i,15),v=g[0],m=g[1],b=ae(o,15),y=b[0],x=b[1],w=an(v),E=w[0],S=w[1],k=an(y),O=k[0],C=k[1],I=new oU(19),_=0;_<E.length;++_)I[31&E[_]]++;for(var _=0;_<O.length;++_)I[31&O[_]]++;for(var T=ae(I,7),P=T[0],R=T[1],A=19;A>4&&!P[o$[A-1]];--A);var N=u+5<<3,M=ar(i,o2)+ar(o,o5)+a,L=ar(i,v)+ar(o,y)+a+14+3*A+ar(I,P)+(2*I[16]+3*I[17]+7*I[18]);if(N<=M&&N<=L)return ai(t,c,e.subarray(l,l+u));if(o7(t,c,1+(L<M)),c+=2,L<M){d=o1(v,m,0),f=v,h=o1(y,x,0),p=y;var D=o1(P,R,0);o7(t,c,S-257),o7(t,c+5,C-1),o7(t,c+10,A-4),c+=14;for(var _=0;_<A;++_)o7(t,c+3*_,P[o$[_]]);c+=3*A;for(var F=[E,O],V=0;V<2;++V)for(var j=F[V],_=0;_<j.length;++_){var z=31&j[_];o7(t,c,D[z]),c+=P[z],z>15&&(o7(t,c,j[_]>>>5&127),c+=j[_]>>>12)}}else d=o4,f=o2,h=o3,p=o5;for(var _=0;_<s;++_)if(r[_]>255){var z=r[_]>>>18&31;o9(t,c,d[z+257]),c+=f[z+257],z>7&&(o7(t,c,r[_]>>>23&31),c+=oW[z]);var U=31&r[_];o9(t,c,h[U]),c+=p[U],U>3&&(o9(t,c,r[_]>>>5&8191),c+=oH[U])}else o9(t,c,d[r[_]]),c+=f[r[_]];return o9(t,c,d[256]),c+f[256]},aa=new oB([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),as=function(e,t,n,r,i,o){var a=e.length,s=new oz(r+a+5*(1+Math.floor(a/7e3))+i),l=s.subarray(r,s.length-i),u=0;if(!t||a<8)for(var c=0;c<=a;c+=65535){var d=c+65535;d<a?u=ai(l,u,e.subarray(c,d)):(l[c]=o,u=ai(l,u,e.subarray(c,a)))}else{for(var f=aa[t-1],h=f>>>13,p=8191&f,g=(1<<n)-1,v=new oU(32768),m=new oU(g+1),b=Math.ceil(n/3),y=2*b,x=function(t){return(e[t]^e[t+1]<<b^e[t+2]<<y)&g},w=new oB(25e3),E=new oU(288),S=new oU(32),k=0,O=0,c=0,C=0,I=0,_=0;c<a;++c){var T=x(c),P=32767&c,R=m[T];if(v[P]=R,m[T]=P,I<=c){var A=a-c;if((k>7e3||C>24576)&&A>423){u=ao(e,l,0,w,E,S,O,C,_,c-_,u),C=k=O=0,_=c;for(var N=0;N<286;++N)E[N]=0;for(var N=0;N<30;++N)S[N]=0}var M=2,L=0,D=p,F=P-R&32767;if(A>2&&T==x(c-F))for(var V=Math.min(h,A)-1,j=Math.min(32767,c),z=Math.min(258,A);F<=j&&--D&&P!=R;){if(e[c+M]==e[c+M-F]){for(var U=0;U<z&&e[c+U]==e[c+U-F];++U);if(U>M){if(M=U,L=F,U>V)break;for(var B=Math.min(F,U-2),W=0,N=0;N<B;++N){var H=c-F+N+32768&32767,$=v[H],q=H-$+32768&32767;q>W&&(W=q,R=H)}}}R=v[P=R],F+=P-R+32768&32767}if(L){w[C++]=268435456|oZ[M]<<18|oX[L];var G=31&oZ[M],K=31&oX[L];O+=oW[G]+oH[K],++E[257+G],++S[K],I=c+M,++k}else w[C++]=e[c],++E[e[c]]}}u=ao(e,l,o,w,E,S,O,C,_,c-_,u)}return o8(s,0,r+o6(u)+i)},al=function(){var e=1,t=0;return{p:function(n){for(var r=e,i=t,o=n.length,a=0;a!=o;){for(var s=Math.min(a+5552,o);a<s;++a)r+=n[a],i+=r;r%=65521,i%=65521}e=r,t=i},d:function(){return(e>>>8<<16|(255&t)<<8|t>>>8)+((255&e)<<23)*2}}},au=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8},ac=function(e,t){var n=t.level,r=0==n?0:n<6?1:9==n?3:2;e[0]=120,e[1]=r<<6|(r?32-2*r:1)};let ad=e=>{var t,n,r,i,o;return function(e,t){var n="";if(!t&&"undefined"!=typeof TextDecoder)return new TextDecoder().decode(e);for(var r=0;r<e.length;){var i=e[r++];i<128||t?n+=String.fromCharCode(i):i<224?n+=String.fromCharCode((31&i)<<6|63&e[r++]):i<240?n+=String.fromCharCode((15&i)<<12|(63&e[r++])<<6|63&e[r++]):n+=String.fromCharCode(55296|(i=((15&i)<<18|(63&e[r++])<<12|(63&e[r++])<<6|63&e[r++])-65536)>>10,56320|1023&i)}return n}((t=function(e,t){var n=e.length;if("undefined"!=typeof TextEncoder)return new TextEncoder().encode(e);for(var r=new oz(e.length+(e.length>>>1)),i=0,o=function(e){r[i++]=e},a=0;a<n;++a){if(i+5>r.length){var s=new oz(i+8+(n-a<<1));s.set(r),r=s}var l=e.charCodeAt(a);l<128?o(l):(l<2048?o(192|l>>>6):(l>55295&&l<57344?(o(240|(l=65536+(1047552&l)|1023&e.charCodeAt(++a))>>>18),o(128|l>>>12&63)):o(224|l>>>12),o(128|l>>>6&63)),o(128|63&l))}return o8(r,0,i)}(JSON.stringify({...e,v:"v1"})),void 0===n&&(n={}),(r=al()).p(t),ac(o=as(t,null==(i=n).level?6:i.level,null==i.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(t.length)))):12+i.mem,2,4,!0),n),au(o,o.length-4,r.d()),o),!0)};var af=function(){function e(e,t,n,r){var i,o,a,s=this;this.taskQueue=[],this.isProcessing=!1,this.compressEvent=function(e){return JSON.stringify(ad(e))},this.addCompressedEventToManager=function(e,t){s.eventsManager&&s.deviceId&&s.eventsManager.addEvent({event:{type:"replay",data:e},sessionId:t,deviceId:s.deviceId})},this.addCompressedEvent=function(e,t){if(s.worker)s.worker.postMessage({event:e,sessionId:t});else{var n=s.compressEvent(e);s.addCompressedEventToManager(n,t)}},this.terminate=function(){var e;null===(e=s.worker)||void 0===e||e.terminate()};var l=em();this.canUseIdleCallback=l&&"requestIdleCallback"in l,this.eventsManager=e,this.config=t,this.deviceId=n,this.timeout=(null===(i=t.performanceConfig)||void 0===i?void 0:i.timeout)||2e3;var u=null!==(o=({}).COMPRESSION_WEBWORKER_BODY)&&void 0!==o?o:r;if((null===(a=this.config.experimental)||void 0===a?void 0:a.useWebWorker)&&l&&l.Worker&&u){t.loggerProvider.log("[Experimental] Enabling web worker for compression");var c=new Worker(URL.createObjectURL(new Blob([u],{type:"application/javascript"})));c.onerror=function(e){t.loggerProvider.error(e)},c.onmessage=function(e){var t=e.data,n=t.compressedEvent,r=t.sessionId;s.addCompressedEventToManager(n,r)},this.worker=c}}return e.prototype.scheduleIdleProcessing=function(){var e=this;this.isProcessing||(this.isProcessing=!0,requestIdleCallback(function(t){e.processQueue(t)},{timeout:this.timeout}))},e.prototype.enqueueEvent=function(e,t){var n;this.canUseIdleCallback&&(null===(n=this.config.performanceConfig)||void 0===n?void 0:n.enabled)?(this.config.loggerProvider.debug("Enqueuing event for processing during idle time."),this.taskQueue.push({event:e,sessionId:t}),this.scheduleIdleProcessing()):(this.config.loggerProvider.debug("Processing event without idle callback."),this.addCompressedEvent(e,t))},e.prototype.processQueue=function(e){for(var t=this;this.taskQueue.length>0&&(e.timeRemaining()>0||e.didTimeout);){var n=this.taskQueue.shift();if(n){var r=n.event,i=n.sessionId;this.addCompressedEvent(r,i)}}this.taskQueue.length>0?requestIdleCallback(function(e){t.processQueue(e)},{timeout:this.timeout}):this.isProcessing=!1},e}(),ah=function(){function e(){this.fetchObserver=null}return e.prototype.start=function(e){this.eventCallback=e,this.observeFetch()},e.prototype.stop=function(){var e;null===(e=this.fetchObserver)||void 0===e||e.call(this),this.fetchObserver=null,this.eventCallback=void 0},e.prototype.notifyEvent=function(e){var t;null===(t=this.eventCallback)||void 0===t||t.call(this,e)},e.prototype.observeFetch=function(){var e=this,t=em();if(t){var n=t.fetch;n&&(t.fetch=function(t,r){return ec(e,void 0,void 0,function(){var e,i,o,a,s,l,u;return ed(this,function(c){switch(c.label){case 0:i={timestamp:e=Date.now(),type:"fetch",method:(null==r?void 0:r.method)||"GET",url:t.toString(),requestHeaders:null==r?void 0:r.headers},c.label=1;case 1:return c.trys.push([1,3,,4]),[4,n(t,r)];case 2:return o=c.sent(),a=Date.now(),i.status=o.status,i.duration=a-e,s={},o.headers.forEach(function(e,t){s[t]=e}),i.responseHeaders=s,this.notifyEvent(i),[2,o];case 3:throw l=c.sent(),a=Date.now(),i.duration=a-e,u=l,i.error={name:u.name||"UnknownError",message:u.message||"An unknown error occurred"},this.notifyEvent(i),l;case 4:return[2]}})})},this.fetchObserver=function(){t.fetch=n})}},e}(),ap=function(){function e(){var e=this;this.name="@amplitude/session-replay-browser",this.recordCancelCallback=null,this.eventCount=0,this.pageLeaveFns=[],this.teardownEventListeners=function(t){var n=em();n&&(n.removeEventListener("blur",e.blurListener),n.removeEventListener("focus",e.focusListener),t||n.addEventListener("blur",e.blurListener),t||n.addEventListener("focus",e.focusListener),n.self&&"onpagehide"in n.self?(n.removeEventListener("pagehide",e.pageLeaveListener),t||n.addEventListener("pagehide",e.pageLeaveListener)):(n.removeEventListener("beforeunload",e.pageLeaveListener),t||n.addEventListener("beforeunload",e.pageLeaveListener)))},this.blurListener=function(){e.sendEvents()},this.focusListener=function(){e.recordEvents(!1)},this.pageLeaveListener=function(t){e.pageLeaveFns.forEach(function(e){e(t)})},this.addCustomRRWebEvent=function(t,n,r){return void 0===n&&(n={}),void 0===r&&(r=!0),ec(e,void 0,void 0,function(){var e,i,o,a;return ed(this,function(s){switch(s.label){case 0:if(s.trys.push([0,3,,4]),e=void 0,!((i=this.config)&&t!==X.METADATA)||(e={config:iW(i),version:iG},!r))return[3,2];return[4,iB()];case 1:o=s.sent(),e=el(el({},o),e),s.label=2;case 2:return this.recordCancelCallback?iT.IM.addCustomEvent(t,el(el({},n),e)):this.loggerProvider.debug("Not able to add custom replay capture event ".concat(t," due to no ongoing recording.")),[3,4];case 3:return a=s.sent(),this.loggerProvider.debug("Error while adding custom replay capture event: ",a),[3,4];case 4:return[2]}})})},this.stopRecordingEvents=function(){var t;try{e.loggerProvider.log("Session Replay capture stopping."),e.recordCancelCallback&&e.recordCancelCallback(),e.recordCancelCallback=null,null===(t=e.networkObservers)||void 0===t||t.stop()}catch(t){e.loggerProvider.warn("Error occurred while stopping replay capture: ".concat(t.toString()))}},this.loggerProvider=new iC(new eV)}return e.prototype.init=function(e,t){return ev(this._init(e,t))},e.prototype._init=function(e,t){var n,r,i,o,a,s,l,u;return ec(this,void 0,void 0,function(){var c,d,f,h,p,g,v,m,b,y,x,w;return ed(this,function(E){switch(E.label){case 0:return this.loggerProvider=new iC(t.loggerProvider||new eV),Object.prototype.hasOwnProperty.call(t,"logLevel")&&this.loggerProvider.enable(t.logLevel),this.identifiers=new oj({sessionId:t.sessionId,deviceId:t.deviceId}),c=this,[4,ec(void 0,void 0,void 0,function(){var n;return ed(this,function(r){switch(r.label){case 0:return[4,iM({localConfig:n=new i_(e,t),configKeys:["sessionReplay"]})];case 1:return[2,new i$(r.sent(),n)]}})})];case 1:return c.joinedConfigGenerator=E.sent(),[4,this.joinedConfigGenerator.generateJoinedConfig(this.identifiers.sessionId)];case 2:f=(d=E.sent()).joinedConfig,h=d.localConfig,p=d.remoteConfig,this.config=f,this.setMetadata(t.sessionId,f,h,p,null===(n=t.version)||void 0===n?void 0:n.version,iG,null===(r=t.version)||void 0===r?void 0:r.type),t.sessionId&&(null===(i=this.config.interactionConfig)||void 0===i?void 0:i.enabled)&&(g=oV.default({sessionId:t.sessionId,type:"interaction"},this.config),this.pageLeaveFns=[g.send(this.getDeviceId.bind(this)).bind(g)],this.scrollHook=g.hook.bind(g)),v=[],"idb"!==(m=this.config.storeType)||(null===(o=em())||void 0===o?void 0:o.indexedDB)||(m="memory",this.loggerProvider.warn("Could not use preferred indexedDB storage, reverting to in memory option.")),this.loggerProvider.log("Using ".concat(m," for event storage.")),E.label=3;case 3:return E.trys.push([3,5,,6]),[4,od({config:this.config,sessionId:this.identifiers.sessionId,type:"replay",storeType:m})];case 4:return b=E.sent(),v.push({name:"replay",manager:b}),[3,6];case 5:return y=E.sent(),this.loggerProvider.warn("Error occurred while creating replay events manager: ".concat(y.toString())),[3,6];case 6:if(!(null===(a=this.config.interactionConfig)||void 0===a?void 0:a.enabled))return[3,10];x=this.config.interactionConfig.batch?oN:oA,E.label=7;case 7:return E.trys.push([7,9,,10]),[4,od({config:this.config,sessionId:this.identifiers.sessionId,type:"interaction",minInterval:null!==(s=this.config.interactionConfig.trackEveryNms)&&void 0!==s?s:3e4,maxInterval:6e4,payloadBatcher:x,storeType:m})];case 8:return w=E.sent(),v.push({name:"interaction",manager:w}),[3,10];case 9:return y=E.sent(),this.loggerProvider.warn("Error occurred while creating interaction events manager: ".concat(y.toString())),[3,10];case 10:return this.eventsManager=new(of.bind.apply(of,ep([void 0],eh(v),!1))),this.eventCompressor&&this.eventCompressor.terminate(),this.eventCompressor=new af(this.eventsManager,this.config,this.getDeviceId()),(null===(u=null===(l=this.config.loggingConfig)||void 0===l?void 0:l.network)||void 0===u?void 0:u.enabled)&&(this.networkObservers=new ah),this.loggerProvider.log("Installing @amplitude/session-replay-browser."),this.teardownEventListeners(!1),this.initialize(!0),[2]}})})},e.prototype.setSessionId=function(e,t){return ev(this.asyncSetSessionId(e,t))},e.prototype.asyncSetSessionId=function(e,t){return ec(this,void 0,void 0,function(){var n,r,i;return ed(this,function(o){switch(o.label){case 0:if((n=this.identifiers&&this.identifiers.sessionId)&&this.sendEvents(n),r=t||this.getDeviceId(),this.identifiers=new oj({sessionId:e,deviceId:r}),!(this.joinedConfigGenerator&&n))return[3,2];return[4,this.joinedConfigGenerator.generateJoinedConfig(this.identifiers.sessionId)];case 1:i=o.sent().joinedConfig,this.config=i,o.label=2;case 2:return this.recordEvents(),[2]}})})},e.prototype.getSessionReplayProperties=function(){var e,t=this.config,n=this.identifiers;if(!t||!n)return this.loggerProvider.warn("Session replay init has not been called, cannot get session replay properties."),{};var r=this.getShouldRecord(),i={};return r&&((e={})[iE]=n.sessionReplayId?n.sessionReplayId:null,i=e,t.debugMode&&(i[ik]=JSON.stringify({appHash:ij(t.apiKey).toString()}))),this.addCustomRRWebEvent(X.GET_SR_PROPS,{shouldRecord:r,eventProperties:i},10===this.eventCount),10===this.eventCount&&(this.eventCount=0),this.eventCount++,i},e.prototype.sendEvents=function(e){var t,n=e||(null===(t=this.identifiers)||void 0===t?void 0:t.sessionId),r=this.getDeviceId();this.eventsManager&&n&&r&&this.eventsManager.sendCurrentSequenceEvents({sessionId:n,deviceId:r})},e.prototype.initialize=function(e){var t;return void 0===e&&(e=!1),ec(this,void 0,void 0,function(){var n;return ed(this,function(r){return(null===(t=this.identifiers)||void 0===t?void 0:t.sessionId)?(n=this.getDeviceId())?(this.eventsManager&&e&&this.eventsManager.sendStoredEvents({deviceId:n}),[2,this.recordEvents()]):(this.loggerProvider.log("Session is not being recorded due to lack of device id."),[2,Promise.resolve()]):(this.loggerProvider.log("Session is not being recorded due to lack of session id."),[2,Promise.resolve()])})})},e.prototype.shouldOptOut=function(){if(null===(e=this.config)||void 0===e?void 0:e.instanceName){var e,t,n;n=eP(this.config.instanceName).identityStore.getIdentity().optOut}return void 0!==n?n:null===(t=this.config)||void 0===t?void 0:t.optOut},e.prototype.getShouldRecord=function(){if(!this.identifiers||!this.config||!this.identifiers.sessionId)return this.loggerProvider.warn("Session is not being recorded due to lack of config, please call sessionReplay.init."),!1;if(!this.config.captureEnabled)return this.loggerProvider.log("Session ".concat(this.identifiers.sessionId," not being captured due to capture being disabled for project or because the remote config could not be fetched.")),!1;if(this.shouldOptOut())return this.loggerProvider.log("Opting session ".concat(this.identifiers.sessionId," out of recording due to optOut config.")),!1;var e,t,n=(e=this.identifiers.sessionId,t=this.config.sampleRate,31*Math.abs(ij(e.toString()))%1e6/1e6<t);return n||this.loggerProvider.log("Opting session ".concat(this.identifiers.sessionId," out of recording due to sample rate.")),n},e.prototype.getBlockSelectors=function(){var e,t,n,r=null!==(n=null===(t=null===(e=this.config)||void 0===e?void 0:e.privacyConfig)||void 0===t?void 0:t.blockSelector)&&void 0!==n?n:[];if(0!==r.length)return r},e.prototype.getMaskTextSelectors=function(){if((null===(t=null===(e=this.config)||void 0===e?void 0:e.privacyConfig)||void 0===t?void 0:t.defaultMaskLevel)==="conservative")return"*";var e,t,n,r,i=null===(r=null===(n=this.config)||void 0===n?void 0:n.privacyConfig)||void 0===r?void 0:r.maskSelector;if(i)return i},e.prototype.getRecordingPlugins=function(e){var t;return ec(this,void 0,void 0,function(){var r,i,o;return ed(this,function(a){switch(a.label){case 0:if(r=[],!(null===(t=null==e?void 0:e.console)||void 0===t?void 0:t.enabled))return[3,4];a.label=1;case 1:return a.trys.push([1,3,,4]),[4,n.e(881).then(n.bind(n,30111))];case 2:return i=a.sent().getRecordConsolePlugin,r.push(i({level:e.console.levels})),[3,4];case 3:return o=a.sent(),this.loggerProvider.warn("Failed to load console plugin:",o),[3,4];case 4:return[2,r.length>0?r:void 0]}})})},e.prototype.recordEvents=function(e){var t,n;return void 0===e&&(e=!0),ec(this,void 0,void 0,function(){var r,i,o,a,s,l,u,c,d,f,h,p=this;return ed(this,function(g){switch(g.label){case 0:if(r=this.config,i=this.getShouldRecord(),o=null===(t=this.identifiers)||void 0===t?void 0:t.sessionId,!i||!o||!r)return[2];this.stopRecordingEvents(),null===(n=this.networkObservers)||void 0===n||n.start(function(e){p.addCustomRRWebEvent(X.FETCH_REQUEST,e)}),a=r.privacyConfig,s=r.interactionConfig,l=r.loggingConfig,u=(null==s?void 0:s.enabled)?{mouseInteraction:this.eventsManager&&oM(this.loggerProvider,{eventsManager:this.eventsManager,sessionId:o,deviceIdFn:this.getDeviceId.bind(this)}),scroll:this.scrollHook}:{},this.loggerProvider.log("Session Replay capture beginning for ".concat(o,".")),g.label=1;case 1:return g.trys.push([1,3,,4]),c=this,d=iT.IM,h={emit:function(e){if(p.shouldOptOut()){p.loggerProvider.log("Opting session ".concat(o," out of recording due to optOut config.")),p.stopRecordingEvents(),p.sendEvents();return}p.eventCompressor&&p.eventCompressor.enqueueEvent(e,o)},inlineStylesheet:r.shouldInlineStylesheet,hooks:u,maskAllInputs:!0,maskTextClass:iO,blockClass:"amp-block",blockSelector:this.getBlockSelectors(),maskInputFn:iV("input",a),maskTextFn:iV("text",a),maskTextSelector:this.getMaskTextSelectors(),recordCanvas:!1,errorHandler:function(e){if(e.message.includes("insertRule")&&e.message.includes("CSSStyleSheet")||e._external_)throw e;return p.loggerProvider.warn("Error while capturing replay: ",e.toString()),!0}},[4,this.getRecordingPlugins(l)];case 2:return c.recordCancelCallback=d.apply(void 0,[(h.plugins=g.sent(),h)]),this.addCustomRRWebEvent(X.DEBUG_INFO),e&&this.addCustomRRWebEvent(X.METADATA,this.metadata),[3,4];case 3:return f=g.sent(),this.loggerProvider.warn("Failed to initialize session replay:",f),[3,4];case 4:return[2]}})})},e.prototype.getDeviceId=function(){var e;return null===(e=this.identifiers)||void 0===e?void 0:e.deviceId},e.prototype.getSessionId=function(){var e;return null===(e=this.identifiers)||void 0===e?void 0:e.sessionId},e.prototype.flush=function(e){var t;return void 0===e&&(e=!1),ec(this,void 0,void 0,function(){return ed(this,function(n){return[2,null===(t=this.eventsManager)||void 0===t?void 0:t.flush(e)]})})},e.prototype.shutdown=function(){this.teardownEventListeners(!0),this.stopRecordingEvents(),this.sendEvents()},e.prototype.mapSDKType=function(e){return"plugin"===e?"@amplitude/plugin-session-replay-browser":"segment"===e?"@amplitude/segment-session-replay-plugin":null},e.prototype.setMetadata=function(e,t,n,r,i,o,a){var s=(null==e?void 0:e.toString())?ij(e.toString()):void 0;this.metadata={joinedConfig:t,localConfig:n,remoteConfig:r,sessionId:e,hashValue:s,sampleRate:t.sampleRate,replaySDKType:this.mapSDKType(a),replaySDKVersion:i,standaloneSDKType:"@amplitude/session-replay-browser",standaloneSDKVersion:o}},e}(),ag=function(e){return function(){var t=e.config||iI();return{logger:t.loggerProvider,logLevel:t.logLevel}}},av={init:ix((N=new ap).init.bind(N),"init",ag(N)),setSessionId:ix(N.setSessionId.bind(N),"setSessionId",ag(N)),getSessionId:ix(N.getSessionId.bind(N),"getSessionId",ag(N)),getSessionReplayProperties:ix(N.getSessionReplayProperties.bind(N),"getSessionReplayProperties",ag(N)),flush:ix(N.flush.bind(N),"flush",ag(N)),shutdown:ix(N.shutdown.bind(N),"shutdown",ag(N))},am=av.init,ab=av.setSessionId,ay=av.getSessionId,ax=av.getSessionReplayProperties,aw=av.flush,aE=av.shutdown,aS="1.16.13",ak=function(){function e(t){this.name=e.pluginName,this.type="enrichment",this.sr={flush:aw,getSessionId:ay,getSessionReplayProperties:ax,init:am,setSessionId:ab,shutdown:aE},this.options=el({forceSessionTracking:!1},t),this.srInitOptions=this.options}return e.prototype.setup=function(e,t){var n,r,i,o,a;return ec(this,void 0,void 0,function(){var t;return ed(this,function(s){switch(s.label){case 0:return s.trys.push([0,2,,3]),null==e||e.loggerProvider.log("Installing @amplitude/plugin-session-replay, version ".concat(aS,".")),this.config=e,this.options.forceSessionTracking&&("boolean"==typeof e.defaultTracking?!1===e.defaultTracking&&(e.defaultTracking={pageViews:!1,formInteractions:!1,fileDownloads:!1,sessions:!0}):e.defaultTracking=el(el({},e.defaultTracking),{sessions:!0})),this.srInitOptions={instanceName:this.config.instanceName,deviceId:null!==(n=this.options.deviceId)&&void 0!==n?n:this.config.deviceId,optOut:this.config.optOut,sessionId:this.options.customSessionId?void 0:this.config.sessionId,loggerProvider:this.config.loggerProvider,logLevel:this.config.logLevel,flushMaxRetries:this.config.flushMaxRetries,serverZone:this.config.serverZone,configServerUrl:this.options.configServerUrl,trackServerUrl:this.options.trackServerUrl,sampleRate:this.options.sampleRate,privacyConfig:{blockSelector:null===(r=this.options.privacyConfig)||void 0===r?void 0:r.blockSelector,maskSelector:null===(i=this.options.privacyConfig)||void 0===i?void 0:i.maskSelector,unmaskSelector:null===(o=this.options.privacyConfig)||void 0===o?void 0:o.unmaskSelector,defaultMaskLevel:null===(a=this.options.privacyConfig)||void 0===a?void 0:a.defaultMaskLevel},debugMode:this.options.debugMode,shouldInlineStylesheet:this.options.shouldInlineStylesheet,version:{type:"plugin",version:aS},performanceConfig:this.options.performanceConfig,storeType:this.options.storeType,experimental:this.options.experimental},[4,this.sr.init(e.apiKey,this.srInitOptions).promise];case 1:return s.sent(),[3,3];case 2:return t=s.sent(),null==e||e.loggerProvider.error("Session Replay: Failed to initialize due to ".concat(t.message)),[3,3];case 3:return[2]}})})},e.prototype.onSessionIdChanged=function(e){return ec(this,void 0,void 0,function(){return ed(this,function(t){switch(t.label){case 0:return this.config.loggerProvider.debug("Analytics session id is changed to ".concat(e,", SR session id is ").concat(String(this.sr.getSessionId()),".")),[4,this.sr.setSessionId(e).promise];case 1:return t.sent(),[2]}})})},e.prototype.onOptOutChanged=function(e){return ec(this,void 0,void 0,function(){return ed(this,function(t){switch(t.label){case 0:if(this.config.loggerProvider.debug("optOut is changed to ".concat(String(e),", calling ").concat(e?"sessionReplay.shutdown()":"sessionReplay.init()",".")),!e)return[3,1];return this.sr.shutdown(),[3,3];case 1:return[4,this.sr.init(this.config.apiKey,this.srInitOptions).promise];case 2:t.sent(),t.label=3;case 3:return[2]}})})},e.prototype.execute=function(e){var t;return ec(this,void 0,void 0,function(){var n,r,i;return ed(this,function(o){switch(o.label){case 0:if(o.trys.push([0,8,,9]),!this.options.customSessionId)return[3,4];if(!(n=this.options.customSessionId(e)))return[3,3];if(!(n!==this.sr.getSessionId()))return[3,2];return[4,this.sr.setSessionId(n).promise];case 1:o.sent(),o.label=2;case 2:r=this.sr.getSessionReplayProperties(),e.event_properties=el(el({},e.event_properties),r),o.label=3;case 3:return[3,7];case 4:if(!((n=this.config.sessionId)&&n!==this.sr.getSessionId()))return[3,6];return[4,this.sr.setSessionId(n).promise];case 5:o.sent(),o.label=6;case 6:n&&n===e.session_id&&(r=this.sr.getSessionReplayProperties(),e.event_properties=el(el({},e.event_properties),r)),o.label=7;case 7:return[2,Promise.resolve(e)];case 8:return i=o.sent(),null===(t=this.config)||void 0===t||t.loggerProvider.error("Session Replay: Failed to enrich event due to ".concat(i.message)),[2,Promise.resolve(e)];case 9:return[2]}})})},e.prototype.teardown=function(){var e;return ec(this,void 0,void 0,function(){return ed(this,function(t){try{this.sr.shutdown(),this.config=null}catch(t){null===(e=this.config)||void 0===e||e.loggerProvider.error("Session Replay: teardown failed due to ".concat(t.message))}return[2]})})},e.prototype.getSessionReplayProperties=function(){return this.sr.getSessionReplayProperties()},e.pluginName="@amplitude/plugin-session-replay-browser",e}(),aO=n(12138).Buffer,aC=function(e,t){return(aC=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function aI(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}aC(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var a_=function(){return(a_=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function aT(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((r=r.apply(e,t||[])).next())})}function aP(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(l){return function(s){if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}function aR(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function aA(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function aN(e,t,n){if(n||2==arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var aM={IS:"is",IS_NOT:"is not",CONTAINS:"contains",DOES_NOT_CONTAIN:"does not contain",LESS_THAN:"less",LESS_THAN_EQUALS:"less or equal",GREATER_THAN:"greater",GREATER_THAN_EQUALS:"greater or equal",VERSION_LESS_THAN:"version less",VERSION_LESS_THAN_EQUALS:"version less or equal",VERSION_GREATER_THAN:"version greater",VERSION_GREATER_THAN_EQUALS:"version greater or equal",SET_IS:"set is",SET_IS_NOT:"set is not",SET_CONTAINS:"set contains",SET_DOES_NOT_CONTAIN:"set does not contain",SET_CONTAINS_ANY:"set contains any",SET_DOES_NOT_CONTAIN_ANY:"set does not contain any",REGEX_MATCH:"regex match",REGEX_DOES_NOT_MATCH:"regex does not match"},aL=function(e){for(var t=[],n=0,r=0;r<e.length;r++){var i=e.charCodeAt(r);i<128?t[n++]=i:(i<2048?t[n++]=i>>6|192:((64512&i)==55296&&r+1<e.length&&(64512&e.charCodeAt(r+1))==56320?(i=65536+((1023&i)<<10)+(1023&e.charCodeAt(++r)),t[n++]=i>>18|240,t[n++]=i>>12&63|128):t[n++]=i>>12|224,t[n++]=i>>6&63|128),t[n++]=63&i|128)}return Uint8Array.from(t)},aD=function(e,t){void 0===t&&(t=0);for(var n=aL(e),r=n.length,i=r>>2,o=t,a=0;a<i;a++)o=aF(az(n,a<<2),o);var s=i<<2,l=0;switch(r-s){case 3:l^=n[s+2]<<16,l^=n[s+1]<<8,l^=n[s],o^=l=Math.imul(l=aj(l=Math.imul(l,-862048943),15),461845907);break;case 2:l^=n[s+1]<<8,l^=n[s],o^=l=Math.imul(l=aj(l=Math.imul(l,-862048943),15),461845907);break;case 1:l^=n[s],o^=l=Math.imul(l=aj(l=Math.imul(l,-862048943),15),461845907)}return aV(o^=r)>>>0},aF=function(e,t){var n=e,r=t;return r^=n=Math.imul(n=aj(n=Math.imul(n,-862048943),15),461845907),(r=Math.imul(r=aj(r,13),5))+-430675100|0},aV=function(e){var t=e;return t^=t>>>16,t=Math.imul(t,-2048144789),t^=t>>>13,t=Math.imul(t,-1028477387),t^=t>>>16},aj=function(e,t,n){void 0===n&&(n=32),t>n&&(t%=n);var r=(e&4294967295<<n-t>>>0)>>>0>>>n-t>>>0;return(e<<t|r)>>>0},az=function(e,t){return void 0===t&&(t=0),aU(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])},aU=function(e){return(-16777216&e)>>>24|(16711680&e)>>>8|(65280&e)<<8|(255&e)<<24},aB=function(e,t){var n,r;if(t&&0!==t.length){try{for(var i=aR(t),o=i.next();!o.done;o=i.next()){var a=o.value;if(!a||!e||"object"!=typeof e)return;e=e[a]}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}if(e)return e}},aW="^".concat("(\\d+)\\.(\\d+)","(\\.").concat("(\\d+)").concat("(-(([-\\w]+\\.?)*))?",")?$"),aH=function(){function e(e,t,n,r){void 0===r&&(r=void 0),this.major=e,this.minor=t,this.patch=n,this.preRelease=r}return e.parse=function(t){if(t){var n=new RegExp(aW).exec(t);if(n){var r=Number(n[1]),i=Number(n[2]);if(!(isNaN(r)||isNaN(i)))return new e(r,i,Number(n[4])||0,n[5]||void 0)}}},e.prototype.compareTo=function(e){if(this.major>e.major)return 1;if(this.major<e.major)return -1;if(this.minor>e.minor)return 1;if(this.minor<e.minor)return -1;if(this.patch>e.patch)return 1;if(this.patch<e.patch||this.preRelease&&!e.preRelease)return -1;if(!this.preRelease&&e.preRelease)return 1;if(this.preRelease&&e.preRelease){if(this.preRelease>e.preRelease)return 1;if(this.preRelease<e.preRelease)return -1}return 0},e}(),a$=function(){function e(){}return e.prototype.evaluate=function(e,t){var n,r,i={},o={context:e,result:i};try{for(var a=aR(t),s=a.next();!s.done;s=a.next()){var l=s.value,u=this.evaluateFlag(o,l);u&&(i[l.key]=u)}}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return i},e.prototype.evaluateFlag=function(e,t){try{for(var n,r,i,o=aR(t.segments),a=o.next();!a.done;a=o.next()){var s=a.value;if(i=this.evaluateSegment(e,t,s)){var l=a_(a_(a_({},t.metadata),s.metadata),i.metadata);i=a_(a_({},i),{metadata:l});break}}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return i},e.prototype.evaluateSegment=function(e,t,n){if(!n.conditions){var r=this.bucket(e,n);return void 0!==r?t.variants[r]:void 0}if(this.evaluateConditions(e,n.conditions)){var r=this.bucket(e,n);if(void 0!==r)return t.variants[r]}},e.prototype.evaluateConditions=function(e,t){var n,r,i,o;try{for(var a=aR(t),s=a.next();!s.done;s=a.next()){var l=s.value,u=!0;try{for(var c=(i=void 0,aR(l)),d=c.next();!d.done;d=c.next()){var f=d.value;if(!(u=this.matchCondition(e,f)))break}}catch(e){i={error:e}}finally{try{d&&!d.done&&(o=c.return)&&o.call(c)}finally{if(i)throw i.error}}if(u)return!0}}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return!1},e.prototype.matchCondition=function(e,t){var n=aB(e,t.selector);if(!n)return this.matchNull(t.op,t.values);if(this.isSetOperator(t.op)){var r=this.coerceStringArray(n);return!!r&&this.matchSet(r,t.op,t.values)}var i=this.coerceString(n);return void 0!==i&&this.matchString(i,t.op,t.values)},e.prototype.getHash=function(e){return aD(e)},e.prototype.bucket=function(e,t){if(!t.bucket)return t.variant;var n,r,i,o,a=this.coerceString(aB(e,t.bucket.selector));if(!a||0===a.length)return t.variant;var s="".concat(t.bucket.salt,"/").concat(a),l=this.getHash(s),u=l%100,c=Math.floor(l/100);try{for(var d=aR(t.bucket.allocations),f=d.next();!f.done;f=d.next()){var h=f.value,p=h.range[0],g=h.range[1];if(u>=p&&u<g)try{for(var v=(i=void 0,aR(h.distributions)),m=v.next();!m.done;m=v.next()){var b=m.value,y=b.range[0],x=b.range[1];if(c>=y&&c<x)return b.variant}}catch(e){i={error:e}}finally{try{m&&!m.done&&(o=v.return)&&o.call(v)}finally{if(i)throw i.error}}}}catch(e){n={error:e}}finally{try{f&&!f.done&&(r=d.return)&&r.call(d)}finally{if(n)throw n.error}}return t.variant},e.prototype.matchNull=function(e,t){var n=this.containsNone(t);switch(e){case aM.IS:case aM.CONTAINS:case aM.LESS_THAN:case aM.LESS_THAN_EQUALS:case aM.GREATER_THAN:case aM.GREATER_THAN_EQUALS:case aM.VERSION_LESS_THAN:case aM.VERSION_LESS_THAN_EQUALS:case aM.VERSION_GREATER_THAN:case aM.VERSION_GREATER_THAN_EQUALS:case aM.SET_IS:case aM.SET_CONTAINS:case aM.SET_CONTAINS_ANY:return n;case aM.IS_NOT:case aM.DOES_NOT_CONTAIN:case aM.SET_DOES_NOT_CONTAIN:case aM.SET_DOES_NOT_CONTAIN_ANY:return!n;default:return!1}},e.prototype.matchSet=function(e,t,n){switch(t){case aM.SET_IS:return this.setEquals(e,n);case aM.SET_IS_NOT:return!this.setEquals(e,n);case aM.SET_CONTAINS:return this.matchesSetContainsAll(e,n);case aM.SET_DOES_NOT_CONTAIN:return!this.matchesSetContainsAll(e,n);case aM.SET_CONTAINS_ANY:return this.matchesSetContainsAny(e,n);case aM.SET_DOES_NOT_CONTAIN_ANY:return!this.matchesSetContainsAny(e,n);default:return!1}},e.prototype.matchString=function(e,t,n){var r=this;switch(t){case aM.IS:return this.matchesIs(e,n);case aM.IS_NOT:return!this.matchesIs(e,n);case aM.CONTAINS:return this.matchesContains(e,n);case aM.DOES_NOT_CONTAIN:return!this.matchesContains(e,n);case aM.LESS_THAN:case aM.LESS_THAN_EQUALS:case aM.GREATER_THAN:case aM.GREATER_THAN_EQUALS:return this.matchesComparable(e,t,n,function(e){return r.parseNumber(e)},this.comparator);case aM.VERSION_LESS_THAN:case aM.VERSION_LESS_THAN_EQUALS:case aM.VERSION_GREATER_THAN:case aM.VERSION_GREATER_THAN_EQUALS:return this.matchesComparable(e,t,n,function(e){return aH.parse(e)},this.versionComparator);case aM.REGEX_MATCH:return this.matchesRegex(e,n);case aM.REGEX_DOES_NOT_MATCH:return!this.matchesRegex(e,n);default:return!1}},e.prototype.matchesIs=function(e,t){if(this.containsBooleans(t)){var n=e.toLowerCase();if("true"===n||"false"===n)return t.some(function(e){return e.toLowerCase()===n})}return t.some(function(t){return e===t})},e.prototype.matchesContains=function(e,t){var n,r;try{for(var i=aR(t),o=i.next();!o.done;o=i.next()){var a=o.value;if(e.toLowerCase().includes(a.toLowerCase()))return!0}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return!1},e.prototype.matchesComparable=function(e,t,n,r,i){var o=this,a=r(e),s=n.map(function(e){return r(e)}).filter(function(e){return void 0!==e});return void 0===a||0===s.length?n.some(function(n){return o.comparator(e,t,n)}):s.some(function(e){return i(a,t,e)})},e.prototype.comparator=function(e,t,n){switch(t){case aM.LESS_THAN:case aM.VERSION_LESS_THAN:return e<n;case aM.LESS_THAN_EQUALS:case aM.VERSION_LESS_THAN_EQUALS:return e<=n;case aM.GREATER_THAN:case aM.VERSION_GREATER_THAN:return e>n;case aM.GREATER_THAN_EQUALS:case aM.VERSION_GREATER_THAN_EQUALS:return e>=n;default:return!1}},e.prototype.versionComparator=function(e,t,n){var r=e.compareTo(n);switch(t){case aM.LESS_THAN:case aM.VERSION_LESS_THAN:return r<0;case aM.LESS_THAN_EQUALS:case aM.VERSION_LESS_THAN_EQUALS:return r<=0;case aM.GREATER_THAN:case aM.VERSION_GREATER_THAN:return r>0;case aM.GREATER_THAN_EQUALS:case aM.VERSION_GREATER_THAN_EQUALS:return r>=0;default:return!1}},e.prototype.matchesRegex=function(e,t){return t.some(function(t){return!!new RegExp(t).exec(e)})},e.prototype.containsNone=function(e){return e.some(function(e){return"(none)"===e})},e.prototype.containsBooleans=function(e){return e.some(function(e){switch(e.toLowerCase()){case"true":case"false":return!0;default:return!1}})},e.prototype.parseNumber=function(e){var t;return null!==(t=Number(e))&&void 0!==t?t:void 0},e.prototype.coerceString=function(e){return null==e?void 0:"object"==typeof e?JSON.stringify(e):String(e)},e.prototype.coerceStringArray=function(e){var t=this;if(Array.isArray(e)){var n=e;return n.map(function(e){return t.coerceString(e)}).filter(Boolean)}var r=String(e);try{var i=JSON.parse(r);if(Array.isArray(i)){var n=e;return n.map(function(e){return t.coerceString(e)}).filter(Boolean)}var o=this.coerceString(r);return o?[o]:void 0}catch(e){var o=this.coerceString(r);return o?[o]:void 0}},e.prototype.isSetOperator=function(e){switch(e){case aM.SET_IS:case aM.SET_IS_NOT:case aM.SET_CONTAINS:case aM.SET_DOES_NOT_CONTAIN:case aM.SET_CONTAINS_ANY:case aM.SET_DOES_NOT_CONTAIN_ANY:return!0;default:return!1}},e.prototype.setEquals=function(e,t){var n=new Set(e),r=new Set(t);return n.size===r.size&&aN([],aA(r),!1).every(function(e){return n.has(e)})},e.prototype.matchesSetContainsAll=function(e,t){var n,r;if(e.length<t.length)return!1;try{for(var i=aR(t),o=i.next();!o.done;o=i.next()){var a=o.value;if(!this.matchesIs(a,e))return!1}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return!0},e.prototype.matchesSetContainsAny=function(e,t){var n,r;try{for(var i=aR(t),o=i.next();!o.done;o=i.next()){var a=o.value;if(this.matchesIs(a,e))return!0}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return!1},e}(),aq=function(e,t){var n,r,i=a_({},e),o=[],a=t||Object.keys(i);try{for(var s=aR(a),l=s.next();!l.done;l=s.next()){var u=l.value,c=aG(u,i);c&&o.push.apply(o,aN([],aA(c),!1))}}catch(e){n={error:e}}finally{try{l&&!l.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}return o},aG=function(e,t,n){void 0===n&&(n=[]);var r,i,o=t[e];if(o){if(!o.dependencies||0===o.dependencies.length)return delete t[o.key],[o];n.push(o.key);var a=[],s=function(e){if(n.some(function(t){return t===e}))throw Error("Detected a cycle between flags ".concat(n));var r=aG(e,t,n);r&&a.push.apply(a,aN([],aA(r),!1))};try{for(var l=aR(o.dependencies),u=l.next();!u.done;u=l.next()){var c=u.value;s(c)}}catch(e){r={error:e}}finally{try{u&&!u.done&&(i=l.return)&&i.call(l)}finally{if(r)throw r.error}}return a.push(o),n.pop(),delete t[o.key],a}};let aK="function"==typeof atob,aZ="function"==typeof btoa,aY="function"==typeof aO,aX="function"==typeof TextDecoder?new TextDecoder:void 0,aQ="function"==typeof TextEncoder?new TextEncoder:void 0,aJ=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),a0=(o={},aJ.forEach((e,t)=>o[e]=t),o),a1=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,a2=String.fromCharCode.bind(String),a5="function"==typeof Uint8Array.from?Uint8Array.from.bind(Uint8Array):e=>new Uint8Array(Array.prototype.slice.call(e,0)),a4=e=>e.replace(/=/g,"").replace(/[+\/]/g,e=>"+"==e?"-":"_"),a3=e=>e.replace(/[^A-Za-z0-9\+\/]/g,""),a6=aZ?e=>btoa(e):aY?e=>aO.from(e,"binary").toString("base64"):e=>{let t,n,r,i,o="",a=e.length%3;for(let a=0;a<e.length;){if((n=e.charCodeAt(a++))>255||(r=e.charCodeAt(a++))>255||(i=e.charCodeAt(a++))>255)throw TypeError("invalid character found");o+=aJ[(t=n<<16|r<<8|i)>>18&63]+aJ[t>>12&63]+aJ[t>>6&63]+aJ[63&t]}return a?o.slice(0,a-3)+"===".substring(a):o},a8=aY?e=>aO.from(e).toString("base64"):e=>{let t=[];for(let n=0,r=e.length;n<r;n+=4096)t.push(a2.apply(null,e.subarray(n,n+4096)));return a6(t.join(""))},a7=e=>{if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?a2(192|t>>>6)+a2(128|63&t):a2(224|t>>>12&15)+a2(128|t>>>6&63)+a2(128|63&t)}var t=65536+(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320);return a2(240|t>>>18&7)+a2(128|t>>>12&63)+a2(128|t>>>6&63)+a2(128|63&t)},a9=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,se=e=>e.replace(a9,a7),st=aY?e=>aO.from(e,"utf8").toString("base64"):aQ?e=>a8(aQ.encode(e)):e=>a6(se(e)),sn=(e,t=!1)=>t?a4(st(e)):st(e),sr=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,si=e=>{switch(e.length){case 4:var t=((7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3))-65536;return a2((t>>>10)+55296)+a2((1023&t)+56320);case 3:return a2((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return a2((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},so=e=>e.replace(sr,si),sa=aK?e=>atob(a3(e)):aY?e=>aO.from(e,"base64").toString("binary"):e=>{if(e=e.replace(/\s+/g,""),!a1.test(e))throw TypeError("malformed base64.");e+="==".slice(2-(3&e.length));let t,n="",r,i;for(let o=0;o<e.length;)t=a0[e.charAt(o++)]<<18|a0[e.charAt(o++)]<<12|(r=a0[e.charAt(o++)])<<6|(i=a0[e.charAt(o++)]),n+=64===r?a2(t>>16&255):64===i?a2(t>>16&255,t>>8&255):a2(t>>16&255,t>>8&255,255&t);return n},ss=aY?e=>a5(aO.from(e,"base64")):e=>a5(sa(e).split("").map(e=>e.charCodeAt(0))),sl=aY?e=>aO.from(e,"base64").toString("utf8"):aX?e=>aX.decode(ss(e)):e=>so(sa(e)),su=e=>a3(e.replace(/[-_]/g,e=>"-"==e?"+":"/")),sc={encodeURL:e=>sn(e,!0)};var sd=function(e){function t(n,r){var i=e.call(this,r)||this;return i.statusCode=n,Object.setPrototypeOf(i,t.prototype),i}return aI(t,e),t}(Error),sf=function(e){function t(n){var r=e.call(this,n)||this;return Object.setPrototypeOf(r,t.prototype),r}return aI(t,e),t}(Error),sh=function(){function e(e,t,n){this.deploymentKey=e,this.serverUrl=t,this.httpClient=n}return e.prototype.getVariants=function(e,t){return aT(this,void 0,void 0,function(){var n,r,i,o;return aP(this,function(a){switch(a.label){case 0:return n=sc.encodeURL(JSON.stringify(e)),r={Authorization:"Api-Key ".concat(this.deploymentKey),"X-Amp-Exp-User":n},(null==t?void 0:t.flagKeys)&&(r["X-Amp-Exp-Flag-Keys"]=sc.encodeURL(JSON.stringify(t.flagKeys))),(null==t?void 0:t.trackingOption)&&(r["X-Amp-Exp-Track"]=t.trackingOption),i=new URL("".concat(this.serverUrl,"/sdk/v2/vardata?v=0")),(null==t?void 0:t.evaluationMode)&&i.searchParams.append("eval_mode",null==t?void 0:t.evaluationMode),(null==t?void 0:t.deliveryMethod)&&i.searchParams.append("delivery_method",null==t?void 0:t.deliveryMethod),[4,this.httpClient.request({requestUrl:i.toString(),method:"GET",headers:r,timeoutMillis:null==t?void 0:t.timeoutMillis})];case 1:if(200!=(o=a.sent()).status)throw new sd(o.status,"Fetch error response: status=".concat(o.status));return[2,JSON.parse(o.body)]}})})},e}(),sp=function(){function e(e,t,n){this.deploymentKey=e,this.serverUrl=t,this.httpClient=n}return e.prototype.getFlags=function(e){return aT(this,void 0,void 0,function(){var t,n;return aP(this,function(r){switch(r.label){case 0:return t={Authorization:"Api-Key ".concat(this.deploymentKey)},(null==e?void 0:e.libraryName)&&(null==e?void 0:e.libraryVersion)&&(t["X-Amp-Exp-Library"]="".concat(e.libraryName,"/").concat(e.libraryVersion)),(null==e?void 0:e.user)&&(t["X-Amp-Exp-User"]=sc.encodeURL(JSON.stringify(e.user))),[4,this.httpClient.request({requestUrl:"".concat(this.serverUrl,"/sdk/v2/flags")+((null==e?void 0:e.deliveryMethod)?"?delivery_method=".concat(e.deliveryMethod):""),method:"GET",headers:t,timeoutMillis:null==e?void 0:e.timeoutMillis})];case 1:if(200!=(n=r.sent()).status)throw Error("Flags error response: status=".concat(n.status));return[2,JSON.parse(n.body).reduce(function(e,t){return e[t.key]=t,e},{})]}})})},e}(),sg="undefined"!=typeof globalThis?globalThis:n.g||self,sv=function(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof self?self:void 0!==n.g?n.g:void 0},sm=function(){var e=sv();if(e)try{var t="EXP_test";return e.localStorage.setItem(t,t),e.localStorage.removeItem(t),!0}catch(e){}return!1},sb=function(){function e(e,t){this.poller=void 0,this.action=e,this.ms=t}return e.prototype.start=function(){this.poller||(this.poller=sg.setInterval(this.action,this.ms),this.action())},e.prototype.stop=function(){this.poller&&(sg.clearInterval(this.poller),this.poller=void 0)},e}(),sy=n(49413);!function(){function e(e){this.amplitudeInstance=e}e.prototype.getUser=function(){var e,t,n,r,i,o,a,s,l,u;return{device_id:null===(t=null===(e=this.amplitudeInstance)||void 0===e?void 0:e.options)||void 0===t?void 0:t.deviceId,user_id:null===(r=null===(n=this.amplitudeInstance)||void 0===n?void 0:n.options)||void 0===r?void 0:r.userId,version:null===(o=null===(i=this.amplitudeInstance)||void 0===i?void 0:i.options)||void 0===o?void 0:o.versionName,language:null===(s=null===(a=this.amplitudeInstance)||void 0===a?void 0:a.options)||void 0===s?void 0:s.language,platform:null===(u=null===(l=this.amplitudeInstance)||void 0===l?void 0:l.options)||void 0===u?void 0:u.platform,os:this.getOs(),device_model:this.getDeviceModel()}},e.prototype.getOs=function(){var e,t,n,r,i,o;return[null===(n=null===(t=null===(e=this.amplitudeInstance)||void 0===e?void 0:e._ua)||void 0===t?void 0:t.browser)||void 0===n?void 0:n.name,null===(o=null===(i=null===(r=this.amplitudeInstance)||void 0===r?void 0:r._ua)||void 0===i?void 0:i.browser)||void 0===o?void 0:o.major].filter(function(e){return null!=e}).join(" ")},e.prototype.getDeviceModel=function(){var e,t,n;return null===(n=null===(t=null===(e=this.amplitudeInstance)||void 0===e?void 0:e._ua)||void 0===t?void 0:t.os)||void 0===n?void 0:n.name}}(),function(){function e(e){this.amplitudeInstance=e}e.prototype.track=function(e){this.amplitudeInstance.logEvent(e.name,e.properties)},e.prototype.setUserProperty=function(e){var t,n;this.amplitudeInstance.setUserProperties(((t={})[e.userProperty]=null===(n=e.variant)||void 0===n?void 0:n.value,t))},e.prototype.unsetUserProperty=function(e){var t;this.amplitudeInstance._logEvent("$identify",null,null,{$unset:((t={})[e.userProperty]="-",t)})}}();var sx=function(){return(sx=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function sw(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((r=r.apply(e,t||[])).next())})}function sE(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(l){return function(s){if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}function sS(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function sk(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function sO(e,t,n){if(n||2==arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var sC=function(e,t){void 0===t&&(t=!1);var n,r,i=sT(e,t),o=void 0,a=sg.document.cookie.split("; ");try{for(var s=sS(a),l=s.next();!l.done;l=s.next()){var u=l.value,c=sk(u.split("=",2),2),d=c[0],f=c[1];d===i&&(o=decodeURIComponent(f))}}catch(e){n={error:e}}finally{try{l&&!l.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}if(o)try{if(t){var h=atob(o);return JSON.parse(decodeURIComponent(h))}var p=o.split("."),g=void 0;return p.length>=2&&p[1]&&(g=atob(p[1])),{deviceId:p[0],userId:g}}catch(e){return}},sI=function(e){var t=sT(e,!0);try{var n=sg.localStorage.getItem(t);if(!n)return;var r=JSON.parse(n);if("object"!=typeof r)return;return r}catch(e){return}},s_=function(e){var t=sT(e,!0);try{var n=sg.sessionStorage.getItem(t);if(!n)return;var r=JSON.parse(n);if("object"!=typeof r)return;return r}catch(e){return}},sT=function(e,t){if(t){if((null==e?void 0:e.length)<10)return;return"AMP_".concat(e.substring(0,10))}if(!((null==e?void 0:e.length)<6))return"amp_".concat(e.substring(0,6))},sP=function(){function e(e,t,n){this.type="integration",this.apiKey=e,this.identityStore=t.identityStore,this.eventBridge=t.eventBridge,this.contextProvider=t.applicationContextProvider,this.timeoutMillis=n,this.loadPersistedState(),n<=0&&(this.setup=void 0)}return e.prototype.setup=function(e,t){return sw(this,void 0,void 0,function(){return sE(this,function(n){return(null==e?void 0:e.automaticFetchOnAmplitudeIdentityChange)&&this.identityStore.addIdentityListener(function(){null==t||t.fetch()}),[2,this.waitForConnectorIdentity(this.timeoutMillis)]})})},e.prototype.getUser=function(){var e=this.identityStore.getIdentity();return{user_id:e.userId,device_id:e.deviceId,user_properties:e.userProperties,version:this.contextProvider.versionName}},e.prototype.track=function(e){return!!this.eventBridge.receiver&&(this.eventBridge.logEvent({eventType:e.eventType,eventProperties:e.eventProperties}),!0)},e.prototype.loadPersistedState=function(){if(!this.apiKey||this.apiKey.startsWith("client-"))return!1;var e=sC(this.apiKey,!0);return!!(e||(e=sC(this.apiKey,!1))||(e=sI(this.apiKey))||(e=s_(this.apiKey)))&&(this.commitIdentityToConnector(e),!0)},e.prototype.commitIdentityToConnector=function(e){var t=this.identityStore.editIdentity();t.setDeviceId(e.deviceId),e.userId&&t.setUserId(e.userId),t.commit()},e.prototype.waitForConnectorIdentity=function(e){return sw(this,void 0,void 0,function(){var t,n=this;return sE(this,function(r){return(t=this.identityStore.getIdentity()).userId||t.deviceId?[2]:[2,Promise.race([new Promise(function(e){var t=function(){e(),n.identityStore.removeIdentityListener(t)};n.identityStore.addIdentityListener(t)}),new Promise(function(t,n){sg.setTimeout(n,e,"Timed out waiting for Amplitude Analytics SDK to initialize.")})])]})})},e}(),sR=sg.fetch||function(e,t){return t=t||{},new Promise(function(n,r){var i=new XMLHttpRequest,o=[],a=[],s={},l=function(){return{ok:2==(i.status/100|0),statusText:i.statusText,status:i.status,url:i.responseURL,text:function(){return Promise.resolve(i.responseText)},json:function(){return Promise.resolve(JSON.parse(i.responseText))},blob:function(){return Promise.resolve(new Blob([i.response]))},clone:l,headers:{keys:function(){return o},entries:function(){return a},get:function(e){return s[e.toLowerCase()]},has:function(e){return e.toLowerCase() in s}}}};for(var u in i.open(t.method||"get",e,!0),i.onload=function(){i.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,function(e,t,n){o.push(t=t.toLowerCase()),a.push([t,n]),s[t]=s[t]?s[t]+","+n:n}),n(l())},i.onerror=r,i.withCredentials="include"==t.credentials,t.headers)i.setRequestHeader(u,t.headers[u]);i.send(t.body||null)})},sA=function(){function e(e){this.client=e}return e.prototype.request=function(e){return sw(this,void 0,void 0,function(){return sE(this,function(t){switch(t.label){case 0:return[4,this.client.request(e.requestUrl,e.method,e.headers,null,e.timeoutMillis)];case 1:return[2,t.sent()]}})})},e}(),sN={request:function(e,t,n,r,i){var o;return o=sw(void 0,void 0,void 0,function(){var i,o;return sE(this,function(a){switch(a.label){case 0:return[4,sR(e,{method:t,headers:n,body:r})];case 1:return o={status:(i=a.sent()).status},[4,i.text()];case 2:return o.body=a.sent(),[2,o]}})}),null==i||i<=0?o:new Promise(function(e,t){sg.setTimeout(function(){t(new sf("Request timeout after "+i+" milliseconds"))},i),o.then(e,t)})}};(M=ei||(ei={})).LocalStorage="localStorage",M.InitialVariants="initialVariants",(L=eo||(eo={})).LocalStorage="storage",L.InitialVariants="initial",L.SecondaryLocalStorage="secondary-storage",L.SecondaryInitialVariants="secondary-initial",L.FallbackInline="fallback-inline",L.FallbackConfig="fallback-config",L.LocalEvaluation="local-evaluation";var sM=function(e){return!e||e===eo.FallbackInline||e===eo.FallbackConfig||e===eo.SecondaryInitialVariants},sL={debug:!1,instanceName:"$default_instance",fallbackVariant:{},initialVariants:{},initialFlags:void 0,source:ei.LocalStorage,serverUrl:"https://api.lab.amplitude.com",flagsServerUrl:"https://flag.lab.amplitude.com",serverZone:"US",fetchTimeoutMillis:1e4,retryFetchOnFailure:!0,automaticExposureTracking:!0,pollOnStart:!0,flagConfigPollingIntervalMillis:3e5,fetchOnStart:!0,automaticFetchOnAmplitudeIdentityChange:!1,userProvider:null,analyticsProvider:null,exposureTrackingProvider:null,httpClient:sN},sD="1.15.6",sF=function(){function e(e,t){var n,r=this;this.isReady=new Promise(function(e){r.resolve=e}),this.config=e,this.client=t;var i=null!==(n=e.instanceName)&&void 0!==n?n:sL.instanceName;this.queue=new sj(i),this.cache=new sV(i)}return e.prototype.ready=function(){return this.integration?this.isReady:Promise.resolve()},e.prototype.setIntegration=function(e){var t=this;this.integration&&this.integration.teardown&&this.integration.teardown(),this.integration=e,e.setup?this.integration.setup(this.config,this.client).then(function(){t.queue.setTracker(t.integration.track.bind(e)),t.resolve()},function(){t.queue.setTracker(t.integration.track.bind(e)),t.resolve()}):(this.queue.setTracker(this.integration.track.bind(e)),this.resolve())},e.prototype.getUser=function(){return this.integration?this.integration.getUser():{}},e.prototype.track=function(e){if(this.cache.shouldTrack(e)){var t=this.getExposureEvent(e);this.queue.push(t)}},e.prototype.getExposureEvent=function(e){var t,n,r,i={eventType:"$exposure",eventProperties:e};return(null===(t=e.metadata)||void 0===t?void 0:t.exposureEvent)?i={eventType:null===(n=e.metadata)||void 0===n?void 0:n.exposureEvent,eventProperties:e}:(null===(r=e.metadata)||void 0===r?void 0:r.deliveryMethod)==="web"&&(i={eventType:"$impression",eventProperties:e}),i},e}(),sV=function(){function e(e){this.isSessionStorageAvailable=sz(),this.inMemoryCache={},this.storageKey="EXP_sent_v2_".concat(e),this.isSessionStorageAvailable&&sg.sessionStorage.removeItem("EXP_sent_".concat(e))}return e.prototype.shouldTrack=function(e){if((null===(t=e.metadata)||void 0===t?void 0:t.deliveryMethod)==="web")return!0;this.loadCache();var t,n=this.inMemoryCache[e.flag_key],r=!1;return n&&n.variant===e.variant||(r=!0,this.inMemoryCache[e.flag_key]=e),this.storeCache(),r},e.prototype.loadCache=function(){if(this.isSessionStorageAvailable){var e=sg.sessionStorage.getItem(this.storageKey);this.inMemoryCache=e?JSON.parse(e):{}}},e.prototype.storeCache=function(){this.isSessionStorageAvailable&&sg.sessionStorage.setItem(this.storageKey,JSON.stringify(this.inMemoryCache))},e}(),sj=function(){function e(e,t){void 0===t&&(t=512),this.isLocalStorageAvailable=sm(),this.inMemoryQueue=[],this.storageKey="EXP_unsent_".concat(e),this.maxQueueSize=t}return e.prototype.push=function(e){this.loadQueue(),this.inMemoryQueue.push(e),this.flush(),this.storeQueue()},e.prototype.setTracker=function(e){var t=this;this.tracker=e,this.poller=sg.setInterval(function(){t.loadFlushStore()},1e3),this.loadFlushStore()},e.prototype.flush=function(){var e,t;if(this.tracker&&0!==this.inMemoryQueue.length){try{for(var n=sS(this.inMemoryQueue),r=n.next();!r.done;r=n.next()){var i=r.value;try{if(!this.tracker(i))return}catch(e){return}}}catch(t){e={error:t}}finally{try{r&&!r.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}this.inMemoryQueue=[],this.poller&&(sg.clearInterval(this.poller),this.poller=void 0)}},e.prototype.loadQueue=function(){if(this.isLocalStorageAvailable){var e=sg.localStorage.getItem(this.storageKey);this.inMemoryQueue=e?JSON.parse(e):[]}},e.prototype.storeQueue=function(){this.isLocalStorageAvailable&&(this.inMemoryQueue.length>this.maxQueueSize&&(this.inMemoryQueue=this.inMemoryQueue.slice(this.inMemoryQueue.length-this.maxQueueSize)),sg.localStorage.setItem(this.storageKey,JSON.stringify(this.inMemoryQueue)))},e.prototype.loadFlushStore=function(){this.loadQueue(),this.flush(),this.storeQueue()},e}(),sz=function(){var e=sv();if(e)try{var t="EXP_test";return e.sessionStorage.setItem(t,t),e.sessionStorage.removeItem(t),!0}catch(e){}return!1},sU=function(){function e(){this.globalScope=sv()}return e.prototype.get=function(e){var t;return null===(t=this.globalScope)||void 0===t?void 0:t.localStorage.getItem(e)},e.prototype.put=function(e,t){var n;null===(n=this.globalScope)||void 0===n||n.localStorage.setItem(e,t)},e.prototype.delete=function(e){var t;null===(t=this.globalScope)||void 0===t||t.localStorage.removeItem(e)},e}(),sB=function(e,t,n){var r=e.substring(e.length-6);return new sH("amp-exp-".concat(t,"-").concat(r),n,s$)},sW=function(e,t,n){void 0===n&&(n=new sU);var r=e.substring(e.length-6);return new sH("amp-exp-".concat(t,"-").concat(r,"-flags"),n)},sH=function(){function e(e,t,n){this.cache={},this.namespace=e,this.storage=t,this.transformer=n}return e.prototype.get=function(e){return this.cache[e]},e.prototype.getAll=function(){return sx({},this.cache)},e.prototype.put=function(e,t){this.cache[e]=t},e.prototype.putAll=function(e){var t,n;try{for(var r=sS(Object.keys(e)),i=r.next();!i.done;i=r.next()){var o=i.value;this.cache[o]=e[o]}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}},e.prototype.remove=function(e){delete this.cache[e]},e.prototype.clear=function(){this.cache={}},e.prototype.load=function(){var e,t,n,r=this.storage.get(this.namespace);try{n=JSON.parse(r)||{}}catch(e){return}var i={};try{for(var o=sS(Object.keys(n)),a=o.next();!a.done;a=o.next()){var s=a.value;try{var l=void 0;(l=this.transformer?this.transformer(n[s]):n[s])&&(i[s]=l)}catch(e){}}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}this.clear(),this.putAll(i)},e.prototype.store=function(e){void 0===e&&(e=this.cache),this.storage.put(this.namespace,JSON.stringify(e))},e}(),s$=function(e){if("string"==typeof e)return{key:e,value:e};if("object"==typeof e){var t=e.key,n=e.value,r=e.payload,i=e.metadata,o=e.expKey;i&&i.experimentKey?o=i.experimentKey:o&&((i=i||{}).experimentKey=o);var a={};return t?a.key=t:n&&(a.key=n),n&&(a.value=n),i&&(a.metadata=i),r&&(a.payload=r),o&&(a.expKey=o),a}},sq=function(){function e(){this.globalScope=sv()}return e.prototype.get=function(e){var t;return null===(t=this.globalScope)||void 0===t?void 0:t.sessionStorage.getItem(e)},e.prototype.put=function(e,t){var n;null===(n=this.globalScope)||void 0===n||n.sessionStorage.setItem(e,t)},e.prototype.delete=function(e){var t;null===(t=this.globalScope)||void 0===t||t.sessionStorage.removeItem(e)},e}(),sG=function(e,t,n,r){var i,o=null==n?void 0:n.value,a="[Experiment] ".concat(t);return{name:"[Experiment] Exposure",user:e,key:t,variant:n,userProperty:a,properties:{key:t,variant:o,source:r},userProperties:((i={})[a]=o,i)}},sK=function(e){return null==e},sZ=function(e){return!!sK(e)||e&&0===Object.keys(e).length},sY=function(e){var t;return(null===(t=null==e?void 0:e.metadata)||void 0===t?void 0:t.evaluationMode)==="local"},sX=function(){function e(e,t,n,r){this.started=!1,this.done=!1,this.attempts=e,this.min=t,this.max=n,this.scalar=r}return e.prototype.start=function(e){return sw(this,void 0,void 0,function(){return sE(this,function(t){switch(t.label){case 0:if(this.started)throw Error("Backoff already started");return this.started=!0,[4,this.backoff(e,0,this.min)];case 1:return t.sent(),[2]}})})},e.prototype.cancel=function(){this.done=!0,clearTimeout(this.timeoutHandle)},e.prototype.backoff=function(e,t,n){return sw(this,void 0,void 0,function(){var r=this;return sE(this,function(i){return this.done||(this.timeoutHandle=sg.setTimeout(function(){return sw(r,void 0,void 0,function(){var r,i;return sE(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,e()];case 1:return o.sent(),[3,3];case 2:return o.sent(),(r=t+1)<this.attempts&&(i=Math.min(n*this.scalar,this.max),this.backoff(e,r,i)),[3,3];case 3:return[2]}})})},n)),[2]})})},e}(),sQ=function(e){if(!e)return{};var t,n,r,i,o={user:e},a=sv();a&&(o.page={url:a.location.href});var s={};if(!e.groups)return o;try{for(var l=sS(Object.keys(e.groups)),u=l.next();!u.done;u=l.next()){var c=u.value,d=e.groups[c];if(d.length>0&&d[0]){var f=d[0],h={group_name:f},p=null===(i=null===(r=e.group_properties)||void 0===r?void 0:r[c])||void 0===i?void 0:i[f];p&&Object.keys(p).length>0&&(h.group_properties=p),s[c]=h}}}catch(e){t={error:e}}finally{try{u&&!u.done&&(n=l.return)&&n.call(l)}finally{if(t)throw t.error}}return Object.keys(s).length>0&&(o.groups=s),delete o.user.groups,delete o.user.group_properties,o},sJ=function(e){return null==e?{}:"string"==typeof e?{key:e,value:e}:e},s0=function(e){if(!e)return{};var t=void 0;e.metadata&&(t=e.metadata.experimentKey);var n={};return e.key&&(n.key=e.key),e.value&&(n.value=e.value),e.payload&&(n.payload=e.payload),t&&(n.expKey=t),e.metadata&&(n.metadata=e.metadata),n},s1=function(){function e(e){this.setProperties={},this.unsetProperties={},this.analyticsProvider=e}return e.prototype.track=function(e){this.setProperties[e.key]!=e.variant.value&&(this.setProperties[e.key]=e.variant.value,delete this.unsetProperties[e.key],this.analyticsProvider.track(e))},e.prototype.setUserProperty=function(e){this.setProperties[e.key]!=e.variant.value&&this.analyticsProvider.setUserProperty(e)},e.prototype.unsetUserProperty=function(e){this.unsetProperties[e.key]||(this.unsetProperties[e.key]="unset",delete this.setProperties[e.key],this.analyticsProvider.unsetUserProperty(e))},e}(),s2=function(){function e(e){this.tracked={},this.exposureTrackingProvider=e}return e.prototype.track=function(e){var t=this.tracked[e.flag_key];t&&t.variant===e.variant||(this.tracked[e.flag_key]=e,this.exposureTrackingProvider.track(e))},e}(),s5=function(){function e(e,t){var n,r,i,o,a,s=this;this.engine=new a$,this.isRunning=!1,this.apiKey=e,this.config=sx(sx(sx({},sL),t),{serverUrl:(null==t?void 0:t.serverUrl)||((null===(n=null==t?void 0:t.serverZone)||void 0===n?void 0:n.toLowerCase())==="eu"?"https://api.lab.eu.amplitude.com":sL.serverUrl),flagsServerUrl:(null==t?void 0:t.flagsServerUrl)||((null===(r=null==t?void 0:t.serverZone)||void 0===r?void 0:r.toLowerCase())==="eu"?"https://flag.lab.eu.amplitude.com":sL.flagsServerUrl),flagConfigPollingIntervalMillis:t.flagConfigPollingIntervalMillis<6e4?6e4:null!==(i=t.flagConfigPollingIntervalMillis)&&void 0!==i?i:sL.flagConfigPollingIntervalMillis});var l=null===(o=this.config)||void 0===o?void 0:o.internalInstanceNameSuffix;if(this.isWebExperiment="web"===l,this.poller=new sb(function(){return s.doFlags()},this.config.flagConfigPollingIntervalMillis),this.config.initialVariants)for(var u in this.config.initialVariants)this.config.initialVariants[u]=s$(this.config.initialVariants[u]);this.config.userProvider&&(this.userProvider=this.config.userProvider),this.config.analyticsProvider&&(this.analyticsProvider=new s1(this.config.analyticsProvider)),this.config.exposureTrackingProvider&&(this.exposureTrackingProvider=new s2(this.config.exposureTrackingProvider)),this.integrationManager=new sF(this.config,this);var c=new sA(this.config.httpClient||sN);this.flagApi=new sp(this.apiKey,this.config.flagsServerUrl,c),this.evaluationApi=new sh(this.apiKey,this.config.serverUrl,c);var d=l?"".concat(this.config.instanceName,"-").concat(l):this.config.instanceName;a=this.isWebExperiment?new sq:new sU,this.variants=sB(this.apiKey,d,a),this.flags=sW(this.apiKey,d,a);try{this.flags.load(),this.variants.load()}catch(e){}this.mergeInitialFlagsWithStorage()}return e.prototype.start=function(e){var t;return sw(this,void 0,void 0,function(){var n;return sE(this,function(r){switch(r.label){case 0:if(this.isRunning)return[2];if(this.isRunning=!0,this.setUser(e),n=this.doFlags(),!(null===(t=this.config.fetchOnStart)||void 0===t||t))return[3,2];return[4,Promise.all([this.fetch(e),n])];case 1:return r.sent(),[3,4];case 2:return[4,n];case 3:r.sent(),r.label=4;case 4:return this.config.pollOnStart&&this.poller.start(),[2]}})})},e.prototype.stop=function(){this.isRunning&&(this.poller.stop(),this.isRunning=!1)},e.prototype.fetch=function(e,t){return void 0===e&&(e=this.user),sw(this,void 0,void 0,function(){var n;return sE(this,function(r){switch(r.label){case 0:this.setUser(e||{}),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this.fetchInternal(e,this.config.fetchTimeoutMillis,this.config.retryFetchOnFailure,t)];case 2:return r.sent(),[3,4];case 3:return n=r.sent(),this.config.debug&&(n instanceof sf?console.debug(n):console.error(n)),[3,4];case 4:return[2,this]}})})},e.prototype.variant=function(e,t){if(!this.apiKey)return{value:void 0};var n,r,i=this.variantAndSource(e,t);return this.config.automaticExposureTracking&&this.exposureInternal(e,i),this.debug("[Experiment] variant for ".concat(e," is ").concat((null===(n=i.variant)||void 0===n?void 0:n.key)||(null===(r=i.variant)||void 0===r?void 0:r.value))),i.variant||{}},e.prototype.exposure=function(e){var t=this.variantAndSource(e);this.exposureInternal(e,t)},e.prototype.all=function(){if(!this.apiKey)return{};var e=this.evaluate();for(var t in e)sY(this.flags.get(t))||delete e[t];return sx(sx(sx({},this.secondaryVariants()),this.sourceVariants()),e)},e.prototype.clear=function(){this.variants.clear();try{this.variants.store()}catch(e){}},e.prototype.getUser=function(){if(!this.user)return this.user;if(null===(e=this.user)||void 0===e||!e.user_properties)return sx({},this.user);var e,t=sx({},this.user.user_properties);return sx(sx({},this.user),{user_properties:t})},e.prototype.setUser=function(e){var t;if(!e){this.user=null;return}if(null===(t=this.user)||void 0===t?void 0:t.user_properties){var n=sx({},e.user_properties);this.user=sx(sx({},e),{user_properties:n})}else this.user=sx({},e)},e.prototype.getUserProvider=function(){return this.userProvider},e.prototype.setUserProvider=function(e){return this.userProvider=e,this},e.prototype.mergeInitialFlagsWithStorage=function(){var e=this;this.config.initialFlags&&JSON.parse(this.config.initialFlags).forEach(function(t){e.flags.get(t.key)||e.flags.put(t.key,t)})},e.prototype.evaluate=function(e){var t,n,r=this.addContext(this.user),i=aq(this.flags.getAll(),e),o=sQ(r),a=this.engine.evaluate(o,i),s={};try{for(var l=sS(Object.keys(a)),u=l.next();!u.done;u=l.next()){var c=u.value;s[c]=s0(a[c])}}catch(e){t={error:e}}finally{try{u&&!u.done&&(n=l.return)&&n.call(l)}finally{if(t)throw t.error}}return s},e.prototype.variantAndSource=function(e,t){var n={};this.config.source===ei.LocalStorage?n=this.localStorageVariantAndSource(e,t):this.config.source===ei.InitialVariants&&(n=this.initialVariantsVariantAndSource(e,t));var r=this.flags.get(e);return(sY(r)||!n.variant&&r)&&(n=this.localEvaluationVariantAndSource(e,r,t)),n},e.prototype.localEvaluationVariantAndSource=function(e,t,n){var r,i={},o=this.evaluate([t.key])[e],a=eo.LocalEvaluation,s=null===(r=null==o?void 0:o.metadata)||void 0===r?void 0:r.default;if(!sK(o)&&!s)return{variant:sJ(o),source:a,hasDefaultVariant:!1};if(s&&(i={variant:sJ(o),source:a,hasDefaultVariant:!0}),!sK(n))return{variant:sJ(n),source:eo.FallbackInline,hasDefaultVariant:i.hasDefaultVariant};var l=this.config.initialVariants[e];if(!sK(l))return{variant:sJ(l),source:eo.SecondaryInitialVariants,hasDefaultVariant:i.hasDefaultVariant};var u=sJ(this.config.fallbackVariant),c={variant:u,source:eo.FallbackConfig,hasDefaultVariant:i.hasDefaultVariant};return sZ(u)?i:c},e.prototype.localStorageVariantAndSource=function(e,t){var n,r={},i=this.variants.get(e),o=null===(n=null==i?void 0:i.metadata)||void 0===n?void 0:n.default;if(!sK(i)&&!o)return{variant:sJ(i),source:eo.LocalStorage,hasDefaultVariant:!1};if(o&&(r={variant:sJ(i),source:eo.LocalStorage,hasDefaultVariant:!0}),!sK(t))return{variant:sJ(t),source:eo.FallbackInline,hasDefaultVariant:r.hasDefaultVariant};var a=this.config.initialVariants[e];if(!sK(a))return{variant:sJ(a),source:eo.SecondaryInitialVariants,hasDefaultVariant:r.hasDefaultVariant};var s=sJ(this.config.fallbackVariant),l={variant:s,source:eo.FallbackConfig,hasDefaultVariant:r.hasDefaultVariant};return sZ(s)?r:l},e.prototype.initialVariantsVariantAndSource=function(e,t){var n,r={},i=this.config.initialVariants[e];if(!sK(i))return{variant:sJ(i),source:eo.InitialVariants,hasDefaultVariant:!1};var o=this.variants.get(e),a=null===(n=null==o?void 0:o.metadata)||void 0===n?void 0:n.default;if(!sK(o)&&!a)return{variant:sJ(o),source:eo.LocalStorage,hasDefaultVariant:!1};if(a&&(r={variant:sJ(o),source:eo.LocalStorage,hasDefaultVariant:!0}),!sK(t))return{variant:sJ(t),source:eo.FallbackInline,hasDefaultVariant:r.hasDefaultVariant};var s=sJ(this.config.fallbackVariant),l={variant:s,source:eo.FallbackConfig,hasDefaultVariant:r.hasDefaultVariant};return sZ(s)?r:l},e.prototype.fetchInternal=function(e,t,n,r){return sw(this,void 0,void 0,function(){var i,o;return sE(this,function(a){switch(a.label){case 0:if(!this.apiKey)throw Error("Experiment API key is empty");this.debug("[Experiment] Fetch all: retry=".concat(n)),n&&this.stopRetries(),a.label=1;case 1:return a.trys.push([1,4,,5]),[4,this.doFetch(e,t,r)];case 2:return i=a.sent(),[4,this.storeVariants(i,r)];case 3:return a.sent(),[2,i];case 4:throw o=a.sent(),n&&this.shouldRetryFetch(o)&&this.startRetries(e,r),o;case 5:return[2]}})})},e.prototype.cleanUserPropsForFetch=function(e){var t=sx({},e);return delete t.cookie,t},e.prototype.doFetch=function(e,t,n){return sw(this,void 0,void 0,function(){var r,i,o,a,s,l,u;return sE(this,function(c){switch(c.label){case 0:return[4,this.addContextOrWait(e)];case 1:return e=c.sent(),e=this.cleanUserPropsForFetch(e),this.debug("[Experiment] Fetch variants for user: ",e),[4,this.evaluationApi.getVariants(e,sx({timeoutMillis:t},n))];case 2:r=c.sent(),i={};try{for(a=(o=sS(Object.keys(r))).next();!a.done;a=o.next())i[s=a.value]=s0(r[s])}catch(e){l={error:e}}finally{try{a&&!a.done&&(u=o.return)&&u.call(o)}finally{if(l)throw l.error}}return this.debug("[Experiment] Received variants: ",i),[2,i]}})})},e.prototype.doFlags=function(){return sw(this,void 0,void 0,function(){var e,t,n;return sE(this,function(r){switch(r.label){case 0:if(r.trys.push([0,4,,5]),e=void 0,!this.isWebExperiment)return[3,2];return[4,this.addContextOrWait(this.getUser())];case 1:e=r.sent(),r.label=2;case 2:return[4,this.flagApi.getFlags({libraryName:"experiment-js-client",libraryVersion:sD,timeoutMillis:this.config.fetchTimeoutMillis,deliveryMethod:this.isWebExperiment?"web":void 0,user:(null==e?void 0:e.user_id)||(null==e?void 0:e.device_id)?{user_id:null==e?void 0:e.user_id,device_id:null==e?void 0:e.device_id}:void 0})];case 3:return t=r.sent(),this.flags.clear(),this.flags.putAll(t),[3,5];case 4:if((n=r.sent())instanceof sf)this.config.debug&&console.debug(n);else throw n;return[3,5];case 5:try{this.flags.store()}catch(e){}return this.mergeInitialFlagsWithStorage(),[2]}})})},e.prototype.storeVariants=function(e,t){return sw(this,void 0,void 0,function(){var n,r,i,o;return sE(this,function(a){for(o in 0===(n=t&&t.flagKeys?t.flagKeys:[]).length&&this.variants.clear(),r=function(t){n=n.filter(function(e){return e!==t}),i.variants.put(t,e[t])},i=this,e)r(o);for(o in n)this.variants.remove(o);try{this.variants.store()}catch(e){}return this.debug("[Experiment] Stored variants: ",e),[2]})})},e.prototype.startRetries=function(e,t){return sw(this,void 0,void 0,function(){var n=this;return sE(this,function(r){return this.debug("[Experiment] Retry fetch"),this.retriesBackoff=new sX(8,500,1e4,1.5),this.retriesBackoff.start(function(){return sw(n,void 0,void 0,function(){return sE(this,function(n){switch(n.label){case 0:return[4,this.fetchInternal(e,1e4,!1,t)];case 1:return n.sent(),[2]}})})}),[2]})})},e.prototype.stopRetries=function(){this.retriesBackoff&&this.retriesBackoff.cancel()},e.prototype.addContext=function(e){var t,n=null===(t=this.userProvider)||void 0===t?void 0:t.getUser(),r=this.integrationManager.getUser(),i=sx(sx(sx({},null==n?void 0:n.user_properties),r.user_properties),null==e?void 0:e.user_properties);return sx(sx(sx(sx({library:"experiment-js-client/".concat(sD)},n),r),e),{user_properties:i})},e.prototype.addContextOrWait=function(e){return sw(this,void 0,void 0,function(){return sE(this,function(t){switch(t.label){case 0:return[4,this.integrationManager.ready()];case 1:return t.sent(),[2,this.addContext(e)]}})})},e.prototype.sourceVariants=function(){return this.config.source==ei.LocalStorage?this.variants.getAll():this.config.source==ei.InitialVariants?this.config.initialVariants:void 0},e.prototype.secondaryVariants=function(){return this.config.source==ei.LocalStorage?this.config.initialVariants:this.config.source==ei.InitialVariants?this.variants.getAll():void 0},e.prototype.exposureInternal=function(e,t){if(null===(i=null===(r=null===(n=t.variant)||void 0===n?void 0:n.metadata)||void 0===r?void 0:r.trackExposure)||void 0===i||i){this.legacyExposureInternal(e,t.variant,t.source);var n,r,i,o,a,s,l,u,c,d={flag_key:e},f=sM(t.source);if(!f||t.hasDefaultVariant){(null===(o=t.variant)||void 0===o?void 0:o.expKey)&&(d.experiment_key=null===(a=t.variant)||void 0===a?void 0:a.expKey);var h=null===(s=t.variant)||void 0===s?void 0:s.metadata;f||(null==h?void 0:h.default)||((null===(l=t.variant)||void 0===l?void 0:l.key)?d.variant=t.variant.key:(null===(u=t.variant)||void 0===u?void 0:u.value)&&(d.variant=t.variant.value)),h&&(d.metadata=h),null===(c=this.exposureTrackingProvider)||void 0===c||c.track(d),this.integrationManager.track(d)}}},e.prototype.legacyExposureInternal=function(e,t,n){var r,i,o,a,s;if(this.analyticsProvider){var l=sG(this.addContext(this.getUser()),e,t,n);!sM(n)&&(null==t?void 0:t.value)?(null==t?void 0:t.value)&&(null===(a=null===(o=this.analyticsProvider)||void 0===o?void 0:o.setUserProperty)||void 0===a||a.call(o,l),null===(s=this.analyticsProvider)||void 0===s||s.track(l)):null===(i=null===(r=this.analyticsProvider)||void 0===r?void 0:r.unsetUserProperty)||void 0===i||i.call(r,l)}},e.prototype.debug=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];this.config.debug&&console.debug.apply(console,sO([e],sk(t),!1))},e.prototype.shouldRetryFetch=function(e){return!(e instanceof sd)||e.statusCode<400||e.statusCode>=500||429===e.statusCode},e.prototype.addPlugin=function(e){"integration"===e.type&&this.integrationManager.setIntegration(e)},e}(),s4=function(){function e(e,t){var n,r,i;this.globalScope=sv(),this.userAgent=void 0!==(null===(n=this.globalScope)||void 0===n?void 0:n.navigator)?null===(r=this.globalScope)||void 0===r?void 0:r.navigator.userAgent:void 0,this.ua=new sy.UAParser(this.userAgent).getResult(),this.localStorage=new sU,this.sessionStorage=new sq,this.userProvider=e,this.apiKey=t,this.storageKey="EXP_".concat(null===(i=this.apiKey)||void 0===i?void 0:i.slice(0,10),"_DEFAULT_USER_PROVIDER")}return e.prototype.getUser=function(){var e,t,n,r,i,o=(null===(e=this.userProvider)||void 0===e?void 0:e.getUser())||{};return sx({language:this.getLanguage(),platform:"Web",os:this.getOs(this.ua),device_model:this.getDeviceModel(this.ua),device_category:null!==(n=null===(t=this.ua.device)||void 0===t?void 0:t.type)&&void 0!==n?n:"desktop",referring_url:null===(i=null===(r=this.globalScope)||void 0===r?void 0:r.document)||void 0===i?void 0:i.referrer.replace(/\/$/,""),cookie:this.getCookie(),browser:this.getBrowser(this.ua),landing_url:this.getLandingUrl(),first_seen:this.getFirstSeen(),url_param:this.getUrlParam(),user_agent:this.userAgent},o)},e.prototype.getLanguage=function(){return"undefined"!=typeof navigator&&(navigator.languages&&navigator.languages[0]||navigator.language)||""},e.prototype.getOs=function(e){var t,n;return[null===(t=e.browser)||void 0===t?void 0:t.name,null===(n=e.browser)||void 0===n?void 0:n.major].filter(function(e){return null!=e}).join(" ")},e.prototype.getDeviceModel=function(e){var t;return null===(t=e.os)||void 0===t?void 0:t.name},e.prototype.getBrowser=function(e){var t,n=null===(t=e.browser)||void 0===t?void 0:t.name;return(null==n?void 0:n.includes("Chrom"))&&(n="Chrome"),(null==n?void 0:n.includes("Firefox"))&&(n="Firefox"),(null==n?void 0:n.includes("Safari"))&&(n="Safari"),(null==n?void 0:n.includes("Edge"))&&(n="Edge"),(null==n?void 0:n.includes("Opera"))&&(n="Opera"),n},e.prototype.getCookie=function(){var e,t,n,r,i;if(null===(t=null===(e=this.globalScope)||void 0===e?void 0:e.document)||void 0===t?void 0:t.cookie)return Object.fromEntries(null===(i=null===(r=null===(n=this.globalScope)||void 0===n?void 0:n.document)||void 0===r?void 0:r.cookie)||void 0===i?void 0:i.split("; ").map(function(e){return e.split("=")}))},e.prototype.getLandingUrl=function(){var e,t;try{var n=JSON.parse(this.sessionStorage.get(this.storageKey)||"{}");return n.landing_url||(n.landing_url=null===(t=null===(e=this.globalScope)||void 0===e?void 0:e.location)||void 0===t?void 0:t.href.replace(/\/$/,""),this.sessionStorage.put(this.storageKey,JSON.stringify(n))),n.landing_url}catch(e){return}},e.prototype.getFirstSeen=function(){try{var e=JSON.parse(this.localStorage.get(this.storageKey)||"{}");return e.first_seen||(e.first_seen=(Date.now()/1e3).toString(),this.localStorage.put(this.storageKey,JSON.stringify(e))),e.first_seen}catch(e){return}},e.prototype.getUrlParam=function(){if(this.globalScope){var e,t,n,r={};try{var i=new URL(this.globalScope.location.href);try{for(var o=sS(i.searchParams),a=o.next();!a.done;a=o.next()){var s=sk(a.value,2),l=s[0],u=s[1];r[l]=sO(sO([],sk(null!==(n=r[l])&&void 0!==n?n:[]),!1),sk(u.split(",")),!1)}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}}catch(e){return}return Object.entries(r).reduce(function(e,t){var n=sk(t,2),r=n[0],i=n[1];return e[r]=1==i.length?i[0]:i,e},{})}},e}();sg.experimentInstances={};var s3=sg.experimentInstances,s6=function(e){return(null==e?void 0:e.instanceName)||sL.instanceName},s8=function(e,t){var n=s6(t),r=null==t?void 0:t.internalInstanceNameSuffix;return r?"".concat(n,".").concat(e,".").concat(r):"".concat(n,".").concat(e)},s7=function(e,t,n){var r=s8(e,t),i=s3[r];return i||(i=new s5(e,sx(sx({},t),{userProvider:new s4(null==t?void 0:t.userProvider,e)})),n&&i.addPlugin(n()),s3[r]=i),i};!function(){function e(){}e.prototype.getUser=function(){return{}},e.prototype.start=function(e){return sw(this,void 0,void 0,function(){return sE(this,function(e){return[2]})})},e.prototype.stop=function(){},e.prototype.setUser=function(e){},e.prototype.fetch=function(e){return sw(this,void 0,void 0,function(){return sE(this,function(e){return[2,this]})})},e.prototype.getUserProvider=function(){return null},e.prototype.setUserProvider=function(e){return this},e.prototype.variant=function(e,t){return sL.fallbackVariant},e.prototype.all=function(){return{}},e.prototype.clear=function(){},e.prototype.exposure=function(e){}}();var s9=function(){function e(t){this.name=e.pluginName,this.config=t}return e.prototype.setup=function(e,t){return ec(this,void 0,void 0,function(){return ed(this,function(t){var n,r;return this.experiment=s7(n=e.apiKey,r=this.config,function(){return new sP(n,eT.getInstance(s6(r)),1e4)}),[2]})})},e.pluginName="@amplitude/experiment-analytics-plugin",e}(),le={experiment:(D=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return es(t,e),Object.defineProperty(t.prototype,"experiment",{get:function(){if(void 0!==this.config){var e=this.plugins(s9);if(0===e.length){this.config.loggerProvider.debug("".concat(s9.pluginName," plugin is not found."));return}if(1===e.length)return e[0].experiment;this.config.loggerProvider.debug("Multiple instances of ".concat(s9.pluginName," are found."))}},enumerable:!1,configurable:!0}),t.prototype.initAll=function(t,n){return ec(this,void 0,void 0,function(){var r,i;return ed(this,function(o){switch(o.label){case 0:return r={serverZone:null==n?void 0:n.serverZone,instanceName:null==n?void 0:n.instanceName},e.prototype.add.call(this,{type:"enrichment",name:"@amplitude/unified-library-plugin",execute:function(e){var t;return ec(this,void 0,void 0,function(){return ed(this,function(n){return e.library="".concat("amplitude-ts-unified","/").concat("1.0.0-beta.2","-").concat(null!==(t=e.library)&&void 0!==t?t:""),[2,e]})})}}),[4,e.prototype.init.call(this,t,el(el({},null==n?void 0:n.analytics),r)).promise];case 1:return o.sent(),[4,e.prototype.add.call(this,new ak(el(el({},null==n?void 0:n.sr),r))).promise];case 2:return o.sent(),[4,e.prototype.add.call(this,new s9(el(el({},null==n?void 0:n.experiment),r))).promise];case 3:return o.sent(),void 0===(i=this.plugin(ak.pluginName))?this.config.loggerProvider.debug("".concat(ak.pluginName," plugin is not found.")):this.sr=i.sr,[2]}})})},t.prototype.init=function(t,n,r){return void 0===t&&(t=""),e.prototype.init.call(this,t,n,r)},t}(iv))).experiment,sr:D.sr,initAll:ix(D.initAll.bind(D),"initAll",im(D),iy(D,["config"])),init:ix(D.init.bind(D),"init",im(D),iy(D,["config"])),add:ix(D.add.bind(D),"add",im(D),iy(D,["config.apiKey","timeline.plugins"])),remove:ix(D.remove.bind(D),"remove",im(D),iy(D,["config.apiKey","timeline.plugins"])),track:ix(D.track.bind(D),"track",im(D),iy(D,["config.apiKey","timeline.queue.length"])),logEvent:ix(D.logEvent.bind(D),"logEvent",im(D),iy(D,["config.apiKey","timeline.queue.length"])),identify:ix(D.identify.bind(D),"identify",im(D),iy(D,["config.apiKey","timeline.queue.length"])),groupIdentify:ix(D.groupIdentify.bind(D),"groupIdentify",im(D),iy(D,["config.apiKey","timeline.queue.length"])),setGroup:ix(D.setGroup.bind(D),"setGroup",im(D),iy(D,["config.apiKey","timeline.queue.length"])),revenue:ix(D.revenue.bind(D),"revenue",im(D),iy(D,["config.apiKey","timeline.queue.length"])),flush:ix(D.flush.bind(D),"flush",im(D),iy(D,["config.apiKey","timeline.queue.length"])),getUserId:ix(D.getUserId.bind(D),"getUserId",im(D),iy(D,["config","config.userId"])),setUserId:ix(D.setUserId.bind(D),"setUserId",im(D),iy(D,["config","config.userId"])),getDeviceId:ix(D.getDeviceId.bind(D),"getDeviceId",im(D),iy(D,["config","config.deviceId"])),setDeviceId:ix(D.setDeviceId.bind(D),"setDeviceId",im(D),iy(D,["config","config.deviceId"])),reset:ix(D.reset.bind(D),"reset",im(D),iy(D,["config","config.userId","config.deviceId"])),getSessionId:ix(D.getSessionId.bind(D),"getSessionId",im(D),iy(D,["config"])),setSessionId:ix(D.setSessionId.bind(D),"setSessionId",im(D),iy(D,["config"])),extendSession:ix(D.extendSession.bind(D),"extendSession",im(D),iy(D,["config"])),setOptOut:ix(D.setOptOut.bind(D),"setOptOut",im(D),iy(D,["config"])),setTransport:ix(D.setTransport.bind(D),"setTransport",im(D),iy(D,["config"]))},lt=le.initAll,ln=(le.experiment,le.sr,le.add,le.extendSession,le.flush,le.getDeviceId,le.getSessionId,le.getUserId,le.groupIdentify,le.identify,le.logEvent,le.remove,le.reset,le.revenue,le.setDeviceId,le.setGroup,le.setOptOut,le.setSessionId,le.setTransport,le.setUserId,le.track)},28255:function(e,t,n){"use strict";n.d(t,{Z:function(){return H}});var r=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)==0){var t;this._insertTag(((t=document.createElement("style")).setAttribute("data-emotion",this.key),void 0!==this.nonce&&t.setAttribute("nonce",this.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t))}var n=this.tags[this.tags.length-1];if(this.isSpeedy){var r=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(n);try{r.insertRule(e,r.cssRules.length)}catch(e){}}else n.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),this.tags=[],this.ctr=0},e}(),i=Math.abs,o=String.fromCharCode,a=Object.assign;function s(e,t,n){return e.replace(t,n)}function l(e,t){return e.indexOf(t)}function u(e,t){return 0|e.charCodeAt(t)}function c(e,t,n){return e.slice(t,n)}function d(e){return e.length}function f(e,t){return t.push(e),e}var h=1,p=1,g=0,v=0,m=0,b="";function y(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:h,column:p,length:a,return:""}}function x(e,t){return a(y("",null,null,"",null,null,0),e,{length:-e.length},t)}function w(){return m=v<g?u(b,v++):0,p++,10===m&&(p=1,h++),m}function E(){return u(b,v)}function S(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function k(e){return h=p=1,g=d(b=e),v=0,[]}function O(e){var t,n;return(t=v-1,n=function e(t){for(;w();)switch(m){case t:return v;case 34:case 39:34!==t&&39!==t&&e(m);break;case 40:41===t&&e(t);break;case 92:w()}return v}(91===e?e+2:40===e?e+1:e),c(b,t,n)).trim()}var C="-ms-",I="-moz-",_="-webkit-",T="comm",P="rule",R="decl",A="@keyframes";function N(e,t){for(var n="",r=e.length,i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function M(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case R:return e.return=e.return||e.value;case T:return"";case A:return e.return=e.value+"{"+N(e.children,r)+"}";case P:e.value=e.props.join(",")}return d(n=N(e.children,r))?e.return=e.value+"{"+n+"}":""}function L(e,t,n,r,o,a,l,u,d,f,h){for(var p=o-1,g=0===o?a:[""],v=g.length,m=0,b=0,x=0;m<r;++m)for(var w=0,E=c(e,p+1,p=i(b=l[m])),S=e;w<v;++w)(S=(b>0?g[w]+" "+E:s(E,/&\f/g,g[w])).trim())&&(d[x++]=S);return y(e,t,n,0===o?P:u,d,f,h)}function D(e,t,n,r){return y(e,t,n,R,c(e,0,r),c(e,r+1,-1),r)}var F=function(e,t,n){for(var r=0,i=0;r=i,i=E(),38===r&&12===i&&(t[n]=1),!S(i);)w();return c(b,e,v)},V=function(e,t){var n=-1,r=44;do switch(S(r)){case 0:38===r&&12===E()&&(t[n]=1),e[n]+=F(v-1,t,n);break;case 2:e[n]+=O(r);break;case 4:if(44===r){e[++n]=58===E()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=o(r)}while(r=w());return e},j=function(e,t){var n;return n=V(k(e),t),b="",n},z=new WeakMap,U=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||z.get(n))&&!r){z.set(e,!0);for(var i=[],o=j(t,i),a=n.props,s=0,l=0;s<o.length;s++)for(var u=0;u<a.length;u++,l++)e.props[l]=i[s]?o[s].replace(/&\f/g,a[u]):a[u]+" "+o[s]}}},B=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},W=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case R:e.return=function e(t,n){switch(45^u(t,0)?(((n<<2^u(t,0))<<2^u(t,1))<<2^u(t,2))<<2^u(t,3):0){case 5103:return _+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return _+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return _+t+I+t+C+t+t;case 6828:case 4268:return _+t+C+t+t;case 6165:return _+t+C+"flex-"+t+t;case 5187:return _+t+s(t,/(\w+).+(:[^]+)/,_+"box-$1$2"+C+"flex-$1$2")+t;case 5443:return _+t+C+"flex-item-"+s(t,/flex-|-self/,"")+t;case 4675:return _+t+C+"flex-line-pack"+s(t,/align-content|flex-|-self/,"")+t;case 5548:return _+t+C+s(t,"shrink","negative")+t;case 5292:return _+t+C+s(t,"basis","preferred-size")+t;case 6060:return _+"box-"+s(t,"-grow","")+_+t+C+s(t,"grow","positive")+t;case 4554:return _+s(t,/([^-])(transform)/g,"$1"+_+"$2")+t;case 6187:return s(s(s(t,/(zoom-|grab)/,_+"$1"),/(image-set)/,_+"$1"),t,"")+t;case 5495:case 3959:return s(t,/(image-set\([^]*)/,_+"$1$`$1");case 4968:return s(s(t,/(.+:)(flex-)?(.*)/,_+"box-pack:$3"+C+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+_+t+t;case 4095:case 3583:case 4068:case 2532:return s(t,/(.+)-inline(.+)/,_+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(d(t)-1-n>6)switch(u(t,n+1)){case 109:if(45!==u(t,n+4))break;case 102:return s(t,/(.+:)(.+)-([^]+)/,"$1"+_+"$2-$3$1"+I+(108==u(t,n+3)?"$3":"$2-$3"))+t;case 115:return~l(t,"stretch")?e(s(t,"stretch","fill-available"),n)+t:t}break;case 4949:if(115!==u(t,n+1))break;case 6444:switch(u(t,d(t)-3-(~l(t,"!important")&&10))){case 107:return s(t,":",":"+_)+t;case 101:return s(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+_+(45===u(t,14)?"inline-":"")+"box$3$1"+_+"$2$3$1"+C+"$2box$3")+t}break;case 5936:switch(u(t,n+11)){case 114:return _+t+C+s(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return _+t+C+s(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return _+t+C+s(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return _+t+C+t+t}return t}(e.value,e.length);break;case A:return N([x(e,{value:s(e.value,"@","@"+_)})],r);case P:if(e.length){var i,o;return i=e.props,o=function(t){var n;switch(n=t,(n=/(::plac\w+|:read-\w+)/.exec(n))?n[0]:n){case":read-only":case":read-write":return N([x(e,{props:[s(t,/:(read-\w+)/,":"+I+"$1")]})],r);case"::placeholder":return N([x(e,{props:[s(t,/:(plac\w+)/,":"+_+"input-$1")]}),x(e,{props:[s(t,/:(plac\w+)/,":"+I+"$1")]}),x(e,{props:[s(t,/:(plac\w+)/,C+"input-$1")]})],r)}return""},i.map(o).join("")}}}],H=function(e){var t,n,i,a,g,x,C=e.key;if("css"===C){var I=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(I,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var _=e.stylisPlugins||W,P={},R=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+C+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)P[t[n]]=!0;R.push(e)});var A=(n=(t=[U,B].concat(_,[M,(i=function(e){x.insert(e)},function(e){!e.root&&(e=e.return)&&i(e)})])).length,function(e,r,i,o){for(var a="",s=0;s<n;s++)a+=t[s](e,r,i,o)||"";return a}),F=function(e){var t,n;return N((n=function e(t,n,r,i,a,g,x,k,C){for(var I,_=0,P=0,R=x,A=0,N=0,M=0,F=1,V=1,j=1,z=0,U="",B=a,W=g,H=i,$=U;V;)switch(M=z,z=w()){case 40:if(108!=M&&58==u($,R-1)){-1!=l($+=s(O(z),"&","&\f"),"&\f")&&(j=-1);break}case 34:case 39:case 91:$+=O(z);break;case 9:case 10:case 13:case 32:$+=function(e){for(;m=E();)if(m<33)w();else break;return S(e)>2||S(m)>3?"":" "}(M);break;case 92:$+=function(e,t){for(var n;--t&&w()&&!(m<48)&&!(m>102)&&(!(m>57)||!(m<65))&&(!(m>70)||!(m<97)););return n=v+(t<6&&32==E()&&32==w()),c(b,e,n)}(v-1,7);continue;case 47:switch(E()){case 42:case 47:f(y(I=function(e,t){for(;w();)if(e+m===57)break;else if(e+m===84&&47===E())break;return"/*"+c(b,t,v-1)+"*"+o(47===e?e:w())}(w(),v),n,r,T,o(m),c(I,2,-2),0),C);break;default:$+="/"}break;case 123*F:k[_++]=d($)*j;case 125*F:case 59:case 0:switch(z){case 0:case 125:V=0;case 59+P:-1==j&&($=s($,/\f/g,"")),N>0&&d($)-R&&f(N>32?D($+";",i,r,R-1):D(s($," ","")+";",i,r,R-2),C);break;case 59:$+=";";default:if(f(H=L($,n,r,_,P,a,k,U,B=[],W=[],R),g),123===z){if(0===P)e($,n,H,H,B,g,R,k,W);else switch(99===A&&110===u($,3)?100:A){case 100:case 108:case 109:case 115:e(t,H,H,i&&f(L(t,H,H,0,0,a,k,U,a,B=[],R),W),a,W,R,k,i?B:W);break;default:e($,H,H,H,[""],W,0,k,W)}}}_=P=N=0,F=j=1,U=$="",R=x;break;case 58:R=1+d($),N=M;default:if(F<1){if(123==z)--F;else if(125==z&&0==F++&&125==(m=v>0?u(b,--v):0,p--,10===m&&(p=1,h--),m))continue}switch($+=o(z),z*F){case 38:j=P>0?1:($+="\f",-1);break;case 44:k[_++]=(d($)-1)*j,j=1;break;case 64:45===E()&&($+=O(w())),A=E(),P=R=d(U=$+=function(e){for(;!S(E());)w();return c(b,e,v)}(v)),z++;break;case 45:45===M&&2==d($)&&(F=0)}}return g}("",null,null,null,[""],t=k(t=e),0,[0],t),b="",n),A)};g=function(e,t,n,r){x=n,F(e?e+"{"+t.styles+"}":t.styles),r&&(V.inserted[t.name]=!0)};var V={key:C,sheet:new r({key:C,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:P,registered:{},insert:g};return V.sheet.hydrate(R),V}},93522:function(e,t,n){"use strict";function r(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}n.d(t,{Z:function(){return r}})},24642:function(e,t,n){"use strict";n.d(t,{E:function(){return g},T:function(){return c},c:function(){return h},h:function(){return d},w:function(){return u}});var r=n(97129),i=n(28255),o=n(54162),a=n(57083),s=n(60279),l=r.createContext("undefined"!=typeof HTMLElement?(0,i.Z)({key:"css"}):null);l.Provider;var u=function(e){return(0,r.forwardRef)(function(t,n){return e(t,(0,r.useContext)(l),n)})},c=r.createContext({}),d={}.hasOwnProperty,f="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",h=function(e,t){var n={};for(var r in t)d.call(t,r)&&(n[r]=t[r]);return n[f]=e,n},p=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return(0,o.hC)(t,n,r),(0,s.L)(function(){return(0,o.My)(t,n,r)}),null},g=u(function(e,t,n){var i=e.css;"string"==typeof i&&void 0!==t.registered[i]&&(i=t.registered[i]);var s=e[f],l=[i],u="";"string"==typeof e.className?u=(0,o.fp)(t.registered,l,e.className):null!=e.className&&(u=e.className+" ");var h=(0,a.O)(l,void 0,r.useContext(c));u+=t.key+"-"+h.name;var g={};for(var v in e)d.call(e,v)&&"css"!==v&&v!==f&&(g[v]=e[v]);return g.className=u,n&&(g.ref=n),r.createElement(r.Fragment,null,r.createElement(p,{cache:t,serialized:h,isStringTag:"string"==typeof s}),r.createElement(s,g))})},86501:function(e,t,n){"use strict";n.d(t,{F4:function(){return h},iv:function(){return f},tZ:function(){return c},xB:function(){return d}});var r,i,o=n(24642),a=n(97129),s=n(54162),l=n(60279),u=n(57083);n(28255),n(6002);var c=function(e,t){var n=arguments;if(null==t||!o.h.call(t,"css"))return a.createElement.apply(void 0,n);var r=n.length,i=Array(r);i[0]=o.E,i[1]=(0,o.c)(e,t);for(var s=2;s<r;s++)i[s]=n[s];return a.createElement.apply(null,i)};r=c||(c={}),i||(i=r.JSX||(r.JSX={}));var d=(0,o.w)(function(e,t){var n=e.styles,r=(0,u.O)([n],void 0,a.useContext(o.T)),i=a.useRef();return(0,l.j)(function(){var e=t.key+"-global",n=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),o=!1,a=document.querySelector('style[data-emotion="'+e+" "+r.name+'"]');return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),null!==a&&(o=!0,a.setAttribute("data-emotion",e),n.hydrate([a])),i.current=[n,o],function(){n.flush()}},[t]),(0,l.j)(function(){var e=i.current,n=e[0];if(e[1]){e[1]=!1;return}if(void 0!==r.next&&(0,s.My)(t,r.next,!0),n.tags.length){var o=n.tags[n.tags.length-1].nextElementSibling;n.before=o,n.flush()}t.insert("",r,n,!1)},[t,r.name]),null});function f(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,u.O)(t)}function h(){var e=f.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}},57083:function(e,t,n){"use strict";n.d(t,{O:function(){return p}});var r,i={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},o=n(93522),a=/[A-Z]|^ms/g,s=/_EMO_([^_]+?)_([^]*?)_EMO_/g,l=function(e){return 45===e.charCodeAt(1)},u=function(e){return null!=e&&"boolean"!=typeof e},c=(0,o.Z)(function(e){return l(e)?e:e.replace(a,"-$&").toLowerCase()}),d=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(s,function(e,t,n){return r={name:t,styles:n,next:r},t})}return 1===i[e]||l(e)||"number"!=typeof t||0===t?t:t+"px"};function f(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return r={name:n.name,styles:n.styles,next:r},n.name;if(void 0!==n.styles){var i=n.next;if(void 0!==i)for(;void 0!==i;)r={name:i.name,styles:i.styles,next:r},i=i.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=f(e,t,n[i])+";";else for(var o in n){var a=n[o];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=o+"{"+t[a]+"}":u(a)&&(r+=c(o)+":"+d(o,a)+";");else if(Array.isArray(a)&&"string"==typeof a[0]&&(null==t||void 0===t[a[0]]))for(var s=0;s<a.length;s++)u(a[s])&&(r+=c(o)+":"+d(o,a[s])+";");else{var l=f(e,t,a);switch(o){case"animation":case"animationName":r+=c(o)+":"+l+";";break;default:r+=o+"{"+l+"}"}}}return r}(e,t,n);case"function":if(void 0!==e){var o=r,a=n(e);return r=o,f(e,t,a)}}if(null==t)return n;var s=t[n];return void 0!==s?s:n}var h=/label:\s*([^\s;{]+)\s*(;|$)/g;function p(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var i,o=!0,a="";r=void 0;var s=e[0];null==s||void 0===s.raw?(o=!1,a+=f(n,t,s)):a+=s[0];for(var l=1;l<e.length;l++)a+=f(n,t,e[l]),o&&(a+=s[l]);h.lastIndex=0;for(var u="";null!==(i=h.exec(a));)u+="-"+i[1];return{name:function(e){for(var t,n=0,r=0,i=e.length;i>=4;++r,i-=4)t=(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))*1540483477+((t>>>16)*59797<<16),t^=t>>>24,n=(65535&t)*1540483477+((t>>>16)*59797<<16)^(65535&n)*1540483477+((n>>>16)*59797<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n^=255&e.charCodeAt(r),n=(65535&n)*1540483477+((n>>>16)*59797<<16)}return n^=n>>>13,(((n=(65535&n)*1540483477+((n>>>16)*59797<<16))^n>>>15)>>>0).toString(36)}(a)+u,styles:a,next:r}}},60279:function(e,t,n){"use strict";n.d(t,{L:function(){return a},j:function(){return s}});var r,i=n(97129),o=!!(r||(r=n.t(i,2))).useInsertionEffect&&(r||(r=n.t(i,2))).useInsertionEffect,a=o||function(e){return e()},s=o||i.useLayoutEffect},54162:function(e,t,n){"use strict";function r(e,t,n){var r="";return n.split(" ").forEach(function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")}),r}n.d(t,{My:function(){return o},fp:function(){return r},hC:function(){return i}});var i=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},o=function(e,t,n){i(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next;while(void 0!==o)}}},55234:function(e,t,n){e.exports={graphlib:n(84833),layout:n(73556),debug:n(63592),util:{time:n(13298).time,notime:n(13298).notime},version:n(51463)}},61644:function(e,t,n){"use strict";var r=n(78301),i=n(18256);e.exports={run:function(e){var t,n,o,a="greedy"===e.graph().acyclicer?i(e,function(t){return e.edge(t).weight}):(t=[],n={},o={},r.forEach(e.nodes(),function i(a){r.has(o,a)||(o[a]=!0,n[a]=!0,r.forEach(e.outEdges(a),function(e){r.has(n,e.w)?t.push(e):i(e.w)}),delete n[a])}),t);r.forEach(a,function(t){var n=e.edge(t);e.removeEdge(t),n.forwardName=t.name,n.reversed=!0,e.setEdge(t.w,t.v,n,r.uniqueId("rev"))})},undo:function(e){r.forEach(e.edges(),function(t){var n=e.edge(t);if(n.reversed){e.removeEdge(t);var r=n.forwardName;delete n.reversed,delete n.forwardName,e.setEdge(t.w,t.v,n,r)}})}}},1117:function(e,t,n){var r=n(78301),i=n(13298);function o(e,t,n,r,o,a){var s=o[t][a-1],l=i.addDummyNode(e,"border",{width:0,height:0,rank:a,borderType:t},n);o[t][a]=l,e.setParent(l,r),s&&e.setEdge(s,l,{weight:1})}e.exports=function(e){r.forEach(e.children(),function t(n){var i=e.children(n),a=e.node(n);if(i.length&&r.forEach(i,t),r.has(a,"minRank")){a.borderLeft=[],a.borderRight=[];for(var s=a.minRank,l=a.maxRank+1;s<l;++s)o(e,"borderLeft","_bl",n,a,s),o(e,"borderRight","_br",n,a,s)}})}},92460:function(e,t,n){"use strict";var r=n(78301);function i(e){r.forEach(e.nodes(),function(t){o(e.node(t))}),r.forEach(e.edges(),function(t){o(e.edge(t))})}function o(e){var t=e.width;e.width=e.height,e.height=t}function a(e){e.y=-e.y}function s(e){var t=e.x;e.x=e.y,e.y=t}e.exports={adjust:function(e){var t=e.graph().rankdir.toLowerCase();("lr"===t||"rl"===t)&&i(e)},undo:function(e){var t=e.graph().rankdir.toLowerCase();("bt"===t||"rl"===t)&&(r.forEach(e.nodes(),function(t){a(e.node(t))}),r.forEach(e.edges(),function(t){var n=e.edge(t);r.forEach(n.points,a),r.has(n,"y")&&a(n)})),("lr"===t||"rl"===t)&&(r.forEach(e.nodes(),function(t){s(e.node(t))}),r.forEach(e.edges(),function(t){var n=e.edge(t);r.forEach(n.points,s),r.has(n,"x")&&s(n)}),i(e))}}},40206:function(e){function t(){var e={};e._next=e._prev=e,this._sentinel=e}function n(e){e._prev._next=e._next,e._next._prev=e._prev,delete e._next,delete e._prev}function r(e,t){if("_next"!==e&&"_prev"!==e)return t}e.exports=t,t.prototype.dequeue=function(){var e=this._sentinel,t=e._prev;if(t!==e)return n(t),t},t.prototype.enqueue=function(e){var t=this._sentinel;e._prev&&e._next&&n(e),e._next=t._next,t._next._prev=e,t._next=e,e._prev=t},t.prototype.toString=function(){for(var e=[],t=this._sentinel,n=t._prev;n!==t;)e.push(JSON.stringify(n,r)),n=n._prev;return"["+e.join(", ")+"]"}},63592:function(e,t,n){var r=n(78301),i=n(13298),o=n(84833).Graph;e.exports={debugOrdering:function(e){var t=i.buildLayerMatrix(e),n=new o({compound:!0,multigraph:!0}).setGraph({});return r.forEach(e.nodes(),function(t){n.setNode(t,{label:t}),n.setParent(t,"layer"+e.node(t).rank)}),r.forEach(e.edges(),function(e){n.setEdge(e.v,e.w,{},e.name)}),r.forEach(t,function(e,t){n.setNode("layer"+t,{rank:"same"}),r.reduce(e,function(e,t){return n.setEdge(e,t,{style:"invis"}),t})}),n}}},84833:function(e,t,n){var r;try{r=n(83895)}catch(e){}r||(r=window.graphlib),e.exports=r},18256:function(e,t,n){var r=n(78301),i=n(84833).Graph,o=n(40206);e.exports=function(e,t){if(1>=e.nodeCount())return[];var n,u,c,d,f,h,p=(n=t||a,u=new i,c=0,d=0,r.forEach(e.nodes(),function(e){u.setNode(e,{v:e,in:0,out:0})}),r.forEach(e.edges(),function(e){var t=u.edge(e.v,e.w)||0,r=n(e);u.setEdge(e.v,e.w,t+r),d=Math.max(d,u.node(e.v).out+=r),c=Math.max(c,u.node(e.w).in+=r)}),f=r.range(d+c+3).map(function(){return new o}),h=c+1,r.forEach(u.nodes(),function(e){l(f,h,u.node(e))}),{graph:u,buckets:f,zeroIdx:h}),g=function(e,t,n){for(var r,i=[],o=t[t.length-1],a=t[0];e.nodeCount();){for(;r=a.dequeue();)s(e,t,n,r);for(;r=o.dequeue();)s(e,t,n,r);if(e.nodeCount()){for(var l=t.length-2;l>0;--l)if(r=t[l].dequeue()){i=i.concat(s(e,t,n,r,!0));break}}}return i}(p.graph,p.buckets,p.zeroIdx);return r.flatten(r.map(g,function(t){return e.outEdges(t.v,t.w)}),!0)};var a=r.constant(1);function s(e,t,n,i,o){var a=o?[]:void 0;return r.forEach(e.inEdges(i.v),function(r){var i=e.edge(r),s=e.node(r.v);o&&a.push({v:r.v,w:r.w}),s.out-=i,l(t,n,s)}),r.forEach(e.outEdges(i.v),function(r){var i=e.edge(r),o=r.w,a=e.node(o);a.in-=i,l(t,n,a)}),e.removeNode(i.v),a}function l(e,t,n){n.out?n.in?e[n.out-n.in+t].enqueue(n):e[e.length-1].enqueue(n):e[0].enqueue(n)}},73556:function(e,t,n){"use strict";var r=n(78301),i=n(61644),o=n(52503),a=n(94192),s=n(13298).normalizeRanks,l=n(97616),u=n(13298).removeEmptyRanks,c=n(21060),d=n(1117),f=n(92460),h=n(30909),p=n(62212),g=n(13298),v=n(84833).Graph;e.exports=function(e,t){var n=t&&t.debugTiming?g.time:g.notime;n("layout",function(){var t=n(" buildLayoutGraph",function(){var t,n;return t=new v({multigraph:!0,compound:!0}),n=C(e.graph()),t.setGraph(r.merge({},b,O(n,m),r.pick(n,y))),r.forEach(e.nodes(),function(n){var i=C(e.node(n));t.setNode(n,r.defaults(O(i,x),w)),t.setParent(n,e.parent(n))}),r.forEach(e.edges(),function(n){var i=C(e.edge(n));t.setEdge(n,r.merge({},S,O(i,E),r.pick(i,k)))}),t});n(" runLayout",function(){n(" makeSpaceForEdgeLabels",function(){var e;e=t.graph(),e.ranksep/=2,r.forEach(t.edges(),function(n){var r=t.edge(n);r.minlen*=2,"c"!==r.labelpos.toLowerCase()&&("TB"===e.rankdir||"BT"===e.rankdir?r.width+=r.labeloffset:r.height+=r.labeloffset)})}),n(" removeSelfEdges",function(){r.forEach(t.edges(),function(e){if(e.v===e.w){var n=t.node(e.v);n.selfEdges||(n.selfEdges=[]),n.selfEdges.push({e:e,label:t.edge(e)}),t.removeEdge(e)}})}),n(" acyclic",function(){i.run(t)}),n(" nestingGraph.run",function(){c.run(t)}),n(" rank",function(){a(g.asNonCompoundGraph(t))}),n(" injectEdgeLabelProxies",function(){r.forEach(t.edges(),function(e){var n=t.edge(e);if(n.width&&n.height){var r=t.node(e.v),i={rank:(t.node(e.w).rank-r.rank)/2+r.rank,e:e};g.addDummyNode(t,"edge-proxy",i,"_ep")}})}),n(" removeEmptyRanks",function(){u(t)}),n(" nestingGraph.cleanup",function(){c.cleanup(t)}),n(" normalizeRanks",function(){s(t)}),n(" assignRankMinMax",function(){var e;e=0,r.forEach(t.nodes(),function(n){var i=t.node(n);i.borderTop&&(i.minRank=t.node(i.borderTop).rank,i.maxRank=t.node(i.borderBottom).rank,e=r.max(e,i.maxRank))}),t.graph().maxRank=e}),n(" removeEdgeLabelProxies",function(){r.forEach(t.nodes(),function(e){var n=t.node(e);"edge-proxy"===n.dummy&&(t.edge(n.e).labelRank=n.rank,t.removeNode(e))})}),n(" normalize.run",function(){o.run(t)}),n(" parentDummyChains",function(){l(t)}),n(" addBorderSegments",function(){d(t)}),n(" order",function(){h(t)}),n(" insertSelfEdges",function(){var e;e=g.buildLayerMatrix(t),r.forEach(e,function(e){var n=0;r.forEach(e,function(e,i){var o=t.node(e);o.order=i+n,r.forEach(o.selfEdges,function(e){g.addDummyNode(t,"selfedge",{width:e.label.width,height:e.label.height,rank:o.rank,order:i+ ++n,e:e.e,label:e.label},"_se")}),delete o.selfEdges})})}),n(" adjustCoordinateSystem",function(){f.adjust(t)}),n(" position",function(){p(t)}),n(" positionSelfEdges",function(){r.forEach(t.nodes(),function(e){var n=t.node(e);if("selfedge"===n.dummy){var r=t.node(n.e.v),i=r.x+r.width/2,o=r.y,a=n.x-i,s=r.height/2;t.setEdge(n.e,n.label),t.removeNode(e),n.label.points=[{x:i+2*a/3,y:o-s},{x:i+5*a/6,y:o-s},{x:i+a,y:o},{x:i+5*a/6,y:o+s},{x:i+2*a/3,y:o+s}],n.label.x=n.x,n.label.y=n.y}})}),n(" removeBorderNodes",function(){r.forEach(t.nodes(),function(e){if(t.children(e).length){var n=t.node(e),i=t.node(n.borderTop),o=t.node(n.borderBottom),a=t.node(r.last(n.borderLeft)),s=t.node(r.last(n.borderRight));n.width=Math.abs(s.x-a.x),n.height=Math.abs(o.y-i.y),n.x=a.x+n.width/2,n.y=i.y+n.height/2}}),r.forEach(t.nodes(),function(e){"border"===t.node(e).dummy&&t.removeNode(e)})}),n(" normalize.undo",function(){o.undo(t)}),n(" fixupEdgeLabelCoords",function(){r.forEach(t.edges(),function(e){var n=t.edge(e);if(r.has(n,"x"))switch(("l"===n.labelpos||"r"===n.labelpos)&&(n.width-=n.labeloffset),n.labelpos){case"l":n.x-=n.width/2+n.labeloffset;break;case"r":n.x+=n.width/2+n.labeloffset}})}),n(" undoCoordinateSystem",function(){f.undo(t)}),n(" translateGraph",function(){(function(e){var t=Number.POSITIVE_INFINITY,n=0,i=Number.POSITIVE_INFINITY,o=0,a=e.graph(),s=a.marginx||0,l=a.marginy||0;function u(e){var r=e.x,a=e.y,s=e.width,l=e.height;t=Math.min(t,r-s/2),n=Math.max(n,r+s/2),i=Math.min(i,a-l/2),o=Math.max(o,a+l/2)}r.forEach(e.nodes(),function(t){u(e.node(t))}),r.forEach(e.edges(),function(t){var n=e.edge(t);r.has(n,"x")&&u(n)}),t-=s,i-=l,r.forEach(e.nodes(),function(n){var r=e.node(n);r.x-=t,r.y-=i}),r.forEach(e.edges(),function(n){var o=e.edge(n);r.forEach(o.points,function(e){e.x-=t,e.y-=i}),r.has(o,"x")&&(o.x-=t),r.has(o,"y")&&(o.y-=i)}),a.width=n-t+s,a.height=o-i+l})(t)}),n(" assignNodeIntersects",function(){r.forEach(t.edges(),function(e){var n,r,i=t.edge(e),o=t.node(e.v),a=t.node(e.w);i.points?(n=i.points[0],r=i.points[i.points.length-1]):(i.points=[],n=a,r=o),i.points.unshift(g.intersectRect(o,n)),i.points.push(g.intersectRect(a,r))})}),n(" reversePoints",function(){r.forEach(t.edges(),function(e){var n=t.edge(e);n.reversed&&n.points.reverse()})}),n(" acyclic.undo",function(){i.undo(t)})}),n(" updateInputGraph",function(){r.forEach(e.nodes(),function(n){var r=e.node(n),i=t.node(n);r&&(r.x=i.x,r.y=i.y,t.children(n).length&&(r.width=i.width,r.height=i.height))}),r.forEach(e.edges(),function(n){var i=e.edge(n),o=t.edge(n);i.points=o.points,r.has(o,"x")&&(i.x=o.x,i.y=o.y)}),e.graph().width=t.graph().width,e.graph().height=t.graph().height})})};var m=["nodesep","edgesep","ranksep","marginx","marginy"],b={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},y=["acyclicer","ranker","rankdir","align"],x=["width","height"],w={width:0,height:0},E=["minlen","weight","width","height","labeloffset"],S={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},k=["labelpos"];function O(e,t){return r.mapValues(r.pick(e,t),Number)}function C(e){var t={};return r.forEach(e,function(e,n){t[n.toLowerCase()]=e}),t}},78301:function(e,t,n){var r;try{r={cloneDeep:n(94269),constant:n(48512),defaults:n(82276),each:n(89729),filter:n(75137),find:n(88440),flatten:n(19418),forEach:n(65024),forIn:n(83613),has:n(74981),isUndefined:n(4361),last:n(64149),map:n(17278),mapValues:n(86607),max:n(15492),merge:n(69825),min:n(76712),minBy:n(54419),now:n(91646),pick:n(41305),range:n(17313),reduce:n(96949),sortBy:n(74724),uniqueId:n(46812),values:n(33401),zipObject:n(144)}}catch(e){}r||(r=window._),e.exports=r},21060:function(e,t,n){var r=n(78301),i=n(13298);e.exports={run:function(e){var t,n=i.addDummyNode(e,"root",{},"_root"),o=(t={},r.forEach(e.children(),function(n){!function n(i,o){var a=e.children(i);a&&a.length&&r.forEach(a,function(e){n(e,o+1)}),t[i]=o}(n,1)}),t),a=r.max(r.values(o))-1,s=2*a+1;e.graph().nestingRoot=n,r.forEach(e.edges(),function(t){e.edge(t).minlen*=s});var l=r.reduce(e.edges(),function(t,n){return t+e.edge(n).weight},0)+1;r.forEach(e.children(),function(t){(function e(t,n,o,a,s,l,u){var c=t.children(u);if(!c.length){u!==n&&t.setEdge(n,u,{weight:0,minlen:o});return}var d=i.addBorderNode(t,"_bt"),f=i.addBorderNode(t,"_bb"),h=t.node(u);t.setParent(d,u),h.borderTop=d,t.setParent(f,u),h.borderBottom=f,r.forEach(c,function(r){e(t,n,o,a,s,l,r);var i=t.node(r),c=i.borderTop?i.borderTop:r,h=i.borderBottom?i.borderBottom:r,p=i.borderTop?a:2*a,g=c!==h?1:s-l[u]+1;t.setEdge(d,c,{weight:p,minlen:g,nestingEdge:!0}),t.setEdge(h,f,{weight:p,minlen:g,nestingEdge:!0})}),t.parent(u)||t.setEdge(n,d,{weight:0,minlen:s+l[u]})})(e,n,s,l,a,o,t)}),e.graph().nodeRankFactor=s},cleanup:function(e){var t=e.graph();e.removeNode(t.nestingRoot),delete t.nestingRoot,r.forEach(e.edges(),function(t){e.edge(t).nestingEdge&&e.removeEdge(t)})}}},52503:function(e,t,n){"use strict";var r=n(78301),i=n(13298);e.exports={run:function(e){e.graph().dummyChains=[],r.forEach(e.edges(),function(t){(function(e,t){var n,r,o,a=t.v,s=e.node(a).rank,l=t.w,u=e.node(l).rank,c=t.name,d=e.edge(t),f=d.labelRank;if(u!==s+1){for(e.removeEdge(t),o=0,++s;s<u;++o,++s)d.points=[],r={width:0,height:0,edgeLabel:d,edgeObj:t,rank:s},n=i.addDummyNode(e,"edge",r,"_d"),s===f&&(r.width=d.width,r.height=d.height,r.dummy="edge-label",r.labelpos=d.labelpos),e.setEdge(a,n,{weight:d.weight},c),0===o&&e.graph().dummyChains.push(n),a=n;e.setEdge(a,l,{weight:d.weight},c)}})(e,t)})},undo:function(e){r.forEach(e.graph().dummyChains,function(t){var n,r=e.node(t),i=r.edgeLabel;for(e.setEdge(r.edgeObj,i);r.dummy;)n=e.successors(t)[0],e.removeNode(t),i.points.push({x:r.x,y:r.y}),"edge-label"===r.dummy&&(i.x=r.x,i.y=r.y,i.width=r.width,i.height=r.height),t=n,r=e.node(t)})}}},9062:function(e,t,n){var r=n(78301);e.exports=function(e,t,n){var i,o={};r.forEach(n,function(n){for(var r,a,s=e.parent(n);s;){if((r=e.parent(s))?(a=o[r],o[r]=s):(a=i,i=s),a&&a!==s){t.setEdge(a,s);return}s=r}})}},23175:function(e,t,n){var r=n(78301);e.exports=function(e,t){return r.map(t,function(t){var n=e.inEdges(t);if(!n.length)return{v:t};var i=r.reduce(n,function(t,n){var r=e.edge(n),i=e.node(n.v);return{sum:t.sum+r.weight*i.order,weight:t.weight+r.weight}},{sum:0,weight:0});return{v:t,barycenter:i.sum/i.weight,weight:i.weight}})}},71556:function(e,t,n){var r=n(78301),i=n(84833).Graph;e.exports=function(e,t,n){var o=function(e){for(var t;e.hasNode(t=r.uniqueId("_root")););return t}(e),a=new i({compound:!0}).setGraph({root:o}).setDefaultNodeLabel(function(t){return e.node(t)});return r.forEach(e.nodes(),function(i){var s=e.node(i),l=e.parent(i);(s.rank===t||s.minRank<=t&&t<=s.maxRank)&&(a.setNode(i),a.setParent(i,l||o),r.forEach(e[n](i),function(t){var n=t.v===i?t.w:t.v,o=a.edge(n,i),s=r.isUndefined(o)?0:o.weight;a.setEdge(n,i,{weight:e.edge(t).weight+s})}),r.has(s,"minRank")&&a.setNode(i,{borderLeft:s.borderLeft[t],borderRight:s.borderRight[t]}))}),a}},4469:function(e,t,n){"use strict";var r=n(78301);e.exports=function(e,t){for(var n=0,i=1;i<t.length;++i)n+=function(e,t,n){for(var i=r.zipObject(n,r.map(n,function(e,t){return t})),o=r.flatten(r.map(t,function(t){return r.sortBy(r.map(e.outEdges(t),function(t){return{pos:i[t.w],weight:e.edge(t).weight}}),"pos")}),!0),a=1;a<n.length;)a<<=1;var s=2*a-1;a-=1;var l=r.map(Array(s),function(){return 0}),u=0;return r.forEach(o.forEach(function(e){var t=e.pos+a;l[t]+=e.weight;for(var n=0;t>0;)t%2&&(n+=l[t+1]),t=t-1>>1,l[t]+=e.weight;u+=e.weight*n})),u}(e,t[i-1],t[i]);return n}},30909:function(e,t,n){"use strict";var r=n(78301),i=n(99867),o=n(4469),a=n(65732),s=n(71556),l=n(9062),u=n(84833).Graph,c=n(13298);function d(e,t,n){return r.map(t,function(t){return s(e,t,n)})}function f(e,t){r.forEach(t,function(t){r.forEach(t,function(t,n){e.node(t).order=n})})}e.exports=function(e){var t=c.maxRank(e),n=d(e,r.range(1,t+1),"inEdges"),s=d(e,r.range(t-1,-1,-1),"outEdges"),h=i(e);f(e,h);for(var p,g=Number.POSITIVE_INFINITY,v=0,m=0;m<4;++v,++m){(function(e,t){var n=new u;r.forEach(e,function(e){var i=e.graph().root,o=a(e,i,n,t);r.forEach(o.vs,function(t,n){e.node(t).order=n}),l(e,n,o.vs)})})(v%2?n:s,v%4>=2),h=c.buildLayerMatrix(e);var b=o(e,h);b<g&&(m=0,p=r.cloneDeep(h),g=b)}f(e,p)}},99867:function(e,t,n){"use strict";var r=n(78301);e.exports=function(e){var t={},n=r.filter(e.nodes(),function(t){return!e.children(t).length}),i=r.max(r.map(n,function(t){return e.node(t).rank})),o=r.map(r.range(i+1),function(){return[]}),a=r.sortBy(n,function(t){return e.node(t).rank});return r.forEach(a,function n(i){r.has(t,i)||(t[i]=!0,o[e.node(i).rank].push(i),r.forEach(e.successors(i),n))}),o}},7314:function(e,t,n){"use strict";var r=n(78301);e.exports=function(e,t){var n={};return r.forEach(e,function(e,t){var i=n[e.v]={indegree:0,in:[],out:[],vs:[e.v],i:t};r.isUndefined(e.barycenter)||(i.barycenter=e.barycenter,i.weight=e.weight)}),r.forEach(t.edges(),function(e){var t=n[e.v],i=n[e.w];r.isUndefined(t)||r.isUndefined(i)||(i.indegree++,t.out.push(n[e.w]))}),function(e){for(var t=[];e.length;){var n=e.pop();t.push(n),r.forEach(n.in.reverse(),function(e){return function(t){!t.merged&&(r.isUndefined(t.barycenter)||r.isUndefined(e.barycenter)||t.barycenter>=e.barycenter)&&function(e,t){var n=0,r=0;e.weight&&(n+=e.barycenter*e.weight,r+=e.weight),t.weight&&(n+=t.barycenter*t.weight,r+=t.weight),e.vs=t.vs.concat(e.vs),e.barycenter=n/r,e.weight=r,e.i=Math.min(t.i,e.i),t.merged=!0}(e,t)}}(n)),r.forEach(n.out,function(t){return function(n){n.in.push(t),0==--n.indegree&&e.push(n)}}(n))}return r.map(r.filter(t,function(e){return!e.merged}),function(e){return r.pick(e,["vs","i","barycenter","weight"])})}(r.filter(n,function(e){return!e.indegree}))}},65732:function(e,t,n){var r=n(78301),i=n(23175),o=n(7314),a=n(34660);e.exports=function e(t,n,s,l){var u=t.children(n),c=t.node(n),d=c?c.borderLeft:void 0,f=c?c.borderRight:void 0,h={};d&&(u=r.filter(u,function(e){return e!==d&&e!==f}));var p=i(t,u);r.forEach(p,function(n){if(t.children(n.v).length){var i=e(t,n.v,s,l);h[n.v]=i,r.has(i,"barycenter")&&(r.isUndefined(n.barycenter)?(n.barycenter=i.barycenter,n.weight=i.weight):(n.barycenter=(n.barycenter*n.weight+i.barycenter*i.weight)/(n.weight+i.weight),n.weight+=i.weight))}});var g=o(p,s);r.forEach(g,function(e){e.vs=r.flatten(e.vs.map(function(e){return h[e]?h[e].vs:e}),!0)});var v=a(g,l);if(d&&(v.vs=r.flatten([d,v.vs,f],!0),t.predecessors(d).length)){var m=t.node(t.predecessors(d)[0]),b=t.node(t.predecessors(f)[0]);r.has(v,"barycenter")||(v.barycenter=0,v.weight=0),v.barycenter=(v.barycenter*v.weight+m.order+b.order)/(v.weight+2),v.weight+=2}return v}},34660:function(e,t,n){var r=n(78301),i=n(13298);function o(e,t,n){for(var i;t.length&&(i=r.last(t)).i<=n;)t.pop(),e.push(i.vs),n++;return n}e.exports=function(e,t){var n,a=i.partition(e,function(e){return r.has(e,"barycenter")}),s=a.lhs,l=r.sortBy(a.rhs,function(e){return-e.i}),u=[],c=0,d=0,f=0;s.sort((n=!!t,function(e,t){return e.barycenter<t.barycenter?-1:e.barycenter>t.barycenter?1:n?t.i-e.i:e.i-t.i})),f=o(u,l,f),r.forEach(s,function(e){f+=e.vs.length,u.push(e.vs),c+=e.barycenter*e.weight,d+=e.weight,f=o(u,l,f)});var h={vs:r.flatten(u,!0)};return d&&(h.barycenter=c/d,h.weight=d),h}},97616:function(e,t,n){var r=n(78301);e.exports=function(e){var t,n,i=(t={},n=0,r.forEach(e.children(),function i(o){var a=n;r.forEach(e.children(o),i),t[o]={low:a,lim:n++}}),t);r.forEach(e.graph().dummyChains,function(t){for(var n=e.node(t),r=n.edgeObj,o=function(e,t,n,r){var i,o,a=[],s=[],l=Math.min(t[n].low,t[r].low),u=Math.max(t[n].lim,t[r].lim);i=n;do a.push(i=e.parent(i));while(i&&(t[i].low>l||u>t[i].lim));for(o=i,i=r;(i=e.parent(i))!==o;)s.push(i);return{path:a.concat(s.reverse()),lca:o}}(e,i,r.v,r.w),a=o.path,s=o.lca,l=0,u=a[0],c=!0;t!==r.w;){if(n=e.node(t),c){for(;(u=a[l])!==s&&e.node(u).maxRank<n.rank;)l++;u===s&&(c=!1)}if(!c){for(;l<a.length-1&&e.node(u=a[l+1]).minRank<=n.rank;)l++;u=a[l]}e.setParent(t,u),t=e.successors(t)[0]}})}},89924:function(e,t,n){"use strict";var r=n(78301),i=n(84833).Graph,o=n(13298);function a(e,t){var n={};return r.reduce(t,function(t,i){var o=0,a=0,s=t.length,u=r.last(i);return r.forEach(i,function(t,c){var d=function(e,t){if(e.node(t).dummy)return r.find(e.predecessors(t),function(t){return e.node(t).dummy})}(e,t),f=d?e.node(d).order:s;(d||t===u)&&(r.forEach(i.slice(a,c+1),function(t){r.forEach(e.predecessors(t),function(r){var i=e.node(r),a=i.order;(a<o||f<a)&&!(i.dummy&&e.node(t).dummy)&&l(n,r,t)})}),a=c+1,o=f)}),i}),n}function s(e,t){var n={};function i(t,i,o,a,s){var u;r.forEach(r.range(i,o),function(i){u=t[i],e.node(u).dummy&&r.forEach(e.predecessors(u),function(t){var r=e.node(t);r.dummy&&(r.order<a||r.order>s)&&l(n,t,u)})})}return r.reduce(t,function(t,n){var o,a=-1,s=0;return r.forEach(n,function(r,l){if("border"===e.node(r).dummy){var u=e.predecessors(r);u.length&&(o=e.node(u[0]).order,i(n,s,l,a,o),s=l,a=o)}i(n,s,n.length,o,t.length)}),n}),n}function l(e,t,n){if(t>n){var r=t;t=n,n=r}var i=e[t];i||(e[t]=i={}),i[n]=!0}function u(e,t,n){if(t>n){var i=t;t=n,n=i}return r.has(e[t],n)}function c(e,t,n,i){var o={},a={},s={};return r.forEach(t,function(e){r.forEach(e,function(e,t){o[e]=e,a[e]=e,s[e]=t})}),r.forEach(t,function(e){var t=-1;r.forEach(e,function(e){var l=i(e);if(l.length)for(var c=((l=r.sortBy(l,function(e){return s[e]})).length-1)/2,d=Math.floor(c),f=Math.ceil(c);d<=f;++d){var h=l[d];a[e]===e&&t<s[h]&&!u(n,e,h)&&(a[h]=e,a[e]=o[e]=o[h],t=s[h])}})}),{root:o,align:a}}function d(e,t,n,o,a){var s,l,u,c,d,f={},h=(u=new i,s=(c=e.graph()).nodesep,l=c.edgesep,d=function(e,t,n){var i,o,u=e.node(t),c=e.node(n);if(i=0+u.width/2,r.has(u,"labelpos"))switch(u.labelpos.toLowerCase()){case"l":o=-u.width/2;break;case"r":o=u.width/2}if(o&&(i+=a?o:-o),o=0,i+=(u.dummy?l:s)/2+(c.dummy?l:s)/2+c.width/2,r.has(c,"labelpos"))switch(c.labelpos.toLowerCase()){case"l":o=c.width/2;break;case"r":o=-c.width/2}return o&&(i+=a?o:-o),o=0,i},r.forEach(t,function(t){var i;r.forEach(t,function(t){var r=n[t];if(u.setNode(r),i){var o=n[i],a=u.edge(o,r);u.setEdge(o,r,Math.max(d(e,t,i),a||0))}i=t})}),u),p=a?"borderLeft":"borderRight";function g(e,t){for(var n=h.nodes(),r=n.pop(),i={};r;)i[r]?e(r):(i[r]=!0,n.push(r),n=n.concat(t(r))),r=n.pop()}return g(function(e){f[e]=h.inEdges(e).reduce(function(e,t){return Math.max(e,f[t.v]+h.edge(t))},0)},h.predecessors.bind(h)),g(function(t){var n=h.outEdges(t).reduce(function(e,t){return Math.min(e,f[t.w]-h.edge(t))},Number.POSITIVE_INFINITY),r=e.node(t);n!==Number.POSITIVE_INFINITY&&r.borderType!==p&&(f[t]=Math.max(f[t],n))},h.successors.bind(h)),r.forEach(o,function(e){f[e]=f[n[e]]}),f}function f(e,t){return r.minBy(r.values(t),function(t){var n=Number.NEGATIVE_INFINITY,i=Number.POSITIVE_INFINITY;return r.forIn(t,function(t,r){var o=e.node(r).width/2;n=Math.max(t+o,n),i=Math.min(t-o,i)}),n-i})}function h(e,t){var n=r.values(t),i=r.min(n),o=r.max(n);r.forEach(["u","d"],function(n){r.forEach(["l","r"],function(a){var s,l=n+a,u=e[l];if(u!==t){var c=r.values(u);(s="l"===a?i-r.min(c):o-r.max(c))&&(e[l]=r.mapValues(u,function(e){return e+s}))}})})}function p(e,t){return r.mapValues(e.ul,function(n,i){if(t)return e[t.toLowerCase()][i];var o=r.sortBy(r.map(e,i));return(o[1]+o[2])/2})}e.exports={positionX:function(e){var t,n=o.buildLayerMatrix(e),i=r.merge(a(e,n),s(e,n)),l={};r.forEach(["u","d"],function(o){t="u"===o?n:r.values(n).reverse(),r.forEach(["l","r"],function(n){"r"===n&&(t=r.map(t,function(e){return r.values(e).reverse()}));var a=("u"===o?e.predecessors:e.successors).bind(e),s=c(e,t,i,a),u=d(e,t,s.root,s.align,"r"===n);"r"===n&&(u=r.mapValues(u,function(e){return-e})),l[o+n]=u})});var u=f(e,l);return h(l,u),p(l,e.graph().align)},findType1Conflicts:a,findType2Conflicts:s,addConflict:l,hasConflict:u,verticalAlignment:c,horizontalCompaction:d,alignCoordinates:h,findSmallestWidthAlignment:f,balance:p}},62212:function(e,t,n){"use strict";var r=n(78301),i=n(13298),o=n(89924).positionX;e.exports=function(e){var t,n,a,s;t=e=i.asNonCompoundGraph(e),n=i.buildLayerMatrix(t),a=t.graph().ranksep,s=0,r.forEach(n,function(e){var n=r.max(r.map(e,function(e){return t.node(e).height}));r.forEach(e,function(e){t.node(e).y=s+n/2}),s+=n+a}),r.forEach(o(e),function(t,n){e.node(n).x=t})}},4274:function(e,t,n){"use strict";var r=n(78301),i=n(84833).Graph,o=n(71481).slack;e.exports=function(e){var t,n,a=new i({directed:!1}),s=e.nodes()[0],l=e.nodeCount();for(a.setNode(s,{});r.forEach(a.nodes(),function t(n){r.forEach(e.nodeEdges(n),function(r){var i=r.v,s=n===i?r.w:i;a.hasNode(s)||o(e,r)||(a.setNode(s,{}),a.setEdge(n,s,{}),t(s))})}),a.nodeCount()<l;)t=function(e,t){return r.minBy(t.edges(),function(n){if(e.hasNode(n.v)!==e.hasNode(n.w))return o(t,n)})}(a,e),n=a.hasNode(t.v)?o(e,t):-o(e,t),function(e,t,n){r.forEach(e.nodes(),function(e){t.node(e).rank+=n})}(a,e,n);return a}},94192:function(e,t,n){"use strict";var r=n(71481).longestPath,i=n(4274),o=n(86245);e.exports=function(e){switch(e.graph().ranker){case"network-simplex":default:o(e);break;case"tight-tree":r(e),i(e);break;case"longest-path":a(e)}};var a=r},86245:function(e,t,n){"use strict";var r=n(78301),i=n(4274),o=n(71481).slack,a=n(71481).longestPath,s=n(84833).alg.preorder,l=n(84833).alg.postorder,u=n(13298).simplify;function c(e){a(e=u(e));var t,n,r=i(e);for(h(r),d(r,e);t=p(r);)n=g(r,e,t),v(r,e,t,n)}function d(e,t){var n=l(e,e.nodes());n=n.slice(0,n.length-1),r.forEach(n,function(n){var r;r=e.node(n).parent,e.edge(n,r).cutvalue=f(e,t,n)})}function f(e,t,n){var i=e.node(n).parent,o=!0,a=t.edge(n,i),s=0;return a||(o=!1,a=t.edge(i,n)),s=a.weight,r.forEach(t.nodeEdges(n),function(r){var a=r.v===n,l=a?r.w:r.v;if(l!==i){var u=a===o,c=t.edge(r).weight;if(s+=u?c:-c,e.hasEdge(n,l)){var d=e.edge(n,l).cutvalue;s+=u?-d:d}}}),s}function h(e,t){arguments.length<2&&(t=e.nodes()[0]),function e(t,n,i,o,a){var s=i,l=t.node(o);return n[o]=!0,r.forEach(t.neighbors(o),function(a){r.has(n,a)||(i=e(t,n,i,a,o))}),l.low=s,l.lim=i++,a?l.parent=a:delete l.parent,i}(e,{},1,t)}function p(e){return r.find(e.edges(),function(t){return e.edge(t).cutvalue<0})}function g(e,t,n){var i=n.v,a=n.w;t.hasEdge(i,a)||(i=n.w,a=n.v);var s=e.node(i),l=e.node(a),u=s,c=!1;s.lim>l.lim&&(u=l,c=!0);var d=r.filter(t.edges(),function(t){return c===m(e,e.node(t.v),u)&&c!==m(e,e.node(t.w),u)});return r.minBy(d,function(e){return o(t,e)})}function v(e,t,n,i){var o,a,l=n.v,u=n.w;e.removeEdge(l,u),e.setEdge(i.v,i.w,{}),h(e),d(e,t),o=r.find(e.nodes(),function(e){return!t.node(e).parent}),a=(a=s(e,o)).slice(1),r.forEach(a,function(n){var r=e.node(n).parent,i=t.edge(n,r),o=!1;i||(i=t.edge(r,n),o=!0),t.node(n).rank=t.node(r).rank+(o?i.minlen:-i.minlen)})}function m(e,t,n){return n.low<=t.lim&&t.lim<=n.lim}e.exports=c,c.initLowLimValues=h,c.initCutValues=d,c.calcCutValue=f,c.leaveEdge=p,c.enterEdge=g,c.exchangeEdges=v},71481:function(e,t,n){"use strict";var r=n(78301);e.exports={longestPath:function(e){var t={};r.forEach(e.sources(),function n(i){var o=e.node(i);if(r.has(t,i))return o.rank;t[i]=!0;var a=r.min(r.map(e.outEdges(i),function(t){return n(t.w)-e.edge(t).minlen}));return(a===Number.POSITIVE_INFINITY||null==a)&&(a=0),o.rank=a})},slack:function(e,t){return e.node(t.w).rank-e.node(t.v).rank-e.edge(t).minlen}}},13298:function(e,t,n){"use strict";var r=n(78301),i=n(84833).Graph;function o(e,t,n,i){var o;do o=r.uniqueId(i);while(e.hasNode(o));return n.dummy=t,e.setNode(o,n),o}function a(e){return r.max(r.map(e.nodes(),function(t){var n=e.node(t).rank;if(!r.isUndefined(n))return n}))}e.exports={addDummyNode:o,simplify:function(e){var t=new i().setGraph(e.graph());return r.forEach(e.nodes(),function(n){t.setNode(n,e.node(n))}),r.forEach(e.edges(),function(n){var r=t.edge(n.v,n.w)||{weight:0,minlen:1},i=e.edge(n);t.setEdge(n.v,n.w,{weight:r.weight+i.weight,minlen:Math.max(r.minlen,i.minlen)})}),t},asNonCompoundGraph:function(e){var t=new i({multigraph:e.isMultigraph()}).setGraph(e.graph());return r.forEach(e.nodes(),function(n){e.children(n).length||t.setNode(n,e.node(n))}),r.forEach(e.edges(),function(n){t.setEdge(n,e.edge(n))}),t},successorWeights:function(e){var t=r.map(e.nodes(),function(t){var n={};return r.forEach(e.outEdges(t),function(t){n[t.w]=(n[t.w]||0)+e.edge(t).weight}),n});return r.zipObject(e.nodes(),t)},predecessorWeights:function(e){var t=r.map(e.nodes(),function(t){var n={};return r.forEach(e.inEdges(t),function(t){n[t.v]=(n[t.v]||0)+e.edge(t).weight}),n});return r.zipObject(e.nodes(),t)},intersectRect:function(e,t){var n,r,i=e.x,o=e.y,a=t.x-i,s=t.y-o,l=e.width/2,u=e.height/2;if(!a&&!s)throw Error("Not possible to find intersection inside of the rectangle");return Math.abs(s)*l>Math.abs(a)*u?(s<0&&(u=-u),n=u*a/s,r=u):(a<0&&(l=-l),n=l,r=l*s/a),{x:i+n,y:o+r}},buildLayerMatrix:function(e){var t=r.map(r.range(a(e)+1),function(){return[]});return r.forEach(e.nodes(),function(n){var i=e.node(n),o=i.rank;r.isUndefined(o)||(t[o][i.order]=n)}),t},normalizeRanks:function(e){var t=r.min(r.map(e.nodes(),function(t){return e.node(t).rank}));r.forEach(e.nodes(),function(n){var i=e.node(n);r.has(i,"rank")&&(i.rank-=t)})},removeEmptyRanks:function(e){var t=r.min(r.map(e.nodes(),function(t){return e.node(t).rank})),n=[];r.forEach(e.nodes(),function(r){var i=e.node(r).rank-t;n[i]||(n[i]=[]),n[i].push(r)});var i=0,o=e.graph().nodeRankFactor;r.forEach(n,function(t,n){r.isUndefined(t)&&n%o!=0?--i:i&&r.forEach(t,function(t){e.node(t).rank+=i})})},addBorderNode:function(e,t,n,r){var i={width:0,height:0};return arguments.length>=4&&(i.rank=n,i.order=r),o(e,"border",i,t)},maxRank:a,partition:function(e,t){var n={lhs:[],rhs:[]};return r.forEach(e,function(e){t(e)?n.lhs.push(e):n.rhs.push(e)}),n},time:function(e,t){var n=r.now();try{return t()}finally{console.log(e+" time: "+(r.now()-n)+"ms")}},notime:function(e,t){return t()}}},51463:function(e){e.exports="0.8.5"},20909:function(e){e.exports=a,a.default=a,a.stable=u,a.stableStringify=u;var t="[...]",n="[Circular]",r=[],i=[];function o(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function a(e,a,l,u){void 0===u&&(u=o()),function e(r,i,o,a,l,u,c){if(u+=1,"object"==typeof r&&null!==r){for(d=0;d<a.length;d++)if(a[d]===r){s(n,r,i,l);return}if(void 0!==c.depthLimit&&u>c.depthLimit||void 0!==c.edgesLimit&&o+1>c.edgesLimit){s(t,r,i,l);return}if(a.push(r),Array.isArray(r))for(d=0;d<r.length;d++)e(r[d],d,d,a,r,u,c);else{var d,f=Object.keys(r);for(d=0;d<f.length;d++){var h=f[d];e(r[h],h,d,a,r,u,c)}}a.pop()}}(e,"",0,[],void 0,0,u);try{d=0===i.length?JSON.stringify(e,a,l):JSON.stringify(e,c(a),l)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==r.length;){var d,f=r.pop();4===f.length?Object.defineProperty(f[0],f[1],f[3]):f[0][f[1]]=f[2]}}return d}function s(e,t,n,o){var a=Object.getOwnPropertyDescriptor(o,n);void 0!==a.get?a.configurable?(Object.defineProperty(o,n,{value:e}),r.push([o,n,t,a])):i.push([t,n,e]):(o[n]=e,r.push([o,n,t]))}function l(e,t){return e<t?-1:e>t?1:0}function u(e,a,u,d){void 0===d&&(d=o());var f,h=function e(i,o,a,u,c,d,f){if(d+=1,"object"==typeof i&&null!==i){for(h=0;h<u.length;h++)if(u[h]===i){s(n,i,o,c);return}try{if("function"==typeof i.toJSON)return}catch(e){return}if(void 0!==f.depthLimit&&d>f.depthLimit||void 0!==f.edgesLimit&&a+1>f.edgesLimit){s(t,i,o,c);return}if(u.push(i),Array.isArray(i))for(h=0;h<i.length;h++)e(i[h],h,h,u,i,d,f);else{var h,p={},g=Object.keys(i).sort(l);for(h=0;h<g.length;h++){var v=g[h];e(i[v],v,h,u,i,d,f),p[v]=i[v]}if(void 0===c)return p;r.push([c,o,i]),c[o]=p}u.pop()}}(e,"",0,[],void 0,0,d)||e;try{f=0===i.length?JSON.stringify(h,a,u):JSON.stringify(h,c(a),u)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==r.length;){var p=r.pop();4===p.length?Object.defineProperty(p[0],p[1],p[3]):p[0][p[1]]=p[2]}}return f}function c(e){return e=void 0!==e?e:function(e,t){return t},function(t,n){if(i.length>0)for(var r=0;r<i.length;r++){var o=i[r];if(o[1]===t&&o[0]===n){n=o[2],i.splice(r,1);break}}return e.call(this,t,n)}}},83895:function(e,t,n){var r=n(12788);e.exports={Graph:r.Graph,json:n(79780),alg:n(48452),version:r.version}},33701:function(e,t,n){var r=n(51629);e.exports=function(e){var t,n={},i=[];return r.each(e.nodes(),function(o){t=[],function i(o){r.has(n,o)||(n[o]=!0,t.push(o),r.each(e.successors(o),i),r.each(e.predecessors(o),i))}(o),t.length&&i.push(t)}),i}},27792:function(e,t,n){var r=n(51629);e.exports=function(e,t,n){r.isArray(t)||(t=[t]);var i=(e.isDirected()?e.successors:e.neighbors).bind(e),o=[],a={};return r.each(t,function(t){if(!e.hasNode(t))throw Error("Graph does not have node: "+t);(function e(t,n,i,o,a,s){!r.has(o,n)&&(o[n]=!0,i||s.push(n),r.each(a(n),function(n){e(t,n,i,o,a,s)}),i&&s.push(n))})(e,t,"post"===n,a,i,o)}),o}},16495:function(e,t,n){var r=n(23600),i=n(51629);e.exports=function(e,t,n){return i.transform(e.nodes(),function(i,o){i[o]=r(e,o,t,n)},{})}},23600:function(e,t,n){var r=n(51629),i=n(34002);e.exports=function(e,t,n,r){return function(e,t,n,r){var o,a,s={},l=new i,u=function(e){var t=e.v!==o?e.v:e.w,r=s[t],i=n(e),u=a.distance+i;if(i<0)throw Error("dijkstra does not allow negative edge weights. Bad edge: "+e+" Weight: "+i);u<r.distance&&(r.distance=u,r.predecessor=o,l.decrease(t,u))};for(e.nodes().forEach(function(e){var n=e===t?0:Number.POSITIVE_INFINITY;s[e]={distance:n},l.add(e,n)});l.size()>0&&(a=s[o=l.removeMin()]).distance!==Number.POSITIVE_INFINITY;)r(o).forEach(u);return s}(e,String(t),n||o,r||function(t){return e.outEdges(t)})};var o=r.constant(1)},20942:function(e,t,n){var r=n(51629),i=n(43439);e.exports=function(e){return r.filter(i(e),function(t){return t.length>1||1===t.length&&e.hasEdge(t[0],t[0])})}},60108:function(e,t,n){var r=n(51629);e.exports=function(e,t,n){var r,o,a,s;return r=t||i,o=n||function(t){return e.outEdges(t)},a={},(s=e.nodes()).forEach(function(e){a[e]={},a[e][e]={distance:0},s.forEach(function(t){e!==t&&(a[e][t]={distance:Number.POSITIVE_INFINITY})}),o(e).forEach(function(t){var n=t.v===e?t.w:t.v,i=r(t);a[e][n]={distance:i,predecessor:e}})}),s.forEach(function(e){var t=a[e];s.forEach(function(n){var r=a[n];s.forEach(function(n){var i=r[e],o=t[n],a=r[n],s=i.distance+o.distance;s<a.distance&&(a.distance=s,a.predecessor=o.predecessor)})})}),a};var i=r.constant(1)},48452:function(e,t,n){e.exports={components:n(33701),dijkstra:n(23600),dijkstraAll:n(16495),findCycles:n(20942),floydWarshall:n(60108),isAcyclic:n(19932),postorder:n(30558),preorder:n(34478),prim:n(56312),tarjan:n(43439),topsort:n(54914)}},19932:function(e,t,n){var r=n(54914);e.exports=function(e){try{r(e)}catch(e){if(e instanceof r.CycleException)return!1;throw e}return!0}},30558:function(e,t,n){var r=n(27792);e.exports=function(e,t){return r(e,t,"post")}},34478:function(e,t,n){var r=n(27792);e.exports=function(e,t){return r(e,t,"pre")}},56312:function(e,t,n){var r=n(51629),i=n(72311),o=n(34002);e.exports=function(e,t){var n,a=new i,s={},l=new o;function u(e){var r=e.v===n?e.w:e.v,i=l.priority(r);if(void 0!==i){var o=t(e);o<i&&(s[r]=n,l.decrease(r,o))}}if(0===e.nodeCount())return a;r.each(e.nodes(),function(e){l.add(e,Number.POSITIVE_INFINITY),a.setNode(e)}),l.decrease(e.nodes()[0],0);for(var c=!1;l.size()>0;){if(n=l.removeMin(),r.has(s,n))a.setEdge(n,s[n]);else if(c)throw Error("Input graph is not connected: "+e);else c=!0;e.nodeEdges(n).forEach(u)}return a}},43439:function(e,t,n){var r=n(51629);e.exports=function(e){var t=0,n=[],i={},o=[];return e.nodes().forEach(function(a){r.has(i,a)||function a(s){var l=i[s]={onStack:!0,lowlink:t,index:t++};if(n.push(s),e.successors(s).forEach(function(e){r.has(i,e)?i[e].onStack&&(l.lowlink=Math.min(l.lowlink,i[e].index)):(a(e),l.lowlink=Math.min(l.lowlink,i[e].lowlink))}),l.lowlink===l.index){var u,c=[];do i[u=n.pop()].onStack=!1,c.push(u);while(s!==u);o.push(c)}}(a)}),o}},54914:function(e,t,n){var r=n(51629);function i(e){var t={},n={},i=[];if(r.each(e.sinks(),function a(s){if(r.has(n,s))throw new o;r.has(t,s)||(n[s]=!0,t[s]=!0,r.each(e.predecessors(s),a),delete n[s],i.push(s))}),r.size(t)!==e.nodeCount())throw new o;return i}function o(){}e.exports=i,i.CycleException=o,o.prototype=Error()},34002:function(e,t,n){var r=n(51629);function i(){this._arr=[],this._keyIndices={}}e.exports=i,i.prototype.size=function(){return this._arr.length},i.prototype.keys=function(){return this._arr.map(function(e){return e.key})},i.prototype.has=function(e){return r.has(this._keyIndices,e)},i.prototype.priority=function(e){var t=this._keyIndices[e];if(void 0!==t)return this._arr[t].priority},i.prototype.min=function(){if(0===this.size())throw Error("Queue underflow");return this._arr[0].key},i.prototype.add=function(e,t){var n=this._keyIndices;if(e=String(e),!r.has(n,e)){var i=this._arr,o=i.length;return n[e]=o,i.push({key:e,priority:t}),this._decrease(o),!0}return!1},i.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var e=this._arr.pop();return delete this._keyIndices[e.key],this._heapify(0),e.key},i.prototype.decrease=function(e,t){var n=this._keyIndices[e];if(t>this._arr[n].priority)throw Error("New priority is greater than current priority. Key: "+e+" Old: "+this._arr[n].priority+" New: "+t);this._arr[n].priority=t,this._decrease(n)},i.prototype._heapify=function(e){var t=this._arr,n=2*e,r=n+1,i=e;n<t.length&&(i=t[n].priority<t[i].priority?n:i,r<t.length&&(i=t[r].priority<t[i].priority?r:i),i!==e&&(this._swap(e,i),this._heapify(i)))},i.prototype._decrease=function(e){for(var t,n=this._arr,r=n[e].priority;0!==e&&!(n[t=e>>1].priority<r);)this._swap(e,t),e=t},i.prototype._swap=function(e,t){var n=this._arr,r=this._keyIndices,i=n[e],o=n[t];n[e]=o,n[t]=i,r[o.key]=e,r[i.key]=t}},72311:function(e,t,n){"use strict";var r=n(51629);function i(e){this._isDirected=!r.has(e,"directed")||e.directed,this._isMultigraph=!!r.has(e,"multigraph")&&e.multigraph,this._isCompound=!!r.has(e,"compound")&&e.compound,this._label=void 0,this._defaultNodeLabelFn=r.constant(void 0),this._defaultEdgeLabelFn=r.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children["\0"]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}function o(e,t){e[t]?e[t]++:e[t]=1}function a(e,t){--e[t]||delete e[t]}function s(e,t,n,i){var o=""+t,a=""+n;if(!e&&o>a){var s=o;o=a,a=s}return o+"\x01"+a+"\x01"+(r.isUndefined(i)?"\0":i)}function l(e,t){return s(e,t.v,t.w,t.name)}e.exports=i,i.prototype._nodeCount=0,i.prototype._edgeCount=0,i.prototype.isDirected=function(){return this._isDirected},i.prototype.isMultigraph=function(){return this._isMultigraph},i.prototype.isCompound=function(){return this._isCompound},i.prototype.setGraph=function(e){return this._label=e,this},i.prototype.graph=function(){return this._label},i.prototype.setDefaultNodeLabel=function(e){return r.isFunction(e)||(e=r.constant(e)),this._defaultNodeLabelFn=e,this},i.prototype.nodeCount=function(){return this._nodeCount},i.prototype.nodes=function(){return r.keys(this._nodes)},i.prototype.sources=function(){var e=this;return r.filter(this.nodes(),function(t){return r.isEmpty(e._in[t])})},i.prototype.sinks=function(){var e=this;return r.filter(this.nodes(),function(t){return r.isEmpty(e._out[t])})},i.prototype.setNodes=function(e,t){var n=arguments,i=this;return r.each(e,function(e){n.length>1?i.setNode(e,t):i.setNode(e)}),this},i.prototype.setNode=function(e,t){return r.has(this._nodes,e)?arguments.length>1&&(this._nodes[e]=t):(this._nodes[e]=arguments.length>1?t:this._defaultNodeLabelFn(e),this._isCompound&&(this._parent[e]="\0",this._children[e]={},this._children["\0"][e]=!0),this._in[e]={},this._preds[e]={},this._out[e]={},this._sucs[e]={},++this._nodeCount),this},i.prototype.node=function(e){return this._nodes[e]},i.prototype.hasNode=function(e){return r.has(this._nodes,e)},i.prototype.removeNode=function(e){var t=this;if(r.has(this._nodes,e)){var n=function(e){t.removeEdge(t._edgeObjs[e])};delete this._nodes[e],this._isCompound&&(this._removeFromParentsChildList(e),delete this._parent[e],r.each(this.children(e),function(e){t.setParent(e)}),delete this._children[e]),r.each(r.keys(this._in[e]),n),delete this._in[e],delete this._preds[e],r.each(r.keys(this._out[e]),n),delete this._out[e],delete this._sucs[e],--this._nodeCount}return this},i.prototype.setParent=function(e,t){if(!this._isCompound)throw Error("Cannot set parent in a non-compound graph");if(r.isUndefined(t))t="\0";else{t+="";for(var n=t;!r.isUndefined(n);n=this.parent(n))if(n===e)throw Error("Setting "+t+" as parent of "+e+" would create a cycle");this.setNode(t)}return this.setNode(e),this._removeFromParentsChildList(e),this._parent[e]=t,this._children[t][e]=!0,this},i.prototype._removeFromParentsChildList=function(e){delete this._children[this._parent[e]][e]},i.prototype.parent=function(e){if(this._isCompound){var t=this._parent[e];if("\0"!==t)return t}},i.prototype.children=function(e){if(r.isUndefined(e)&&(e="\0"),this._isCompound){var t=this._children[e];if(t)return r.keys(t)}else if("\0"===e)return this.nodes();else if(this.hasNode(e))return[]},i.prototype.predecessors=function(e){var t=this._preds[e];if(t)return r.keys(t)},i.prototype.successors=function(e){var t=this._sucs[e];if(t)return r.keys(t)},i.prototype.neighbors=function(e){var t=this.predecessors(e);if(t)return r.union(t,this.successors(e))},i.prototype.isLeaf=function(e){return 0===(this.isDirected()?this.successors(e):this.neighbors(e)).length},i.prototype.filterNodes=function(e){var t=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});t.setGraph(this.graph());var n=this;r.each(this._nodes,function(n,r){e(r)&&t.setNode(r,n)}),r.each(this._edgeObjs,function(e){t.hasNode(e.v)&&t.hasNode(e.w)&&t.setEdge(e,n.edge(e))});var i={};return this._isCompound&&r.each(t.nodes(),function(e){t.setParent(e,function e(r){var o=n.parent(r);return void 0===o||t.hasNode(o)?(i[r]=o,o):o in i?i[o]:e(o)}(e))}),t},i.prototype.setDefaultEdgeLabel=function(e){return r.isFunction(e)||(e=r.constant(e)),this._defaultEdgeLabelFn=e,this},i.prototype.edgeCount=function(){return this._edgeCount},i.prototype.edges=function(){return r.values(this._edgeObjs)},i.prototype.setPath=function(e,t){var n=this,i=arguments;return r.reduce(e,function(e,r){return i.length>1?n.setEdge(e,r,t):n.setEdge(e,r),r}),this},i.prototype.setEdge=function(){var e,t,n,i,a=!1,l=arguments[0];"object"==typeof l&&null!==l&&"v"in l?(e=l.v,t=l.w,n=l.name,2==arguments.length&&(i=arguments[1],a=!0)):(e=l,t=arguments[1],n=arguments[3],arguments.length>2&&(i=arguments[2],a=!0)),e=""+e,t=""+t,r.isUndefined(n)||(n=""+n);var u=s(this._isDirected,e,t,n);if(r.has(this._edgeLabels,u))return a&&(this._edgeLabels[u]=i),this;if(!r.isUndefined(n)&&!this._isMultigraph)throw Error("Cannot set a named edge when isMultigraph = false");this.setNode(e),this.setNode(t),this._edgeLabels[u]=a?i:this._defaultEdgeLabelFn(e,t,n);var c=function(e,t,n,r){var i=""+t,o=""+n;if(!e&&i>o){var a=i;i=o,o=a}var s={v:i,w:o};return r&&(s.name=r),s}(this._isDirected,e,t,n);return e=c.v,t=c.w,Object.freeze(c),this._edgeObjs[u]=c,o(this._preds[t],e),o(this._sucs[e],t),this._in[t][u]=c,this._out[e][u]=c,this._edgeCount++,this},i.prototype.edge=function(e,t,n){var r=1==arguments.length?l(this._isDirected,arguments[0]):s(this._isDirected,e,t,n);return this._edgeLabels[r]},i.prototype.hasEdge=function(e,t,n){var i=1==arguments.length?l(this._isDirected,arguments[0]):s(this._isDirected,e,t,n);return r.has(this._edgeLabels,i)},i.prototype.removeEdge=function(e,t,n){var r=1==arguments.length?l(this._isDirected,arguments[0]):s(this._isDirected,e,t,n),i=this._edgeObjs[r];return i&&(e=i.v,t=i.w,delete this._edgeLabels[r],delete this._edgeObjs[r],a(this._preds[t],e),a(this._sucs[e],t),delete this._in[t][r],delete this._out[e][r],this._edgeCount--),this},i.prototype.inEdges=function(e,t){var n=this._in[e];if(n){var i=r.values(n);return t?r.filter(i,function(e){return e.v===t}):i}},i.prototype.outEdges=function(e,t){var n=this._out[e];if(n){var i=r.values(n);return t?r.filter(i,function(e){return e.w===t}):i}},i.prototype.nodeEdges=function(e,t){var n=this.inEdges(e,t);if(n)return n.concat(this.outEdges(e,t))}},12788:function(e,t,n){e.exports={Graph:n(72311),version:n(39050)}},79780:function(e,t,n){var r=n(51629),i=n(72311);e.exports={write:function(e){var t={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:r.map(e.nodes(),function(t){var n=e.node(t),i=e.parent(t),o={v:t};return r.isUndefined(n)||(o.value=n),r.isUndefined(i)||(o.parent=i),o}),edges:r.map(e.edges(),function(t){var n=e.edge(t),i={v:t.v,w:t.w};return r.isUndefined(t.name)||(i.name=t.name),r.isUndefined(n)||(i.value=n),i})};return r.isUndefined(e.graph())||(t.value=r.clone(e.graph())),t},read:function(e){var t=new i(e.options).setGraph(e.value);return r.each(e.nodes,function(e){t.setNode(e.v,e.value),e.parent&&t.setParent(e.v,e.parent)}),r.each(e.edges,function(e){t.setEdge({v:e.v,w:e.w,name:e.name},e.value)}),t}}},51629:function(e,t,n){var r;try{r={clone:n(12023),constant:n(48512),each:n(89729),filter:n(75137),has:n(74981),isArray:n(51886),isEmpty:n(50577),isFunction:n(39886),isUndefined:n(4361),keys:n(18285),map:n(17278),reduce:n(96949),size:n(82487),transform:n(42708),union:n(31328),values:n(33401)}}catch(e){}r||(r=window._),e.exports=r},39050:function(e){e.exports="2.1.8"},6002:function(e,t,n){"use strict";var r=n(35236),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?a:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var u=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(p){var i=h(n);i&&i!==p&&e(t,i,r)}var a=c(n);d&&(a=a.concat(d(n)));for(var s=l(t),g=l(n),v=0;v<a.length;++v){var m=a[v];if(!o[m]&&!(r&&r[m])&&!(g&&g[m])&&!(s&&s[m])){var b=f(n,m);try{u(t,m,b)}catch(e){}}}}return t}},45636:function(e,t,n){var r=0/0,i=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,s=/^0o[0-7]+$/i,l=parseInt,u="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,c="object"==typeof self&&self&&self.Object===Object&&self,d=u||c||Function("return this")(),f=Object.prototype.toString,h=Math.max,p=Math.min,g=function(){return d.Date.now()};function v(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function m(e){if("number"==typeof e)return e;if("symbol"==typeof(t=e)||t&&"object"==typeof t&&"[object Symbol]"==f.call(t))return r;if(v(e)){var t,n="function"==typeof e.valueOf?e.valueOf():e;e=v(n)?n+"":n}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(i,"");var u=a.test(e);return u||s.test(e)?l(e.slice(2),u?2:8):o.test(e)?r:+e}e.exports=function(e,t,n){var r,i,o,a,s,l,u=0,c=!1,d=!1,f=!0;if("function"!=typeof e)throw TypeError("Expected a function");function b(t){var n=r,o=i;return r=i=void 0,u=t,a=e.apply(o,n)}function y(e){var n=e-l,r=e-u;return void 0===l||n>=t||n<0||d&&r>=o}function x(){var e,n,r,i=g();if(y(i))return w(i);s=setTimeout(x,(e=i-l,n=i-u,r=t-e,d?p(r,o-n):r))}function w(e){return(s=void 0,f&&r)?b(e):(r=i=void 0,a)}function E(){var e,n=g(),o=y(n);if(r=arguments,i=this,l=n,o){if(void 0===s)return u=e=l,s=setTimeout(x,t),c?b(e):a;if(d)return s=setTimeout(x,t),b(l)}return void 0===s&&(s=setTimeout(x,t)),a}return t=m(t)||0,v(n)&&(c=!!n.leading,o=(d="maxWait"in n)?h(m(n.maxWait)||0,t):o,f="trailing"in n?!!n.trailing:f),E.cancel=function(){void 0!==s&&clearTimeout(s),u=0,r=l=i=s=void 0},E.flush=function(){return void 0===s?a:w(g())},E}},64901:function(e,t,n){var r=n(68427)(n(94441),"DataView");e.exports=r},91694:function(e,t,n){var r=n(38903),i=n(98723),o=n(43504),a=n(65111),s=n(90182);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},37351:function(e,t,n){var r=n(35295),i=n(33779),o=n(24812),a=n(17066),s=n(5952);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},11397:function(e,t,n){var r=n(68427)(n(94441),"Map");e.exports=r},12253:function(e,t,n){var r=n(63697),i=n(39178),o=n(21918),a=n(9803),s=n(52713);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},88288:function(e,t,n){var r=n(68427)(n(94441),"Promise");e.exports=r},22581:function(e,t,n){var r=n(68427)(n(94441),"Set");e.exports=r},23322:function(e,t,n){var r=n(12253),i=n(49848),o=n(80205);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=i,a.prototype.has=o,e.exports=a},34966:function(e,t,n){var r=n(37351),i=n(38216),o=n(59073),a=n(61297),s=n(51075),l=n(19036);function u(e){var t=this.__data__=new r(e);this.size=t.size}u.prototype.clear=i,u.prototype.delete=o,u.prototype.get=a,u.prototype.has=s,u.prototype.set=l,e.exports=u},39313:function(e,t,n){var r=n(94441).Symbol;e.exports=r},65066:function(e,t,n){var r=n(94441).Uint8Array;e.exports=r},95783:function(e,t,n){var r=n(68427)(n(94441),"WeakMap");e.exports=r},70732:function(e){e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},53397:function(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}},5560:function(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}},34178:function(e,t,n){var r=n(85811);e.exports=function(e,t){return!!(null==e?0:e.length)&&r(e,t,0)>-1}},19597:function(e){e.exports=function(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}},53778:function(e,t,n){var r=n(37795),i=n(48156),o=n(51886),a=n(99410),s=n(28546),l=n(63470),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=o(e),c=!n&&i(e),d=!n&&!c&&a(e),f=!n&&!c&&!d&&l(e),h=n||c||d||f,p=h?r(e.length,String):[],g=p.length;for(var v in e)(t||u.call(e,v))&&!(h&&("length"==v||d&&("offset"==v||"parent"==v)||f&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||s(v,g)))&&p.push(v);return p}},93715:function(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}},56875:function(e){e.exports=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}},29219:function(e){e.exports=function(e,t,n,r){var i=-1,o=null==e?0:e.length;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}},14449:function(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},13096:function(e,t,n){var r=n(35788)("length");e.exports=r},95851:function(e,t,n){var r=n(11727),i=n(87624);e.exports=function(e,t,n){(void 0===n||i(e[t],n))&&(void 0!==n||t in e)||r(e,t,n)}},46814:function(e,t,n){var r=n(11727),i=n(87624),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var a=e[t];o.call(e,t)&&i(a,n)&&(void 0!==n||t in e)||r(e,t,n)}},94052:function(e,t,n){var r=n(87624);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return -1}},75683:function(e,t,n){var r=n(36149),i=n(18285);e.exports=function(e,t){return e&&r(t,i(t),e)}},12075:function(e,t,n){var r=n(36149),i=n(36530);e.exports=function(e,t){return e&&r(t,i(t),e)}},11727:function(e,t,n){var r=n(17701);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},4335:function(e,t,n){var r=n(34966),i=n(53397),o=n(46814),a=n(75683),s=n(12075),l=n(489),u=n(15279),c=n(47660),d=n(60403),f=n(60755),h=n(19302),p=n(93859),g=n(73219),v=n(20725),m=n(70432),b=n(51886),y=n(99410),x=n(12067),w=n(32096),E=n(65163),S=n(18285),k=n(36530),O="[object Arguments]",C="[object Function]",I="[object Object]",_={};_[O]=_["[object Array]"]=_["[object ArrayBuffer]"]=_["[object DataView]"]=_["[object Boolean]"]=_["[object Date]"]=_["[object Float32Array]"]=_["[object Float64Array]"]=_["[object Int8Array]"]=_["[object Int16Array]"]=_["[object Int32Array]"]=_["[object Map]"]=_["[object Number]"]=_[I]=_["[object RegExp]"]=_["[object Set]"]=_["[object String]"]=_["[object Symbol]"]=_["[object Uint8Array]"]=_["[object Uint8ClampedArray]"]=_["[object Uint16Array]"]=_["[object Uint32Array]"]=!0,_["[object Error]"]=_[C]=_["[object WeakMap]"]=!1,e.exports=function e(t,n,T,P,R,A){var N,M=1&n,L=2&n,D=4&n;if(T&&(N=R?T(t,P,R,A):T(t)),void 0!==N)return N;if(!w(t))return t;var F=b(t);if(F){if(N=g(t),!M)return u(t,N)}else{var V=p(t),j=V==C||"[object GeneratorFunction]"==V;if(y(t))return l(t,M);if(V==I||V==O||j&&!R){if(N=L||j?{}:m(t),!M)return L?d(t,s(N,t)):c(t,a(N,t))}else{if(!_[V])return R?t:{};N=v(t,V,M)}}A||(A=new r);var z=A.get(t);if(z)return z;A.set(t,N),E(t)?t.forEach(function(r){N.add(e(r,n,T,r,t,A))}):x(t)&&t.forEach(function(r,i){N.set(i,e(r,n,T,i,t,A))});var U=D?L?h:f:L?k:S,B=F?void 0:U(t);return i(B||t,function(r,i){B&&(r=t[i=r]),o(N,i,e(r,n,T,i,t,A))}),N}},76588:function(e,t,n){var r=n(32096),i=Object.create,o=function(){function e(){}return function(t){if(!r(t))return{};if(i)return i(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=o},67135:function(e,t,n){var r=n(12746),i=n(67019)(r);e.exports=i},46002:function(e,t,n){var r=n(24042);e.exports=function(e,t,n){for(var i=-1,o=e.length;++i<o;){var a=e[i],s=t(a);if(null!=s&&(void 0===l?s==s&&!r(s):n(s,l)))var l=s,u=a}return u}},51709:function(e,t,n){var r=n(67135);e.exports=function(e,t){var n=[];return r(e,function(e,r,i){t(e,r,i)&&n.push(e)}),n}},73888:function(e){e.exports=function(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return -1}},45429:function(e,t,n){var r=n(56875),i=n(50922);e.exports=function e(t,n,o,a,s){var l=-1,u=t.length;for(o||(o=i),s||(s=[]);++l<u;){var c=t[l];n>0&&o(c)?n>1?e(c,n-1,o,a,s):r(s,c):a||(s[s.length]=c)}return s}},27985:function(e,t,n){var r=n(10761)();e.exports=r},12746:function(e,t,n){var r=n(27985),i=n(18285);e.exports=function(e,t){return e&&r(e,t,i)}},80734:function(e,t,n){var r=n(642),i=n(23980);e.exports=function(e,t){t=r(t,e);for(var n=0,o=t.length;null!=e&&n<o;)e=e[i(t[n++])];return n&&n==o?e:void 0}},32867:function(e,t,n){var r=n(56875),i=n(51886);e.exports=function(e,t,n){var o=t(e);return i(e)?o:r(o,n(e))}},71711:function(e,t,n){var r=n(39313),i=n(12998),o=n(99430),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?i(e):o(e)}},50279:function(e){e.exports=function(e,t){return e>t}},25175:function(e){var t=Object.prototype.hasOwnProperty;e.exports=function(e,n){return null!=e&&t.call(e,n)}},69262:function(e){e.exports=function(e,t){return null!=e&&t in Object(e)}},85811:function(e,t,n){var r=n(73888),i=n(42410),o=n(79767);e.exports=function(e,t,n){return t==t?o(e,t,n):r(e,i,n)}},35060:function(e,t,n){var r=n(71711),i=n(72220);e.exports=function(e){return i(e)&&"[object Arguments]"==r(e)}},30572:function(e,t,n){var r=n(74054),i=n(72220);e.exports=function e(t,n,o,a,s){return t===n||(null!=t&&null!=n&&(i(t)||i(n))?r(t,n,o,a,e,s):t!=t&&n!=n)}},74054:function(e,t,n){var r=n(34966),i=n(12644),o=n(13100),a=n(74151),s=n(93859),l=n(51886),u=n(99410),c=n(63470),d="[object Arguments]",f="[object Array]",h="[object Object]",p=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,g,v,m){var b=l(e),y=l(t),x=b?f:s(e),w=y?f:s(t);x=x==d?h:x,w=w==d?h:w;var E=x==h,S=w==h,k=x==w;if(k&&u(e)){if(!u(t))return!1;b=!0,E=!1}if(k&&!E)return m||(m=new r),b||c(e)?i(e,t,n,g,v,m):o(e,t,x,n,g,v,m);if(!(1&n)){var O=E&&p.call(e,"__wrapped__"),C=S&&p.call(t,"__wrapped__");if(O||C){var I=O?e.value():e,_=C?t.value():t;return m||(m=new r),v(I,_,n,g,m)}}return!!k&&(m||(m=new r),a(e,t,n,g,v,m))}},11880:function(e,t,n){var r=n(93859),i=n(72220);e.exports=function(e){return i(e)&&"[object Map]"==r(e)}},44869:function(e,t,n){var r=n(34966),i=n(30572);e.exports=function(e,t,n,o){var a=n.length,s=a,l=!o;if(null==e)return!s;for(e=Object(e);a--;){var u=n[a];if(l&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++a<s;){var c=(u=n[a])[0],d=e[c],f=u[1];if(l&&u[2]){if(void 0===d&&!(c in e))return!1}else{var h=new r;if(o)var p=o(d,f,c,e,t,h);if(!(void 0===p?i(f,d,3,o,h):p))return!1}}return!0}},42410:function(e){e.exports=function(e){return e!=e}},20980:function(e,t,n){var r=n(39886),i=n(50444),o=n(32096),a=n(65084),s=/^\[object .+?Constructor\]$/,l=Object.prototype,u=Function.prototype.toString,c=l.hasOwnProperty,d=RegExp("^"+u.call(c).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||i(e))&&(r(e)?d:s).test(a(e))}},4253:function(e,t,n){var r=n(93859),i=n(72220);e.exports=function(e){return i(e)&&"[object Set]"==r(e)}},84661:function(e,t,n){var r=n(71711),i=n(2609),o=n(72220),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return o(e)&&i(e.length)&&!!a[r(e)]}},64971:function(e,t,n){var r=n(5129),i=n(79938),o=n(98477),a=n(51886),s=n(87054);e.exports=function(e){return"function"==typeof e?e:null==e?o:"object"==typeof e?a(e)?i(e[0],e[1]):r(e):s(e)}},73907:function(e,t,n){var r=n(8173),i=n(75454),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=[];for(var n in Object(e))o.call(e,n)&&"constructor"!=n&&t.push(n);return t}},77872:function(e,t,n){var r=n(32096),i=n(8173),o=n(30559),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=i(e),n=[];for(var s in e)"constructor"==s&&(t||!a.call(e,s))||n.push(s);return n}},23831:function(e){e.exports=function(e,t){return e<t}},79630:function(e,t,n){var r=n(67135),i=n(44867);e.exports=function(e,t){var n=-1,o=i(e)?Array(e.length):[];return r(e,function(e,r,i){o[++n]=t(e,r,i)}),o}},5129:function(e,t,n){var r=n(44869),i=n(34200),o=n(95064);e.exports=function(e){var t=i(e);return 1==t.length&&t[0][2]?o(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},79938:function(e,t,n){var r=n(30572),i=n(95327),o=n(89021),a=n(55261),s=n(30684),l=n(95064),u=n(23980);e.exports=function(e,t){return a(e)&&s(t)?l(u(e),t):function(n){var a=i(n,e);return void 0===a&&a===t?o(n,e):r(t,a,3)}}},99249:function(e,t,n){var r=n(34966),i=n(95851),o=n(27985),a=n(67587),s=n(32096),l=n(36530),u=n(82508);e.exports=function e(t,n,c,d,f){t!==n&&o(n,function(o,l){if(f||(f=new r),s(o))a(t,n,l,c,e,d,f);else{var h=d?d(u(t,l),o,l+"",t,n,f):void 0;void 0===h&&(h=o),i(t,l,h)}},l)}},67587:function(e,t,n){var r=n(95851),i=n(489),o=n(17466),a=n(15279),s=n(70432),l=n(48156),u=n(51886),c=n(74621),d=n(99410),f=n(39886),h=n(32096),p=n(19278),g=n(63470),v=n(82508),m=n(79137);e.exports=function(e,t,n,b,y,x,w){var E=v(e,n),S=v(t,n),k=w.get(S);if(k){r(e,n,k);return}var O=x?x(E,S,n+"",e,t,w):void 0,C=void 0===O;if(C){var I=u(S),_=!I&&d(S),T=!I&&!_&&g(S);O=S,I||_||T?u(E)?O=E:c(E)?O=a(E):_?(C=!1,O=i(S,!0)):T?(C=!1,O=o(S,!0)):O=[]:p(S)||l(S)?(O=E,l(E)?O=m(E):(!h(E)||f(E))&&(O=s(S))):C=!1}C&&(w.set(S,O),y(O,S,b,x,w),w.delete(S)),r(e,n,O)}},13189:function(e,t,n){var r=n(93715),i=n(80734),o=n(64971),a=n(79630),s=n(28987),l=n(62279),u=n(36535),c=n(98477),d=n(51886);e.exports=function(e,t,n){t=t.length?r(t,function(e){return d(e)?function(t){return i(t,1===e.length?e[0]:e)}:e}):[c];var f=-1;return t=r(t,l(o)),s(a(e,function(e,n,i){return{criteria:r(t,function(t){return t(e)}),index:++f,value:e}}),function(e,t){return u(e,t,n)})}},32722:function(e,t,n){var r=n(27892),i=n(89021);e.exports=function(e,t){return r(e,t,function(t,n){return i(e,n)})}},27892:function(e,t,n){var r=n(80734),i=n(87672),o=n(642);e.exports=function(e,t,n){for(var a=-1,s=t.length,l={};++a<s;){var u=t[a],c=r(e,u);n(c,u)&&i(l,o(u,e),c)}return l}},35788:function(e){e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},34447:function(e,t,n){var r=n(80734);e.exports=function(e){return function(t){return r(t,e)}}},88095:function(e){var t=Math.ceil,n=Math.max;e.exports=function(e,r,i,o){for(var a=-1,s=n(t((r-e)/(i||1)),0),l=Array(s);s--;)l[o?s:++a]=e,e+=i;return l}},13113:function(e){e.exports=function(e,t,n,r,i){return i(e,function(e,i,o){n=r?(r=!1,e):t(n,e,i,o)}),n}},82628:function(e,t,n){var r=n(98477),i=n(91544),o=n(59910);e.exports=function(e,t){return o(i(e,t,r),e+"")}},87672:function(e,t,n){var r=n(46814),i=n(642),o=n(28546),a=n(32096),s=n(23980);e.exports=function(e,t,n,l){if(!a(e))return e;t=i(t,e);for(var u=-1,c=t.length,d=c-1,f=e;null!=f&&++u<c;){var h=s(t[u]),p=n;if("__proto__"===h||"constructor"===h||"prototype"===h)break;if(u!=d){var g=f[h];void 0===(p=l?l(g,h,f):void 0)&&(p=a(g)?g:o(t[u+1])?[]:{})}r(f,h,p),f=f[h]}return e}},88223:function(e,t,n){var r=n(48512),i=n(17701),o=n(98477),a=i?function(e,t){return i(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:o;e.exports=a},28987:function(e){e.exports=function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}},37795:function(e){e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},37581:function(e,t,n){var r=n(39313),i=n(93715),o=n(51886),a=n(24042),s=1/0,l=r?r.prototype:void 0,u=l?l.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(o(t))return i(t,e)+"";if(a(t))return u?u.call(t):"";var n=t+"";return"0"==n&&1/t==-s?"-0":n}},8244:function(e,t,n){var r=n(30988),i=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(i,""):e}},62279:function(e){e.exports=function(e){return function(t){return e(t)}}},69898:function(e,t,n){var r=n(23322),i=n(34178),o=n(19597),a=n(5557),s=n(80405),l=n(81803);e.exports=function(e,t,n){var u=-1,c=i,d=e.length,f=!0,h=[],p=h;if(n)f=!1,c=o;else if(d>=200){var g=t?null:s(e);if(g)return l(g);f=!1,c=a,p=new r}else p=t?[]:h;e:for(;++u<d;){var v=e[u],m=t?t(v):v;if(v=n||0!==v?v:0,f&&m==m){for(var b=p.length;b--;)if(p[b]===m)continue e;t&&p.push(m),h.push(v)}else c(p,m,n)||(p!==h&&p.push(m),h.push(v))}return h}},26927:function(e,t,n){var r=n(93715);e.exports=function(e,t){return r(t,function(t){return e[t]})}},21382:function(e){e.exports=function(e,t,n){for(var r=-1,i=e.length,o=t.length,a={};++r<i;){var s=r<o?t[r]:void 0;n(a,e[r],s)}return a}},5557:function(e){e.exports=function(e,t){return e.has(t)}},93136:function(e,t,n){var r=n(98477);e.exports=function(e){return"function"==typeof e?e:r}},642:function(e,t,n){var r=n(51886),i=n(55261),o=n(41131),a=n(36871);e.exports=function(e,t){return r(e)?e:i(e,t)?[e]:o(a(e))}},51128:function(e,t,n){var r=n(65066);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},489:function(e,t,n){e=n.nmd(e);var r=n(94441),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i?r.Buffer:void 0,s=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}},21141:function(e,t,n){var r=n(51128);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},64153:function(e){var t=/\w*$/;e.exports=function(e){var n=new e.constructor(e.source,t.exec(e));return n.lastIndex=e.lastIndex,n}},8483:function(e,t,n){var r=n(39313),i=r?r.prototype:void 0,o=i?i.valueOf:void 0;e.exports=function(e){return o?Object(o.call(e)):{}}},17466:function(e,t,n){var r=n(51128);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},43921:function(e,t,n){var r=n(24042);e.exports=function(e,t){if(e!==t){var n=void 0!==e,i=null===e,o=e==e,a=r(e),s=void 0!==t,l=null===t,u=t==t,c=r(t);if(!l&&!c&&!a&&e>t||a&&s&&u&&!l&&!c||i&&s&&u||!n&&u||!o)return 1;if(!i&&!a&&!c&&e<t||c&&n&&o&&!i&&!a||l&&n&&o||!s&&o||!u)return -1}return 0}},36535:function(e,t,n){var r=n(43921);e.exports=function(e,t,n){for(var i=-1,o=e.criteria,a=t.criteria,s=o.length,l=n.length;++i<s;){var u=r(o[i],a[i]);if(u){if(i>=l)return u;return u*("desc"==n[i]?-1:1)}}return e.index-t.index}},15279:function(e){e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},36149:function(e,t,n){var r=n(46814),i=n(11727);e.exports=function(e,t,n,o){var a=!n;n||(n={});for(var s=-1,l=t.length;++s<l;){var u=t[s],c=o?o(n[u],e[u],u,n,e):void 0;void 0===c&&(c=e[u]),a?i(n,u,c):r(n,u,c)}return n}},47660:function(e,t,n){var r=n(36149),i=n(65014);e.exports=function(e,t){return r(e,i(e),t)}},60403:function(e,t,n){var r=n(36149),i=n(17286);e.exports=function(e,t){return r(e,i(e),t)}},73133:function(e,t,n){var r=n(94441)["__core-js_shared__"];e.exports=r},72968:function(e,t,n){var r=n(82628),i=n(51880);e.exports=function(e){return r(function(t,n){var r=-1,o=n.length,a=o>1?n[o-1]:void 0,s=o>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(o--,a):void 0,s&&i(n[0],n[1],s)&&(a=o<3?void 0:a,o=1),t=Object(t);++r<o;){var l=n[r];l&&e(t,l,r,a)}return t})}},67019:function(e,t,n){var r=n(44867);e.exports=function(e,t){return function(n,i){if(null==n)return n;if(!r(n))return e(n,i);for(var o=n.length,a=t?o:-1,s=Object(n);(t?a--:++a<o)&&!1!==i(s[a],a,s););return n}}},10761:function(e){e.exports=function(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),s=a.length;s--;){var l=a[e?s:++i];if(!1===n(o[l],l,o))break}return t}}},76987:function(e,t,n){var r=n(64971),i=n(44867),o=n(18285);e.exports=function(e){return function(t,n,a){var s=Object(t);if(!i(t)){var l=r(n,3);t=o(t),n=function(e){return l(s[e],e,s)}}var u=e(t,n,a);return u>-1?s[l?t[u]:u]:void 0}}},8911:function(e,t,n){var r=n(88095),i=n(51880),o=n(11040);e.exports=function(e){return function(t,n,a){return a&&"number"!=typeof a&&i(t,n,a)&&(n=a=void 0),t=o(t),void 0===n?(n=t,t=0):n=o(n),a=void 0===a?t<n?1:-1:o(a),r(t,n,a,e)}}},80405:function(e,t,n){var r=n(22581),i=n(96087),o=n(81803),a=r&&1/o(new r([,-0]))[1]==1/0?function(e){return new r(e)}:i;e.exports=a},17701:function(e,t,n){var r=n(68427),i=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=i},12644:function(e,t,n){var r=n(23322),i=n(14449),o=n(5557);e.exports=function(e,t,n,a,s,l){var u=1&n,c=e.length,d=t.length;if(c!=d&&!(u&&d>c))return!1;var f=l.get(e),h=l.get(t);if(f&&h)return f==t&&h==e;var p=-1,g=!0,v=2&n?new r:void 0;for(l.set(e,t),l.set(t,e);++p<c;){var m=e[p],b=t[p];if(a)var y=u?a(b,m,p,t,e,l):a(m,b,p,e,t,l);if(void 0!==y){if(y)continue;g=!1;break}if(v){if(!i(t,function(e,t){if(!o(v,t)&&(m===e||s(m,e,n,a,l)))return v.push(t)})){g=!1;break}}else if(!(m===b||s(m,b,n,a,l))){g=!1;break}}return l.delete(e),l.delete(t),g}},13100:function(e,t,n){var r=n(39313),i=n(65066),o=n(87624),a=n(12644),s=n(63257),l=n(81803),u=r?r.prototype:void 0,c=u?u.valueOf:void 0;e.exports=function(e,t,n,r,u,d,f){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":if(e.byteLength!=t.byteLength||!d(new i(e),new i(t)))break;return!0;case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var h=s;case"[object Set]":var p=1&r;if(h||(h=l),e.size!=t.size&&!p)break;var g=f.get(e);if(g)return g==t;r|=2,f.set(e,t);var v=a(h(e),h(t),r,u,d,f);return f.delete(e),v;case"[object Symbol]":if(c)return c.call(e)==c.call(t)}return!1}},74151:function(e,t,n){var r=n(60755),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,o,a,s){var l=1&n,u=r(e),c=u.length;if(c!=r(t).length&&!l)return!1;for(var d=c;d--;){var f=u[d];if(!(l?f in t:i.call(t,f)))return!1}var h=s.get(e),p=s.get(t);if(h&&p)return h==t&&p==e;var g=!0;s.set(e,t),s.set(t,e);for(var v=l;++d<c;){var m=e[f=u[d]],b=t[f];if(o)var y=l?o(b,m,f,t,e,s):o(m,b,f,e,t,s);if(!(void 0===y?m===b||a(m,b,n,o,s):y)){g=!1;break}v||(v="constructor"==f)}if(g&&!v){var x=e.constructor,w=t.constructor;x!=w&&"constructor"in e&&"constructor"in t&&!("function"==typeof x&&x instanceof x&&"function"==typeof w&&w instanceof w)&&(g=!1)}return s.delete(e),s.delete(t),g}},84848:function(e,t,n){var r=n(19418),i=n(91544),o=n(59910);e.exports=function(e){return o(i(e,void 0,r),e+"")}},35206:function(e,t,n){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},60755:function(e,t,n){var r=n(32867),i=n(65014),o=n(18285);e.exports=function(e){return r(e,o,i)}},19302:function(e,t,n){var r=n(32867),i=n(17286),o=n(36530);e.exports=function(e){return r(e,o,i)}},20511:function(e,t,n){var r=n(97074);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},34200:function(e,t,n){var r=n(30684),i=n(18285);e.exports=function(e){for(var t=i(e),n=t.length;n--;){var o=t[n],a=e[o];t[n]=[o,a,r(a)]}return t}},68427:function(e,t,n){var r=n(20980),i=n(63991);e.exports=function(e,t){var n=i(e,t);return r(n)?n:void 0}},52158:function(e,t,n){var r=n(18710)(Object.getPrototypeOf,Object);e.exports=r},12998:function(e,t,n){var r=n(39313),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=o.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var i=a.call(e);return r&&(t?e[s]=n:delete e[s]),i}},65014:function(e,t,n){var r=n(5560),i=n(72747),o=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:r(a(e=Object(e)),function(t){return o.call(e,t)})}:i;e.exports=s},17286:function(e,t,n){var r=n(56875),i=n(52158),o=n(65014),a=n(72747),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,o(e)),e=i(e);return t}:a;e.exports=s},93859:function(e,t,n){var r=n(64901),i=n(11397),o=n(88288),a=n(22581),s=n(95783),l=n(71711),u=n(65084),c="[object Map]",d="[object Promise]",f="[object Set]",h="[object WeakMap]",p="[object DataView]",g=u(r),v=u(i),m=u(o),b=u(a),y=u(s),x=l;(r&&x(new r(new ArrayBuffer(1)))!=p||i&&x(new i)!=c||o&&x(o.resolve())!=d||a&&x(new a)!=f||s&&x(new s)!=h)&&(x=function(e){var t=l(e),n="[object Object]"==t?e.constructor:void 0,r=n?u(n):"";if(r)switch(r){case g:return p;case v:return c;case m:return d;case b:return f;case y:return h}return t}),e.exports=x},63991:function(e){e.exports=function(e,t){return null==e?void 0:e[t]}},19736:function(e,t,n){var r=n(642),i=n(48156),o=n(51886),a=n(28546),s=n(2609),l=n(23980);e.exports=function(e,t,n){t=r(t,e);for(var u=-1,c=t.length,d=!1;++u<c;){var f=l(t[u]);if(!(d=null!=e&&n(e,f)))break;e=e[f]}return d||++u!=c?d:!!(c=null==e?0:e.length)&&s(c)&&a(f,c)&&(o(e)||i(e))}},81285:function(e){var t=RegExp("[\\u200d\ud800-\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return t.test(e)}},38903:function(e,t,n){var r=n(38285);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},98723:function(e){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},43504:function(e,t,n){var r=n(38285),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(t,e)?t[e]:void 0}},65111:function(e,t,n){var r=n(38285),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:i.call(t,e)}},90182:function(e,t,n){var r=n(38285);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},73219:function(e){var t=Object.prototype.hasOwnProperty;e.exports=function(e){var n=e.length,r=new e.constructor(n);return n&&"string"==typeof e[0]&&t.call(e,"index")&&(r.index=e.index,r.input=e.input),r}},20725:function(e,t,n){var r=n(51128),i=n(21141),o=n(64153),a=n(8483),s=n(17466);e.exports=function(e,t,n){var l=e.constructor;switch(t){case"[object ArrayBuffer]":return r(e);case"[object Boolean]":case"[object Date]":return new l(+e);case"[object DataView]":return i(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return s(e,n);case"[object Map]":case"[object Set]":return new l;case"[object Number]":case"[object String]":return new l(e);case"[object RegExp]":return o(e);case"[object Symbol]":return a(e)}}},70432:function(e,t,n){var r=n(76588),i=n(52158),o=n(8173);e.exports=function(e){return"function"!=typeof e.constructor||o(e)?{}:r(i(e))}},50922:function(e,t,n){var r=n(39313),i=n(48156),o=n(51886),a=r?r.isConcatSpreadable:void 0;e.exports=function(e){return o(e)||i(e)||!!(a&&e&&e[a])}},28546:function(e){var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<n}},51880:function(e,t,n){var r=n(87624),i=n(44867),o=n(28546),a=n(32096);e.exports=function(e,t,n){if(!a(n))return!1;var s=typeof t;return("number"==s?!!(i(n)&&o(t,n.length)):"string"==s&&t in n)&&r(n[t],e)}},55261:function(e,t,n){var r=n(51886),i=n(24042),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!!("number"==n||"symbol"==n||"boolean"==n||null==e||i(e))||a.test(e)||!o.test(e)||null!=t&&e in Object(t)}},97074:function(e){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},50444:function(e,t,n){var r,i=n(73133),o=(r=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!o&&o in e}},8173:function(e){var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},30684:function(e,t,n){var r=n(32096);e.exports=function(e){return e==e&&!r(e)}},35295:function(e){e.exports=function(){this.__data__=[],this.size=0}},33779:function(e,t,n){var r=n(94052),i=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():i.call(t,n,1),--this.size,!0)}},24812:function(e,t,n){var r=n(94052);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},17066:function(e,t,n){var r=n(94052);e.exports=function(e){return r(this.__data__,e)>-1}},5952:function(e,t,n){var r=n(94052);e.exports=function(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}},63697:function(e,t,n){var r=n(91694),i=n(37351),o=n(11397);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},39178:function(e,t,n){var r=n(20511);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},21918:function(e,t,n){var r=n(20511);e.exports=function(e){return r(this,e).get(e)}},9803:function(e,t,n){var r=n(20511);e.exports=function(e){return r(this,e).has(e)}},52713:function(e,t,n){var r=n(20511);e.exports=function(e,t){var n=r(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}},63257:function(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}},95064:function(e){e.exports=function(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}},97047:function(e,t,n){var r=n(45274);e.exports=function(e){var t=r(e,function(e){return 500===n.size&&n.clear(),e}),n=t.cache;return t}},38285:function(e,t,n){var r=n(68427)(Object,"create");e.exports=r},75454:function(e,t,n){var r=n(18710)(Object.keys,Object);e.exports=r},30559:function(e){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},97134:function(e,t,n){e=n.nmd(e);var r=n(35206),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i&&r.process,s=function(){try{var e=o&&o.require&&o.require("util").types;if(e)return e;return a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s},99430:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},18710:function(e){e.exports=function(e,t){return function(n){return e(t(n))}}},91544:function(e,t,n){var r=n(70732),i=Math.max;e.exports=function(e,t,n){return t=i(void 0===t?e.length-1:t,0),function(){for(var o=arguments,a=-1,s=i(o.length-t,0),l=Array(s);++a<s;)l[a]=o[t+a];a=-1;for(var u=Array(t+1);++a<t;)u[a]=o[a];return u[t]=n(l),r(e,this,u)}}},94441:function(e,t,n){var r=n(35206),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();e.exports=o},82508:function(e){e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},49848:function(e){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},80205:function(e){e.exports=function(e){return this.__data__.has(e)}},81803:function(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}},59910:function(e,t,n){var r=n(88223),i=n(17645)(r);e.exports=i},17645:function(e){var t=Date.now;e.exports=function(e){var n=0,r=0;return function(){var i=t(),o=16-(i-r);if(r=i,o>0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},38216:function(e,t,n){var r=n(37351);e.exports=function(){this.__data__=new r,this.size=0}},59073:function(e){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},61297:function(e){e.exports=function(e){return this.__data__.get(e)}},51075:function(e){e.exports=function(e){return this.__data__.has(e)}},19036:function(e,t,n){var r=n(37351),i=n(11397),o=n(12253);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!i||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new o(a)}return n.set(e,t),this.size=n.size,this}},79767:function(e){e.exports=function(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return -1}},11792:function(e,t,n){var r=n(13096),i=n(81285),o=n(24479);e.exports=function(e){return i(e)?o(e):r(e)}},41131:function(e,t,n){var r=n(97047),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,a=r(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(i,function(e,n,r,i){t.push(r?i.replace(o,"$1"):n||e)}),t});e.exports=a},23980:function(e,t,n){var r=n(24042),i=1/0;e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-i?"-0":t}},65084:function(e){var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},30988:function(e){var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},24479:function(e){var t="\ud800-\udfff",n="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",r="\ud83c[\udffb-\udfff]",i="[^"+t+"]",o="(?:\ud83c[\udde6-\uddff]){2}",a="[\ud800-\udbff][\udc00-\udfff]",s="(?:"+n+"|"+r+")?",l="[\\ufe0e\\ufe0f]?",u="(?:\\u200d(?:"+[i,o,a].join("|")+")"+l+s+")*",c=RegExp(r+"(?="+r+")|(?:"+[i+n+"?",n,o,a,"["+t+"]"].join("|")+")"+(l+s+u),"g");e.exports=function(e){for(var t=c.lastIndex=0;c.test(e);)++t;return t}},12023:function(e,t,n){var r=n(4335);e.exports=function(e){return r(e,4)}},94269:function(e,t,n){var r=n(4335);e.exports=function(e){return r(e,5)}},48512:function(e){e.exports=function(e){return function(){return e}}},82276:function(e,t,n){var r=n(82628),i=n(87624),o=n(51880),a=n(36530),s=Object.prototype,l=s.hasOwnProperty,u=r(function(e,t){e=Object(e);var n=-1,r=t.length,u=r>2?t[2]:void 0;for(u&&o(t[0],t[1],u)&&(r=1);++n<r;)for(var c=t[n],d=a(c),f=-1,h=d.length;++f<h;){var p=d[f],g=e[p];(void 0===g||i(g,s[p])&&!l.call(e,p))&&(e[p]=c[p])}return e});e.exports=u},89729:function(e,t,n){e.exports=n(65024)},87624:function(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},75137:function(e,t,n){var r=n(5560),i=n(51709),o=n(64971),a=n(51886);e.exports=function(e,t){return(a(e)?r:i)(e,o(t,3))}},88440:function(e,t,n){var r=n(76987)(n(26694));e.exports=r},26694:function(e,t,n){var r=n(73888),i=n(64971),o=n(99),a=Math.max;e.exports=function(e,t,n){var s=null==e?0:e.length;if(!s)return -1;var l=null==n?0:o(n);return l<0&&(l=a(s+l,0)),r(e,i(t,3),l)}},19418:function(e,t,n){var r=n(45429);e.exports=function(e){return(null==e?0:e.length)?r(e,1):[]}},65024:function(e,t,n){var r=n(53397),i=n(67135),o=n(93136),a=n(51886);e.exports=function(e,t){return(a(e)?r:i)(e,o(t))}},83613:function(e,t,n){var r=n(27985),i=n(93136),o=n(36530);e.exports=function(e,t){return null==e?e:r(e,i(t),o)}},95327:function(e,t,n){var r=n(80734);e.exports=function(e,t,n){var i=null==e?void 0:r(e,t);return void 0===i?n:i}},74981:function(e,t,n){var r=n(25175),i=n(19736);e.exports=function(e,t){return null!=e&&i(e,t,r)}},89021:function(e,t,n){var r=n(69262),i=n(19736);e.exports=function(e,t){return null!=e&&i(e,t,r)}},98477:function(e){e.exports=function(e){return e}},48156:function(e,t,n){var r=n(35060),i=n(72220),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(e){return i(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},51886:function(e){var t=Array.isArray;e.exports=t},44867:function(e,t,n){var r=n(39886),i=n(2609);e.exports=function(e){return null!=e&&i(e.length)&&!r(e)}},74621:function(e,t,n){var r=n(44867),i=n(72220);e.exports=function(e){return i(e)&&r(e)}},99410:function(e,t,n){e=n.nmd(e);var r=n(94441),i=n(66236),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,s=a&&a.exports===o?r.Buffer:void 0,l=s?s.isBuffer:void 0;e.exports=l||i},50577:function(e,t,n){var r=n(73907),i=n(93859),o=n(48156),a=n(51886),s=n(44867),l=n(99410),u=n(8173),c=n(63470),d=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(s(e)&&(a(e)||"string"==typeof e||"function"==typeof e.splice||l(e)||c(e)||o(e)))return!e.length;var t=i(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(u(e))return!r(e).length;for(var n in e)if(d.call(e,n))return!1;return!0}},39886:function(e,t,n){var r=n(71711),i=n(32096);e.exports=function(e){if(!i(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},2609:function(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},12067:function(e,t,n){var r=n(11880),i=n(62279),o=n(97134),a=o&&o.isMap,s=a?i(a):r;e.exports=s},52657:function(e,t,n){var r=n(71711),i=n(72220);e.exports=function(e){return"number"==typeof e||i(e)&&"[object Number]"==r(e)}},32096:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},72220:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},19278:function(e,t,n){var r=n(71711),i=n(52158),o=n(72220),a=Object.prototype,s=Function.prototype.toString,l=a.hasOwnProperty,u=s.call(Object);e.exports=function(e){if(!o(e)||"[object Object]"!=r(e))return!1;var t=i(e);if(null===t)return!0;var n=l.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&s.call(n)==u}},65163:function(e,t,n){var r=n(4253),i=n(62279),o=n(97134),a=o&&o.isSet,s=a?i(a):r;e.exports=s},56847:function(e,t,n){var r=n(71711),i=n(51886),o=n(72220);e.exports=function(e){return"string"==typeof e||!i(e)&&o(e)&&"[object String]"==r(e)}},24042:function(e,t,n){var r=n(71711),i=n(72220);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==r(e)}},63470:function(e,t,n){var r=n(84661),i=n(62279),o=n(97134),a=o&&o.isTypedArray,s=a?i(a):r;e.exports=s},4361:function(e){e.exports=function(e){return void 0===e}},18285:function(e,t,n){var r=n(53778),i=n(73907),o=n(44867);e.exports=function(e){return o(e)?r(e):i(e)}},36530:function(e,t,n){var r=n(53778),i=n(77872),o=n(44867);e.exports=function(e){return o(e)?r(e,!0):i(e)}},64149:function(e){e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},17278:function(e,t,n){var r=n(93715),i=n(64971),o=n(79630),a=n(51886);e.exports=function(e,t){return(a(e)?r:o)(e,i(t,3))}},86607:function(e,t,n){var r=n(11727),i=n(12746),o=n(64971);e.exports=function(e,t){var n={};return t=o(t,3),i(e,function(e,i,o){r(n,i,t(e,i,o))}),n}},15492:function(e,t,n){var r=n(46002),i=n(50279),o=n(98477);e.exports=function(e){return e&&e.length?r(e,o,i):void 0}},45274:function(e,t,n){var r=n(12253);function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(i.Cache||r),n}i.Cache=r,e.exports=i},69825:function(e,t,n){var r=n(99249),i=n(72968)(function(e,t,n){r(e,t,n)});e.exports=i},76712:function(e,t,n){var r=n(46002),i=n(23831),o=n(98477);e.exports=function(e){return e&&e.length?r(e,o,i):void 0}},54419:function(e,t,n){var r=n(46002),i=n(64971),o=n(23831);e.exports=function(e,t){return e&&e.length?r(e,i(t,2),o):void 0}},96087:function(e){e.exports=function(){}},91646:function(e,t,n){var r=n(94441);e.exports=function(){return r.Date.now()}},41305:function(e,t,n){var r=n(32722),i=n(84848)(function(e,t){return null==e?{}:r(e,t)});e.exports=i},87054:function(e,t,n){var r=n(35788),i=n(34447),o=n(55261),a=n(23980);e.exports=function(e){return o(e)?r(a(e)):i(e)}},17313:function(e,t,n){var r=n(8911)();e.exports=r},96949:function(e,t,n){var r=n(29219),i=n(67135),o=n(64971),a=n(13113),s=n(51886);e.exports=function(e,t,n){var l=s(e)?r:a,u=arguments.length<3;return l(e,o(t,4),n,u,i)}},82487:function(e,t,n){var r=n(73907),i=n(93859),o=n(44867),a=n(56847),s=n(11792);e.exports=function(e){if(null==e)return 0;if(o(e))return a(e)?s(e):e.length;var t=i(e);return"[object Map]"==t||"[object Set]"==t?e.size:r(e).length}},74724:function(e,t,n){var r=n(45429),i=n(13189),o=n(82628),a=n(51880),s=o(function(e,t){if(null==e)return[];var n=t.length;return n>1&&a(e,t[0],t[1])?t=[]:n>2&&a(t[0],t[1],t[2])&&(t=[t[0]]),i(e,r(t,1),[])});e.exports=s},72747:function(e){e.exports=function(){return[]}},66236:function(e){e.exports=function(){return!1}},11040:function(e,t,n){var r=n(23233),i=1/0;e.exports=function(e){return e?(e=r(e))===i||e===-i?(e<0?-1:1)*17976931348623157e292:e==e?e:0:0===e?e:0}},99:function(e,t,n){var r=n(11040);e.exports=function(e){var t=r(e),n=t%1;return t==t?n?t-n:t:0}},23233:function(e,t,n){var r=n(8244),i=n(32096),o=n(24042),a=0/0,s=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return a;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=l.test(e);return n||u.test(e)?c(e.slice(2),n?2:8):s.test(e)?a:+e}},79137:function(e,t,n){var r=n(36149),i=n(36530);e.exports=function(e){return r(e,i(e))}},36871:function(e,t,n){var r=n(37581);e.exports=function(e){return null==e?"":r(e)}},42708:function(e,t,n){var r=n(53397),i=n(76588),o=n(12746),a=n(64971),s=n(52158),l=n(51886),u=n(99410),c=n(39886),d=n(32096),f=n(63470);e.exports=function(e,t,n){var h=l(e),p=h||u(e)||f(e);if(t=a(t,4),null==n){var g=e&&e.constructor;n=p?h?new g:[]:d(e)&&c(g)?i(s(e)):{}}return(p?r:o)(e,function(e,r,i){return t(n,e,r,i)}),n}},31328:function(e,t,n){var r=n(45429),i=n(82628),o=n(69898),a=n(74621),s=i(function(e){return o(r(e,1,a,!0))});e.exports=s},46812:function(e,t,n){var r=n(36871),i=0;e.exports=function(e){var t=++i;return r(e)+t}},33401:function(e,t,n){var r=n(26927),i=n(18285);e.exports=function(e){return null==e?[]:r(e,i(e))}},144:function(e,t,n){var r=n(46814),i=n(21382);e.exports=function(e,t){return i(e||[],t||[],r)}},58687:function(e,t,n){"use strict";n.d(t,{default:function(){return i.a}});var r=n(19505),i=n.n(r)},85555:function(e,t,n){"use strict";var r,i;e.exports=(null==(r=n.g.process)?void 0:r.env)&&"object"==typeof(null==(i=n.g.process)?void 0:i.env)?n.g.process:n(50032)},80970:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return r}}),n(62225);let r=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8346:function(e,t,n){"use strict";function r(e,t,n,r){return!1}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return r}}),n(62225),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},19505:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return x}});let r=n(4591),i=n(26415),o=r._(n(97129)),a=n(15880),s=n(7509),l=n(23239),u=n(93518),c=n(80970),d=n(20897),f=n(98593),h=n(44761),p=n(8346),g=n(82906),v=n(18840),m=new Set;function b(e,t,n,r,i,o){if("undefined"!=typeof window&&(o||(0,s.isLocalURL)(t))){if(!r.bypassPrefetchedCheck){let i=t+"%"+n+"%"+(void 0!==r.locale?r.locale:"locale"in e?e.locale:void 0);if(m.has(i))return;m.add(i)}(async()=>o?e.prefetch(t,i):e.prefetch(t,n,r))().catch(e=>{})}}function y(e){return"string"==typeof e?e:(0,l.formatUrl)(e)}let x=o.default.forwardRef(function(e,t){let n,r;let{href:l,as:m,children:x,prefetch:w=null,passHref:E,replace:S,shallow:k,scroll:O,locale:C,onClick:I,onMouseEnter:_,onTouchStart:T,legacyBehavior:P=!1,...R}=e;n=x,P&&("string"==typeof n||"number"==typeof n)&&(n=(0,i.jsx)("a",{children:n}));let A=o.default.useContext(d.RouterContext),N=o.default.useContext(f.AppRouterContext),M=null!=A?A:N,L=!A,D=!1!==w,F=null===w?v.PrefetchKind.AUTO:v.PrefetchKind.FULL,{href:V,as:j}=o.default.useMemo(()=>{if(!A){let e=y(l);return{href:e,as:m?y(m):e}}let[e,t]=(0,a.resolveHref)(A,l,!0);return{href:e,as:m?(0,a.resolveHref)(A,m):t||e}},[A,l,m]),z=o.default.useRef(V),U=o.default.useRef(j);P&&(r=o.default.Children.only(n));let B=P?r&&"object"==typeof r&&r.ref:t,[W,H,$]=(0,h.useIntersection)({rootMargin:"200px"}),q=o.default.useCallback(e=>{(U.current!==j||z.current!==V)&&($(),U.current=j,z.current=V),W(e),B&&("function"==typeof B?B(e):"object"==typeof B&&(B.current=e))},[j,B,V,$,W]);o.default.useEffect(()=>{M&&H&&D&&b(M,V,j,{locale:C},{kind:F},L)},[j,V,H,C,D,null==A?void 0:A.locale,M,L,F]);let G={ref:q,onClick(e){P||"function"!=typeof I||I(e),P&&r.props&&"function"==typeof r.props.onClick&&r.props.onClick(e),M&&!e.defaultPrevented&&function(e,t,n,r,i,a,l,u,c){let{nodeName:d}=e.currentTarget;if("A"===d.toUpperCase()&&(function(e){let t=e.currentTarget.getAttribute("target");return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||!c&&!(0,s.isLocalURL)(n)))return;e.preventDefault();let f=()=>{let e=null==l||l;"beforePopState"in t?t[i?"replace":"push"](n,r,{shallow:a,locale:u,scroll:e}):t[i?"replace":"push"](r||n,{scroll:e})};c?o.default.startTransition(f):f()}(e,M,V,j,S,k,O,C,L)},onMouseEnter(e){P||"function"!=typeof _||_(e),P&&r.props&&"function"==typeof r.props.onMouseEnter&&r.props.onMouseEnter(e),M&&(D||!L)&&b(M,V,j,{locale:C,priority:!0,bypassPrefetchedCheck:!0},{kind:F},L)},onTouchStart:function(e){P||"function"!=typeof T||T(e),P&&r.props&&"function"==typeof r.props.onTouchStart&&r.props.onTouchStart(e),M&&(D||!L)&&b(M,V,j,{locale:C,priority:!0,bypassPrefetchedCheck:!0},{kind:F},L)}};if((0,u.isAbsoluteUrl)(j))G.href=j;else if(!P||E||"a"===r.type&&!("href"in r.props)){let e=void 0!==C?C:null==A?void 0:A.locale,t=(null==A?void 0:A.isLocaleDomain)&&(0,p.getDomainLocale)(j,e,null==A?void 0:A.locales,null==A?void 0:A.domainLocales);G.href=t||(0,g.addBasePath)((0,c.addLocale)(j,e,null==A?void 0:A.defaultLocale))}return P?o.default.cloneElement(r,G):(0,i.jsx)("a",{...R,...G,children:n})});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},39210:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{cancelIdleCallback:function(){return r},requestIdleCallback:function(){return n}});let n="undefined"!=typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},r="undefined"!=typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},15880:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resolveHref",{enumerable:!0,get:function(){return d}});let r=n(33184),i=n(23239),o=n(50089),a=n(93518),s=n(62225),l=n(7509),u=n(83764),c=n(6577);function d(e,t,n){let d;let f="string"==typeof t?t:(0,i.formatWithValidation)(t),h=f.match(/^[a-zA-Z]{1,}:\/\//),p=h?f.slice(h[0].length):f;if((p.split("?",1)[0]||"").match(/(\/\/|\\)/)){console.error("Invalid href '"+f+"' passed to next/router in page: '"+e.pathname+"'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");let t=(0,a.normalizeRepeatedSlashes)(p);f=(h?h[0]:"")+t}if(!(0,l.isLocalURL)(f))return n?[f]:f;try{d=new URL(f.startsWith("#")?e.asPath:e.pathname,"http://n")}catch(e){d=new URL("/","http://n")}try{let e=new URL(f,d);e.pathname=(0,s.normalizePathTrailingSlash)(e.pathname);let t="";if((0,u.isDynamicRoute)(e.pathname)&&e.searchParams&&n){let n=(0,r.searchParamsToUrlQuery)(e.searchParams),{result:a,params:s}=(0,c.interpolateAs)(e.pathname,e.pathname,n);a&&(t=(0,i.formatWithValidation)({pathname:a,hash:e.hash,query:(0,o.omit)(n,s)}))}let a=e.origin===d.origin?e.href.slice(e.origin.length):e.href;return n?[a,t||a]:a}catch(e){return n?[f]:f}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},44761:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return l}});let r=n(97129),i=n(39210),o="function"==typeof IntersectionObserver,a=new Map,s=[];function l(e){let{rootRef:t,rootMargin:n,disabled:l}=e,u=l||!o,[c,d]=(0,r.useState)(!1),f=(0,r.useRef)(null),h=(0,r.useCallback)(e=>{f.current=e},[]);return(0,r.useEffect)(()=>{if(o){if(u||c)return;let e=f.current;if(e&&e.tagName)return function(e,t,n){let{id:r,observer:i,elements:o}=function(e){let t;let n={root:e.root||null,margin:e.rootMargin||""},r=s.find(e=>e.root===n.root&&e.margin===n.margin);if(r&&(t=a.get(r)))return t;let i=new Map;return t={id:n,observer:new IntersectionObserver(e=>{e.forEach(e=>{let t=i.get(e.target),n=e.isIntersecting||e.intersectionRatio>0;t&&n&&t(n)})},e),elements:i},s.push(n),a.set(n,t),t}(n);return o.set(e,t),i.observe(e),function(){if(o.delete(e),i.unobserve(e),0===o.size){i.disconnect(),a.delete(r);let e=s.findIndex(e=>e.root===r.root&&e.margin===r.margin);e>-1&&s.splice(e,1)}}}(e,e=>e&&d(e),{root:null==t?void 0:t.current,rootMargin:n})}else if(!c){let e=(0,i.requestIdleCallback)(()=>d(!0));return()=>(0,i.cancelIdleCallback)(e)}},[u,n,t,c,f.current]),[h,c,(0,r.useCallback)(()=>{d(!1)},[])]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},12138:function(e){!function(){var t={675:function(e,t){"use strict";t.byteLength=function(e){var t=l(e),n=t[0],r=t[1];return(n+r)*3/4-r},t.toByteArray=function(e){var t,n,o=l(e),a=o[0],s=o[1],u=new i((a+s)*3/4-s),c=0,d=s>0?a-4:a;for(n=0;n<d;n+=4)t=r[e.charCodeAt(n)]<<18|r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],u[c++]=t>>16&255,u[c++]=t>>8&255,u[c++]=255&t;return 2===s&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,u[c++]=255&t),1===s&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,u[c++]=t>>8&255,u[c++]=255&t),u},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,o=[],a=0,s=r-i;a<s;a+=16383)o.push(function(e,t,r){for(var i,o=[],a=t;a<r;a+=3)o.push(n[(i=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]))>>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return o.join("")}(e,a,a+16383>s?s:a+16383));return 1===i?o.push(n[(t=e[r-1])>>2]+n[t<<4&63]+"=="):2===i&&o.push(n[(t=(e[r-2]<<8)+e[r-1])>>10]+n[t>>4&63]+n[t<<2&63]+"="),o.join("")};for(var n=[],r=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=o.length;a<s;++a)n[a]=o[a],r[o.charCodeAt(a)]=a;function l(e){var t=e.length;if(t%4>0)throw Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");-1===n&&(n=t);var r=n===t?0:4-n%4;return[n,r]}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},72:function(e,t,n){"use strict";var r=n(675),i=n(783),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function a(e){if(e>2147483647)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,n){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return c(e)}return l(e,t,n)}function l(e,t,n){if("string"==typeof e)return function(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!s.isEncoding(t))throw TypeError("Unknown encoding: "+t);var n=0|h(e,t),r=a(n),i=r.write(e,t);return i!==n&&(r=r.slice(0,i)),r}(e,t);if(ArrayBuffer.isView(e))return d(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(T(e,ArrayBuffer)||e&&T(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(T(e,SharedArrayBuffer)||e&&T(e.buffer,SharedArrayBuffer)))return function(e,t,n){var r;if(t<0||e.byteLength<t)throw RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(r=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n),s.prototype),r}(e,t,n);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');var r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return s.from(r,t,n);var i=function(e){if(s.isBuffer(e)){var t,n=0|f(e.length),r=a(n);return 0===r.length||e.copy(r,0,0,n),r}return void 0!==e.length?"number"!=typeof e.length||(t=e.length)!=t?a(0):d(e):"Buffer"===e.type&&Array.isArray(e.data)?d(e.data):void 0}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return s.from(e[Symbol.toPrimitive]("string"),t,n);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function c(e){return u(e),a(e<0?0:0|f(e))}function d(e){for(var t=e.length<0?0:0|f(e.length),n=a(t),r=0;r<t;r+=1)n[r]=255&e[r];return n}function f(e){if(e>=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function h(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||T(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return O(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return I(e).length;default:if(i)return r?-1:O(e).length;t=(""+t).toLowerCase(),i=!0}}function p(e,t,n){var i,o,a=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===n||n>this.length)&&(n=this.length),n<=0||(n>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=t;o<n;++o)i+=P[e[o]];return i}(this,t,n);case"utf8":case"utf-8":return b(this,t,n);case"ascii":return function(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}(this,t,n);case"latin1":case"binary":return function(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}(this,t,n);case"base64":return i=t,o=n,0===i&&o===this.length?r.fromByteArray(this):r.fromByteArray(this.slice(i,o));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(e,t,n){for(var r=e.slice(t,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}(this,t,n);default:if(a)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),a=!0}}function g(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function v(e,t,n,r,i){var o;if(0===e.length)return -1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),(o=n=+n)!=o&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return -1;n=e.length-1}else if(n<0){if(!i)return -1;n=0}if("string"==typeof t&&(t=s.from(t,r)),s.isBuffer(t))return 0===t.length?-1:m(e,t,n,r,i);if("number"==typeof t)return(t&=255,"function"==typeof Uint8Array.prototype.indexOf)?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):m(e,[t],n,r,i);throw TypeError("val must be string, number or Buffer")}function m(e,t,n,r,i){var o,a=1,s=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return -1;a=2,s/=2,l/=2,n/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var c=-1;for(o=n;o<s;o++)if(u(e,o)===u(t,-1===c?0:o-c)){if(-1===c&&(c=o),o-c+1===l)return c*a}else -1!==c&&(o-=o-c),c=-1}else for(n+l>s&&(n=s-l),o=n;o>=0;o--){for(var d=!0,f=0;f<l;f++)if(u(e,o+f)!==u(t,f)){d=!1;break}if(d)return o}return -1}function b(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var o,a,s,l,u=e[i],c=null,d=u>239?4:u>223?3:u>191?2:1;if(i+d<=n)switch(d){case 1:u<128&&(c=u);break;case 2:(192&(o=e[i+1]))==128&&(l=(31&u)<<6|63&o)>127&&(c=l);break;case 3:o=e[i+1],a=e[i+2],(192&o)==128&&(192&a)==128&&(l=(15&u)<<12|(63&o)<<6|63&a)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],(192&o)==128&&(192&a)==128&&(192&s)==128&&(l=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(c=l)}null===c?(c=65533,d=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=d}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var n="",r=0;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=4096));return n}(r)}function y(e,t,n){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+t>n)throw RangeError("Trying to access beyond buffer length")}function x(e,t,n,r,i,o){if(!s.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw RangeError('"value" argument is out of bounds');if(n+r>e.length)throw RangeError("Index out of range")}function w(e,t,n,r,i,o){if(n+r>e.length||n<0)throw RangeError("Index out of range")}function E(e,t,n,r,o){return t=+t,n>>>=0,o||w(e,t,n,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,n,r,23,4),n+4}function S(e,t,n,r,o){return t=+t,n>>>=0,o||w(e,t,n,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,n,r,52,8),n+8}t.Buffer=s,t.SlowBuffer=function(e){return+e!=e&&(e=0),s.alloc(+e)},t.INSPECT_MAX_BYTES=50,t.kMaxLength=2147483647,s.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),s.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),s.poolSize=8192,s.from=function(e,t,n){return l(e,t,n)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(e,t,n){return(u(e),e<=0)?a(e):void 0!==t?"string"==typeof n?a(e).fill(t,n):a(e).fill(t):a(e)},s.allocUnsafe=function(e){return c(e)},s.allocUnsafeSlow=function(e){return c(e)},s.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==s.prototype},s.compare=function(e,t){if(T(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),T(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},s.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(e,t){if(!Array.isArray(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return s.alloc(0);if(void 0===t)for(n=0,t=0;n<e.length;++n)t+=e[n].length;var n,r=s.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var o=e[n];if(T(o,Uint8Array)&&(o=s.from(o)),!s.isBuffer(o))throw TypeError('"list" argument must be an Array of Buffers');o.copy(r,i),i+=o.length}return r},s.byteLength=h,s.prototype._isBuffer=!0,s.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)g(this,t,t+1);return this},s.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)g(this,t,t+3),g(this,t+1,t+2);return this},s.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)g(this,t,t+7),g(this,t+1,t+6),g(this,t+2,t+5),g(this,t+3,t+4);return this},s.prototype.toString=function(){var e=this.length;return 0===e?"":0==arguments.length?b(this,0,e):p.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(e){if(!s.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===s.compare(this,e)},s.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(e+=" ... "),"<Buffer "+e+">"},o&&(s.prototype[o]=s.prototype.inspect),s.prototype.compare=function(e,t,n,r,i){if(T(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return -1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;for(var o=i-r,a=n-t,l=Math.min(o,a),u=this.slice(r,i),c=e.slice(t,n),d=0;d<l;++d)if(u[d]!==c[d]){o=u[d],a=c[d];break}return o<a?-1:a<o?1:0},s.prototype.includes=function(e,t,n){return -1!==this.indexOf(e,t,n)},s.prototype.indexOf=function(e,t,n){return v(this,e,t,n,!0)},s.prototype.lastIndexOf=function(e,t,n){return v(this,e,t,n,!1)},s.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i,o,a,s,l,u,c,d,f,h,p,g,v=this.length-t;if((void 0===n||n>v)&&(n=v),e.length>0&&(n<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var m=!1;;)switch(r){case"hex":return function(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=t.length;r>o/2&&(r=o/2);for(var a=0;a<r;++a){var s=parseInt(t.substr(2*a,2),16);if(s!=s)break;e[n+a]=s}return a}(this,e,t,n);case"utf8":case"utf-8":return l=t,u=n,_(O(e,this.length-l),this,l,u);case"ascii":return c=t,d=n,_(C(e),this,c,d);case"latin1":case"binary":return i=this,o=e,a=t,s=n,_(C(o),i,a,s);case"base64":return f=t,h=n,_(I(e),this,f,h);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return p=t,g=n,_(function(e,t){for(var n,r,i=[],o=0;o<e.length&&!((t-=2)<0);++o)r=(n=e.charCodeAt(o))>>8,i.push(n%256),i.push(r);return i}(e,this.length-p),this,p,g);default:if(m)throw TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),m=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},s.prototype.slice=function(e,t){var n=this.length;e=~~e,t=void 0===t?n:~~t,e<0?(e+=n)<0&&(e=0):e>n&&(e=n),t<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);var r=this.subarray(e,t);return Object.setPrototypeOf(r,s.prototype),r},s.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||y(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r},s.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||y(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},s.prototype.readUInt8=function(e,t){return e>>>=0,t||y(e,1,this.length),this[e]},s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||y(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||y(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||y(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||y(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||y(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},s.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||y(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},s.prototype.readInt8=function(e,t){return(e>>>=0,t||y(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||y(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt16BE=function(e,t){e>>>=0,t||y(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||y(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||y(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readFloatLE=function(e,t){return e>>>=0,t||y(e,4,this.length),i.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||y(e,4,this.length),i.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||y(e,8,this.length),i.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||y(e,8,this.length),i.read(this,e,!1,52,8)},s.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){var i=Math.pow(2,8*n)-1;x(this,e,t,n,i,0)}var o=1,a=0;for(this[t]=255&e;++a<n&&(o*=256);)this[t+a]=e/o&255;return t+n},s.prototype.writeUIntBE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){var i=Math.pow(2,8*n)-1;x(this,e,t,n,i,0)}var o=n-1,a=1;for(this[t+o]=255&e;--o>=0&&(a*=256);)this[t+o]=e/a&255;return t+n},s.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||x(this,e,t,1,255,0),this[t]=255&e,t+1},s.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||x(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||x(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||x(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},s.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||x(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);x(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o<n&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},s.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);x(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},s.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||x(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||x(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||x(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||x(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||x(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeFloatLE=function(e,t,n){return E(this,e,t,!0,n)},s.prototype.writeFloatBE=function(e,t,n){return E(this,e,t,!1,n)},s.prototype.writeDoubleLE=function(e,t,n){return S(this,e,t,!0,n)},s.prototype.writeDoubleBE=function(e,t,n){return S(this,e,t,!1,n)},s.prototype.copy=function(e,t,n,r){if(!s.isBuffer(e))throw TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n||0===e.length||0===this.length)return 0;if(t<0)throw RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw RangeError("Index out of range");if(r<0)throw RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i=r-n;if(this===e&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,n,r);else if(this===e&&n<t&&t<r)for(var o=i-1;o>=0;--o)e[o+t]=this[o+n];else Uint8Array.prototype.set.call(e,this.subarray(n,r),t);return i},s.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw TypeError("encoding must be a string");if("string"==typeof r&&!s.isEncoding(r))throw TypeError("Unknown encoding: "+r);if(1===e.length){var i,o=e.charCodeAt(0);("utf8"===r&&o<128||"latin1"===r)&&(e=o)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw RangeError("Out of range index");if(n<=t)return this;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{var a=s.isBuffer(e)?e:s.from(e,r),l=a.length;if(0===l)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<n-t;++i)this[i+t]=a[i%l]}return this};var k=/[^+/0-9A-Za-z-_]/g;function O(e,t){t=t||1/0;for(var n,r=e.length,i=null,o=[],a=0;a<r;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!i){if(n>56319||a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=(i-55296<<10|n-56320)+65536}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else if(n<1114112){if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}else throw Error("Invalid code point")}return o}function C(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}function I(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(k,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function _(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length)&&!(i>=e.length);++i)t[i+n]=e[i];return i}function T(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var P=function(){for(var e="0123456789abcdef",t=Array(256),n=0;n<16;++n)for(var r=16*n,i=0;i<16;++i)t[r+i]=e[n]+e[i];return t}()},783:function(e,t){t.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,l=(1<<s)-1,u=l>>1,c=-7,d=n?i-1:0,f=n?-1:1,h=e[t+d];for(d+=f,o=h&(1<<-c)-1,h>>=-c,c+=s;c>0;o=256*o+e[t+d],d+=f,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=r;c>0;a=256*a+e[t+d],d+=f,c-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,r),o-=u}return(h?-1:1)*a*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var a,s,l,u=8*o-i-1,c=(1<<u)-1,d=c>>1,f=23===i?5960464477539062e-23:0,h=r?0:o-1,p=r?1:-1,g=t<0||0===t&&1/t<0?1:0;for(isNaN(t=Math.abs(t))||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),a+d>=1?t+=f/l:t+=f*Math.pow(2,1-d),t*l>=2&&(a++,l/=2),a+d>=c?(s=0,a=c):a+d>=1?(s=(t*l-1)*Math.pow(2,i),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[n+h]=255&s,h+=p,s/=256,i-=8);for(a=a<<i|s,u+=i;u>0;e[n+h]=255&a,h+=p,a/=256,u-=8);e[n+h-p]|=128*g}}},n={};function r(e){var i=n[e];if(void 0!==i)return i.exports;var o=n[e]={exports:{}},a=!0;try{t[e](o,o.exports,r),a=!1}finally{a&&delete n[e]}return o.exports}r.ab="//";var i=r(72);e.exports=i}()},62461:function(e){!function(){"use strict";var t={114:function(e){function t(e){if("string"!=typeof e)throw TypeError("Path must be a string. Received "+JSON.stringify(e))}function n(e,t){for(var n,r="",i=0,o=-1,a=0,s=0;s<=e.length;++s){if(s<e.length)n=e.charCodeAt(s);else if(47===n)break;else n=47;if(47===n){if(o===s-1||1===a);else if(o!==s-1&&2===a){if(r.length<2||2!==i||46!==r.charCodeAt(r.length-1)||46!==r.charCodeAt(r.length-2)){if(r.length>2){var l=r.lastIndexOf("/");if(l!==r.length-1){-1===l?(r="",i=0):i=(r=r.slice(0,l)).length-1-r.lastIndexOf("/"),o=s,a=0;continue}}else if(2===r.length||1===r.length){r="",i=0,o=s,a=0;continue}}t&&(r.length>0?r+="/..":r="..",i=2)}else r.length>0?r+="/"+e.slice(o+1,s):r=e.slice(o+1,s),i=s-o-1;o=s,a=0}else 46===n&&-1!==a?++a:a=-1}return r}var r={resolve:function(){for(var e,r,i="",o=!1,a=arguments.length-1;a>=-1&&!o;a--)a>=0?r=arguments[a]:(void 0===e&&(e=""),r=e),t(r),0!==r.length&&(i=r+"/"+i,o=47===r.charCodeAt(0));return(i=n(i,!o),o)?i.length>0?"/"+i:"/":i.length>0?i:"."},normalize:function(e){if(t(e),0===e.length)return".";var r=47===e.charCodeAt(0),i=47===e.charCodeAt(e.length-1);return(0!==(e=n(e,!r)).length||r||(e="."),e.length>0&&i&&(e+="/"),r)?"/"+e:e},isAbsolute:function(e){return t(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0==arguments.length)return".";for(var e,n=0;n<arguments.length;++n){var i=arguments[n];t(i),i.length>0&&(void 0===e?e=i:e+="/"+i)}return void 0===e?".":r.normalize(e)},relative:function(e,n){if(t(e),t(n),e===n||(e=r.resolve(e))===(n=r.resolve(n)))return"";for(var i=1;i<e.length&&47===e.charCodeAt(i);++i);for(var o=e.length,a=o-i,s=1;s<n.length&&47===n.charCodeAt(s);++s);for(var l=n.length-s,u=a<l?a:l,c=-1,d=0;d<=u;++d){if(d===u){if(l>u){if(47===n.charCodeAt(s+d))return n.slice(s+d+1);if(0===d)return n.slice(s+d)}else a>u&&(47===e.charCodeAt(i+d)?c=d:0===d&&(c=0));break}var f=e.charCodeAt(i+d);if(f!==n.charCodeAt(s+d))break;47===f&&(c=d)}var h="";for(d=i+c+1;d<=o;++d)(d===o||47===e.charCodeAt(d))&&(0===h.length?h+="..":h+="/..");return h.length>0?h+n.slice(s+c):(s+=c,47===n.charCodeAt(s)&&++s,n.slice(s))},_makeLong:function(e){return e},dirname:function(e){if(t(e),0===e.length)return".";for(var n=e.charCodeAt(0),r=47===n,i=-1,o=!0,a=e.length-1;a>=1;--a)if(47===(n=e.charCodeAt(a))){if(!o){i=a;break}}else o=!1;return -1===i?r?"/":".":r&&1===i?"//":e.slice(0,i)},basename:function(e,n){if(void 0!==n&&"string"!=typeof n)throw TypeError('"ext" argument must be a string');t(e);var r,i=0,o=-1,a=!0;if(void 0!==n&&n.length>0&&n.length<=e.length){if(n.length===e.length&&n===e)return"";var s=n.length-1,l=-1;for(r=e.length-1;r>=0;--r){var u=e.charCodeAt(r);if(47===u){if(!a){i=r+1;break}}else -1===l&&(a=!1,l=r+1),s>=0&&(u===n.charCodeAt(s)?-1==--s&&(o=r):(s=-1,o=l))}return i===o?o=l:-1===o&&(o=e.length),e.slice(i,o)}for(r=e.length-1;r>=0;--r)if(47===e.charCodeAt(r)){if(!a){i=r+1;break}}else -1===o&&(a=!1,o=r+1);return -1===o?"":e.slice(i,o)},extname:function(e){t(e);for(var n=-1,r=0,i=-1,o=!0,a=0,s=e.length-1;s>=0;--s){var l=e.charCodeAt(s);if(47===l){if(!o){r=s+1;break}continue}-1===i&&(o=!1,i=s+1),46===l?-1===n?n=s:1!==a&&(a=1):-1!==n&&(a=-1)}return -1===n||-1===i||0===a||1===a&&n===i-1&&n===r+1?"":e.slice(n,i)},format:function(e){var t,n;if(null===e||"object"!=typeof e)throw TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return t=e.dir||e.root,n=e.base||(e.name||"")+(e.ext||""),t?t===e.root?t+n:t+"/"+n:n},parse:function(e){t(e);var n,r={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return r;var i=e.charCodeAt(0),o=47===i;o?(r.root="/",n=1):n=0;for(var a=-1,s=0,l=-1,u=!0,c=e.length-1,d=0;c>=n;--c){if(47===(i=e.charCodeAt(c))){if(!u){s=c+1;break}continue}-1===l&&(u=!1,l=c+1),46===i?-1===a?a=c:1!==d&&(d=1):-1!==a&&(d=-1)}return -1===a||-1===l||0===d||1===d&&a===l-1&&a===s+1?-1!==l&&(0===s&&o?r.base=r.name=e.slice(1,l):r.base=r.name=e.slice(s,l)):(0===s&&o?(r.name=e.slice(1,a),r.base=e.slice(1,l)):(r.name=e.slice(s,a),r.base=e.slice(s,l)),r.ext=e.slice(a,l)),s>0?r.dir=e.slice(0,s-1):o&&(r.dir="/"),r},sep:"/",delimiter:":",win32:null,posix:null};r.posix=r,e.exports=r}},n={};function r(e){var i=n[e];if(void 0!==i)return i.exports;var o=n[e]={exports:{}},a=!0;try{t[e](o,o.exports,r),a=!1}finally{a&&delete n[e]}return o.exports}r.ab="//";var i=r(114);e.exports=i}()},50032:function(e){!function(){var t={229:function(e){var t,n,r,i=e.exports={};function o(){throw Error("setTimeout has not been defined")}function a(){throw Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(e){n=a}}();var l=[],u=!1,c=-1;function d(){u&&r&&(u=!1,r.length?l=r.concat(l):c=-1,l.length&&f())}function f(){if(!u){var e=s(d);u=!0;for(var t=l.length;t;){for(r=l,l=[];++c<t;)r&&r[c].run();c=-1,t=l.length}r=null,u=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===a||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function p(){}i.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new h(e,t)),1!==l.length||u||s(f)},h.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=p,i.addListener=p,i.once=p,i.off=p,i.removeListener=p,i.removeAllListeners=p,i.emit=p,i.prependListener=p,i.prependOnceListener=p,i.listeners=function(e){return[]},i.binding=function(e){throw Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw Error("process.chdir is not supported")},i.umask=function(){return 0}}},n={};function r(e){var i=n[e];if(void 0!==i)return i.exports;var o=n[e]={exports:{}},a=!0;try{t[e](o,o.exports,r),a=!1}finally{a&&delete n[e]}return o.exports}r.ab="//";var i=r(229);e.exports=i}()},98550:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ACTION_SUFFIX:function(){return l},APP_DIR_ALIAS:function(){return I},CACHE_ONE_YEAR:function(){return x},DOT_NEXT_ALIAS:function(){return O},ESLINT_DEFAULT_DIRS:function(){return $},GSP_NO_RETURNED_VALUE:function(){return j},GSSP_COMPONENT_MEMBER_ERROR:function(){return B},GSSP_NO_RETURNED_VALUE:function(){return z},INSTRUMENTATION_HOOK_FILENAME:function(){return S},MIDDLEWARE_FILENAME:function(){return w},MIDDLEWARE_LOCATION_REGEXP:function(){return E},NEXT_BODY_SUFFIX:function(){return d},NEXT_CACHE_IMPLICIT_TAG_ID:function(){return y},NEXT_CACHE_REVALIDATED_TAGS_HEADER:function(){return p},NEXT_CACHE_REVALIDATE_TAG_TOKEN_HEADER:function(){return g},NEXT_CACHE_SOFT_TAGS_HEADER:function(){return h},NEXT_CACHE_SOFT_TAG_MAX_LENGTH:function(){return b},NEXT_CACHE_TAGS_HEADER:function(){return f},NEXT_CACHE_TAG_MAX_ITEMS:function(){return v},NEXT_CACHE_TAG_MAX_LENGTH:function(){return m},NEXT_DATA_SUFFIX:function(){return u},NEXT_INTERCEPTION_MARKER_PREFIX:function(){return r},NEXT_META_SUFFIX:function(){return c},NEXT_QUERY_PARAM_PREFIX:function(){return n},NON_STANDARD_NODE_ENV:function(){return W},PAGES_DIR_ALIAS:function(){return k},PRERENDER_REVALIDATE_HEADER:function(){return i},PRERENDER_REVALIDATE_ONLY_GENERATED_HEADER:function(){return o},PUBLIC_DIR_MIDDLEWARE_CONFLICT:function(){return N},ROOT_DIR_ALIAS:function(){return C},RSC_ACTION_CLIENT_WRAPPER_ALIAS:function(){return A},RSC_ACTION_ENCRYPTION_ALIAS:function(){return R},RSC_ACTION_PROXY_ALIAS:function(){return P},RSC_ACTION_VALIDATE_ALIAS:function(){return T},RSC_MOD_REF_PROXY_ALIAS:function(){return _},RSC_PREFETCH_SUFFIX:function(){return a},RSC_SUFFIX:function(){return s},SERVER_PROPS_EXPORT_ERROR:function(){return V},SERVER_PROPS_GET_INIT_PROPS_CONFLICT:function(){return L},SERVER_PROPS_SSG_CONFLICT:function(){return D},SERVER_RUNTIME:function(){return q},SSG_FALLBACK_EXPORT_ERROR:function(){return H},SSG_GET_INITIAL_PROPS_CONFLICT:function(){return M},STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR:function(){return F},UNSTABLE_REVALIDATE_RENAME_ERROR:function(){return U},WEBPACK_LAYERS:function(){return K},WEBPACK_RESOURCE_QUERIES:function(){return Z}});let n="nxtP",r="nxtI",i="x-prerender-revalidate",o="x-prerender-revalidate-if-generated",a=".prefetch.rsc",s=".rsc",l=".action",u=".json",c=".meta",d=".body",f="x-next-cache-tags",h="x-next-cache-soft-tags",p="x-next-revalidated-tags",g="x-next-revalidate-tag-token",v=128,m=256,b=1024,y="_N_T_",x=31536e3,w="middleware",E=`(?:src/)?${w}`,S="instrumentation",k="private-next-pages",O="private-dot-next",C="private-next-root-dir",I="private-next-app-dir",_="private-next-rsc-mod-ref-proxy",T="private-next-rsc-action-validate",P="private-next-rsc-server-reference",R="private-next-rsc-action-encryption",A="private-next-rsc-action-client-wrapper",N="You can not have a '_next' folder inside of your public folder. This conflicts with the internal '/_next' route. https://nextjs.org/docs/messages/public-next-folder-conflict",M="You can not use getInitialProps with getStaticProps. To use SSG, please remove your getInitialProps",L="You can not use getInitialProps with getServerSideProps. Please remove getInitialProps.",D="You can not use getStaticProps or getStaticPaths with getServerSideProps. To use SSG, please remove getServerSideProps",F="can not have getInitialProps/getServerSideProps, https://nextjs.org/docs/messages/404-get-initial-props",V="pages with `getServerSideProps` can not be exported. See more info here: https://nextjs.org/docs/messages/gssp-export",j="Your `getStaticProps` function did not return an object. Did you forget to add a `return`?",z="Your `getServerSideProps` function did not return an object. Did you forget to add a `return`?",U="The `unstable_revalidate` property is available for general use.\nPlease use `revalidate` instead.",B="can not be attached to a page's component and must be exported from the page. See more info here: https://nextjs.org/docs/messages/gssp-component-member",W='You are using a non-standard "NODE_ENV" value in your environment. This creates inconsistencies in the project and is strongly advised against. Read more: https://nextjs.org/docs/messages/non-standard-node-env',H="Pages with `fallback` enabled in `getStaticPaths` can not be exported. See more info here: https://nextjs.org/docs/messages/ssg-fallback-true-export",$=["app","pages","components","lib","src"],q={edge:"edge",experimentalEdge:"experimental-edge",nodejs:"nodejs"},G={shared:"shared",reactServerComponents:"rsc",serverSideRendering:"ssr",actionBrowser:"action-browser",api:"api",middleware:"middleware",instrument:"instrument",edgeAsset:"edge-asset",appPagesBrowser:"app-pages-browser",appMetadataRoute:"app-metadata-route",appRouteHandler:"app-route-handler"},K={...G,GROUP:{serverOnly:[G.reactServerComponents,G.actionBrowser,G.appMetadataRoute,G.appRouteHandler,G.instrument],clientOnly:[G.serverSideRendering,G.appPagesBrowser],nonClientServerTarget:[G.middleware,G.api],app:[G.reactServerComponents,G.actionBrowser,G.appMetadataRoute,G.appRouteHandler,G.serverSideRendering,G.appPagesBrowser,G.shared,G.instrument]}},Z={edgeSSREntry:"__next_edge_ssr_entry__",metadata:"__next_metadata__",metadataRoute:"__next_metadata_route__",metadataImageMeta:"__next_metadata_image_meta__"}},14336:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"escapeStringRegexp",{enumerable:!0,get:function(){return i}});let n=/[|\\{}()[\]^$+*?.-]/,r=/[|\\{}()[\]^$+*?.-]/g;function i(e){return n.test(e)?e.replace(r,"\\$&"):e}},20897:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RouterContext",{enumerable:!0,get:function(){return r}});let r=n(4591)._(n(97129)).default.createContext(null)},23239:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{formatUrl:function(){return o},formatWithValidation:function(){return s},urlObjectKeys:function(){return a}});let r=n(23865)._(n(33184)),i=/https?|ftp|gopher|file/;function o(e){let{auth:t,hostname:n}=e,o=e.protocol||"",a=e.pathname||"",s=e.hash||"",l=e.query||"",u=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?u=t+e.host:n&&(u=t+(~n.indexOf(":")?"["+n+"]":n),e.port&&(u+=":"+e.port)),l&&"object"==typeof l&&(l=String(r.urlQueryToSearchParams(l)));let c=e.search||l&&"?"+l||"";return o&&!o.endsWith(":")&&(o+=":"),e.slashes||(!o||i.test(o))&&!1!==u?(u="//"+(u||""),a&&"/"!==a[0]&&(a="/"+a)):u||(u=""),s&&"#"!==s[0]&&(s="#"+s),c&&"?"!==c[0]&&(c="?"+c),""+o+u+(a=a.replace(/[?#]/g,encodeURIComponent))+(c=c.replace("#","%23"))+s}let a=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function s(e){return o(e)}},83764:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{getSortedRoutes:function(){return r.getSortedRoutes},isDynamicRoute:function(){return i.isDynamicRoute}});let r=n(16484),i=n(30236)},6577:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"interpolateAs",{enumerable:!0,get:function(){return o}});let r=n(31454),i=n(31599);function o(e,t,n){let o="",a=(0,i.getRouteRegex)(e),s=a.groups,l=(t!==e?(0,r.getRouteMatcher)(a)(t):"")||n;o=e;let u=Object.keys(s);return u.every(e=>{let t=l[e]||"",{repeat:n,optional:r}=s[e],i="["+(n?"...":"")+e+"]";return r&&(i=(t?"":"/")+"["+i+"]"),n&&!Array.isArray(t)&&(t=[t]),(r||e in l)&&(o=o.replace(i,n?t.map(e=>encodeURIComponent(e)).join("/"):encodeURIComponent(t))||"/")})||(o=""),{params:u,result:o}}},30236:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isDynamicRoute",{enumerable:!0,get:function(){return o}});let r=n(83053),i=/\/\[[^/]+?\](?=\/|$)/;function o(e){return(0,r.isInterceptionRouteAppPath)(e)&&(e=(0,r.extractInterceptionRouteInformation)(e).interceptedRoute),i.test(e)}},7509:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isLocalURL",{enumerable:!0,get:function(){return o}});let r=n(93518),i=n(7177);function o(e){if(!(0,r.isAbsoluteUrl)(e))return!0;try{let t=(0,r.getLocationOrigin)(),n=new URL(e,t);return n.origin===t&&(0,i.hasBasePath)(n.pathname)}catch(e){return!1}}},50089:function(e,t){"use strict";function n(e,t){let n={};return Object.keys(e).forEach(r=>{t.includes(r)||(n[r]=e[r])}),n}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"omit",{enumerable:!0,get:function(){return n}})},33184:function(e,t){"use strict";function n(e){let t={};return e.forEach((e,n)=>{void 0===t[n]?t[n]=e:Array.isArray(t[n])?t[n].push(e):t[n]=[t[n],e]}),t}function r(e){return"string"!=typeof e&&("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function i(e){let t=new URLSearchParams;return Object.entries(e).forEach(e=>{let[n,i]=e;Array.isArray(i)?i.forEach(e=>t.append(n,r(e))):t.set(n,r(i))}),t}function o(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.forEach(t=>{Array.from(t.keys()).forEach(t=>e.delete(t)),t.forEach((t,n)=>e.append(n,t))}),e}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{assign:function(){return o},searchParamsToUrlQuery:function(){return n},urlQueryToSearchParams:function(){return i}})},31454:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getRouteMatcher",{enumerable:!0,get:function(){return i}});let r=n(93518);function i(e){let{re:t,groups:n}=e;return e=>{let i=t.exec(e);if(!i)return!1;let o=e=>{try{return decodeURIComponent(e)}catch(e){throw new r.DecodeError("failed to decode param")}},a={};return Object.keys(n).forEach(e=>{let t=n[e],r=i[t.pos];void 0!==r&&(a[e]=~r.indexOf("/")?r.split("/").map(e=>o(e)):t.repeat?[o(r)]:o(r))}),a}}},31599:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{getNamedMiddlewareRegex:function(){return h},getNamedRouteRegex:function(){return f},getRouteRegex:function(){return u},parseParameter:function(){return s}});let r=n(98550),i=n(83053),o=n(14336),a=n(73610);function s(e){let t=e.startsWith("[")&&e.endsWith("]");t&&(e=e.slice(1,-1));let n=e.startsWith("...");return n&&(e=e.slice(3)),{key:e,repeat:n,optional:t}}function l(e){let t=(0,a.removeTrailingSlash)(e).slice(1).split("/"),n={},r=1;return{parameterizedRoute:t.map(e=>{let t=i.INTERCEPTION_ROUTE_MARKERS.find(t=>e.startsWith(t)),a=e.match(/\[((?:\[.*\])|.+)\]/);if(t&&a){let{key:e,optional:i,repeat:l}=s(a[1]);return n[e]={pos:r++,repeat:l,optional:i},"/"+(0,o.escapeStringRegexp)(t)+"([^/]+?)"}if(!a)return"/"+(0,o.escapeStringRegexp)(e);{let{key:e,repeat:t,optional:i}=s(a[1]);return n[e]={pos:r++,repeat:t,optional:i},t?i?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)"}}).join(""),groups:n}}function u(e){let{parameterizedRoute:t,groups:n}=l(e);return{re:RegExp("^"+t+"(?:/)?$"),groups:n}}function c(e){let{interceptionMarker:t,getSafeRouteKey:n,segment:r,routeKeys:i,keyPrefix:a}=e,{key:l,optional:u,repeat:c}=s(r),d=l.replace(/\W/g,"");a&&(d=""+a+d);let f=!1;(0===d.length||d.length>30)&&(f=!0),isNaN(parseInt(d.slice(0,1)))||(f=!0),f&&(d=n()),a?i[d]=""+a+l:i[d]=l;let h=t?(0,o.escapeStringRegexp)(t):"";return c?u?"(?:/"+h+"(?<"+d+">.+?))?":"/"+h+"(?<"+d+">.+?)":"/"+h+"(?<"+d+">[^/]+?)"}function d(e,t){let n;let s=(0,a.removeTrailingSlash)(e).slice(1).split("/"),l=(n=0,()=>{let e="",t=++n;for(;t>0;)e+=String.fromCharCode(97+(t-1)%26),t=Math.floor((t-1)/26);return e}),u={};return{namedParameterizedRoute:s.map(e=>{let n=i.INTERCEPTION_ROUTE_MARKERS.some(t=>e.startsWith(t)),a=e.match(/\[((?:\[.*\])|.+)\]/);if(n&&a){let[n]=e.split(a[0]);return c({getSafeRouteKey:l,interceptionMarker:n,segment:a[1],routeKeys:u,keyPrefix:t?r.NEXT_INTERCEPTION_MARKER_PREFIX:void 0})}return a?c({getSafeRouteKey:l,segment:a[1],routeKeys:u,keyPrefix:t?r.NEXT_QUERY_PARAM_PREFIX:void 0}):"/"+(0,o.escapeStringRegexp)(e)}).join(""),routeKeys:u}}function f(e,t){let n=d(e,t);return{...u(e),namedRegex:"^"+n.namedParameterizedRoute+"(?:/)?$",routeKeys:n.routeKeys}}function h(e,t){let{parameterizedRoute:n}=l(e),{catchAll:r=!0}=t;if("/"===n)return{namedRegex:"^/"+(r?".*":"")+"$"};let{namedParameterizedRoute:i}=d(e,!1);return{namedRegex:"^"+i+(r?"(?:(/.*)?)":"")+"$"}}},16484:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSortedRoutes",{enumerable:!0,get:function(){return r}});class n{insert(e){this._insert(e.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(e){void 0===e&&(e="/");let t=[...this.children.keys()].sort();null!==this.slugName&&t.splice(t.indexOf("[]"),1),null!==this.restSlugName&&t.splice(t.indexOf("[...]"),1),null!==this.optionalRestSlugName&&t.splice(t.indexOf("[[...]]"),1);let n=t.map(t=>this.children.get(t)._smoosh(""+e+t+"/")).reduce((e,t)=>[...e,...t],[]);if(null!==this.slugName&&n.push(...this.children.get("[]")._smoosh(e+"["+this.slugName+"]/")),!this.placeholder){let t="/"===e?"/":e.slice(0,-1);if(null!=this.optionalRestSlugName)throw Error('You cannot define a route with the same specificity as a optional catch-all route ("'+t+'" and "'+t+"[[..."+this.optionalRestSlugName+']]").');n.unshift(t)}return null!==this.restSlugName&&n.push(...this.children.get("[...]")._smoosh(e+"[..."+this.restSlugName+"]/")),null!==this.optionalRestSlugName&&n.push(...this.children.get("[[...]]")._smoosh(e+"[[..."+this.optionalRestSlugName+"]]/")),n}_insert(e,t,r){if(0===e.length){this.placeholder=!1;return}if(r)throw Error("Catch-all must be the last part of the URL.");let i=e[0];if(i.startsWith("[")&&i.endsWith("]")){let n=i.slice(1,-1),a=!1;if(n.startsWith("[")&&n.endsWith("]")&&(n=n.slice(1,-1),a=!0),n.startsWith("...")&&(n=n.substring(3),r=!0),n.startsWith("[")||n.endsWith("]"))throw Error("Segment names may not start or end with extra brackets ('"+n+"').");if(n.startsWith("."))throw Error("Segment names may not start with erroneous periods ('"+n+"').");function o(e,n){if(null!==e&&e!==n)throw Error("You cannot use different slug names for the same dynamic path ('"+e+"' !== '"+n+"').");t.forEach(e=>{if(e===n)throw Error('You cannot have the same slug name "'+n+'" repeat within a single dynamic path');if(e.replace(/\W/g,"")===i.replace(/\W/g,""))throw Error('You cannot have the slug names "'+e+'" and "'+n+'" differ only by non-word symbols within a single dynamic path')}),t.push(n)}if(r){if(a){if(null!=this.restSlugName)throw Error('You cannot use both an required and optional catch-all route at the same level ("[...'+this.restSlugName+']" and "'+e[0]+'" ).');o(this.optionalRestSlugName,n),this.optionalRestSlugName=n,i="[[...]]"}else{if(null!=this.optionalRestSlugName)throw Error('You cannot use both an optional and required catch-all route at the same level ("[[...'+this.optionalRestSlugName+']]" and "'+e[0]+'").');o(this.restSlugName,n),this.restSlugName=n,i="[...]"}}else{if(a)throw Error('Optional route parameters are not yet supported ("'+e[0]+'").');o(this.slugName,n),this.slugName=n,i="[]"}}this.children.has(i)||this.children.set(i,new n),this.children.get(i)._insert(e.slice(1),t,r)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}function r(e){let t=new n;return e.forEach(e=>t.insert(e)),t.smoosh()}},93518:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{DecodeError:function(){return p},MiddlewareNotFoundError:function(){return b},MissingStaticPage:function(){return m},NormalizeError:function(){return g},PageNotFoundError:function(){return v},SP:function(){return f},ST:function(){return h},WEB_VITALS:function(){return n},execOnce:function(){return r},getDisplayName:function(){return l},getLocationOrigin:function(){return a},getURL:function(){return s},isAbsoluteUrl:function(){return o},isResSent:function(){return u},loadGetInitialProps:function(){return d},normalizeRepeatedSlashes:function(){return c},stringifyError:function(){return y}});let n=["CLS","FCP","FID","INP","LCP","TTFB"];function r(e){let t,n=!1;return function(){for(var r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];return n||(n=!0,t=e(...i)),t}}let i=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,o=e=>i.test(e);function a(){let{protocol:e,hostname:t,port:n}=window.location;return e+"//"+t+(n?":"+n:"")}function s(){let{href:e}=window.location,t=a();return e.substring(t.length)}function l(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function u(e){return e.finished||e.headersSent}function c(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?"?"+t.slice(1).join("?"):"")}async function d(e,t){let n=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await d(t.Component,t.ctx)}:{};let r=await e.getInitialProps(t);if(n&&u(n))return r;if(!r)throw Error('"'+l(e)+'.getInitialProps()" should resolve to an object. But found "'+r+'" instead.');return r}let f="undefined"!=typeof performance,h=f&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class p extends Error{}class g extends Error{}class v extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+e}}class m extends Error{constructor(e,t){super(),this.message="Failed to load static file for page: "+e+" "+t}}class b extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function y(e){return JSON.stringify({message:e.message,stack:e.stack})}},45324:function(e,t){"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,h=n?Symbol.for("react.suspense"):60113,p=n?Symbol.for("react.suspense_list"):60120,g=n?Symbol.for("react.memo"):60115,v=n?Symbol.for("react.lazy"):60116,m=n?Symbol.for("react.block"):60121,b=n?Symbol.for("react.fundamental"):60117,y=n?Symbol.for("react.responder"):60118,x=n?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case d:case o:case s:case a:case h:return e;default:switch(e=e&&e.$$typeof){case u:case f:case v:case g:case l:return e;default:return t}}case i:return t}}}function E(e){return w(e)===d}t.AsyncMode=c,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=l,t.Element=r,t.ForwardRef=f,t.Fragment=o,t.Lazy=v,t.Memo=g,t.Portal=i,t.Profiler=s,t.StrictMode=a,t.Suspense=h,t.isAsyncMode=function(e){return E(e)||w(e)===c},t.isConcurrentMode=E,t.isContextConsumer=function(e){return w(e)===u},t.isContextProvider=function(e){return w(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return w(e)===f},t.isFragment=function(e){return w(e)===o},t.isLazy=function(e){return w(e)===v},t.isMemo=function(e){return w(e)===g},t.isPortal=function(e){return w(e)===i},t.isProfiler=function(e){return w(e)===s},t.isStrictMode=function(e){return w(e)===a},t.isSuspense=function(e){return w(e)===h},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===d||e===s||e===a||e===h||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===g||e.$$typeof===l||e.$$typeof===u||e.$$typeof===f||e.$$typeof===b||e.$$typeof===y||e.$$typeof===x||e.$$typeof===m)},t.typeOf=w},35236:function(e,t,n){"use strict";e.exports=n(45324)},37084:function(e,t,n){"use strict";var r=n(97129),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=r.useState,a=r.useEffect,s=r.useLayoutEffect,l=r.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=o({inst:{value:n,getSnapshot:t}}),i=r[0].inst,c=r[1];return s(function(){i.value=n,i.getSnapshot=t,u(i)&&c({inst:i})},[e,n,t]),a(function(){return u(i)&&c({inst:i}),e(function(){u(i)&&c({inst:i})})},[e]),l(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:c},56942:function(e,t,n){"use strict";var r=n(97129),i=n(86124),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=i.useSyncExternalStore,s=r.useRef,l=r.useEffect,u=r.useMemo,c=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var d=s(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;var h=a(e,(d=u(function(){function e(e){if(!l){if(l=!0,a=e,e=r(e),void 0!==i&&f.hasValue){var t=f.value;if(i(t,e))return s=t}return s=e}if(t=s,o(a,e))return t;var n=r(e);return void 0!==i&&i(t,n)?(a=e,t):(a=e,s=n)}var a,s,l=!1,u=void 0===n?null:n;return[function(){return e(t())},null===u?void 0:function(){return e(u())}]},[t,n,r,i]))[0],d[1]);return l(function(){f.hasValue=!0,f.value=h},[h]),c(h),h}},86124:function(e,t,n){"use strict";e.exports=n(37084)},5618:function(e,t,n){"use strict";e.exports=n(56942)},50758:function(){},7356:function(e,t,n){"use strict";n.d(t,{T:function(){return r}});let r=n(40241).Os.extendWith("group")},60015:function(e,t,n){"use strict";n.d(t,{e:function(){return s}});var r=n(20749),i=n(97129),o=n(2540);let a=e=>{let t=(0,i.memo)((0,i.forwardRef)((t,n)=>{let a;let{asChild:s,children:l,...u}=t;if(!s)return(0,i.createElement)(e,{...u,ref:n},l);let c=i.Children.only(l);if(!(0,i.isValidElement)(c))return null;let d=(a=Object.getOwnPropertyDescriptor(c.props,"ref")?.get)&&"isReactWarning"in a&&a.isReactWarning?c.ref:(a=Object.getOwnPropertyDescriptor(c,"ref")?.get)&&"isReactWarning"in a&&a.isReactWarning?c.props.ref:c.props.ref||c.ref;return(0,i.cloneElement)(c,{...(0,r.dG)(u,c.props),ref:n?(0,o.F)(n,d):d})}));return t.displayName=e.displayName||e.name,t},s=(()=>{let e=new Map;return new Proxy(a,{apply:(e,t,n)=>a(n[0]),get:(t,n)=>(e.has(n)||e.set(n,a(n)),e.get(n))})})()},76596:function(e,t,n){"use strict";n.d(t,{$:function(){return r},L:function(){return i}});let r=(0,n(26558).F)("field").parts("root","errorText","helperText","input","label","select","textarea","requiredIndicator"),i=r.build()},51591:function(e,t,n){"use strict";n.d(t,{L:function(){return r},O:function(){return i}});let[r,i]=(0,n(14443).k)({name:"FieldContext",hookName:"useFieldContext",providerName:"<FieldProvider />",strict:!1})},11593:function(e,t,n){"use strict";n.d(t,{h:function(){return l}});var r=n(26415),i=n(88928),o=n(97129),a=n(51853),s=n(45503);let l=e=>{var t;let{children:n,disabled:i}=e,[l,d]=(0,o.useState)(null===(t=e.container)||void 0===t?void 0:t.current),f=(0,o.useSyncExternalStore)(c,()=>!1,()=>!0),{getRootNode:h}=(0,s.U)();if((0,o.useEffect)(()=>{d(()=>{var t;return null===(t=e.container)||void 0===t?void 0:t.current})},[e.container]),f||i)return(0,r.jsx)(r.Fragment,{children:n});let p=null!=l?l:u(h);return(0,r.jsx)(r.Fragment,{children:o.Children.map(n,e=>(0,a.createPortal)(e,p))})},u=e=>{let t=null==e?void 0:e(),n=t.getRootNode();return(0,i.Zq)(n)?n:(0,i.Me)(t).body},c=()=>()=>{}},14933:function(e,t,n){"use strict";n.d(t,{l:function(){return i}});var r=n(87366);let i=e=>(0,r.x)()(e,["immediate","lazyMount","onExitComplete","present","skipAnimationOnMount","unmountOnExit"])},28864:function(e,t,n){"use strict";n.d(t,{u:function(){return i},w:function(){return r}});let[r,i]=(0,n(14443).k)({name:"PresenceContext",hookName:"usePresenceContext",providerName:"<PresenceProvider />"})},41848:function(e,t,n){"use strict";n.d(t,{o:function(){return d}});var r=n(88928),i=n(20749),o=n(41869),a=(0,i.C8)({props:({props:e})=>({...e,present:!!e.present}),initialState:({prop:e})=>e("present")?"mounted":"unmounted",refs:()=>({node:null,styles:null}),context:({bindable:e})=>({unmountAnimationName:e(()=>({defaultValue:null})),prevAnimationName:e(()=>({defaultValue:null})),present:e(()=>({defaultValue:!1})),initial:e(()=>({sync:!0,defaultValue:!1}))}),exit:["clearInitial","cleanupNode"],watch({track:e,action:t,prop:n}){e([()=>n("present")],()=>{t(["setInitial","syncPresence"])})},on:{"NODE.SET":{actions:["setNode","setStyles"]}},states:{mounted:{on:{UNMOUNT:{target:"unmounted",actions:["clearPrevAnimationName","invokeOnExitComplete"]},"UNMOUNT.SUSPEND":{target:"unmountSuspended"}}},unmountSuspended:{effects:["trackAnimationEvents"],on:{MOUNT:{target:"mounted",actions:["setPrevAnimationName"]},UNMOUNT:{target:"unmounted",actions:["clearPrevAnimationName","invokeOnExitComplete"]}}},unmounted:{on:{MOUNT:{target:"mounted",actions:["setPrevAnimationName"]}}}},implementations:{actions:{setInitial:({context:e})=>{e.get("initial")||queueMicrotask(()=>{e.set("initial",!0)})},clearInitial:({context:e})=>{e.set("initial",!1)},cleanupNode:({refs:e})=>{e.set("node",null),e.set("styles",null)},invokeOnExitComplete:({prop:e})=>{e("onExitComplete")?.()},setNode:({refs:e,event:t})=>{e.set("node",t.node)},setStyles:({refs:e,event:t})=>{e.set("styles",(0,r.Dx)(t.node))},syncPresence:({context:e,refs:t,send:n,prop:i})=>{let o=i("present");if(o)return n({type:"MOUNT",src:"presence.changed"});let a=t.get("node");if(!o&&a?.ownerDocument.visibilityState==="hidden")return n({type:"UNMOUNT",src:"visibilitychange"});(0,r.Wn)(()=>{let r=s(t.get("styles"));e.set("unmountAnimationName",r),"none"===r||r===e.get("prevAnimationName")||t.get("styles")?.display==="none"||t.get("styles")?.animationDuration==="0s"?n({type:"UNMOUNT",src:"presence.changed"}):n({type:"UNMOUNT.SUSPEND"})})},setPrevAnimationName:({context:e,refs:t})=>{(0,r.Wn)(()=>{e.set("prevAnimationName",s(t.get("styles")))})},clearPrevAnimationName:({context:e})=>{e.set("prevAnimationName",null)}},effects:{trackAnimationEvents:({context:e,refs:t,send:n})=>{let i=t.get("node");if(!i)return;let o=n=>{(n.composedPath?.()?.[0]??n.target)===i&&e.set("prevAnimationName",s(t.get("styles")))},a=o=>{let a=s(t.get("styles"));(0,r.NI)(o)===i&&a===e.get("unmountAnimationName")&&n({type:"UNMOUNT",src:"animationend"})};i.addEventListener("animationstart",o),i.addEventListener("animationcancel",a),i.addEventListener("animationend",a);let l=(0,r.A_)(i,{animationFillMode:"forwards"});return()=>{i.removeEventListener("animationstart",o),i.removeEventListener("animationcancel",a),i.removeEventListener("animationend",a),(0,r.Y3)(()=>l())}}}}});function s(e){return e?.animationName||"none"}(0,o.e)()(["onExitComplete","present","immediate"]);var l=n(77093),u=n(97129),c=n(94598);let d=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{lazyMount:t,unmountOnExit:n,present:r,skipAnimationOnMount:i=!1,...o}=e,s=(0,u.useRef)(!1),d={...o,present:r,onExitComplete:(0,c.z)(e.onExitComplete)},f=function(e,t){let{state:n,send:r,context:i}=e,o=n.matches("mounted","unmountSuspended");return{skip:!i.get("initial"),present:o,setNode(e){e&&r({type:"NODE.SET",node:e})},unmount(){r({type:"UNMOUNT"})}}}((0,l.eO)(a,d),l.vs);f.present&&(s.current=!0);let h=!f.present&&!s.current&&t||n&&!f.present&&s.current;return{ref:f.setNode,getPresenceProps:()=>({"data-state":f.skip&&i?void 0:r?"open":"closed",hidden:!f.present}),present:f.present,unmounted:h}}},87648:function(e,t,n){"use strict";n.d(t,{R:function(){return i}});var r=n(56071);let i=e=>r.MT(e)},45503:function(e,t,n){"use strict";n.d(t,{U:function(){return i}});let[r,i]=(0,n(14443).k)({name:"EnvironmentContext",hookName:"useEnvironmentContext",providerName:"<EnvironmentProvider />",strict:!1,defaultValue:{getRootNode:()=>document,getDocument:()=>document,getWindow:()=>window}})},16198:function(e,t,n){"use strict";n.d(t,{P:function(){return i}});let[r,i]=(0,n(14443).k)({name:"LocaleContext",hookName:"useLocaleContext",providerName:"<LocaleProvider />",strict:!1,defaultValue:{dir:"ltr",locale:"en-US"}})},2540:function(e,t,n){"use strict";function r(...e){return t=>{let n=[];for(let r of e)if("function"==typeof r){let e=r(t);"function"==typeof e&&n.push(e)}else r&&(r.current=t);if(n.length)return()=>{for(let e of n)e()}}}n.d(t,{F:function(){return r}})},14443:function(e,t,n){"use strict";n.d(t,{k:function(){return i}});var r=n(97129);function i(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{name:t,strict:n=!0,hookName:i="useContext",providerName:o="Provider",errorMessage:a,defaultValue:s}=e,l=(0,r.createContext)(s);return l.displayName=t,[l.Provider,function e(){let t=(0,r.useContext)(l);if(!t&&n){var s,u;let t=Error(null!=a?a:"".concat(i," returned `undefined`. Seems you forgot to wrap component within ").concat(o));throw t.name="ContextError",null===(s=(u=Error).captureStackTrace)||void 0===s||s.call(u,t,e),t}return t},l]}},87366:function(e,t,n){"use strict";n.d(t,{x:function(){return r}});let r=()=>(e,t)=>t.reduce((e,t)=>{let[n,r]=e;return void 0!==r[t]&&(n[t]=r[t]),delete r[t],[n,r]},[{},{...e}])},66595:function(e,t,n){"use strict";n.d(t,{$5:function(){return s},Db:function(){return a},qZ:function(){return o}});var r=n(14443),i=n(87366);let[o,a]=(0,r.k)({name:"RenderStrategyContext",hookName:"useRenderStrategyContext",providerName:"<RenderStrategyPropsProvider />"}),s=e=>(0,i.x)()(e,["lazyMount","unmountOnExit"])},94598:function(e,t,n){"use strict";n.d(t,{z:function(){return i}});var r=n(97129);function i(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{sync:n=!1}=t,i=function(e){let t=(0,r.useRef)(e);return t.current=e,t}(e);return(0,r.useCallback)(function(){for(var e,t=arguments.length,r=Array(t),o=0;o<t;o++)r[o]=arguments[o];return n?queueMicrotask(()=>{var e;return null===(e=i.current)||void 0===e?void 0:e.call(i,...r)}):null===(e=i.current)||void 0===e?void 0:e.call(i,...r)},[n,i])}},23258:function(e,t,n){"use strict";function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}n.d(t,{Z:function(){return r}})},64899:function(e,t,n){"use strict";n.d(t,{x:function(){return r}});let r=(0,n(93064).m)("div");r.displayName="Box"},67791:function(e,t,n){"use strict";n.d(t,{D:function(){return r}});let r=(0,n(93064).m)("span")},1507:function(e,t,n){"use strict";n.d(t,{h:function(){return l}});var r=n(26415),i=n(97129),o=n(90072),a=n(95014),s=n(88803);let l=(0,i.forwardRef)(function(e,t){let n=(0,o.r)({key:"button"}),[l,u]=(0,i.useMemo)(()=>n.splitVariantProps(e),[e,n]);return(0,r.jsx)(a.h,{value:l,children:(0,r.jsx)(s.Z,{ref:t,...u})})})},95014:function(e,t,n){"use strict";n.d(t,{z:function(){return m},h:function(){return b}});var r=n(26415),i=n(97129),o=n(55547),a=n(28359),s=n(71891),l=n(24410),u=n(93064),c=n(22952),d=n(67791);let f=(0,u.m)("div",{base:{position:"absolute",display:"flex",alignItems:"center",justifyContent:"center"},variants:{axis:{horizontal:{insetStart:"50%",translate:"-50%",_rtl:{translate:"50%"}},vertical:{top:"50%",translate:"0 -50%"},both:{insetStart:"50%",top:"50%",translate:"-50% -50%",_rtl:{translate:"50% -50%"}}}},defaultVariants:{axis:"both"}});f.displayName="AbsoluteCenter";let h=i.forwardRef(function(e,t){let{spinner:n=(0,r.jsx)(c.$,{size:"inherit",borderWidth:"0.125em",color:"inherit"}),spinnerPlacement:i="start",children:o,text:a,visible:s=!0,...l}=e;return s?a?(0,r.jsxs)(d.D,{ref:t,display:"contents",...l,children:["start"===i&&n,a,"end"===i&&n]}):n?(0,r.jsxs)(d.D,{ref:t,display:"contents",...l,children:[(0,r.jsx)(f,{display:"inline-flex",children:n}),(0,r.jsx)(d.D,{visibility:"hidden",display:"contents",children:o})]}):(0,r.jsx)(d.D,{ref:t,display:"contents",...l,children:o}):o}),{useRecipeResult:p,PropsProvider:g,usePropsContext:v}=(0,l.d)({key:"button"}),m=(0,i.forwardRef)(function(e,t){let n=v(),l=(0,i.useMemo)(()=>(0,o.d)(n,e),[n,e]),c=p(l),{loading:d,loadingText:f,children:g,spinner:m,spinnerPlacement:b,...y}=c.props;return(0,r.jsx)(u.m.button,{type:"button",ref:t,...y,"data-loading":(0,a.P)(d),disabled:d||y.disabled,className:(0,s.cx)(c.className,l.className),css:[c.styles,l.css],children:!l.asChild&&d?(0,r.jsx)(h,{spinner:m,text:f,spinnerPlacement:b,children:g}):g})}),b=g},23519:function(e,t,n){"use strict";n.d(t,{P:function(){return s}});var r=n(26415),i=n(97129),o=n(22391),a=n(66927);let s=i.forwardRef(function(e,t){return(0,r.jsx)(a.h,{variant:"ghost","aria-label":"Close",ref:t,...e,children:e.children??(0,r.jsx)(o.Tw,{})})})},66927:function(e,t,n){"use strict";n.d(t,{h:function(){return a}});var r=n(26415),i=n(97129),o=n(95014);let a=(0,i.forwardRef)(function(e,t){return(0,r.jsx)(o.z,{px:"0",py:"0",_icon:{fontSize:"1.2em"},ref:t,...e})})},43213:function(e,t,n){"use strict";n.d(t,{M:function(){return r}});let r=(0,n(93064).m)("div",{base:{display:"flex",alignItems:"center",justifyContent:"center"},variants:{inline:{true:{display:"inline-flex"}}}});r.displayName="Center"},4731:function(e,t,n){"use strict";n.d(t,{Z8:function(){return z},HC:function(){return U},ke:function(){return V},wx:function(){return F}});var r=n(26415),i=n(20749),o=n(97129),a=n(87366),s=n(60015),l=n(14443);let[u,c]=(0,l.k)({name:"CheckboxContext",hookName:"useCheckboxContext",providerName:"<CheckboxProvider />"}),d=(0,o.forwardRef)((e,t)=>{let[{value:n},o]=(0,a.x)()(e,["value"]),l=(0,i.dG)(n.getRootProps(),o);return(0,r.jsx)(u,{value:n,children:(0,r.jsx)(s.e.label,{...l,ref:t})})});d.displayName="CheckboxRootProvider";var f=n(40241),h=n(77093),p=n(45503),g=n(16198),v=n(51591);let[m,b]=(0,l.k)({name:"CheckboxGroupContext",hookName:"useCheckboxGroupContext",providerName:"<CheckboxGroupProvider />",strict:!1}),y=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=b(),n=(0,v.O)(),r=(0,o.useMemo)(()=>{var n;return(0,i.dG)(e,null!==(n=null==t?void 0:t.getItemProps({value:e.value}))&&void 0!==n?n:{})},[e,t]),a=(0,o.useId)(),{getRootNode:s}=(0,p.U)(),{dir:l}=(0,g.P)(),u={id:a,ids:{label:null==n?void 0:n.ids.label,hiddenInput:null==n?void 0:n.ids.control},dir:l,disabled:null==n?void 0:n.disabled,readOnly:null==n?void 0:n.readOnly,invalid:null==n?void 0:n.invalid,required:null==n?void 0:n.required,getRootNode:s,...r},c=(0,h.eO)(f.u_,u);return f.$j(c,h.vs)},x=(0,o.forwardRef)((e,t)=>{let[n,o]=(0,a.x)()(e,["checked","defaultChecked","disabled","form","id","ids","invalid","name","onCheckedChange","readOnly","required","value"]),l=y(n),c=(0,i.dG)(l.getRootProps(),o);return(0,r.jsx)(u,{value:l,children:(0,r.jsx)(s.e.label,{...c,ref:t})})});x.displayName="CheckboxRoot";let w=(0,o.forwardRef)((e,t)=>{let n=c(),o=(0,i.dG)(n.getLabelProps(),e);return(0,r.jsx)(s.e.span,{...o,ref:t})});w.displayName="CheckboxLabel";let E=(0,o.forwardRef)((e,t)=>{let n=c(),o=(0,i.dG)(n.getControlProps(),e);return(0,r.jsx)(s.e.div,{...o,ref:t})});E.displayName="CheckboxControl";var S=n(7356),k=n(94598);let O=(0,o.forwardRef)((e,t)=>{let[n,i]=(0,a.x)()(e,["defaultValue","value","onValueChange","disabled","invalid","readOnly","name"]),l=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{defaultValue:t,value:n,onValueChange:r,disabled:i,readOnly:a,name:s,invalid:l}=e,u=!(i||a),[c,d]=function(e){let{value:t,onChange:n,defaultValue:r}=e,[i,a]=(0,o.useState)(r),s=void 0!==t;return[s?t:i,(0,o.useCallback)(e=>(s||a(e),null==n?void 0:n(e)),[s,n])]}({value:n,defaultValue:t||[],onChange:(0,k.z)(r,{sync:!0})}),f=e=>c.some(t=>String(t)===String(e)),h=e=>{f(e)?g(e):p(e)},p=e=>{u&&(f(e)||d(c.concat(e)))},g=e=>{u&&d(c.filter(t=>String(t)!==String(e)))};return{isChecked:f,value:c,name:s,disabled:!!i,readOnly:!!a,invalid:!!l,setValue:d,addValue:p,toggleValue:h,getItemProps:e=>({checked:null!=e.value?f(e.value):void 0,onCheckedChange(){null!=e.value&&h(e.value)},name:s,disabled:i,readOnly:a,invalid:l})}}(n);return(0,r.jsx)(m,{value:l,children:(0,r.jsx)(s.e.div,{ref:t,role:"group",...i,...S.T.build().group.attrs})})});O.displayName="CheckboxGroup";let C=(0,o.forwardRef)((e,t)=>{let n=c(),o=(0,i.dG)(n.getHiddenInputProps(),e),a=(0,v.O)();return(0,r.jsx)(s.e.input,{"aria-describedby":null==a?void 0:a.ariaDescribedby,...o,ref:t})});C.displayName="CheckboxHiddenInput";var I=n(7885),_=n(93064),T=n(28359),P=n(95261),R=n(90072);let A=(0,o.forwardRef)(function(e,t){let n=(0,R.r)({key:"checkmark",recipe:e.recipe}),[i,o]=n.splitVariantProps(e),{checked:a,indeterminate:s,disabled:l,unstyled:u,children:c,...d}=o,f=u?P.o:n(i);return(0,r.jsx)(_.m.svg,{ref:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3px",strokeLinecap:"round",strokeLinejoin:"round","data-state":s?"indeterminate":a?"checked":"unchecked","data-disabled":(0,T.P)(l),css:[f,e.css],...d,children:s?(0,r.jsx)("path",{d:"M5 12h14"}):a?(0,r.jsx)("polyline",{points:"20 6 9 17 4 12"}):null})}),{withProvider:N,withContext:M,useStyles:L,PropsProvider:D}=(0,I.s)({key:"checkbox"});N(d,"root",{forwardAsChild:!0});let F=N(x,"root",{forwardAsChild:!0}),V=M(w,"label",{forwardAsChild:!0}),j=(0,o.forwardRef)(function(e,t){let{checked:n,indeterminate:i,...o}=e,a=c(),s=L();return n&&a.checked?(0,r.jsx)(_.m.svg,{ref:t,asChild:!0,...o,css:[s.indicator,e.css],children:n}):i&&a.indeterminate?(0,r.jsx)(_.m.svg,{ref:t,asChild:!0,...o,css:[s.indicator,e.css],children:i}):(0,r.jsx)(A,{ref:t,checked:a.checked,indeterminate:a.indeterminate,disabled:a.disabled,unstyled:!0,...o,css:[s.indicator,e.css]})}),z=M(E,"control",{forwardAsChild:!0,defaultProps:{children:(0,r.jsx)(j,{})}});(0,_.m)(O,{base:{display:"flex",flexDirection:"column",gap:"1.5"}},{forwardAsChild:!0});let U=C},75528:function(e,t,n){"use strict";n.d(t,{My:function(){return F},ZR:function(){return V},a7:function(){return j},Rd:function(){return D},cZ:function(){return M},cN:function(){return z},fK:function(){return U},Qd:function(){return N},GR:function(){return A},$N:function(){return L}});var r=n(26415),i=n(20749),o=n(66595),a=n(14933),s=n(41848),l=n(28864);let[u,c]=(0,n(14443).k)({name:"DialogContext",hookName:"useDialogContext",providerName:"<DialogProvider />"});var d=n(68348),f=n(77093),h=n(97129),p=n(45503),g=n(16198);let v=e=>{let t=(0,h.useId)(),{getRootNode:n}=(0,p.U)(),{dir:r}=(0,g.P)(),i={id:t,getRootNode:n,dir:r,...e},o=(0,f.eO)(d.u_,i);return d.$j(o,f.vs)};var m=n(60015);let b=(0,h.forwardRef)((e,t)=>{let n=c(),o=(0,l.u)(),a=(0,i.dG)({...n.getTriggerProps(),"aria-controls":o.unmounted?void 0:n.getTriggerProps()["aria-controls"]},e);return(0,r.jsx)(m.e.button,{...a,ref:t})});b.displayName="DialogTrigger";let y=(0,h.forwardRef)((e,t)=>{let n=c(),o=(0,i.dG)(n.getPositionerProps(),e);return(0,l.u)().unmounted?null:(0,r.jsx)(m.e.div,{...o,ref:t})});y.displayName="DialogPositioner";var x=n(2540);let w=(0,h.forwardRef)((e,t)=>{let n=c(),o=(0,l.u)(),a=(0,i.dG)(n.getContentProps(),o.getPresenceProps(),e);return o.unmounted?null:(0,r.jsx)(m.e.div,{...a,ref:(0,x.F)(o.ref,t)})});w.displayName="DialogContent";let E=(0,h.forwardRef)((e,t)=>{let n=c(),o=(0,i.dG)(n.getDescriptionProps(),e);return(0,r.jsx)(m.e.div,{...o,ref:t})});E.displayName="DialogDescription";let S=(0,h.forwardRef)((e,t)=>{let n=c(),o=(0,i.dG)(n.getTitleProps(),e);return(0,r.jsx)(m.e.h2,{...o,ref:t})});S.displayName="DialogTitle";let k=(0,h.forwardRef)((e,t)=>{let n=c(),o=(0,i.dG)(n.getCloseTriggerProps(),e);return(0,r.jsx)(m.e.button,{...o,ref:t})});k.displayName="DialogCloseTrigger";let O=(0,h.forwardRef)((e,t)=>{let n=c(),a=(0,o.Db)(),l=(0,s.o)({...a,present:n.open}),u=(0,i.dG)(n.getBackdropProps(),l.getPresenceProps(),e);return l.unmounted?null:(0,r.jsx)(m.e.div,{...u,ref:(0,x.F)(l.ref,t)})});O.displayName="DialogBackdrop";var C=n(7885),I=n(93064);let{withRootProvider:_,withContext:T,useStyles:P,PropsProvider:R}=(0,C.s)({key:"dialog"});_(e=>{let[t,{value:n,children:c}]=(0,a.l)(e),[d]=(0,o.$5)(t),f=(0,s.o)((0,i.dG)({present:n.open},t));return(0,r.jsx)(u,{value:n,children:(0,r.jsx)(o.qZ,{value:d,children:(0,r.jsx)(l.w,{value:f,children:c})})})},{defaultProps:{unmountOnExit:!0,lazyMount:!0}});let A=_(e=>{let[t,{children:n,...c}]=(0,a.l)(e),[d]=(0,o.$5)(t),f=v(c),h=(0,s.o)((0,i.dG)({present:f.open},t));return(0,r.jsx)(u,{value:f,children:(0,r.jsx)(o.qZ,{value:d,children:(0,r.jsx)(l.w,{value:h,children:n})})})},{defaultProps:{unmountOnExit:!0,lazyMount:!0}});T(b,"trigger",{forwardAsChild:!0});let N=T(y,"positioner",{forwardAsChild:!0}),M=T(w,"content",{forwardAsChild:!0});T(E,"description",{forwardAsChild:!0});let L=T(S,"title",{forwardAsChild:!0}),D=T(k,"closeTrigger",{forwardAsChild:!0}),F=(0,h.forwardRef)(function(e,t){let n=c();return(0,r.jsx)(I.m.button,{...e,ref:t,onClick:()=>n.setOpen(!1)})}),V=T(O,"backdrop",{forwardAsChild:!0}),j=T("div","body"),z=T("div","footer"),U=T("div","header")},3390:function(e,t,n){"use strict";n.d(t,{FI:function(){return P},Qy:function(){return T},Tn:function(){return _}});var r=n(26415),i=n(20749),o=n(97129),a=n(2540),s=n(87366),l=n(60015),u=n(88928),c=n(45503);let d="undefined"!=typeof window?o.useLayoutEffect:o.useEffect,[f,h]=(0,n(14443).k)({name:"FieldsetContext",hookName:"useFieldsetContext",providerName:"<FieldsetProvider />",strict:!1});var p=n(76596);let g=function(){var e,t,n,r,i;let a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},s=h(),l=(0,c.U)(),{ids:f,disabled:g=!!(null==s?void 0:s.disabled),invalid:v=!1,readOnly:m=!1,required:b=!1}=a,[y,x]=(0,o.useState)(!1),[w,E]=(0,o.useState)(!1),S=null!==(e=a.id)&&void 0!==e?e:(0,o.useId)(),k=(0,o.useRef)(null),O=null!==(t=null==f?void 0:f.control)&&void 0!==t?t:"field::".concat(S),C=null!==(n=null==f?void 0:f.errorText)&&void 0!==n?n:"field::".concat(S,"::error-text"),I=null!==(r=null==f?void 0:f.helperText)&&void 0!==r?r:"field::".concat(S,"::helper-text"),_=null!==(i=null==f?void 0:f.label)&&void 0!==i?i:"field::".concat(S,"::label");d(()=>{let e=k.current;if(!e)return;let t=()=>{let e=l.getRootNode();x(!!e.getElementById(C)),E(!!e.getElementById(I))};t();let n=new(l.getWindow()).MutationObserver(t);return n.observe(e,{childList:!0,subtree:!0}),()=>n.disconnect()},[l,C,I]);let T=(0,o.useMemo)(()=>{let e=[];return y&&v&&e.push(C),w&&e.push(I),e.join(" ")||void 0},[v,C,I,y,w]),P=(0,o.useMemo)(()=>()=>({...p.L.root.attrs,id:O,ref:k,role:"group","data-disabled":(0,u.PB)(g),"data-invalid":(0,u.PB)(v),"data-readonly":(0,u.PB)(m)}),[g,v,m,O]),R=(0,o.useMemo)(()=>()=>({...p.L.label.attrs,id:_,"data-disabled":(0,u.PB)(g),"data-invalid":(0,u.PB)(v),"data-readonly":(0,u.PB)(m),htmlFor:S}),[g,v,m,S,_]),A=(0,o.useMemo)(()=>()=>({"aria-describedby":T,"aria-invalid":(0,u.Qm)(v),"data-invalid":(0,u.PB)(v),"data-required":(0,u.PB)(b),"data-readonly":(0,u.PB)(m),id:S,required:b,disabled:g,readOnly:m}),[T,v,b,m,S,g]),N=(0,o.useMemo)(()=>()=>({...A(),...p.L.input.attrs}),[A]),M=(0,o.useMemo)(()=>()=>({...A(),...p.L.textarea.attrs}),[A]),L=(0,o.useMemo)(()=>()=>({...A(),...p.L.select.attrs}),[A]),D=(0,o.useMemo)(()=>()=>({id:I,...p.L.helperText.attrs,"data-disabled":(0,u.PB)(g)}),[g,I]),F=(0,o.useMemo)(()=>()=>({id:C,...p.L.errorText.attrs,"aria-live":"polite"}),[C]);return{ariaDescribedby:T,ids:{root:O,control:S,label:_,errorText:C,helperText:I},refs:{rootRef:k},disabled:g,invalid:v,readOnly:m,required:b,getLabelProps:R,getRootProps:P,getInputProps:N,getTextareaProps:M,getSelectProps:L,getHelperTextProps:D,getErrorTextProps:F,getRequiredIndicatorProps:(0,o.useMemo)(()=>()=>({"aria-hidden":!0,...p.L.requiredIndicator.attrs}),[])}};var v=n(51591);let m=(0,o.forwardRef)((e,t)=>{let[n,o]=(0,s.x)()(e,["id","ids","disabled","invalid","readOnly","required"]),u=g(n),c=(0,i.dG)(u.getRootProps(),o);return(0,r.jsx)(v.L,{value:u,children:(0,r.jsx)(l.e.div,{...c,ref:(0,a.F)(t,u.refs.rootRef)})})});m.displayName="FieldRoot";let b=(0,o.forwardRef)((e,t)=>{let n=(0,v.O)(),o=(0,i.dG)(null==n?void 0:n.getLabelProps(),e);return(0,r.jsx)(l.e.label,{...o,ref:t})});b.displayName="FieldLabel";let y=(0,o.forwardRef)((e,t)=>{let n=(0,v.O)(),o=(0,i.dG)(null==n?void 0:n.getHelperTextProps(),e);return(0,r.jsx)(l.e.span,{...o,ref:t})});y.displayName="FieldHelperText";let x=(0,o.forwardRef)((e,t)=>{let n=(0,v.O)(),o=(0,i.dG)(n.getErrorTextProps(),e);return(null==n?void 0:n.invalid)?(0,r.jsx)(l.e.span,{...o,ref:t}):null});x.displayName="FieldErrorText";var w=n(7885),E=n(60799);let{withProvider:S,withContext:k,useStyles:O,useClassNames:C,PropsProvider:I}=(0,w.s)({key:"field"}),_=S(m,"root",{forwardAsChild:!0}),T=k(b,"label",{forwardAsChild:!0});k(y,"helperText",{forwardAsChild:!0});let P=k(x,"errorText",{forwardAsChild:!0});!function(e){let{viewBox:t="0 0 24 24",d:n,displayName:i,defaultProps:a={}}=e,s=o.Children.toArray(e.path);(0,o.forwardRef)((e,i)=>(0,r.jsx)(E.J,{ref:i,asChild:!1,viewBox:t,...a,...e,children:s.length?s:(0,r.jsx)("path",{fill:"currentColor",d:n})})).displayName=i}({d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"})},88387:function(e,t,n){"use strict";n.d(t,{k:function(){return a}});var r=n(26415),i=n(97129),o=n(93064);let a=(0,i.forwardRef)(function(e,t){let{direction:n,align:i,justify:a,wrap:s,basis:l,grow:u,shrink:c,inline:d,...f}=e;return(0,r.jsx)(o.m.div,{ref:t,...f,css:{display:d?"inline-flex":"flex",flexDirection:n,alignItems:i,justifyContent:a,flexWrap:s,flexBasis:l,flexGrow:u,flexShrink:c,...e.css}})})},88803:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(26415),i=n(97129),o=n(28359),a=n(71891);let s=(0,n(93064).m)("div",{base:{display:"inline-flex",gap:"0.5rem",isolation:"isolate",position:"relative","& [data-group-item]":{_focusVisible:{zIndex:1}}},variants:{orientation:{horizontal:{flexDirection:"row"},vertical:{flexDirection:"column"}},attached:{true:{gap:"0!"}},grow:{true:{display:"flex","& > *":{flex:1}}},stacking:{"first-on-top":{"& > [data-group-item]":{zIndex:"calc(var(--group-count) - var(--group-index))"}},"last-on-top":{"& > [data-group-item]":{zIndex:"var(--group-index)"}}}},compoundVariants:[{orientation:"horizontal",attached:!0,css:{"& > *[data-first]":{borderEndRadius:"0!",marginEnd:"-1px"},"& > *[data-between]":{borderRadius:"0!",marginEnd:"-1px"},"& > *[data-last]":{borderStartRadius:"0!"}}},{orientation:"vertical",attached:!0,css:{"& > *[data-first]":{borderBottomRadius:"0!",marginBottom:"-1px"},"& > *[data-between]":{borderRadius:"0!",marginBottom:"-1px"},"& > *[data-last]":{borderTopRadius:"0!"}}}],defaultVariants:{orientation:"horizontal"}}),l=(0,i.memo)((0,i.forwardRef)(function(e,t){let{align:n="center",justify:l="flex-start",children:u,wrap:c,skip:d,...f}=e,h=(0,i.useMemo)(()=>{let e=i.Children.toArray(u).filter(i.isValidElement);if(1===e.length)return e;let t=e.filter(e=>!(null==d?void 0:d(e))),n=t.length;return 1===t.length?e:e.map(e=>{var r;let a=e.props;if(null==d?void 0:d(e))return e;let s=t.indexOf(e);return(0,i.cloneElement)(e,{...a,"data-group-item":"","data-first":(0,o.P)(0===s),"data-last":(0,o.P)(s===n-1),"data-between":(0,o.P)(s>0&&s<n-1),style:{"--group-count":n,"--group-index":s,...null!==(r=null==a?void 0:a.style)&&void 0!==r?r:{}}})})},[u,d]);return(0,r.jsx)(s,{ref:t,alignItems:n,justifyContent:l,flexWrap:c,...f,className:(0,a.cx)("chakra-group",e.className),children:h})}))},60799:function(e,t,n){"use strict";n.d(t,{J:function(){return c}});var r=n(26415),i=n(97129),o=n(71891),a=n(24410),s=n(93064);let{useRecipeResult:l,PropsProvider:u}=(0,a.d)({key:"icon"}),c=i.forwardRef(function(e,t){let{styles:n,className:i,props:a}=l({asChild:!e.as,...e});return(0,r.jsx)(s.m.svg,{ref:t,focusable:!1,"aria-hidden":"true",...a,css:[n,e.css],className:(0,o.cx)(i,e.className)})})},22391:function(e,t,n){"use strict";n.d(t,{Tw:function(){return f},W3:function(){return l},XC:function(){return s},aN:function(){return c},nQ:function(){return o},rE:function(){return u},sz:function(){return d},v4:function(){return a}});var r=n(26415),i=n(93064);let o=e=>(0,r.jsx)(i.m.svg,{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...e,children:(0,r.jsx)("path",{d:"M20 6 9 17l-5-5"})}),a=e=>(0,r.jsx)(i.m.svg,{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...e,children:(0,r.jsx)("path",{d:"m6 9 6 6 6-6"})}),s=e=>(0,r.jsx)(i.m.svg,{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...e,children:(0,r.jsx)("path",{d:"m9 18 6-6-6-6"})}),l=e=>(0,r.jsxs)(i.m.svg,{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...e,children:[(0,r.jsx)("circle",{cx:"12",cy:"12",r:"1"}),(0,r.jsx)("circle",{cx:"19",cy:"12",r:"1"}),(0,r.jsx)("circle",{cx:"5",cy:"12",r:"1"})]}),u=e=>(0,r.jsx)(i.m.svg,{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",...e,children:(0,r.jsx)("path",{d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11.0026 16L6.75999 11.7574L8.17421 10.3431L11.0026 13.1716L16.6595 7.51472L18.0737 8.92893L11.0026 16Z"})}),c=e=>(0,r.jsx)(i.m.svg,{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",...e,children:(0,r.jsx)("path",{d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 15H13V17H11V15ZM11 7H13V13H11V7Z"})}),d=e=>(0,r.jsx)(i.m.svg,{viewBox:"0 0 24 24",fill:"currentColor",stroke:"currentColor",strokeWidth:"0",...e,children:(0,r.jsx)("path",{d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 7H13V9H11V7ZM11 11H13V17H11V11Z"})}),f=e=>(0,r.jsx)(i.m.svg,{viewBox:"0 0 24 24",fill:"currentColor",...e,children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.7071 6.70711C19.0976 6.31658 19.0976 5.68342 18.7071 5.29289C18.3166 4.90237 17.6834 4.90237 17.2929 5.29289L12 10.5858L6.70711 5.29289C6.31658 4.90237 5.68342 4.90237 5.29289 5.29289C4.90237 5.68342 4.90237 6.31658 5.29289 6.70711L10.5858 12L5.29289 17.2929C4.90237 17.6834 4.90237 18.3166 5.29289 18.7071C5.68342 19.0976 6.31658 19.0976 6.70711 18.7071L12 13.4142L17.2929 18.7071C17.6834 19.0976 18.3166 19.0976 18.7071 18.7071C19.0976 18.3166 19.0976 17.6834 18.7071 17.2929L13.4142 12L18.7071 6.70711Z"})})},80690:function(e,t,n){"use strict";n.d(t,{I:function(){return d}});var r=n(26415),i=n(20749),o=n(97129),a=n(60015),s=n(51591);let l=(0,o.forwardRef)((e,t)=>{let n=(0,s.O)(),o=(0,i.dG)(null==n?void 0:n.getInputProps(),e);return(0,r.jsx)(a.e.input,{...o,ref:t})});l.displayName="FieldInput";let{withContext:u,PropsProvider:c}=(0,n(24410).d)({key:"input"}),d=u(l)},67327:function(e,t,n){"use strict";n.d(t,{r:function(){return o}});let{withContext:r,PropsProvider:i}=(0,n(24410).d)({key:"link"}),o=r("a")},95203:function(e,t,n){"use strict";n.d(t,{Dv:function(){return ei},sN:function(){return el},GP:function(){return ea},U5:function(){return es},kc:function(){return eu},Ku:function(){return en},k5:function(){return ed},bh:function(){return ec},ZB:function(){return ee},Cl:function(){return er},bF:function(){return et}});var r=n(26415),i=n(20749),o=n(97129);let a=e=>{let t=(0,o.useRef)(e),n=(0,o.useRef)(!1);(0,o.useEffect)(()=>{t.current=e}),(0,o.useEffect)(()=>{!0!==n.current&&(n.current=!0,t.current())},[])};var s=n(14933),l=n(41848),u=n(28864),c=n(14443);let[d,f]=(0,c.k)({name:"MenuContext",hookName:"useMenuContext",providerName:"<MenuProvider />",strict:!1}),[h,p]=(0,c.k)({name:"MenuMachineContext",hookName:"useMenuMachineContext",providerName:"<MenuMachineProvider />",strict:!1}),[g,v]=(0,c.k)({name:"MenuMachineContext",hookName:"useMenuMachineContext",providerName:"<MenuMachineProvider />",strict:!1});var m=n(87366),b=n(60061),y=n(77093),x=n(45503),w=n(16198);let E=e=>{let t=(0,o.useId)(),{getRootNode:n}=(0,x.U)(),{dir:r}=(0,w.P)(),i={id:t,dir:r,getRootNode:n,...e},a=(0,y.eO)(b.u_,i);return{api:b.$j(a,y.vs),service:a}};var S=n(60015);let k=(0,o.forwardRef)((e,t)=>{let n=f(),o=(0,u.u)(),a=(0,i.dG)({...n.getTriggerProps(),"aria-controls":o.unmounted?void 0:n.getTriggerProps()["aria-controls"]},e);return(0,r.jsx)(S.e.button,{...a,ref:t})});k.displayName="MenuTrigger";let O=(0,o.forwardRef)((e,t)=>{let n=f(),o=(0,i.dG)(n.getContextTriggerProps(),e);return(0,r.jsx)(S.e.button,{...o,ref:t})});O.displayName="MenuContextTrigger";let C=(0,o.forwardRef)((e,t)=>{let n=f(),o=(0,i.dG)(n.getPositionerProps(),e);return(0,u.u)().unmounted?null:(0,r.jsx)(S.e.div,{...o,ref:t})});C.displayName="MenuPositioner";let I=(0,o.forwardRef)((e,t)=>{let n=f(),o=(0,i.dG)(n.getSeparatorProps(),e);return(0,r.jsx)(S.e.hr,{...o,ref:t})});I.displayName="MenuSeparator";var _=n(2540);let T=(0,o.forwardRef)((e,t)=>{let n=f(),o=(0,u.u)(),a=(0,i.dG)(n.getContentProps(),o.getPresenceProps(),e);return o.unmounted?null:(0,r.jsx)(S.e.div,{...a,ref:(0,_.F)(o.ref,t)})});T.displayName="MenuContent";let P=(0,o.forwardRef)((e,t)=>{let n=f(),o=(0,i.dG)(n.getArrowTipProps(),e);return(0,r.jsx)(S.e.div,{...o,ref:t})});P.displayName="MenuArrowTip";let R=(0,o.forwardRef)((e,t)=>{let n=f(),o=(0,i.dG)(n.getArrowProps(),e);return(0,r.jsx)(S.e.div,{...o,ref:t})});R.displayName="MenuArrow";let A=(0,o.forwardRef)((e,t)=>{let n=f(),o=(0,i.dG)(n.getIndicatorProps(),e);return(0,r.jsx)(S.e.div,{...o,ref:t})});A.displayName="MenuIndicator";let[N,M]=(0,c.k)({name:"MenuItemGroupContext",hookName:"useMenuItemGroupContext",providerName:"<MenuItemGroupProvider />"}),L=(0,o.forwardRef)((e,t)=>{let[n,a]=(0,m.x)()(e,["id"]),s=f(),l={id:(0,o.useId)(),...n},u=(0,i.dG)(s.getItemGroupProps(l),a);return(0,r.jsx)(N,{value:l,children:(0,r.jsx)(S.e.div,{...u,ref:t})})});L.displayName="MenuItemGroup";let D=(0,o.forwardRef)((e,t)=>{let n=f(),o=M(),a=(0,i.dG)(n.getItemGroupLabelProps({htmlFor:o.id}),e);return(0,r.jsx)(S.e.div,{...a,ref:t})});D.displayName="MenuItemGroupLabel";let[F,V]=(0,c.k)({name:"MenuItemContext",hookName:"useMenuItemContext",providerName:"<MenuItemProvider />"}),[j,z]=(0,c.k)({name:"MenuItemPropsContext",hookName:"useMenuItemPropsContext",providerName:"<MenuItemPropsProvider />"}),U=(0,o.forwardRef)((e,t)=>{let[n,a]=(0,m.x)()(e,["closeOnSelect","disabled","value","valueText","onSelect"]),s=f(),l=(0,i.dG)(s.getItemProps(n),a),u=s.getItemState(n);return(0,o.useEffect)(()=>s.addItemListener({id:u.id,onSelect:n.onSelect}),[u.id,n.onSelect]),(0,r.jsx)(j,{value:n,children:(0,r.jsx)(F,{value:u,children:(0,r.jsx)(S.e.div,{...l,ref:t})})})});U.displayName="MenuItem";let B=(0,o.forwardRef)((e,t)=>{var n;let o=v(),a=(0,i.dG)(null!==(n=null==o?void 0:o())&&void 0!==n?n:{},e);return(0,r.jsx)(S.e.div,{...a,ref:t})});B.displayName="MenuTriggerItem";let W=(0,o.forwardRef)((e,t)=>{let n=f(),o=z(),a=(0,i.dG)(n.getItemTextProps(o),e);return(0,r.jsx)(S.e.div,{...a,ref:t})});W.displayName="MenuItemText";let H=(0,o.forwardRef)((e,t)=>{let n=f(),o=z(),a=(0,i.dG)(n.getItemIndicatorProps(o),e);return(0,r.jsx)(S.e.div,{...a,ref:t})});H.displayName="MenuItemIndicator";let $=(0,o.forwardRef)((e,t)=>{let[n,o]=(0,m.x)()(e,["checked","closeOnSelect","disabled","onCheckedChange","value","valueText"]),a={...n,type:"checkbox"},s=f(),l=(0,i.dG)(s.getOptionItemProps(a),o),u=s.getOptionItemState(a);return(0,r.jsx)(j,{value:a,children:(0,r.jsx)(F,{value:u,children:(0,r.jsx)(S.e.div,{...l,ref:t})})})});$.displayName="MenuCheckboxItem";let q=(0,o.forwardRef)((e,t)=>{let[n,a]=(0,m.x)()(e,["id","onValueChange","value"]),s=f(),l={id:(0,o.useId)(),...n},u=(0,i.dG)(s.getItemGroupProps({id:l.id}),a);return(0,r.jsx)(N,{value:l,children:(0,r.jsx)(S.e.div,{...u,ref:t})})});q.displayName="MenuRadioItemGroup";let G=(0,o.forwardRef)((e,t)=>{let[n,o]=(0,m.x)()(e,["closeOnSelect","disabled","value","valueText"]),a=f(),s=M(),l={...n,checked:s.value===n.value,type:"radio",onCheckedChange:()=>{var e;return null===(e=s.onValueChange)||void 0===e?void 0:e.call(s,{value:n.value})}},u=(0,i.dG)(a.getOptionItemProps(l),o),c=a.getOptionItemState(l);return(0,r.jsx)(j,{value:l,children:(0,r.jsx)(F,{value:c,children:(0,r.jsx)(S.e.div,{...u,ref:t})})})});G.displayName="MenuRadioItem";var K=n(7885),Z=n(22391);let{withRootProvider:Y,withContext:X,useStyles:Q,PropsProvider:J}=(0,K.s)({key:"menu"});Y(e=>{let t=f(),n=p(),[c,{value:v,children:m}]=(0,s.l)(e),{api:b,service:y}=v,x=(0,l.o)((0,i.dG)({present:b.open},c));a(()=>{n&&t&&(t.setChild(y),b.setParent(n))});let w=(0,o.useCallback)(()=>null==t?void 0:t.getTriggerItemProps(b),[b,t]);return(0,r.jsx)(g,{value:w,children:(0,r.jsx)(h,{value:y,children:(0,r.jsx)(d,{value:b,children:(0,r.jsx)(u.w,{value:x,children:m})})})})});let ee=Y(e=>{let[t,n]=(0,s.l)(e),[c,v]=(0,m.x)()(n,["anchorPoint","aria-label","closeOnSelect","composite","defaultHighlightedValue","defaultOpen","highlightedValue","id","ids","loopFocus","navigate","onEscapeKeyDown","onFocusOutside","onHighlightChange","onInteractOutside","onOpenChange","onPointerDownOutside","onSelect","open","positioning","typeahead"]),b=f(),y=p(),{api:x,service:w}=E(c),S=(0,l.o)((0,i.dG)({present:x.open},t));a(()=>{y&&b&&(b.setChild(w),x.setParent(y))});let k=(0,o.useCallback)(()=>null==b?void 0:b.getTriggerItemProps(x),[x,b]);return(0,r.jsx)(g,{value:k,children:(0,r.jsx)(h,{value:w,children:(0,r.jsx)(d,{value:x,children:(0,r.jsx)(u.w,{value:S,...v})})})})},{defaultProps:{lazyMount:!0,unmountOnExit:!0}}),et=X(k,"trigger",{forwardAsChild:!0});X(O,"contextTrigger",{forwardAsChild:!0});let en=X(C,"positioner",{forwardAsChild:!0}),er=X(I,"separator",{forwardAsChild:!0}),ei=X(T,"content",{forwardAsChild:!0}),eo=X(P,"arrowTip",{forwardAsChild:!0});X(R,"arrow",{forwardAsChild:!0,defaultProps:{children:(0,r.jsx)(eo,{})}}),X(A,"indicator",{forwardAsChild:!0});let ea=X(L,"itemGroup",{forwardAsChild:!0}),es=X(D,"itemGroupLabel",{forwardAsChild:!0}),el=X(U,"item",{forwardAsChild:!0});X(B,"item",{forwardAsChild:!0}),X(W,"itemText",{forwardAsChild:!0}),X("kbd","itemCommand");let eu=X(H,"itemIndicator",{forwardAsChild:!0,defaultProps:{children:(0,r.jsx)(Z.nQ,{boxSize:"4"})}});X($,"item",{forwardAsChild:!0});let ec=X(q,"itemGroup",{forwardAsChild:!0}),ed=X(G,"item",{forwardAsChild:!0})},7517:function(e,t,n){"use strict";n.d(t,{Ws:function(){return S},rM:function(){return k},SD:function(){return w}});var r=n(26415),i=n(51591),o=n(20749),a=n(97129),s=n(60015);let l=(0,a.forwardRef)((e,t)=>{let n=(0,i.O)(),a=(0,o.dG)(null==n?void 0:n.getSelectProps(),e);return(0,r.jsx)(s.e.select,{...a,ref:t})});l.displayName="FieldSelect";var u=n(62594),c=n(28359),d=n(71891),f=n(7885),h=n(93064),p=n(22391);let[g,v]=(0,u.k)({name:"NativeSelectBasePropsContext",hookName:"useNativeSelectBaseProps",providerName:"<NativeSelectRoot />",strict:!1}),{withProvider:m,useClassNames:b,useStyles:y,PropsProvider:x}=(0,f.s)({key:"nativeSelect"}),w=m("div","root",{wrapElement(e,t){var n,o;let a=(0,i.O)(),s=!!(null!==(n=null==a?void 0:a.disabled)&&void 0!==n?n:t.disabled),l=!!(null!==(o=null==a?void 0:a.invalid)&&void 0!==o?o:t.invalid);return(0,r.jsx)(g,{value:{disabled:s,invalid:l},children:e})}}),E=(0,h.m)(l,{},{forwardAsChild:!0}),S=(0,a.forwardRef)(function(e,t){let{children:n,placeholder:i,...o}=e,{disabled:a,invalid:s}=v(),l=y(),u=b();return(0,r.jsxs)(E,{disabled:a,"data-invalid":(0,c.P)(s),...o,ref:t,className:(0,d.cx)(u.field,e.className),css:[l.field,e.css],children:[i&&(0,r.jsx)("option",{value:"",children:i}),n]})});function k(e){var t;let n=y(),{disabled:i,invalid:o}=v(),a=b();return(0,r.jsx)(h.m.div,{...e,"data-disabled":(0,c.P)(i),"data-invalid":(0,c.P)(o),className:(0,d.cx)(a.indicator,e.className),css:[n.indicator,e.css],children:null!==(t=e.children)&&void 0!==t?t:(0,r.jsx)(p.v4,{})})}},74951:function(e,t,n){"use strict";n.d(t,{b:function(){return F},yk:function(){return L},Nu:function(){return M},Pg:function(){return A},xo:function(){return N}});var r=n(26415),i=n(20749),o=n(14933),a=n(41848),s=n(28864);let[l,u]=(0,n(14443).k)({name:"PopoverContext",hookName:"usePopoverContext",providerName:"<PopoverProvider />"});var c=n(33535),d=n(77093),f=n(97129),h=n(45503),p=n(16198);let g=e=>{let t=(0,f.useId)(),{getRootNode:n}=(0,h.U)(),{dir:r}=(0,p.P)(),i={id:t,dir:r,getRootNode:n,...e},o=(0,d.eO)(c.u_,i);return c.$j(o,d.vs)};var v=n(60015);let m=(0,f.forwardRef)((e,t)=>{let n=u(),o=(0,s.u)(),a=(0,i.dG)({...n.getTriggerProps(),"aria-controls":o.unmounted?void 0:n.getTriggerProps()["aria-controls"]},e);return(0,r.jsx)(v.e.button,{...a,ref:t})});m.displayName="PopoverTrigger";let b=(0,f.forwardRef)((e,t)=>{let n=u(),o=(0,s.u)(),a=(0,i.dG)(n.getPositionerProps(),e);return o.unmounted?null:(0,r.jsx)(v.e.div,{...a,ref:t})});b.displayName="PopoverPositioner";var y=n(2540);let x=(0,f.forwardRef)((e,t)=>{let n=u(),o=(0,s.u)(),a=(0,i.dG)(n.getContentProps(),o.getPresenceProps(),e);return o.unmounted?null:(0,r.jsx)(v.e.div,{...a,ref:(0,y.F)(o.ref,t)})});x.displayName="PopoverContent";let w=(0,f.forwardRef)((e,t)=>{let n=u(),o=(0,i.dG)(n.getArrowTipProps(),e);return(0,r.jsx)(v.e.div,{...o,ref:t})});w.displayName="PopoverArrowTip";let E=(0,f.forwardRef)((e,t)=>{let n=u(),o=(0,i.dG)(n.getArrowProps(),e);return(0,r.jsx)(v.e.div,{...o,ref:t})});E.displayName="PopoverArrow";let S=(0,f.forwardRef)((e,t)=>{let n=u(),o=(0,i.dG)(n.getCloseTriggerProps(),e);return(0,r.jsx)(v.e.button,{...o,ref:t})});S.displayName="PopoverCloseTrigger";let k=(0,f.forwardRef)((e,t)=>{let n=u(),o=(0,i.dG)(n.getIndicatorProps(),e);return(0,r.jsx)(v.e.div,{...o,ref:t})});k.displayName="PopoverIndicator";let O=(0,f.forwardRef)((e,t)=>{let n=u(),o=(0,i.dG)(n.getTitleProps(),e);return(0,r.jsx)(v.e.div,{...o,ref:t})});O.displayName="PopoverTitle";let C=(0,f.forwardRef)((e,t)=>{let n=u(),o=(0,i.dG)(n.getDescriptionProps(),e);return(0,r.jsx)(v.e.div,{...o,ref:t})});C.displayName="PopoverDescription";let I=(0,f.forwardRef)((e,t)=>{let n=u(),o=(0,i.dG)(n.getAnchorProps(),e);return(0,r.jsx)(v.e.div,{...o,ref:t})});I.displayName="PopoverAnchor";let{withRootProvider:_,withContext:T,useStyles:P,PropsProvider:R}=(0,n(7885).s)({key:"popover"});_(e=>{let[t,{value:n,children:u}]=(0,o.l)(e),c=(0,a.o)((0,i.dG)({present:n.open},t));return(0,r.jsx)(l,{value:n,children:(0,r.jsx)(s.w,{value:c,children:u})})});let A=_(e=>{let[t,{children:n,...u}]=(0,o.l)(e),c=g(u),d=(0,a.o)((0,i.dG)({present:c.open},t));return(0,r.jsx)(l,{value:c,children:(0,r.jsx)(s.w,{value:d,children:n})})}),N=T(m,"trigger",{forwardAsChild:!0}),M=T(b,"positioner",{forwardAsChild:!0}),L=T(x,"content",{forwardAsChild:!0}),D=T(w,"arrowTip",{forwardAsChild:!0});T(E,"arrow",{forwardAsChild:!0,defaultProps:{children:(0,r.jsx)(D,{})}}),T(S,"closeTrigger",{forwardAsChild:!0}),T(k,"indicator",{forwardAsChild:!0}),T(O,"title",{forwardAsChild:!0}),T(C,"description",{forwardAsChild:!0}),T("footer","footer"),T("header","header");let F=T("div","body");T(I,void 0,{forwardAsChild:!0})},43098:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var r=n(26415),i=n(97129),o=n(71891),a=n(27906),s=n(8593),l=n(24410),u=n(93064);let{useRecipeResult:c,PropsProvider:d}=(0,l.d)({key:"separator"}),f=(0,i.forwardRef)(function(e,t){let{styles:n,className:i,props:l}=c(e),d=e.orientation||"horizontal";return(0,r.jsx)(u.m.span,{ref:t,role:(0,a.HD)(d)?"separator":"presentation","aria-orientation":(0,a.HD)(d)?d:void 0,...(0,s.C)(l,["orientation"]),className:(0,o.cx)(i,e.className),css:[n,e.css]})})},65018:function(e,t,n){"use strict";n.d(t,{L:function(){return r}});let r=(0,n(93064).m)("div",{base:{flex:1,justifySelf:"stretch",alignSelf:"stretch"}});r.displayName="Spacer"},22952:function(e,t,n){"use strict";n.d(t,{$:function(){return o}});let{withContext:r,PropsProvider:i}=(0,n(24410).d)({key:"spinner"}),o=r("span")},36911:function(e,t,n){"use strict";n.d(t,{U:function(){return a}});var r=n(26415),i=n(97129),o=n(72891);let a=(0,i.forwardRef)(function(e,t){return(0,r.jsx)(o.K,{align:"center",...e,direction:"row",ref:t})})},72891:function(e,t,n){"use strict";n.d(t,{K:function(){return l}});var r=n(26415),i=n(97129),o=n(71891),a=n(93064),s=n(17875);let l=(0,i.forwardRef)(function(e,t){let{direction:n="column",align:l,justify:u,gap:c="0.5rem",wrap:d,children:f,separator:h,className:p,...g}=e,v=(0,i.useMemo)(()=>(function(e){let{gap:t,direction:n}=e,r={column:{marginY:t,marginX:0,borderInlineStartWidth:0,borderTopWidth:"1px"},"column-reverse":{marginY:t,marginX:0,borderInlineStartWidth:0,borderTopWidth:"1px"},row:{marginX:t,marginY:0,borderInlineStartWidth:"1px",borderTopWidth:0},"row-reverse":{marginX:t,marginY:0,borderInlineStartWidth:"1px",borderTopWidth:0}};return{"&":(0,s.X)(n,e=>r[e])}})({gap:c,direction:n}),[c,n]),m=(0,i.useMemo)(()=>h?i.Children.toArray(f).filter(e=>(0,i.isValidElement)(e)).map((e,t,n)=>{let o=void 0!==e.key?e.key:t,a=(0,i.cloneElement)(h,{css:[v,h.props.css]});return(0,r.jsxs)(i.Fragment,{children:[e,t===n.length-1?null:a]},o)}):f,[f,h,v]);return(0,r.jsx)(a.m.div,{ref:t,display:"flex",alignItems:l,justifyContent:u,flexDirection:n,flexWrap:d,gap:h?void 0:c,className:(0,o.cx)("chakra-stack",p),...g,children:m})})},11827:function(e,t,n){"use strict";n.d(t,{g:function(){return a}});var r=n(26415),i=n(97129),o=n(72891);let a=(0,i.forwardRef)(function(e,t){return(0,r.jsx)(o.K,{align:"center",...e,direction:"column",ref:t})})},81493:function(e,t,n){"use strict";n.d(t,{CP:function(){return R},RF:function(){return _},lj:function(){return P},yX:function(){return N},_l:function(){return I},Mi:function(){return T},x7:function(){return C}});var r=n(26415),i=n(77093),o=n(20749),a=n(56071),s=n(97129),l=n(45503),u=n(16198),c=n(60015);let[d,f]=(0,n(14443).k)({name:"ToastContext",hookName:"useToastContext",providerName:"<ToastProvider />"}),h=(0,s.forwardRef)((e,t)=>{let{toaster:n,children:d,...f}=e,h=(0,u.P)(),g=(0,l.U)(),v=(0,i.eO)(a.ru.machine,{store:n,id:(0,s.useId)(),dir:null==h?void 0:h.dir,getRootNode:null==g?void 0:g.getRootNode}),m=a.ru.connect(v,i.vs),b=(0,o.dG)(m.getGroupProps(),f);return(0,r.jsx)(c.e.div,{...b,ref:t,children:m.getToasts().map((e,t)=>(0,r.jsx)(p,{value:e,parent:v,index:t,children:e=>d(e)},e.id))})});h.displayName="Toaster";let p=e=>{let t=(0,l.U)(),n={...e.value,parent:e.parent,index:e.index,getRootNode:t.getRootNode},o=(0,i.eO)(a.u_,{...n}),s=a.$j(o,i.vs);return(0,r.jsx)(d,{value:s,children:e.children(e.value)})};p.displayName="ToastActor";let g=(0,s.forwardRef)((e,t)=>{let n=f(),i=(0,o.dG)(n.getRootProps(),e);return(0,r.jsxs)("div",{...i,ref:t,children:[(0,r.jsx)("div",{...n.getGhostBeforeProps()}),e.children,(0,r.jsx)("div",{...n.getGhostAfterProps()})]})});g.displayName="ToastRoot";let v=(0,s.forwardRef)((e,t)=>{let n=f(),i=(0,o.dG)(n.getCloseTriggerProps(),e);return(0,r.jsx)(c.e.button,{...i,ref:t})});v.displayName="ToastCloseTrigger";let m=(0,s.forwardRef)((e,t)=>{let n=f(),i=(0,o.dG)(n.getTitleProps(),e);return(0,r.jsx)(c.e.div,{...i,ref:t})});m.displayName="ToastTitle";let b=(0,s.forwardRef)((e,t)=>{let n=f(),i=(0,o.dG)(n.getDescriptionProps(),e);return(0,r.jsx)(c.e.div,{...i,ref:t})});b.displayName="ToastDescription";let y=(0,s.forwardRef)((e,t)=>{let n=f(),i=(0,o.dG)(n.getActionTriggerProps(),e);return(0,r.jsx)(c.e.button,{...i,ref:t})});y.displayName="ToastActionTrigger";var x=n(7885),w=n(93064),E=n(22391);let{withProvider:S,withContext:k,useStyles:O}=(0,x.s)({key:"toast"}),C=(0,w.m)(h,{},{forwardAsChild:!0}),I=S(g,"root",{forwardAsChild:!0}),_=k(v,"closeTrigger",{forwardAsChild:!0,defaultProps:{children:(0,r.jsx)(E.Tw,{})}}),T=k(m,"title",{forwardAsChild:!0}),P=k(b,"description",{forwardAsChild:!0}),R=k(y,"actionTrigger",{forwardAsChild:!0}),A={warning:E.aN,success:E.rE,error:E.aN},N=(0,s.forwardRef)(function(e,t){let n=f(),i=O(),o=A[n.type];return o?(0,r.jsx)(o,{ref:t,...e,css:[i.indicator,e.css]}):null})},92540:function(e,t,n){"use strict";n.d(t,{Ce:function(){return A},sb:function(){return R},_v:function(){return P},el:function(){return T},wY:function(){return I},aJ:function(){return _}});var r=n(26415),i=n(20749),o=n(14933),a=n(41848),s=n(28864);let[l,u]=(0,n(14443).k)({name:"TooltipContext",hookName:"useTooltipContext",providerName:"<TooltipProvider />"});var c=n(77093),d=n(76956),f=n(97129),h=n(45503),p=n(16198);let g=e=>{let t=(0,f.useId)(),{getRootNode:n}=(0,h.U)(),{dir:r}=(0,p.P)(),i={id:t,dir:r,getRootNode:n,...e},o=(0,c.eO)(d.u_,i);return d.$j(o,c.vs)};var v=n(60015);let m=(0,f.forwardRef)((e,t)=>{let n=u(),o=(0,i.dG)(n.getTriggerProps(),e);return(0,r.jsx)(v.e.button,{...o,ref:t})});m.displayName="TooltipTrigger";let b=(0,f.forwardRef)((e,t)=>{let n=u(),o=(0,i.dG)(n.getPositionerProps(),e);return(0,s.u)().unmounted?null:(0,r.jsx)(v.e.div,{...o,ref:t})});b.displayName="TooltipPositioner";var y=n(2540);let x=(0,f.forwardRef)((e,t)=>{let n=u(),o=(0,s.u)(),a=(0,i.dG)(n.getContentProps(),o.getPresenceProps(),e);return o.unmounted?null:(0,r.jsx)(v.e.div,{...a,ref:(0,y.F)(o.ref,t)})});x.displayName="TooltipContent";let w=(0,f.forwardRef)((e,t)=>{let n=u(),o=(0,i.dG)(n.getArrowTipProps(),e);return(0,r.jsx)(v.e.div,{...o,ref:t})});w.displayName="TooltipArrowTip";let E=(0,f.forwardRef)((e,t)=>{let n=u(),o=(0,i.dG)(n.getArrowProps(),e);return(0,r.jsx)(v.e.div,{...o,ref:t})});E.displayName="TooltipArrow";let{withRootProvider:S,withContext:k,useStyles:O,PropsProvider:C}=(0,n(7885).s)({key:"tooltip"});S(e=>{let[t,{value:n,children:u}]=(0,o.l)(e),c=(0,a.o)((0,i.dG)({present:n.open},t));return(0,r.jsx)(l,{value:n,children:(0,r.jsx)(s.w,{value:c,children:u})})});let I=S(e=>{let[t,{children:n,...u}]=(0,o.l)(e),c=g(u),d=(0,a.o)((0,i.dG)({present:c.open},t));return(0,r.jsx)(l,{value:c,children:(0,r.jsx)(s.w,{value:d,children:n})})},{defaultProps:{lazyMount:!0,unmountOnExit:!0}}),_=k(m,"trigger",{forwardAsChild:!0}),T=k(b,"positioner",{forwardAsChild:!0}),P=k(x,"content",{forwardAsChild:!0}),R=k(w,"arrowTip",{forwardAsChild:!0}),A=k(E,"arrow",{forwardAsChild:!0,defaultProps:{children:(0,r.jsx)(R,{})}})},40083:function(e,t,n){"use strict";n.d(t,{X:function(){return o}});let{withContext:r,PropsProvider:i}=(0,n(24410).d)({key:"heading"}),o=r("h2")},50519:function(e,t,n){"use strict";n.d(t,{x:function(){return o}});let{withContext:r,PropsProvider:i}=(0,n(24410).d)({key:"text"}),o=r("p")},62594:function(e,t,n){"use strict";n.d(t,{k:function(){return i}});var r=n(97129);function i(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{name:t,strict:n=!0,hookName:i="useContext",providerName:o="Provider",errorMessage:a,defaultValue:s}=e,l=(0,r.createContext)(s);return l.displayName=t,[l.Provider,function e(){let t=(0,r.useContext)(l);if(!t&&n){var s,u;let t=Error(null!=a?a:"".concat(i," returned `undefined`. Seems you forgot to wrap component within ").concat(o));throw t.name="ContextError",null===(s=(u=Error).captureStackTrace)||void 0===s||s.call(u,t,e),t}return t},l]}},70462:function(e,t,n){"use strict";n.d(t,{W:function(){return i}});var r=n(97129);function i(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=(0,r.useRef)(()=>{throw Error("Cannot call an event handler while rendering.")});return(0,r.useInsertionEffect)(()=>{n.current=e}),(0,r.useCallback)(function(){for(var e,t=arguments.length,r=Array(t),i=0;i<t;i++)r[i]=arguments[i];return null===(e=n.current)||void 0===e?void 0:e.call(n,...r)},t)}},32630:function(e,t,n){"use strict";n.d(t,{q:function(){return o}});var r=n(97129),i=n(70462);function o(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,i.W)(e.onOpen),n=(0,i.W)(e.onClose),[o,a]=(0,r.useState)(e.defaultOpen||!1),s=void 0!==e.open?e.open:o,l=void 0!==e.open,u=(0,r.useCallback)(()=>{l||a(!1),null==n||n()},[l,n]),c=(0,r.useCallback)(()=>{l||a(!0),null==t||t()},[l,t]),d=(0,r.useCallback)(()=>{s?u():c()},[s,c,u]);return{open:s,onOpen:c,onClose:u,onToggle:d,setOpen:a}}},55547:function(e,t,n){"use strict";n.d(t,{d:function(){return o}});let r=(...e)=>e.map(e=>e?.trim?.()).filter(Boolean).join(" "),i=/^on[A-Z]/;function o(...e){let t={};for(let n of e){for(let e in t){if(i.test(e)&&"function"==typeof t[e]&&"function"==typeof n[e]){t[e]=function(...e){return function(...t){e.forEach(e=>e?.(...t))}}(t[e],n[e]);continue}if("className"===e||"class"===e){t[e]=r(t[e],n[e]);continue}if("style"===e){t[e]=Object.assign({},t[e]??{},n[e]??{});continue}t[e]=void 0!==n[e]?n[e]:t[e]}for(let e in n)void 0===t[e]&&(t[e]=n[e])}return t}},62265:function(e,t,n){"use strict";n.d(t,{u_:function(){return ap}});var r,i=n(13447),o=n(97013),a=n(53618);let s=e=>/^var\(--.+\)$/.test(e),l=(e,t)=>null!=t?`${e}(${t})`:t,u=e=>{if(s(e)||null==e)return e;let t="string"==typeof e&&!e.endsWith("deg");return"number"==typeof e||t?`${e}deg`:e},c=e=>({values:["outside","inside","mixed","none"],transform(t,{token:n}){let r=n("colors.colorPalette.focusRing");return({inside:{"--focus-ring-color":r,[e]:{outlineOffset:"0px",outlineWidth:"var(--focus-ring-width, 1px)",outlineColor:"var(--focus-ring-color)",outlineStyle:"var(--focus-ring-style, solid)",borderColor:"var(--focus-ring-color)"}},outside:{"--focus-ring-color":r,[e]:{outlineWidth:"var(--focus-ring-width, 2px)",outlineOffset:"var(--focus-ring-offset, 2px)",outlineStyle:"var(--focus-ring-style, solid)",outlineColor:"var(--focus-ring-color)"}},mixed:{"--focus-ring-color":r,[e]:{outlineWidth:"var(--focus-ring-width, 3px)",outlineStyle:"var(--focus-ring-style, solid)",outlineColor:"color-mix(in srgb, var(--focus-ring-color), transparent 60%)",borderColor:"var(--focus-ring-color)"}},none:{"--focus-ring-color":r,[e]:{outline:"none"}}})[t]??{}}}),d=(0,i.R)("borderColor"),f=e=>({transition:e,transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"150ms"}),h=(0,o.Je)({hover:["@media (hover: hover)","&:is(:hover, [data-hover]):not(:disabled, [data-disabled])"],active:"&:is(:active, [data-active]):not(:disabled, [data-disabled], [data-state=open])",focus:"&:is(:focus, [data-focus])",focusWithin:"&:is(:focus-within, [data-focus-within])",focusVisible:"&:is(:focus-visible, [data-focus-visible])",disabled:"&:is(:disabled, [disabled], [data-disabled], [aria-disabled=true])",visited:"&:visited",target:"&:target",readOnly:"&:is([data-readonly], [aria-readonly=true], [readonly])",readWrite:"&:read-write",empty:"&:is(:empty, [data-empty])",checked:"&:is(:checked, [data-checked], [aria-checked=true], [data-state=checked])",enabled:"&:enabled",expanded:"&:is([aria-expanded=true], [data-expanded], [data-state=expanded])",highlighted:"&[data-highlighted]",complete:"&[data-complete]",incomplete:"&[data-incomplete]",dragging:"&[data-dragging]",before:"&::before",after:"&::after",firstLetter:"&::first-letter",firstLine:"&::first-line",marker:"&::marker",selection:"&::selection",file:"&::file-selector-button",backdrop:"&::backdrop",first:"&:first-of-type",last:"&:last-of-type",notFirst:"&:not(:first-of-type)",notLast:"&:not(:last-of-type)",only:"&:only-child",even:"&:nth-of-type(even)",odd:"&:nth-of-type(odd)",peerFocus:".peer:is(:focus, [data-focus]) ~ &",peerHover:".peer:is(:hover, [data-hover]):not(:disabled, [data-disabled]) ~ &",peerActive:".peer:is(:active, [data-active]):not(:disabled, [data-disabled]) ~ &",peerFocusWithin:".peer:focus-within ~ &",peerFocusVisible:".peer:is(:focus-visible, [data-focus-visible]) ~ &",peerDisabled:".peer:is(:disabled, [disabled], [data-disabled]) ~ &",peerChecked:".peer:is(:checked, [data-checked], [aria-checked=true], [data-state=checked]) ~ &",peerInvalid:".peer:is(:invalid, [data-invalid], [aria-invalid=true]) ~ &",peerExpanded:".peer:is([aria-expanded=true], [data-expanded], [data-state=expanded]) ~ &",peerPlaceholderShown:".peer:placeholder-shown ~ &",groupFocus:".group:is(:focus, [data-focus]) &",groupHover:".group:is(:hover, [data-hover]):not(:disabled, [data-disabled]) &",groupActive:".group:is(:active, [data-active]):not(:disabled, [data-disabled]) &",groupFocusWithin:".group:focus-within &",groupFocusVisible:".group:is(:focus-visible, [data-focus-visible]) &",groupDisabled:".group:is(:disabled, [disabled], [data-disabled]) &",groupChecked:".group:is(:checked, [data-checked], [aria-checked=true], [data-state=checked]) &",groupExpanded:".group:is([aria-expanded=true], [data-expanded], [data-state=expanded]) &",groupInvalid:".group:invalid &",indeterminate:"&:is(:indeterminate, [data-indeterminate], [aria-checked=mixed], [data-state=indeterminate])",required:"&:is([data-required], [aria-required=true])",valid:"&:is([data-valid], [data-state=valid])",invalid:"&:is([data-invalid], [aria-invalid=true], [data-state=invalid])",autofill:"&:autofill",inRange:"&:is(:in-range, [data-in-range])",outOfRange:"&:is(:out-of-range, [data-outside-range])",placeholder:"&::placeholder, &[data-placeholder]",placeholderShown:"&:is(:placeholder-shown, [data-placeholder-shown])",pressed:"&:is([aria-pressed=true], [data-pressed])",selected:"&:is([aria-selected=true], [data-selected])",grabbed:"&:is([aria-grabbed=true], [data-grabbed])",underValue:"&[data-state=under-value]",overValue:"&[data-state=over-value]",atValue:"&[data-state=at-value]",default:"&:default",optional:"&:optional",open:"&:is([open], [data-open], [data-state=open])",closed:"&:is([closed], [data-closed], [data-state=closed])",fullscreen:"&is(:fullscreen, [data-fullscreen])",loading:"&:is([data-loading], [aria-busy=true])",hidden:"&:is([hidden], [data-hidden])",current:"&[data-current]",currentPage:"&[aria-current=page]",currentStep:"&[aria-current=step]",today:"&[data-today]",unavailable:"&[data-unavailable]",rangeStart:"&[data-range-start]",rangeEnd:"&[data-range-end]",now:"&[data-now]",topmost:"&[data-topmost]",motionReduce:"@media (prefers-reduced-motion: reduce)",motionSafe:"@media (prefers-reduced-motion: no-preference)",print:"@media print",landscape:"@media (orientation: landscape)",portrait:"@media (orientation: portrait)",dark:".dark &, .dark .chakra-theme:not(.light) &",light:":root &, .light &",osDark:"@media (prefers-color-scheme: dark)",osLight:"@media (prefers-color-scheme: light)",highContrast:"@media (forced-colors: active)",lessContrast:"@media (prefers-contrast: less)",moreContrast:"@media (prefers-contrast: more)",ltr:"[dir=ltr] &",rtl:"[dir=rtl] &",scrollbar:"&::-webkit-scrollbar",scrollbarThumb:"&::-webkit-scrollbar-thumb",scrollbarTrack:"&::-webkit-scrollbar-track",horizontal:"&[data-orientation=horizontal]",vertical:"&[data-orientation=vertical]",icon:"& :where(svg)",starting:"@starting-style"}),p=(0,a.g)("bg-currentcolor"),g=e=>e===p.ref||"currentBg"===e,v=e=>({...e("colors"),currentBg:p}),m=(0,o.ZD)({conditions:h,utilities:{background:{values:v,shorthand:["bg"],transform(e,t){if(g(t.raw))return{background:p.ref};let n=(0,i.R)("background")(e,t);return{...n,[p.var]:n?.background}}},backgroundColor:{values:v,shorthand:["bgColor"],transform(e,t){if(g(t.raw))return{backgroundColor:p.ref};let n=(0,i.R)("backgroundColor")(e,t);return{...n,[p.var]:n?.backgroundColor}}},backgroundSize:{shorthand:["bgSize"]},backgroundPosition:{shorthand:["bgPos"]},backgroundRepeat:{shorthand:["bgRepeat"]},backgroundAttachment:{shorthand:["bgAttachment"]},backgroundClip:{shorthand:["bgClip"],values:["text"],transform:e=>"text"===e?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},backgroundGradient:{shorthand:["bgGradient"],values:e=>({...e("gradients"),"to-t":"linear-gradient(to top, var(--gradient))","to-tr":"linear-gradient(to top right, var(--gradient))","to-r":"linear-gradient(to right, var(--gradient))","to-br":"linear-gradient(to bottom right, var(--gradient))","to-b":"linear-gradient(to bottom, var(--gradient))","to-bl":"linear-gradient(to bottom left, var(--gradient))","to-l":"linear-gradient(to left, var(--gradient))","to-tl":"linear-gradient(to top left, var(--gradient))"}),transform:e=>({"--gradient-stops":"var(--gradient-from), var(--gradient-to)","--gradient":"var(--gradient-via-stops, var(--gradient-stops))",backgroundImage:e})},gradientFrom:{values:v,transform:(0,i.R)("--gradient-from")},gradientTo:{values:v,transform:(0,i.R)("--gradient-to")},gradientVia:{values:v,transform:(e,t)=>({...(0,i.R)("--gradient-via")(e,t),"--gradient-via-stops":"var(--gradient-from), var(--gradient-via), var(--gradient-to)"})},backgroundImage:{values:e=>({...e("gradients"),...e("assets")}),shorthand:["bgImg","bgImage"]},border:{values:"borders"},borderTop:{values:"borders"},borderLeft:{values:"borders"},borderBlockStart:{values:"borders"},borderRight:{values:"borders"},borderBottom:{values:"borders"},borderBlockEnd:{values:"borders"},borderInlineStart:{values:"borders",shorthand:["borderStart"]},borderInlineEnd:{values:"borders",shorthand:["borderEnd"]},borderInline:{values:"borders",shorthand:["borderX"]},borderBlock:{values:"borders",shorthand:["borderY"]},borderColor:{values:v,transform:(0,i.R)("borderColor")},borderTopColor:{values:v,transform:(0,i.R)("borderTopColor")},borderBlockStartColor:{values:v,transform:(0,i.R)("borderBlockStartColor")},borderBottomColor:{values:v,transform:(0,i.R)("borderBottomColor")},borderBlockEndColor:{values:v,transform:(0,i.R)("borderBlockEndColor")},borderLeftColor:{values:v,transform:(0,i.R)("borderLeftColor")},borderInlineStartColor:{values:v,shorthand:["borderStartColor"],transform:(0,i.R)("borderInlineStartColor")},borderRightColor:{values:v,transform:(0,i.R)("borderRightColor")},borderInlineEndColor:{values:v,shorthand:["borderEndColor"],transform:(0,i.R)("borderInlineEndColor")},borderStyle:{values:"borderStyles"},borderTopStyle:{values:"borderStyles"},borderBlockStartStyle:{values:"borderStyles"},borderBottomStyle:{values:"borderStyles"},borderBlockEndStyle:{values:"borderStyles"},borderInlineStartStyle:{values:"borderStyles",shorthand:["borderStartStyle"]},borderInlineEndStyle:{values:"borderStyles",shorthand:["borderEndStyle"]},borderLeftStyle:{values:"borderStyles"},borderRightStyle:{values:"borderStyles"},borderRadius:{values:"radii",shorthand:["rounded"]},borderTopLeftRadius:{values:"radii",shorthand:["roundedTopLeft"]},borderStartStartRadius:{values:"radii",shorthand:["roundedStartStart","borderTopStartRadius"]},borderEndStartRadius:{values:"radii",shorthand:["roundedEndStart","borderBottomStartRadius"]},borderTopRightRadius:{values:"radii",shorthand:["roundedTopRight"]},borderStartEndRadius:{values:"radii",shorthand:["roundedStartEnd","borderTopEndRadius"]},borderEndEndRadius:{values:"radii",shorthand:["roundedEndEnd","borderBottomEndRadius"]},borderBottomLeftRadius:{values:"radii",shorthand:["roundedBottomLeft"]},borderBottomRightRadius:{values:"radii",shorthand:["roundedBottomRight"]},borderInlineStartRadius:{values:"radii",property:"borderRadius",shorthand:["roundedStart","borderStartRadius"],transform:e=>({borderStartStartRadius:e,borderEndStartRadius:e})},borderInlineEndRadius:{values:"radii",property:"borderRadius",shorthand:["roundedEnd","borderEndRadius"],transform:e=>({borderStartEndRadius:e,borderEndEndRadius:e})},borderTopRadius:{values:"radii",property:"borderRadius",shorthand:["roundedTop"],transform:e=>({borderTopLeftRadius:e,borderTopRightRadius:e})},borderBottomRadius:{values:"radii",property:"borderRadius",shorthand:["roundedBottom"],transform:e=>({borderBottomLeftRadius:e,borderBottomRightRadius:e})},borderLeftRadius:{values:"radii",property:"borderRadius",shorthand:["roundedLeft"],transform:e=>({borderTopLeftRadius:e,borderBottomLeftRadius:e})},borderRightRadius:{values:"radii",property:"borderRadius",shorthand:["roundedRight"],transform:e=>({borderTopRightRadius:e,borderBottomRightRadius:e})},borderWidth:{values:"borderWidths"},borderBlockStartWidth:{values:"borderWidths"},borderTopWidth:{values:"borderWidths"},borderBottomWidth:{values:"borderWidths"},borderBlockEndWidth:{values:"borderWidths"},borderRightWidth:{values:"borderWidths"},borderInlineWidth:{values:"borderWidths",shorthand:["borderXWidth"]},borderInlineStartWidth:{values:"borderWidths",shorthand:["borderStartWidth"]},borderInlineEndWidth:{values:"borderWidths",shorthand:["borderEndWidth"]},borderLeftWidth:{values:"borderWidths"},borderBlockWidth:{values:"borderWidths",shorthand:["borderYWidth"]},color:{values:v,transform:(0,i.R)("color")},fill:{values:v,transform:(0,i.R)("fill")},stroke:{values:v,transform:(0,i.R)("stroke")},accentColor:{values:v,transform:(0,i.R)("accentColor")},divideX:{values:{type:"string"},transform:e=>({"& > :not(style, [hidden]) ~ :not(style, [hidden])":{borderInlineStartWidth:e,borderInlineEndWidth:"0px"}})},divideY:{values:{type:"string"},transform:e=>({"& > :not(style, [hidden]) ~ :not(style, [hidden])":{borderTopWidth:e,borderBottomWidth:"0px"}})},divideColor:{values:v,transform:(e,t)=>({"& > :not(style, [hidden]) ~ :not(style, [hidden])":d(e,t)})},divideStyle:{property:"borderStyle",transform:e=>({"& > :not(style, [hidden]) ~ :not(style, [hidden])":{borderStyle:e}})},boxShadow:{values:"shadows",shorthand:["shadow"]},boxShadowColor:{values:v,transform:(0,i.R)("--shadow-color"),shorthand:["shadowColor"]},mixBlendMode:{shorthand:["blendMode"]},backgroundBlendMode:{shorthand:["bgBlendMode"]},opacity:{values:"opacity"},filter:{transform:e=>"auto"!==e?{filter:e}:{filter:"var(--blur) var(--brightness) var(--contrast) var(--grayscale) var(--hue-rotate) var(--invert) var(--saturate) var(--sepia) var(--drop-shadow)"}},blur:{values:"blurs",transform:e=>({"--blur":l("blur",e)})},brightness:{transform:e=>({"--brightness":l("brightness",e)})},contrast:{transform:e=>({"--contrast":l("contrast",e)})},grayscale:{transform:e=>({"--grayscale":l("grayscale",e)})},hueRotate:{transform:e=>({"--hue-rotate":l("hue-rotate",u(e))})},invert:{transform:e=>({"--invert":l("invert",e)})},saturate:{transform:e=>({"--saturate":l("saturate",e)})},sepia:{transform:e=>({"--sepia":l("sepia",e)})},dropShadow:{transform:e=>({"--drop-shadow":l("drop-shadow",e)})},backdropFilter:{transform:e=>"auto"!==e?{backdropFilter:e}:{backdropFilter:"var(--backdrop-blur) var(--backdrop-brightness) var(--backdrop-contrast) var(--backdrop-grayscale) var(--backdrop-hue-rotate) var(--backdrop-invert) var(--backdrop-opacity) var(--backdrop-saturate) var(--backdrop-sepia)"}},backdropBlur:{values:"blurs",transform:e=>({"--backdrop-blur":l("blur",e)})},backdropBrightness:{transform:e=>({"--backdrop-brightness":l("brightness",e)})},backdropContrast:{transform:e=>({"--backdrop-contrast":l("contrast",e)})},backdropGrayscale:{transform:e=>({"--backdrop-grayscale":l("grayscale",e)})},backdropHueRotate:{transform:e=>({"--backdrop-hue-rotate":l("hue-rotate",u(e))})},backdropInvert:{transform:e=>({"--backdrop-invert":l("invert",e)})},backdropOpacity:{transform:e=>({"--backdrop-opacity":l("opacity",e)})},backdropSaturate:{transform:e=>({"--backdrop-saturate":l("saturate",e)})},backdropSepia:{transform:e=>({"--backdrop-sepia":l("sepia",e)})},flexBasis:{values:"sizes"},gap:{values:"spacing"},rowGap:{values:"spacing",shorthand:["gapY"]},columnGap:{values:"spacing",shorthand:["gapX"]},flexDirection:{shorthand:["flexDir"]},gridGap:{values:"spacing"},gridColumnGap:{values:"spacing"},gridRowGap:{values:"spacing"},outlineColor:{values:v,transform:(0,i.R)("outlineColor")},focusRing:c("&:is(:focus, [data-focus])"),focusVisibleRing:c("&:is(:focus-visible, [data-focus-visible])"),focusRingColor:{values:v,transform:(0,i.R)("--focus-ring-color")},focusRingOffset:{values:"spacing",transform:e=>({"--focus-ring-offset":e})},focusRingWidth:{values:"borderWidths",property:"outlineWidth",transform:e=>({"--focus-ring-width":e})},focusRingStyle:{values:"borderStyles",property:"outlineStyle",transform:e=>({"--focus-ring-style":e})},aspectRatio:{values:"aspectRatios"},width:{values:"sizes",shorthand:["w"]},inlineSize:{values:"sizes"},height:{values:"sizes",shorthand:["h"]},blockSize:{values:"sizes"},boxSize:{values:"sizes",property:"width",transform:e=>({width:e,height:e})},minWidth:{values:"sizes",shorthand:["minW"]},minInlineSize:{values:"sizes"},minHeight:{values:"sizes",shorthand:["minH"]},minBlockSize:{values:"sizes"},maxWidth:{values:"sizes",shorthand:["maxW"]},maxInlineSize:{values:"sizes"},maxHeight:{values:"sizes",shorthand:["maxH"]},maxBlockSize:{values:"sizes"},hideFrom:{values:"breakpoints",transform:(e,{raw:t,token:n})=>({[n.raw(`breakpoints.${t}`)?`@breakpoint ${t}`:`@media screen and (min-width: ${e})`]:{display:"none"}})},hideBelow:{values:"breakpoints",transform:(e,{raw:t,token:n})=>({[n.raw(`breakpoints.${t}`)?`@breakpoint ${t}Down`:`@media screen and (max-width: ${e})`]:{display:"none"}})},overscrollBehavior:{shorthand:["overscroll"]},overscrollBehaviorX:{shorthand:["overscrollX"]},overscrollBehaviorY:{shorthand:["overscrollY"]},scrollbar:{values:["visible","hidden"],transform(e){switch(e){case"visible":return{msOverflowStyle:"auto",scrollbarWidth:"auto","&::-webkit-scrollbar":{display:"block"}};case"hidden":return{msOverflowStyle:"none",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}};default:return{}}}},scrollbarColor:{values:v,transform:(0,i.R)("scrollbarColor")},scrollbarGutter:{values:"spacing"},scrollbarWidth:{values:"sizes"},scrollMargin:{values:"spacing"},scrollMarginTop:{values:"spacing"},scrollMarginBottom:{values:"spacing"},scrollMarginLeft:{values:"spacing"},scrollMarginRight:{values:"spacing"},scrollMarginX:{values:"spacing",transform:e=>({scrollMarginLeft:e,scrollMarginRight:e})},scrollMarginY:{values:"spacing",transform:e=>({scrollMarginTop:e,scrollMarginBottom:e})},scrollPadding:{values:"spacing"},scrollPaddingTop:{values:"spacing"},scrollPaddingBottom:{values:"spacing"},scrollPaddingLeft:{values:"spacing"},scrollPaddingRight:{values:"spacing"},scrollPaddingInline:{values:"spacing",shorthand:["scrollPaddingX"]},scrollPaddingBlock:{values:"spacing",shorthand:["scrollPaddingY"]},scrollSnapType:{values:{none:"none",x:"x var(--scroll-snap-strictness)",y:"y var(--scroll-snap-strictness)",both:"both var(--scroll-snap-strictness)"}},scrollSnapStrictness:{values:["mandatory","proximity"],transform:e=>({"--scroll-snap-strictness":e})},scrollSnapMargin:{values:"spacing"},scrollSnapMarginTop:{values:"spacing"},scrollSnapMarginBottom:{values:"spacing"},scrollSnapMarginLeft:{values:"spacing"},scrollSnapMarginRight:{values:"spacing"},listStylePosition:{shorthand:["listStylePos"]},listStyleImage:{values:"assets",shorthand:["listStyleImg"]},position:{shorthand:["pos"]},zIndex:{values:"zIndex"},inset:{values:"spacing"},insetInline:{values:"spacing",shorthand:["insetX"]},insetBlock:{values:"spacing",shorthand:["insetY"]},top:{values:"spacing"},insetBlockStart:{values:"spacing"},bottom:{values:"spacing"},insetBlockEnd:{values:"spacing"},left:{values:"spacing"},right:{values:"spacing"},insetInlineStart:{values:"spacing",shorthand:["insetStart"]},insetInlineEnd:{values:"spacing",shorthand:["insetEnd"]},ring:{transform:e=>({"--ring-offset-shadow":"var(--ring-inset) 0 0 0 var(--ring-offset-width) var(--ring-offset-color)","--ring-shadow":"var(--ring-inset) 0 0 0 calc(var(--ring-width) + var(--ring-offset-width)) var(--ring-color)","--ring-width":e,boxShadow:"var(--ring-offset-shadow), var(--ring-shadow), var(--shadow, 0 0 #0000)"})},ringColor:{values:v,transform:(0,i.R)("--ring-color")},ringOffset:{transform:e=>({"--ring-offset-width":e})},ringOffsetColor:{values:v,transform:(0,i.R)("--ring-offset-color")},ringInset:{transform:e=>({"--ring-inset":e})},margin:{values:"spacing",shorthand:["m"]},marginTop:{values:"spacing",shorthand:["mt"]},marginBlockStart:{values:"spacing"},marginRight:{values:"spacing",shorthand:["mr"]},marginBottom:{values:"spacing",shorthand:["mb"]},marginBlockEnd:{values:"spacing"},marginLeft:{values:"spacing",shorthand:["ml"]},marginInlineStart:{values:"spacing",shorthand:["ms","marginStart"]},marginInlineEnd:{values:"spacing",shorthand:["me","marginEnd"]},marginInline:{values:"spacing",shorthand:["mx","marginX"]},marginBlock:{values:"spacing",shorthand:["my","marginY"]},padding:{values:"spacing",shorthand:["p"]},paddingTop:{values:"spacing",shorthand:["pt"]},paddingRight:{values:"spacing",shorthand:["pr"]},paddingBottom:{values:"spacing",shorthand:["pb"]},paddingBlockStart:{values:"spacing"},paddingBlockEnd:{values:"spacing"},paddingLeft:{values:"spacing",shorthand:["pl"]},paddingInlineStart:{values:"spacing",shorthand:["ps","paddingStart"]},paddingInlineEnd:{values:"spacing",shorthand:["pe","paddingEnd"]},paddingInline:{values:"spacing",shorthand:["px","paddingX"]},paddingBlock:{values:"spacing",shorthand:["py","paddingY"]},textDecoration:{shorthand:["textDecor"]},textDecorationColor:{values:v,transform:(0,i.R)("textDecorationColor")},textShadow:{values:"shadows"},transform:{transform:e=>{let t=e;return"auto"===e&&(t="translateX(var(--translate-x, 0)) translateY(var(--translate-y, 0)) rotate(var(--rotate, 0)) scaleX(var(--scale-x, 1)) scaleY(var(--scale-y, 1)) skewX(var(--skew-x, 0)) skewY(var(--skew-y, 0))"),"auto-gpu"===e&&(t="translate3d(var(--translate-x, 0), var(--translate-y, 0), 0) rotate(var(--rotate, 0)) scaleX(var(--scale-x, 1)) scaleY(var(--scale-y, 1)) skewX(var(--skew-x, 0)) skewY(var(--skew-y, 0))"),{transform:t}}},skewX:{transform:e=>({"--skew-x":u(e)})},skewY:{transform:e=>({"--skew-y":u(e)})},scaleX:{transform:e=>({"--scale-x":e})},scaleY:{transform:e=>({"--scale-y":e})},scale:{transform:e=>"auto"!==e?{scale:e}:{scale:"var(--scale-x, 1) var(--scale-y, 1)"}},spaceXReverse:{values:{type:"boolean"},transform:e=>({"& > :not(style, [hidden]) ~ :not(style, [hidden])":{"--space-x-reverse":e?"1":void 0}})},spaceX:{property:"marginInlineStart",values:"spacing",transform:e=>({"& > :not(style, [hidden]) ~ :not(style, [hidden])":{"--space-x-reverse":"0",marginInlineStart:`calc(${e} * calc(1 - var(--space-x-reverse)))`,marginInlineEnd:`calc(${e} * var(--space-x-reverse))`}})},spaceYReverse:{values:{type:"boolean"},transform:e=>({"& > :not(style, [hidden]) ~ :not(style, [hidden])":{"--space-y-reverse":e?"1":void 0}})},spaceY:{property:"marginTop",values:"spacing",transform:e=>({"& > :not(style, [hidden]) ~ :not(style, [hidden])":{"--space-y-reverse":"0",marginTop:`calc(${e} * calc(1 - var(--space-y-reverse)))`,marginBottom:`calc(${e} * var(--space-y-reverse))`}})},rotate:{transform:e=>"auto"!==e?{rotate:u(e)}:{rotate:"var(--rotate-x, 0) var(--rotate-y, 0) var(--rotate-z, 0)"}},rotateX:{transform:e=>({"--rotate-x":u(e)})},rotateY:{transform:e=>({"--rotate-y":u(e)})},translate:{transform:e=>"auto"!==e?{translate:e}:{translate:"var(--translate-x) var(--translate-y)"}},translateX:{values:"spacing",transform:e=>({"--translate-x":e})},translateY:{values:"spacing",transform:e=>({"--translate-y":e})},transition:{values:["all","common","colors","opacity","position","backgrounds","size","shadow","transform"],transform(e){switch(e){case"all":return f("all");case"position":return f("left, right, top, bottom, inset-inline, inset-block");case"colors":return f("color, background-color, border-color, text-decoration-color, fill, stroke");case"opacity":return f("opacity");case"shadow":return f("box-shadow");case"transform":return f("transform");case"size":return f("width, height");case"backgrounds":return f("background, background-color, background-image, background-position");case"common":return f("color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter");default:return{transition:e}}}},transitionDuration:{values:"durations"},transitionProperty:{values:{common:"background-color, border-color, color, fill, stroke, opacity, box-shadow, translate, transform",colors:"background-color, border-color, color, fill, stroke",size:"width, height",position:"left, right, top, bottom, inset-inline, inset-block",background:"background, background-color, background-image, background-position"}},transitionTimingFunction:{values:"easings"},animation:{values:"animations"},animationDuration:{values:"durations"},animationDelay:{values:"durations"},animationTimingFunction:{values:"easings"},fontFamily:{values:"fonts"},fontSize:{values:"fontSizes"},fontWeight:{values:"fontWeights"},lineHeight:{values:"lineHeights"},letterSpacing:{values:"letterSpacings"},textIndent:{values:"spacing"},truncate:{values:{type:"boolean"},transform:e=>!0===e?{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}:{}},lineClamp:{transform:e=>"none"===e?{WebkitLineClamp:"unset"}:{overflow:"hidden",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",textWrap:"wrap"}},srOnly:{values:{type:"boolean"},transform:e=>b[e]||{}},debug:{values:{type:"boolean"},transform:e=>e?{outline:"1px solid blue !important","& > *":{outline:"1px solid red !important"}}:{}},caretColor:{values:v,transform:(0,i.R)("caretColor")},cursor:{values:"cursor"}}}),b={true:{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"},false:{position:"static",width:"auto",height:"auto",padding:"0",margin:"0",overflow:"visible",clip:"auto",whiteSpace:"normal"}};var y=n(28208);let x="var(--chakra-empty,/*!*/ /*!*/)",w=(0,o.NY)({"*":{fontFeatureSettings:'"cv11"',"--ring-inset":x,"--ring-offset-width":"0px","--ring-offset-color":"#fff","--ring-color":"rgba(66, 153, 225, 0.6)","--ring-offset-shadow":"0 0 #0000","--ring-shadow":"0 0 #0000",...Object.fromEntries(["brightness","contrast","grayscale","hue-rotate","invert","saturate","sepia","drop-shadow"].map(e=>[`--${e}`,x])),...Object.fromEntries(["blur","brightness","contrast","grayscale","hue-rotate","invert","opacity","saturate","sepia"].map(e=>[`--backdrop-${e}`,x])),"--global-font-mono":"fonts.mono","--global-font-body":"fonts.body","--global-color-border":"colors.border"},html:{color:"fg",bg:"bg",lineHeight:"1.5",colorPalette:"gray"},"*::placeholder, *[data-placeholder]":{color:"fg.muted/80"},"*::selection":{bg:"colorPalette.emphasized/80"}}),E=(0,o.K3)({"fill.muted":{value:{background:"colorPalette.muted",color:"colorPalette.fg"}},"fill.subtle":{value:{background:"colorPalette.subtle",color:"colorPalette.fg"}},"fill.surface":{value:{background:"colorPalette.subtle",color:"colorPalette.fg",boxShadow:"0 0 0px 1px var(--shadow-color)",boxShadowColor:"colorPalette.muted"}},"fill.solid":{value:{background:"colorPalette.solid",color:"colorPalette.contrast"}},"outline.subtle":{value:{color:"colorPalette.fg",boxShadow:"inset 0 0 0px 1px var(--shadow-color)",boxShadowColor:"colorPalette.subtle"}},"outline.solid":{value:{borderWidth:"1px",borderColor:"colorPalette.solid",color:"colorPalette.fg"}},"indicator.bottom":{value:{position:"relative","--indicator-color-fallback":"colors.colorPalette.solid",_before:{content:'""',position:"absolute",bottom:"var(--indicator-offset-y, 0)",insetInline:"var(--indicator-offset-x, 0)",height:"var(--indicator-thickness, 2px)",background:"var(--indicator-color, var(--indicator-color-fallback))"}}},"indicator.top":{value:{position:"relative","--indicator-color-fallback":"colors.colorPalette.solid",_before:{content:'""',position:"absolute",top:"var(--indicator-offset-y, 0)",insetInline:"var(--indicator-offset-x, 0)",height:"var(--indicator-thickness, 2px)",background:"var(--indicator-color, var(--indicator-color-fallback))"}}},"indicator.start":{value:{position:"relative","--indicator-color-fallback":"colors.colorPalette.solid",_before:{content:'""',position:"absolute",insetInlineStart:"var(--indicator-offset-x, 0)",insetBlock:"var(--indicator-offset-y, 0)",width:"var(--indicator-thickness, 2px)",background:"var(--indicator-color, var(--indicator-color-fallback))"}}},"indicator.end":{value:{position:"relative","--indicator-color-fallback":"colors.colorPalette.solid",_before:{content:'""',position:"absolute",insetInlineEnd:"var(--indicator-offset-x, 0)",insetBlock:"var(--indicator-offset-y, 0)",width:"var(--indicator-thickness, 2px)",background:"var(--indicator-color, var(--indicator-color-fallback))"}}},disabled:{value:{opacity:"0.5",cursor:"not-allowed"}},none:{value:{}}}),S=(0,o.Dt)({"slide-fade-in":{value:{transformOrigin:"var(--transform-origin)","&[data-placement^=top]":{animationName:"slide-from-bottom, fade-in"},"&[data-placement^=bottom]":{animationName:"slide-from-top, fade-in"},"&[data-placement^=left]":{animationName:"slide-from-right, fade-in"},"&[data-placement^=right]":{animationName:"slide-from-left, fade-in"}}},"slide-fade-out":{value:{transformOrigin:"var(--transform-origin)","&[data-placement^=top]":{animationName:"slide-to-bottom, fade-out"},"&[data-placement^=bottom]":{animationName:"slide-to-top, fade-out"},"&[data-placement^=left]":{animationName:"slide-to-right, fade-out"},"&[data-placement^=right]":{animationName:"slide-to-left, fade-out"}}},"scale-fade-in":{value:{transformOrigin:"var(--transform-origin)",animationName:"scale-in, fade-in"}},"scale-fade-out":{value:{transformOrigin:"var(--transform-origin)",animationName:"scale-out, fade-out"}}}),k=(0,o.a5)({className:"chakra-badge",base:{display:"inline-flex",alignItems:"center",borderRadius:"l2",gap:"1",fontWeight:"medium",fontVariantNumeric:"tabular-nums",whiteSpace:"nowrap",userSelect:"none"},variants:{variant:{solid:{bg:"colorPalette.solid",color:"colorPalette.contrast"},subtle:{bg:"colorPalette.subtle",color:"colorPalette.fg"},outline:{color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},surface:{bg:"colorPalette.subtle",color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},plain:{color:"colorPalette.fg"}},size:{xs:{textStyle:"2xs",px:"1",minH:"4"},sm:{textStyle:"xs",px:"1.5",minH:"5"},md:{textStyle:"sm",px:"2",minH:"6"},lg:{textStyle:"sm",px:"2.5",minH:"7"}}},defaultVariants:{variant:"subtle",size:"sm"}}),O=(0,o.a5)({className:"chakra-button",base:{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",borderRadius:"l2",whiteSpace:"nowrap",verticalAlign:"middle",borderWidth:"1px",borderColor:"transparent",cursor:"button",flexShrink:"0",outline:"0",lineHeight:"1.2",isolation:"isolate",fontWeight:"medium",transitionProperty:"common",transitionDuration:"moderate",focusVisibleRing:"outside",_disabled:{layerStyle:"disabled"},_icon:{flexShrink:"0"}},variants:{size:{"2xs":{h:"6",minW:"6",textStyle:"xs",px:"2",gap:"1",_icon:{width:"3.5",height:"3.5"}},xs:{h:"8",minW:"8",textStyle:"xs",px:"2.5",gap:"1",_icon:{width:"4",height:"4"}},sm:{h:"9",minW:"9",px:"3.5",textStyle:"sm",gap:"2",_icon:{width:"4",height:"4"}},md:{h:"10",minW:"10",textStyle:"sm",px:"4",gap:"2",_icon:{width:"5",height:"5"}},lg:{h:"11",minW:"11",textStyle:"md",px:"5",gap:"3",_icon:{width:"5",height:"5"}},xl:{h:"12",minW:"12",textStyle:"md",px:"5",gap:"2.5",_icon:{width:"5",height:"5"}},"2xl":{h:"16",minW:"16",textStyle:"lg",px:"7",gap:"3",_icon:{width:"6",height:"6"}}},variant:{solid:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"transparent",_hover:{bg:"colorPalette.solid/90"},_expanded:{bg:"colorPalette.solid/90"}},subtle:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderColor:"transparent",_hover:{bg:"colorPalette.muted"},_expanded:{bg:"colorPalette.muted"}},surface:{bg:"colorPalette.subtle",color:"colorPalette.fg",shadow:"0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted",_hover:{bg:"colorPalette.muted"},_expanded:{bg:"colorPalette.muted"}},outline:{borderWidth:"1px",borderColor:"colorPalette.muted",color:"colorPalette.fg",_hover:{bg:"colorPalette.subtle"},_expanded:{bg:"colorPalette.subtle"}},ghost:{bg:"transparent",color:"colorPalette.fg",_hover:{bg:"colorPalette.subtle"},_expanded:{bg:"colorPalette.subtle"}},plain:{color:"colorPalette.fg"}}},defaultVariants:{size:"md",variant:"solid"}}),C=(0,o.a5)({className:"chakra-checkmark",base:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:"0",color:"white",borderWidth:"1px",borderColor:"transparent",borderRadius:"l1",cursor:"checkbox",focusVisibleRing:"outside",_icon:{boxSize:"full"},_invalid:{colorPalette:"red",borderColor:"border.error"},_disabled:{opacity:"0.5",cursor:"disabled"}},variants:{size:{xs:{boxSize:"3"},sm:{boxSize:"4"},md:{boxSize:"5",p:"0.5"},lg:{boxSize:"6",p:"0.5"}},variant:{solid:{borderColor:"border","&:is([data-state=checked], [data-state=indeterminate])":{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},outline:{borderColor:"border","&:is([data-state=checked], [data-state=indeterminate])":{color:"colorPalette.fg",borderColor:"colorPalette.solid"}},subtle:{bg:"colorPalette.muted",borderColor:"colorPalette.muted","&:is([data-state=checked], [data-state=indeterminate])":{color:"colorPalette.fg"}},plain:{"&:is([data-state=checked], [data-state=indeterminate])":{color:"colorPalette.fg"}},inverted:{borderColor:"border",color:"colorPalette.fg","&:is([data-state=checked], [data-state=indeterminate])":{borderColor:"colorPalette.solid"}}}},defaultVariants:{variant:"solid",size:"md"}}),{variants:I,defaultVariants:_}=k,T=(0,o.a5)({className:"chakra-code",base:{fontFamily:"mono",alignItems:"center",display:"inline-flex",borderRadius:"l2"},variants:I,defaultVariants:_}),P=(0,o.a5)({className:"color-swatch",base:{boxSize:"var(--swatch-size)",shadow:"inset 0 0 0 1px rgba(0, 0, 0, 0.1)","--checker-size":"8px","--checker-bg":"colors.bg","--checker-fg":"colors.bg.emphasized",background:"linear-gradient(var(--color), var(--color)), repeating-conic-gradient(var(--checker-fg) 0%, var(--checker-fg) 25%, var(--checker-bg) 0%, var(--checker-bg) 50%) 0% 50% / var(--checker-size) var(--checker-size) !important",display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:"0"},variants:{size:{"2xs":{"--swatch-size":"sizes.3.5"},xs:{"--swatch-size":"sizes.4"},sm:{"--swatch-size":"sizes.4.5"},md:{"--swatch-size":"sizes.5"},lg:{"--swatch-size":"sizes.6"},xl:{"--swatch-size":"sizes.7"},"2xl":{"--swatch-size":"sizes.8"},inherit:{"--swatch-size":"inherit"},full:{"--swatch-size":"100%"}},shape:{square:{borderRadius:"none"},circle:{borderRadius:"full"},rounded:{borderRadius:"l1"}}},defaultVariants:{size:"md",shape:"rounded"}}),R=(0,o.a5)({className:"chakra-container",base:{position:"relative",maxWidth:"8xl",w:"100%",mx:"auto",px:{base:"4",md:"6",lg:"8"}},variants:{centerContent:{true:{display:"flex",flexDirection:"column",alignItems:"center"}},fluid:{true:{maxWidth:"full"}}}}),A=(0,o.a5)({className:"chakra-heading",base:{fontFamily:"heading",fontWeight:"semibold"},variants:{size:{xs:{textStyle:"xs"},sm:{textStyle:"sm"},md:{textStyle:"md"},lg:{textStyle:"lg"},xl:{textStyle:"xl"},"2xl":{textStyle:"2xl"},"3xl":{textStyle:"3xl"},"4xl":{textStyle:"4xl"},"5xl":{textStyle:"5xl"},"6xl":{textStyle:"6xl"},"7xl":{textStyle:"7xl"}}},defaultVariants:{size:"xl"}}),N=(0,o.a5)({className:"chakra-icon",base:{display:"inline-block",lineHeight:"1em",flexShrink:"0",color:"currentcolor",verticalAlign:"middle"},variants:{size:{inherit:{},xs:{boxSize:"3"},sm:{boxSize:"4"},md:{boxSize:"5"},lg:{boxSize:"6"},xl:{boxSize:"7"},"2xl":{boxSize:"8"}}},defaultVariants:{size:"inherit"}}),M=(0,o.a5)({className:"chakra-input",base:{width:"100%",minWidth:"0",outline:"0",position:"relative",appearance:"none",textAlign:"start",borderRadius:"l2",_disabled:{layerStyle:"disabled"},height:"var(--input-height)",minW:"var(--input-height)","--focus-color":"colors.colorPalette.focusRing","--error-color":"colors.border.error",_invalid:{focusRingColor:"var(--error-color)",borderColor:"var(--error-color)"}},variants:{size:{"2xs":{textStyle:"xs",px:"2","--input-height":"sizes.7"},xs:{textStyle:"xs",px:"2","--input-height":"sizes.8"},sm:{textStyle:"sm",px:"2.5","--input-height":"sizes.9"},md:{textStyle:"sm",px:"3","--input-height":"sizes.10"},lg:{textStyle:"md",px:"4","--input-height":"sizes.11"},xl:{textStyle:"md",px:"4.5","--input-height":"sizes.12"},"2xl":{textStyle:"lg",px:"5","--input-height":"sizes.16"}},variant:{outline:{bg:"transparent",borderWidth:"1px",borderColor:"border",focusVisibleRing:"inside",focusRingColor:"var(--focus-color)"},subtle:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted",focusVisibleRing:"inside",focusRingColor:"var(--focus-color)"},flushed:{bg:"transparent",borderBottomWidth:"1px",borderBottomColor:"border",borderRadius:"0",px:"0",_focusVisible:{borderColor:"var(--focus-color)",boxShadow:"0px 1px 0px 0px var(--focus-color)",_invalid:{borderColor:"var(--error-color)",boxShadow:"0px 1px 0px 0px var(--error-color)"}}}}},defaultVariants:{size:"md",variant:"outline"}}),L=(0,o.a5)({className:"chakra-input-addon",base:{flex:"0 0 auto",width:"auto",display:"flex",alignItems:"center",whiteSpace:"nowrap",alignSelf:"stretch",borderRadius:"l2"},variants:{size:M.variants.size,variant:{outline:{borderWidth:"1px",borderColor:"border",bg:"bg.muted"},subtle:{borderWidth:"1px",borderColor:"transparent",bg:"bg.emphasized"},flushed:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}},defaultVariants:{size:"md",variant:"outline"}}),D=(0,o.a5)({className:"chakra-kbd",base:{display:"inline-flex",alignItems:"center",fontWeight:"medium",fontFamily:"mono",flexShrink:"0",whiteSpace:"nowrap",wordSpacing:"-0.5em",userSelect:"none",px:"1",borderRadius:"l2"},variants:{variant:{raised:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderWidth:"1px",borderBottomWidth:"2px",borderColor:"colorPalette.muted"},outline:{borderWidth:"1px",color:"colorPalette.fg"},subtle:{bg:"colorPalette.muted",color:"colorPalette.fg"},plain:{color:"colorPalette.fg"}},size:{sm:{textStyle:"xs",height:"4.5"},md:{textStyle:"sm",height:"5"},lg:{textStyle:"md",height:"6"}}},defaultVariants:{size:"md",variant:"raised"}}),F=(0,o.a5)({className:"chakra-link",base:{display:"inline-flex",alignItems:"center",outline:"none",gap:"1.5",cursor:"pointer",borderRadius:"l1",focusRing:"outside"},variants:{variant:{underline:{color:"colorPalette.fg",textDecoration:"underline",textUnderlineOffset:"3px",textDecorationColor:"currentColor/20"},plain:{color:"colorPalette.fg",_hover:{textDecoration:"underline",textUnderlineOffset:"3px",textDecorationColor:"currentColor/20"}}}},defaultVariants:{variant:"plain"}}),V=(0,o.a5)({className:"chakra-mark",base:{bg:"transparent",color:"inherit",whiteSpace:"nowrap"},variants:{variant:{subtle:{bg:"colorPalette.subtle",color:"inherit"},solid:{bg:"colorPalette.solid",color:"colorPalette.contrast"},text:{fontWeight:"medium"},plain:{}}}}),j=(0,o.a5)({className:"chakra-radiomark",base:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,verticalAlign:"top",color:"white",borderWidth:"1px",borderColor:"transparent",borderRadius:"full",cursor:"radio",_focusVisible:{outline:"2px solid",outlineColor:"colorPalette.focusRing",outlineOffset:"2px"},_invalid:{colorPalette:"red",borderColor:"red.500"},_disabled:{opacity:"0.5",cursor:"disabled"},"& .dot":{height:"100%",width:"100%",borderRadius:"full",bg:"currentColor",scale:"0.4"}},variants:{variant:{solid:{borderWidth:"1px",borderColor:"border",_checked:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},subtle:{borderWidth:"1px",bg:"colorPalette.muted",borderColor:"colorPalette.muted",color:"transparent",_checked:{color:"colorPalette.fg"}},outline:{borderWidth:"1px",borderColor:"inherit",_checked:{color:"colorPalette.fg",borderColor:"colorPalette.solid"},"& .dot":{scale:"0.6"}},inverted:{bg:"bg",borderWidth:"1px",borderColor:"inherit",_checked:{color:"colorPalette.solid",borderColor:"currentcolor"}}},size:{xs:{boxSize:"3"},sm:{boxSize:"4"},md:{boxSize:"5"},lg:{boxSize:"6"}}},defaultVariants:{variant:"solid",size:"md"}}),z=(0,o.a5)({className:"chakra-separator",base:{display:"block",borderColor:"border"},variants:{variant:{solid:{borderStyle:"solid"},dashed:{borderStyle:"dashed"},dotted:{borderStyle:"dotted"}},orientation:{vertical:{borderInlineStartWidth:"var(--separator-thickness)"},horizontal:{borderTopWidth:"var(--separator-thickness)"}},size:{xs:{"--separator-thickness":"0.5px"},sm:{"--separator-thickness":"1px"},md:{"--separator-thickness":"2px"},lg:{"--separator-thickness":"3px"}}},defaultVariants:{size:"sm",variant:"solid",orientation:"horizontal"}}),U=(0,o.a5)({className:"chakra-skeleton",base:{},variants:{loading:{true:{borderRadius:"l2",boxShadow:"none",backgroundClip:"padding-box",cursor:"default",color:"transparent",pointerEvents:"none",userSelect:"none",flexShrink:"0","&::before, &::after, *":{visibility:"hidden"}},false:{background:"unset",animation:"fade-in var(--fade-duration, 0.1s) ease-out !important"}},variant:{pulse:{background:"bg.emphasized",animation:"pulse",animationDuration:"var(--duration, 1.2s)"},shine:{"--animate-from":"200%","--animate-to":"-200%","--start-color":"colors.bg.muted","--end-color":"colors.bg.emphasized",backgroundImage:"linear-gradient(270deg,var(--start-color),var(--end-color),var(--end-color),var(--start-color))",backgroundSize:"400% 100%",animation:"bg-position var(--duration, 5s) ease-in-out infinite"},none:{animation:"none"}}},defaultVariants:{variant:"pulse",loading:!0}}),B=(0,o.a5)({className:"chakra-skip-nav",base:{display:"inline-flex",bg:"bg.panel",padding:"2.5",borderRadius:"l2",fontWeight:"semibold",focusVisibleRing:"outside",textStyle:"sm",userSelect:"none",border:"0",height:"1px",width:"1px",margin:"-1px",outline:"0",overflow:"hidden",position:"absolute",clip:"rect(0 0 0 0)",_focusVisible:{clip:"auto",width:"auto",height:"auto",position:"fixed",top:"6",insetStart:"6"}}}),W=(0,o.a5)({className:"chakra-spinner",base:{display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderWidth:"2px",borderRadius:"full",width:"var(--spinner-size)",height:"var(--spinner-size)",animation:"spin",animationDuration:"slowest","--spinner-track-color":"transparent",borderBottomColor:"var(--spinner-track-color)",borderInlineStartColor:"var(--spinner-track-color)"},variants:{size:{inherit:{"--spinner-size":"1em"},xs:{"--spinner-size":"sizes.3"},sm:{"--spinner-size":"sizes.4"},md:{"--spinner-size":"sizes.5"},lg:{"--spinner-size":"sizes.8"},xl:{"--spinner-size":"sizes.10"}}},defaultVariants:{size:"md"}}),H=(0,o.a5)({className:"chakra-textarea",base:{width:"100%",minWidth:"0",outline:"0",position:"relative",appearance:"none",textAlign:"start",borderRadius:"l2",_disabled:{layerStyle:"disabled"},"--focus-color":"colors.colorPalette.focusRing","--error-color":"colors.border.error",_invalid:{focusRingColor:"var(--error-color)",borderColor:"var(--error-color)"}},variants:{size:{xs:{textStyle:"xs",px:"2",py:"1.5",scrollPaddingBottom:"1.5"},sm:{textStyle:"sm",px:"2.5",py:"2",scrollPaddingBottom:"2"},md:{textStyle:"sm",px:"3",py:"2",scrollPaddingBottom:"2"},lg:{textStyle:"md",px:"4",py:"3",scrollPaddingBottom:"3"},xl:{textStyle:"md",px:"4.5",py:"3.5",scrollPaddingBottom:"3.5"}},variant:{outline:{bg:"transparent",borderWidth:"1px",borderColor:"border",focusVisibleRing:"inside"},subtle:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted",focusVisibleRing:"inside"},flushed:{bg:"transparent",borderBottomWidth:"1px",borderBottomColor:"border",borderRadius:"0",px:"0",_focusVisible:{borderColor:"var(--focus-color)",boxShadow:"0px 1px 0px 0px var(--focus-color)"}}}},defaultVariants:{size:"md",variant:"outline"}}),$=o.tQ.colors({bg:{DEFAULT:{value:{_light:"{colors.white}",_dark:"{colors.black}"}},subtle:{value:{_light:"{colors.gray.50}",_dark:"{colors.gray.950}"}},muted:{value:{_light:"{colors.gray.100}",_dark:"{colors.gray.900}"}},emphasized:{value:{_light:"{colors.gray.200}",_dark:"{colors.gray.800}"}},inverted:{value:{_light:"{colors.black}",_dark:"{colors.white}"}},panel:{value:{_light:"{colors.white}",_dark:"{colors.gray.950}"}},error:{value:{_light:"{colors.red.50}",_dark:"{colors.red.950}"}},warning:{value:{_light:"{colors.orange.50}",_dark:"{colors.orange.950}"}},success:{value:{_light:"{colors.green.50}",_dark:"{colors.green.950}"}},info:{value:{_light:"{colors.blue.50}",_dark:"{colors.blue.950}"}}},fg:{DEFAULT:{value:{_light:"{colors.black}",_dark:"{colors.gray.50}"}},muted:{value:{_light:"{colors.gray.600}",_dark:"{colors.gray.400}"}},subtle:{value:{_light:"{colors.gray.400}",_dark:"{colors.gray.500}"}},inverted:{value:{_light:"{colors.gray.50}",_dark:"{colors.black}"}},error:{value:{_light:"{colors.red.500}",_dark:"{colors.red.400}"}},warning:{value:{_light:"{colors.orange.600}",_dark:"{colors.orange.300}"}},success:{value:{_light:"{colors.green.600}",_dark:"{colors.green.300}"}},info:{value:{_light:"{colors.blue.600}",_dark:"{colors.blue.300}"}}},border:{DEFAULT:{value:{_light:"{colors.gray.200}",_dark:"{colors.gray.800}"}},muted:{value:{_light:"{colors.gray.100}",_dark:"{colors.gray.900}"}},subtle:{value:{_light:"{colors.gray.50}",_dark:"{colors.gray.950}"}},emphasized:{value:{_light:"{colors.gray.300}",_dark:"{colors.gray.700}"}},inverted:{value:{_light:"{colors.gray.800}",_dark:"{colors.gray.200}"}},error:{value:{_light:"{colors.red.500}",_dark:"{colors.red.400}"}},warning:{value:{_light:"{colors.orange.500}",_dark:"{colors.orange.400}"}},success:{value:{_light:"{colors.green.500}",_dark:"{colors.green.400}"}},info:{value:{_light:"{colors.blue.500}",_dark:"{colors.blue.400}"}}},gray:{contrast:{value:{_light:"{colors.white}",_dark:"{colors.black}"}},fg:{value:{_light:"{colors.gray.800}",_dark:"{colors.gray.200}"}},subtle:{value:{_light:"{colors.gray.100}",_dark:"{colors.gray.900}"}},muted:{value:{_light:"{colors.gray.200}",_dark:"{colors.gray.800}"}},emphasized:{value:{_light:"{colors.gray.300}",_dark:"{colors.gray.700}"}},solid:{value:{_light:"{colors.gray.900}",_dark:"{colors.white}"}},focusRing:{value:{_light:"{colors.gray.400}",_dark:"{colors.gray.400}"}}},red:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.red.700}",_dark:"{colors.red.300}"}},subtle:{value:{_light:"{colors.red.100}",_dark:"{colors.red.900}"}},muted:{value:{_light:"{colors.red.200}",_dark:"{colors.red.800}"}},emphasized:{value:{_light:"{colors.red.300}",_dark:"{colors.red.700}"}},solid:{value:{_light:"{colors.red.600}",_dark:"{colors.red.600}"}},focusRing:{value:{_light:"{colors.red.500}",_dark:"{colors.red.500}"}}},orange:{contrast:{value:{_light:"white",_dark:"black"}},fg:{value:{_light:"{colors.orange.700}",_dark:"{colors.orange.300}"}},subtle:{value:{_light:"{colors.orange.100}",_dark:"{colors.orange.900}"}},muted:{value:{_light:"{colors.orange.200}",_dark:"{colors.orange.800}"}},emphasized:{value:{_light:"{colors.orange.300}",_dark:"{colors.orange.700}"}},solid:{value:{_light:"{colors.orange.600}",_dark:"{colors.orange.500}"}},focusRing:{value:{_light:"{colors.orange.500}",_dark:"{colors.orange.500}"}}},green:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.green.700}",_dark:"{colors.green.300}"}},subtle:{value:{_light:"{colors.green.100}",_dark:"{colors.green.900}"}},muted:{value:{_light:"{colors.green.200}",_dark:"{colors.green.800}"}},emphasized:{value:{_light:"{colors.green.300}",_dark:"{colors.green.700}"}},solid:{value:{_light:"{colors.green.600}",_dark:"{colors.green.600}"}},focusRing:{value:{_light:"{colors.green.500}",_dark:"{colors.green.500}"}}},blue:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.blue.700}",_dark:"{colors.blue.300}"}},subtle:{value:{_light:"{colors.blue.100}",_dark:"{colors.blue.900}"}},muted:{value:{_light:"{colors.blue.200}",_dark:"{colors.blue.800}"}},emphasized:{value:{_light:"{colors.blue.300}",_dark:"{colors.blue.700}"}},solid:{value:{_light:"{colors.blue.600}",_dark:"{colors.blue.600}"}},focusRing:{value:{_light:"{colors.blue.500}",_dark:"{colors.blue.500}"}}},yellow:{contrast:{value:{_light:"black",_dark:"black"}},fg:{value:{_light:"{colors.yellow.800}",_dark:"{colors.yellow.300}"}},subtle:{value:{_light:"{colors.yellow.100}",_dark:"{colors.yellow.900}"}},muted:{value:{_light:"{colors.yellow.200}",_dark:"{colors.yellow.800}"}},emphasized:{value:{_light:"{colors.yellow.300}",_dark:"{colors.yellow.700}"}},solid:{value:{_light:"{colors.yellow.300}",_dark:"{colors.yellow.300}"}},focusRing:{value:{_light:"{colors.yellow.500}",_dark:"{colors.yellow.500}"}}},teal:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.teal.700}",_dark:"{colors.teal.300}"}},subtle:{value:{_light:"{colors.teal.100}",_dark:"{colors.teal.900}"}},muted:{value:{_light:"{colors.teal.200}",_dark:"{colors.teal.800}"}},emphasized:{value:{_light:"{colors.teal.300}",_dark:"{colors.teal.700}"}},solid:{value:{_light:"{colors.teal.600}",_dark:"{colors.teal.600}"}},focusRing:{value:{_light:"{colors.teal.500}",_dark:"{colors.teal.500}"}}},purple:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.purple.700}",_dark:"{colors.purple.300}"}},subtle:{value:{_light:"{colors.purple.100}",_dark:"{colors.purple.900}"}},muted:{value:{_light:"{colors.purple.200}",_dark:"{colors.purple.800}"}},emphasized:{value:{_light:"{colors.purple.300}",_dark:"{colors.purple.700}"}},solid:{value:{_light:"{colors.purple.600}",_dark:"{colors.purple.600}"}},focusRing:{value:{_light:"{colors.purple.500}",_dark:"{colors.purple.500}"}}},pink:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.pink.700}",_dark:"{colors.pink.300}"}},subtle:{value:{_light:"{colors.pink.100}",_dark:"{colors.pink.900}"}},muted:{value:{_light:"{colors.pink.200}",_dark:"{colors.pink.800}"}},emphasized:{value:{_light:"{colors.pink.300}",_dark:"{colors.pink.700}"}},solid:{value:{_light:"{colors.pink.600}",_dark:"{colors.pink.600}"}},focusRing:{value:{_light:"{colors.pink.500}",_dark:"{colors.pink.500}"}}},cyan:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.cyan.700}",_dark:"{colors.cyan.300}"}},subtle:{value:{_light:"{colors.cyan.100}",_dark:"{colors.cyan.900}"}},muted:{value:{_light:"{colors.cyan.200}",_dark:"{colors.cyan.800}"}},emphasized:{value:{_light:"{colors.cyan.300}",_dark:"{colors.cyan.700}"}},solid:{value:{_light:"{colors.cyan.600}",_dark:"{colors.cyan.600}"}},focusRing:{value:{_light:"{colors.cyan.500}",_dark:"{colors.cyan.500}"}}}}),q=o.tQ.radii({l1:{value:"{radii.xs}"},l2:{value:"{radii.sm}"},l3:{value:"{radii.md}"}}),G=o.tQ.shadows({xs:{value:{_light:"0px 1px 2px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/20}",_dark:"0px 1px 1px {black/64}, 0px 0px 1px inset {colors.gray.300/20}"}},sm:{value:{_light:"0px 2px 4px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 2px 4px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},md:{value:{_light:"0px 4px 8px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 4px 8px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},lg:{value:{_light:"0px 8px 16px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 8px 16px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},xl:{value:{_light:"0px 16px 24px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 16px 24px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},"2xl":{value:{_light:"0px 24px 40px {colors.gray.900/16}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 24px 40px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},inner:{value:{_light:"inset 0 2px 4px 0 {black/5}",_dark:"inset 0 2px 4px 0 black"}},inset:{value:{_light:"inset 0 0 0 1px {black/5}",_dark:"inset 0 0 0 1px {colors.gray.300/5}"}}});var K=n(26558),Z=n(72766),Y=Object.defineProperty,X=(e,t,n)=>t in e?Y(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Q=(e,t,n)=>X(e,"symbol"!=typeof t?t+"":t,n),J={itemToValue:e=>"string"==typeof e?e:(0,Z.Kn)(e)&&(0,Z.m2)(e,"value")?e.value:"",itemToString:e=>"string"==typeof e?e:(0,Z.Kn)(e)&&(0,Z.m2)(e,"label")?e.label:J.itemToValue(e),isItemDisabled:e=>!!((0,Z.Kn)(e)&&(0,Z.m2)(e,"disabled"))&&!!e.disabled},ee=class e{constructor(t){this.options=t,Q(this,"items"),Q(this,"copy",t=>new e({...this.options,items:t??[...this.items]})),Q(this,"isEqual",e=>(0,Z.Xy)(this.items,e.items)),Q(this,"setItems",e=>this.copy(e)),Q(this,"getValues",(e=this.items)=>Array.from(e).map(e=>this.getItemValue(e)).filter(Boolean)),Q(this,"find",e=>{if(null==e)return null;let t=this.indexOf(e);return null!=t?this.at(t):null}),Q(this,"findMany",e=>Array.from(e).map(e=>this.find(e)).filter(e=>null!=e)),Q(this,"at",e=>{if(!this.options.groupBy&&!this.options.groupSort)return this.items[e]??null;let t=0;for(let[,n]of this.group())for(let r of n){if(t===e)return r;t++}return null}),Q(this,"sortFn",(e,t)=>(this.indexOf(e)??0)-(this.indexOf(t)??0)),Q(this,"sort",e=>[...e].sort(this.sortFn.bind(this))),Q(this,"getItemValue",e=>null==e?null:this.options.itemToValue?.(e)??J.itemToValue(e)),Q(this,"getItemDisabled",e=>null!=e&&(this.options.isItemDisabled?.(e)??J.isItemDisabled(e))),Q(this,"stringifyItem",e=>null==e?null:this.options.itemToString?.(e)??J.itemToString(e)),Q(this,"stringify",e=>null==e?null:this.stringifyItem(this.find(e))),Q(this,"stringifyItems",(e,t=", ")=>Array.from(e).map(e=>this.stringifyItem(e)).filter(Boolean).join(t)),Q(this,"stringifyMany",(e,t)=>this.stringifyItems(this.findMany(e),t)),Q(this,"has",e=>-1!==this.indexOf(e)),Q(this,"hasItem",e=>null!=e&&this.has(this.getItemValue(e))),Q(this,"group",()=>{let{groupBy:e,groupSort:t}=this.options;if(!e)return[["",[...this.items]]];let n=new Map;this.items.forEach((t,r)=>{let i=e(t,r);n.has(i)||n.set(i,[]),n.get(i).push(t)});let r=Array.from(n.entries());return t&&r.sort(([e],[n])=>{if("function"==typeof t)return t(e,n);if(Array.isArray(t)){let r=t.indexOf(e),i=t.indexOf(n);return -1===r?1:-1===i?-1:r-i}return"asc"===t?e.localeCompare(n):"desc"===t?n.localeCompare(e):0}),r}),Q(this,"getNextValue",(e,t=1,n=!1)=>{let r=this.indexOf(e);if(-1===r)return null;for(r=n?Math.min(r+t,this.size-1):r+t;r<=this.size&&this.getItemDisabled(this.at(r));)r++;return this.getItemValue(this.at(r))}),Q(this,"getPreviousValue",(e,t=1,n=!1)=>{let r=this.indexOf(e);if(-1===r)return null;for(r=n?Math.max(r-t,0):r-t;r>=0&&this.getItemDisabled(this.at(r));)r--;return this.getItemValue(this.at(r))}),Q(this,"indexOf",e=>{if(null==e)return -1;if(!this.options.groupBy&&!this.options.groupSort)return this.items.findIndex(t=>this.getItemValue(t)===e);let t=0;for(let[,n]of this.group())for(let r of n){if(this.getItemValue(r)===e)return t;t++}return -1}),Q(this,"getByText",(e,t)=>{let n=null!=t?en(this.items,this.indexOf(t)):this.items;return 1===e.length&&(n=n.filter(e=>this.getItemValue(e)!==t)),n.find(t=>et(this.stringifyItem(t),e))}),Q(this,"search",(e,t)=>{let{state:n,currentValue:r,timeout:i=350}=t,o=n.keysSoFar+e,a=o.length>1&&Array.from(o).every(e=>e===o[0])?o[0]:o,s=this.getByText(a,r),l=this.getItemValue(s);function u(){clearTimeout(n.timer),n.timer=-1}return function e(t){n.keysSoFar=t,u(),""!==t&&(n.timer=+setTimeout(()=>{e(""),u()},i))}(o),l}),Q(this,"update",(e,t)=>{let n=this.items.findIndex(t=>this.getItemValue(t)===e);return -1===n?this:this.copy([...this.items.slice(0,n),t,...this.items.slice(n+1)])}),Q(this,"insert",(e,...t)=>this.copy(er(this.items,e,...t))),Q(this,"insertBefore",(e,...t)=>{let n=this.indexOf(e);if(-1===n){if(0!==this.items.length)return this;n=0}return this.copy(er(this.items,n,...t))}),Q(this,"insertAfter",(e,...t)=>{let n=this.indexOf(e);if(-1===n){if(0!==this.items.length)return this;n=0}return this.copy(er(this.items,n+1,...t))}),Q(this,"prepend",(...e)=>this.copy(er(this.items,0,...e))),Q(this,"append",(...e)=>this.copy(er(this.items,this.items.length,...e))),Q(this,"filter",e=>{let t=this.items.filter((t,n)=>e(this.stringifyItem(t),n));return this.copy(t)}),Q(this,"remove",(...e)=>{let t=e.map(e=>"string"==typeof e?e:this.getItemValue(e));return this.copy(this.items.filter(e=>{let n=this.getItemValue(e);return null!=n&&!t.includes(n)}))}),Q(this,"move",(e,t)=>{let n=this.indexOf(e);return -1===n?this:this.copy(ei(this.items,[n],t))}),Q(this,"moveBefore",(e,...t)=>{let n=this.items.findIndex(t=>this.getItemValue(t)===e);if(-1===n)return this;let r=t.map(e=>this.items.findIndex(t=>this.getItemValue(t)===e)).sort((e,t)=>e-t);return this.copy(ei(this.items,r,n))}),Q(this,"moveAfter",(e,...t)=>{let n=this.items.findIndex(t=>this.getItemValue(t)===e);if(-1===n)return this;let r=t.map(e=>this.items.findIndex(t=>this.getItemValue(t)===e)).sort((e,t)=>e-t);return this.copy(ei(this.items,r,n+1))}),Q(this,"reorder",(e,t)=>this.copy(ei(this.items,[e],t))),Q(this,"compareValue",(e,t)=>{let n=this.indexOf(e),r=this.indexOf(t);return n<r?-1:n>r?1:0}),Q(this,"range",(e,t)=>{let n=[],r=e;for(;null!=r;){if(this.find(r)&&n.push(r),r===t)return n;r=this.getNextValue(r)}return[]}),Q(this,"getValueRange",(e,t)=>e&&t?0>=this.compareValue(e,t)?this.range(e,t):this.range(t,e):[]),Q(this,"toString",()=>{let e="";for(let t of this.items)e+=[this.getItemValue(t),this.stringifyItem(t),this.getItemDisabled(t)].filter(Boolean).join(":")+",";return e}),Q(this,"toJSON",()=>({size:this.size,first:this.firstValue,last:this.lastValue})),this.items=[...t.items]}get size(){return this.items.length}get firstValue(){let e=0;for(;this.getItemDisabled(this.at(e));)e++;return this.getItemValue(this.at(e))}get lastValue(){let e=this.size-1;for(;this.getItemDisabled(this.at(e));)e--;return this.getItemValue(this.at(e))}*[Symbol.iterator](){yield*this.items}},et=(e,t)=>!!e?.toLowerCase().startsWith(t.toLowerCase()),en=(e,t)=>e.map((n,r)=>e[(Math.max(t,0)+r)%e.length]);function er(e,t,...n){return[...e.slice(0,t),...n,...e.slice(t)]}function ei(e,t,n){let r=(t=[...t].sort((e,t)=>e-t)).map(t=>e[t]);for(let n=t.length-1;n>=0;n--)e=[...e.slice(0,t[n]),...e.slice(t[n]+1)];return n=Math.max(0,n-t.filter(e=>e<n).length),[...e.slice(0,n),...r,...e.slice(n)]}var eo=n(88928),ea=n(31298),es=n(11302),el=n(20749),eu=n(83331),ec=n(41869),ed=(0,K.F)("combobox").parts("root","clearTrigger","content","control","input","item","itemGroup","itemGroupLabel","itemIndicator","itemText","label","list","positioner","trigger");ed.build();var ef=e=>new ee(e);ef.empty=()=>new ee({items:[]});var eh=e=>e.ids?.control??`combobox:${e.id}:control`,ep=e=>e.ids?.input??`combobox:${e.id}:input`,eg=e=>e.ids?.content??`combobox:${e.id}:content`,ev=e=>e.ids?.positioner??`combobox:${e.id}:popper`,em=e=>e.ids?.trigger??`combobox:${e.id}:toggle-btn`,eb=e=>e.ids?.clearTrigger??`combobox:${e.id}:clear-btn`,ey=e=>e.getById(eg(e)),ex=e=>e.getById(ep(e)),ew=e=>e.getById(ev(e)),eE=e=>e.getById(eh(e)),eS=e=>e.getById(em(e)),ek=e=>e.getById(eb(e)),eO=(e,t)=>{if(null==t)return;let n=`[role=option][data-value="${CSS.escape(t)}"]`;return(0,eo.IO)(ey(e),n)},eC=e=>{let t=ex(e);e.isActiveElement(t)||t?.focus({preventScroll:!0})},eI=e=>{let t=eS(e);e.isActiveElement(t)||t?.focus({preventScroll:!0})},{guards:e_,createMachine:eT,choose:eP}=(0,el.cY)(),{and:eR,not:eA}=e_;function eN({context:e,prop:t,computed:n}){return(0,Z.EQ)(t("selectionBehavior"),{preserve:e.get("inputValue"),replace:n("valueAsString"),clear:""})}eT({props:({props:e})=>({loopFocus:!0,openOnClick:!1,defaultValue:[],closeOnSelect:!e.multiple,allowCustomValue:!1,inputBehavior:"none",selectionBehavior:e.multiple?"clear":"replace",openOnKeyPress:!0,openOnChange:!0,composite:!0,navigate({node:e}){(0,eo.wq)(e)},collection:ef.empty(),...e,positioning:{placement:"bottom",sameWidth:!0,...e.positioning},translations:{triggerLabel:"Toggle suggestions",clearTriggerLabel:"Clear value",...e.translations}}),initialState:({prop:e})=>e("open")||e("defaultOpen")?"suggesting":"idle",context:({prop:e,bindable:t,getContext:n})=>({currentPlacement:t(()=>({defaultValue:void 0})),value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),isEqual:Z.Xy,hash:e=>e.join(","),onChange(t){let r=n(),i=r.get("selectedItems"),o=e("collection"),a=t.map(e=>i.find(t=>o.getItemValue(t)===e)||o.find(e));r.set("selectedItems",a),e("onValueChange")?.({value:t,items:a})}})),highlightedValue:t(()=>({defaultValue:e("defaultHighlightedValue")||null,value:e("highlightedValue"),onChange(t){let n=e("collection").find(t);e("onHighlightChange")?.({highlightedValue:t,highlightedItem:n})}})),inputValue:t(()=>{let t=e("inputValue")||e("defaultInputValue")||"",n=e("defaultValue")||e("value")||[];if(!t.trim()&&!e("multiple")){let r=e("collection").stringifyMany(n);t=(0,Z.EQ)(e("selectionBehavior"),{preserve:t||r,replace:r,clear:""})}return{defaultValue:t,value:e("inputValue"),onChange(t){e("onInputValueChange")?.({inputValue:t})}}}),highlightedItem:t(()=>{let t=e("highlightedValue");return{defaultValue:e("collection").find(t)}}),selectedItems:t(()=>{let t=e("value")||e("defaultValue")||[];return{defaultValue:e("collection").findMany(t)}})}),computed:{isInputValueEmpty:({context:e})=>0===e.get("inputValue").length,isInteractive:({prop:e})=>!(e("readOnly")||e("disabled")),autoComplete:({prop:e})=>"autocomplete"===e("inputBehavior"),autoHighlight:({prop:e})=>"autohighlight"===e("inputBehavior"),hasSelectedItems:({context:e})=>e.get("value").length>0,valueAsString:({context:e,prop:t})=>t("collection").stringifyItems(e.get("selectedItems")),isCustomValue:({context:e,computed:t})=>e.get("inputValue")!==t("valueAsString")},watch({context:e,prop:t,track:n,action:r}){n([()=>e.hash("value")],()=>{r(["syncSelectedItems"])}),n([()=>e.get("inputValue")],()=>{r(["syncInputValue"])}),n([()=>e.get("highlightedValue")],()=>{r(["syncHighlightedItem","autofillInputValue"])}),n([()=>t("open")],()=>{r(["toggleVisibility"])})},on:{"SELECTED_ITEMS.SYNC":{actions:["syncSelectedItems"]},"HIGHLIGHTED_VALUE.SET":{actions:["setHighlightedItem"]},"ITEM.SELECT":{actions:["selectItem"]},"ITEM.CLEAR":{actions:["clearItem"]},"VALUE.SET":{actions:["setValue"]},"INPUT_VALUE.SET":{actions:["setInputValue"]},"POSITIONING.SET":{actions:["reposition"]}},entry:eP([{guard:"autoFocus",actions:["setInitialFocus"]}]),states:{idle:{tags:["idle","closed"],entry:["scrollContentToTop","clearHighlightedItem"],on:{"CONTROLLED.OPEN":{target:"interacting"},"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["setInitialFocus","highlightFirstSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["setInitialFocus","highlightFirstSelectedItem","invokeOnOpen"]}],"INPUT.CLICK":[{guard:"isOpenControlled",actions:["highlightFirstSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["highlightFirstSelectedItem","invokeOnOpen"]}],"INPUT.FOCUS":{target:"focused"},OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"interacting",actions:["invokeOnOpen"]}],"VALUE.CLEAR":{target:"focused",actions:["clearInputValue","clearSelectedItems","setInitialFocus"]}}},focused:{tags:["focused","closed"],entry:["scrollContentToTop","clearHighlightedItem"],on:{"CONTROLLED.OPEN":[{guard:"isChangeEvent",target:"suggesting"},{target:"interacting"}],"INPUT.CHANGE":[{guard:eR("isOpenControlled","openOnChange"),actions:["setInputValue","invokeOnOpen","highlightFirstItemIfNeeded"]},{guard:"openOnChange",target:"suggesting",actions:["setInputValue","invokeOnOpen","highlightFirstItemIfNeeded"]},{actions:["setInputValue"]}],"LAYER.INTERACT_OUTSIDE":{target:"idle"},"INPUT.ESCAPE":{guard:eR("isCustomValue",eA("allowCustomValue")),actions:["revertInputValue"]},"INPUT.BLUR":{target:"idle"},"INPUT.CLICK":[{guard:"isOpenControlled",actions:["highlightFirstSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["highlightFirstSelectedItem","invokeOnOpen"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["setInitialFocus","highlightFirstSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["setInitialFocus","highlightFirstSelectedItem","invokeOnOpen"]}],"INPUT.ARROW_DOWN":[{guard:eR("isOpenControlled","autoComplete"),actions:["invokeOnOpen"]},{guard:"autoComplete",target:"interacting",actions:["invokeOnOpen"]},{guard:"isOpenControlled",actions:["highlightFirstOrSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["highlightFirstOrSelectedItem","invokeOnOpen"]}],"INPUT.ARROW_UP":[{guard:"autoComplete",target:"interacting",actions:["invokeOnOpen"]},{guard:"autoComplete",target:"interacting",actions:["invokeOnOpen"]},{target:"interacting",actions:["highlightLastOrSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["highlightLastOrSelectedItem","invokeOnOpen"]}],OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"interacting",actions:["invokeOnOpen"]}],"VALUE.CLEAR":{actions:["clearInputValue","clearSelectedItems"]}}},interacting:{tags:["open","focused"],entry:["setInitialFocus"],effects:["scrollToHighlightedItem","trackDismissableLayer","trackPlacement","hideOtherElements"],on:{"CONTROLLED.CLOSE":[{guard:"restoreFocus",target:"focused",actions:["setFinalFocus"]},{target:"idle"}],"INPUT.HOME":{actions:["highlightFirstItem"]},"INPUT.END":{actions:["highlightLastItem"]},"INPUT.ARROW_DOWN":[{guard:eR("autoComplete","isLastItemHighlighted"),actions:["clearHighlightedItem","scrollContentToTop"]},{actions:["highlightNextItem"]}],"INPUT.ARROW_UP":[{guard:eR("autoComplete","isFirstItemHighlighted"),actions:["clearHighlightedItem"]},{actions:["highlightPrevItem"]}],"INPUT.ENTER":[{guard:eR("isOpenControlled","isCustomValue",eA("hasHighlightedItem"),eA("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:eR("isCustomValue",eA("hasHighlightedItem"),eA("allowCustomValue")),target:"focused",actions:["revertInputValue","invokeOnClose"]},{guard:eR("isOpenControlled","closeOnSelect"),actions:["selectHighlightedItem","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["selectHighlightedItem","invokeOnClose","setFinalFocus"]},{actions:["selectHighlightedItem"]}],"INPUT.CHANGE":[{guard:"autoComplete",target:"suggesting",actions:["setInputValue"]},{target:"suggesting",actions:["clearHighlightedItem","setInputValue"]}],"ITEM.POINTER_MOVE":{actions:["setHighlightedItem"]},"ITEM.POINTER_LEAVE":{actions:["clearHighlightedItem"]},"ITEM.CLICK":[{guard:eR("isOpenControlled","closeOnSelect"),actions:["selectItem","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["selectItem","invokeOnClose","setFinalFocus"]},{actions:["selectItem"]}],"LAYER.ESCAPE":[{guard:eR("isOpenControlled","autoComplete"),actions:["syncInputValue","invokeOnClose"]},{guard:"autoComplete",target:"focused",actions:["syncInputValue","invokeOnClose"]},{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose","setFinalFocus"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose"]}],"LAYER.INTERACT_OUTSIDE":[{guard:eR("isOpenControlled","isCustomValue",eA("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:eR("isCustomValue",eA("allowCustomValue")),target:"idle",actions:["revertInputValue","invokeOnClose"]},{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"idle",actions:["invokeOnClose"]}],CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose","setFinalFocus"]}],"VALUE.CLEAR":[{guard:"isOpenControlled",actions:["clearInputValue","clearSelectedItems","invokeOnClose"]},{target:"focused",actions:["clearInputValue","clearSelectedItems","invokeOnClose","setFinalFocus"]}]}},suggesting:{tags:["open","focused"],effects:["trackDismissableLayer","scrollToHighlightedItem","trackPlacement","trackChildNodes","hideOtherElements"],entry:["setInitialFocus"],on:{"CONTROLLED.CLOSE":[{guard:"restoreFocus",target:"focused",actions:["setFinalFocus"]},{target:"idle"}],CHILDREN_CHANGE:{guard:"autoHighlight",actions:["highlightFirstItem"]},"INPUT.ARROW_DOWN":{target:"interacting",actions:["highlightNextItem"]},"INPUT.ARROW_UP":{target:"interacting",actions:["highlightPrevItem"]},"INPUT.HOME":{target:"interacting",actions:["highlightFirstItem"]},"INPUT.END":{target:"interacting",actions:["highlightLastItem"]},"INPUT.ENTER":[{guard:eR("isOpenControlled","isCustomValue",eA("hasHighlightedItem"),eA("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:eR("isCustomValue",eA("hasHighlightedItem"),eA("allowCustomValue")),target:"focused",actions:["revertInputValue","invokeOnClose"]},{guard:eR("isOpenControlled","closeOnSelect"),actions:["selectHighlightedItem","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["selectHighlightedItem","invokeOnClose","setFinalFocus"]},{actions:["selectHighlightedItem"]}],"INPUT.CHANGE":{actions:["setInputValue"]},"LAYER.ESCAPE":[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose"]}],"ITEM.POINTER_MOVE":{target:"interacting",actions:["setHighlightedItem"]},"ITEM.POINTER_LEAVE":{actions:["clearHighlightedItem"]},"LAYER.INTERACT_OUTSIDE":[{guard:eR("isOpenControlled","isCustomValue",eA("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:eR("isCustomValue",eA("allowCustomValue")),target:"idle",actions:["revertInputValue","invokeOnClose"]},{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"idle",actions:["invokeOnClose"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose"]}],"ITEM.CLICK":[{guard:eR("isOpenControlled","closeOnSelect"),actions:["selectItem","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["selectItem","invokeOnClose","setFinalFocus"]},{actions:["selectItem"]}],CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose","setFinalFocus"]}],"VALUE.CLEAR":[{guard:"isOpenControlled",actions:["clearInputValue","clearSelectedItems","invokeOnClose"]},{target:"focused",actions:["clearInputValue","clearSelectedItems","invokeOnClose","setFinalFocus"]}]}}},implementations:{guards:{isInputValueEmpty:({computed:e})=>e("isInputValueEmpty"),autoComplete:({computed:e,prop:t})=>e("autoComplete")&&!t("multiple"),autoHighlight:({computed:e})=>e("autoHighlight"),isFirstItemHighlighted:({prop:e,context:t})=>e("collection").firstValue===t.get("highlightedValue"),isLastItemHighlighted:({prop:e,context:t})=>e("collection").lastValue===t.get("highlightedValue"),isCustomValue:({computed:e})=>e("isCustomValue"),allowCustomValue:({prop:e})=>!!e("allowCustomValue"),hasHighlightedItem:({context:e})=>null!=e.get("highlightedValue"),closeOnSelect:({prop:e})=>!!e("closeOnSelect"),isOpenControlled:({prop:e})=>null!=e("open"),openOnChange:({prop:e,context:t})=>{let n=e("openOnChange");return(0,Z.jn)(n)?n:!!n?.({inputValue:t.get("inputValue")})},restoreFocus:({event:e})=>null==e.restoreFocus||!!e.restoreFocus,isChangeEvent:({event:e})=>e.previousEvent?.type==="INPUT.CHANGE",autoFocus:({prop:e})=>!!e("autoFocus")},effects:{trackDismissableLayer({send:e,prop:t,scope:n}){if(!t("disableLayer"))return(0,eu.A)(()=>ey(n),{defer:!0,exclude:()=>[ex(n),eS(n),ek(n)],onFocusOutside:t("onFocusOutside"),onPointerDownOutside:t("onPointerDownOutside"),onInteractOutside:t("onInteractOutside"),onEscapeKeyDown(t){t.preventDefault(),t.stopPropagation(),e({type:"LAYER.ESCAPE"})},onDismiss(){e({type:"LAYER.INTERACT_OUTSIDE",restoreFocus:!1})}})},hideOtherElements:({scope:e})=>(0,es.G)([ex(e),ey(e),eS(e),ek(e)]),trackPlacement:({context:e,prop:t,scope:n})=>(e.set("currentPlacement",t("positioning").placement),(0,ea.x_)(()=>eE(n)||eS(n),()=>ew(n),{...t("positioning"),defer:!0,onComplete(t){e.set("currentPlacement",t.placement)}})),trackChildNodes({scope:e,computed:t,send:n}){if(t("autoHighlight"))return(0,eo.P$)(()=>ey(e),{callback:()=>n({type:"CHILDREN_CHANGE"}),defer:!0})},scrollToHighlightedItem({context:e,prop:t,scope:n,event:r}){let i=ex(n),o=[],a=i=>{let a=r.current().type.includes("POINTER"),s=e.get("highlightedValue");if(a||!s)return;let l=eO(n,s),u=ey(n),c=t("scrollToIndexFn");if(c){c({index:t("collection").indexOf(s),immediate:i});return}let d=(0,eo.Wn)(()=>{(0,eo.zT)(l,{rootEl:u,block:"nearest"})});o.push(d)},s=(0,eo.Wn)(()=>a(!0));o.push(s);let l=(0,eo.FX)(i,{attributes:["aria-activedescendant"],callback:()=>a(!1)});return o.push(l),()=>{o.forEach(e=>e())}}},actions:{reposition({context:e,prop:t,scope:n,event:r}){(0,ea.x_)(()=>eE(n),()=>ew(n),{...t("positioning"),...r.options,defer:!0,listeners:!1,onComplete(t){e.set("currentPlacement",t.placement)}})},setHighlightedItem(e){let{context:t,event:n}=e;null!=n.value&&t.set("highlightedValue",n.value)},clearHighlightedItem(e){let{context:t}=e;t.set("highlightedValue",null)},selectHighlightedItem(e){let{context:t,prop:n}=e,r=t.get("highlightedValue");if(!r)return;let i=n("multiple")?(0,Z.kb)(t.get("value"),r):[r];n("onSelect")?.({value:i,itemValue:r}),t.set("value",i),t.set("inputValue",eN(e))},selectItem(e){let{context:t,event:n,flush:r,prop:i}=e;null!=n.value&&r(()=>{let r=i("multiple")?(0,Z.kb)(t.get("value"),n.value):[n.value];i("onSelect")?.({value:r,itemValue:n.value}),t.set("value",r),t.set("inputValue",eN(e))})},clearItem(e){let{context:t,event:n,flush:r}=e;null!=n.value&&r(()=>{let r=(0,Z.Od)(t.get("value"),n.value);t.set("value",r),t.set("inputValue",eN(e))})},setInitialFocus({scope:e}){(0,eo.Wn)(()=>{eC(e)})},setFinalFocus({scope:e}){(0,eo.Wn)(()=>{let t=eS(e);t?.dataset.focusable==null?eC(e):eI(e)})},syncInputValue({context:e,scope:t,event:n}){let r=ex(t);r&&(r.value=e.get("inputValue"),queueMicrotask(()=>{"INPUT.CHANGE"!==n.current().type&&(0,eo.tM)(r)}))},setInputValue({context:e,event:t}){e.set("inputValue",t.value)},clearInputValue({context:e}){e.set("inputValue","")},revertInputValue({context:e,prop:t,computed:n}){let r=t("selectionBehavior"),i=(0,Z.EQ)(r,{replace:n("hasSelectedItems")?n("valueAsString"):"",preserve:e.get("inputValue"),clear:""});e.set("inputValue",i)},setValue(e){let{context:t,flush:n,event:r}=e;n(()=>{t.set("value",r.value),t.set("inputValue",eN(e))})},clearSelectedItems(e){let{context:t,flush:n}=e;n(()=>{t.set("value",[]),t.set("inputValue",eN(e))})},scrollContentToTop({prop:e,scope:t}){let n=e("scrollToIndexFn");if(n)n({index:0,immediate:!0});else{let e=ey(t);if(!e)return;e.scrollTop=0}},invokeOnOpen({prop:e}){e("onOpenChange")?.({open:!0})},invokeOnClose({prop:e}){e("onOpenChange")?.({open:!1})},highlightFirstItem({context:e,prop:t,scope:n}){(ey(n)?queueMicrotask:eo.Wn)(()=>{let n=t("collection").firstValue;n&&e.set("highlightedValue",n)})},highlightFirstItemIfNeeded({computed:e,action:t}){e("autoHighlight")&&t(["highlightFirstItem"])},highlightLastItem({context:e,prop:t,scope:n}){(ey(n)?queueMicrotask:eo.Wn)(()=>{let n=t("collection").lastValue;n&&e.set("highlightedValue",n)})},highlightNextItem({context:e,prop:t}){let n=null,r=e.get("highlightedValue"),i=t("collection");r?!(n=i.getNextValue(r))&&t("loopFocus")&&(n=i.firstValue):n=i.firstValue,n&&e.set("highlightedValue",n)},highlightPrevItem({context:e,prop:t}){let n=null,r=e.get("highlightedValue"),i=t("collection");r?!(n=i.getPreviousValue(r))&&t("loopFocus")&&(n=i.lastValue):n=i.lastValue,n&&e.set("highlightedValue",n)},highlightFirstSelectedItem({context:e,prop:t}){(0,eo.Wn)(()=>{let[n]=t("collection").sort(e.get("value"));n&&e.set("highlightedValue",n)})},highlightFirstOrSelectedItem({context:e,prop:t,computed:n}){(0,eo.Wn)(()=>{let r=null;(r=n("hasSelectedItems")?t("collection").sort(e.get("value"))[0]:t("collection").firstValue)&&e.set("highlightedValue",r)})},highlightLastOrSelectedItem({context:e,prop:t,computed:n}){(0,eo.Wn)(()=>{let r=t("collection"),i=null;(i=n("hasSelectedItems")?r.sort(e.get("value"))[0]:r.lastValue)&&e.set("highlightedValue",i)})},autofillInputValue({context:e,computed:t,prop:n,event:r,scope:i}){let o=ex(i),a=n("collection");if(!t("autoComplete")||!o||!r.keypress)return;let s=a.stringify(e.get("highlightedValue"));(0,eo.Wn)(()=>{o.value=s||e.get("inputValue")})},syncSelectedItems(e){queueMicrotask(()=>{let{context:t,prop:n}=e,r=(0,Z.EQ)(n("selectionBehavior"),{preserve:t.get("inputValue"),replace:n("collection").stringifyMany(t.get("value")),clear:""});t.set("selectedItems",function({context:e,prop:t}){let n=t("collection");return e.get("value").map(t=>e.get("selectedItems").find(e=>n.getItemValue(e)===t)||n.find(t))}(e)),t.set("inputValue",r)})},syncHighlightedItem({context:e,prop:t}){let n=t("collection").find(e.get("highlightedValue"));e.set("highlightedItem",n)},toggleVisibility({event:e,send:t,prop:n}){t({type:n("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:e})}}}});var eM=(0,ec.e)()(["allowCustomValue","autoFocus","closeOnSelect","collection","composite","defaultHighlightedValue","defaultInputValue","defaultOpen","defaultValue","dir","disabled","disableLayer","form","getRootNode","highlightedValue","id","ids","inputBehavior","inputValue","invalid","loopFocus","multiple","name","navigate","onFocusOutside","onHighlightChange","onInputValueChange","onInteractOutside","onOpenChange","onOpenChange","onPointerDownOutside","onSelect","onValueChange","open","openOnChange","openOnClick","openOnKeyPress","placeholder","positioning","readOnly","required","scrollToIndexFn","selectionBehavior","translations","value"]);(0,Z.xQ)(eM);var eL=(0,ec.e)()(["htmlFor"]);(0,Z.xQ)(eL);var eD=(0,ec.e)()(["id"]);(0,Z.xQ)(eD);var eF=(0,ec.e)()(["item","persistFocus"]);(0,Z.xQ)(eF);var eV=(0,K.F)("accordion").parts("root","item","itemTrigger","itemContent","itemIndicator");eV.build();var ej=e=>e.ids?.root??`accordion:${e.id}`,ez=(e,t)=>e.ids?.itemTrigger?.(t)??`accordion:${e.id}:trigger:${t}`,eU=e=>e.getById(ej(e)),eB=e=>{let t=CSS.escape(ej(e)),n=`[aria-controls][data-ownedby='${t}']:not([disabled])`;return(0,eo.Kt)(eU(e),n)},eW=e=>(0,Z.Ps)(eB(e)),eH=e=>(0,Z.Z$)(eB(e)),e$=(e,t)=>(0,eo.Es)(eB(e),ez(e,t)),eq=(e,t)=>(0,eo.Sv)(eB(e),ez(e,t)),{and:eG,not:eK}=(0,el.Fb)();(0,el.C8)({props:({props:e})=>({collapsible:!1,multiple:!1,orientation:"vertical",defaultValue:[],...e}),initialState:()=>"idle",context:({prop:e,bindable:t})=>({focusedValue:t(()=>({defaultValue:null,sync:!0,onChange(t){e("onFocusChange")?.({value:t})}})),value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),onChange(t){e("onValueChange")?.({value:t})}}))}),computed:{isHorizontal:({prop:e})=>"horizontal"===e("orientation")},on:{"VALUE.SET":{actions:["setValue"]}},states:{idle:{on:{"TRIGGER.FOCUS":{target:"focused",actions:["setFocusedValue"]}}},focused:{on:{"GOTO.NEXT":{actions:["focusNextTrigger"]},"GOTO.PREV":{actions:["focusPrevTrigger"]},"TRIGGER.CLICK":[{guard:eG("isExpanded","canToggle"),actions:["collapse"]},{guard:eK("isExpanded"),actions:["expand"]}],"GOTO.FIRST":{actions:["focusFirstTrigger"]},"GOTO.LAST":{actions:["focusLastTrigger"]},"TRIGGER.BLUR":{target:"idle",actions:["clearFocusedValue"]}}}},implementations:{guards:{canToggle:({prop:e})=>!!e("collapsible")||!!e("multiple"),isExpanded:({context:e,event:t})=>e.get("value").includes(t.value)},actions:{collapse({context:e,prop:t,event:n}){let r=t("multiple")?(0,Z.Od)(e.get("value"),n.value):[];e.set("value",r)},expand({context:e,prop:t,event:n}){let r=t("multiple")?(0,Z.IH)(e.get("value"),n.value):[n.value];e.set("value",r)},focusFirstTrigger({scope:e}){eW(e)?.focus()},focusLastTrigger({scope:e}){eH(e)?.focus()},focusNextTrigger({context:e,scope:t}){let n=e.get("focusedValue");if(!n)return;let r=e$(t,n);r?.focus()},focusPrevTrigger({context:e,scope:t}){let n=e.get("focusedValue");if(!n)return;let r=eq(t,n);r?.focus()},setFocusedValue({context:e,event:t}){e.set("focusedValue",t.value)},clearFocusedValue({context:e}){e.set("focusedValue",null)},setValue({context:e,event:t}){e.set("value",t.value)},coarseValue({context:e,prop:t}){!t("multiple")&&e.get("value").length>1&&((0,Z.ZK)("The value of accordion should be a single value when multiple is false."),e.set("value",[e.get("value")[0]]))}}}});var eZ=(0,ec.e)()(["collapsible","dir","disabled","getRootNode","id","ids","multiple","onFocusChange","onValueChange","orientation","value","defaultValue"]);(0,Z.xQ)(eZ);var eY=(0,ec.e)()(["value","disabled"]);(0,Z.xQ)(eY);var eX=Object.defineProperty,eQ=(e,t,n)=>t in e?eX(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,eJ=(e,t,n)=>eQ(e,t+"",n),e0=(e,t)=>{if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(e[n]!==t[n])return!1;return!0},e1=class{toHexInt(){return this.toFormat("rgba").toHexInt()}getChannelValue(e){if(e in this)return this[e];throw Error("Unsupported color channel: "+e)}getChannelValuePercent(e,t){let n=t??this.getChannelValue(e),{minValue:r,maxValue:i}=this.getChannelRange(e);return(0,Z.xs)(n,r,i)}getChannelPercentValue(e,t){let{minValue:n,maxValue:r,step:i}=this.getChannelRange(e),o=(0,Z.h1)(t,n,r,i);return(0,Z.N4)(o,n,r,i)}withChannelValue(e,t){let{minValue:n,maxValue:r}=this.getChannelRange(e);if(e in this){let i=this.clone();return i[e]=(0,Z.HU)(t,n,r),i}throw Error("Unsupported color channel: "+e)}getColorAxes(e){let{xChannel:t,yChannel:n}=e,r=t||this.getChannels().find(e=>e!==n),i=n||this.getChannels().find(e=>e!==r),o=this.getChannels().find(e=>e!==r&&e!==i);return{xChannel:r,yChannel:i,zChannel:o}}incrementChannel(e,t){let{minValue:n,maxValue:r,step:i}=this.getChannelRange(e),o=(0,Z.N4)((0,Z.HU)(this.getChannelValue(e)+t,n,r),n,r,i);return this.withChannelValue(e,o)}decrementChannel(e,t){return this.incrementChannel(e,-t)}isEqual(e){return e0(this.toJSON(),e.toJSON())&&this.getChannelValue("alpha")===e.getChannelValue("alpha")}},e2=class e extends e1{constructor(e,t,n,r){super(),this.red=e,this.green=t,this.blue=n,this.alpha=r}static parse(t){let n=[];if(/^#[\da-f]+$/i.test(t)&&[4,5,7,9].includes(t.length)){let e=(t.length<6?t.replace(/[^#]/gi,"$&$&"):t).slice(1).split("");for(;e.length>0;)n.push(parseInt(e.splice(0,2).join(""),16));n[3]=void 0!==n[3]?n[3]/255:void 0}let r=t.match(/^rgba?\((.*)\)$/);return r?.[1]&&(n=r[1].split(",").map(e=>Number(e.trim())).map((e,t)=>(0,Z.HU)(e,0,t<3?255:1))),n.length<3?void 0:new e(n[0],n[1],n[2],n[3]??1)}toString(e){switch(e){case"hex":return"#"+(this.red.toString(16).padStart(2,"0")+this.green.toString(16).padStart(2,"0")+this.blue.toString(16).padStart(2,"0")).toUpperCase();case"hexa":return"#"+(this.red.toString(16).padStart(2,"0")+this.green.toString(16).padStart(2,"0")+this.blue.toString(16).padStart(2,"0")+Math.round(255*this.alpha).toString(16).padStart(2,"0")).toUpperCase();case"rgb":return`rgb(${this.red}, ${this.green}, ${this.blue})`;case"css":case"rgba":return`rgba(${this.red}, ${this.green}, ${this.blue}, ${this.alpha})`;case"hsl":return this.toHSL().toString("hsl");case"hsb":return this.toHSB().toString("hsb");default:return this.toFormat(e).toString(e)}}toFormat(e){switch(e){case"rgba":return this;case"hsba":return this.toHSB();case"hsla":return this.toHSL();default:throw Error("Unsupported color conversion: rgb -> "+e)}}toHexInt(){return this.red<<16|this.green<<8|this.blue}toHSB(){let e=this.red/255,t=this.green/255,n=this.blue/255,r=Math.max(e,t,n),i=r-Math.min(e,t,n),o=0;if(0!==i){switch(r){case e:o=(t-n)/i+(t<n?6:0);break;case t:o=(n-e)/i+2;break;case n:o=(e-t)/i+4}o/=6}return new e7((0,Z.lt)(360*o,2),(0,Z.lt)(100*(0===r?0:i/r),2),(0,Z.lt)(100*r,2),(0,Z.lt)(this.alpha,2))}toHSL(){let e=this.red/255,t=this.green/255,n=this.blue/255,r=Math.min(e,t,n),i=Math.max(e,t,n),o=(i+r)/2,a=i-r,s=-1,l=-1;if(0===a)s=l=0;else{switch(l=a/(o<.5?i+r:2-i-r),i){case e:s=(t-n)/a+(t<n?6:0);break;case t:s=(n-e)/a+2;break;case n:s=(e-t)/a+4}s/=6}return new e3((0,Z.lt)(360*s,2),(0,Z.lt)(100*l,2),(0,Z.lt)(100*o,2),(0,Z.lt)(this.alpha,2))}clone(){return new e(this.red,this.green,this.blue,this.alpha)}getChannelFormatOptions(e){switch(e){case"red":case"green":case"blue":return{style:"decimal"};case"alpha":return{style:"percent"};default:throw Error("Unknown color channel: "+e)}}formatChannelValue(e,t){let n=this.getChannelFormatOptions(e),r=this.getChannelValue(e);return new Intl.NumberFormat(t,n).format(r)}getChannelRange(e){switch(e){case"red":case"green":case"blue":return{minValue:0,maxValue:255,step:1,pageSize:17};case"alpha":return{minValue:0,maxValue:1,step:.01,pageSize:.1};default:throw Error("Unknown color channel: "+e)}}toJSON(){return{r:this.red,g:this.green,b:this.blue,a:this.alpha}}getFormat(){return"rgba"}getChannels(){return e.colorChannels}};eJ(e2,"colorChannels",["red","green","blue"]);var e5=/hsl\(([-+]?\d+(?:.\d+)?\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d+(?:.\d+)?%)\)|hsla\(([-+]?\d+(?:.\d+)?\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d(.\d+)?)\)/,e4=class e extends e1{constructor(e,t,n,r){super(),this.hue=e,this.saturation=t,this.lightness=n,this.alpha=r}static parse(t){let n;if(n=t.match(e5)){let[t,r,i,o]=(n[1]??n[2]).split(",").map(e=>Number(e.trim().replace("%","")));return new e((0,Z.wQ)(t,360),(0,Z.HU)(r,0,100),(0,Z.HU)(i,0,100),(0,Z.HU)(o??1,0,1))}}toString(e){switch(e){case"hex":return this.toRGB().toString("hex");case"hexa":return this.toRGB().toString("hexa");case"hsl":return`hsl(${this.hue}, ${(0,Z.lt)(this.saturation,2)}%, ${(0,Z.lt)(this.lightness,2)}%)`;case"css":case"hsla":return`hsla(${this.hue}, ${(0,Z.lt)(this.saturation,2)}%, ${(0,Z.lt)(this.lightness,2)}%, ${this.alpha})`;case"hsb":return this.toHSB().toString("hsb");case"rgb":return this.toRGB().toString("rgb");default:return this.toFormat(e).toString(e)}}toFormat(e){switch(e){case"hsla":return this;case"hsba":return this.toHSB();case"rgba":return this.toRGB();default:throw Error("Unsupported color conversion: hsl -> "+e)}}toHSB(){let e=this.saturation/100,t=this.lightness/100,n=t+e*Math.min(t,1-t);return e=0===n?0:2*(1-t/n),new e7((0,Z.lt)(this.hue,2),(0,Z.lt)(100*e,2),(0,Z.lt)(100*n,2),(0,Z.lt)(this.alpha,2))}toRGB(){let e=this.hue,t=this.saturation/100,n=this.lightness/100,r=t*Math.min(n,1-n),i=(t,i=(t+e/30)%12)=>n-r*Math.max(Math.min(i-3,9-i,1),-1);return new e2(Math.round(255*i(0)),Math.round(255*i(8)),Math.round(255*i(4)),(0,Z.lt)(this.alpha,2))}clone(){return new e(this.hue,this.saturation,this.lightness,this.alpha)}getChannelFormatOptions(e){switch(e){case"hue":return{style:"unit",unit:"degree",unitDisplay:"narrow"};case"saturation":case"lightness":case"alpha":return{style:"percent"};default:throw Error("Unknown color channel: "+e)}}formatChannelValue(e,t){let n=this.getChannelFormatOptions(e),r=this.getChannelValue(e);return("saturation"===e||"lightness"===e)&&(r/=100),new Intl.NumberFormat(t,n).format(r)}getChannelRange(e){switch(e){case"hue":return{minValue:0,maxValue:360,step:1,pageSize:15};case"saturation":case"lightness":return{minValue:0,maxValue:100,step:1,pageSize:10};case"alpha":return{minValue:0,maxValue:1,step:.01,pageSize:.1};default:throw Error("Unknown color channel: "+e)}}toJSON(){return{h:this.hue,s:this.saturation,l:this.lightness,a:this.alpha}}getFormat(){return"hsla"}getChannels(){return e.colorChannels}};eJ(e4,"colorChannels",["hue","saturation","lightness"]);var e3=e4,e6=/hsb\(([-+]?\d+(?:.\d+)?\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d+(?:.\d+)?%)\)|hsba\(([-+]?\d+(?:.\d+)?\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d(.\d+)?)\)/,e8=class e extends e1{constructor(e,t,n,r){super(),this.hue=e,this.saturation=t,this.brightness=n,this.alpha=r}static parse(t){let n;if(n=t.match(e6)){let[t,r,i,o]=(n[1]??n[2]).split(",").map(e=>Number(e.trim().replace("%","")));return new e((0,Z.wQ)(t,360),(0,Z.HU)(r,0,100),(0,Z.HU)(i,0,100),(0,Z.HU)(o??1,0,1))}}toString(e){switch(e){case"css":return this.toHSL().toString("css");case"hex":return this.toRGB().toString("hex");case"hexa":return this.toRGB().toString("hexa");case"hsb":return`hsb(${this.hue}, ${(0,Z.lt)(this.saturation,2)}%, ${(0,Z.lt)(this.brightness,2)}%)`;case"hsba":return`hsba(${this.hue}, ${(0,Z.lt)(this.saturation,2)}%, ${(0,Z.lt)(this.brightness,2)}%, ${this.alpha})`;case"hsl":return this.toHSL().toString("hsl");case"rgb":return this.toRGB().toString("rgb");default:return this.toFormat(e).toString(e)}}toFormat(e){switch(e){case"hsba":return this;case"hsla":return this.toHSL();case"rgba":return this.toRGB();default:throw Error("Unsupported color conversion: hsb -> "+e)}}toHSL(){let e=this.saturation/100,t=this.brightness/100,n=t*(1-e/2);return e=0===n||1===n?0:(t-n)/Math.min(n,1-n),new e3((0,Z.lt)(this.hue,2),(0,Z.lt)(100*e,2),(0,Z.lt)(100*n,2),(0,Z.lt)(this.alpha,2))}toRGB(){let e=this.hue,t=this.saturation/100,n=this.brightness/100,r=(r,i=(r+e/60)%6)=>n-t*n*Math.max(Math.min(i,4-i,1),0);return new e2(Math.round(255*r(5)),Math.round(255*r(3)),Math.round(255*r(1)),(0,Z.lt)(this.alpha,2))}clone(){return new e(this.hue,this.saturation,this.brightness,this.alpha)}getChannelFormatOptions(e){switch(e){case"hue":return{style:"unit",unit:"degree",unitDisplay:"narrow"};case"saturation":case"brightness":case"alpha":return{style:"percent"};default:throw Error("Unknown color channel: "+e)}}formatChannelValue(e,t){let n=this.getChannelFormatOptions(e),r=this.getChannelValue(e);return("saturation"===e||"brightness"===e)&&(r/=100),new Intl.NumberFormat(t,n).format(r)}getChannelRange(e){switch(e){case"hue":return{minValue:0,maxValue:360,step:1,pageSize:15};case"saturation":case"brightness":return{minValue:0,maxValue:100,step:1,pageSize:10};case"alpha":return{minValue:0,maxValue:1,step:.01,pageSize:.1};default:throw Error("Unknown color channel: "+e)}}toJSON(){return{h:this.hue,s:this.saturation,b:this.brightness,a:this.alpha}}getFormat(){return"hsba"}getChannels(){return e.colorChannels}};eJ(e8,"colorChannels",["hue","saturation","brightness"]);var e7=e8,e9=(e=>{let t=new Map,n=e.split(",");for(let e=0;e<n.length;e++){let[r,i]=n[e].split(":");t.set(r,`#${i}`),r.includes("gray")&&t.set(r.replace("gray","grey"),`#${i}`)}return t})("aliceblue:f0f8ff,antiquewhite:faebd7,aqua:00ffff,aquamarine:7fffd4,azure:f0ffff,beige:f5f5dc,bisque:ffe4c4,black:000000,blanchedalmond:ffebcd,blue:0000ff,blueviolet:8a2be2,brown:a52a2a,burlywood:deb887,cadetblue:5f9ea0,chartreuse:7fff00,chocolate:d2691e,coral:ff7f50,cornflowerblue:6495ed,cornsilk:fff8dc,crimson:dc143c,cyan:00ffff,darkblue:00008b,darkcyan:008b8b,darkgoldenrod:b8860b,darkgray:a9a9a9,darkgreen:006400,darkkhaki:bdb76b,darkmagenta:8b008b,darkolivegreen:556b2f,darkorange:ff8c00,darkorchid:9932cc,darkred:8b0000,darksalmon:e9967a,darkseagreen:8fbc8f,darkslateblue:483d8b,darkslategray:2f4f4f,darkturquoise:00ced1,darkviolet:9400d3,deeppink:ff1493,deepskyblue:00bfff,dimgray:696969,dodgerblue:1e90ff,firebrick:b22222,floralwhite:fffaf0,forestgreen:228b22,fuchsia:ff00ff,gainsboro:dcdcdc,ghostwhite:f8f8ff,gold:ffd700,goldenrod:daa520,gray:808080,green:008000,greenyellow:adff2f,honeydew:f0fff0,hotpink:ff69b4,indianred:cd5c5c,indigo:4b0082,ivory:fffff0,khaki:f0e68c,lavender:e6e6fa,lavenderblush:fff0f5,lawngreen:7cfc00,lemonchiffon:fffacd,lightblue:add8e6,lightcoral:f08080,lightcyan:e0ffff,lightgoldenrodyellow:fafad2,lightgrey:d3d3d3,lightgreen:90ee90,lightpink:ffb6c1,lightsalmon:ffa07a,lightseagreen:20b2aa,lightskyblue:87cefa,lightslategray:778899,lightsteelblue:b0c4de,lightyellow:ffffe0,lime:00ff00,limegreen:32cd32,linen:faf0e6,magenta:ff00ff,maroon:800000,mediumaquamarine:66cdaa,mediumblue:0000cd,mediumorchid:ba55d3,mediumpurple:9370d8,mediumseagreen:3cb371,mediumslateblue:7b68ee,mediumspringgreen:00fa9a,mediumturquoise:48d1cc,mediumvioletred:c71585,midnightblue:191970,mintcream:f5fffa,mistyrose:ffe4e1,moccasin:ffe4b5,navajowhite:ffdead,navy:000080,oldlace:fdf5e6,olive:808000,olivedrab:6b8e23,orange:ffa500,orangered:ff4500,orchid:da70d6,palegoldenrod:eee8aa,palegreen:98fb98,paleturquoise:afeeee,palevioletred:d87093,papayawhip:ffefd5,peachpuff:ffdab9,peru:cd853f,pink:ffc0cb,plum:dda0dd,powderblue:b0e0e6,purple:800080,rebeccapurple:663399,red:ff0000,rosybrown:bc8f8f,royalblue:4169e1,saddlebrown:8b4513,salmon:fa8072,sandybrown:f4a460,seagreen:2e8b57,seashell:fff5ee,sienna:a0522d,silver:c0c0c0,skyblue:87ceeb,slateblue:6a5acd,slategray:708090,snow:fffafa,springgreen:00ff7f,steelblue:4682b4,tan:d2b48c,teal:008080,thistle:d8bfd8,tomato:ff6347,turquoise:40e0d0,violet:ee82ee,wheat:f5deb3,white:ffffff,whitesmoke:f5f5f5,yellow:ffff00,yellowgreen:9acd32"),te=e=>{if(e9.has(e))return te(e9.get(e));let t=e2.parse(e)||e7.parse(e)||e3.parse(e);if(!t){let t=Error("Invalid color value: "+e);throw Error.captureStackTrace?.(t,te),t}return t},tt=(0,K.F)("color-picker",["root","label","control","trigger","positioner","content","area","areaThumb","valueText","areaBackground","channelSlider","channelSliderLabel","channelSliderTrack","channelSliderThumb","channelSliderValueText","channelInput","transparencyGrid","swatchGroup","swatchTrigger","swatchIndicator","swatch","eyeDropperTrigger","formatTrigger","formatSelect"]);tt.build();var tn=e=>e.ids?.hiddenInput??`color-picker:${e.id}:hidden-input`,tr=e=>e.ids?.control??`color-picker:${e.id}:control`,ti=e=>e.ids?.trigger??`color-picker:${e.id}:trigger`,to=e=>e.ids?.content??`color-picker:${e.id}:content`,ta=e=>e.ids?.positioner??`color-picker:${e.id}:positioner`,ts=e=>e.ids?.formatSelect??`color-picker:${e.id}:format-select`,tl=e=>e.ids?.area??`color-picker:${e.id}:area`,tu=e=>e.ids?.areaThumb??`color-picker:${e.id}:area-thumb`,tc=(e,t)=>e.ids?.channelSliderTrack?.(t)??`color-picker:${e.id}:slider-track:${t}`,td=(e,t)=>e.ids?.channelSliderThumb?.(t)??`color-picker:${e.id}:slider-thumb:${t}`,tf=e=>e.getById(to(e)),th=e=>e.getById(tu(e)),tp=(e,t)=>e.getById(td(e,t)),tg=e=>e.getById(ts(e)),tv=e=>e.getById(tn(e)),tm=e=>e.getById(tl(e)),tb=(e,t)=>{let n=tm(e);if(!n)return;let{percent:r}=(0,eo.rs)(t,n);return r},ty=e=>e.getById(tr(e)),tx=e=>e.getById(ti(e)),tw=e=>e.getById(ta(e)),tE=(e,t)=>e.getById(tc(e,t)),tS=(e,t,n)=>{let r=tE(e,n);if(!r)return;let{percent:i}=(0,eo.rs)(t,r);return i},tk=e=>[...(0,eo.Kt)(tf(e),"input[data-channel]"),...(0,eo.Kt)(ty(e),"input[data-channel]")];RegExp("^(hsba|hsla|rgba)$");var tO=e=>te(e),{and:tC}=(0,el.Fb)();function tI(e,t,n){let r=tk(e);(0,eo.Wn)(()=>{r.forEach(e=>{let r=e.dataset.channel;(0,eo.lG)(e,function(e,t){if(null==t)return"";if("hex"===t)return e.toString("hex");if("css"===t)return e.toString("css");if(t in e)return e.getChannelValue(t).toString();let n="hsla"===e.getFormat();switch(t){case"hue":return n?e.toFormat("hsla").getChannelValue("hue").toString():e.toFormat("hsba").getChannelValue("hue").toString();case"saturation":return n?e.toFormat("hsla").getChannelValue("saturation").toString():e.toFormat("hsba").getChannelValue("saturation").toString();case"lightness":return e.toFormat("hsla").getChannelValue("lightness").toString();case"brightness":return e.toFormat("hsba").getChannelValue("brightness").toString();case"red":case"green":case"blue":return e.toFormat("rgba").getChannelValue(t).toString();default:return e.getChannelValue(t).toString()}}(n||t,r))})})}(0,el.C8)({props:({props:e})=>({dir:"ltr",defaultValue:tO("#000000"),defaultFormat:"rgba",openAutoFocus:!0,...e,positioning:{placement:"bottom",...e.positioning}}),initialState:({prop:e})=>e("open")||e("defaultOpen")?"open":"idle",context:({prop:e,bindable:t,getContext:n})=>({value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),isEqual:(e,t)=>e.toString("css")===t?.toString("css"),hash:e=>e.toString("css"),onChange(t){let r=n(),i=t.toString(r.get("format"));e("onValueChange")?.({value:t,valueAsString:i})}})),format:t(()=>({defaultValue:e("defaultFormat"),value:e("format"),onChange(t){e("onFormatChange")?.({format:t})}})),activeId:t(()=>({defaultValue:null})),activeChannel:t(()=>({defaultValue:null})),activeOrientation:t(()=>({defaultValue:null})),fieldsetDisabled:t(()=>({defaultValue:!1})),restoreFocus:t(()=>({defaultValue:!0})),currentPlacement:t(()=>({defaultValue:void 0}))}),computed:{rtl:({prop:e})=>"rtl"===e("dir"),disabled:({prop:e,context:t})=>!!e("disabled")||t.get("fieldsetDisabled"),interactive:({prop:e})=>!(e("disabled")||e("readOnly")),valueAsString:({context:e})=>e.get("value").toString(e.get("format")),areaValue:({context:e})=>{let t=e.get("format").startsWith("hsl")?"hsla":"hsba";return e.get("value").toFormat(t)}},effects:["trackFormControl"],watch({prop:e,context:t,action:n,track:r}){r([()=>t.hash("value")],()=>{n(["syncInputElements","dispatchChangeEvent"])}),r([()=>t.get("format")],()=>{n(["syncFormatSelectElement"])}),r([()=>e("open")],()=>{n(["toggleVisibility"])})},on:{"VALUE.SET":{actions:["setValue"]},"FORMAT.SET":{actions:["setFormat"]},"CHANNEL_INPUT.CHANGE":{actions:["setChannelColorFromInput"]},"EYEDROPPER.CLICK":{actions:["openEyeDropper"]},"SWATCH_TRIGGER.CLICK":{actions:["setValue"]}},states:{idle:{tags:["closed"],on:{"CONTROLLED.OPEN":{target:"open",actions:["setInitialFocus"]},OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen","setInitialFocus"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen","setInitialFocus"]}],"CHANNEL_INPUT.FOCUS":{target:"focused",actions:["setActiveChannel"]}}},focused:{tags:["closed","focused"],on:{"CONTROLLED.OPEN":{target:"open",actions:["setInitialFocus"]},OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen","setInitialFocus"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen","setInitialFocus"]}],"CHANNEL_INPUT.FOCUS":{actions:["setActiveChannel"]},"CHANNEL_INPUT.BLUR":{target:"idle",actions:["setChannelColorFromInput"]},"TRIGGER.BLUR":{target:"idle"}}},open:{tags:["open"],effects:["trackPositioning","trackDismissableElement"],on:{"CONTROLLED.CLOSE":[{guard:"shouldRestoreFocus",target:"focused",actions:["setReturnFocus"]},{target:"idle"}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"idle",actions:["invokeOnClose"]}],"AREA.POINTER_DOWN":{target:"open:dragging",actions:["setActiveChannel","setAreaColorFromPoint","focusAreaThumb"]},"AREA.FOCUS":{actions:["setActiveChannel"]},"CHANNEL_SLIDER.POINTER_DOWN":{target:"open:dragging",actions:["setActiveChannel","setChannelColorFromPoint","focusChannelThumb"]},"CHANNEL_SLIDER.FOCUS":{actions:["setActiveChannel"]},"AREA.ARROW_LEFT":{actions:["decrementAreaXChannel"]},"AREA.ARROW_RIGHT":{actions:["incrementAreaXChannel"]},"AREA.ARROW_UP":{actions:["incrementAreaYChannel"]},"AREA.ARROW_DOWN":{actions:["decrementAreaYChannel"]},"AREA.PAGE_UP":{actions:["incrementAreaXChannel"]},"AREA.PAGE_DOWN":{actions:["decrementAreaXChannel"]},"CHANNEL_SLIDER.ARROW_LEFT":{actions:["decrementChannel"]},"CHANNEL_SLIDER.ARROW_RIGHT":{actions:["incrementChannel"]},"CHANNEL_SLIDER.ARROW_UP":{actions:["incrementChannel"]},"CHANNEL_SLIDER.ARROW_DOWN":{actions:["decrementChannel"]},"CHANNEL_SLIDER.PAGE_UP":{actions:["incrementChannel"]},"CHANNEL_SLIDER.PAGE_DOWN":{actions:["decrementChannel"]},"CHANNEL_SLIDER.HOME":{actions:["setChannelToMin"]},"CHANNEL_SLIDER.END":{actions:["setChannelToMax"]},"CHANNEL_INPUT.BLUR":{actions:["setChannelColorFromInput"]},INTERACT_OUTSIDE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{guard:"shouldRestoreFocus",target:"focused",actions:["invokeOnClose","setReturnFocus"]},{target:"idle",actions:["invokeOnClose"]}],CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"idle",actions:["invokeOnClose"]}],"SWATCH_TRIGGER.CLICK":[{guard:tC("isOpenControlled","closeOnSelect"),actions:["setValue","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["setValue","invokeOnClose","setReturnFocus"]},{actions:["setValue"]}]}},"open:dragging":{tags:["open"],exit:["clearActiveChannel"],effects:["trackPointerMove","disableTextSelection","trackPositioning","trackDismissableElement"],on:{"CONTROLLED.CLOSE":[{guard:"shouldRestoreFocus",target:"focused",actions:["setReturnFocus"]},{target:"idle"}],"AREA.POINTER_MOVE":{actions:["setAreaColorFromPoint","focusAreaThumb"]},"AREA.POINTER_UP":{target:"open",actions:["invokeOnChangeEnd"]},"CHANNEL_SLIDER.POINTER_MOVE":{actions:["setChannelColorFromPoint","focusChannelThumb"]},"CHANNEL_SLIDER.POINTER_UP":{target:"open",actions:["invokeOnChangeEnd"]},INTERACT_OUTSIDE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{guard:"shouldRestoreFocus",target:"focused",actions:["invokeOnClose","setReturnFocus"]},{target:"idle",actions:["invokeOnClose"]}],CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"idle",actions:["invokeOnClose"]}]}}},implementations:{guards:{closeOnSelect:({prop:e})=>!!e("closeOnSelect"),isOpenControlled:({prop:e})=>null!=e("open"),shouldRestoreFocus:({context:e})=>!!e.get("restoreFocus")},effects:{trackPositioning({context:e,prop:t,scope:n}){e.get("currentPlacement")||e.set("currentPlacement",t("positioning")?.placement);let r=tx(n);return(0,ea.x_)(r,()=>tw(n),{...t("positioning"),defer:!0,onComplete(t){e.set("currentPlacement",t.placement)}})},trackDismissableElement:({context:e,scope:t,prop:n,send:r})=>(0,eu.A)(()=>tf(t),{exclude:tx(t),defer:!0,onInteractOutside(t){n("onInteractOutside")?.(t),t.defaultPrevented||e.set("restoreFocus",!(t.detail.focusable||t.detail.contextmenu))},onPointerDownOutside:n("onPointerDownOutside"),onFocusOutside:n("onFocusOutside"),onDismiss(){r({type:"INTERACT_OUTSIDE"})}}),trackFormControl({context:e,scope:t,send:n}){let r=tv(t);return(0,eo.NS)(r,{onFieldsetDisabledChange(t){e.set("fieldsetDisabled",t)},onFormReset(){n({type:"VALUE.SET",value:e.initial("value"),src:"form.reset"})}})},trackPointerMove:({context:e,scope:t,event:n,send:r})=>(0,eo.h_)(t.getDoc(),{onPointerMove({point:t}){r({type:"area"===e.get("activeId")?"AREA.POINTER_MOVE":"CHANNEL_SLIDER.POINTER_MOVE",point:t,format:n.format})},onPointerUp(){r({type:"area"===e.get("activeId")?"AREA.POINTER_UP":"CHANNEL_SLIDER.POINTER_UP"})}}),disableTextSelection:({scope:e})=>(0,eo.lJ)({doc:e.getDoc(),target:tf(e)})},actions:{openEyeDropper({scope:e,context:t}){let n=e.getWin();"EyeDropper"in n&&new n.EyeDropper().open().then(({sRGBHex:e})=>{let n=t.get("value").getFormat(),r=te(e).toFormat(n);t.set("value",r)}).catch(()=>void 0)},setActiveChannel({context:e,event:t}){e.set("activeId",t.id),t.channel&&e.set("activeChannel",t.channel),t.orientation&&e.set("activeOrientation",t.orientation)},clearActiveChannel({context:e}){e.set("activeChannel",null),e.set("activeId",null),e.set("activeOrientation",null)},setAreaColorFromPoint({context:e,event:t,computed:n,scope:r}){let i=t.format?e.get("value").toFormat(t.format):n("areaValue"),{xChannel:o,yChannel:a}=t.channel||e.get("activeChannel"),s=tb(r,t.point);if(!s)return;let l=i.getChannelPercentValue(o,s.x),u=i.getChannelPercentValue(a,1-s.y),c=i.withChannelValue(o,l).withChannelValue(a,u);e.set("value",c)},setChannelColorFromPoint({context:e,event:t,computed:n,scope:r}){let i=t.channel||e.get("activeId"),o=t.format?e.get("value").toFormat(t.format):n("areaValue"),a=tS(r,t.point,i);if(!a)return;let s="horizontal"===(e.get("activeOrientation")||"horizontal")?a.x:a.y,l=o.getChannelPercentValue(i,s),u=o.withChannelValue(i,l);e.set("value",u)},setValue({context:e,event:t}){e.set("value",t.value)},setFormat({context:e,event:t}){e.set("format",t.format)},dispatchChangeEvent({scope:e,computed:t}){(0,eo.x$)(tv(e),{value:t("valueAsString")})},syncInputElements({context:e,scope:t}){tI(t,e.get("value"))},invokeOnChangeEnd({context:e,prop:t,computed:n}){t("onValueChangeEnd")?.({value:e.get("value"),valueAsString:n("valueAsString")})},setChannelColorFromInput({context:e,event:t,scope:n,prop:r}){let i;let{channel:o,isTextField:a,value:s}=t,l=e.get("value").getChannelValue("alpha");if("alpha"===o){let t=parseFloat(s);t=Number.isNaN(t)?l:t,i=e.get("value").withChannelValue("alpha",t)}else if(a)i=(0,Z.Y3)(()=>tO(s).withChannelValue("alpha",l),()=>e.get("value"));else{let t=e.get("value").toFormat(e.get("format")),n=Number.isNaN(s)?t.getChannelValue(o):s;i=t.withChannelValue(o,n)}tI(n,e.get("value"),i),e.set("value",i),r("onValueChangeEnd")?.({value:i,valueAsString:i.toString(e.get("format"))})},incrementChannel({context:e,event:t}){let n=e.get("value").incrementChannel(t.channel,t.step);e.set("value",n)},decrementChannel({context:e,event:t}){let n=e.get("value").decrementChannel(t.channel,t.step);e.set("value",n)},incrementAreaXChannel({context:e,event:t,computed:n}){let{xChannel:r}=t.channel,i=n("areaValue").incrementChannel(r,t.step);e.set("value",i)},decrementAreaXChannel({context:e,event:t,computed:n}){let{xChannel:r}=t.channel,i=n("areaValue").decrementChannel(r,t.step);e.set("value",i)},incrementAreaYChannel({context:e,event:t,computed:n}){let{yChannel:r}=t.channel,i=n("areaValue").incrementChannel(r,t.step);e.set("value",i)},decrementAreaYChannel({context:e,event:t,computed:n}){let{yChannel:r}=t.channel,i=n("areaValue").decrementChannel(r,t.step);e.set("value",i)},setChannelToMax({context:e,event:t}){let n=e.get("value"),r=n.getChannelRange(t.channel),i=n.withChannelValue(t.channel,r.maxValue);e.set("value",i)},setChannelToMin({context:e,event:t}){let n=e.get("value"),r=n.getChannelRange(t.channel),i=n.withChannelValue(t.channel,r.minValue);e.set("value",i)},focusAreaThumb({scope:e}){(0,eo.Wn)(()=>{th(e)?.focus({preventScroll:!0})})},focusChannelThumb({event:e,scope:t}){(0,eo.Wn)(()=>{tp(t,e.channel)?.focus({preventScroll:!0})})},setInitialFocus({prop:e,scope:t}){e("openAutoFocus")&&(0,eo.Wn)(()=>{let n=(0,eo.Q2)({root:tf(t),getInitialEl:e("initialFocusEl")});n?.focus({preventScroll:!0})})},setReturnFocus({scope:e}){(0,eo.Wn)(()=>{tx(e)?.focus({preventScroll:!0})})},syncFormatSelectElement({context:e,scope:t}){!function(e,t){let n=tg(e);n&&(0,eo.Wn)(()=>(0,eo.lG)(n,t))}(t,e.get("format"))},invokeOnOpen({prop:e}){e("onOpenChange")?.({open:!0})},invokeOnClose({prop:e}){e("onOpenChange")?.({open:!1})},toggleVisibility({prop:e,event:t,send:n}){n({type:e("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:t})}}}});var t_=(0,ec.e)()(["closeOnSelect","dir","disabled","format","defaultFormat","getRootNode","id","ids","initialFocusEl","name","positioning","onFocusOutside","onFormatChange","onInteractOutside","onOpenChange","onPointerDownOutside","onValueChange","onValueChangeEnd","defaultOpen","open","positioning","required","readOnly","value","defaultValue","invalid","openAutoFocus"]);(0,Z.xQ)(t_);var tT=(0,ec.e)()(["xChannel","yChannel"]);(0,Z.xQ)(tT);var tP=(0,ec.e)()(["channel","orientation"]);(0,Z.xQ)(tP);var tR=(0,ec.e)()(["value","disabled"]);(0,Z.xQ)(tR);var tA=(0,ec.e)()(["value","respectAlpha"]);(0,Z.xQ)(tA);var tN=(0,ec.e)()(["size"]);(0,Z.xQ)(tN);let tM=tt.extendWith("view");var tL=n(68348),tD=n(43868),tF=(0,K.F)("editable").parts("root","area","label","preview","input","editTrigger","submitTrigger","cancelTrigger","control");tF.build();var tV=e=>e.ids?.input??`editable:${e.id}:input`,tj=e=>e.ids?.submitTrigger??`editable:${e.id}:submit`,tz=e=>e.ids?.cancelTrigger??`editable:${e.id}:cancel`,tU=e=>e.ids?.editTrigger??`editable:${e.id}:edit`,tB=e=>e.getById(tV(e)),tW=e=>e.getById(tj(e)),tH=e=>e.getById(tz(e)),t$=e=>e.getById(tU(e));(0,el.C8)({props:({props:e})=>({activationMode:"focus",submitMode:"both",defaultValue:"",selectOnFocus:!0,...e,translations:{input:"editable input",edit:"edit",submit:"submit",cancel:"cancel",...e.translations}}),initialState:({prop:e})=>e("edit")||e("defaultEdit")?"edit":"preview",entry:["focusInputIfNeeded"],context:({bindable:e,prop:t})=>({value:e(()=>({defaultValue:t("defaultValue"),value:t("value"),onChange:e=>t("onValueChange")?.({value:e})})),previousValue:e(()=>({defaultValue:""}))}),watch({track:e,action:t,context:n,prop:r}){e([()=>n.get("value")],()=>{t(["syncInputValue"])}),e([()=>r("edit")],()=>{t(["toggleEditing"])})},computed:{submitOnEnter:({prop:e})=>["both","enter"].includes(e("submitMode")),submitOnBlur:({prop:e})=>["both","blur"].includes(e("submitMode")),isInteractive:({prop:e})=>!(e("disabled")||e("readOnly"))},on:{"VALUE.SET":{actions:["setValue"]}},states:{preview:{entry:["blurInputIfNeeded"],on:{"CONTROLLED.EDIT":{target:"edit",actions:["setPreviousValue","focusInput"]},EDIT:[{guard:"isEditControlled",actions:["invokeOnEdit"]},{target:"edit",actions:["setPreviousValue","focusInput","invokeOnEdit"]}]}},edit:{effects:["trackInteractOutside"],on:{"CONTROLLED.PREVIEW":[{guard:"isSubmitEvent",target:"preview",actions:["setPreviousValue","restoreFocus","invokeOnSubmit"]},{target:"preview",actions:["revertValue","restoreFocus","invokeOnCancel"]}],CANCEL:[{guard:"isEditControlled",actions:["invokeOnPreview"]},{target:"preview",actions:["revertValue","restoreFocus","invokeOnCancel","invokeOnPreview"]}],SUBMIT:[{guard:"isEditControlled",actions:["invokeOnPreview"]},{target:"preview",actions:["setPreviousValue","restoreFocus","invokeOnSubmit","invokeOnPreview"]}]}}},implementations:{guards:{isEditControlled:({prop:e})=>void 0!=e("edit"),isSubmitEvent:({event:e})=>e.previousEvent?.type==="SUBMIT"},effects:{trackInteractOutside:({send:e,scope:t,prop:n,computed:r})=>(0,tD.J)(tB(t),{exclude:e=>[tH(t),tW(t)].some(t=>(0,eo.r3)(t,e)),onFocusOutside:n("onFocusOutside"),onPointerDownOutside:n("onPointerDownOutside"),onInteractOutside(t){if(n("onInteractOutside")?.(t),t.defaultPrevented)return;let{focusable:i}=t.detail;e({type:r("submitOnBlur")?"SUBMIT":"CANCEL",src:"interact-outside",focusable:i})}})},actions:{restoreFocus({event:e,scope:t,prop:n}){e.focusable||(0,eo.Wn)(()=>{let e=n("finalFocusEl")?.()??t$(t);e?.focus({preventScroll:!0})})},clearValue({context:e}){e.set("value","")},focusInputIfNeeded({action:e,prop:t}){(t("edit")||t("defaultEdit"))&&e(["focusInput"])},focusInput({scope:e,prop:t}){(0,eo.Wn)(()=>{let n=tB(e);n&&(t("selectOnFocus")?n.select():n.focus({preventScroll:!0}))})},invokeOnCancel({prop:e,context:t}){let n=t.get("previousValue");e("onValueRevert")?.({value:n})},invokeOnSubmit({prop:e,context:t}){let n=t.get("value");e("onValueCommit")?.({value:n})},invokeOnEdit({prop:e}){e("onEditChange")?.({edit:!0})},invokeOnPreview({prop:e}){e("onEditChange")?.({edit:!1})},toggleEditing({prop:e,send:t,event:n}){t({type:e("edit")?"CONTROLLED.EDIT":"CONTROLLED.PREVIEW",previousEvent:n})},syncInputValue({context:e,scope:t}){let n=tB(t);n&&(0,eo.lG)(n,e.get("value"))},setValue({context:e,prop:t,event:n}){let r=t("maxLength"),i=null!=r?n.value.slice(0,r):n.value;e.set("value",i)},setPreviousValue({context:e}){e.set("previousValue",e.get("value"))},revertValue({context:e}){let t=e.get("previousValue");t&&e.set("value",t)},blurInputIfNeeded({scope:e}){tB(e)?.blur()}}}});var tq=(0,ec.e)()(["activationMode","autoResize","dir","disabled","finalFocusEl","form","getRootNode","id","ids","invalid","maxLength","name","onEditChange","onFocusOutside","onInteractOutside","onPointerDownOutside","onValueChange","onValueCommit","onValueRevert","placeholder","readOnly","required","selectOnFocus","edit","defaultEdit","submitMode","translations","defaultValue","value"]);(0,Z.xQ)(tq);var tG=n(76596);let tK=(0,K.F)("fieldset").parts("root","errorText","helperText","legend");tK.build();var tZ=e=>"audio/*"===e||"video/*"===e||"image/*"===e||"text/*"===e||/\w+\/[-+.\w]+/g.test(e)||/^.*\.[\w]+$/.test(e),tY=(e,t)=>e.name===t.name&&e.size===t.size&&e.type===t.type,tX=e=>null!=e,tQ=(0,K.F)("file-upload").parts("root","dropzone","item","itemDeleteTrigger","itemGroup","itemName","itemPreview","itemPreviewImage","itemSizeText","label","trigger","clearTrigger");tQ.build();var tJ=e=>e.ids?.root??`file:${e.id}`,t0=e=>e.ids?.hiddenInput??`file:${e.id}:input`,t1=e=>e.getById(tJ(e)),t2=e=>e.getById(t0(e));function t5(e,t){let{context:n,prop:r,computed:i}=e,o=[],a=[];return t.forEach(e=>{let[t,s]=function(e,t){let n="application/x-moz-file"===e.type||function(e,t){if(e&&t){let n=Array.isArray(t)?t:"string"==typeof t?t.split(","):[];if(0===n.length)return!0;let r=e.name||"",i=(e.type||"").toLowerCase(),o=i.replace(/\/.*$/,"");return n.some(e=>{let t=e.trim().toLowerCase();return"."===t.charAt(0)?r.toLowerCase().endsWith(t):t.endsWith("/*")?o===t.replace(/\/.*$/,""):i===t})}return!0}(e,t);return[n,n?null:"FILE_INVALID_TYPE"]}(e,i("acceptAttr")),[l,u]=function(e,t,n){if(tX(e.size)){if(tX(t)&&tX(n)){if(e.size>n)return[!1,"FILE_TOO_LARGE"];if(e.size<t)return[!1,"FILE_TOO_SMALL"]}else if(tX(t)&&e.size<t)return[!1,"FILE_TOO_SMALL"];else if(tX(n)&&e.size>n)return[!1,"FILE_TOO_LARGE"]}return[!0,null]}(e,r("minFileSize"),r("maxFileSize")),c=r("validate")?.(e,{acceptedFiles:n.get("acceptedFiles"),rejectedFiles:n.get("rejectedFiles")}),d=!c||0===c.length;if(t&&l&&d)o.push(e);else{let t=[s,u];d||t.push(...c??[]),a.push({file:e,errors:t.filter(Boolean)})}}),!function(e,t){let{context:n,prop:r,computed:i}=e;return(!!i("multiple")||!(t>1))&&(!i("multiple")&&t+n.get("acceptedFiles").length===2||!(t+n.get("acceptedFiles").length>r("maxFiles")))}(e,o.length)&&(o.forEach(e=>{a.push({file:e,errors:["TOO_MANY_FILES"]})}),o.splice(0)),{acceptedFiles:o,rejectedFiles:a}}(0,el.C8)({props:({props:e})=>({minFileSize:0,maxFileSize:Number.POSITIVE_INFINITY,maxFiles:1,allowDrop:!0,preventDocumentDrop:!0,...e,translations:{dropzone:"dropzone",itemPreview:e=>`preview of ${e.name}`,deleteFile:e=>`delete file ${e.name}`,...e.translations}}),initialState:()=>"idle",context:({prop:e,bindable:t,getContext:n})=>({acceptedFiles:t(()=>({defaultValue:[],isEqual:(e,t)=>e.length===t?.length&&e.every((e,n)=>tY(e,t[n])),hash:e=>e.map(e=>`${e.name}-${e.size}`).join(","),onChange(t){let r=n();e("onFileAccept")?.({files:t}),e("onFileChange")?.({acceptedFiles:t,rejectedFiles:r.get("rejectedFiles")})}})),rejectedFiles:t(()=>({defaultValue:[],isEqual:(e,t)=>e.length===t?.length&&e.every((e,n)=>tY(e.file,t[n].file)),onChange(t){let r=n();e("onFileReject")?.({files:t}),e("onFileChange")?.({acceptedFiles:r.get("acceptedFiles"),rejectedFiles:t})}}))}),computed:{acceptAttr:({prop:e})=>(function(e){if(null!=e)return"string"==typeof e?e:Array.isArray(e)?e.filter(tZ).join(","):Object.entries(e).reduce((e,[t,n])=>[...e,t,...n],[]).filter(tZ).join(",")})(e("accept")),multiple:({prop:e})=>e("maxFiles")>1},watch({track:e,context:t,action:n}){e([()=>t.hash("acceptedFiles")],()=>{n(["syncInputElement"])})},on:{"FILES.SET":{actions:["setFiles"]},"FILE.SELECT":{actions:["setEventFiles"]},"FILE.DELETE":{actions:["removeFile"]},"FILES.CLEAR":{actions:["clearFiles"]},"REJECTED_FILES.CLEAR":{actions:["clearRejectedFiles"]}},effects:["preventDocumentDrop"],states:{idle:{on:{OPEN:{actions:["openFilePicker"]},"DROPZONE.CLICK":{actions:["openFilePicker"]},"DROPZONE.FOCUS":{target:"focused"},"DROPZONE.DRAG_OVER":{target:"dragging"}}},focused:{on:{"DROPZONE.BLUR":{target:"idle"},OPEN:{actions:["openFilePicker"]},"DROPZONE.CLICK":{actions:["openFilePicker"]},"DROPZONE.DRAG_OVER":{target:"dragging"}}},dragging:{on:{"DROPZONE.DROP":{target:"idle",actions:["setEventFiles"]},"DROPZONE.DRAG_LEAVE":{target:"idle"}}}},implementations:{effects:{preventDocumentDrop({prop:e,scope:t}){if(!e("preventDocumentDrop")||!e("allowDrop")||e("disabled"))return;let n=t.getDoc();return(0,Z.PP)((0,eo.EV)(n,"dragover",e=>{e?.preventDefault()},!1),(0,eo.EV)(n,"drop",e=>{(0,eo.r3)(t1(t),(0,eo.NI)(e))||e.preventDefault()},!1))}},actions:{syncInputElement({scope:e,context:t}){queueMicrotask(()=>{let n=t2(e);if(!n)return;!function(e,t){let n=(0,eo.Jj)(e);try{if("DataTransfer"in n){let r=new n.DataTransfer;t.forEach(e=>{r.items.add(e)}),e.files=r.files}}catch{}}(n,t.get("acceptedFiles"));let r=e.getWin();n.dispatchEvent(new r.Event("change",{bubbles:!0}))})},openFilePicker({scope:e}){(0,eo.Wn)(()=>{t2(e)?.click()})},setFiles(e){let{computed:t,context:n,event:r}=e,{acceptedFiles:i,rejectedFiles:o}=t5(e,r.files);n.set("acceptedFiles",t("multiple")?i:i.length>0?[i[0]]:[]),n.set("rejectedFiles",o)},setEventFiles(e){let{computed:t,context:n,event:r,prop:i}=e,{acceptedFiles:o,rejectedFiles:a}=t5(e,r.files),s=e=>{if(t("multiple")){n.set("acceptedFiles",t=>[...t,...e]),n.set("rejectedFiles",a);return}if(e.length){n.set("acceptedFiles",[e[0]]),n.set("rejectedFiles",a);return}a.length&&(n.set("acceptedFiles",n.get("acceptedFiles")),n.set("rejectedFiles",a))},l=i("transformFiles");l?l(o).then(s).catch(e=>{(0,Z.ZK)(`[zag-js/file-upload] error transforming files
2
- ${e}`)}):s(o)},removeFile({context:e,event:t}){let n=e.get("acceptedFiles").filter(e=>!tY(e,t.file)),r=e.get("rejectedFiles").filter(e=>!tY(e.file,t.file));e.set("acceptedFiles",n),e.set("rejectedFiles",r)},clearRejectedFiles({context:e}){e.set("rejectedFiles",[])},clearFiles({context:e}){e.set("acceptedFiles",[]),e.set("rejectedFiles",[])}}}});var t4=(0,ec.e)()(["accept","allowDrop","capture","dir","directory","disabled","getRootNode","id","ids","locale","maxFiles","maxFileSize","minFileSize","name","invalid","onFileAccept","onFileReject","onFileChange","preventDocumentDrop","required","translations","transformFiles","validate"]);(0,Z.xQ)(t4);var t3=(0,ec.e)()(["file"]);(0,Z.xQ)(t3);var t6=n(60061),t8=n(33535),t7=n(43493),t9=(0,K.F)("rating-group").parts("root","label","item","control");t9.build();var ne=e=>e.ids?.hiddenInput??`rating:${e.id}:input`,nt=e=>e.ids?.control??`rating:${e.id}:control`,nn=e=>e.getById(nt(e)),nr=(e,t)=>{let n=`[role=radio][aria-posinset='${Math.ceil(t)}']`;return(0,eo.IO)(nn(e),n)},ni=e=>e.getById(ne(e)),no=(e,t)=>{let n=ni(e);n&&(0,eo.x$)(n,{value:t})};(0,el.C8)({props:({props:e})=>({name:"rating",count:5,dir:"ltr",defaultValue:-1,...e,translations:{ratingValueText:e=>`${e} stars`,...e.translations}}),initialState:()=>"idle",context:({prop:e,bindable:t})=>({value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),onChange(t){e("onValueChange")?.({value:t})}})),hoveredValue:t(()=>({defaultValue:-1,onChange(t){e("onHoverChange")?.({hoveredValue:t})}})),fieldsetDisabled:t(()=>({defaultValue:!1}))}),watch({track:e,action:t,prop:n,context:r}){e([()=>n("allowHalf")],()=>{t(["roundValueIfNeeded"])}),e([()=>r.get("value")],()=>{t(["dispatchChangeEvent"])})},computed:{isDisabled:({context:e,prop:t})=>!!t("disabled")||e.get("fieldsetDisabled"),isInteractive:({computed:e,prop:t})=>!(e("isDisabled")||t("readOnly")),isHovering:({context:e})=>e.get("hoveredValue")>-1},effects:["trackFormControlState"],on:{SET_VALUE:{actions:["setValue"]},CLEAR_VALUE:{actions:["clearValue"]}},states:{idle:{entry:["clearHoveredValue"],on:{GROUP_POINTER_OVER:{target:"hover"},FOCUS:{target:"focus"},CLICK:{actions:["setValue","focusActiveRadio"]}}},focus:{on:{POINTER_OVER:{actions:["setHoveredValue"]},GROUP_POINTER_LEAVE:{actions:["clearHoveredValue"]},BLUR:{target:"idle"},SPACE:{guard:"isValueEmpty",actions:["setValue"]},CLICK:{actions:["setValue","focusActiveRadio"]},ARROW_LEFT:{actions:["setPrevValue","focusActiveRadio"]},ARROW_RIGHT:{actions:["setNextValue","focusActiveRadio"]},HOME:{actions:["setValueToMin","focusActiveRadio"]},END:{actions:["setValueToMax","focusActiveRadio"]}}},hover:{on:{POINTER_OVER:{actions:["setHoveredValue"]},GROUP_POINTER_LEAVE:[{guard:"isRadioFocused",target:"focus",actions:["clearHoveredValue"]},{target:"idle",actions:["clearHoveredValue"]}],CLICK:{actions:["setValue","focusActiveRadio"]}}}},implementations:{guards:{isInteractive:({prop:e})=>!(e("disabled")||e("readOnly")),isHoveredValueEmpty:({context:e})=>-1===e.get("hoveredValue"),isValueEmpty:({context:e})=>0>=e.get("value"),isRadioFocused:({scope:e})=>!!nn(e)?.contains(e.getActiveElement())},effects:{trackFormControlState:({context:e,scope:t})=>(0,eo.NS)(ni(t),{onFieldsetDisabledChange(t){e.set("fieldsetDisabled",t)},onFormReset(){e.set("value",e.initial("value"))}})},actions:{clearHoveredValue({context:e}){e.set("hoveredValue",-1)},focusActiveRadio({scope:e,context:t}){(0,eo.Wn)(()=>nr(e,t.get("value"))?.focus())},setPrevValue({context:e,prop:t}){let n=t("allowHalf")?.5:1;e.set("value",Math.max(0,e.get("value")-n))},setNextValue({context:e,prop:t}){let n=t("allowHalf")?.5:1,r=-1===e.get("value")?0:e.get("value");e.set("value",Math.min(t("count"),r+n))},setValueToMin({context:e}){e.set("value",1)},setValueToMax({context:e,prop:t}){e.set("value",t("count"))},setValue({context:e,event:t}){let n=e.get("hoveredValue"),r=-1===n?t.value:n;e.set("value",r)},clearValue({context:e}){e.set("value",-1)},setHoveredValue({context:e,prop:t,event:n}){let r=t("allowHalf")&&n.isMidway;e.set("hoveredValue",n.index-(r?.5:0))},roundValueIfNeeded({context:e,prop:t}){t("allowHalf")||e.set("value",Math.round(e.get("value")))},dispatchChangeEvent({context:e,scope:t}){no(t,e.get("value"))}}}});var na=(0,ec.e)()(["allowHalf","autoFocus","count","dir","disabled","form","getRootNode","id","ids","name","onHoverChange","onValueChange","required","readOnly","translations","value","defaultValue"]);(0,Z.xQ)(na);var ns=(0,ec.e)()(["index"]);(0,Z.xQ)(ns);var nl=(0,K.F)("select").parts("label","positioner","trigger","indicator","clearTrigger","item","itemText","itemIndicator","itemGroup","itemGroupLabel","list","content","root","control","valueText");nl.build();var nu=e=>new ee(e);nu.empty=()=>new ee({items:[]});var nc=e=>e.ids?.content??`select:${e.id}:content`,nd=e=>e.ids?.trigger??`select:${e.id}:trigger`,nf=e=>e.ids?.clearTrigger??`select:${e.id}:clear-trigger`,nh=(e,t)=>e.ids?.item?.(t)??`select:${e.id}:option:${t}`,np=e=>e.ids?.hiddenSelect??`select:${e.id}:select`,ng=e=>e.ids?.positioner??`select:${e.id}:positioner`,nv=e=>e.getById(np(e)),nm=e=>e.getById(nc(e)),nb=e=>e.getById(nd(e)),ny=e=>e.getById(nf(e)),nx=e=>e.getById(ng(e)),nw=(e,t)=>e.getById(nh(e,t)),{and:nE,not:nS,or:nk}=(0,el.Fb)();function nO(e){let t=e.restoreFocus??e.previousEvent?.restoreFocus;return null==t||!!t}(0,el.C8)({props:({props:e})=>({loopFocus:!1,closeOnSelect:!e.multiple,composite:!0,defaultValue:[],...e,collection:e.collection??nu.empty(),positioning:{placement:"bottom-start",gutter:8,...e.positioning}}),context:({prop:e,bindable:t})=>({value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),isEqual:Z.Xy,onChange(t){let n=e("collection").findMany(t);return e("onValueChange")?.({value:t,items:n})}})),highlightedValue:t(()=>({defaultValue:e("defaultHighlightedValue")||null,value:e("highlightedValue"),onChange(t){e("onHighlightChange")?.({highlightedValue:t,highlightedItem:e("collection").find(t),highlightedIndex:e("collection").indexOf(t)})}})),currentPlacement:t(()=>({defaultValue:void 0})),fieldsetDisabled:t(()=>({defaultValue:!1})),highlightedItem:t(()=>({defaultValue:null})),selectedItems:t(()=>{let t=e("value")??e("defaultValue")??[];return{defaultValue:e("collection").findMany(t)}})}),refs:()=>({typeahead:{...eo.cB.defaultOptions}}),computed:{hasSelectedItems:({context:e})=>e.get("value").length>0,isTypingAhead:({refs:e})=>""!==e.get("typeahead").keysSoFar,isDisabled:({prop:e,context:t})=>!!e("disabled")||!!t.get("fieldsetDisabled"),isInteractive:({prop:e})=>!(e("disabled")||e("readOnly")),valueAsString:({context:e,prop:t})=>t("collection").stringifyItems(e.get("selectedItems"))},initialState:({prop:e})=>e("open")||e("defaultOpen")?"open":"idle",entry:["syncSelectElement"],watch({context:e,prop:t,track:n,action:r}){n([()=>e.get("value").toString()],()=>{r(["syncSelectedItems","syncSelectElement","dispatchChangeEvent"])}),n([()=>t("open")],()=>{r(["toggleVisibility"])}),n([()=>e.get("highlightedValue")],()=>{r(["syncHighlightedItem"])}),n([()=>t("collection").toString()],()=>{r(["syncCollection"])})},on:{"HIGHLIGHTED_VALUE.SET":{actions:["setHighlightedItem"]},"ITEM.SELECT":{actions:["selectItem"]},"ITEM.CLEAR":{actions:["clearItem"]},"VALUE.SET":{actions:["setSelectedItems"]},"VALUE.CLEAR":{actions:["clearSelectedItems"]},"CLEAR.CLICK":{actions:["clearSelectedItems","focusTriggerEl"]}},effects:["trackFormControlState"],states:{idle:{tags:["closed"],on:{"CONTROLLED.OPEN":[{guard:"isTriggerClickEvent",target:"open",actions:["setInitialFocus","highlightFirstSelectedItem"]},{target:"open",actions:["setInitialFocus"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen","setInitialFocus","highlightFirstSelectedItem"]}],"TRIGGER.FOCUS":{target:"focused"},OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["setInitialFocus","invokeOnOpen"]}]}},focused:{tags:["closed"],on:{"CONTROLLED.OPEN":[{guard:"isTriggerClickEvent",target:"open",actions:["setInitialFocus","highlightFirstSelectedItem"]},{guard:"isTriggerArrowUpEvent",target:"open",actions:["setInitialFocus","highlightComputedLastItem"]},{guard:nk("isTriggerArrowDownEvent","isTriggerEnterEvent"),target:"open",actions:["setInitialFocus","highlightComputedFirstItem"]},{target:"open",actions:["setInitialFocus"]}],OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["setInitialFocus","invokeOnOpen"]}],"TRIGGER.BLUR":{target:"idle"},"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["setInitialFocus","invokeOnOpen","highlightFirstSelectedItem"]}],"TRIGGER.ENTER":[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["setInitialFocus","invokeOnOpen","highlightComputedFirstItem"]}],"TRIGGER.ARROW_UP":[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["setInitialFocus","invokeOnOpen","highlightComputedLastItem"]}],"TRIGGER.ARROW_DOWN":[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["setInitialFocus","invokeOnOpen","highlightComputedFirstItem"]}],"TRIGGER.ARROW_LEFT":[{guard:nE(nS("multiple"),"hasSelectedItems"),actions:["selectPreviousItem"]},{guard:nS("multiple"),actions:["selectLastItem"]}],"TRIGGER.ARROW_RIGHT":[{guard:nE(nS("multiple"),"hasSelectedItems"),actions:["selectNextItem"]},{guard:nS("multiple"),actions:["selectFirstItem"]}],"TRIGGER.HOME":{guard:nS("multiple"),actions:["selectFirstItem"]},"TRIGGER.END":{guard:nS("multiple"),actions:["selectLastItem"]},"TRIGGER.TYPEAHEAD":{guard:nS("multiple"),actions:["selectMatchingItem"]}}},open:{tags:["open"],exit:["scrollContentToTop"],effects:["trackDismissableElement","computePlacement","scrollToHighlightedItem"],on:{"CONTROLLED.CLOSE":[{guard:"restoreFocus",target:"focused",actions:["focusTriggerEl","clearHighlightedItem"]},{target:"idle",actions:["clearHighlightedItem"]}],CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{guard:"restoreFocus",target:"focused",actions:["invokeOnClose","focusTriggerEl","clearHighlightedItem"]},{target:"idle",actions:["invokeOnClose","clearHighlightedItem"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose","clearHighlightedItem"]}],"ITEM.CLICK":[{guard:nE("closeOnSelect","isOpenControlled"),actions:["selectHighlightedItem","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["selectHighlightedItem","invokeOnClose","focusTriggerEl","clearHighlightedItem"]},{actions:["selectHighlightedItem"]}],"CONTENT.HOME":{actions:["highlightFirstItem"]},"CONTENT.END":{actions:["highlightLastItem"]},"CONTENT.ARROW_DOWN":[{guard:nE("hasHighlightedItem","loop","isLastItemHighlighted"),actions:["highlightFirstItem"]},{guard:"hasHighlightedItem",actions:["highlightNextItem"]},{actions:["highlightFirstItem"]}],"CONTENT.ARROW_UP":[{guard:nE("hasHighlightedItem","loop","isFirstItemHighlighted"),actions:["highlightLastItem"]},{guard:"hasHighlightedItem",actions:["highlightPreviousItem"]},{actions:["highlightLastItem"]}],"CONTENT.TYPEAHEAD":{actions:["highlightMatchingItem"]},"ITEM.POINTER_MOVE":{actions:["highlightItem"]},"ITEM.POINTER_LEAVE":{actions:["clearHighlightedItem"]},"POSITIONING.SET":{actions:["reposition"]}}}},implementations:{guards:{loop:({prop:e})=>!!e("loopFocus"),multiple:({prop:e})=>!!e("multiple"),hasSelectedItems:({computed:e})=>!!e("hasSelectedItems"),hasHighlightedItem:({context:e})=>null!=e.get("highlightedValue"),isFirstItemHighlighted:({context:e,prop:t})=>e.get("highlightedValue")===t("collection").firstValue,isLastItemHighlighted:({context:e,prop:t})=>e.get("highlightedValue")===t("collection").lastValue,closeOnSelect:({prop:e,event:t})=>!!(t.closeOnSelect??e("closeOnSelect")),restoreFocus:({event:e})=>nO(e),isOpenControlled:({prop:e})=>void 0!==e("open"),isTriggerClickEvent:({event:e})=>e.previousEvent?.type==="TRIGGER.CLICK",isTriggerEnterEvent:({event:e})=>e.previousEvent?.type==="TRIGGER.ENTER",isTriggerArrowUpEvent:({event:e})=>e.previousEvent?.type==="TRIGGER.ARROW_UP",isTriggerArrowDownEvent:({event:e})=>e.previousEvent?.type==="TRIGGER.ARROW_DOWN"},effects:{trackFormControlState:({context:e,scope:t})=>(0,eo.NS)(nv(t),{onFieldsetDisabledChange(t){e.set("fieldsetDisabled",t)},onFormReset(){let t=e.initial("value");e.set("value",t)}}),trackDismissableElement({scope:e,send:t,prop:n}){let r=!0;return(0,eu.A)(()=>nm(e),{defer:!0,exclude:[nb(e),ny(e)],onFocusOutside:n("onFocusOutside"),onPointerDownOutside:n("onPointerDownOutside"),onInteractOutside(e){n("onInteractOutside")?.(e),r=!(e.detail.focusable||e.detail.contextmenu)},onDismiss(){t({type:"CLOSE",src:"interact-outside",restoreFocus:r})}})},computePlacement({context:e,prop:t,scope:n}){let r=t("positioning");return e.set("currentPlacement",r.placement),(0,ea.x_)(()=>nb(n),()=>nx(n),{defer:!0,...r,onComplete(t){e.set("currentPlacement",t.placement)}})},scrollToHighlightedItem({context:e,prop:t,scope:n,event:r}){let i=i=>{let o=e.get("highlightedValue");if(null==o||r.current().type.includes("POINTER"))return;let a=nw(n,o),s=nm(n),l=t("scrollToIndexFn");if(l){let e=t("collection").indexOf(o);l?.({index:e,immediate:i});return}(0,eo.zT)(a,{rootEl:s,block:"nearest"})};return(0,eo.Wn)(()=>i(!0)),(0,eo.FX)(()=>nm(n),{defer:!0,attributes:["data-activedescendant"],callback(){i(!1)}})}},actions:{reposition({context:e,prop:t,scope:n,event:r}){(0,ea.x_)(nb(n),()=>nx(n),{...t("positioning"),...r.options,defer:!0,listeners:!1,onComplete(t){e.set("currentPlacement",t.placement)}})},toggleVisibility({send:e,prop:t,event:n}){e({type:t("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:n})},highlightPreviousItem({context:e,prop:t}){let n=e.get("highlightedValue");if(null==n)return;let r=t("collection").getPreviousValue(n,1,t("loopFocus"));null!=r&&e.set("highlightedValue",r)},highlightNextItem({context:e,prop:t}){let n=e.get("highlightedValue");if(null==n)return;let r=t("collection").getNextValue(n,1,t("loopFocus"));null!=r&&e.set("highlightedValue",r)},highlightFirstItem({context:e,prop:t}){let n=t("collection").firstValue;e.set("highlightedValue",n)},highlightLastItem({context:e,prop:t}){let n=t("collection").lastValue;e.set("highlightedValue",n)},setInitialFocus({scope:e}){(0,eo.Wn)(()=>{let t=(0,eo.Q2)({root:nm(e)});t?.focus({preventScroll:!0})})},focusTriggerEl({event:e,scope:t}){nO(e)&&(0,eo.Wn)(()=>{let e=nb(t);e?.focus({preventScroll:!0})})},selectHighlightedItem({context:e,prop:t,event:n}){let r=n.value??e.get("highlightedValue");null!=r&&(t("onSelect")?.({value:r}),r=t("deselectable")&&!t("multiple")&&e.get("value").includes(r)?null:r,e.set("value",e=>null==r?[]:t("multiple")?(0,Z.kb)(e,r):[r]))},highlightComputedFirstItem({context:e,prop:t,computed:n}){let r=t("collection"),i=n("hasSelectedItems")?r.sort(e.get("value"))[0]:r.firstValue;e.set("highlightedValue",i)},highlightComputedLastItem({context:e,prop:t,computed:n}){let r=t("collection"),i=n("hasSelectedItems")?r.sort(e.get("value"))[0]:r.lastValue;e.set("highlightedValue",i)},highlightFirstSelectedItem({context:e,prop:t,computed:n}){if(!n("hasSelectedItems"))return;let r=t("collection").sort(e.get("value"))[0];e.set("highlightedValue",r)},highlightItem({context:e,event:t}){e.set("highlightedValue",t.value)},highlightMatchingItem({context:e,prop:t,event:n,refs:r}){let i=t("collection").search(n.key,{state:r.get("typeahead"),currentValue:e.get("highlightedValue")});null!=i&&e.set("highlightedValue",i)},setHighlightedItem({context:e,event:t}){e.set("highlightedValue",t.value)},clearHighlightedItem({context:e}){e.set("highlightedValue",null)},selectItem({context:e,prop:t,event:n}){t("onSelect")?.({value:n.value});let r=t("deselectable")&&!t("multiple")&&e.get("value").includes(n.value)?null:n.value;e.set("value",e=>null==r?[]:t("multiple")?(0,Z.kb)(e,r):[r])},clearItem({context:e,event:t}){e.set("value",e=>e.filter(e=>e!==t.value))},setSelectedItems({context:e,event:t}){e.set("value",t.value)},clearSelectedItems({context:e}){e.set("value",[])},selectPreviousItem({context:e,prop:t}){let[n]=e.get("value"),r=t("collection").getPreviousValue(n);r&&e.set("value",[r])},selectNextItem({context:e,prop:t}){let[n]=e.get("value"),r=t("collection").getNextValue(n);r&&e.set("value",[r])},selectFirstItem({context:e,prop:t}){let n=t("collection").firstValue;n&&e.set("value",[n])},selectLastItem({context:e,prop:t}){let n=t("collection").lastValue;n&&e.set("value",[n])},selectMatchingItem({context:e,prop:t,event:n,refs:r}){let i=t("collection").search(n.key,{state:r.get("typeahead"),currentValue:e.get("value")[0]});null!=i&&e.set("value",[i])},scrollContentToTop({prop:e,scope:t}){e("scrollToIndexFn")?e("scrollToIndexFn")?.({index:0,immediate:!0}):nm(t)?.scrollTo(0,0)},invokeOnOpen({prop:e}){e("onOpenChange")?.({open:!0})},invokeOnClose({prop:e}){e("onOpenChange")?.({open:!1})},syncSelectElement({context:e,prop:t,scope:n}){let r=nv(n);if(r){if(0===e.get("value").length&&!t("multiple")){r.selectedIndex=-1;return}for(let t of r.options)t.selected=e.get("value").includes(t.value)}},syncCollection({context:e,prop:t}){let n=t("collection"),r=n.find(e.get("highlightedValue"));r&&e.set("highlightedItem",r);let i=n.findMany(e.get("value"));e.set("selectedItems",i)},syncSelectedItems({context:e,prop:t}){let n=t("collection"),r=e.get("selectedItems"),i=e.get("value").map(e=>r.find(t=>n.getItemValue(t)===e)||n.find(e));e.set("selectedItems",i)},syncHighlightedItem({context:e,prop:t}){let n=t("collection"),r=e.get("highlightedValue"),i=r?n.find(r):null;e.set("highlightedItem",i)},dispatchChangeEvent({scope:e}){queueMicrotask(()=>{let t=nv(e);if(!t)return;let n=new(e.getWin()).Event("change",{bubbles:!0,composed:!0});t.dispatchEvent(n)})}}}});var nC=(0,ec.e)()(["closeOnSelect","collection","composite","defaultHighlightedValue","defaultOpen","defaultValue","deselectable","dir","disabled","form","getRootNode","highlightedValue","id","ids","invalid","loopFocus","multiple","name","onFocusOutside","onHighlightChange","onInteractOutside","onOpenChange","onPointerDownOutside","onSelect","onValueChange","open","positioning","readOnly","required","scrollToIndexFn","value"]);(0,Z.xQ)(nC);var nI=(0,ec.e)()(["item","persistFocus"]);(0,Z.xQ)(nI);var n_=(0,ec.e)()(["id"]);(0,Z.xQ)(n_);var nT=(0,ec.e)()(["htmlFor"]);(0,Z.xQ)(nT);var nP=(0,K.F)("slider").parts("root","label","thumb","valueText","track","range","control","markerGroup","marker","draggingIndicator");nP.build();var nR=e=>e.ids?.root??`slider:${e.id}`,nA=(e,t)=>e.ids?.thumb?.(t)??`slider:${e.id}:thumb:${t}`,nN=(e,t)=>e.ids?.hiddenInput?.(t)??`slider:${e.id}:input:${t}`,nM=e=>e.ids?.control??`slider:${e.id}:control`,nL=e=>e.getById(nR(e)),nD=(e,t)=>e.getById(nA(e,t)),nF=e=>(0,eo.Kt)(nj(e),"[role=slider]"),nV=(e,t)=>e.getById(nN(e,t)),nj=e=>e.getById(nM(e)),nz=(e,t)=>{let{prop:n,scope:r}=e,i=nj(r);if(!i)return;let o=(0,eo.rs)(t,i).getPercentValue({orientation:n("orientation"),dir:n("dir"),inverted:{y:!0}});return(0,Z.h1)(o,n("min"),n("max"),n("step"))},nU=(e,t)=>{t.forEach((t,n)=>{let r=nV(e,n);r&&(0,eo.x$)(r,{value:t})})},nB=e=>({left:e?.offsetLeft??0,top:e?.offsetTop??0,width:e?.offsetWidth??0,height:e?.offsetHeight??0});function nW(e,t){let{context:n,prop:r}=e,i=r("step")*r("minStepsBetweenThumbs");return(0,Z.RV)(n.get("value"),r("min"),r("max"),i)[t]}function nH(e,t,n){let{prop:r}=e,i=nW(e,n),o=(0,Z.N4)(t,r("min"),r("max"),r("step"));return(0,Z.HU)(o,i.min,i.max)}var n$=(e,t)=>e?.width===t?.width&&e?.height===t?.height,nq=(e,t,n,r,i)=>(0,Z.RV)(e,t,n,i*r).map(e=>{let i=(0,Z.N4)(e.value,e.min,e.max,r),o=(0,Z.HU)(i,e.min,e.max);if(!(0,Z.Uq)(o,t,n))throw Error("[zag-js/slider] The configured `min`, `max`, `step` or `minStepsBetweenThumbs` values are invalid");return o});(0,el.C8)({props({props:e}){let t=e.min??0,n=e.max??100,r=e.step??1,i=e.defaultValue??[t],o=e.minStepsBetweenThumbs??0;return{dir:"ltr",thumbAlignment:"contain",origin:"start",orientation:"horizontal",minStepsBetweenThumbs:o,...e,defaultValue:nq(i,t,n,r,o),value:e.value?nq(e.value,t,n,r,o):void 0,max:n,step:r,min:t}},initialState:()=>"idle",context:({prop:e,bindable:t,getContext:n})=>({thumbSize:t(()=>({defaultValue:e("thumbSize")||null})),value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),isEqual:Z.Xy,hash:e=>e.join(","),onChange(t){e("onValueChange")?.({value:t})}})),focusedIndex:t(()=>({defaultValue:-1,onChange(t){let r=n();e("onFocusChange")?.({focusedIndex:t,value:r.get("value")})}})),fieldsetDisabled:t(()=>({defaultValue:!1}))}),computed:{isHorizontal:({prop:e})=>"horizontal"===e("orientation"),isVertical:({prop:e})=>"vertical"===e("orientation"),isRtl:({prop:e})=>"horizontal"===e("orientation")&&"rtl"===e("dir"),isDisabled:({context:e,prop:t})=>!!t("disabled")||e.get("fieldsetDisabled"),isInteractive:({prop:e,computed:t})=>!(e("readOnly")||t("isDisabled")),hasMeasuredThumbSize:({context:e})=>null!=e.get("thumbSize"),valuePercent:({context:e,prop:t})=>e.get("value").map(e=>100*(0,Z.xs)(e,t("min"),t("max")))},watch({track:e,action:t,context:n}){e([()=>n.hash("value")],()=>{t(["syncInputElements","dispatchChangeEvent"])})},effects:["trackFormControlState","trackThumbSize"],on:{SET_VALUE:[{guard:"hasIndex",actions:["setValueAtIndex"]},{actions:["setValue"]}],INCREMENT:{actions:["incrementThumbAtIndex"]},DECREMENT:{actions:["decrementThumbAtIndex"]}},states:{idle:{on:{POINTER_DOWN:{target:"dragging",actions:["setClosestThumbIndex","setPointerValue","focusActiveThumb"]},FOCUS:{target:"focus",actions:["setFocusedIndex"]},THUMB_POINTER_DOWN:{target:"dragging",actions:["setFocusedIndex","focusActiveThumb"]}}},focus:{entry:["focusActiveThumb"],on:{POINTER_DOWN:{target:"dragging",actions:["setClosestThumbIndex","setPointerValue","focusActiveThumb"]},THUMB_POINTER_DOWN:{target:"dragging",actions:["setFocusedIndex","focusActiveThumb"]},ARROW_DEC:{actions:["decrementThumbAtIndex","invokeOnChangeEnd"]},ARROW_INC:{actions:["incrementThumbAtIndex","invokeOnChangeEnd"]},HOME:{actions:["setFocusedThumbToMin","invokeOnChangeEnd"]},END:{actions:["setFocusedThumbToMax","invokeOnChangeEnd"]},BLUR:{target:"idle",actions:["clearFocusedIndex"]}}},dragging:{entry:["focusActiveThumb"],effects:["trackPointerMove"],on:{POINTER_UP:{target:"focus",actions:["invokeOnChangeEnd"]},POINTER_MOVE:{actions:["setPointerValue"]}}}},implementations:{guards:{hasIndex:({event:e})=>null!=e.index},effects:{trackFormControlState:({context:e,scope:t})=>(0,eo.NS)(nL(t),{onFieldsetDisabledChange(t){e.set("fieldsetDisabled",t)},onFormReset(){e.set("value",e.initial("value"))}}),trackPointerMove:({scope:e,send:t})=>(0,eo.h_)(e.getDoc(),{onPointerMove(e){t({type:"POINTER_MOVE",point:e.point})},onPointerUp(){t({type:"POINTER_UP"})}}),trackThumbSize({context:e,scope:t,prop:n}){if(!("contain"!==n("thumbAlignment")||n("thumbSize")))return(0,eo.ce)(nF(t),{box:"border-box",measure:e=>nB(e),onEntry({rects:t}){if(0===t.length)return;let n=(0,Z.ei)(t[0],["width","height"]);n$(e.get("thumbSize"),n)||e.set("thumbSize",n)}})}},actions:{dispatchChangeEvent({context:e,scope:t}){nU(t,e.get("value"))},syncInputElements({context:e,scope:t}){e.get("value").forEach((e,n)=>{let r=nV(t,n);(0,eo.lG)(r,e.toString())})},invokeOnChangeEnd({prop:e,context:t}){queueMicrotask(()=>{e("onValueChangeEnd")?.({value:t.get("value")})})},setClosestThumbIndex(e){let{context:t,event:n}=e,r=nz(e,n.point);if(null==r)return;let i=function(e,t){let{context:n}=e;return(0,Z.Dh)(n.get("value"),t)}(e,r);t.set("focusedIndex",i)},setFocusedIndex({context:e,event:t}){e.set("focusedIndex",t.index)},clearFocusedIndex({context:e}){e.set("focusedIndex",-1)},setPointerValue(e){queueMicrotask(()=>{let{context:t,event:n}=e,r=nz(e,n.point);if(null==r)return;let i=t.get("focusedIndex"),o=nH(e,r,i);t.set("value",e=>(0,Z.JK)(e,i,o))})},focusActiveThumb({scope:e,context:t}){(0,eo.Wn)(()=>{let n=nD(e,t.get("focusedIndex"));n?.focus({preventScroll:!0})})},decrementThumbAtIndex(e){let{context:t,event:n}=e,r=function(e,t,n){let{context:r,prop:i}=e,o=t??r.get("focusedIndex"),a=nW(e,o),s=(0,Z.GI)(o,{...a,step:n??i("step"),values:r.get("value")});return s[o]=(0,Z.HU)(s[o],a.min,a.max),s}(e,n.index,n.step);t.set("value",r)},incrementThumbAtIndex(e){let{context:t,event:n}=e,r=function(e,t,n){let{context:r,prop:i}=e,o=t??r.get("focusedIndex"),a=nW(e,o),s=(0,Z.Mi)(o,{...a,step:n??i("step"),values:r.get("value")});return s[o]=(0,Z.HU)(s[o],a.min,a.max),s}(e,n.index,n.step);t.set("value",r)},setFocusedThumbToMin(e){let{context:t}=e,n=t.get("focusedIndex"),{min:r}=nW(e,n);t.set("value",e=>(0,Z.JK)(e,n,r))},setFocusedThumbToMax(e){let{context:t}=e,n=t.get("focusedIndex"),{max:r}=nW(e,n);t.set("value",e=>(0,Z.JK)(e,n,r))},setValueAtIndex(e){let{context:t,event:n}=e,r=nH(e,n.value,n.index);t.set("value",e=>(0,Z.JK)(e,n.index,r))},setValue(e){let{context:t,event:n}=e,r=n.value.map((t,n)=>nH(e,t,n));t.set("value",r)}}}});var nG=(0,ec.e)()(["aria-label","aria-labelledby","dir","disabled","form","getAriaValueText","getRootNode","id","ids","invalid","max","min","minStepsBetweenThumbs","name","onFocusChange","onValueChange","onValueChangeEnd","orientation","origin","readOnly","step","thumbAlignment","thumbAlignment","thumbSize","value","defaultValue"]);(0,Z.xQ)(nG);var nK=(0,ec.e)()(["index","name"]);(0,Z.xQ)(nK);var nZ=n(56682);let nY=eV.extendWith("itemBody"),nX=(0,K.F)("action-bar").parts("positioner","content","separator","selectionTrigger","closeTrigger"),nQ=(0,K.F)("alert").parts("title","description","root","indicator","content"),nJ=(0,K.F)("breadcrumb").parts("link","currentLink","item","list","root","ellipsis","separator"),n0=(0,K.F)("blockquote").parts("root","icon","content","caption"),n1=(0,K.F)("card").parts("root","header","body","footer","title","description"),n2=(0,K.F)("checkbox-card",["root","control","label","description","addon","indicator","content"]),n5=(0,K.F)("data-list").parts("root","item","itemLabel","itemValue"),n4=tL.Os.extendWith("header","body","footer","backdrop"),n3=tL.Os.extendWith("header","body","footer","backdrop"),n6=tF.extendWith("textarea"),n8=(0,K.F)("empty-state",["root","content","indicator","title","description"]),n7=tG.$.extendWith("requiredIndicator"),n9=tK.extendWith("content"),re=tQ.extendWith("itemContent","dropzoneContent","fileText"),rt=(0,K.F)("list").parts("root","item","indicator"),rn=t6.Os.extendWith("itemCommand"),rr=(0,K.F)("select").parts("root","field","indicator"),ri=t8.Os.extendWith("header","body","footer"),ro=t7.Os.extendWith("itemAddon","itemIndicator"),ra=ro.extendWith("itemContent","itemDescription"),rs=t9.extendWith("itemIndicator"),rl=nl.extendWith("indicatorGroup"),ru=ed.extendWith("indicatorGroup","empty"),rc=nP.extendWith("markerIndicator"),rd=(0,K.F)("stat").parts("root","label","helpText","valueText","valueUnit","indicator"),rf=(0,K.F)("status").parts("root","indicator"),rh=(0,K.F)("steps",["root","list","item","trigger","indicator","separator","content","title","description","nextTrigger","prevTrigger","progress"]),rp=nZ.Os.extendWith("indicator"),rg=(0,K.F)("table").parts("root","header","body","row","columnHeader","cell","footer","caption"),rv=(0,K.F)("toast").parts("root","title","description","indicator","closeTrigger","actionTrigger"),rm=(0,K.F)("tabs").parts("root","trigger","list","content","contentGroup","indicator"),rb=(0,K.F)("tag").parts("root","label","closeTrigger","startElement","endElement"),ry=(0,K.F)("timeline").parts("root","item","content","separator","indicator","connector","title","description"),rx=tM.extendWith("channelText"),rw=(0,o.O3)({className:"chakra-accordion",slots:nY.keys(),base:{root:{width:"full","--accordion-radius":"radii.l2"},item:{overflowAnchor:"none"},itemTrigger:{display:"flex",alignItems:"center",textAlign:"start",width:"full",outline:"0",gap:"3",fontWeight:"medium",borderRadius:"var(--accordion-radius)",_focusVisible:{outline:"2px solid",outlineColor:"colorPalette.focusRing"},_disabled:{layerStyle:"disabled"}},itemBody:{pt:"var(--accordion-padding-y)",pb:"calc(var(--accordion-padding-y) * 2)"},itemContent:{overflow:"hidden",borderRadius:"var(--accordion-radius)",_open:{animationName:"expand-height, fade-in",animationDuration:"moderate"},_closed:{animationName:"collapse-height, fade-out",animationDuration:"moderate"}},itemIndicator:{transition:"rotate 0.2s",transformOrigin:"center",color:"fg.subtle",_open:{rotate:"180deg"},_icon:{width:"1.2em",height:"1.2em"}}},variants:{variant:{outline:{item:{borderBottomWidth:"1px"}},subtle:{itemTrigger:{px:"var(--accordion-padding-x)"},itemContent:{px:"var(--accordion-padding-x)"},item:{borderRadius:"var(--accordion-radius)",_open:{bg:"colorPalette.subtle"}}},enclosed:{root:{borderWidth:"1px",borderRadius:"var(--accordion-radius)",divideY:"1px",overflow:"hidden"},itemTrigger:{px:"var(--accordion-padding-x)"},itemContent:{px:"var(--accordion-padding-x)"},item:{_open:{bg:"bg.subtle"}}},plain:{}},size:{sm:{root:{"--accordion-padding-x":"spacing.3","--accordion-padding-y":"spacing.2"},itemTrigger:{textStyle:"sm",py:"var(--accordion-padding-y)"}},md:{root:{"--accordion-padding-x":"spacing.4","--accordion-padding-y":"spacing.2"},itemTrigger:{textStyle:"md",py:"var(--accordion-padding-y)"}},lg:{root:{"--accordion-padding-x":"spacing.4.5","--accordion-padding-y":"spacing.2.5"},itemTrigger:{textStyle:"lg",py:"var(--accordion-padding-y)"}}}},defaultVariants:{size:"md",variant:"outline"}}),rE=(0,o.O3)({className:"chakra-action-bar",slots:nX.keys(),base:{positioner:{position:"fixed",display:"flex",justifyContent:"center",pointerEvents:"none",insetInline:"0",top:"unset",bottom:"calc(env(safe-area-inset-bottom) + 20px)"},content:{bg:"bg.panel",shadow:"md",display:"flex",alignItems:"center",gap:"3",borderRadius:"l3",py:"2.5",px:"3",pointerEvents:"auto",translate:"calc(-1 * var(--scrollbar-width) / 2) 0px",_open:{animationName:"slide-from-bottom, fade-in",animationDuration:"moderate"},_closed:{animationName:"slide-to-bottom, fade-out",animationDuration:"faster"}},separator:{width:"1px",height:"5",bg:"border"},selectionTrigger:{display:"inline-flex",alignItems:"center",gap:"2",alignSelf:"stretch",textStyle:"sm",px:"4",py:"1",borderRadius:"l2",borderWidth:"1px",borderStyle:"dashed"}}}),rS=(0,o.O3)({slots:nQ.keys(),className:"chakra-alert",base:{root:{width:"full",display:"flex",alignItems:"flex-start",position:"relative",borderRadius:"l3"},title:{fontWeight:"medium"},description:{display:"inline"},indicator:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:"0",width:"1em",height:"1em",_icon:{boxSize:"full"}},content:{display:"flex",flex:"1",gap:"1"}},variants:{status:{info:{root:{colorPalette:"blue"}},warning:{root:{colorPalette:"orange"}},success:{root:{colorPalette:"green"}},error:{root:{colorPalette:"red"}},neutral:{root:{colorPalette:"gray"}}},inline:{true:{content:{display:"inline-flex",flexDirection:"row",alignItems:"center"}},false:{content:{display:"flex",flexDirection:"column"}}},variant:{subtle:{root:{bg:"colorPalette.subtle",color:"colorPalette.fg"}},surface:{root:{bg:"colorPalette.subtle",color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},indicator:{color:"colorPalette.fg"}},outline:{root:{color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},indicator:{color:"colorPalette.fg"}},solid:{root:{bg:"colorPalette.solid",color:"colorPalette.contrast"},indicator:{color:"colorPalette.contrast"}}},size:{sm:{root:{gap:"2",px:"3",py:"3",textStyle:"xs"},indicator:{textStyle:"lg"}},md:{root:{gap:"3",px:"4",py:"4",textStyle:"sm"},indicator:{textStyle:"xl"}},lg:{root:{gap:"3",px:"4",py:"4",textStyle:"md"},indicator:{textStyle:"2xl"}}}},defaultVariants:{status:"info",variant:"subtle",size:"md",inline:!1}});var rk=(0,K.F)("avatar").parts("root","image","fallback");rk.build();var rO=e=>e.ids?.root??`avatar:${e.id}`,rC=e=>e.ids?.image??`avatar:${e.id}:image`,rI=e=>e.getById(rO(e)),r_=e=>e.getById(rC(e));(0,el.C8)({initialState:()=>"loading",effects:["trackImageRemoval","trackSrcChange"],on:{"src.change":{target:"loading"},"img.unmount":{target:"error"}},states:{loading:{entry:["checkImageStatus"],on:{"img.loaded":{target:"loaded",actions:["invokeOnLoad"]},"img.error":{target:"error",actions:["invokeOnError"]}}},error:{on:{"img.loaded":{target:"loaded",actions:["invokeOnLoad"]}}},loaded:{on:{"img.error":{target:"error",actions:["invokeOnError"]}}}},implementations:{actions:{invokeOnLoad({prop:e}){e("onStatusChange")?.({status:"loaded"})},invokeOnError({prop:e}){e("onStatusChange")?.({status:"error"})},checkImageStatus({send:e,scope:t}){let n=r_(t);if(n?.complete)e({type:n.complete&&0!==n.naturalWidth&&0!==n.naturalHeight?"img.loaded":"img.error",src:"ssr"})}},effects:{trackImageRemoval({send:e,scope:t}){let n=rI(t);return(0,eo.P$)(n,{callback(t){Array.from(t[0].removedNodes).find(e=>e.nodeType===Node.ELEMENT_NODE&&e.matches("[data-scope=avatar][data-part=image]"))&&e({type:"img.unmount"})}})},trackSrcChange({send:e,scope:t}){let n=r_(t);return(0,eo.FX)(n,{attributes:["src","srcset"],callback(){e({type:"src.change"})}})}}}});var rT=(0,ec.e)()(["dir","id","ids","onStatusChange","getRootNode"]);(0,Z.xQ)(rT);let rP=(0,o.O3)({slots:rk.keys(),className:"chakra-avatar",base:{root:{display:"inline-flex",alignItems:"center",justifyContent:"center",fontWeight:"medium",position:"relative",verticalAlign:"top",flexShrink:"0",userSelect:"none",width:"var(--avatar-size)",height:"var(--avatar-size)",fontSize:"var(--avatar-font-size)",borderRadius:"var(--avatar-radius)","&[data-group-item]":{borderWidth:"2px",borderColor:"bg"}},image:{width:"100%",height:"100%",objectFit:"cover",borderRadius:"var(--avatar-radius)"},fallback:{lineHeight:"1",textTransform:"uppercase",fontWeight:"medium",fontSize:"var(--avatar-font-size)",borderRadius:"var(--avatar-radius)"}},variants:{size:{full:{root:{"--avatar-size":"100%","--avatar-font-size":"100%"}},"2xs":{root:{"--avatar-font-size":"fontSizes.2xs","--avatar-size":"sizes.6"}},xs:{root:{"--avatar-font-size":"fontSizes.xs","--avatar-size":"sizes.8"}},sm:{root:{"--avatar-font-size":"fontSizes.sm","--avatar-size":"sizes.9"}},md:{root:{"--avatar-font-size":"fontSizes.md","--avatar-size":"sizes.10"}},lg:{root:{"--avatar-font-size":"fontSizes.md","--avatar-size":"sizes.11"}},xl:{root:{"--avatar-font-size":"fontSizes.lg","--avatar-size":"sizes.12"}},"2xl":{root:{"--avatar-font-size":"fontSizes.xl","--avatar-size":"sizes.16"}}},variant:{solid:{root:{bg:"colorPalette.solid",color:"colorPalette.contrast"}},subtle:{root:{bg:"colorPalette.muted",color:"colorPalette.fg"}},outline:{root:{color:"colorPalette.fg",borderWidth:"1px",borderColor:"colorPalette.muted"}}},shape:{square:{},rounded:{root:{"--avatar-radius":"radii.l3"}},full:{root:{"--avatar-radius":"radii.full"}}},borderless:{true:{root:{"&[data-group-item]":{borderWidth:"0px"}}}}},defaultVariants:{size:"md",shape:"full",variant:"subtle"}}),rR=(0,o.O3)({className:"chakra-blockquote",slots:n0.keys(),base:{root:{position:"relative",display:"flex",flexDirection:"column",gap:"2"},caption:{textStyle:"sm",color:"fg.muted"},icon:{boxSize:"5"}},variants:{justify:{start:{root:{alignItems:"flex-start",textAlign:"start"}},center:{root:{alignItems:"center",textAlign:"center"}},end:{root:{alignItems:"flex-end",textAlign:"end"}}},variant:{subtle:{root:{paddingX:"5",borderStartWidth:"4px",borderStartColor:"colorPalette.muted"},icon:{color:"colorPalette.fg"}},solid:{root:{paddingX:"5",borderStartWidth:"4px",borderStartColor:"colorPalette.solid"},icon:{color:"colorPalette.solid"}},plain:{root:{paddingX:"5"},icon:{color:"colorPalette.solid"}}}},defaultVariants:{variant:"subtle",justify:"start"}}),rA=(0,o.O3)({className:"chakra-breadcrumb",slots:nJ.keys(),base:{list:{display:"flex",alignItems:"center",wordBreak:"break-word",color:"fg.muted",listStyle:"none"},link:{outline:"0",textDecoration:"none",borderRadius:"l1",focusRing:"outside",display:"inline-flex",alignItems:"center",gap:"2"},item:{display:"inline-flex",alignItems:"center"},separator:{color:"fg.muted",opacity:"0.8",_icon:{boxSize:"1em"},_rtl:{rotate:"180deg"}},ellipsis:{display:"inline-flex",alignItems:"center",justifyContent:"center",_icon:{boxSize:"1em"}}},variants:{variant:{underline:{link:{color:"colorPalette.fg",textDecoration:"underline",textUnderlineOffset:"0.2em",textDecorationColor:"colorPalette.muted"},currentLink:{color:"colorPalette.fg"}},plain:{link:{color:"fg.muted",_hover:{color:"fg"}},currentLink:{color:"fg"}}},size:{sm:{list:{gap:"1",textStyle:"xs"}},md:{list:{gap:"1.5",textStyle:"sm"}},lg:{list:{gap:"2",textStyle:"md"}}}},defaultVariants:{variant:"plain",size:"md"}}),rN=(0,o.O3)({className:"chakra-card",slots:n1.keys(),base:{root:{display:"flex",flexDirection:"column",position:"relative",minWidth:"0",wordWrap:"break-word",borderRadius:"l3",color:"fg",textAlign:"start"},title:{fontWeight:"semibold"},description:{color:"fg.muted",fontSize:"sm"},header:{paddingInline:"var(--card-padding)",paddingTop:"var(--card-padding)",display:"flex",flexDirection:"column",gap:"1.5"},body:{padding:"var(--card-padding)",flex:"1",display:"flex",flexDirection:"column"},footer:{display:"flex",alignItems:"center",gap:"2",paddingInline:"var(--card-padding)",paddingBottom:"var(--card-padding)"}},variants:{size:{sm:{root:{"--card-padding":"spacing.4"},title:{textStyle:"md"}},md:{root:{"--card-padding":"spacing.6"},title:{textStyle:"lg"}},lg:{root:{"--card-padding":"spacing.7"},title:{textStyle:"xl"}}},variant:{elevated:{root:{bg:"bg.panel",boxShadow:"md"}},outline:{root:{bg:"bg.panel",borderWidth:"1px",borderColor:"border"}},subtle:{root:{bg:"bg.muted"}}}},defaultVariants:{variant:"outline",size:"md"}});var rM=n(7356);let rL=(0,o.O3)({slots:rM.T.keys(),className:"chakra-checkbox",base:{root:{display:"inline-flex",gap:"2",alignItems:"center",verticalAlign:"top",position:"relative"},control:C.base,label:{fontWeight:"medium",userSelect:"none",_disabled:{opacity:"0.5"}}},variants:{size:{xs:{root:{gap:"1.5"},label:{textStyle:"xs"},control:C.variants?.size?.xs},sm:{root:{gap:"2"},label:{textStyle:"sm"},control:C.variants?.size?.sm},md:{root:{gap:"2.5"},label:{textStyle:"sm"},control:C.variants?.size?.md},lg:{root:{gap:"3"},label:{textStyle:"md"},control:C.variants?.size?.lg}},variant:{outline:{control:C.variants?.variant?.outline},solid:{control:C.variants?.variant?.solid},subtle:{control:C.variants?.variant?.subtle}}},defaultVariants:{variant:"solid",size:"md"}}),rD=(0,o.O3)({slots:n2.keys(),className:"chakra-checkbox-card",base:{root:{display:"flex",flexDirection:"column",userSelect:"none",position:"relative",borderRadius:"l2",flex:"1",focusVisibleRing:"outside",_disabled:{opacity:"0.8"},_invalid:{outline:"2px solid",outlineColor:"border.error"}},control:{display:"inline-flex",flex:"1",position:"relative",borderRadius:"inherit",justifyContent:"var(--checkbox-card-justify)",alignItems:"var(--checkbox-card-align)"},label:{fontWeight:"medium",display:"flex",alignItems:"center",gap:"2",flex:"1",_disabled:{opacity:"0.5"}},description:{opacity:"0.64",textStyle:"sm",_disabled:{opacity:"0.5"}},addon:{_disabled:{opacity:"0.5"}},indicator:C.base,content:{display:"flex",flexDirection:"column",flex:"1",gap:"1",justifyContent:"var(--checkbox-card-justify)",alignItems:"var(--checkbox-card-align)"}},variants:{size:{sm:{root:{textStyle:"sm"},control:{padding:"3",gap:"1.5"},addon:{px:"3",py:"1.5",borderTopWidth:"1px"},indicator:C.variants?.size.sm},md:{root:{textStyle:"sm"},control:{padding:"4",gap:"2.5"},addon:{px:"4",py:"2",borderTopWidth:"1px"},indicator:C.variants?.size.md},lg:{root:{textStyle:"md"},control:{padding:"4",gap:"3.5"},addon:{px:"4",py:"2",borderTopWidth:"1px"},indicator:C.variants?.size.lg}},variant:{surface:{root:{borderWidth:"1px",borderColor:"border",_checked:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderColor:"colorPalette.muted"},_disabled:{bg:"bg.muted"}},indicator:C.variants?.variant.solid},subtle:{root:{bg:"bg.muted"},control:{_checked:{bg:"colorPalette.muted",color:"colorPalette.fg"}},indicator:C.variants?.variant.plain},outline:{root:{borderWidth:"1px",borderColor:"border",_checked:{boxShadow:"0 0 0 1px var(--shadow-color)",boxShadowColor:"colorPalette.solid",borderColor:"colorPalette.solid"}},indicator:C.variants?.variant.solid},solid:{root:{borderWidth:"1px",_checked:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},indicator:C.variants?.variant.inverted}},justify:{start:{root:{"--checkbox-card-justify":"flex-start"}},end:{root:{"--checkbox-card-justify":"flex-end"}},center:{root:{"--checkbox-card-justify":"center"}}},align:{start:{root:{"--checkbox-card-align":"flex-start"},content:{textAlign:"start"}},end:{root:{"--checkbox-card-align":"flex-end"},content:{textAlign:"end"}},center:{root:{"--checkbox-card-align":"center"},content:{textAlign:"center"}}},orientation:{vertical:{control:{flexDirection:"column"}},horizontal:{control:{flexDirection:"row"}}}},defaultVariants:{size:"md",variant:"outline",align:"start",orientation:"horizontal"}});var rF=(0,K.F)("collapsible").parts("root","trigger","content","indicator");rF.build();var rV=e=>e.ids?.content??`collapsible:${e.id}:content`,rj=e=>e.getById(rV(e));(0,el.C8)({initialState:({prop:e})=>e("open")||e("defaultOpen")?"open":"closed",context:({bindable:e})=>({size:e(()=>({defaultValue:{height:0,width:0},sync:!0})),initial:e(()=>({defaultValue:!1}))}),refs:()=>({cleanup:void 0,stylesRef:void 0}),watch({track:e,prop:t,action:n}){e([()=>t("open")],()=>{n(["setInitial","computeSize","toggleVisibility"])})},exit:["clearInitial","cleanupNode"],states:{closed:{on:{"controlled.open":{target:"open"},open:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["setInitial","computeSize","invokeOnOpen"]}]}},closing:{effects:["trackExitAnimation"],on:{"controlled.close":{target:"closed"},"controlled.open":{target:"open"},open:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["setInitial","invokeOnOpen"]}],close:[{guard:"isOpenControlled",actions:["invokeOnExitComplete"]},{target:"closed",actions:["setInitial","computeSize","invokeOnExitComplete"]}],"animation.end":{target:"closed",actions:["invokeOnExitComplete","clearInitial"]}}},open:{effects:["trackEnterAnimation"],on:{"controlled.close":{target:"closing"},close:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closing",actions:["setInitial","computeSize","invokeOnClose"]}],"size.measure":{actions:["measureSize"]},"animation.end":{actions:["clearInitial"]}}}},implementations:{guards:{isOpenControlled:({prop:e})=>void 0!=e("open")},effects:{trackEnterAnimation:({send:e,scope:t})=>{let n;let r=(0,eo.Wn)(()=>{let r=rj(t);if(!r)return;let i=(0,eo.Dx)(r).animationName;if(!i||"none"===i){e({type:"animation.end"});return}let o=t=>{(0,eo.NI)(t)===r&&e({type:"animation.end"})};r.addEventListener("animationend",o),n=()=>{r.removeEventListener("animationend",o)}});return()=>{r(),n?.()}},trackExitAnimation:({send:e,scope:t})=>{let n;let r=(0,eo.Wn)(()=>{let r=rj(t);if(!r)return;let i=(0,eo.Dx)(r).animationName;if(!i||"none"===i){e({type:"animation.end"});return}let o=t=>{(0,eo.NI)(t)===r&&e({type:"animation.end"})};r.addEventListener("animationend",o);let a=(0,eo.A_)(r,{animationFillMode:"forwards"});n=()=>{r.removeEventListener("animationend",o),(0,eo.Y3)(()=>a())}});return()=>{r(),n?.()}}},actions:{setInitial:({context:e,flush:t})=>{t(()=>{e.set("initial",!0)})},clearInitial:({context:e})=>{e.set("initial",!1)},cleanupNode:({refs:e})=>{e.set("stylesRef",null)},measureSize:({context:e,scope:t})=>{let n=rj(t);if(!n)return;let{height:r,width:i}=n.getBoundingClientRect();e.set("size",{height:r,width:i})},computeSize:({refs:e,scope:t,context:n})=>{e.get("cleanup")?.();let r=(0,eo.Wn)(()=>{let e=rj(t);if(!e)return;let r=e.hidden;e.style.animationName="none",e.style.animationDuration="0s",e.hidden=!1;let i=e.getBoundingClientRect();n.set("size",{height:i.height,width:i.width}),n.get("initial")&&(e.style.animationName="",e.style.animationDuration=""),e.hidden=r});e.set("cleanup",r)},invokeOnOpen:({prop:e})=>{e("onOpenChange")?.({open:!0})},invokeOnClose:({prop:e})=>{e("onOpenChange")?.({open:!1})},invokeOnExitComplete:({prop:e})=>{e("onExitComplete")?.()},toggleVisibility:({prop:e,send:t})=>{t({type:e("open")?"controlled.open":"controlled.close"})}}}});var rz=(0,ec.e)()(["dir","disabled","getRootNode","id","ids","onExitComplete","onOpenChange","defaultOpen","open"]);(0,Z.xQ)(rz);let rU=(0,o.O3)({slots:rF.keys(),className:"chakra-collapsible",base:{content:{overflow:"hidden",_open:{animationName:"expand-height, fade-in",animationDuration:"moderate"},_closed:{animationName:"collapse-height, fade-out",animationDuration:"moderate"}}}}),rB=(0,o.O3)({className:"colorPicker",slots:rx.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5"},label:{color:"fg",fontWeight:"medium",textStyle:"sm",_disabled:{opacity:"0.5"}},valueText:{textAlign:"start"},control:{display:"flex",alignItems:"center",flexDirection:"row",gap:"2",position:"relative"},swatchTrigger:{display:"flex",alignItems:"center",justifyContent:"center"},trigger:{display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"row",flexShrink:"0",gap:"2",textStyle:"sm",minH:"var(--input-height)",minW:"var(--input-height)",px:"1",rounded:"l2",_disabled:{opacity:"0.5"},"--focus-color":"colors.colorPalette.focusRing","&:focus-visible":{borderColor:"var(--focus-color)",outline:"1px solid var(--focus-color)"},"&[data-fit-content]":{"--input-height":"unset",px:"0",border:"0"}},content:{display:"flex",flexDirection:"column",bg:"bg.panel",borderRadius:"l3",boxShadow:"lg",width:"64",p:"4",gap:"3",zIndex:"dropdown",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"faster"}},area:{height:"180px",borderRadius:"l2",overflow:"hidden"},areaThumb:{borderRadius:"full",height:"var(--thumb-size)",width:"var(--thumb-size)",borderWidth:"2px",borderColor:"white",shadow:"sm",focusVisibleRing:"mixed",focusRingColor:"white"},areaBackground:{height:"full"},channelSlider:{borderRadius:"l2",flex:"1"},channelSliderTrack:{height:"var(--slider-height)",borderRadius:"inherit",boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.1)"},channelText:{textStyle:"xs",color:"fg.muted",fontWeight:"medium",textTransform:"capitalize"},swatchGroup:{display:"flex",flexDirection:"row",flexWrap:"wrap",gap:"2"},swatch:{...P.base,borderRadius:"l1"},swatchIndicator:{color:"white",rounded:"full"},channelSliderThumb:{borderRadius:"full",height:"var(--thumb-size)",width:"var(--thumb-size)",borderWidth:"2px",borderColor:"white",shadow:"sm",transform:"translate(-50%, -50%)",focusVisibleRing:"outside",focusRingOffset:"1px"},channelInput:{...M.base,"&::-webkit-inner-spin-button, &::-webkit-outer-spin-button":{WebkitAppearance:"none",margin:0}},formatSelect:{textStyle:"xs",textTransform:"uppercase",borderWidth:"1px",minH:"6",focusRing:"inside",rounded:"l2"},transparencyGrid:{borderRadius:"l2"},view:{display:"flex",flexDirection:"column",gap:"2"}},variants:{size:{"2xs":{channelInput:M.variants?.size?.["2xs"],swatch:{"--swatch-size":"sizes.4.5"},trigger:{"--input-height":"sizes.7"},area:{"--thumb-size":"sizes.3"},channelSlider:{"--slider-height":"sizes.3","--thumb-size":"sizes.3"}},xs:{channelInput:M.variants?.size?.xs,swatch:{"--swatch-size":"sizes.5"},trigger:{"--input-height":"sizes.8"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},sm:{channelInput:M.variants?.size?.sm,swatch:{"--swatch-size":"sizes.6"},trigger:{"--input-height":"sizes.9"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},md:{channelInput:M.variants?.size?.md,swatch:{"--swatch-size":"sizes.7"},trigger:{"--input-height":"sizes.10"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},lg:{channelInput:M.variants?.size?.lg,swatch:{"--swatch-size":"sizes.7"},trigger:{"--input-height":"sizes.11"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},xl:{channelInput:M.variants?.size?.xl,swatch:{"--swatch-size":"sizes.8"},trigger:{"--input-height":"sizes.12"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},"2xl":{channelInput:M.variants?.size?.["2xl"],swatch:{"--swatch-size":"sizes.10"},trigger:{"--input-height":"sizes.16"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}}},variant:{outline:{channelInput:M.variants?.variant?.outline,trigger:{borderWidth:"1px"}},subtle:{channelInput:M.variants?.variant?.subtle,trigger:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted"}}}},defaultVariants:{size:"md",variant:"outline"}}),rW=(0,o.O3)({className:"chakra-combobox",slots:ru.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5",width:"full"},label:{fontWeight:"medium",userSelect:"none",textStyle:"sm",_disabled:{layerStyle:"disabled"}},input:{display:"flex",alignItems:"center",justifyContent:"space-between",background:"bg.panel",width:"full",minH:"var(--combobox-input-height)",px:"var(--combobox-input-padding-x)","--input-height":"var(--combobox-input-height)",borderRadius:"l2",outline:0,userSelect:"none",textAlign:"start",_placeholderShown:{color:"fg.muted"},_disabled:{layerStyle:"disabled"},"--focus-color":"colors.colorPalette.focusRing","--error-color":"colors.border.error",_invalid:{focusRingColor:"var(--error-color)",borderColor:"var(--error-color)"}},trigger:{display:"inline-flex",alignItems:"center",justifyContent:"center","--input-height":"var(--combobox-input-height)"},clearTrigger:{color:"fg.muted",pointerEvents:"auto",focusVisibleRing:"inside",focusRingWidth:"2px",rounded:"l1"},control:{pos:"relative"},indicatorGroup:{display:"flex",alignItems:"center",justifyContent:"center",gap:"1",pos:"absolute",insetEnd:"0",top:"0",bottom:"0",px:"var(--combobox-input-padding-x)",_icon:{boxSize:"var(--combobox-indicator-size)"},"[data-disabled] &":{opacity:.5}},content:{background:"bg.panel",display:"flex",flexDirection:"column",zIndex:"dropdown",borderRadius:"l2",outline:0,maxH:"96",overflowY:"auto",boxShadow:"md",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"0s"},"&[data-empty]:not(:has([data-scope=combobox][data-part=empty]))":{opacity:0}},item:{position:"relative",userSelect:"none",display:"flex",alignItems:"center",gap:"2",py:"var(--combobox-item-padding-y)",px:"var(--combobox-item-padding-x)",cursor:"option",justifyContent:"space-between",flex:"1",textAlign:"start",borderRadius:"l1",_highlighted:{bg:"bg.emphasized/60"},_disabled:{pointerEvents:"none",opacity:"0.5"},_icon:{boxSize:"var(--combobox-indicator-size)"}},empty:{py:"var(--combobox-item-padding-y)",px:"var(--combobox-item-padding-x)"},itemText:{flex:"1"},itemGroup:{pb:"var(--combobox-item-padding-y)",_last:{pb:"0"}},itemGroupLabel:{fontWeight:"medium",py:"var(--combobox-item-padding-y)",px:"var(--combobox-item-padding-x)"}},variants:{variant:{outline:{input:{bg:"transparent",borderWidth:"1px",borderColor:"border",focusVisibleRing:"inside"}},subtle:{input:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted",focusVisibleRing:"inside"}},flushed:{input:{bg:"transparent",borderBottomWidth:"1px",borderBottomColor:"border",borderRadius:"0",px:"0",_focusVisible:{borderColor:"var(--focus-color)",boxShadow:"0px 1px 0px 0px var(--focus-color)"}},indicatorGroup:{px:"0"}}},size:{xs:{root:{"--combobox-input-height":"sizes.8","--combobox-input-padding-x":"spacing.2","--combobox-indicator-size":"sizes.3.5"},input:{textStyle:"xs"},content:{"--combobox-item-padding-x":"spacing.1.5","--combobox-item-padding-y":"spacing.1","--combobox-indicator-size":"sizes.3.5",p:"1",textStyle:"xs"},trigger:{textStyle:"xs",gap:"1"}},sm:{root:{"--combobox-input-height":"sizes.9","--combobox-input-padding-x":"spacing.2.5","--combobox-indicator-size":"sizes.4"},input:{textStyle:"sm"},content:{"--combobox-item-padding-x":"spacing.2","--combobox-item-padding-y":"spacing.1.5","--combobox-indicator-size":"sizes.4",p:"1",textStyle:"sm"},trigger:{textStyle:"sm",gap:"1"}},md:{root:{"--combobox-input-height":"sizes.10","--combobox-input-padding-x":"spacing.3","--combobox-indicator-size":"sizes.4"},input:{textStyle:"sm"},content:{"--combobox-item-padding-x":"spacing.2","--combobox-item-padding-y":"spacing.1.5","--combobox-indicator-size":"sizes.4",p:"1",textStyle:"sm"},itemIndicator:{display:"flex",alignItems:"center",justifyContent:"center"},trigger:{textStyle:"sm",gap:"2"}},lg:{root:{"--combobox-input-height":"sizes.12","--combobox-input-padding-x":"spacing.4","--combobox-indicator-size":"sizes.5"},input:{textStyle:"md"},content:{"--combobox-item-padding-y":"spacing.2","--combobox-item-padding-x":"spacing.3","--combobox-indicator-size":"sizes.5",p:"1.5",textStyle:"md"},trigger:{textStyle:"md",py:"3",gap:"2"}}}},defaultVariants:{size:"md",variant:"outline"}}),rH=(0,o.O3)({slots:n5.keys(),className:"chakra-data-list",base:{itemLabel:{display:"flex",alignItems:"center",gap:"1"},itemValue:{display:"flex",minWidth:"0",flex:"1"}},variants:{orientation:{horizontal:{root:{display:"flex",flexDirection:"column"},item:{display:"inline-flex",alignItems:"center",gap:"4"},itemLabel:{minWidth:"120px"}},vertical:{root:{display:"flex",flexDirection:"column"},item:{display:"flex",flexDirection:"column",gap:"1"}}},size:{sm:{root:{gap:"3"},item:{textStyle:"xs"}},md:{root:{gap:"4"},item:{textStyle:"sm"}},lg:{root:{gap:"5"},item:{textStyle:"md"}}},variant:{subtle:{itemLabel:{color:"fg.muted"}},bold:{itemLabel:{fontWeight:"medium"},itemValue:{color:"fg.muted"}}}},defaultVariants:{size:"md",orientation:"vertical",variant:"subtle"}}),r$=(0,o.O3)({slots:n4.keys(),className:"chakra-dialog",base:{backdrop:{bg:"blackAlpha.500",pos:"fixed",left:0,top:0,w:"100vw",h:"100dvh",zIndex:"overlay",_open:{animationName:"fade-in",animationDuration:"slow"},_closed:{animationName:"fade-out",animationDuration:"moderate"}},positioner:{display:"flex",width:"100vw",height:"100dvh",position:"fixed",left:0,top:0,"--dialog-z-index":"zIndex.modal",zIndex:"calc(var(--dialog-z-index) + var(--layer-index, 0))",justifyContent:"center",overscrollBehaviorY:"none"},content:{display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,borderRadius:"l3",textStyle:"sm",my:"var(--dialog-margin, var(--dialog-base-margin))","--dialog-z-index":"zIndex.modal",zIndex:"calc(var(--dialog-z-index) + var(--layer-index, 0))",bg:"bg.panel",boxShadow:"lg",_open:{animationDuration:"moderate"},_closed:{animationDuration:"faster"}},header:{display:"flex",gap:"2",flex:0,px:"6",pt:"6",pb:"4"},body:{flex:"1",px:"6",pt:"2",pb:"6"},footer:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"3",px:"6",pt:"2",pb:"4"},title:{textStyle:"lg",fontWeight:"semibold"},description:{color:"fg.muted"},closeTrigger:{pos:"absolute",top:"2",insetEnd:"2"}},variants:{placement:{center:{positioner:{alignItems:"center"},content:{"--dialog-base-margin":"auto",mx:"auto"}},top:{positioner:{alignItems:"flex-start"},content:{"--dialog-base-margin":"spacing.16",mx:"auto"}},bottom:{positioner:{alignItems:"flex-end"},content:{"--dialog-base-margin":"spacing.16",mx:"auto"}}},scrollBehavior:{inside:{positioner:{overflow:"hidden"},content:{maxH:"calc(100% - 7.5rem)"},body:{overflow:"auto"}},outside:{positioner:{overflow:"auto",pointerEvents:"auto"}}},size:{xs:{content:{maxW:"sm"}},sm:{content:{maxW:"md"}},md:{content:{maxW:"lg"}},lg:{content:{maxW:"2xl"}},xl:{content:{maxW:"4xl"}},cover:{positioner:{padding:"10"},content:{width:"100%",height:"100%","--dialog-margin":"0"}},full:{content:{maxW:"100vw",minH:"100vh","--dialog-margin":"0",borderRadius:"0"}}},motionPreset:{scale:{content:{_open:{animationName:"scale-in, fade-in"},_closed:{animationName:"scale-out, fade-out"}}},"slide-in-bottom":{content:{_open:{animationName:"slide-from-bottom, fade-in"},_closed:{animationName:"slide-to-bottom, fade-out"}}},"slide-in-top":{content:{_open:{animationName:"slide-from-top, fade-in"},_closed:{animationName:"slide-to-top, fade-out"}}},"slide-in-left":{content:{_open:{animationName:"slide-from-left, fade-in"},_closed:{animationName:"slide-to-left, fade-out"}}},"slide-in-right":{content:{_open:{animationName:"slide-from-right, fade-in"},_closed:{animationName:"slide-to-right, fade-out"}}},none:{}}},defaultVariants:{size:"md",scrollBehavior:"outside",placement:"top",motionPreset:"scale"}}),rq=(0,o.O3)({slots:n3.keys(),className:"chakra-drawer",base:{backdrop:{bg:"blackAlpha.500",pos:"fixed",insetInlineStart:0,top:0,w:"100vw",h:"100dvh",zIndex:"overlay",_open:{animationName:"fade-in",animationDuration:"slow"},_closed:{animationName:"fade-out",animationDuration:"moderate"}},positioner:{display:"flex",width:"100vw",height:"100dvh",position:"fixed",insetInlineStart:0,top:0,zIndex:"modal",overscrollBehaviorY:"none"},content:{display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,zIndex:"modal",textStyle:"sm",maxH:"100dvh",color:"inherit",bg:"bg.panel",boxShadow:"lg",_open:{animationDuration:"slowest",animationTimingFunction:"ease-in-smooth"},_closed:{animationDuration:"slower",animationTimingFunction:"ease-in-smooth"}},header:{display:"flex",alignItems:"center",gap:"2",flex:0,px:"6",pt:"6",pb:"4"},body:{px:"6",py:"2",flex:"1",overflow:"auto"},footer:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"3",px:"6",pt:"2",pb:"4"},title:{flex:"1",textStyle:"lg",fontWeight:"semibold"},description:{color:"fg.muted"},closeTrigger:{pos:"absolute",top:"3",insetEnd:"2"}},variants:{size:{xs:{content:{maxW:"xs"}},sm:{content:{maxW:"md"}},md:{content:{maxW:"lg"}},lg:{content:{maxW:"2xl"}},xl:{content:{maxW:"4xl"}},full:{content:{maxW:"100vw",h:"100dvh"}}},placement:{start:{positioner:{justifyContent:"flex-start",alignItems:"stretch"},content:{_open:{animationName:{base:"slide-from-left-full, fade-in",_rtl:"slide-from-right-full, fade-in"}},_closed:{animationName:{base:"slide-to-left-full, fade-out",_rtl:"slide-to-right-full, fade-out"}}}},end:{positioner:{justifyContent:"flex-end",alignItems:"stretch"},content:{_open:{animationName:{base:"slide-from-right-full, fade-in",_rtl:"slide-from-left-full, fade-in"}},_closed:{animationName:{base:"slide-to-right-full, fade-out",_rtl:"slide-to-left-full, fade-out"}}}},top:{positioner:{justifyContent:"stretch",alignItems:"flex-start"},content:{maxW:"100%",_open:{animationName:"slide-from-top-full, fade-in"},_closed:{animationName:"slide-to-top-full, fade-out"}}},bottom:{positioner:{justifyContent:"stretch",alignItems:"flex-end"},content:{maxW:"100%",_open:{animationName:"slide-from-bottom-full, fade-in"},_closed:{animationName:"slide-to-bottom-full, fade-out"}}}},contained:{true:{positioner:{padding:"4"},content:{borderRadius:"l3"}}}},defaultVariants:{size:"xs",placement:"end"}}),rG=(0,o.k0)({fontSize:"inherit",fontWeight:"inherit",textAlign:"inherit",bg:"transparent",borderRadius:"l2"}),rK=(0,o.O3)({slots:n6.keys(),className:"chakra-editable",base:{root:{display:"inline-flex",alignItems:"center",position:"relative",gap:"1.5",width:"full"},preview:{...rG,py:"1",px:"1",display:"inline-flex",alignItems:"center",transitionProperty:"common",transitionDuration:"normal",cursor:"text",_hover:{bg:"bg.muted"},_disabled:{userSelect:"none"}},input:{...rG,outline:"0",py:"1",px:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",focusVisibleRing:"inside",focusRingWidth:"2px",_placeholder:{opacity:.6}},control:{display:"inline-flex",alignItems:"center",gap:"1.5"}},variants:{size:{sm:{root:{textStyle:"sm"},preview:{minH:"8"},input:{minH:"8"}},md:{root:{textStyle:"sm"},preview:{minH:"9"},input:{minH:"9"}},lg:{root:{textStyle:"md"},preview:{minH:"10"},input:{minH:"10"}}}},defaultVariants:{size:"md"}}),rZ=(0,o.O3)({slots:n8.keys(),className:"chakra-empty-state",base:{root:{width:"full"},content:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},indicator:{display:"flex",alignItems:"center",justifyContent:"center",color:"fg.subtle",_icon:{boxSize:"1em"}},title:{fontWeight:"semibold"},description:{textStyle:"sm",color:"fg.muted"}},variants:{size:{sm:{root:{px:"4",py:"6"},title:{textStyle:"md"},content:{gap:"4"},indicator:{textStyle:"2xl"}},md:{root:{px:"8",py:"12"},title:{textStyle:"lg"},content:{gap:"6"},indicator:{textStyle:"4xl"}},lg:{root:{px:"12",py:"16"},title:{textStyle:"xl"},content:{gap:"8"},indicator:{textStyle:"6xl"}}}},defaultVariants:{size:"md"}}),rY=(0,o.O3)({className:"chakra-field",slots:n7.keys(),base:{requiredIndicator:{color:"fg.error",lineHeight:"1"},root:{display:"flex",width:"100%",position:"relative",gap:"1.5"},label:{display:"flex",alignItems:"center",textAlign:"start",textStyle:"sm",fontWeight:"medium",gap:"1",userSelect:"none",_disabled:{opacity:"0.5"}},errorText:{display:"inline-flex",alignItems:"center",fontWeight:"medium",gap:"1",color:"fg.error",textStyle:"xs"},helperText:{color:"fg.muted",textStyle:"xs"}},variants:{orientation:{vertical:{root:{flexDirection:"column",alignItems:"flex-start"}},horizontal:{root:{flexDirection:"row",alignItems:"center",justifyContent:"space-between"},label:{flex:"0 0 var(--field-label-width, 80px)"}}}},defaultVariants:{orientation:"vertical"}}),rX=(0,o.O3)({className:"fieldset",slots:n9.keys(),base:{root:{display:"flex",flexDirection:"column",width:"full"},content:{display:"flex",flexDirection:"column",width:"full"},legend:{color:"fg",fontWeight:"medium",_disabled:{opacity:"0.5"}},helperText:{color:"fg.muted",textStyle:"sm"},errorText:{display:"inline-flex",alignItems:"center",color:"fg.error",gap:"2",fontWeight:"medium",textStyle:"sm"}},variants:{size:{sm:{root:{spaceY:"2"},content:{gap:"1.5"},legend:{textStyle:"sm"}},md:{root:{spaceY:"4"},content:{gap:"4"},legend:{textStyle:"sm"}},lg:{root:{spaceY:"6"},content:{gap:"4"},legend:{textStyle:"md"}}}},defaultVariants:{size:"md"}}),rQ=(0,o.O3)({className:"chakra-file-upload",slots:re.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"4",width:"100%",alignItems:"flex-start"},label:{fontWeight:"medium",textStyle:"sm"},dropzone:{background:"bg",borderRadius:"l3",borderWidth:"2px",borderStyle:"dashed",display:"flex",alignItems:"center",flexDirection:"column",gap:"4",justifyContent:"center",minHeight:"2xs",px:"3",py:"2",transition:"backgrounds",focusVisibleRing:"outside",_hover:{bg:"bg.subtle"},_dragging:{bg:"colorPalette.subtle",borderStyle:"solid",borderColor:"colorPalette.solid"}},dropzoneContent:{display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center",gap:"1",textStyle:"sm"},item:{pos:"relative",textStyle:"sm",animationName:"fade-in",animationDuration:"moderate",background:"bg",borderRadius:"l2",borderWidth:"1px",width:"100%",display:"flex",alignItems:"center",gap:"3",p:"4"},itemGroup:{width:"100%",display:"flex",flexDirection:"column",gap:"3",_empty:{display:"none"}},itemName:{color:"fg",fontWeight:"medium",lineClamp:"1"},itemContent:{display:"flex",flexDirection:"column",gap:"0.5",flex:"1"},itemSizeText:{color:"fg.muted",textStyle:"xs"},itemDeleteTrigger:{display:"flex",alignItems:"center",justifyContent:"center",alignSelf:"flex-start",boxSize:"5",p:"2px",color:"fg.muted",cursor:"button"},itemPreview:{color:"fg.muted",_icon:{boxSize:"4.5"}}},defaultVariants:{}});var rJ=(0,K.F)("hoverCard").parts("arrow","arrowTip","trigger","positioner","content");rJ.build();var r0=e=>e.ids?.trigger??`hover-card:${e.id}:trigger`,r1=e=>e.ids?.content??`hover-card:${e.id}:content`,r2=e=>e.ids?.positioner??`hover-card:${e.id}:popper`,r5=e=>e.getById(r0(e)),r4=e=>e.getById(r1(e)),r3=e=>e.getById(r2(e)),{not:r6,and:r8}=(0,el.Fb)();(0,el.C8)({props:({props:e})=>({openDelay:700,closeDelay:300,...e,positioning:{placement:"bottom",...e.positioning}}),initialState:({prop:e})=>e("open")||e("defaultOpen")?"open":"closed",context:({prop:e,bindable:t})=>({open:t(()=>({defaultValue:e("defaultOpen"),value:e("open"),onChange(t){e("onOpenChange")?.({open:t})}})),currentPlacement:t(()=>({defaultValue:void 0})),isPointer:t(()=>({defaultValue:!1}))}),watch({track:e,context:t,action:n}){e([()=>t.get("open")],()=>{n(["toggleVisibility"])})},states:{closed:{tags:["closed"],entry:["clearIsPointer"],on:{"CONTROLLED.OPEN":{target:"open"},POINTER_ENTER:{target:"opening",actions:["setIsPointer"]},TRIGGER_FOCUS:{target:"opening"},OPEN:{target:"opening"}}},opening:{tags:["closed"],effects:["waitForOpenDelay"],on:{OPEN_DELAY:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}],"CONTROLLED.OPEN":{target:"open"},"CONTROLLED.CLOSE":{target:"closed"},POINTER_LEAVE:[{guard:"isOpenControlled",actions:["invokeOnClose","toggleVisibility"]},{target:"closed",actions:["invokeOnClose"]}],TRIGGER_BLUR:[{guard:r8("isOpenControlled",r6("isPointer")),actions:["invokeOnClose","toggleVisibility"]},{guard:r6("isPointer"),target:"closed",actions:["invokeOnClose"]}],CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose","toggleVisibility"]},{target:"closed",actions:["invokeOnClose"]}]}},open:{tags:["open"],effects:["trackDismissableElement","trackPositioning"],on:{"CONTROLLED.CLOSE":{target:"closed"},POINTER_ENTER:{actions:["setIsPointer"]},POINTER_LEAVE:{target:"closing"},CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],TRIGGER_BLUR:[{guard:r8("isOpenControlled",r6("isPointer")),actions:["invokeOnClose"]},{guard:r6("isPointer"),target:"closed",actions:["invokeOnClose"]}],"POSITIONING.SET":{actions:["reposition"]}}},closing:{tags:["open"],effects:["trackPositioning","waitForCloseDelay"],on:{CLOSE_DELAY:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],"CONTROLLED.CLOSE":{target:"closed"},"CONTROLLED.OPEN":{target:"open"},POINTER_ENTER:{target:"open",actions:["setIsPointer"]}}}},implementations:{guards:{isPointer:({context:e})=>!!e.get("isPointer"),isOpenControlled:({prop:e})=>null!=e("open")},effects:{waitForOpenDelay({send:e,prop:t}){let n=setTimeout(()=>{e({type:"OPEN_DELAY"})},t("openDelay"));return()=>clearTimeout(n)},waitForCloseDelay({send:e,prop:t}){let n=setTimeout(()=>{e({type:"CLOSE_DELAY"})},t("closeDelay"));return()=>clearTimeout(n)},trackPositioning:({context:e,prop:t,scope:n})=>(e.get("currentPlacement")||e.set("currentPlacement",t("positioning").placement),(0,ea.x_)(r5(n),()=>r3(n),{...t("positioning"),defer:!0,onComplete(t){e.set("currentPlacement",t.placement)}})),trackDismissableElement:({send:e,scope:t,prop:n})=>(0,eu.A)(()=>r4(t),{defer:!0,exclude:[r5(t)],onDismiss(){e({type:"CLOSE",src:"interact-outside"})},onInteractOutside:n("onInteractOutside"),onPointerDownOutside:n("onPointerDownOutside"),onFocusOutside(e){e.preventDefault(),n("onFocusOutside")?.(e)}})},actions:{invokeOnClose({prop:e}){e("onOpenChange")?.({open:!1})},invokeOnOpen({prop:e}){e("onOpenChange")?.({open:!0})},setIsPointer({context:e}){e.set("isPointer",!0)},clearIsPointer({context:e}){e.set("isPointer",!1)},reposition({context:e,prop:t,scope:n,event:r}){(0,ea.x_)(r5(n),()=>r3(n),{...t("positioning"),...r.options,defer:!0,listeners:!1,onComplete(t){e.set("currentPlacement",t.placement)}})},toggleVisibility({prop:e,event:t,send:n}){queueMicrotask(()=>{n({type:e("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:t})})}}}});var r7=(0,ec.e)()(["closeDelay","dir","getRootNode","id","ids","onOpenChange","defaultOpen","open","openDelay","positioning","onInteractOutside","onPointerDownOutside","onFocusOutside"]);(0,Z.xQ)(r7);let r9=(0,o.O3)({className:"chakra-hover-card",slots:rJ.keys(),base:{content:{position:"relative",display:"flex",flexDirection:"column",textStyle:"sm","--hovercard-bg":"colors.bg.panel",bg:"var(--hovercard-bg)",boxShadow:"lg",maxWidth:"80",borderRadius:"l3",zIndex:"popover",transformOrigin:"var(--transform-origin)",outline:"0",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"faster"}},arrow:{"--arrow-size":"sizes.3","--arrow-background":"var(--hovercard-bg)"},arrowTip:{borderTopWidth:"0.5px",borderInlineStartWidth:"0.5px"}},variants:{size:{xs:{content:{padding:"3"}},sm:{content:{padding:"4"}},md:{content:{padding:"5"}},lg:{content:{padding:"6"}}}},defaultVariants:{size:"md"}}),ie=(0,o.O3)({className:"chakra-list",slots:rt.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"var(--list-gap)","& :where(ul, ol)":{marginTop:"var(--list-gap)"}},item:{whiteSpace:"normal",display:"list-item"},indicator:{marginEnd:"2",minHeight:"1lh",flexShrink:0,display:"inline-block",verticalAlign:"middle"}},variants:{variant:{marker:{root:{listStyle:"revert"},item:{_marker:{color:"fg.subtle"}}},plain:{item:{alignItems:"flex-start",display:"inline-flex"}}},align:{center:{item:{alignItems:"center"}},start:{item:{alignItems:"flex-start"}},end:{item:{alignItems:"flex-end"}}}},defaultVariants:{variant:"marker"}}),it=(0,o.O3)({className:"chakra-menu",slots:rn.keys(),base:{content:{outline:0,bg:"bg.panel",boxShadow:"lg",color:"fg",maxHeight:"var(--available-height)","--menu-z-index":"zIndex.dropdown",zIndex:"calc(var(--menu-z-index) + var(--layer-index, 0))",borderRadius:"l2",overflow:"hidden",overflowY:"auto",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"faster"}},item:{textDecoration:"none",color:"fg",userSelect:"none",borderRadius:"l1",width:"100%",display:"flex",cursor:"menuitem",alignItems:"center",textAlign:"start",position:"relative",flex:"0 0 auto",outline:0,_disabled:{layerStyle:"disabled"},"&[data-type]":{ps:"8"}},itemText:{flex:"1"},itemIndicator:{position:"absolute",insetStart:"2",transform:"translateY(-50%)",top:"50%"},itemGroupLabel:{px:"2",py:"1.5",fontWeight:"semibold",textStyle:"sm"},indicator:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:"0"},itemCommand:{opacity:"0.6",textStyle:"xs",ms:"auto",ps:"4",letterSpacing:"widest",fontFamily:"inherit"},separator:{height:"1px",bg:"bg.muted",my:"1",mx:"-1"}},variants:{variant:{subtle:{item:{_highlighted:{bg:"bg.emphasized/60"}}},solid:{item:{_highlighted:{bg:"colorPalette.solid",color:"colorPalette.contrast"}}}},size:{sm:{content:{minW:"8rem",padding:"1"},item:{gap:"1",textStyle:"xs",py:"1",px:"1.5"}},md:{content:{minW:"8rem",padding:"1.5"},item:{gap:"2",textStyle:"sm",py:"1.5",px:"2"}}}},defaultVariants:{size:"md",variant:"subtle"}}),ir=(0,o.O3)({className:"chakra-select",slots:rl.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5",width:"full"},trigger:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"full",minH:"var(--select-trigger-height)","--input-height":"var(--select-trigger-height)",px:"var(--select-trigger-padding-x)",borderRadius:"l2",userSelect:"none",textAlign:"start",focusVisibleRing:"inside",_placeholderShown:{color:"fg.muted/80"},_disabled:{layerStyle:"disabled"},_invalid:{borderColor:"border.error"}},indicatorGroup:{display:"flex",alignItems:"center",gap:"1",pos:"absolute",insetEnd:"0",top:"0",bottom:"0",px:"var(--select-trigger-padding-x)",pointerEvents:"none"},indicator:{display:"flex",alignItems:"center",justifyContent:"center",color:{base:"fg.muted",_disabled:"fg.subtle",_invalid:"fg.error"}},content:{background:"bg.panel",display:"flex",flexDirection:"column",zIndex:"dropdown",borderRadius:"l2",outline:0,maxH:"96",overflowY:"auto",boxShadow:"md",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"fastest"}},item:{position:"relative",userSelect:"none",display:"flex",alignItems:"center",gap:"2",cursor:"option",justifyContent:"space-between",flex:"1",textAlign:"start",borderRadius:"l1",_highlighted:{bg:"bg.emphasized/60"},_disabled:{pointerEvents:"none",opacity:"0.5"},_icon:{width:"4",height:"4"}},control:{pos:"relative"},itemText:{flex:"1"},itemGroup:{_first:{mt:"0"}},itemGroupLabel:{py:"1",fontWeight:"medium"},label:{fontWeight:"medium",userSelect:"none",textStyle:"sm",_disabled:{layerStyle:"disabled"}},valueText:{lineClamp:"1",maxW:"80%"},clearTrigger:{color:"fg.muted",pointerEvents:"auto",focusVisibleRing:"inside",focusRingWidth:"2px",rounded:"l1"}},variants:{variant:{outline:{trigger:{bg:"transparent",borderWidth:"1px",borderColor:"border",_expanded:{borderColor:"border.emphasized"}}},subtle:{trigger:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted"}}},size:{xs:{root:{"--select-trigger-height":"sizes.8","--select-trigger-padding-x":"spacing.2"},content:{p:"1",gap:"1",textStyle:"xs"},trigger:{textStyle:"xs",gap:"1"},item:{py:"1",px:"2"},itemGroupLabel:{py:"1",px:"2"},indicator:{_icon:{width:"3.5",height:"3.5"}}},sm:{root:{"--select-trigger-height":"sizes.9","--select-trigger-padding-x":"spacing.2.5"},content:{p:"1",textStyle:"sm"},trigger:{textStyle:"sm",gap:"1"},indicator:{_icon:{width:"4",height:"4"}},item:{py:"1",px:"1.5"},itemGroup:{mt:"1"},itemGroupLabel:{py:"1",px:"1.5"}},md:{root:{"--select-trigger-height":"sizes.10","--select-trigger-padding-x":"spacing.3"},content:{p:"1",textStyle:"sm"},itemGroup:{mt:"1.5"},item:{py:"1.5",px:"2"},itemIndicator:{display:"flex",alignItems:"center",justifyContent:"center"},itemGroupLabel:{py:"1.5",px:"2"},trigger:{textStyle:"sm",gap:"2"},indicator:{_icon:{width:"4",height:"4"}}},lg:{root:{"--select-trigger-height":"sizes.12","--select-trigger-padding-x":"spacing.4"},content:{p:"1.5",textStyle:"md"},itemGroup:{mt:"2"},item:{py:"2",px:"3"},itemGroupLabel:{py:"2",px:"3"},trigger:{textStyle:"md",py:"3",gap:"2"},indicator:{_icon:{width:"5",height:"5"}}}}},defaultVariants:{size:"md",variant:"outline"}}),ii=(0,o.O3)({className:"chakra-native-select",slots:rr.keys(),base:{root:{height:"fit-content",display:"flex",width:"100%",position:"relative"},field:{width:"100%",minWidth:"0",outline:"0",appearance:"none",borderRadius:"l2","--error-color":"colors.border.error",_disabled:{layerStyle:"disabled"},_invalid:{focusRingColor:"var(--error-color)",borderColor:"var(--error-color)"},focusVisibleRing:"inside",lineHeight:"normal","& > option, & > optgroup":{bg:"bg"}},indicator:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",top:"50%",transform:"translateY(-50%)",height:"100%",color:"fg.muted",_disabled:{opacity:"0.5"},_invalid:{color:"fg.error"},_icon:{width:"1em",height:"1em"}}},variants:{variant:{outline:{field:ir.variants?.variant.outline.trigger},subtle:{field:ir.variants?.variant.subtle.trigger},plain:{field:{bg:"transparent",color:"fg",focusRingWidth:"2px"}}},size:{xs:{field:{textStyle:"xs",ps:"2",pe:"6",height:"6"},indicator:{textStyle:"sm",insetEnd:"1.5"}},sm:{field:{textStyle:"sm",ps:"2.5",pe:"8",height:"8"},indicator:{textStyle:"md",insetEnd:"2"}},md:{field:{textStyle:"sm",ps:"3",pe:"8",height:"10"},indicator:{textStyle:"lg",insetEnd:"2"}},lg:{field:{textStyle:"md",ps:"4",pe:"8",height:"11"},indicator:{textStyle:"xl",insetEnd:"3"}},xl:{field:{textStyle:"md",ps:"4.5",pe:"10",height:"12"},indicator:{textStyle:"xl",insetEnd:"3"}}}},defaultVariants:ir.defaultVariants});function io(e,t){let n={};for(let r in e){let i=t(r,e[r]);n[i[0]]=i[1]}return n}let ia=new Map,is=!1;try{is="exceptZero"===new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay}catch{}let il=!1;try{il="unit"===new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style}catch{}let iu={degree:{narrow:{default:"\xb0","ja-JP":" 度","zh-TW":"度","sl-SI":" \xb0"}}};class ic{format(e){let t="";if(t=is||null==this.options.signDisplay?this.numberFormatter.format(e):function(e,t,n){if("auto"===t)return e.format(n);{if("never"===t)return e.format(Math.abs(n));let r=!1;if("always"===t?r=n>0||Object.is(n,0):"exceptZero"===t&&(Object.is(n,-0)||Object.is(n,0)?n=Math.abs(n):r=n>0),!r)return e.format(n);{let t=e.format(-n),r=e.format(n),i=t.replace(r,"").replace(/\u200e|\u061C/,"");return 1!=[...i].length&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),t.replace(r,"!!!").replace(i,"+").replace("!!!",r)}}}(this.numberFormatter,this.options.signDisplay,e),"unit"===this.options.style&&!il){var n;let{unit:e,unitDisplay:r="short",locale:i}=this.resolvedOptions();if(!e)return t;let o=null===(n=iu[e])||void 0===n?void 0:n[r];t+=o[i]||o.default}return t}formatToParts(e){return this.numberFormatter.formatToParts(e)}formatRange(e,t){if("function"==typeof this.numberFormatter.formatRange)return this.numberFormatter.formatRange(e,t);if(t<e)throw RangeError("End date must be >= start date");return`${this.format(e)} \u{2013} ${this.format(t)}`}formatRangeToParts(e,t){if("function"==typeof this.numberFormatter.formatRangeToParts)return this.numberFormatter.formatRangeToParts(e,t);if(t<e)throw RangeError("End date must be >= start date");let n=this.numberFormatter.formatToParts(e),r=this.numberFormatter.formatToParts(t);return[...n.map(e=>({...e,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...r.map(e=>({...e,source:"endRange"}))]}resolvedOptions(){let e=this.numberFormatter.resolvedOptions();return is||null==this.options.signDisplay||(e={...e,signDisplay:this.options.signDisplay}),il||"unit"!==this.options.style||(e={...e,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),e}constructor(e,t={}){this.numberFormatter=function(e,t={}){let{numberingSystem:n}=t;if(n&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${n}`),"unit"===t.style&&!il){var r;let{unit:e,unitDisplay:n="short"}=t;if(!e)throw Error('unit option must be provided with style: "unit"');if(!(null===(r=iu[e])||void 0===r?void 0:r[n]))throw Error(`Unsupported unit ${e} with unitDisplay = ${n}`);t={...t,style:"decimal"}}let i=e+(t?Object.entries(t).sort((e,t)=>e[0]<t[0]?-1:1).join():"");if(ia.has(i))return ia.get(i);let o=new Intl.NumberFormat(e,t);return ia.set(i,o),o}(e,t),this.options=t}}let id=RegExp("^.*\\(.*\\).*$"),ih=["latn","arab","hanidec","deva","beng"];class ip{parse(e){return iv(this.locale,this.options,e).parse(e)}isValidPartialNumber(e,t,n){return iv(this.locale,this.options,e).isValidPartialNumber(e,t,n)}getNumberingSystem(e){return iv(this.locale,this.options,e).options.numberingSystem}constructor(e,t={}){this.locale=e,this.options=t}}let ig=new Map;function iv(e,t,n){let r=im(e,t);if(!e.includes("-nu-")&&!r.isValidPartialNumber(n)){for(let i of ih)if(i!==r.options.numberingSystem){let r=im(e+(e.includes("-u-")?"-nu-":"-u-nu-")+i,t);if(r.isValidPartialNumber(n))return r}}return r}function im(e,t){let n=e+(t?Object.entries(t).sort((e,t)=>e[0]<t[0]?-1:1).join():""),r=ig.get(n);return r||(r=new ib(e,t),ig.set(n,r)),r}class ib{parse(e){let t=this.sanitize(e);if(this.symbols.group&&(t=iw(t,this.symbols.group,"")),this.symbols.decimal&&(t=t.replace(this.symbols.decimal,".")),this.symbols.minusSign&&(t=t.replace(this.symbols.minusSign,"-")),t=t.replace(this.symbols.numeral,this.symbols.index),"percent"===this.options.style){let e=t.indexOf("-"),n=(t=(t=t.replace("-","")).replace("+","")).indexOf(".");-1===n&&(n=t.length),t=t.replace(".",""),t=n-2==0?`0.${t}`:n-2==-1?`0.0${t}`:n-2==-2?"0.00":`${t.slice(0,n-2)}.${t.slice(n-2)}`,e>-1&&(t=`-${t}`)}let n=t?+t:NaN;if(isNaN(n))return NaN;if("percent"===this.options.style){var r,i;let e={...this.options,style:"decimal",minimumFractionDigits:Math.min((null!==(r=this.options.minimumFractionDigits)&&void 0!==r?r:0)+2,20),maximumFractionDigits:Math.min((null!==(i=this.options.maximumFractionDigits)&&void 0!==i?i:0)+2,20)};return new ip(this.locale,e).parse(new ic(this.locale,e).format(n))}return"accounting"===this.options.currencySign&&id.test(e)&&(n*=-1),n}sanitize(e){return e=e.replace(this.symbols.literals,""),this.symbols.minusSign&&(e=e.replace("-",this.symbols.minusSign)),"arab"===this.options.numberingSystem&&(this.symbols.decimal&&(e=(e=e.replace(",",this.symbols.decimal)).replace(String.fromCharCode(1548),this.symbols.decimal)),this.symbols.group&&(e=iw(e,".",this.symbols.group))),"fr-FR"===this.options.locale&&this.symbols.group&&(e=iw(e," ",this.symbols.group),e=iw(e,/\u00A0/g,this.symbols.group)),e}isValidPartialNumber(e,t=-1/0,n=1/0){return e=this.sanitize(e),this.symbols.minusSign&&e.startsWith(this.symbols.minusSign)&&t<0?e=e.slice(this.symbols.minusSign.length):this.symbols.plusSign&&e.startsWith(this.symbols.plusSign)&&n>0&&(e=e.slice(this.symbols.plusSign.length)),!(this.symbols.group&&e.startsWith(this.symbols.group)||this.symbols.decimal&&e.indexOf(this.symbols.decimal)>-1&&0===this.options.maximumFractionDigits)&&(this.symbols.group&&(e=iw(e,this.symbols.group,"")),e=e.replace(this.symbols.numeral,""),this.symbols.decimal&&(e=e.replace(this.symbols.decimal,"")),0===e.length)}constructor(e,t={}){var n,r,i,o,a,s,l,u,c;let d,f,h,p,g,v,m,b,y,x,w,E;this.locale=e,1!==t.roundingIncrement&&null!=t.roundingIncrement&&(null==t.maximumFractionDigits&&null==t.minimumFractionDigits?(t.maximumFractionDigits=0,t.minimumFractionDigits=0):null==t.maximumFractionDigits?t.maximumFractionDigits=t.minimumFractionDigits:null==t.minimumFractionDigits&&(t.minimumFractionDigits=t.maximumFractionDigits)),this.formatter=new Intl.NumberFormat(e,t),this.options=this.formatter.resolvedOptions(),this.symbols=(this.formatter,o=this.options,f=(d=new Intl.NumberFormat(e,{...o,minimumSignificantDigits:1,maximumSignificantDigits:21,roundingIncrement:1,roundingPriority:"auto",roundingMode:"halfExpand"})).formatToParts(-10000.111),h=d.formatToParts(10000.111),p=ix.map(e=>d.formatToParts(e)),g=null!==(c=null===(a=f.find(e=>"minusSign"===e.type))||void 0===a?void 0:a.value)&&void 0!==c?c:"-",(v=null===(s=h.find(e=>"plusSign"===e.type))||void 0===s?void 0:s.value)||(null==t?void 0:t.signDisplay)!=="exceptZero"&&(null==t?void 0:t.signDisplay)!=="always"||(v="+"),m=null===(l=new Intl.NumberFormat(e,{...o,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find(e=>"decimal"===e.type))||void 0===l?void 0:l.value,b=null===(u=f.find(e=>"group"===e.type))||void 0===u?void 0:u.value,x=0===(y=[...new Set([...f.filter(e=>!iy.has(e.type)).map(e=>iE(e.value)),...p.flatMap(e=>e.filter(e=>!iy.has(e.type)).map(e=>iE(e.value)))])].sort((e,t)=>t.length-e.length)).length?RegExp("[\\p{White_Space}]","gu"):RegExp(`${y.join("|")}|[\\p{White_Space}]`,"gu"),E=new Map((w=[...new Intl.NumberFormat(o.locale,{useGrouping:!1}).format(9876543210)].reverse()).map((e,t)=>[e,t])),{minusSign:g,plusSign:v,decimal:m,group:b,literals:x,numeral:RegExp(`[${w.join("")}]`,"g"),index:e=>String(E.get(e))}),"percent"===this.options.style&&((null!==(n=this.options.minimumFractionDigits)&&void 0!==n?n:0)>18||(null!==(r=this.options.maximumFractionDigits)&&void 0!==r?r:0)>18)&&console.warn("NumberParser cannot handle percentages with greater than 18 decimal places, please reduce the number in your options.")}}let iy=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),ix=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function iw(e,t,n){return e.replaceAll?e.replaceAll(t,n):e.split(t).join(n)}function iE(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}var iS=(0,K.F)("numberInput").parts("root","label","input","control","valueText","incrementTrigger","decrementTrigger","scrubber");iS.build();var ik=e=>e.ids?.input??`number-input:${e.id}:input`,iO=e=>e.ids?.incrementTrigger??`number-input:${e.id}:inc`,iC=e=>e.ids?.decrementTrigger??`number-input:${e.id}:dec`,iI=e=>`number-input:${e.id}:cursor`,i_=e=>e.getById(ik(e)),iT=e=>e.getById(iO(e)),iP=e=>e.getById(iC(e)),iR=e=>e.getDoc().getElementById(iI(e)),iA=(e,t)=>{let n=null;return"increment"===t&&(n=iT(e)),"decrement"===t&&(n=iP(e)),n},iN=(e,t)=>{if(!(0,eo.G6)())return iD(e,t),()=>{iR(e)?.remove()}},iM=e=>{let t=e.getDoc(),n=t.documentElement,r=t.body;return r.style.pointerEvents="none",n.style.userSelect="none",n.style.cursor="ew-resize",()=>{r.style.pointerEvents="",n.style.userSelect="",n.style.cursor="",n.style.length||n.removeAttribute("style"),r.style.length||r.removeAttribute("style")}},iL=(e,t)=>{let{point:n,isRtl:r,event:i}=t,o=e.getWin(),a=(0,Z.BK)(i.movementX,o.devicePixelRatio),s=(0,Z.BK)(i.movementY,o.devicePixelRatio),l=a>0?"increment":a<0?"decrement":null;r&&"increment"===l&&(l="decrement"),r&&"decrement"===l&&(l="increment");let u={x:n.x+a,y:n.y+s},c=o.innerWidth,d=(0,Z.BK)(7.5,o.devicePixelRatio);return u.x=(0,Z.re)(u.x+d,c)-d,{hint:l,point:u}},iD=(e,t)=>{let n=e.getDoc(),r=n.createElement("div");r.className="scrubber--cursor",r.id=iI(e),Object.assign(r.style,{width:"15px",height:"15px",position:"fixed",pointerEvents:"none",left:"0px",top:"0px",zIndex:eo.dw,transform:t?`translate3d(${t.x}px, ${t.y}px, 0px)`:void 0,willChange:"transform"}),r.innerHTML=`
3
- <svg width="46" height="15" style="left: -15.5px; position: absolute; top: 0; filter: drop-shadow(rgba(0, 0, 0, 0.4) 0px 1px 1.1px);">
4
- <g transform="translate(2 3)">
5
- <path fill-rule="evenodd" d="M 15 4.5L 15 2L 11.5 5.5L 15 9L 15 6.5L 31 6.5L 31 9L 34.5 5.5L 31 2L 31 4.5Z" style="stroke-width: 2px; stroke: white;"></path>
6
- <path fill-rule="evenodd" d="M 15 4.5L 15 2L 11.5 5.5L 15 9L 15 6.5L 31 6.5L 31 9L 34.5 5.5L 31 2L 31 4.5Z"></path>
7
- </g>
8
- </svg>`,n.body.appendChild(r)},iF=(e,t={})=>new Intl.NumberFormat(e,t),iV=(e,t={})=>new ip(e,t),ij=(e,t)=>{let{prop:n,computed:r}=t;return n("formatOptions")?r("parser").parse(String(e)):parseFloat(e)},iz=(e,t)=>{let{prop:n,computed:r}=t;return Number.isNaN(e)?"":n("formatOptions")?r("formatter").format(e):e.toString()},iU=(e,t)=>{let n=void 0===e||Number.isNaN(e)?1:e;return t?.style==="percent"&&(void 0===e||Number.isNaN(e))&&(n=.01),n},{choose:iB,guards:iW,createMachine:iH}=(0,el.cY)(),{not:i$,and:iq}=iW;iH({props({props:e}){let t=iU(e.step,e.formatOptions);return{dir:"ltr",locale:"en-US",focusInputOnChange:!0,clampValueOnBlur:!e.allowOverflow,allowOverflow:!1,inputMode:"decimal",pattern:"[0-9]*(.[0-9]+)?",defaultValue:"",step:t,min:Number.MIN_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER,spinOnPress:!0,...e,translations:{incrementLabel:"increment value",decrementLabel:"decrease value",...e.translations}}},initialState:()=>"idle",context:({prop:e,bindable:t,getComputed:n})=>({value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),onChange(t){let r=ij(t,{computed:n(),prop:e});e("onValueChange")?.({value:t,valueAsNumber:r})}})),hint:t(()=>({defaultValue:null})),scrubberCursorPoint:t(()=>({defaultValue:null,hash:e=>e?`x:${e.x}, y:${e.y}`:""})),fieldsetDisabled:t(()=>({defaultValue:!1}))}),computed:{isRtl:({prop:e})=>"rtl"===e("dir"),valueAsNumber:({context:e,computed:t,prop:n})=>ij(e.get("value"),{computed:t,prop:n}),formattedValue:({computed:e,prop:t})=>iz(e("valueAsNumber"),{computed:e,prop:t}),isAtMin:({computed:e,prop:t})=>(0,Z.Je)(e("valueAsNumber"),t("min")),isAtMax:({computed:e,prop:t})=>(0,Z.oe)(e("valueAsNumber"),t("max")),isOutOfRange:({computed:e,prop:t})=>!(0,Z.Uq)(e("valueAsNumber"),t("min"),t("max")),isValueEmpty:({context:e})=>""===e.get("value"),isDisabled:({prop:e,context:t})=>!!e("disabled")||t.get("fieldsetDisabled"),canIncrement:({prop:e,computed:t})=>e("allowOverflow")||!t("isAtMax"),canDecrement:({prop:e,computed:t})=>e("allowOverflow")||!t("isAtMin"),valueText:({prop:e,context:t})=>e("translations").valueText?.(t.get("value")),formatter:(0,el.X$)(({prop:e})=>[e("locale"),e("formatOptions")],(e,t)=>iF(e,t)),parser:(0,el.X$)(({prop:e})=>[e("locale"),e("formatOptions")],(e,t)=>iV(e,t))},watch({track:e,action:t,context:n,computed:r,prop:i}){e([()=>n.get("value"),()=>i("locale")],()=>{t(["syncInputElement"])}),e([()=>r("isOutOfRange")],()=>{t(["invokeOnInvalid"])}),e([()=>n.hash("scrubberCursorPoint")],()=>{t(["setVirtualCursorPosition"])})},effects:["trackFormControl"],on:{"VALUE.SET":{actions:["setRawValue"]},"VALUE.CLEAR":{actions:["clearValue"]},"VALUE.INCREMENT":{actions:["increment"]},"VALUE.DECREMENT":{actions:["decrement"]}},states:{idle:{on:{"TRIGGER.PRESS_DOWN":[{guard:"isTouchPointer",target:"before:spin",actions:["setHint"]},{target:"before:spin",actions:["focusInput","invokeOnFocus","setHint"]}],"SCRUBBER.PRESS_DOWN":{target:"scrubbing",actions:["focusInput","invokeOnFocus","setHint","setCursorPoint"]},"INPUT.FOCUS":{target:"focused",actions:["focusInput","invokeOnFocus"]}}},focused:{tags:["focus"],effects:["attachWheelListener"],on:{"TRIGGER.PRESS_DOWN":[{guard:"isTouchPointer",target:"before:spin",actions:["setHint"]},{target:"before:spin",actions:["focusInput","setHint"]}],"SCRUBBER.PRESS_DOWN":{target:"scrubbing",actions:["focusInput","setHint","setCursorPoint"]},"INPUT.ARROW_UP":{actions:["increment"]},"INPUT.ARROW_DOWN":{actions:["decrement"]},"INPUT.HOME":{actions:["decrementToMin"]},"INPUT.END":{actions:["incrementToMax"]},"INPUT.CHANGE":{actions:["setValue","setHint"]},"INPUT.BLUR":[{guard:iq("clampValueOnBlur",i$("isInRange")),target:"idle",actions:["setClampedValue","clearHint","invokeOnBlur"]},{guard:i$("isInRange"),target:"idle",actions:["setFormattedValue","clearHint","invokeOnBlur","invokeOnInvalid"]},{target:"idle",actions:["setFormattedValue","clearHint","invokeOnBlur"]}],"INPUT.ENTER":{actions:["setFormattedValue","clearHint","invokeOnBlur"]}}},"before:spin":{tags:["focus"],effects:["trackButtonDisabled","waitForChangeDelay"],entry:iB([{guard:"isIncrementHint",actions:["increment"]},{guard:"isDecrementHint",actions:["decrement"]}]),on:{CHANGE_DELAY:{target:"spinning",guard:iq("isInRange","spinOnPress")},"TRIGGER.PRESS_UP":[{guard:"isTouchPointer",target:"focused",actions:["clearHint"]},{target:"focused",actions:["focusInput","clearHint"]}]}},spinning:{tags:["focus"],effects:["trackButtonDisabled","spinValue"],on:{SPIN:[{guard:"isIncrementHint",actions:["increment"]},{guard:"isDecrementHint",actions:["decrement"]}],"TRIGGER.PRESS_UP":{target:"focused",actions:["focusInput","clearHint"]}}},scrubbing:{tags:["focus"],effects:["activatePointerLock","trackMousemove","setupVirtualCursor","preventTextSelection"],on:{"SCRUBBER.POINTER_UP":{target:"focused",actions:["focusInput","clearCursorPoint"]},"SCRUBBER.POINTER_MOVE":[{guard:"isIncrementHint",actions:["increment","setCursorPoint"]},{guard:"isDecrementHint",actions:["decrement","setCursorPoint"]}]}}},implementations:{guards:{clampValueOnBlur:({prop:e})=>e("clampValueOnBlur"),spinOnPress:({prop:e})=>!!e("spinOnPress"),isInRange:({computed:e})=>!e("isOutOfRange"),isDecrementHint:({context:e,event:t})=>(t.hint??e.get("hint"))==="decrement",isIncrementHint:({context:e,event:t})=>(t.hint??e.get("hint"))==="increment",isTouchPointer:({event:e})=>"touch"===e.pointerType},effects:{waitForChangeDelay({send:e}){let t=setTimeout(()=>{e({type:"CHANGE_DELAY"})},300);return()=>clearTimeout(t)},spinValue({send:e}){let t=setInterval(()=>{e({type:"SPIN"})},50);return()=>clearInterval(t)},trackFormControl({context:e,scope:t}){let n=i_(t);return(0,eo.NS)(n,{onFieldsetDisabledChange(t){e.set("fieldsetDisabled",t)},onFormReset(){e.set("value",e.initial("value"))}})},setupVirtualCursor:({context:e,scope:t})=>iN(t,e.get("scrubberCursorPoint")),preventTextSelection:({scope:e})=>iM(e),trackButtonDisabled({context:e,scope:t,send:n}){let r=iA(t,e.get("hint"));return(0,eo.FX)(r,{attributes:["disabled"],callback(){n({type:"TRIGGER.PRESS_UP",src:"attr"})}})},attachWheelListener({scope:e,send:t,prop:n}){let r=i_(e);if(r&&e.isActiveElement(r)&&n("allowMouseWheel"))return(0,eo.EV)(r,"wheel",function(e){e.preventDefault();let n=-1*Math.sign(e.deltaY);1===n?t({type:"VALUE.INCREMENT"}):-1===n&&t({type:"VALUE.DECREMENT"})},{passive:!1})},activatePointerLock({scope:e}){if(!(0,eo.G6)())return(0,eo.d3)(e.getDoc())},trackMousemove({scope:e,send:t,context:n,computed:r}){let i=e.getDoc();return(0,Z.PP)((0,eo.EV)(i,"mousemove",function(i){let o=iL(e,{point:n.get("scrubberCursorPoint"),isRtl:r("isRtl"),event:i});o.hint&&t({type:"SCRUBBER.POINTER_MOVE",hint:o.hint,point:o.point})},!1),(0,eo.EV)(i,"mouseup",function(){t({type:"SCRUBBER.POINTER_UP"})},!1))}},actions:{focusInput({scope:e,prop:t}){if(!t("focusInputOnChange"))return;let n=i_(e);e.isActiveElement(n)||(0,eo.Wn)(()=>n?.focus({preventScroll:!0}))},increment({context:e,event:t,prop:n,computed:r}){let i=(0,Z.pc)(r("valueAsNumber"),t.step??n("step"));n("allowOverflow")||(i=(0,Z.HU)(i,n("min"),n("max"))),e.set("value",iz(i,{computed:r,prop:n}))},decrement({context:e,event:t,prop:n,computed:r}){let i=(0,Z.U4)(r("valueAsNumber"),t.step??n("step"));n("allowOverflow")||(i=(0,Z.HU)(i,n("min"),n("max"))),e.set("value",iz(i,{computed:r,prop:n}))},setClampedValue({context:e,prop:t,computed:n}){let r=(0,Z.HU)(n("valueAsNumber"),t("min"),t("max"));e.set("value",iz(r,{computed:n,prop:t}))},setRawValue({context:e,event:t,prop:n,computed:r}){let i=ij(t.value,{computed:r,prop:n});n("allowOverflow")||(i=(0,Z.HU)(i,n("min"),n("max"))),e.set("value",iz(i,{computed:r,prop:n}))},setValue({context:e,event:t}){let n=t.target?.value??t.value;e.set("value",n)},clearValue({context:e}){e.set("value","")},incrementToMax({context:e,prop:t,computed:n}){let r=iz(t("max"),{computed:n,prop:t});e.set("value",r)},decrementToMin({context:e,prop:t,computed:n}){let r=iz(t("min"),{computed:n,prop:t});e.set("value",r)},setHint({context:e,event:t}){e.set("hint",t.hint)},clearHint({context:e}){e.set("hint",null)},invokeOnFocus({computed:e,prop:t}){t("onFocusChange")?.({focused:!0,value:e("formattedValue"),valueAsNumber:e("valueAsNumber")})},invokeOnBlur({computed:e,prop:t}){t("onFocusChange")?.({focused:!1,value:e("formattedValue"),valueAsNumber:e("valueAsNumber")})},invokeOnInvalid({computed:e,prop:t,event:n}){if("INPUT.CHANGE"===n.type)return;let r=e("valueAsNumber")>t("max")?"rangeOverflow":"rangeUnderflow";t("onValueInvalid")?.({reason:r,value:e("formattedValue"),valueAsNumber:e("valueAsNumber")})},syncInputElement({context:e,event:t,computed:n,scope:r}){let i=t.type.endsWith("CHANGE")?e.get("value"):n("formattedValue"),o=i_(r),a=function(e){if(e&&e.ownerDocument.activeElement===e)try{let{selectionStart:t,selectionEnd:n,value:r}=e,i=r.substring(0,t),o=r.substring(n);return{start:t,end:n,value:r,beforeTxt:i,afterTxt:o}}catch{}}(o);(0,eo.Wn)(()=>{(0,eo.lG)(o,i),function(e,t){if(e&&e.ownerDocument.activeElement===e){if(!t){e.setSelectionRange(e.value.length,e.value.length);return}try{let{value:n}=e,{beforeTxt:r="",afterTxt:i="",start:o}=t,a=n.length;if(n.endsWith(i))a=n.length-i.length;else if(n.startsWith(r))a=r.length;else if(null!=o){let e=r[o-1],t=n.indexOf(e,o-1);-1!==t&&(a=t+1)}e.setSelectionRange(a,a)}catch{}}}(o,a)})},setFormattedValue({context:e,computed:t}){e.set("value",t("formattedValue"))},setCursorPoint({context:e,event:t}){e.set("scrubberCursorPoint",t.point)},clearCursorPoint({context:e}){e.set("scrubberCursorPoint",null)},setVirtualCursorPosition({context:e,scope:t}){let n=iR(t),r=e.get("scrubberCursorPoint");n&&r&&(n.style.transform=`translate3d(${r.x}px, ${r.y}px, 0px)`)}}}});var iG=(0,ec.e)()(["allowMouseWheel","allowOverflow","clampValueOnBlur","dir","disabled","focusInputOnChange","form","formatOptions","getRootNode","id","ids","inputMode","invalid","locale","max","min","name","onFocusChange","onValueChange","onValueInvalid","pattern","required","readOnly","spinOnPress","step","translations","value","defaultValue"]);(0,Z.xQ)(iG);let iK=(0,o.k0)({display:"flex",justifyContent:"center",alignItems:"center",flex:"1",userSelect:"none",cursor:"button",lineHeight:"1",color:"fg.muted","--stepper-base-radius":"radii.l1","--stepper-radius":"calc(var(--stepper-base-radius) + 1px)",_icon:{boxSize:"1em"},_disabled:{opacity:"0.5"},_hover:{bg:"bg.muted"},_active:{bg:"bg.emphasized"}}),iZ=(0,o.O3)({className:"chakra-number-input",slots:iS.keys(),base:{root:{position:"relative",zIndex:"0",isolation:"isolate"},input:{...M.base,verticalAlign:"top",pe:"calc(var(--stepper-width) + 0.5rem)"},control:{display:"flex",flexDirection:"column",position:"absolute",top:"0",insetEnd:"0px",margin:"1px",width:"var(--stepper-width)",height:"calc(100% - 2px)",zIndex:"1",borderStartWidth:"1px",divideY:"1px"},incrementTrigger:{...iK,borderTopEndRadius:"var(--stepper-radius)"},decrementTrigger:{...iK,borderBottomEndRadius:"var(--stepper-radius)"},valueText:{fontWeight:"medium",fontFeatureSettings:"pnum",fontVariantNumeric:"proportional-nums"}},variants:{size:{xs:{input:M.variants.size.xs,control:{fontSize:"2xs","--stepper-width":"sizes.4"}},sm:{input:M.variants.size.sm,control:{fontSize:"xs","--stepper-width":"sizes.5"}},md:{input:M.variants.size.md,control:{fontSize:"sm","--stepper-width":"sizes.6"}},lg:{input:M.variants.size.lg,control:{fontSize:"sm","--stepper-width":"sizes.6"}}},variant:io(M.variants.variant,(e,t)=>[e,{input:t}])},defaultVariants:{size:"md",variant:"outline"}});var iY=(0,K.F)("pinInput").parts("root","label","input","control");iY.build();var iX=e=>e.ids?.root??`pin-input:${e.id}`,iQ=e=>e.ids?.hiddenInput??`pin-input:${e.id}:hidden`,iJ=e=>e.getById(iX(e)),i0=e=>{let t=CSS.escape(iX(e)),n=`input[data-ownedby=${t}]`;return(0,eo.Kt)(iJ(e),n)},i1=(e,t)=>i0(e)[t],i2=e=>e.getById(iQ(e)),i5=(e,t)=>{e.value=t,e.setAttribute("value",t)},{choose:i4,createMachine:i3}=(0,el.cY)();function i6(e,t){let n=t;return e[0]===t[0]?n=t[1]:e[0]===t[1]&&(n=t[0]),n.split("")[n.length-1]}function i8(e,t){return Array.from({length:t}).fill("").map((t,n)=>e[n]||t)}i3({props:({props:e})=>({placeholder:"○",otp:!1,type:"numeric",defaultValue:e.count?i8([],e.count):[],...e,translations:{inputLabel:(e,t)=>`pin code ${e+1} of ${t}`,...e.translations}}),initialState:()=>"idle",context:({prop:e,bindable:t})=>({value:t(()=>({value:e("value"),defaultValue:e("defaultValue"),isEqual:Z.Xy,onChange(t){e("onValueChange")?.({value:t,valueAsString:t.join("")})}})),focusedIndex:t(()=>({sync:!0,defaultValue:-1})),count:t(()=>({defaultValue:e("count")}))}),computed:{_value:({context:e})=>i8(e.get("value"),e.get("count")),valueLength:({computed:e})=>e("_value").length,filledValueLength:({computed:e})=>e("_value").filter(e=>e?.trim()!=="").length,isValueComplete:({computed:e})=>e("valueLength")===e("filledValueLength"),valueAsString:({computed:e})=>e("_value").join(""),focusedValue:({computed:e,context:t})=>e("_value")[t.get("focusedIndex")]||""},entry:i4([{guard:"autoFocus",actions:["setInputCount","setFocusIndexToFirst"]},{actions:["setInputCount"]}]),watch({action:e,track:t,context:n,computed:r}){t([()=>n.get("focusedIndex")],()=>{e(["focusInput","selectInputIfNeeded"])}),t([()=>n.get("value").join(",")],()=>{e(["syncInputElements","dispatchInputEvent"])}),t([()=>r("isValueComplete")],()=>{e(["invokeOnComplete","blurFocusedInputIfNeeded"])})},on:{"VALUE.SET":[{guard:"hasIndex",actions:["setValueAtIndex"]},{actions:["setValue"]}],"VALUE.CLEAR":{actions:["clearValue","setFocusIndexToFirst"]}},states:{idle:{on:{"INPUT.FOCUS":{target:"focused",actions:["setFocusedIndex"]}}},focused:{on:{"INPUT.CHANGE":{actions:["setFocusedValue","syncInputValue","setNextFocusedIndex"]},"INPUT.PASTE":{actions:["setPastedValue","setLastValueFocusIndex"]},"INPUT.FOCUS":{actions:["setFocusedIndex"]},"INPUT.BLUR":{target:"idle",actions:["clearFocusedIndex"]},"INPUT.DELETE":{guard:"hasValue",actions:["clearFocusedValue"]},"INPUT.ARROW_LEFT":{actions:["setPrevFocusedIndex"]},"INPUT.ARROW_RIGHT":{actions:["setNextFocusedIndex"]},"INPUT.BACKSPACE":[{guard:"hasValue",actions:["clearFocusedValue"]},{actions:["setPrevFocusedIndex","clearFocusedValue"]}],"INPUT.ENTER":{guard:"isValueComplete",actions:["requestFormSubmit"]},"VALUE.INVALID":{actions:["invokeOnInvalid"]}}}},implementations:{guards:{autoFocus:({prop:e})=>!!e("autoFocus"),hasValue:({context:e})=>""!==e.get("value")[e.get("focusedIndex")],isValueComplete:({computed:e})=>e("isValueComplete"),hasIndex:({event:e})=>void 0!==e.index},actions:{dispatchInputEvent({computed:e,scope:t}){let n=i2(t);(0,eo.x$)(n,{value:e("valueAsString")})},setInputCount({scope:e,context:t,prop:n}){if(n("count"))return;let r=i0(e);t.set("count",r.length)},focusInput({context:e,scope:t}){let n=e.get("focusedIndex");-1!==n&&i1(t,n)?.focus({preventScroll:!0})},selectInputIfNeeded({context:e,prop:t,scope:n}){let r=e.get("focusedIndex");t("selectOnFocus")&&-1!==r&&(0,eo.Wn)(()=>{i1(n,r)?.select()})},invokeOnComplete({computed:e,prop:t}){e("isValueComplete")&&t("onValueComplete")?.({value:e("_value"),valueAsString:e("valueAsString")})},invokeOnInvalid({context:e,event:t,prop:n}){n("onValueInvalid")?.({value:t.value,index:e.get("focusedIndex")})},clearFocusedIndex({context:e}){e.set("focusedIndex",-1)},setFocusedIndex({context:e,event:t}){e.set("focusedIndex",t.index)},setValue({context:e,event:t}){let n=i8(t.value,e.get("count"));e.set("value",n)},setFocusedValue({context:e,event:t,computed:n,flush:r}){let i=n("focusedValue"),o=e.get("focusedIndex"),a=i6(i,t.value);r(()=>{e.set("value",(0,Z.JK)(n("_value"),o,a))})},revertInputValue({context:e,computed:t,scope:n}){i5(i1(n,e.get("focusedIndex")),t("focusedValue"))},syncInputValue({context:e,event:t,scope:n}){let r=e.get("value");i5(i1(n,t.index),r[t.index])},syncInputElements({context:e,scope:t}){let n=i0(t),r=e.get("value");n.forEach((e,t)=>{i5(e,r[t])})},setPastedValue({context:e,event:t,computed:n,flush:r}){(0,eo.Wn)(()=>{let i=n("valueAsString"),o=e.get("focusedIndex"),a=n("valueLength"),s=Math.min(o,n("filledValueLength")),l=s>0?i.substring(0,o):"",u=t.value.substring(0,a-s),c=i8(`${l}${u}`.split(""),a);r(()=>{e.set("value",c)})})},setValueAtIndex({context:e,event:t,computed:n}){let r=i6(n("focusedValue"),t.value);e.set("value",(0,Z.JK)(n("_value"),t.index,r))},clearValue({context:e}){let t=Array.from({length:e.get("count")}).fill("");e.set("value",t)},clearFocusedValue({context:e,computed:t}){let n=e.get("focusedIndex");-1!==n&&e.set("value",(0,Z.JK)(t("_value"),n,""))},setFocusIndexToFirst({context:e}){e.set("focusedIndex",0)},setNextFocusedIndex({context:e,computed:t}){e.set("focusedIndex",Math.min(e.get("focusedIndex")+1,t("valueLength")-1))},setPrevFocusedIndex({context:e}){e.set("focusedIndex",Math.max(e.get("focusedIndex")-1,0))},setLastValueFocusIndex({context:e,computed:t}){(0,eo.Wn)(()=>{e.set("focusedIndex",Math.min(t("filledValueLength"),t("valueLength")-1))})},blurFocusedInputIfNeeded({context:e,prop:t,scope:n}){t("blurOnComplete")&&(0,eo.Wn)(()=>{i1(n,e.get("focusedIndex"))?.blur()})},requestFormSubmit({computed:e,prop:t,scope:n}){if(!t("name")||!e("isValueComplete"))return;let r=i2(n);r?.form?.requestSubmit()}}}});var i7=(0,ec.e)()(["autoFocus","blurOnComplete","count","defaultValue","dir","disabled","form","getRootNode","id","ids","invalid","mask","name","onValueChange","onValueComplete","onValueInvalid","otp","pattern","placeholder","readOnly","required","selectOnFocus","translations","type","value"]);(0,Z.xQ)(i7);let{variants:i9,defaultVariants:oe}=M,ot=(0,o.O3)({className:"chakra-pin-input",slots:iY.keys(),base:{input:{...M.base,textAlign:"center",width:"var(--input-height)"},control:{display:"inline-flex",gap:"2",isolation:"isolate"}},variants:{size:io(i9.size,(e,t)=>[e,{input:{...t,px:"1"}}]),variant:io(i9.variant,(e,t)=>[e,{input:t}]),attached:{true:{control:{gap:"0",spaceX:"-1px"},input:{_notFirst:{borderStartRadius:"0"},_notLast:{borderEndRadius:"0"},_focusVisible:{zIndex:"1"}}}}},defaultVariants:oe}),on=(0,o.O3)({className:"chakra-popover",slots:ri.keys(),base:{content:{position:"relative",display:"flex",flexDirection:"column",textStyle:"sm","--popover-bg":"colors.bg.panel",bg:"var(--popover-bg)",boxShadow:"lg","--popover-size":"sizes.xs","--popover-mobile-size":"calc(100dvw - 1rem)",width:{base:"min(var(--popover-mobile-size), var(--popover-size))",sm:"var(--popover-size)"},borderRadius:"l3","--popover-z-index":"zIndex.popover",zIndex:"calc(var(--popover-z-index) + var(--layer-index, 0))",outline:"0",transformOrigin:"var(--transform-origin)",maxHeight:"var(--available-height)",_open:{animationStyle:"scale-fade-in",animationDuration:"fast"},_closed:{animationStyle:"scale-fade-out",animationDuration:"faster"}},header:{paddingInline:"var(--popover-padding)",paddingTop:"var(--popover-padding)"},body:{padding:"var(--popover-padding)",flex:"1"},footer:{display:"flex",alignItems:"center",paddingInline:"var(--popover-padding)",paddingBottom:"var(--popover-padding)"},arrow:{"--arrow-size":"sizes.3","--arrow-background":"var(--popover-bg)"},arrowTip:{borderTopWidth:"1px",borderInlineStartWidth:"1px"}},variants:{size:{xs:{content:{"--popover-padding":"spacing.3"}},sm:{content:{"--popover-padding":"spacing.4"}},md:{content:{"--popover-padding":"spacing.5"}},lg:{content:{"--popover-padding":"spacing.6"}}}},defaultVariants:{size:"md"}});var or=n(7628);let oi=(0,o.O3)({slots:or.Os.keys(),className:"chakra-progress",base:{root:{textStyle:"sm",position:"relative"},track:{overflow:"hidden",position:"relative"},range:{display:"flex",alignItems:"center",justifyContent:"center",transitionProperty:"width, height",transitionDuration:"slow",height:"100%",bgColor:"var(--track-color)",_indeterminate:{"--animate-from-x":"-40%","--animate-to-x":"100%",position:"absolute",willChange:"left",minWidth:"50%",animation:"position 1s ease infinite normal none running",backgroundImage:"linear-gradient(to right, transparent 0%, var(--track-color) 50%, transparent 100%)"}},label:{display:"inline-flex",fontWeight:"medium",alignItems:"center",gap:"1"},valueText:{textStyle:"xs",lineHeight:"1",fontWeight:"medium"}},variants:{variant:{outline:{track:{shadow:"inset",bgColor:"bg.muted"},range:{bgColor:"colorPalette.solid"}},subtle:{track:{bgColor:"colorPalette.muted"},range:{bgColor:"colorPalette.solid/72"}}},shape:{square:{},rounded:{track:{borderRadius:"l1"}},full:{track:{borderRadius:"full"}}},striped:{true:{range:{backgroundImage:"linear-gradient(45deg, var(--stripe-color) 25%, transparent 25%, transparent 50%, var(--stripe-color) 50%, var(--stripe-color) 75%, transparent 75%, transparent)",backgroundSize:"var(--stripe-size) var(--stripe-size)","--stripe-size":"1rem","--stripe-color":{_light:"rgba(255, 255, 255, 0.3)",_dark:"rgba(0, 0, 0, 0.3)"}}}},animated:{true:{range:{"--animate-from":"var(--stripe-size)",animation:"bg-position 1s linear infinite"}}},size:{xs:{track:{h:"1.5"}},sm:{track:{h:"2"}},md:{track:{h:"2.5"}},lg:{track:{h:"3"}},xl:{track:{h:"4"}}}},defaultVariants:{variant:"outline",size:"md",shape:"rounded"}}),oo=(0,o.O3)({className:"chakra-progress-circle",slots:or.Os.keys(),base:{root:{display:"inline-flex",textStyle:"sm",position:"relative"},circle:{_indeterminate:{animation:"spin 2s linear infinite"}},circleTrack:{"--track-color":"colors.colorPalette.muted",stroke:"var(--track-color)"},circleRange:{stroke:"colorPalette.solid",transitionProperty:"stroke-dashoffset, stroke-dasharray",transitionDuration:"0.6s",_indeterminate:{animation:"circular-progress 1.5s linear infinite"}},label:{display:"inline-flex"},valueText:{lineHeight:"1",fontWeight:"medium",letterSpacing:"tight",fontVariantNumeric:"tabular-nums"}},variants:{size:{xs:{circle:{"--size":"24px","--thickness":"4px"},valueText:{textStyle:"2xs"}},sm:{circle:{"--size":"32px","--thickness":"5px"},valueText:{textStyle:"2xs"}},md:{circle:{"--size":"40px","--thickness":"6px"},valueText:{textStyle:"xs"}},lg:{circle:{"--size":"48px","--thickness":"7px"},valueText:{textStyle:"sm"}},xl:{circle:{"--size":"64px","--thickness":"8px"},valueText:{textStyle:"sm"}}}},defaultVariants:{size:"md"}});var oa=((r=oa||{})[r.Border=-1]="Border",r[r.Data=0]="Data",r[r.Function=1]="Function",r[r.Position=2]="Position",r[r.Timing=3]="Timing",r[r.Alignment=4]="Alignment",r),os=Object.defineProperty,ol=(e,t,n)=>t in e?os(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ou=(e,t,n)=>(ol(e,"symbol"!=typeof t?t+"":t,n),n);let oc=[1,0],od=[2,3],of=[3,2],oh={L:[0,1],M:oc,Q:od,H:of},op=/^[0-9]*$/,og=/^[A-Z0-9 $%*+.\/:-]*$/,ov="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",om=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],ob=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]];class oy{constructor(e,t,n,r){if(this.version=e,this.ecc=t,ou(this,"size"),ou(this,"mask"),ou(this,"modules",[]),ou(this,"types",[]),e<1||e>40)throw RangeError("Version value out of range");if(r<-1||r>7)throw RangeError("Mask value out of range");this.size=4*e+17;let i=Array.from({length:this.size},()=>!1);for(let e=0;e<this.size;e++)this.modules.push(i.slice()),this.types.push(i.map(()=>0));this.drawFunctionPatterns();let o=this.addEccAndInterleave(n);if(this.drawCodewords(o),-1===r){let e=1e9;for(let t=0;t<8;t++){this.applyMask(t),this.drawFormatBits(t);let n=this.getPenaltyScore();n<e&&(r=t,e=n),this.applyMask(t)}}this.mask=r,this.applyMask(r),this.drawFormatBits(r)}getModule(e,t){return e>=0&&e<this.size&&t>=0&&t<this.size&&this.modules[t][e]}drawFunctionPatterns(){for(let e=0;e<this.size;e++)this.setFunctionModule(6,e,e%2==0,oa.Timing),this.setFunctionModule(e,6,e%2==0,oa.Timing);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);let e=this.getAlignmentPatternPositions(),t=e.length;for(let n=0;n<t;n++)for(let r=0;r<t;r++)0===n&&0===r||0===n&&r===t-1||n===t-1&&0===r||this.drawAlignmentPattern(e[n],e[r]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(e){let t=this.ecc[1]<<3|e,n=t;for(let e=0;e<10;e++)n=n<<1^(n>>>9)*1335;let r=(t<<10|n)^21522;for(let e=0;e<=5;e++)this.setFunctionModule(8,e,ow(r,e));this.setFunctionModule(8,7,ow(r,6)),this.setFunctionModule(8,8,ow(r,7)),this.setFunctionModule(7,8,ow(r,8));for(let e=9;e<15;e++)this.setFunctionModule(14-e,8,ow(r,e));for(let e=0;e<8;e++)this.setFunctionModule(this.size-1-e,8,ow(r,e));for(let e=8;e<15;e++)this.setFunctionModule(8,this.size-15+e,ow(r,e));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let e=this.version;for(let t=0;t<12;t++)e=e<<1^(e>>>11)*7973;let t=this.version<<12|e;for(let e=0;e<18;e++){let n=ow(t,e),r=this.size-11+e%3,i=Math.floor(e/3);this.setFunctionModule(r,i,n),this.setFunctionModule(i,r,n)}}drawFinderPattern(e,t){for(let n=-4;n<=4;n++)for(let r=-4;r<=4;r++){let i=Math.max(Math.abs(r),Math.abs(n)),o=e+r,a=t+n;o>=0&&o<this.size&&a>=0&&a<this.size&&this.setFunctionModule(o,a,2!==i&&4!==i,oa.Position)}}drawAlignmentPattern(e,t){for(let n=-2;n<=2;n++)for(let r=-2;r<=2;r++)this.setFunctionModule(e+r,t+n,1!==Math.max(Math.abs(r),Math.abs(n)),oa.Alignment)}setFunctionModule(e,t,n,r=oa.Function){this.modules[t][e]=n,this.types[t][e]=r}addEccAndInterleave(e){let t=this.version,n=this.ecc;if(e.length!==oT(t,n))throw RangeError("Invalid argument");let r=ob[n[0]][t],i=om[n[0]][t],o=Math.floor(o_(t)/8),a=r-o%r,s=Math.floor(o/r),l=[],u=function(e){if(e<1||e>255)throw RangeError("Degree out of range");let t=[];for(let n=0;n<e-1;n++)t.push(0);t.push(1);let n=1;for(let r=0;r<e;r++){for(let e=0;e<t.length;e++)t[e]=oP(t[e],n),e+1<t.length&&(t[e]^=t[e+1]);n=oP(n,2)}return t}(i);for(let t=0,n=0;t<r;t++){let r=e.slice(n,n+s-i+(t<a?0:1));n+=r.length;let o=function(e,t){let n=t.map(e=>0);for(let r of e){let e=r^n.shift();n.push(0),t.forEach((t,r)=>n[r]^=oP(t,e))}return n}(r,u);t<a&&r.push(0),l.push(r.concat(o))}let c=[];for(let e=0;e<l[0].length;e++)l.forEach((t,n)=>{(e!==s-i||n>=a)&&c.push(t[e])});return c}drawCodewords(e){if(e.length!==Math.floor(o_(this.version)/8))throw RangeError("Invalid argument");let t=0;for(let n=this.size-1;n>=1;n-=2){6===n&&(n=5);for(let r=0;r<this.size;r++)for(let i=0;i<2;i++){let o=n-i,a=(n+1&2)==0?this.size-1-r:r;!this.types[a][o]&&t<8*e.length&&(this.modules[a][o]=ow(e[t>>>3],7-(7&t)),t++)}}}applyMask(e){if(e<0||e>7)throw RangeError("Mask value out of range");for(let t=0;t<this.size;t++)for(let n=0;n<this.size;n++){let r;switch(e){case 0:r=(n+t)%2==0;break;case 1:r=t%2==0;break;case 2:r=n%3==0;break;case 3:r=(n+t)%3==0;break;case 4:r=(Math.floor(n/3)+Math.floor(t/2))%2==0;break;case 5:r=n*t%2+n*t%3==0;break;case 6:r=(n*t%2+n*t%3)%2==0;break;case 7:r=((n+t)%2+n*t%3)%2==0;break;default:throw Error("Unreachable")}!this.types[t][n]&&r&&(this.modules[t][n]=!this.modules[t][n])}}getPenaltyScore(){let e=0;for(let t=0;t<this.size;t++){let n=!1,r=0,i=[0,0,0,0,0,0,0];for(let o=0;o<this.size;o++)this.modules[t][o]===n?5==++r?e+=3:r>5&&e++:(this.finderPenaltyAddHistory(r,i),n||(e+=40*this.finderPenaltyCountPatterns(i)),n=this.modules[t][o],r=1);e+=40*this.finderPenaltyTerminateAndCount(n,r,i)}for(let t=0;t<this.size;t++){let n=!1,r=0,i=[0,0,0,0,0,0,0];for(let o=0;o<this.size;o++)this.modules[o][t]===n?5==++r?e+=3:r>5&&e++:(this.finderPenaltyAddHistory(r,i),n||(e+=40*this.finderPenaltyCountPatterns(i)),n=this.modules[o][t],r=1);e+=40*this.finderPenaltyTerminateAndCount(n,r,i)}for(let t=0;t<this.size-1;t++)for(let n=0;n<this.size-1;n++){let r=this.modules[t][n];r===this.modules[t][n+1]&&r===this.modules[t+1][n]&&r===this.modules[t+1][n+1]&&(e+=3)}let t=0;for(let e of this.modules)t=e.reduce((e,t)=>e+(t?1:0),t);let n=this.size*this.size;return e+(Math.ceil(Math.abs(20*t-10*n)/n)-1)*10}getAlignmentPatternPositions(){if(1===this.version)return[];{let e=Math.floor(this.version/7)+2,t=32===this.version?26:2*Math.ceil((4*this.version+4)/(2*e-2)),n=[6];for(let r=this.size-7;n.length<e;r-=t)n.splice(1,0,r);return n}}finderPenaltyCountPatterns(e){let t=e[1],n=t>0&&e[2]===t&&e[3]===3*t&&e[4]===t&&e[5]===t;return(n&&e[0]>=4*t&&e[6]>=t?1:0)+(n&&e[6]>=4*t&&e[0]>=t?1:0)}finderPenaltyTerminateAndCount(e,t,n){return e&&(this.finderPenaltyAddHistory(t,n),t=0),t+=this.size,this.finderPenaltyAddHistory(t,n),this.finderPenaltyCountPatterns(n)}finderPenaltyAddHistory(e,t){0===t[0]&&(e+=this.size),t.pop(),t.unshift(e)}}function ox(e,t,n){if(t<0||t>31||e>>>t!=0)throw RangeError("Value out of range");for(let r=t-1;r>=0;r--)n.push(e>>>r&1)}function ow(e,t){return(e>>>t&1)!=0}class oE{constructor(e,t,n){if(this.mode=e,this.numChars=t,this.bitData=n,t<0)throw RangeError("Invalid argument");this.bitData=n.slice()}getData(){return this.bitData.slice()}}let oS=[1,10,12,14],ok=[2,9,11,13],oO=[4,8,16,16];function oC(e,t){return e[Math.floor((t+7)/17)+1]}function oI(e){let t=[];for(let n of e)ox(n,8,t);return new oE(oO,e.length,t)}function o_(e){if(e<1||e>40)throw RangeError("Version number out of range");let t=(16*e+128)*e+64;if(e>=2){let n=Math.floor(e/7)+2;t-=(25*n-10)*n-55,e>=7&&(t-=36)}return t}function oT(e,t){return Math.floor(o_(e)/8)-om[t[0]][e]*ob[t[0]][e]}function oP(e,t){if(e>>>8!=0||t>>>8!=0)throw RangeError("Byte out of range");let n=0;for(let r=7;r>=0;r--)n=n<<1^(n>>>7)*285^(t>>>r&1)*e;return n}var oR=(0,K.F)("qr-code").parts("root","frame","pattern","overlay","downloadTrigger");oR.build();var oA=e=>e.ids?.frame??`qrcode:${e.id}:frame`,oN=e=>e.getById(oA(e));(0,el.C8)({props:({props:e})=>({defaultValue:"",pixelSize:10,...e}),initialState:()=>"idle",context:({prop:e,bindable:t})=>({value:t(()=>({value:e("value"),defaultValue:e("defaultValue"),onChange(t){e("onValueChange")?.({value:t})}}))}),computed:{encoded:(0,el.X$)(({context:e,prop:t})=>[e.get("value"),t("encoding")],(e,t)=>(function(e,t){let{ecc:n="L",boostEcc:r=!1,minVersion:i=1,maxVersion:o=40,maskPattern:a=-1,border:s=1}=t||{},l="string"==typeof e?function(e){return""===e?[]:op.test(e)?[function(e){if(!op.test(e))throw RangeError("String contains non-numeric characters");let t=[];for(let n=0;n<e.length;){let r=Math.min(e.length-n,3);ox(Number.parseInt(e.substring(n,n+r),10),3*r+1,t),n+=r}return new oE(oS,e.length,t)}(e)]:og.test(e)?[function(e){let t;if(!og.test(e))throw RangeError("String contains unencodable characters in alphanumeric mode");let n=[];for(t=0;t+2<=e.length;t+=2){let r=45*ov.indexOf(e.charAt(t));ox(r+=ov.indexOf(e.charAt(t+1)),11,n)}return t<e.length&&ox(ov.indexOf(e.charAt(t)),6,n),new oE(ok,e.length,n)}(e)]:[oI(function(e){e=encodeURI(e);let t=[];for(let n=0;n<e.length;n++)"%"!==e.charAt(n)?t.push(e.charCodeAt(n)):(t.push(Number.parseInt(e.substring(n+1,n+3),16)),n+=2);return t}(e))]}(e):Array.isArray(e)?[oI(e)]:void 0;if(!l)throw Error(`uqr only supports encoding string and binary data, but got: ${typeof e}`);let u=function(e,t,n=1,r=40,i=-1,o=!0){let a,s;if(!(1<=n&&n<=r&&r<=40)||i<-1||i>7)throw RangeError("Invalid value");for(a=n;;a++){let n=8*oT(a,t),i=function(e,t){let n=0;for(let r of e){let e=oC(r.mode,t);if(r.numChars>=1<<e)return Number.POSITIVE_INFINITY;n+=4+e+r.bitData.length}return n}(e,a);if(i<=n){s=i;break}if(a>=r)throw RangeError("Data too long")}for(let e of[oc,od,of])o&&s<=8*oT(a,e)&&(t=e);let l=[];for(let t of e)for(let e of(ox(t.mode[0],4,l),ox(t.numChars,oC(t.mode,a),l),t.getData()))l.push(e);let u=8*oT(a,t);ox(0,Math.min(4,u-l.length),l),ox(0,(8-l.length%8)%8,l);for(let e=236;l.length<u;e^=253)ox(e,8,l);let c=Array.from({length:Math.ceil(l.length/8)},()=>0);return l.forEach((e,t)=>c[t>>>3]|=e<<7-(7&t)),new oy(a,t,c,i)}(l,oh[n],i,o,a,r),c=function(e,t=1){if(!t)return e;let{size:n}=e,r=n+2*t;e.size=r,e.data.forEach(e=>{for(let n=0;n<t;n++)e.unshift(!1),e.push(!1)});for(let n=0;n<t;n++)e.data.unshift(Array.from({length:r},e=>!1)),e.data.push(Array.from({length:r},e=>!1));let i=oa.Border;e.types.forEach(e=>{for(let n=0;n<t;n++)e.unshift(i),e.push(i)});for(let n=0;n<t;n++)e.types.unshift(Array.from({length:r},e=>i)),e.types.push(Array.from({length:r},e=>i));return e}({version:u.version,maskPattern:u.mask,size:u.size,data:u.modules,types:u.types},s);return t?.invert&&(c.data=c.data.map(e=>e.map(e=>!e))),t?.onEncoded?.(c),c})(e,t))},states:{idle:{on:{"VALUE.SET":{actions:["setValue"]},"DOWNLOAD_TRIGGER.CLICK":{actions:["downloadQrCode"]}}}},implementations:{actions:{setValue({context:e,event:t}){e.set("value",t.value)},downloadQrCode({event:e,scope:t}){let{mimeType:n,quality:r,fileName:i}=e,o=oN(t),a=t.getDoc();(0,eo.$k)(o,{type:n,quality:r}).then(e=>{let t=a.createElement("a");t.href=e,t.rel="noopener",t.download=i,t.click(),setTimeout(()=>{t.remove()},0)})}}}});var oM=(0,ec.e)()(["ids","defaultValue","value","id","encoding","dir","getRootNode","onValueChange","pixelSize"]);(0,Z.xQ)(oM);let oL=(0,o.O3)({slots:oR.keys(),className:"chakra-qr-code",base:{root:{position:"relative",width:"fit-content","--qr-code-overlay-size":"calc(var(--qr-code-size) / 3)"},frame:{width:"var(--qr-code-size)",height:"var(--qr-code-size)",fill:"currentColor"},overlay:{display:"flex",alignItems:"center",justifyContent:"center",width:"var(--qr-code-overlay-size)",height:"var(--qr-code-overlay-size)",padding:"1",bg:"bg",rounded:"l1"}},variants:{size:{"2xs":{root:{"--qr-code-size":"40px"}},xs:{root:{"--qr-code-size":"64px"}},sm:{root:{"--qr-code-size":"80px"}},md:{root:{"--qr-code-size":"120px"}},lg:{root:{"--qr-code-size":"160px"}},xl:{root:{"--qr-code-size":"200px"}},"2xl":{root:{"--qr-code-size":"240px"}},full:{root:{"--qr-code-size":"100%"}}}},defaultVariants:{size:"md"}}),oD=(0,o.O3)({className:"chakra-radio-card",slots:ra.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5",isolation:"isolate"},item:{flex:"1",display:"flex",flexDirection:"column",userSelect:"none",position:"relative",borderRadius:"l2",_focus:{bg:"colorPalette.muted/20"},_disabled:{opacity:"0.8",borderColor:"border.disabled"},_checked:{zIndex:"1"}},label:{display:"inline-flex",fontWeight:"medium",textStyle:"sm",_disabled:{opacity:"0.5"}},itemText:{fontWeight:"medium",flex:"1"},itemDescription:{opacity:"0.64",textStyle:"sm"},itemControl:{display:"inline-flex",flex:"1",pos:"relative",rounded:"inherit",justifyContent:"var(--radio-card-justify)",alignItems:"var(--radio-card-align)",_disabled:{bg:"bg.muted"}},itemIndicator:j.base,itemAddon:{roundedBottom:"inherit",_disabled:{color:"fg.muted"}},itemContent:{display:"flex",flexDirection:"column",flex:"1",gap:"1",justifyContent:"var(--radio-card-justify)",alignItems:"var(--radio-card-align)"}},variants:{size:{sm:{item:{textStyle:"sm"},itemControl:{padding:"3",gap:"1.5"},itemAddon:{px:"3",py:"1.5",borderTopWidth:"1px"},itemIndicator:j.variants?.size.sm},md:{item:{textStyle:"sm"},itemControl:{padding:"4",gap:"2.5"},itemAddon:{px:"4",py:"2",borderTopWidth:"1px"},itemIndicator:j.variants?.size.md},lg:{item:{textStyle:"md"},itemControl:{padding:"4",gap:"3.5"},itemAddon:{px:"4",py:"2",borderTopWidth:"1px"},itemIndicator:j.variants?.size.lg}},variant:{surface:{item:{borderWidth:"1px",_checked:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderColor:"colorPalette.muted"}},itemIndicator:j.variants?.variant.solid},subtle:{item:{bg:"bg.muted"},itemControl:{_checked:{bg:"colorPalette.muted",color:"colorPalette.fg"}},itemIndicator:j.variants?.variant.outline},outline:{item:{borderWidth:"1px",_checked:{boxShadow:"0 0 0 1px var(--shadow-color)",boxShadowColor:"colorPalette.solid",borderColor:"colorPalette.solid"}},itemIndicator:j.variants?.variant.solid},solid:{item:{borderWidth:"1px",_checked:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},itemIndicator:j.variants?.variant.inverted}},justify:{start:{item:{"--radio-card-justify":"flex-start"}},end:{item:{"--radio-card-justify":"flex-end"}},center:{item:{"--radio-card-justify":"center"}}},align:{start:{item:{"--radio-card-align":"flex-start"},itemControl:{textAlign:"start"}},end:{item:{"--radio-card-align":"flex-end"},itemControl:{textAlign:"end"}},center:{item:{"--radio-card-align":"center"},itemControl:{textAlign:"center"}}},orientation:{vertical:{itemControl:{flexDirection:"column"}},horizontal:{itemControl:{flexDirection:"row"}}}},defaultVariants:{size:"md",variant:"outline",align:"start",orientation:"horizontal"}}),oF=(0,o.O3)({className:"chakra-radio-group",slots:ro.keys(),base:{item:{display:"inline-flex",alignItems:"center",position:"relative",fontWeight:"medium",_disabled:{cursor:"disabled"}},itemControl:j.base,label:{userSelect:"none",textStyle:"sm",_disabled:{opacity:"0.5"}}},variants:{variant:{outline:{itemControl:j.variants?.variant?.outline},subtle:{itemControl:j.variants?.variant?.subtle},solid:{itemControl:j.variants?.variant?.solid}},size:{xs:{item:{textStyle:"xs",gap:"1.5"},itemControl:j.variants?.size?.xs},sm:{item:{textStyle:"sm",gap:"2"},itemControl:j.variants?.size?.sm},md:{item:{textStyle:"sm",gap:"2.5"},itemControl:j.variants?.size?.md},lg:{item:{textStyle:"md",gap:"3"},itemControl:j.variants?.size?.lg}}},defaultVariants:{size:"md",variant:"solid"}}),oV=(0,o.O3)({className:"chakra-rating-group",slots:rs.keys(),base:{root:{display:"inline-flex"},control:{display:"inline-flex",alignItems:"center"},item:{display:"inline-flex",alignItems:"center",justifyContent:"center",userSelect:"none"},itemIndicator:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"1em",height:"1em",position:"relative","--clip-path":{base:"inset(0 50% 0 0)",_rtl:"inset(0 0 0 50%)"},_icon:{stroke:"currentColor",width:"100%",height:"100%",display:"inline-block",flexShrink:0,position:"absolute",left:0,top:0},"& [data-bg]":{color:"bg.emphasized"},"& [data-fg]":{color:"transparent"},"&[data-highlighted]:not([data-half])":{"& [data-fg]":{color:"colorPalette.solid"}},"&[data-half]":{"& [data-fg]":{color:"colorPalette.solid",clipPath:"var(--clip-path)"}}}},variants:{size:{xs:{item:{textStyle:"sm"}},sm:{item:{textStyle:"md"}},md:{item:{textStyle:"xl"}},lg:{item:{textStyle:"2xl"}}}},defaultVariants:{size:"md"}}),oj=t7.Os.rename("segment-group");oj.build();let oz=(0,o.O3)({className:"chakra-segment-group",slots:oj.keys(),base:{root:{"--segment-radius":"radii.l2",borderRadius:"l2",display:"inline-flex",boxShadow:"inset",minW:"max-content",textAlign:"center",position:"relative",isolation:"isolate",bg:"bg.muted",_vertical:{flexDirection:"column"}},item:{display:"flex",alignItems:"center",justifyContent:"center",userSelect:"none",fontSize:"sm",position:"relative",color:"fg",borderRadius:"var(--segment-radius)",_disabled:{opacity:"0.5"},"&:has(input:focus-visible)":{focusRing:"outside"},_before:{content:'""',position:"absolute",bg:"border",transition:"opacity 0.2s"},_horizontal:{_before:{insetInlineStart:0,insetBlock:"1.5",width:"1px"}},_vertical:{_before:{insetBlockStart:0,insetInline:"1.5",height:"1px"}},"& + &[data-state=checked], &[data-state=checked] + &, &:first-of-type":{_before:{opacity:"0"}},"&[data-state=checked][data-ssr]":{shadow:"sm",bg:"bg",borderRadius:"var(--segment-radius)"}},indicator:{shadow:"sm",pos:"absolute",bg:{_light:"bg",_dark:"bg.emphasized"},width:"var(--width)",height:"var(--height)",top:"var(--top)",left:"var(--left)",zIndex:-1,borderRadius:"var(--segment-radius)"}},variants:{size:{xs:{item:{textStyle:"xs",px:"3",gap:"1",height:"6"}},sm:{item:{textStyle:"sm",px:"4",gap:"2",height:"8"}},md:{item:{textStyle:"sm",px:"4",gap:"2",height:"10"}},lg:{item:{textStyle:"md",px:"4.5",gap:"3",height:"11"}}}},defaultVariants:{size:"md"}}),oU=(0,o.O3)({className:"chakra-slider",slots:rc.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1",textStyle:"sm",position:"relative",isolation:"isolate",touchAction:"none"},label:{fontWeight:"medium",textStyle:"sm"},control:{display:"inline-flex",alignItems:"center",position:"relative"},track:{overflow:"hidden",borderRadius:"full",flex:"1"},range:{width:"inherit",height:"inherit",_disabled:{bg:"border.emphasized!"}},markerGroup:{position:"absolute!",zIndex:"1"},marker:{"--marker-bg":{base:"white",_underValue:"colors.bg"},display:"flex",alignItems:"center",gap:"calc(var(--slider-thumb-size) / 2)",color:"fg.muted",textStyle:"xs"},markerIndicator:{width:"var(--slider-marker-size)",height:"var(--slider-marker-size)",borderRadius:"full",bg:"var(--marker-bg)"},thumb:{width:"var(--slider-thumb-size)",height:"var(--slider-thumb-size)",display:"flex",alignItems:"center",justifyContent:"center",outline:0,zIndex:"2",borderRadius:"full",_focusVisible:{ring:"2px",ringColor:"colorPalette.focusRing",ringOffset:"2px",ringOffsetColor:"bg"}}},variants:{size:{sm:{root:{"--slider-thumb-size":"sizes.4","--slider-track-size":"sizes.1.5","--slider-marker-center":"6px","--slider-marker-size":"sizes.1","--slider-marker-inset":"3px"}},md:{root:{"--slider-thumb-size":"sizes.5","--slider-track-size":"sizes.2","--slider-marker-center":"8px","--slider-marker-size":"sizes.1","--slider-marker-inset":"4px"}},lg:{root:{"--slider-thumb-size":"sizes.6","--slider-track-size":"sizes.2.5","--slider-marker-center":"9px","--slider-marker-size":"sizes.1.5","--slider-marker-inset":"5px"}}},variant:{outline:{track:{shadow:"inset",bg:"bg.emphasized/72"},range:{bg:"colorPalette.solid"},thumb:{borderWidth:"2px",borderColor:"colorPalette.solid",bg:"bg",_disabled:{bg:"border.emphasized",borderColor:"border.emphasized"}}},solid:{track:{bg:"colorPalette.subtle",_disabled:{bg:"bg.muted"}},range:{bg:"colorPalette.solid"},thumb:{bg:"colorPalette.solid",_disabled:{bg:"border.emphasized"}}}},orientation:{vertical:{root:{display:"inline-flex"},control:{flexDirection:"column",height:"100%",minWidth:"var(--slider-thumb-size)","&[data-has-mark-label], &:has(.chakra-slider__marker-label)":{marginEnd:"4"}},track:{width:"var(--slider-track-size)"},thumb:{left:"50%",translate:"-50% 0"},markerGroup:{insetStart:"var(--slider-marker-center)",insetBlock:"var(--slider-marker-inset)"},marker:{flexDirection:"row"}},horizontal:{control:{flexDirection:"row",width:"100%",minHeight:"var(--slider-thumb-size)","&[data-has-mark-label], &:has(.chakra-slider__marker-label)":{marginBottom:"4"}},track:{height:"var(--slider-track-size)"},thumb:{top:"50%",translate:"0 -50%"},markerGroup:{top:"var(--slider-marker-center)",insetInline:"var(--slider-marker-inset)"},marker:{flexDirection:"column"}}}},defaultVariants:{size:"md",variant:"outline",orientation:"horizontal"}}),oB=(0,o.O3)({className:"chakra-stat",slots:rd.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1",position:"relative",flex:"1"},label:{display:"inline-flex",gap:"1.5",alignItems:"center",color:"fg.muted",textStyle:"sm"},helpText:{color:"fg.muted",textStyle:"xs"},valueUnit:{color:"fg.muted",textStyle:"xs",fontWeight:"initial",letterSpacing:"initial"},valueText:{verticalAlign:"baseline",fontWeight:"semibold",letterSpacing:"tight",fontFeatureSettings:"pnum",fontVariantNumeric:"proportional-nums",display:"inline-flex",gap:"1"},indicator:{display:"inline-flex",alignItems:"center",justifyContent:"center",marginEnd:1,"& :where(svg)":{w:"1em",h:"1em"},"&[data-type=up]":{color:"fg.success"},"&[data-type=down]":{color:"fg.error"}}},variants:{size:{sm:{valueText:{textStyle:"xl"}},md:{valueText:{textStyle:"2xl"}},lg:{valueText:{textStyle:"3xl"}}}},defaultVariants:{size:"md"}}),oW=(0,o.O3)({className:"chakra-status",slots:rf.keys(),base:{root:{display:"inline-flex",alignItems:"center",gap:"2"},indicator:{width:"0.64em",height:"0.64em",flexShrink:0,borderRadius:"full",forcedColorAdjust:"none",bg:"colorPalette.solid"}},variants:{size:{sm:{root:{textStyle:"xs"}},md:{root:{textStyle:"sm"}},lg:{root:{textStyle:"md"}}}},defaultVariants:{size:"md"}}),oH=(0,o.O3)({className:"chakra-steps",slots:rh.keys(),base:{root:{display:"flex",width:"full"},list:{display:"flex",justifyContent:"space-between","--steps-gutter":"spacing.3","--steps-thickness":"2px"},title:{fontWeight:"medium",color:"fg"},description:{color:"fg.muted"},separator:{bg:"border",flex:"1"},indicator:{display:"flex",justifyContent:"center",alignItems:"center",flexShrink:"0",borderRadius:"full",fontWeight:"medium",width:"var(--steps-size)",height:"var(--steps-size)",_icon:{flexShrink:"0",width:"var(--steps-icon-size)",height:"var(--steps-icon-size)"}},item:{position:"relative",display:"flex",gap:"3",flex:"1 0 0","&:last-of-type":{flex:"initial","& [data-part=separator]":{display:"none"}}},trigger:{display:"flex",alignItems:"center",gap:"3",textAlign:"start",focusVisibleRing:"outside",borderRadius:"l2"},content:{focusVisibleRing:"outside"}},variants:{orientation:{vertical:{root:{flexDirection:"row",height:"100%"},list:{flexDirection:"column",alignItems:"flex-start"},separator:{position:"absolute",width:"var(--steps-thickness)",height:"100%",maxHeight:"calc(100% - var(--steps-size) - var(--steps-gutter) * 2)",top:"calc(var(--steps-size) + var(--steps-gutter))",insetStart:"calc(var(--steps-size) / 2 - 1px)"},item:{alignItems:"flex-start"}},horizontal:{root:{flexDirection:"column",width:"100%"},list:{flexDirection:"row",alignItems:"center"},separator:{width:"100%",height:"var(--steps-thickness)",marginX:"var(--steps-gutter)"},item:{alignItems:"center"}}},variant:{solid:{indicator:{_incomplete:{borderWidth:"var(--steps-thickness)"},_current:{bg:"colorPalette.muted",borderWidth:"var(--steps-thickness)",borderColor:"colorPalette.solid",color:"colorPalette.fg"},_complete:{bg:"colorPalette.solid",borderColor:"colorPalette.solid",color:"colorPalette.contrast"}},separator:{_complete:{bg:"colorPalette.solid"}}},subtle:{indicator:{_incomplete:{bg:"bg.muted"},_current:{bg:"colorPalette.muted",color:"colorPalette.fg"},_complete:{bg:"colorPalette.emphasized",color:"colorPalette.fg"}},separator:{_complete:{bg:"colorPalette.emphasized"}}}},size:{xs:{root:{gap:"2.5"},list:{"--steps-size":"sizes.6","--steps-icon-size":"sizes.3.5",textStyle:"xs"},title:{textStyle:"sm"}},sm:{root:{gap:"3"},list:{"--steps-size":"sizes.8","--steps-icon-size":"sizes.4",textStyle:"xs"},title:{textStyle:"sm"}},md:{root:{gap:"4"},list:{"--steps-size":"sizes.10","--steps-icon-size":"sizes.4",textStyle:"sm"},title:{textStyle:"sm"}},lg:{root:{gap:"6"},list:{"--steps-size":"sizes.11","--steps-icon-size":"sizes.5",textStyle:"md"},title:{textStyle:"md"}}}},defaultVariants:{size:"md",variant:"solid",orientation:"horizontal"}}),o$=(0,o.O3)({slots:rp.keys(),className:"chakra-switch",base:{root:{display:"inline-flex",gap:"2.5",alignItems:"center",position:"relative",verticalAlign:"middle","--switch-diff":"calc(var(--switch-width) - var(--switch-height))","--switch-x":{base:"var(--switch-diff)",_rtl:"calc(var(--switch-diff) * -1)"}},label:{lineHeight:"1",userSelect:"none",fontSize:"sm",fontWeight:"medium",_disabled:{opacity:"0.5"}},indicator:{position:"absolute",height:"var(--switch-height)",width:"var(--switch-height)",fontSize:"var(--switch-indicator-font-size)",fontWeight:"medium",flexShrink:0,userSelect:"none",display:"grid",placeContent:"center",transition:"inset-inline-start 0.12s ease",insetInlineStart:"calc(var(--switch-x) - 2px)",_checked:{insetInlineStart:"2px"}},control:{display:"inline-flex",gap:"0.5rem",flexShrink:0,justifyContent:"flex-start",cursor:"switch",borderRadius:"full",position:"relative",width:"var(--switch-width)",height:"var(--switch-height)",transition:"backgrounds",_disabled:{opacity:"0.5",cursor:"not-allowed"},_invalid:{outline:"2px solid",outlineColor:"border.error",outlineOffset:"2px"}},thumb:{display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,transitionProperty:"translate",transitionDuration:"fast",borderRadius:"inherit",_checked:{translate:"var(--switch-x) 0"}}},variants:{variant:{solid:{control:{borderRadius:"full",bg:"bg.emphasized",focusVisibleRing:"outside",_checked:{bg:"colorPalette.solid"}},thumb:{bg:"white",width:"var(--switch-height)",height:"var(--switch-height)",scale:"0.8",boxShadow:"sm",_checked:{bg:"colorPalette.contrast"}}},raised:{control:{borderRadius:"full",height:"calc(var(--switch-height) / 2)",bg:"bg.muted",boxShadow:"inset",_checked:{bg:"colorPalette.solid/60"}},thumb:{width:"var(--switch-height)",height:"var(--switch-height)",position:"relative",top:"calc(var(--switch-height) * -0.25)",bg:"white",boxShadow:"xs",focusVisibleRing:"outside",_checked:{bg:"colorPalette.solid"}}}},size:{xs:{root:{"--switch-width":"sizes.6","--switch-height":"sizes.3","--switch-indicator-font-size":"fontSizes.xs"}},sm:{root:{"--switch-width":"sizes.8","--switch-height":"sizes.4","--switch-indicator-font-size":"fontSizes.xs"}},md:{root:{"--switch-width":"sizes.10","--switch-height":"sizes.5","--switch-indicator-font-size":"fontSizes.sm"}},lg:{root:{"--switch-width":"sizes.12","--switch-height":"sizes.6","--switch-indicator-font-size":"fontSizes.md"}}}},defaultVariants:{variant:"solid",size:"md"}}),oq=(0,o.O3)({className:"chakra-table",slots:rg.keys(),base:{root:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full",textAlign:"start",verticalAlign:"top"},row:{_selected:{bg:"colorPalette.subtle"}},cell:{textAlign:"start",alignItems:"center"},columnHeader:{fontWeight:"medium",textAlign:"start",color:"fg"},caption:{fontWeight:"medium",textStyle:"xs"},footer:{fontWeight:"medium"}},variants:{interactive:{true:{body:{"& tr":{_hover:{bg:"colorPalette.subtle"}}}}},stickyHeader:{true:{header:{"& :where(tr)":{top:"var(--table-sticky-offset, 0)",position:"sticky",zIndex:1}}}},striped:{true:{row:{"&:nth-of-type(odd) td":{bg:"bg.muted"}}}},showColumnBorder:{true:{columnHeader:{"&:not(:last-of-type)":{borderInlineEndWidth:"1px"}},cell:{"&:not(:last-of-type)":{borderInlineEndWidth:"1px"}}}},variant:{line:{columnHeader:{borderBottomWidth:"1px"},cell:{borderBottomWidth:"1px"},row:{bg:"bg"}},outline:{root:{boxShadow:"0 0 0 1px {colors.border}",overflow:"hidden"},columnHeader:{borderBottomWidth:"1px"},header:{bg:"bg.muted"},row:{"&:not(:last-of-type)":{borderBottomWidth:"1px"}},footer:{borderTopWidth:"1px"}}},size:{sm:{root:{textStyle:"sm"},columnHeader:{px:"2",py:"2"},cell:{px:"2",py:"2"}},md:{root:{textStyle:"sm"},columnHeader:{px:"3",py:"3"},cell:{px:"3",py:"3"}},lg:{root:{textStyle:"md"},columnHeader:{px:"4",py:"3"},cell:{px:"4",py:"3"}}}},defaultVariants:{variant:"line",size:"md"}}),oG=(0,o.O3)({slots:rm.keys(),className:"chakra-tabs",base:{root:{"--tabs-trigger-radius":"radii.l2",position:"relative",_horizontal:{display:"block"},_vertical:{display:"flex"}},list:{display:"inline-flex",position:"relative",isolation:"isolate","--tabs-indicator-shadow":"shadows.xs","--tabs-indicator-bg":"colors.bg",minH:"var(--tabs-height)",_horizontal:{flexDirection:"row"},_vertical:{flexDirection:"column"}},trigger:{outline:"0",minW:"var(--tabs-height)",height:"var(--tabs-height)",display:"flex",alignItems:"center",fontWeight:"medium",position:"relative",cursor:"button",gap:"2",_focusVisible:{zIndex:1,outline:"2px solid",outlineColor:"colorPalette.focusRing"},_disabled:{cursor:"not-allowed",opacity:.5}},content:{focusVisibleRing:"inside",_horizontal:{width:"100%",pt:"var(--tabs-content-padding)"},_vertical:{height:"100%",ps:"var(--tabs-content-padding)"}},indicator:{width:"var(--width)",height:"var(--height)",borderRadius:"var(--tabs-indicator-radius)",bg:"var(--tabs-indicator-bg)",shadow:"var(--tabs-indicator-shadow)",zIndex:-1}},variants:{fitted:{true:{list:{display:"flex"},trigger:{flex:1,textAlign:"center",justifyContent:"center"}}},justify:{start:{list:{justifyContent:"flex-start"}},center:{list:{justifyContent:"center"}},end:{list:{justifyContent:"flex-end"}}},size:{sm:{root:{"--tabs-height":"sizes.9","--tabs-content-padding":"spacing.3"},trigger:{py:"1",px:"3",textStyle:"sm"}},md:{root:{"--tabs-height":"sizes.10","--tabs-content-padding":"spacing.4"},trigger:{py:"2",px:"4",textStyle:"sm"}},lg:{root:{"--tabs-height":"sizes.11","--tabs-content-padding":"spacing.4.5"},trigger:{py:"2",px:"4.5",textStyle:"md"}}},variant:{line:{list:{display:"flex",borderColor:"border",_horizontal:{borderBottomWidth:"1px"},_vertical:{borderEndWidth:"1px"}},trigger:{color:"fg.muted",_disabled:{_active:{bg:"initial"}},_selected:{color:"fg",_horizontal:{layerStyle:"indicator.bottom","--indicator-offset-y":"-1px","--indicator-color":"colors.colorPalette.solid"},_vertical:{layerStyle:"indicator.end","--indicator-offset-x":"-1px"}}}},subtle:{trigger:{borderRadius:"var(--tabs-trigger-radius)",color:"fg.muted",_selected:{bg:"colorPalette.subtle",color:"colorPalette.fg"}}},enclosed:{list:{bg:"bg.muted",padding:"1",borderRadius:"l3",minH:"calc(var(--tabs-height) - 4px)"},trigger:{justifyContent:"center",color:"fg.muted",borderRadius:"var(--tabs-trigger-radius)",_selected:{bg:"bg",color:"colorPalette.fg",shadow:"xs"}}},outline:{list:{"--line-thickness":"1px","--line-offset":"calc(var(--line-thickness) * -1)",borderColor:"border",display:"flex",_horizontal:{_before:{content:'""',position:"absolute",bottom:"0px",width:"100%",borderBottomWidth:"var(--line-thickness)",borderBottomColor:"border"}},_vertical:{_before:{content:'""',position:"absolute",insetInline:"var(--line-offset)",height:"calc(100% - calc(var(--line-thickness) * 2))",borderEndWidth:"var(--line-thickness)",borderEndColor:"border"}}},trigger:{color:"fg.muted",borderWidth:"1px",borderColor:"transparent",_selected:{bg:"currentBg",color:"colorPalette.fg"},_horizontal:{borderTopRadius:"var(--tabs-trigger-radius)",marginBottom:"var(--line-offset)",marginEnd:{_notLast:"var(--line-offset)"},_selected:{borderColor:"border",borderBottomColor:"transparent"}},_vertical:{borderStartRadius:"var(--tabs-trigger-radius)",marginEnd:"var(--line-offset)",marginBottom:{_notLast:"var(--line-offset)"},_selected:{borderColor:"border",borderEndColor:"transparent"}}}},plain:{trigger:{color:"fg.muted",_selected:{color:"colorPalette.fg"},borderRadius:"var(--tabs-trigger-radius)","&[data-selected][data-ssr]":{bg:"var(--tabs-indicator-bg)",shadow:"var(--tabs-indicator-shadow)",borderRadius:"var(--tabs-indicator-radius)"}}}}},defaultVariants:{size:"md",variant:"line"}}),oK=k.variants?.variant,oZ=(0,o.O3)({slots:rb.keys(),className:"chakra-tag",base:{root:{display:"inline-flex",alignItems:"center",verticalAlign:"top",maxWidth:"100%",userSelect:"none",borderRadius:"l2",focusVisibleRing:"outside"},label:{lineClamp:"1"},closeTrigger:{display:"flex",alignItems:"center",justifyContent:"center",outline:"0",borderRadius:"l1",color:"currentColor",focusVisibleRing:"inside",focusRingWidth:"2px"},startElement:{flexShrink:0,boxSize:"var(--tag-element-size)",ms:"var(--tag-element-offset)","&:has([data-scope=avatar])":{boxSize:"var(--tag-avatar-size)",ms:"calc(var(--tag-element-offset) * 1.5)"},_icon:{boxSize:"100%"}},endElement:{flexShrink:0,boxSize:"var(--tag-element-size)",me:"var(--tag-element-offset)",_icon:{boxSize:"100%"},"&:has(button)":{ms:"calc(var(--tag-element-offset) * -1)"}}},variants:{size:{sm:{root:{px:"1.5",minH:"4.5",gap:"1","--tag-avatar-size":"spacing.3","--tag-element-size":"spacing.3","--tag-element-offset":"-2px"},label:{textStyle:"xs"}},md:{root:{px:"1.5",minH:"5",gap:"1","--tag-avatar-size":"spacing.3.5","--tag-element-size":"spacing.3.5","--tag-element-offset":"-2px"},label:{textStyle:"xs"}},lg:{root:{px:"2",minH:"6",gap:"1.5","--tag-avatar-size":"spacing.4.5","--tag-element-size":"spacing.4","--tag-element-offset":"-3px"},label:{textStyle:"sm"}},xl:{root:{px:"2.5",minH:"8",gap:"1.5","--tag-avatar-size":"spacing.6","--tag-element-size":"spacing.4.5","--tag-element-offset":"-4px"},label:{textStyle:"sm"}}},variant:{subtle:{root:oK?.subtle},solid:{root:oK?.solid},outline:{root:oK?.outline},surface:{root:oK?.surface}}},defaultVariants:{size:"md",variant:"surface"}}),oY=(0,o.O3)({slots:ry.keys(),className:"chakra-timeline",base:{root:{display:"flex",flexDirection:"column",width:"full","--timeline-thickness":"1px","--timeline-gutter":"4px"},item:{display:"flex",position:"relative",alignItems:"flex-start",flexShrink:0,gap:"4",_last:{"& :where(.chakra-timeline__separator)":{display:"none"}}},separator:{position:"absolute",borderStartWidth:"var(--timeline-thickness)",ms:"calc(-1 * var(--timeline-thickness) / 2)",insetInlineStart:"calc(var(--timeline-indicator-size) / 2)",insetBlock:"0",borderColor:"border"},indicator:{outline:"2px solid {colors.bg}",position:"relative",flexShrink:"0",boxSize:"var(--timeline-indicator-size)",fontSize:"var(--timeline-font-size)",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"full",fontWeight:"medium"},connector:{alignSelf:"stretch",position:"relative"},content:{pb:"6",display:"flex",flexDirection:"column",width:"full",gap:"2"},title:{display:"flex",fontWeight:"medium",flexWrap:"wrap",gap:"1.5",alignItems:"center",mt:"var(--timeline-margin)"},description:{color:"fg.muted",textStyle:"xs"}},variants:{variant:{subtle:{indicator:{bg:"colorPalette.muted"}},solid:{indicator:{bg:"colorPalette.solid",color:"colorPalette.contrast"}},outline:{indicator:{bg:"currentBg",borderWidth:"1px",borderColor:"colorPalette.muted"}},plain:{}},size:{sm:{root:{"--timeline-indicator-size":"sizes.4","--timeline-font-size":"fontSizes.2xs"},title:{textStyle:"xs"}},md:{root:{"--timeline-indicator-size":"sizes.5","--timeline-font-size":"fontSizes.xs"},title:{textStyle:"sm"}},lg:{root:{"--timeline-indicator-size":"sizes.6","--timeline-font-size":"fontSizes.xs"},title:{mt:"0.5",textStyle:"sm"}},xl:{root:{"--timeline-indicator-size":"sizes.8","--timeline-font-size":"fontSizes.sm"},title:{mt:"1.5",textStyle:"sm"}}}},defaultVariants:{size:"md",variant:"solid"}}),oX=(0,o.O3)({slots:rv.keys(),className:"chakra-toast",base:{root:{width:"full",display:"flex",alignItems:"flex-start",position:"relative",gap:"3",py:"4",ps:"4",pe:"6",borderRadius:"l2",translate:"var(--x) var(--y)",scale:"var(--scale)",zIndex:"var(--z-index)",height:"var(--height)",opacity:"var(--opacity)",willChange:"translate, opacity, scale",transition:"translate 400ms, scale 400ms, opacity 400ms, height 400ms, box-shadow 200ms",transitionTimingFunction:"cubic-bezier(0.21, 1.02, 0.73, 1)",_closed:{transition:"translate 400ms, scale 400ms, opacity 200ms",transitionTimingFunction:"cubic-bezier(0.06, 0.71, 0.55, 1)"},bg:"bg.panel",color:"fg",boxShadow:"xl","--toast-trigger-bg":"colors.bg.muted","&[data-type=warning]":{bg:"orange.solid",color:"orange.contrast","--toast-trigger-bg":"{white/10}","--toast-border-color":"{white/40}"},"&[data-type=success]":{bg:"green.solid",color:"green.contrast","--toast-trigger-bg":"{white/10}","--toast-border-color":"{white/40}"},"&[data-type=error]":{bg:"red.solid",color:"red.contrast","--toast-trigger-bg":"{white/10}","--toast-border-color":"{white/40}"}},title:{fontWeight:"medium",textStyle:"sm",marginEnd:"2"},description:{display:"inline",textStyle:"sm",opacity:"0.8"},indicator:{flexShrink:"0",boxSize:"5"},actionTrigger:{textStyle:"sm",fontWeight:"medium",height:"8",px:"3",borderRadius:"l2",alignSelf:"center",borderWidth:"1px",borderColor:"var(--toast-border-color, inherit)",transition:"background 200ms",_hover:{bg:"var(--toast-trigger-bg)"}},closeTrigger:{position:"absolute",top:"1",insetEnd:"1",padding:"1",display:"inline-flex",alignItems:"center",justifyContent:"center",color:"{currentColor/60}",borderRadius:"l2",textStyle:"md",transition:"background 200ms",_icon:{boxSize:"1em"}}}});var oQ=n(76956);let oJ=(0,o.O3)({slots:oQ.Os.keys(),className:"chakra-tooltip",base:{content:{"--tooltip-bg":"colors.bg.inverted",bg:"var(--tooltip-bg)",color:"fg.inverted",px:"2.5",py:"1",borderRadius:"l2",fontWeight:"medium",textStyle:"xs",boxShadow:"md",maxW:"xs",zIndex:"tooltip",transformOrigin:"var(--transform-origin)",_open:{animationStyle:"scale-fade-in",animationDuration:"fast"},_closed:{animationStyle:"scale-fade-out",animationDuration:"fast"}},arrow:{"--arrow-size":"sizes.2","--arrow-background":"var(--tooltip-bg)"},arrowTip:{borderTopWidth:"1px",borderInlineStartWidth:"1px",borderColor:"var(--tooltip-bg)"}}}),o0=(0,o.uD)({"2xs":{value:{fontSize:"2xs",lineHeight:"0.75rem"}},xs:{value:{fontSize:"xs",lineHeight:"1rem"}},sm:{value:{fontSize:"sm",lineHeight:"1.25rem"}},md:{value:{fontSize:"md",lineHeight:"1.5rem"}},lg:{value:{fontSize:"lg",lineHeight:"1.75rem"}},xl:{value:{fontSize:"xl",lineHeight:"1.875rem"}},"2xl":{value:{fontSize:"2xl",lineHeight:"2rem"}},"3xl":{value:{fontSize:"3xl",lineHeight:"2.375rem"}},"4xl":{value:{fontSize:"4xl",lineHeight:"2.75rem",letterSpacing:"-0.025em"}},"5xl":{value:{fontSize:"5xl",lineHeight:"3.75rem",letterSpacing:"-0.025em"}},"6xl":{value:{fontSize:"6xl",lineHeight:"4.5rem",letterSpacing:"-0.025em"}},"7xl":{value:{fontSize:"7xl",lineHeight:"5.75rem",letterSpacing:"-0.025em"}},none:{value:{}},label:{value:{fontSize:"sm",lineHeight:"1.25rem",fontWeight:"medium"}}}),o1=o.MO.animations({spin:{value:"spin 1s linear infinite"},ping:{value:"ping 1s cubic-bezier(0, 0, 0.2, 1) infinite"},pulse:{value:"pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite"},bounce:{value:"bounce 1s infinite"}}),o2=o.MO.aspectRatios({square:{value:"1 / 1"},landscape:{value:"4 / 3"},portrait:{value:"3 / 4"},wide:{value:"16 / 9"},ultrawide:{value:"18 / 5"},golden:{value:"1.618 / 1"}}),o5=o.MO.blurs({none:{value:" "},sm:{value:"4px"},md:{value:"8px"},lg:{value:"12px"},xl:{value:"16px"},"2xl":{value:"24px"},"3xl":{value:"40px"},"4xl":{value:"64px"}}),o4=o.MO.borders({xs:{value:"0.5px solid"},sm:{value:"1px solid"},md:{value:"2px solid"},lg:{value:"4px solid"},xl:{value:"8px solid"}}),o3=o.MO.colors({transparent:{value:"transparent"},current:{value:"currentColor"},black:{value:"#09090B"},white:{value:"#FFFFFF"},whiteAlpha:{50:{value:"rgba(255, 255, 255, 0.04)"},100:{value:"rgba(255, 255, 255, 0.06)"},200:{value:"rgba(255, 255, 255, 0.08)"},300:{value:"rgba(255, 255, 255, 0.16)"},400:{value:"rgba(255, 255, 255, 0.24)"},500:{value:"rgba(255, 255, 255, 0.36)"},600:{value:"rgba(255, 255, 255, 0.48)"},700:{value:"rgba(255, 255, 255, 0.64)"},800:{value:"rgba(255, 255, 255, 0.80)"},900:{value:"rgba(255, 255, 255, 0.92)"},950:{value:"rgba(255, 255, 255, 0.95)"}},blackAlpha:{50:{value:"rgba(0, 0, 0, 0.04)"},100:{value:"rgba(0, 0, 0, 0.06)"},200:{value:"rgba(0, 0, 0, 0.08)"},300:{value:"rgba(0, 0, 0, 0.16)"},400:{value:"rgba(0, 0, 0, 0.24)"},500:{value:"rgba(0, 0, 0, 0.36)"},600:{value:"rgba(0, 0, 0, 0.48)"},700:{value:"rgba(0, 0, 0, 0.64)"},800:{value:"rgba(0, 0, 0, 0.80)"},900:{value:"rgba(0, 0, 0, 0.92)"},950:{value:"rgba(0, 0, 0, 0.95)"}},gray:{50:{value:"#fafafa"},100:{value:"#f4f4f5"},200:{value:"#e4e4e7"},300:{value:"#d4d4d8"},400:{value:"#a1a1aa"},500:{value:"#71717a"},600:{value:"#52525b"},700:{value:"#3f3f46"},800:{value:"#27272a"},900:{value:"#18181b"},950:{value:"#111111"}},red:{50:{value:"#fef2f2"},100:{value:"#fee2e2"},200:{value:"#fecaca"},300:{value:"#fca5a5"},400:{value:"#f87171"},500:{value:"#ef4444"},600:{value:"#dc2626"},700:{value:"#991919"},800:{value:"#511111"},900:{value:"#300c0c"},950:{value:"#1f0808"}},orange:{50:{value:"#fff7ed"},100:{value:"#ffedd5"},200:{value:"#fed7aa"},300:{value:"#fdba74"},400:{value:"#fb923c"},500:{value:"#f97316"},600:{value:"#ea580c"},700:{value:"#92310a"},800:{value:"#6c2710"},900:{value:"#3b1106"},950:{value:"#220a04"}},yellow:{50:{value:"#fefce8"},100:{value:"#fef9c3"},200:{value:"#fef08a"},300:{value:"#fde047"},400:{value:"#facc15"},500:{value:"#eab308"},600:{value:"#ca8a04"},700:{value:"#845209"},800:{value:"#713f12"},900:{value:"#422006"},950:{value:"#281304"}},green:{50:{value:"#f0fdf4"},100:{value:"#dcfce7"},200:{value:"#bbf7d0"},300:{value:"#86efac"},400:{value:"#4ade80"},500:{value:"#22c55e"},600:{value:"#16a34a"},700:{value:"#116932"},800:{value:"#124a28"},900:{value:"#042713"},950:{value:"#03190c"}},teal:{50:{value:"#f0fdfa"},100:{value:"#ccfbf1"},200:{value:"#99f6e4"},300:{value:"#5eead4"},400:{value:"#2dd4bf"},500:{value:"#14b8a6"},600:{value:"#0d9488"},700:{value:"#0c5d56"},800:{value:"#114240"},900:{value:"#032726"},950:{value:"#021716"}},blue:{50:{value:"#eff6ff"},100:{value:"#dbeafe"},200:{value:"#bfdbfe"},300:{value:"#a3cfff"},400:{value:"#60a5fa"},500:{value:"#3b82f6"},600:{value:"#2563eb"},700:{value:"#173da6"},800:{value:"#1a3478"},900:{value:"#14204a"},950:{value:"#0c142e"}},cyan:{50:{value:"#ecfeff"},100:{value:"#cffafe"},200:{value:"#a5f3fc"},300:{value:"#67e8f9"},400:{value:"#22d3ee"},500:{value:"#06b6d4"},600:{value:"#0891b2"},700:{value:"#0c5c72"},800:{value:"#134152"},900:{value:"#072a38"},950:{value:"#051b24"}},purple:{50:{value:"#faf5ff"},100:{value:"#f3e8ff"},200:{value:"#e9d5ff"},300:{value:"#d8b4fe"},400:{value:"#c084fc"},500:{value:"#a855f7"},600:{value:"#9333ea"},700:{value:"#641ba3"},800:{value:"#4a1772"},900:{value:"#2f0553"},950:{value:"#1a032e"}},pink:{50:{value:"#fdf2f8"},100:{value:"#fce7f3"},200:{value:"#fbcfe8"},300:{value:"#f9a8d4"},400:{value:"#f472b6"},500:{value:"#ec4899"},600:{value:"#db2777"},700:{value:"#a41752"},800:{value:"#6d0e34"},900:{value:"#45061f"},950:{value:"#2c0514"}}}),o6=o.MO.cursor({button:{value:"pointer"},checkbox:{value:"default"},disabled:{value:"not-allowed"},menuitem:{value:"default"},option:{value:"default"},radio:{value:"default"},slider:{value:"default"},switch:{value:"pointer"}}),o8=o.MO.durations({fastest:{value:"50ms"},faster:{value:"100ms"},fast:{value:"150ms"},moderate:{value:"200ms"},slow:{value:"300ms"},slower:{value:"400ms"},slowest:{value:"500ms"}}),o7=o.MO.easings({"ease-in":{value:"cubic-bezier(0.42, 0, 1, 1)"},"ease-out":{value:"cubic-bezier(0, 0, 0.58, 1)"},"ease-in-out":{value:"cubic-bezier(0.42, 0, 0.58, 1)"},"ease-in-smooth":{value:"cubic-bezier(0.32, 0.72, 0, 1)"}}),o9=o.MO.fontSizes({"2xs":{value:"0.625rem"},xs:{value:"0.75rem"},sm:{value:"0.875rem"},md:{value:"1rem"},lg:{value:"1.125rem"},xl:{value:"1.25rem"},"2xl":{value:"1.5rem"},"3xl":{value:"1.875rem"},"4xl":{value:"2.25rem"},"5xl":{value:"3rem"},"6xl":{value:"3.75rem"},"7xl":{value:"4.5rem"},"8xl":{value:"6rem"},"9xl":{value:"8rem"}}),ae=o.MO.fontWeights({thin:{value:"100"},extralight:{value:"200"},light:{value:"300"},normal:{value:"400"},medium:{value:"500"},semibold:{value:"600"},bold:{value:"700"},extrabold:{value:"800"},black:{value:"900"}}),at='-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',an=o.MO.fonts({heading:{value:`Inter, ${at}`},body:{value:`Inter, ${at}`},mono:{value:'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'}}),ar=(0,o._o)({spin:{"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}},pulse:{"50%":{opacity:"0.5"}},ping:{"75%, 100%":{transform:"scale(2)",opacity:"0"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}},"bg-position":{from:{backgroundPosition:"var(--animate-from, 1rem) 0"},to:{backgroundPosition:"var(--animate-to, 0) 0"}},position:{from:{insetInlineStart:"var(--animate-from-x)",insetBlockStart:"var(--animate-from-y)"},to:{insetInlineStart:"var(--animate-to-x)",insetBlockStart:"var(--animate-to-y)"}},"circular-progress":{"0%":{strokeDasharray:"1, 400",strokeDashoffset:"0"},"50%":{strokeDasharray:"400, 400",strokeDashoffset:"-100%"},"100%":{strokeDasharray:"400, 400",strokeDashoffset:"-260%"}},"expand-height":{from:{height:"0"},to:{height:"var(--height)"}},"collapse-height":{from:{height:"var(--height)"},to:{height:"0"}},"expand-width":{from:{width:"0"},to:{width:"var(--width)"}},"collapse-width":{from:{height:"var(--width)"},to:{height:"0"}},"fade-in":{from:{opacity:0},to:{opacity:1}},"fade-out":{from:{opacity:1},to:{opacity:0}},"slide-from-left-full":{from:{translate:"-100% 0"},to:{translate:"0 0"}},"slide-from-right-full":{from:{translate:"100% 0"},to:{translate:"0 0"}},"slide-from-top-full":{from:{translate:"0 -100%"},to:{translate:"0 0"}},"slide-from-bottom-full":{from:{translate:"0 100%"},to:{translate:"0 0"}},"slide-to-left-full":{from:{translate:"0 0"},to:{translate:"-100% 0"}},"slide-to-right-full":{from:{translate:"0 0"},to:{translate:"100% 0"}},"slide-to-top-full":{from:{translate:"0 0"},to:{translate:"0 -100%"}},"slide-to-bottom-full":{from:{translate:"0 0"},to:{translate:"0 100%"}},"slide-from-top":{"0%":{translate:"0 -0.5rem"},to:{translate:"0"}},"slide-from-bottom":{"0%":{translate:"0 0.5rem"},to:{translate:"0"}},"slide-from-left":{"0%":{translate:"-0.5rem 0"},to:{translate:"0"}},"slide-from-right":{"0%":{translate:"0.5rem 0"},to:{translate:"0"}},"slide-to-top":{"0%":{translate:"0"},to:{translate:"0 -0.5rem"}},"slide-to-bottom":{"0%":{translate:"0"},to:{translate:"0 0.5rem"}},"slide-to-left":{"0%":{translate:"0"},to:{translate:"-0.5rem 0"}},"slide-to-right":{"0%":{translate:"0"},to:{translate:"0.5rem 0"}},"scale-in":{from:{scale:"0.95"},to:{scale:"1"}},"scale-out":{from:{scale:"1"},to:{scale:"0.95"}}}),ai=o.MO.letterSpacings({tighter:{value:"-0.05em"},tight:{value:"-0.025em"},wide:{value:"0.025em"},wider:{value:"0.05em"},widest:{value:"0.1em"}}),ao=o.MO.lineHeights({shorter:{value:1.25},short:{value:1.375},moderate:{value:1.5},tall:{value:1.625},taller:{value:2}}),aa=o.MO.radii({none:{value:"0"},"2xs":{value:"0.0625rem"},xs:{value:"0.125rem"},sm:{value:"0.25rem"},md:{value:"0.375rem"},lg:{value:"0.5rem"},xl:{value:"0.75rem"},"2xl":{value:"1rem"},"3xl":{value:"1.5rem"},"4xl":{value:"2rem"},full:{value:"9999px"}}),as=o.MO.spacing({.5:{value:"0.125rem"},1:{value:"0.25rem"},1.5:{value:"0.375rem"},2:{value:"0.5rem"},2.5:{value:"0.625rem"},3:{value:"0.75rem"},3.5:{value:"0.875rem"},4:{value:"1rem"},4.5:{value:"1.125rem"},5:{value:"1.25rem"},6:{value:"1.5rem"},7:{value:"1.75rem"},8:{value:"2rem"},9:{value:"2.25rem"},10:{value:"2.5rem"},11:{value:"2.75rem"},12:{value:"3rem"},14:{value:"3.5rem"},16:{value:"4rem"},20:{value:"5rem"},24:{value:"6rem"},28:{value:"7rem"},32:{value:"8rem"},36:{value:"9rem"},40:{value:"10rem"},44:{value:"11rem"},48:{value:"12rem"},52:{value:"13rem"},56:{value:"14rem"},60:{value:"15rem"},64:{value:"16rem"},72:{value:"18rem"},80:{value:"20rem"},96:{value:"24rem"}}),al=o.MO.sizes({"3xs":{value:"14rem"},"2xs":{value:"16rem"},xs:{value:"20rem"},sm:{value:"24rem"},md:{value:"28rem"},lg:{value:"32rem"},xl:{value:"36rem"},"2xl":{value:"42rem"},"3xl":{value:"48rem"},"4xl":{value:"56rem"},"5xl":{value:"64rem"},"6xl":{value:"72rem"},"7xl":{value:"80rem"},"8xl":{value:"90rem"}}),au=o.MO.sizes({max:{value:"max-content"},min:{value:"min-content"},fit:{value:"fit-content"},prose:{value:"60ch"},full:{value:"100%"},dvh:{value:"100dvh"},svh:{value:"100svh"},lvh:{value:"100lvh"},dvw:{value:"100dvw"},svw:{value:"100svw"},lvw:{value:"100lvw"},vw:{value:"100vw"},vh:{value:"100vh"}}),ac=o.MO.sizes({"1/2":{value:"50%"},"1/3":{value:"33.333333%"},"2/3":{value:"66.666667%"},"1/4":{value:"25%"},"3/4":{value:"75%"},"1/5":{value:"20%"},"2/5":{value:"40%"},"3/5":{value:"60%"},"4/5":{value:"80%"},"1/6":{value:"16.666667%"},"2/6":{value:"33.333333%"},"3/6":{value:"50%"},"4/6":{value:"66.666667%"},"5/6":{value:"83.333333%"},"1/12":{value:"8.333333%"},"2/12":{value:"16.666667%"},"3/12":{value:"25%"},"4/12":{value:"33.333333%"},"5/12":{value:"41.666667%"},"6/12":{value:"50%"},"7/12":{value:"58.333333%"},"8/12":{value:"66.666667%"},"9/12":{value:"75%"},"10/12":{value:"83.333333%"},"11/12":{value:"91.666667%"}}),ad=o.MO.sizes({...al,...as,...ac,...au}),af=o.MO.zIndex({hide:{value:-1},base:{value:0},docked:{value:10},dropdown:{value:1e3},sticky:{value:1100},banner:{value:1200},overlay:{value:1300},modal:{value:1400},popover:{value:1500},skipNav:{value:1600},toast:{value:1700},tooltip:{value:1800},max:{value:2147483647}}),ah=(0,o.ZD)({preflight:!0,cssVarsPrefix:"chakra",cssVarsRoot:":where(html, .chakra-theme)",globalCss:w,theme:{breakpoints:{sm:"480px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},keyframes:ar,tokens:{aspectRatios:o2,animations:o1,blurs:o5,borders:o4,colors:o3,durations:o8,easings:o7,fonts:an,fontSizes:o9,fontWeights:ae,letterSpacings:ai,lineHeights:ao,radii:aa,spacing:as,sizes:ad,zIndex:af,cursor:o6},semanticTokens:{colors:$,shadows:G,radii:q},recipes:{badge:k,button:O,code:T,container:R,heading:A,input:M,inputAddon:L,kbd:D,link:F,mark:V,separator:z,skeleton:U,skipNavLink:B,spinner:W,textarea:H,icon:N,checkmark:C,radiomark:j,colorSwatch:P},slotRecipes:{accordion:rw,actionBar:rE,alert:rS,avatar:rP,blockquote:rR,breadcrumb:rA,card:rN,checkbox:rL,checkboxCard:rD,collapsible:rU,dataList:rH,dialog:r$,drawer:rq,editable:rK,emptyState:rZ,field:rY,fieldset:rX,fileUpload:rQ,hoverCard:r9,list:ie,menu:it,nativeSelect:ii,numberInput:iZ,pinInput:ot,popover:on,progress:oi,progressCircle:oo,radioCard:oD,radioGroup:oF,ratingGroup:oV,segmentGroup:oz,select:ir,combobox:rW,slider:oU,stat:oB,steps:oH,switch:o$,table:oq,tabs:oG,tag:oZ,toast:oX,tooltip:oJ,status:oW,timeline:oY,colorPicker:rB,qrCode:oL},textStyles:o0,layerStyles:E,animationStyles:S}}),ap=(0,o.t8)(m,ah);(0,y.F)(ap)},13447:function(e,t,n){"use strict";n.d(t,{R:function(){return i},o:function(){return r}});let r=(e,t)=>{if(!e||"string"!=typeof e)return{invalid:!0,value:e};let[n,r]=e.split("/");if(!n||!r||"currentBg"===n)return{invalid:!0,value:n};let i=t(`colors.${n}`),o=t.raw(`opacity.${r}`)?.value;if(!o&&isNaN(Number(r)))return{invalid:!0,value:n};let a=o?100*Number(o)+"%":`${r}%`,s=i??n;return{invalid:!1,color:s,value:`color-mix(in srgb, ${s} ${a}, transparent)`}},i=e=>(t,n)=>{let r=n.utils.colorMix(t);if(r.invalid)return{[e]:t};let i="--mix-"+e;return{[i]:r.value,[e]:`var(${i}, ${r.color})`}}},97013:function(e,t,n){"use strict";n.d(t,{Dt:function(){return d},Je:function(){return i},ZD:function(){return v},NY:function(){return l},_o:function(){return s},K3:function(){return f},a5:function(){return o},tQ:function(){return g},O3:function(){return a},k0:function(){return u},uD:function(){return c},MO:function(){return p},t8:function(){return m}});var r=n(22025);let i=e=>e,o=e=>e,a=e=>e,s=e=>e,l=e=>e,u=e=>e,c=e=>e,d=e=>e,f=e=>e;function h(){let e=e=>e;return new Proxy(e,{get:()=>e})}let p=h(),g=h(),v=e=>e,m=(...e)=>(0,r.b)({},...e.map(function e(t){if(null===t||"object"!=typeof t)return t;if(Array.isArray(t))return t.map(t=>e(t));let n=Object.create(Object.getPrototypeOf(t));for(let r of Object.keys(t))n[r]=e(t[r]);return n}))},24410:function(e,t,n){"use strict";n.d(t,{d:function(){return f}});var r=n(26415),i=n(97129),o=n(62594),a=n(55547),s=n(71891),l=n(95261),u=n(93064),c=n(90072);let d=e=>e.charAt(0).toUpperCase()+e.slice(1);function f(e){let{key:t,recipe:n}=e,f=d(t||n.className||"Component"),[h,p]=(0,o.k)({strict:!1,name:"".concat(f,"PropsContext"),providerName:"".concat(f,"PropsContext")});function g(e){let{unstyled:r,...o}=e,a=(0,c.r)({key:t,recipe:o.recipe||n}),[s,u]=(0,i.useMemo)(()=>a.splitVariantProps(o),[a,o]);return{styles:r?l.o:a(s),className:a.className,props:u}}return{withContext:(e,t)=>{let n=(0,u.m)(e,{},t),o=(0,i.forwardRef)((e,t)=>{let o=p(),l=(0,i.useMemo)(()=>(0,a.d)(o,e),[e,o]),{styles:u,className:c,props:d}=g(l);return(0,r.jsx)(n,{...d,ref:t,css:[u,l.css],className:(0,s.cx)(c,l.className)})});return o.displayName=e.displayName||e.name,o},PropsProvider:h,withPropsProvider:function(){return h},usePropsContext:p,useRecipeResult:g}}},7885:function(e,t,n){"use strict";n.d(t,{s:function(){return f}});var r=n(26415),i=n(97129),o=n(62594),a=n(55547),s=n(71891),l=n(95261),u=n(93064),c=n(69463);let d=e=>e.charAt(0).toUpperCase()+e.slice(1),f=e=>{let{key:t,recipe:n}=e,f=d(t||n.className||"Component"),[h,p]=(0,o.k)({name:"".concat(f,"StylesContext"),errorMessage:"use".concat(f,"Styles returned is 'undefined'. Seems you forgot to wrap the components in \"<").concat(f,'.Root />" ')}),[g,v]=(0,o.k)({name:"".concat(f,"ClassNameContext"),errorMessage:"use".concat(f,"ClassNames returned is 'undefined'. Seems you forgot to wrap the components in \"<").concat(f,'.Root />" '),strict:!1}),[m,b]=(0,o.k)({strict:!1,name:"".concat(f,"PropsContext"),providerName:"".concat(f,"PropsContext"),defaultValue:{}});function y(e){let{unstyled:r,...o}=e,a=(0,c.j)({key:t,recipe:o.recipe||n}),[s,u]=(0,i.useMemo)(()=>a.splitVariantProps(o),[o,a]);return{styles:(0,i.useMemo)(()=>r?l.I:a(s),[r,s,a]),classNames:a.classNameMap,props:u}}return{StylesProvider:h,ClassNamesProvider:g,PropsProvider:m,usePropsContext:b,useRecipeResult:y,withProvider:(e,t,n)=>{let{defaultProps:o,...l}=null!=n?n:{},c=(0,u.m)(e,{},l),d=(0,i.forwardRef)((e,l)=>{var u,d;let f=b(),p=(0,i.useMemo)(()=>(0,a.d)(null!=o?o:{},f,e),[f,e]),{styles:v,props:m,classNames:x}=y(p),w=x[t],E=(0,r.jsx)(h,{value:v,children:(0,r.jsx)(g,{value:x,children:(0,r.jsx)(c,{ref:l,...m,css:[v[t],p.css],className:(0,s.cx)(p.className,w)})})});return null!==(d=null==n?void 0:null===(u=n.wrapElement)||void 0===u?void 0:u.call(n,E,p))&&void 0!==d?d:E});return d.displayName=e.displayName||e.name,d},withContext:(e,t,n)=>{let o=(0,u.m)(e,{},n),a=(0,i.forwardRef)((e,n)=>{let i=p(),a=v(),l=null==a?void 0:a[t];return(0,r.jsx)(o,{...e,css:[t?i[t]:void 0,e.css],ref:n,className:(0,s.cx)(e.className,l)})});return a.displayName=e.displayName||e.name,a},withRootProvider:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{defaultProps:n}=t,o=t=>{let o=b(),{styles:s,classNames:l,props:u}=y((0,i.useMemo)(()=>(0,a.d)(n,o,t),[o,t]));return(0,r.jsx)(h,{value:s,children:(0,r.jsx)(g,{value:l,children:(0,r.jsx)(e,{...u})})})};return o.displayName=e.displayName||e.name,o},useStyles:p,useClassNames:v}}},53618:function(e,t,n){"use strict";n.d(t,{g:function(){return o}});let r=/[^a-zA-Z0-9_\u0081-\uffff-]/g,i=/[A-Z]/g;function o(e,t={}){let{fallback:n="",prefix:o=""}=t,a=["-",o,`${e}`.replace(r,e=>`\\${e}`)].filter(Boolean).join("-").replace(i,e=>`-${e.toLowerCase()}`);return{var:a,ref:`var(${a}${n?`, ${n}`:""})`}}},95261:function(e,t,n){"use strict";n.d(t,{I:function(){return i},o:function(){return r}});let r=Object.freeze({}),i=Object.freeze({})},93064:function(e,t,n){"use strict";n.d(t,{m:function(){return P}});var r=n(26415),i=n(93522),o=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,a=(0,i.Z)(function(e){return o.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&91>e.charCodeAt(2)}),s=n(24642),l=n(57083),u=n(60279),c=n(54162),d=n(97129),f=n(55547),h=n(63721),p=n(71891),g=n(27906),v=n(22777),m=n(71433),b=n(49119);let y=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]),x=e=>(Array.isArray(e)?e:[e]).filter(Boolean).flat(),w=a.default||a,E=e=>"theme"!==e,S=(e,t,n)=>{let r;if(t){let n=t.shouldForwardProp;r=e.__emotion_forwardProp&&n?t=>e.__emotion_forwardProp(t)&&n(t):n}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},k="undefined"!=typeof document,O=e=>{let{cache:t,serialized:n,isStringTag:i}=e;(0,c.hC)(t,n,i);let o=(0,u.L)(()=>(0,c.My)(t,n,i));if(!k&&void 0!==o){let e=n.name,i=n.next;for(;void 0!==i;)e=(0,p.cx)(e,i.name),i=i.next;return(0,r.jsx)("style",{"data-emotion":(0,p.cx)(t.key,e),dangerouslySetInnerHTML:{__html:o},nonce:t.sheet.nonce})}return null},C={path:["d"],text:["x","y"],circle:["cx","cy","r"],rect:["width","height","x","y","rx","ry"],ellipse:["cx","cy","rx","ry"],g:["transform"],stop:["offset","stopOpacity"]},I=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),_=(function(e){let t,n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(I(C,e)){o.forwardProps||(o.forwardProps=[]);let t=C[e];o.forwardProps=(0,v.j)([...o.forwardProps,...t])}let a=e.__emotion_real===e,u=a&&e.__emotion_base||e;void 0!==o&&(t=o.label,n=o.target);let k=[],_=(0,s.w)((t,v,C)=>{var I;let{cva:_,isValidProperty:T}=(0,m.V)(),P=i.__cva__?i:_(i),A=R(e.__emotion_cva,P);if(!o.shouldForwardProp&&o.forwardProps){let e;o.shouldForwardProp=(e=o.forwardProps,(t,n)=>!!e.includes(t)||!(null==n?void 0:n.includes(t))&&!T(t))}let N=S(e,o,a)||((t,n)=>{let r="string"==typeof e&&e.charCodeAt(0)>96?w:E,i=!(null==n?void 0:n.includes(t))&&!T(t);return r(t)&&i}),{props:M,styles:L}=function(e,t,n){let{css:r,isValidProperty:i}=(0,m.V)(),{children:o,...a}=e,s=(0,d.useMemo)(()=>{let[e,r]=(0,b.e)(a,e=>n(e,t.variantKeys)),[o,s]=(0,b.e)(r,t.variantKeys),[l,u]=(0,b.e)(s,i);return{forwardedProps:e,variantProps:o,styleProps:l,elementProps:u}},[t.variantKeys,n,a,i]),{css:l,...u}=s.styleProps,c=(0,d.useMemo)(()=>{let e={...s.variantProps};return t.variantKeys.includes("colorPalette")||(e.colorPalette=a.colorPalette),t.variantKeys.includes("orientation")||(e.orientation=a.orientation),t(e)},[t,s.variantProps,a.colorPalette,a.orientation]);return{styles:(0,d.useMemo)(()=>r(c,...x(l),u),[r,c,l,u]),props:{...s.forwardedProps,...s.elementProps,children:o}}}(d.useMemo(()=>Object.assign({},o.defaultProps,(0,h.o)(t)),[t]),A,N),D="",F=[L],V=M;if(null==M.theme){for(let e in V={},M)V[e]=M[e];V.theme=d.useContext(s.T)}"string"==typeof M.className?D=(0,c.fp)(v.registered,F,M.className):null!=M.className&&(D=(0,p.cx)(D,M.className));let j=(0,l.O)(k.concat(F),v.registered,V);D=(0,p.cx)(D,"".concat(v.key,"-").concat(j.name)),void 0!==n&&(D=(0,p.cx)(D,n));let z=!N("as"),U=z&&M.as||u,B={};for(let e in M)if(!z||"as"!==e){if("string"==typeof e&&y.has(e)){B[e.replace("html","").toLowerCase()]=M[e];continue}N(e)&&(B[e]=M[e])}B.className=D.trim(),B.ref=C;let W=o.forwardAsChild||(null===(I=o.forwardProps)||void 0===I?void 0:I.includes("asChild"));if(M.asChild&&!W){let e=d.Children.only(M.children);U=e.type,B.children=null,Reflect.deleteProperty(B,"asChild"),(B=(0,f.d)(B,e.props)).ref=function(...e){return t=>{e.forEach(e=>{!function(e,t){if(null!=e){if("function"==typeof e){e(t);return}try{e.current=t}catch(n){throw Error(`Cannot assign value '${t}' to ref '${e}'`)}}}(e,t)})}}(C,function(e){let t=d.version;return!(0,g.HD)(t)||t.startsWith("18.")?e?.ref:e?.props?.ref}(e))}return B.as&&W?(B.as=void 0,(0,r.jsxs)(d.Fragment,{children:[(0,r.jsx)(O,{cache:v,serialized:j,isStringTag:"string"==typeof U}),(0,r.jsx)(U,{asChild:!0,...B,children:(0,r.jsx)(M.as,{children:B.children})})]})):(0,r.jsxs)(d.Fragment,{children:[(0,r.jsx)(O,{cache:v,serialized:j,isStringTag:"string"==typeof U}),(0,r.jsx)(U,{...B})]})});return _.displayName=void 0!==t?t:"chakra(".concat("string"==typeof u?u:u.displayName||u.name||"Component",")"),_.__emotion_real=_,_.__emotion_base=u,_.__emotion_forwardProp=o.shouldForwardProp,_.__emotion_cva=i,Object.defineProperty(_,"toString",{value:()=>".".concat(n)}),_}).bind(),T=new Map,P=new Proxy(_,{apply:(e,t,n)=>_(...n),get:(e,t)=>(T.has(t)||T.set(t,_(t)),T.get(t))}),R=(e,t)=>e&&!t?e:!e&&t?t:e.merge(t)},71433:function(e,t,n){"use strict";n.d(t,{V:function(){return a},x:function(){return s}});var r=n(26415),i=n(86501);let[o,a]=(0,n(62594).k)({name:"ChakraContext",strict:!0,providerName:"<ChakraProvider />"});function s(e){let{value:t,children:n}=e;return(0,r.jsxs)(o,{value:t,children:[!t._config.disableLayers&&(0,r.jsx)(i.xB,{styles:t.layers.atRule}),(0,r.jsx)(i.xB,{styles:t._global}),n]})}},28208:function(e,t,n){"use strict";n.d(t,{F:function(){return eO}});var r=new Map("WebkitAppearance,WebkitBorderBefore,WebkitBorderBeforeColor,WebkitBorderBeforeStyle,WebkitBorderBeforeWidth,WebkitBoxReflect,WebkitLineClamp,WebkitMask,WebkitMaskAttachment,WebkitMaskClip,WebkitMaskComposite,WebkitMaskImage,WebkitMaskOrigin,WebkitMaskPosition,WebkitMaskPositionX,WebkitMaskPositionY,WebkitMaskRepeat,WebkitMaskRepeatX,WebkitMaskRepeatY,WebkitMaskSize,WebkitOverflowScrolling,WebkitTapHighlightColor,WebkitTextFillColor,WebkitTextStroke,WebkitTextStrokeColor,WebkitTextStrokeWidth,WebkitTouchCallout,WebkitUserModify,WebkitUserSelect,accentColor,alignContent,alignItems,alignSelf,alignTracks,all,anchorName,anchorScope,animation,animationComposition,animationDelay,animationDirection,animationDuration,animationFillMode,animationIterationCount,animationName,animationPlayState,animationRange,animationRangeEnd,animationRangeStart,animationTimeline,animationTimingFunction,appearance,aspectRatio,backdropFilter,backfaceVisibility,background,backgroundAttachment,backgroundBlendMode,backgroundClip,backgroundColor,backgroundImage,backgroundOrigin,backgroundPosition,backgroundPositionX,backgroundPositionY,backgroundRepeat,backgroundSize,blockSize,border,borderBlock,borderBlockColor,borderBlockEnd,borderBlockEndColor,borderBlockEndStyle,borderBlockEndWidth,borderBlockStart,borderBlockStartColor,borderBlockStartStyle,borderBlockStartWidth,borderBlockStyle,borderBlockWidth,borderBottom,borderBottomColor,borderBottomLeftRadius,borderBottomRightRadius,borderBottomStyle,borderBottomWidth,borderCollapse,borderColor,borderEndEndRadius,borderEndStartRadius,borderImage,borderImageOutset,borderImageRepeat,borderImageSlice,borderImageSource,borderImageWidth,borderInline,borderInlineColor,borderInlineEnd,borderInlineEndColor,borderInlineEndStyle,borderInlineEndWidth,borderInlineStart,borderInlineStartColor,borderInlineStartStyle,borderInlineStartWidth,borderInlineStyle,borderInlineWidth,borderLeft,borderLeftColor,borderLeftStyle,borderLeftWidth,borderRadius,borderRight,borderRightColor,borderRightStyle,borderRightWidth,borderSpacing,borderStartEndRadius,borderStartStartRadius,borderStyle,borderTop,borderTopColor,borderTopLeftRadius,borderTopRightRadius,borderTopStyle,borderTopWidth,borderWidth,bottom,boxAlign,boxDecorationBreak,boxDirection,boxFlex,boxFlexGroup,boxLines,boxOrdinalGroup,boxOrient,boxPack,boxShadow,boxSizing,breakAfter,breakBefore,breakInside,captionSide,caret,caretColor,caretShape,clear,clip,clipPath,clipRule,color,colorInterpolationFilters,colorScheme,columnCount,columnFill,columnGap,columnRule,columnRuleColor,columnRuleStyle,columnRuleWidth,columnSpan,columnWidth,columns,contain,containIntrinsicBlockSize,containIntrinsicHeight,containIntrinsicInlineSize,containIntrinsicSize,containIntrinsicWidth,container,containerName,containerType,content,contentVisibility,counterIncrement,counterReset,counterSet,cursor,cx,cy,d,direction,display,dominantBaseline,emptyCells,fieldSizing,fill,fillOpacity,fillRule,filter,flex,flexBasis,flexDirection,flexFlow,flexGrow,flexShrink,flexWrap,float,floodColor,floodOpacity,font,fontFamily,fontFeatureSettings,fontKerning,fontLanguageOverride,fontOpticalSizing,fontPalette,fontSize,fontSizeAdjust,fontSmooth,fontStretch,fontStyle,fontSynthesis,fontSynthesisPosition,fontSynthesisSmallCaps,fontSynthesisStyle,fontSynthesisWeight,fontVariant,fontVariantAlternates,fontVariantCaps,fontVariantEastAsian,fontVariantEmoji,fontVariantLigatures,fontVariantNumeric,fontVariantPosition,fontVariationSettings,fontWeight,forcedColorAdjust,gap,grid,gridArea,gridAutoColumns,gridAutoFlow,gridAutoRows,gridColumn,gridColumnEnd,gridColumnGap,gridColumnStart,gridGap,gridRow,gridRowEnd,gridRowGap,gridRowStart,gridTemplate,gridTemplateAreas,gridTemplateColumns,gridTemplateRows,hangingPunctuation,height,hyphenateCharacter,hyphenateLimitChars,hyphens,imageOrientation,imageRendering,imageResolution,imeMode,initialLetter,initialLetterAlign,inlineSize,inset,insetBlock,insetBlockEnd,insetBlockStart,insetInline,insetInlineEnd,insetInlineStart,interpolateSize,isolation,justifyContent,justifyItems,justifySelf,justifyTracks,left,letterSpacing,lightingColor,lineBreak,lineClamp,lineHeight,lineHeightStep,listStyle,listStyleImage,listStylePosition,listStyleType,margin,marginBlock,marginBlockEnd,marginBlockStart,marginBottom,marginInline,marginInlineEnd,marginInlineStart,marginLeft,marginRight,marginTop,marginTrim,marker,markerEnd,markerMid,markerStart,mask,maskBorder,maskBorderMode,maskBorderOutset,maskBorderRepeat,maskBorderSlice,maskBorderSource,maskBorderWidth,maskClip,maskComposite,maskImage,maskMode,maskOrigin,maskPosition,maskRepeat,maskSize,maskType,masonryAutoFlow,mathDepth,mathShift,mathStyle,maxBlockSize,maxHeight,maxInlineSize,maxLines,maxWidth,minBlockSize,minHeight,minInlineSize,minWidth,mixBlendMode,objectFit,objectPosition,offset,offsetAnchor,offsetDistance,offsetPath,offsetPosition,offsetRotate,opacity,order,orphans,outline,outlineColor,outlineOffset,outlineStyle,outlineWidth,overflow,overflowAnchor,overflowBlock,overflowClipBox,overflowClipMargin,overflowInline,overflowWrap,overflowX,overflowY,overlay,overscrollBehavior,overscrollBehaviorBlock,overscrollBehaviorInline,overscrollBehaviorX,overscrollBehaviorY,padding,paddingBlock,paddingBlockEnd,paddingBlockStart,paddingBottom,paddingInline,paddingInlineEnd,paddingInlineStart,paddingLeft,paddingRight,paddingTop,page,pageBreakAfter,pageBreakBefore,pageBreakInside,paintOrder,perspective,perspectiveOrigin,placeContent,placeItems,placeSelf,pointerEvents,position,positionAnchor,positionArea,positionTry,positionTryFallbacks,positionTryOrder,positionVisibility,printColorAdjust,quotes,r,resize,right,rotate,rowGap,rubyAlign,rubyMerge,rubyPosition,rx,ry,scale,scrollBehavior,scrollMargin,scrollMarginBlock,scrollMarginBlockEnd,scrollMarginBlockStart,scrollMarginBottom,scrollMarginInline,scrollMarginInlineEnd,scrollMarginInlineStart,scrollMarginLeft,scrollMarginRight,scrollMarginTop,scrollPadding,scrollPaddingBlock,scrollPaddingBlockEnd,scrollPaddingBlockStart,scrollPaddingBottom,scrollPaddingInline,scrollPaddingInlineEnd,scrollPaddingInlineStart,scrollPaddingLeft,scrollPaddingRight,scrollPaddingTop,scrollSnapAlign,scrollSnapCoordinate,scrollSnapDestination,scrollSnapPointsX,scrollSnapPointsY,scrollSnapStop,scrollSnapType,scrollSnapTypeX,scrollSnapTypeY,scrollTimeline,scrollTimelineAxis,scrollTimelineName,scrollbarColor,scrollbarGutter,scrollbarWidth,shapeImageThreshold,shapeMargin,shapeOutside,shapeRendering,stopColor,stopOpacity,stroke,strokeDasharray,strokeDashoffset,strokeLinecap,strokeLinejoin,strokeMiterlimit,strokeOpacity,strokeWidth,tabSize,tableLayout,textAlign,textAlignLast,textAnchor,textBox,textBoxEdge,textBoxTrim,textCombineUpright,textDecoration,textDecorationColor,textDecorationLine,textDecorationSkip,textDecorationSkipInk,textDecorationStyle,textDecorationThickness,textEmphasis,textEmphasisColor,textEmphasisPosition,textEmphasisStyle,textIndent,textJustify,textOrientation,textOverflow,textRendering,textShadow,textSizeAdjust,textSpacingTrim,textTransform,textUnderlineOffset,textUnderlinePosition,textWrap,textWrapMode,textWrapStyle,timelineScope,top,touchAction,transform,transformBox,transformOrigin,transformStyle,transition,transitionBehavior,transitionDelay,transitionDuration,transitionProperty,transitionTimingFunction,translate,unicodeBidi,userSelect,vectorEffect,verticalAlign,viewTimeline,viewTimelineAxis,viewTimelineInset,viewTimelineName,viewTransitionName,visibility,whiteSpace,whiteSpaceCollapse,widows,width,willChange,wordBreak,wordSpacing,wordWrap,writingMode,x,y,zIndex,zoom,alignmentBaseline,baselineShift,colorInterpolation,colorRendering,glyphOrientationVertical".split(",").concat("".split(",")).map(e=>[e,!0])),i=/&|@/,o=function(e){let t=Object.create(null);return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}(e=>r.has(e)||e.startsWith("--")||i.test(e)),a=n(63721),s=n(17875),l=n(27906),u=n(20909);let c=e=>{let t=Object.create(null);return function(...n){let r=n.map(e=>u(e)).join("|");return void 0===t[r]&&(t[r]=e(...n)),t[r]}};var d=n(22025),f=n(49119);function h(e=""){let t=new RegExp(String.raw`-?\d+(?:\.\d+|\d*)`),n=RegExp("px|em|rem"),r=e.match(RegExp(`${t.source}(${n.source})`));return r?.[1]}function p(e=""){if("number"==typeof e)return`${e}px`;let t=h(e);return t&&"px"!==t?"em"===t||"rem"===t?`${16*parseFloat(e)}px`:void 0:e}function g(e=""){let t=h(e);return t&&"rem"!==t?"em"===t?`${parseFloat(e)}rem`:"px"===t?`${parseFloat(e)/16}rem`:void 0:e}let v=e=>e.charAt(0).toUpperCase()+e.slice(1);function m(e){let t=parseFloat(p(e)??"")-.04;return g(`${t}px`)}function b({min:e,max:t}){return null==e&&null==t?"":["@media screen",e&&`(min-width: ${e})`,t&&`(max-width: ${t})`].filter(Boolean).join(" and ")}let y=(e,t)=>Object.fromEntries(Object.entries(e).map(([e,n])=>t(e,n))),x=e=>{let{breakpoints:t,conditions:n={}}=e,r=Object.assign({},y(n,(e,t)=>[`_${e}`,t]),t.conditions);function i(){return Object.keys(r)}function o(e){return i().includes(e)||/^@|&|&$/.test(e)||e.startsWith("_")}return{keys:i,sort:function(e){return e.filter(e=>"base"!==e).sort((e,t)=>{let n=o(e),r=o(t);return n&&!r?1:!n&&r?-1:0})},has:o,resolve:function(e){return Reflect.get(r,e)||e},breakpoints:t.keys(),expandAtRule:function(e){return e.startsWith("@breakpoint")?t.getCondition(e.replace("@breakpoint ","")):e}}};var w=n(97013);let E=e=>({minMax:RegExp(`(!?\\(\\s*min(-device-)?-${e})(.|
9
- )+\\(\\s*max(-device)?-${e}`,"i"),min:RegExp(`\\(\\s*min(-device)?-${e}`,"i"),maxMin:RegExp(`(!?\\(\\s*max(-device)?-${e})(.|
10
- )+\\(\\s*min(-device)?-${e}`,"i"),max:RegExp(`\\(\\s*max(-device)?-${e}`,"i")}),S=E("width"),k=E("height"),O=e=>({isMin:F(e.minMax,e.maxMin,e.min),isMax:F(e.maxMin,e.minMax,e.max)}),{isMin:C,isMax:I}=O(S),{isMin:_,isMax:T}=O(k),P=/print/i,R=/^print$/i,A=/(-?\d*\.?\d+)(ch|em|ex|px|rem)/,N=/(\d)/,M=Number.MAX_VALUE,L={ch:8.8984375,em:16,rem:16,ex:8.296875,px:1};function D(e){let t=A.exec(e)||(C(e)||_(e)?N.exec(e):null);return t?"0"===t[0]?0:parseFloat(t[1])*(L[t[2]]||1):M}function F(e,t,n){return r=>e.test(r)||!t.test(r)&&n.test(r)}let V=c((e,t)=>{let n=function(e,t){let n=P.test(e),r=R.test(e),i=P.test(t),o=R.test(t);return n&&i?!r&&o?1:r&&!o?-1:e.localeCompare(t):n?1:i?-1:null}(e,t);if(null!==n)return n;let r=C(e)||_(e),i=I(e)||T(e),o=C(t)||_(t),a=I(t)||T(t);if(r&&a)return -1;if(i&&o)return 1;let s=D(e),l=D(t);return s===M&&l===M?e.localeCompare(t):s===M?1:l===M?-1:s!==l?s>l?i?-1:1:i?1:-1:e.localeCompare(t)});function j(e){return e.sort(([e],[t])=>V(e,t))}let z=/\s*!(important)?/i,U=e=>!!(0,l.HD)(e)&&z.test(e),B=e=>(0,l.HD)(e)?e.replace(z,"").trim():e;function W(e){let{transform:t,conditions:n,normalize:r}=e,i=c(function(...t){return(0,d.b)({},...function(t){let n=function(...e){return e.filter(e=>(0,l.Kn)(e)&&Object.keys((0,a.o)(e)).length>0)}(...t);return 1===n.length?n:n.map(t=>e.normalize(t))}(t))});return c(function(...e){let o=r(i(...e)),a=Object.create(null);return(0,s.V)(o,(e,r)=>{let i=U(e);if(null==e)return;let[o,...u]=n.sort(r).map(n.resolve);i&&(e=B(e));let c=t(o,e)??Object.create(null);c=(0,s.V)(c,e=>(0,l.HD)(e)&&i?`${e} !important`:e,{getKey:e=>n.expandAtRule(e)}),function(e,t,n){let r=e;for(let e of t)e&&(r[e]||(r[e]=Object.create(null)),r=r[e]);(0,d.b)(r,n)}(a,u.flat(),c)}),function e(t){let n=[],r=[],i={};for(let[o,a]of Object.entries(t))o.startsWith("@media")?n.push([o,a]):o.startsWith("@container")?r.push([o,a]):(0,l.Kn)(a)?i[o]=e(a):i[o]=a;let o=j(n),a=j(r);return{...i,...Object.fromEntries(o),...Object.fromEntries(a)}}(a)})}var H=n(71891),$=n(8593),q=n(22777);let G=e=>({base:{},variants:{},defaultVariants:{},compoundVariants:[],...e}),K={reset:"reset",base:"base",tokens:"tokens",recipes:"recipes"},Z={reset:0,base:1,tokens:2,recipes:3},Y=(e={})=>{let t=t=>({base:e.base?.[t]??{},variants:{},defaultVariants:e.defaultVariants??{},compoundVariants:e.compoundVariants?X(e.compoundVariants,t):[]}),n=(e.slots??[]).map(e=>[e,t(e)]);for(let[t,r]of Object.entries(e.variants??{}))for(let[e,i]of Object.entries(r))n.forEach(([n,r])=>{var o;(o=r.variants)[t]??(o[t]={}),r.variants[t][e]=i[n]??{}});return Object.fromEntries(n)},X=(e,t)=>e.filter(e=>e.css[t]).map(e=>({...e,css:e.css[t]}));var Q=n(53618);let J=/([\0-\x1f\x7f]|^-?\d)|^-$|^-|[^\x80-\uFFFF\w-]/g,ee=function(e,t){return t?"\0"===e?"�":"-"===e&&1===e.length?"\\-":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16):"\\"+e},et=e=>(e+"").replace(J,ee),en=(e,t)=>{let n="",r=0,i="char",o="",a="",s=[];for(;r<e.length;){let l=e[r];if("{"===l){let i=e.indexOf("}",r);if(-1===i)break;let o=e.slice(r+1,i);n+=t(o)??o,r=i+1;continue}if("token"===i&&","===l){""===e[r]&&r++,i="fallback",s.push(i);let l=t(o);l?.endsWith(")")&&(n+=l.slice(0,-1)),o="",a="";continue}if("fallback"===i&&", var("===a+l){let t=er(e.slice(r+1))+r+1,o=e.slice(r+1,t);if(-1===t)break;n+=", var("+o+")",r=t+1,i=s.pop()??i,a="";continue}if("token"===i||"fallback"===i){if(r++,")"===l){i=s.pop()??i??"char",a+=l;let e=o?t(o)??et(o):o;if(a){if(!(a=a.slice(1).trim()).startsWith("token(")&&a.endsWith(")")&&(a=a.slice(0,-1)),a.includes("token(")){let e=en(a,t);e&&(a=e.slice(0,-1))}else if(a){let e=t(a);e&&(a=e)}}let r=n.at(-1);a?r?.trim()?n+=e.slice(0,-1)+", "+a+")":n+=a:n+=e||")",o="",a="",i="char";continue}"token"===i&&(o+=l),"fallback"===i&&(a+=l);continue}let u=e.indexOf("token(",r);if(-1!==u){let t=u+6;n+=e.slice(r,u),r=t,i="token",s.push(i);continue}n+=l,r++}return n},er=e=>{let t=0,n=["("];for(;t<e.length;){let r=e[t];if("("===r)n.push(r);else if(")"===r&&(n.pop(),0===n.length))break;t++}return t};function ei(e){let t={};return e.forEach((e,n)=>{e instanceof Map?t[n]=Object.fromEntries(e):t[n]=e}),t}let eo=/({([^}]*)})/g,ea=/[{}]/g,es=/\w+\.\w+/,el=e=>{if(!(0,l.HD)(e))return[];let t=e.match(eo);return t?t.map(e=>e.replace(ea,"")).map(e=>e.trim()):[]},eu=e=>eo.test(e);function ec(e){return(0,l.Kn)(e)&&e.reference?e.reference:String(e)}let ed=(e,...t)=>t.map(ec).join(` ${e} `).replace(/calc/g,""),ef=(...e)=>`calc(${ed("+",...e)})`,eh=(...e)=>`calc(${ed("-",...e)})`,ep=(...e)=>`calc(${ed("*",...e)})`,eg=(...e)=>`calc(${ed("/",...e)})`,ev=e=>{let t=ec(e);return null==t||Number.isNaN(parseFloat(t))?ep(t,-1):String(t).startsWith("-")?String(t).slice(1):`-${t}`},em=Object.assign(e=>({add:(...t)=>em(ef(e,...t)),subtract:(...t)=>em(eh(e,...t)),multiply:(...t)=>em(ep(e,...t)),divide:(...t)=>em(eg(e,...t)),negate:()=>em(ev(e)),toString:()=>e.toString()}),{add:ef,subtract:eh,multiply:ep,divide:eg,negate:ev}),eb=new Set(["spacing","sizes","borderWidths","fontSizes","radii"]),ey=[{enforce:"pre",transform(e){let{prefix:t,allTokens:n,formatCssVar:r,formatTokenName:i,registerToken:o}=e;n.filter(({extensions:e})=>"spacing"===e.category).forEach(e=>{let n=e.path.slice(),a=r(n,t);if((0,l.HD)(e.value)&&"0rem"===e.value)return;let s=structuredClone(e);Object.assign(s.extensions,{negative:!0,prop:`-${e.extensions.prop}`,originalPath:n}),s.value=em.negate(a.ref);let u=s.path[s.path.length-1];null!=u&&(s.path[s.path.length-1]=`-${u}`),s.path&&(s.name=i(s.path)),o(s)})}},{enforce:"post",transform(e){let{allTokens:t,registerToken:n,formatTokenName:r}=e,i=t.filter(({extensions:e})=>"colors"===e.category),o=new Map,a=new Map;i.forEach(e=>{let{colorPalette:t}=e.extensions;t&&(t.keys.forEach(e=>{o.set(r(e),e)}),t.roots.forEach(n=>{let i=r(n),s=a.get(i)||[];if(s.push(e),a.set(i,s),e.extensions.default&&1===n.length){let e=t.keys[0]?.filter(Boolean);if(!e.length)return;let i=n.concat(e);o.set(r(i),[])}}))}),o.forEach(e=>{let t=["colors","colorPalette",...e].filter(Boolean),i=r(t),o=r(t.slice(1));n({name:i,value:i,originalValue:i,path:t,extensions:{condition:"base",originalPath:t,category:"colors",prop:o,virtual:!0}},"pre")})}},{enforce:"post",transform(e){e.allTokens.filter(e=>eb.has(e.extensions.category)&&!e.extensions.negative).forEach(e=>{Object.assign(e.extensions,{pixelValue:p(e.value)})})}},{enforce:"post",transform(e){e.allTokens=e.allTokens.filter(e=>""!==e.value)}}],ex=[{type:"extensions",enforce:"pre",name:"tokens/css-var",transform(e,t){let{prefix:n,formatCssVar:r}=t,{negative:i,originalPath:o}=e.extensions;return{cssVar:r((i?o:e.path).filter(Boolean),n)}}},{enforce:"post",type:"value",name:"tokens/conditionals",transform(e,t){let{prefix:n,formatCssVar:r}=t,i=el(e.value);return i.length&&i.forEach(t=>{let i=r(t.split("."),n);e.value=e.value.replace(`{${i.ref}}`,i)}),e.value}},{type:"extensions",enforce:"pre",name:"tokens/colors/colorPalette",match:e=>"colors"===e.extensions.category&&!e.extensions.virtual,transform(e,t){let n=e.path.slice();if(n.pop(),n.shift(),0===n.length){let t=[...e.path];t.shift(),n=t}if(0===n.length)return{};let r=n.reduce((e,t,n,r)=>{let i=r.slice(0,n+1);return e.push(i),e},[]),i=n[0],o=t.formatTokenName(n),a=e.path.slice(e.path.indexOf(i)+1).reduce((e,t,n,r)=>(e.push(r.slice(n)),e),[]);return 0===a.length&&a.push([""]),{colorPalette:{value:o,roots:r,keys:a}}}}],ew=e=>(0,l.Kn)(e)&&Object.prototype.hasOwnProperty.call(e,"value");function eE(e){return"DEFAULT"===e[0]?e:e.filter(e=>"DEFAULT"!==e)}function eS(e){return e.filter(e=>"base"!==e)}Array.from(new Set(["aspectRatios","zIndex","opacity","colors","fonts","fontSizes","fontWeights","lineHeights","letterSpacings","sizes","shadows","spacing","radii","cursor","borders","borderWidths","borderStyles","durations","easings","animations","blurs","gradients","breakpoints","assets"]));var ek=n(13447);function eO(...e){let t=(0,w.t8)(...e),{theme:n={},utilities:r={},globalCss:i={},cssVarsRoot:u=":where(:root, :host)",cssVarsPrefix:h="chakra",preflight:p}=t,y=function(e){let t=e.layers??K,n=Object.values(t).sort((e,t)=>Z[e]-Z[t]);return{names:n,atRule:`@layer ${n.join(", ")};`,wrap(n,r){if(e.disableLayers)return r;let i=t[n];return{[`@layer ${i}`]:r}}}}(t),E=function(e){let{prefix:t="",tokens:n={},semanticTokens:r={},breakpoints:i={}}=e,o=e=>e.join("."),u=[],d=new Map,f=new Map,h=new Map,p=new Map,g=new Map,v=new Map,m=new Map,b=new Map,y=[];function x(e,t){u.push(e),d.set(e.name,e),t&&b.forEach(n=>{n.enforce===t&&P(n,e)})}let w=i?{breakpoints:(0,s.X)(i,e=>({value:e})),sizes:Object.fromEntries(Object.entries(i).map(([e,t])=>[`breakpoint-${e}`,{value:t}]))}:{breakpoints:{},sizes:{}},E=(0,a.o)({...n,breakpoints:w.breakpoints,sizes:{...n.sizes,...w.sizes}});function S(e){return d.get(e)}let k={},O=(e,t)=>{if(!e||"string"!=typeof e)return{invalid:!0,value:e};let[n,r]=e.split("/");if(!n||!r)return{invalid:!0,value:n};let i=t(n),o=S(`opacity.${r}`)?.value;if(!o&&isNaN(Number(r)))return{invalid:!0,value:n};let a=o?100*Number(o)+"%":`${r}%`,s=i??n;return{invalid:!1,color:s,value:`color-mix(in srgb, ${s} ${a}, transparent)`}},C=c((e,t)=>g.get(e)??t),I=c(e=>k[e]||null),_=c(e=>en(e,e=>{if(e){if(e.includes("/")){let t=O(e,e=>C(e));if(t.invalid)throw Error("Invalid color mix at "+e+": "+t.value);return t.value}return C(e)||(es.test(e)?et(e):e)}})),T={prefix:t,allTokens:u,tokenMap:d,registerToken:x,getByName:S,formatTokenName:o,formatCssVar:(e,t)=>(0,Q.g)(e.join("-"),{prefix:t}),flatMap:g,cssVarMap:h,categoryMap:m,colorPaletteMap:p,getVar:C,getCategoryValues:I,expandReferenceInValue:_};function P(e,t){if(t.extensions.references||(0,l.mf)(e.match)&&!e.match(t))return;let n=e.transform(t,T);switch(!0){case"extensions"===e.type:Object.assign(t.extensions,n);break;case"value"===e.type:t.value=n;break;default:t[e.type]=n}}function R(e){y.forEach(t=>{t.enforce===e&&t.transform(T)})}function A(e){b.forEach(t=>{t.enforce===e&&u.forEach(e=>{P(t,e)})})}return(0,s.V)(E,(e,t)=>{let n=t.includes("DEFAULT"),r=(t=eE(t))[0],i=o(t),a=(0,l.HD)(e)?{value:e}:e,s={value:a.value,originalValue:a.value,name:i,path:t,extensions:{condition:"base",originalPath:t,category:r,prop:o(t.slice(1))}};n&&(s.extensions.default=!0),x(s)},{stop:ew}),(0,s.V)(r,(e,t)=>{let n=t.includes("DEFAULT"),r=(t=eS(eE(t)))[0],i=o(t),a=(0,l.HD)(e.value)?{value:{base:e.value}}:e,s={value:a.value.base||"",originalValue:a.value.base||"",name:i,path:t,extensions:{originalPath:t,category:r,conditions:a.value,condition:"base",prop:o(t.slice(1))}};n&&(s.extensions.default=!0),x(s)},{stop:ew}),!function(...e){e.forEach(e=>{b.set(e.name,e)})}(...ex),!function(...e){y.push(...e)}(...ey),R("pre"),A("pre"),u.forEach(e=>{let t=function(e){if(!e.extensions.conditions)return;let{conditions:t}=e.extensions,n=[];return(0,s.V)(t,(t,r)=>{let i=eS(r);if(!i.length)return;let o=structuredClone(e);o.value=t,o.extensions.condition=i.join(":"),n.push(o)}),n}(e);t&&0!==t.length&&t.forEach(e=>{x(e)})}),u.forEach(e=>{if(!eu(e.value))return;let t=el(e.value).map(e=>S(e)).filter(Boolean);e.extensions.references=t.reduce((e,t)=>(e[t.name]=t,e),{})}),u.forEach(e=>{!function e(t){if(!t.extensions?.references)return t.extensions?.cssVar?.ref??t.value;let n=t.extensions.references??{};return t.value=Object.keys(n).reduce((t,r)=>{let i=n[r];if(i.extensions.conditions)return t;let o=e(i);return t.replace(`{${r}}`,o)},t.value),delete t.extensions.references,t.value}(e)}),R("post"),A("post"),u.forEach(e=>{(function(e){let{condition:t}=e.extensions;t&&(f.has(t)||f.set(t,new Set),f.get(t).add(e))})(e),function(e){let{category:t,prop:n}=e.extensions;t&&(m.has(t)||m.set(t,new Map),m.get(t).set(n,e))}(e),function(e){let{condition:t,negative:n,virtual:r,cssVar:i}=e.extensions;!n&&!r&&t&&i&&(h.has(t)||h.set(t,new Map),h.get(t).set(i.var,e.value))}(e),function(e){let{category:t,prop:n,cssVar:r,negative:i}=e.extensions;if(!t)return;v.has(t)||v.set(t,new Map);let o=i?e.extensions.conditions?e.originalValue:e.value:r.ref;v.get(t).set(n,o),g.set([t,n].join("."),o)}(e),function(e){let{colorPalette:t,virtual:n,default:r}=e.extensions;t&&!n&&t.roots.forEach(n=>{let i=o(n);p.has(i)||p.set(i,new Map);let a=S(o(function(e,t){let n=e.findIndex((n,r)=>t.every((t,n)=>e[r+n]===t));return -1===n||(e.splice(n,t.length),e.splice(n,0,"colorPalette")),e}([...e.path],[...n])));if(!a||!a.extensions.cssVar)return;let{var:s}=a.extensions.cssVar;if(p.get(i).set(s,e.extensions.cssVar.ref),r&&1===n.length){let r=S(o(["colors","colorPalette"]));if(!r)return;let i=S(o(e.path));if(!i)return;let a=t.keys[0]?.filter(Boolean);if(!a.length)return;let s=o(n.concat(a));p.has(s)||p.set(s,new Map),p.get(s).set(r.extensions.cssVar.var,i.extensions.cssVar.ref)}})}(e)}),k=ei(v),T}({breakpoints:n.breakpoints,tokens:n.tokens,semanticTokens:n.semanticTokens,prefix:h}),S=function(e){let t=Object.fromEntries(Object.entries(e).sort(([,e],[,t])=>parseInt(e,10)<parseInt(t,10)?-1:1).map(([e,t],n,r)=>{let i=null;return n<=r.length-1&&(i=r[n+1]?.[1]),null!=i&&(i=m(i)),[e,{name:e,min:g(t),max:i}]}));function n(e){return b(t[e])}let r=Object.fromEntries(Object.entries(function(){let e=Object.keys(t),r=function(e){let t=[];return e.forEach((n,r)=>{let i=r,o=e[++i];for(;o;)t.push([n,o]),o=e[++i]}),t}(e);return Object.fromEntries(e.flatMap(e=>{let r=t[e],i=[`${e}Down`,b({max:m(r.min)})];return[[e,b({min:r.min})],[`${e}Only`,n(e)],i]}).filter(([,e])=>""!==e).concat(r.map(([e,n])=>{let r=t[e],i=t[n];return[`${e}To${v(n)}`,b({min:r.min,max:m(i.min)})]})))}()));return{values:Object.values(t),only:n,keys:function(){return["base",...Object.keys(t)]},conditions:r,getCondition:e=>r[e],up:function(e){return b({min:t[e].min})},down:function(e){return b({max:m(t[e].min)})}}}(n.breakpoints??{}),k=x({conditions:t.conditions??{},breakpoints:S}),O=function(e){let t=Object.fromEntries(Object.entries(e.config).map(([e,t])=>[e,t])),n=e.tokens,r=new Map,i=new Map;function o(e,n){t[e]=n,a(e,n)}let a=(e,t)=>{let n=d(t);n&&(i.set(e,n),u(e,t))},s=new Map,u=(e,t)=>{if(!t)return;let n=d(t,e=>`type:Tokens["${e}"]`);if("object"==typeof n&&n.type){s.set(e,new Set([`type:${n.type}`]));return}if(n){let t=new Set(Object.keys(n));s.set(e,t)}let r=s.get(e)??new Set;t.property&&s.set(e,r.add(`CssProperties["${t.property}"]`))},d=(e,t)=>{let{values:r}=e,i=e=>{let n=t?.(e);return n?{[n]:n}:void 0};return(0,l.HD)(r)?i?.(r)??n.getCategoryValues(r)??{}:Array.isArray(r)?r.reduce((e,t)=>(e[t]=t,e),{}):(0,l.mf)(r)?r(t?i:n.getCategoryValues):r},f=c((e,t)=>({[e]:e.startsWith("--")?n.getVar(t,t):t})),h=Object.assign(n.getVar,{raw:e=>n.getByName(e)}),p=c((e,r)=>{let o=v(e);(0,l.HD)(r)&&!r.includes("_EMO_")&&(r=n.expandReferenceInValue(r));let a=t[o];if(!a)return f(o,r);let s=i.get(o)?.[r];return a.transform?a.transform(s??r,{raw:r,token:h,utils:{colorMix:e=>(0,ek.o)(e,h)}}):f(e,s??r)});(()=>{for(let[e,n]of Object.entries(t)){let{shorthand:t}=n??{};t&&(Array.isArray(t)?t:[t]).forEach(t=>r.set(t,e))}})(),(()=>{let e=ei(n.colorPaletteMap);o("colorPalette",{values:Object.keys(e),transform:c(t=>e[t])})})(),(()=>{for(let[e,n]of Object.entries(t))n&&a(e,n)})(),(()=>{for(let[e,n]of Object.entries(t))n&&u(e,n)})();let g=r.size>0,v=c(e=>r.get(e)??e);return{keys:()=>[...Array.from(r.keys()),...Object.keys(t)],hasShorthand:g,transform:p,shorthands:r,resolveShorthand:v,register:o,getTypes:()=>{let e=new Map;for(let[t,n]of s.entries()){if(0===n.size){e.set(t,["string"]);continue}let r=Array.from(n).map(e=>e.startsWith("CssProperties")?e:e.startsWith("type:")?e.replace("type:",""):JSON.stringify(e));e.set(t,r)}return e},addPropertyType:(e,t)=>{let n=s.get(e)??new Set;s.set(e,new Set([...n,...t]))}}}({config:r,tokens:E});!function(){let{textStyles:e,layerStyles:t,animationStyles:r}=n;for(let[n,i]of Object.entries((0,a.o)({textStyle:e,layerStyle:t,animationStyle:r}))){let e=function(e,t){let n={};return(0,s.V)(e,(e,t)=>{e&&(n[t.join(".")]=e.value)},{stop:t}),n}(i??{},e=>(0,l.Kn)(e)&&"value"in e);O.register(n,{values:Object.keys(e),transform:t=>R(e[t])})}}(),O.addPropertyType("animationName",Object.keys(n.keyframes??{}));let C=new Set(["css",...O.keys(),...k.keys()]),I=c(e=>C.has(e)||o(e)),_=e=>Array.isArray(e)?e.reduce((e,t,n)=>{let r=k.breakpoints[n];return null!=t&&(e[r]=t),e},{}):e,T=function(e){let{utility:t,normalize:n}=e,{hasShorthand:r,resolveShorthand:i}=t;return function(e){return(0,s.V)(e,n,{stop:e=>Array.isArray(e),getKey:r?i:void 0})}}({utility:O,normalize:_}),P=function(e){let{conditions:t,isValidProperty:n}=e;return function(e){return(0,s.V)(e,e=>e,{getKey:(e,r)=>(0,l.Kn)(r)?t.has(e)||n(e)?e:(function(e){let t=[],n=0,r="",i=!1;for(let o=0;o<e.length;o++){let a=e[o];if("\\"===a&&!i){i=!0,r+=a;continue}if(i){i=!1,r+=a;continue}"("===a?n++:")"===a&&n--,","===a&&0===n?(t.push(r.trim()),r=""):r+=a}return r&&t.push(r.trim()),t})(e).map(e=>"&"+e).join(", "):e})}}({conditions:k,isValidProperty:I}),R=W({transform:O.transform,conditions:k,normalize:T}),A=function(e){let{css:t,conditions:n,normalize:r,layers:i}=e;return function o(s={}){let{base:l,variants:u,defaultVariants:c,compoundVariants:h}=G(s),p=W({conditions:n,normalize:r,transform:(e,t)=>u[e]?.[t]}),g=(e={})=>{let n;let o=r({...c,...(0,a.o)(e)}),s={...l};(0,d.b)(s,p(o));let u=(n={},h.forEach(e=>{Object.entries(e).every(([e,t])=>"css"===e||(Array.isArray(t)?t:[t]).some(t=>o[e]===t))&&(n=t(n,e.css))}),n);return i.wrap("recipes",t(s,u))},v=Object.keys(u),m=Object.fromEntries(Object.entries(u).map(([e,t])=>[e,Object.keys(t)]));return Object.assign(e=>t(g(e)),{className:s.className,__cva__:!0,variantMap:m,variantKeys:v,raw:g,config:s,splitVariantProps:e=>{let t=(0,$.C)(e,["recipe"]),[n,r]=(0,f.e)(t,v);return v.includes("colorPalette")||(n.colorPalette=e.colorPalette||c.colorPalette),v.includes("orientation")&&(r.orientation=e.orientation),[n,r]},merge(t){return o((function(e){let{css:t}=e;return function(e,n){let r=G(n.config),i=(0,q.j)(e.variantKeys,Object.keys(n.variants)),o=t(e.base,r.base),a=Object.fromEntries(i.map(n=>[n,t(e.config.variants[n],r.variants[n])])),s=(0,d.b)(e.config.defaultVariants,r.defaultVariants),l=[...e.compoundVariants,...r.compoundVariants];return{className:(0,H.cx)(e.className,n.className),base:o,variants:a,defaultVariants:s,compoundVariants:l}}})(e)(this,t))}})}}({css:R,conditions:k,normalize:T,layers:y}),N=function(e){let{cva:t}=e;return function(e={}){let n=Object.entries(Y(e)).map(([e,n])=>[e,t(n)]),r=e.variants??{},i=Object.keys(r),o=Object.fromEntries(Object.entries(r).map(([e,t])=>[e,Object.keys(t)])),a={};return e.className&&(a=Object.fromEntries(e.slots.map(t=>[t,`${e.className}__${t}`]))),Object.assign(function(e){return Object.fromEntries(n.map(([t,n])=>[t,n(e)]))},{variantMap:o,variantKeys:i,splitVariantProps:function(t){let n=(0,$.C)(t,["recipe"]),[r,o]=(0,f.e)(n,i);return i.includes("colorPalette")||(r.colorPalette=t.colorPalette||e.defaultVariants?.colorPalette),i.includes("orientation")&&(o.orientation=t.orientation),[r,o]},classNameMap:a})}}({cva:A});function M(){let e={};for(let[t,n]of E.cssVarMap.entries()){let r=Object.fromEntries(n);if(0===Object.keys(r).length)continue;let i="base"===t?u:k.resolve(t),o=i.startsWith("@"),a=R(P({[i]:o?{[u]:r}:r}));(0,d.b)(e,a)}return y.wrap("tokens",e)}function L(){let e=Object.assign({},Object.fromEntries(Object.entries(n.keyframes??{}).map(([e,t])=>[`@keyframes ${e}`,t])),R(P(i)));return y.wrap("base",e)}function D(){let e=function(e){let{preflight:t}=e;if(!t)return{};let{scope:n="",level:r="parent"}=(0,l.Kn)(t)?t:{},i="";n&&"parent"===r?i=`${n} `:n&&"element"===r&&(i=`&${n}`);let o={"*":{margin:"0px",padding:"0px",font:"inherit",wordWrap:"break-word",WebkitTapHighlightColor:"transparent"},"*, *::before, *::after, *::backdrop":{boxSizing:"border-box",borderWidth:"0px",borderStyle:"solid",borderColor:"var(--global-color-border, currentColor)"},hr:{height:"0px",color:"inherit",borderTopWidth:"1px"},body:{minHeight:"100dvh",position:"relative"},img:{borderStyle:"none"},"img, svg, video, canvas, audio, iframe, embed, object":{display:"block",verticalAlign:"middle"},iframe:{border:"none"},"img, video":{maxWidth:"100%",height:"auto"},"p, h1, h2, h3, h4, h5, h6":{overflowWrap:"break-word"},"ol, ul":{listStyle:"none"},"code, kbd, pre, samp":{fontSize:"1em"},"button, [type='button'], [type='reset'], [type='submit']":{WebkitAppearance:"button",backgroundColor:"transparent",backgroundImage:"none"},"button, input, optgroup, select, textarea":{color:"inherit"},"button, select":{textTransform:"none"},table:{textIndent:"0px",borderColor:"inherit",borderCollapse:"collapse"},"*::placeholder":{opacity:"unset",color:"#9ca3af",userSelect:"none"},textarea:{resize:"vertical"},summary:{display:"list-item"},small:{fontSize:"80%"},"sub, sup":{fontSize:"75%",lineHeight:0,position:"relative",verticalAlign:"baseline"},sub:{bottom:"-0.25em"},sup:{top:"-0.5em"},dialog:{padding:"0px"},a:{color:"inherit",textDecoration:"inherit"},"abbr:where([title])":{textDecoration:"underline dotted"},"b, strong":{fontWeight:"bolder"},"code, kbd, samp, pre":{fontSize:"1em","--font-mono-fallback":"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New'",fontFamily:"var(--global-font-mono, var(--font-mono-fallback))"},'input[type="text"], input[type="email"], input[type="search"], input[type="password"]':{WebkitAppearance:"none",MozAppearance:"none"},"input[type='search']":{WebkitAppearance:"textfield",outlineOffset:"-2px"},"::-webkit-search-decoration, ::-webkit-search-cancel-button":{WebkitAppearance:"none"},"::-webkit-file-upload-button":{WebkitAppearance:"button",font:"inherit"},'input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button':{height:"auto"},"input[type='number']":{MozAppearance:"textfield"},":-moz-ui-invalid":{boxShadow:"none"},":-moz-focusring":{outline:"auto"},"[hidden]:where(:not([hidden='until-found']))":{display:"none !important"}},a={[n||"html"]:{lineHeight:1.5,"--font-fallback":"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'",WebkitTextSizeAdjust:"100%",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",textRendering:"optimizeLegibility",touchAction:"manipulation",MozTabSize:"4",tabSize:"4",fontFamily:"var(--global-font-body, var(--font-fallback))"}};return"element"===r?Object.assign(a,Object.entries(o).reduce((e,[t,n])=>(e[t]={[i]:n},e),{})):i?a[i]=o:Object.assign(a,o),a}({preflight:p});return y.wrap("reset",e)}let F=function(e){let t=new Map;return e.allTokens.forEach(e=>{let{cssVar:n,virtual:r,conditions:i}=e.extensions,o=i||r?n.ref:e.value;t.set(e.name,{value:o,variable:n.ref})}),t}(E),V=(e,t)=>F.get(e)?.value||t;function j(e){return Object.hasOwnProperty.call(n.recipes??{},e)}function z(e){return Object.hasOwnProperty.call(n.slotRecipes??{},e)}return V.var=(e,t)=>F.get(e)?.variable||t,{$$chakra:!0,_config:t,_global:[D(),L(),M()],breakpoints:S,tokens:E,conditions:k,utility:O,token:V,properties:C,layers:y,isValidProperty:I,splitCssProps:function(e){return(0,f.e)(e,I)},normalizeValue:_,getTokenCss:M,getGlobalCss:L,getPreflightCss:D,css:R,cva:A,sva:N,getRecipe:function(e,t){return n.recipes?.[e]??t},getSlotRecipe:function(e,t){return n.slotRecipes?.[e]??t},hasRecipe:function(e){return j(e)||z(e)},isRecipe:j,isSlotRecipe:z}}},90072:function(e,t,n){"use strict";n.d(t,{r:function(){return o}});var r=n(97129),i=n(71433);function o(e){let{key:t,recipe:n}=e,o=(0,i.V)();return(0,r.useMemo)(()=>{let e=n||(null!=t?o.getRecipe(t):{});return o.cva(structuredClone(e))},[t,n,o])}},69463:function(e,t,n){"use strict";n.d(t,{j:function(){return o}});var r=n(97129),i=n(71433);function o(e){let{key:t,recipe:n}=e,o=(0,i.V)();return(0,r.useMemo)(()=>{let e=n||(null!=t?o.getSlotRecipe(t):{});return o.sva(structuredClone(e))},[t,n,o])}},28359:function(e,t,n){"use strict";n.d(t,{P:function(){return r}});let r=e=>e?"":void 0},63721:function(e,t,n){"use strict";function r(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}n.d(t,{o:function(){return r}})},71891:function(e,t,n){"use strict";n.d(t,{cx:function(){return r}});let r=(...e)=>e.filter(Boolean).map(e=>e.trim()).join(" ")},27906:function(e,t,n){"use strict";n.d(t,{HD:function(){return i},Kn:function(){return r},mf:function(){return o}});let r=e=>null!=e&&"object"==typeof e&&!Array.isArray(e),i=e=>"string"==typeof e,o=e=>"function"==typeof e},22025:function(e,t,n){"use strict";n.d(t,{b:function(){return i}});var r=n(27906);function i(e,...t){for(let n of t)!function e(t,n){if(null==n)return t;for(let i of Object.keys(n))if(void 0!==n[i]&&"__proto__"!==i){if(!(0,r.Kn)(t[i])&&(0,r.Kn)(n[i]))Object.assign(t,{[i]:n[i]});else if(t[i]&&(0,r.Kn)(n[i]))e(t[i],n[i]);else if(Array.isArray(n[i])&&Array.isArray(t[i])){let o=0;for(;o<n[i].length;o++)(0,r.Kn)(t[i][o])&&(0,r.Kn)(n[i][o])?e(t[i][o],n[i][o]):t[i][o]=n[i][o]}else Object.assign(t,{[i]:n[i]})}return t}(e,n);return e}},8593:function(e,t,n){"use strict";function r(e,t=[]){let n=Object.assign({},e);for(let e of t)e in n&&delete n[e];return n}n.d(t,{C:function(){return r}})},49119:function(e,t,n){"use strict";n.d(t,{e:function(){return o}});var r=n(27906);let i=(e,t)=>{let n={},r={};for(let i of Object.keys(e))t(i)?r[i]=e[i]:n[i]=e[i];return[r,n]},o=(e,t)=>i(e,(0,r.mf)(t)?t:e=>t.includes(e))},22777:function(e,t,n){"use strict";n.d(t,{j:function(){return r}});let r=(...e)=>Array.from(e.reduce((e,t)=>(null!=t&&t.forEach(t=>e.add(t)),e),new Set([])))},17875:function(e,t,n){"use strict";n.d(t,{V:function(){return o},X:function(){return a}});var r=n(27906);let i=e=>null!=e;function o(e,t,n={}){let{stop:o,getKey:a}=n;return function e(n,s=[]){if((0,r.Kn)(n)||Array.isArray(n)){let r={};for(let[l,u]of Object.entries(n)){let c=a?.(l,u)??l,d=[...s,c];if(o?.(n,d))return t(n,s);let f=e(u,d);i(f)&&(r[c]=f)}return r}return t(n,s)}(e)}function a(e,t){return Array.isArray(e)?e.map(e=>i(e)?t(e):e):(0,r.Kn)(e)?o(e,e=>t(e)):i(e)?t(e):e}},50186:function(e,t,n){"use strict";n.d(t,{x7:function(){return ef},Me:function(){return ea},oo:function(){return ep},RR:function(){return eu},Cp:function(){return ed},dr:function(){return eh},cv:function(){return es},uY:function(){return el},dp:function(){return ec}});let r=["top","right","bottom","left"],i=Math.min,o=Math.max,a=Math.round,s=Math.floor,l=e=>({x:e,y:e}),u={left:"right",right:"left",bottom:"top",top:"bottom"},c={start:"end",end:"start"};function d(e,t){return"function"==typeof e?e(t):e}function f(e){return e.split("-")[0]}function h(e){return e.split("-")[1]}function p(e){return"x"===e?"y":"x"}function g(e){return"y"===e?"height":"width"}function v(e){return["top","bottom"].includes(f(e))?"y":"x"}function m(e){return e.replace(/start|end/g,e=>c[e])}function b(e){return e.replace(/left|right|bottom|top/g,e=>u[e])}function y(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function x(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function w(e,t,n){let r,{reference:i,floating:o}=e,a=v(t),s=p(v(t)),l=g(s),u=f(t),c="y"===a,d=i.x+i.width/2-o.width/2,m=i.y+i.height/2-o.height/2,b=i[l]/2-o[l]/2;switch(u){case"top":r={x:d,y:i.y-o.height};break;case"bottom":r={x:d,y:i.y+i.height};break;case"right":r={x:i.x+i.width,y:m};break;case"left":r={x:i.x-o.width,y:m};break;default:r={x:i.x,y:i.y}}switch(h(t)){case"start":r[s]-=b*(n&&c?-1:1);break;case"end":r[s]+=b*(n&&c?-1:1)}return r}let E=async(e,t,n)=>{let{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:a}=n,s=o.filter(Boolean),l=await (null==a.isRTL?void 0:a.isRTL(t)),u=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:d}=w(u,r,l),f=r,h={},p=0;for(let n=0;n<s.length;n++){let{name:o,fn:g}=s[n],{x:v,y:m,data:b,reset:y}=await g({x:c,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:h,rects:u,platform:a,elements:{reference:e,floating:t}});c=null!=v?v:c,d=null!=m?m:d,h={...h,[o]:{...h[o],...b}},y&&p<=50&&(p++,"object"==typeof y&&(y.placement&&(f=y.placement),y.rects&&(u=!0===y.rects?await a.getElementRects({reference:e,floating:t,strategy:i}):y.rects),{x:c,y:d}=w(u,f,l)),n=-1)}return{x:c,y:d,placement:f,strategy:i,middlewareData:h}};async function S(e,t){var n;void 0===t&&(t={});let{x:r,y:i,platform:o,rects:a,elements:s,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:f="floating",altBoundary:h=!1,padding:p=0}=d(t,e),g=y(p),v=s[h?"floating"===f?"reference":"floating":f],m=x(await o.getClippingRect({element:null==(n=await (null==o.isElement?void 0:o.isElement(v)))||n?v:v.contextElement||await (null==o.getDocumentElement?void 0:o.getDocumentElement(s.floating)),boundary:u,rootBoundary:c,strategy:l})),b="floating"===f?{x:r,y:i,width:a.floating.width,height:a.floating.height}:a.reference,w=await (null==o.getOffsetParent?void 0:o.getOffsetParent(s.floating)),E=await (null==o.isElement?void 0:o.isElement(w))&&await (null==o.getScale?void 0:o.getScale(w))||{x:1,y:1},S=x(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:b,offsetParent:w,strategy:l}):b);return{top:(m.top-S.top+g.top)/E.y,bottom:(S.bottom-m.bottom+g.bottom)/E.y,left:(m.left-S.left+g.left)/E.x,right:(S.right-m.right+g.right)/E.x}}function k(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function O(e){return r.some(t=>e[t]>=0)}async function C(e,t){let{placement:n,platform:r,elements:i}=e,o=await (null==r.isRTL?void 0:r.isRTL(i.floating)),a=f(n),s=h(n),l="y"===v(n),u=["left","top"].includes(a)?-1:1,c=o&&l?-1:1,p=d(t,e),{mainAxis:g,crossAxis:m,alignmentAxis:b}="number"==typeof p?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return s&&"number"==typeof b&&(m="end"===s?-1*b:b),l?{x:m*c,y:g*u}:{x:g*u,y:m*c}}function I(){return"undefined"!=typeof window}function _(e){return R(e)?(e.nodeName||"").toLowerCase():"#document"}function T(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function P(e){var t;return null==(t=(R(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function R(e){return!!I()&&(e instanceof Node||e instanceof T(e).Node)}function A(e){return!!I()&&(e instanceof Element||e instanceof T(e).Element)}function N(e){return!!I()&&(e instanceof HTMLElement||e instanceof T(e).HTMLElement)}function M(e){return!!I()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof T(e).ShadowRoot)}function L(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=z(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function D(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch(e){return!1}})}function F(e){let t=V(),n=A(e)?z(e):e;return["transform","translate","scale","rotate","perspective"].some(e=>!!n[e]&&"none"!==n[e])||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","translate","scale","rotate","perspective","filter"].some(e=>(n.willChange||"").includes(e))||["paint","layout","strict","content"].some(e=>(n.contain||"").includes(e))}function V(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}function j(e){return["html","body","#document"].includes(_(e))}function z(e){return T(e).getComputedStyle(e)}function U(e){return A(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function B(e){if("html"===_(e))return e;let t=e.assignedSlot||e.parentNode||M(e)&&e.host||P(e);return M(t)?t.host:t}function W(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let i=function e(t){let n=B(t);return j(n)?t.ownerDocument?t.ownerDocument.body:t.body:N(n)&&L(n)?n:e(n)}(e),o=i===(null==(r=e.ownerDocument)?void 0:r.body),a=T(i);if(o){let e=H(a);return t.concat(a,a.visualViewport||[],L(i)?i:[],e&&n?W(e):[])}return t.concat(i,W(i,[],n))}function H(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function $(e){let t=z(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=N(e),o=i?e.offsetWidth:n,s=i?e.offsetHeight:r,l=a(n)!==o||a(r)!==s;return l&&(n=o,r=s),{width:n,height:r,$:l}}function q(e){return A(e)?e:e.contextElement}function G(e){let t=q(e);if(!N(t))return l(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:o}=$(t),s=(o?a(n.width):n.width)/r,u=(o?a(n.height):n.height)/i;return s&&Number.isFinite(s)||(s=1),u&&Number.isFinite(u)||(u=1),{x:s,y:u}}let K=l(0);function Z(e){let t=T(e);return V()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:K}function Y(e,t,n,r){var i;void 0===t&&(t=!1),void 0===n&&(n=!1);let o=e.getBoundingClientRect(),a=q(e),s=l(1);t&&(r?A(r)&&(s=G(r)):s=G(e));let u=(void 0===(i=n)&&(i=!1),r&&(!i||r===T(a))&&i)?Z(a):l(0),c=(o.left+u.x)/s.x,d=(o.top+u.y)/s.y,f=o.width/s.x,h=o.height/s.y;if(a){let e=T(a),t=r&&A(r)?T(r):r,n=e,i=H(n);for(;i&&r&&t!==n;){let e=G(i),t=i.getBoundingClientRect(),r=z(i),o=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,d*=e.y,f*=e.x,h*=e.y,c+=o,d+=a,i=H(n=T(i))}}return x({width:f,height:h,x:c,y:d})}function X(e,t){let n=U(e).scrollLeft;return t?t.left+n:Y(P(e)).left+n}function Q(e,t,n){void 0===n&&(n=!1);let r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(n?0:X(e,r)),y:r.top+t.scrollTop}}function J(e,t,n){let r;if("viewport"===t)r=function(e,t){let n=T(e),r=P(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;let e=V();(!e||e&&"fixed"===t)&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s,y:l}}(e,n);else if("document"===t)r=function(e){let t=P(e),n=U(e),r=e.ownerDocument.body,i=o(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=o(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),s=-n.scrollLeft+X(e),l=-n.scrollTop;return"rtl"===z(r).direction&&(s+=o(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:s,y:l}}(P(e));else if(A(t))r=function(e,t){let n=Y(e,!0,"fixed"===t),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=N(e)?G(e):l(1),a=e.clientWidth*o.x;return{width:a,height:e.clientHeight*o.y,x:i*o.x,y:r*o.y}}(t,n);else{let n=Z(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return x(r)}function ee(e){return"static"===z(e).position}function et(e,t){if(!N(e)||"fixed"===z(e).position)return null;if(t)return t(e);let n=e.offsetParent;return P(e)===n&&(n=n.ownerDocument.body),n}function en(e,t){let n=T(e);if(D(e))return n;if(!N(e)){let t=B(e);for(;t&&!j(t);){if(A(t)&&!ee(t))return t;t=B(t)}return n}let r=et(e,t);for(;r&&["table","td","th"].includes(_(r))&&ee(r);)r=et(r,t);return r&&j(r)&&ee(r)&&!F(r)?n:r||function(e){let t=B(e);for(;N(t)&&!j(t);){if(F(t))return t;if(D(t))break;t=B(t)}return null}(e)||n}let er=async function(e){let t=this.getOffsetParent||en,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=N(t),i=P(t),o="fixed"===n,a=Y(e,!0,o,t),s={scrollLeft:0,scrollTop:0},u=l(0);if(r||!r&&!o){if(("body"!==_(t)||L(i))&&(s=U(t)),r){let e=Y(t,!0,o,t);u.x=e.x+t.clientLeft,u.y=e.y+t.clientTop}else i&&(u.x=X(i))}o&&!r&&i&&(u.x=X(i));let c=!i||r||o?l(0):Q(i,s);return{x:a.left+s.scrollLeft-u.x-c.x,y:a.top+s.scrollTop-u.y-c.y,width:a.width,height:a.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},ei={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,o="fixed"===i,a=P(r),s=!!t&&D(t.floating);if(r===a||s&&o)return n;let u={scrollLeft:0,scrollTop:0},c=l(1),d=l(0),f=N(r);if((f||!f&&!o)&&(("body"!==_(r)||L(a))&&(u=U(r)),N(r))){let e=Y(r);c=G(r),d.x=e.x+r.clientLeft,d.y=e.y+r.clientTop}let h=!a||f||o?l(0):Q(a,u,!0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-u.scrollLeft*c.x+d.x+h.x,y:n.y*c.y-u.scrollTop*c.y+d.y+h.y}},getDocumentElement:P,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:a}=e,s=[..."clippingAncestors"===n?D(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=W(e,[],!1).filter(e=>A(e)&&"body"!==_(e)),i=null,o="fixed"===z(e).position,a=o?B(e):e;for(;A(a)&&!j(a);){let t=z(a),n=F(a);n||"fixed"!==t.position||(i=null),(o?!n&&!i:!n&&"static"===t.position&&!!i&&["absolute","fixed"].includes(i.position)||L(a)&&!n&&function e(t,n){let r=B(t);return!(r===n||!A(r)||j(r))&&("fixed"===z(r).position||e(r,n))}(e,a))?r=r.filter(e=>e!==a):i=t,a=B(a)}return t.set(e,r),r}(t,this._c):[].concat(n),r],l=s[0],u=s.reduce((e,n)=>{let r=J(t,n,a);return e.top=o(r.top,e.top),e.right=i(r.right,e.right),e.bottom=i(r.bottom,e.bottom),e.left=o(r.left,e.left),e},J(t,l,a));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}},getOffsetParent:en,getElementRects:er,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=$(e);return{width:t,height:n}},getScale:G,isElement:A,isRTL:function(e){return"rtl"===z(e).direction}};function eo(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function ea(e,t,n,r){let a;void 0===r&&(r={});let{ancestorScroll:l=!0,ancestorResize:u=!0,elementResize:c="function"==typeof ResizeObserver,layoutShift:d="function"==typeof IntersectionObserver,animationFrame:f=!1}=r,h=q(e),p=l||u?[...h?W(h):[],...W(t)]:[];p.forEach(e=>{l&&e.addEventListener("scroll",n,{passive:!0}),u&&e.addEventListener("resize",n)});let g=h&&d?function(e,t){let n,r=null,a=P(e);function l(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return!function u(c,d){void 0===c&&(c=!1),void 0===d&&(d=1),l();let f=e.getBoundingClientRect(),{left:h,top:p,width:g,height:v}=f;if(c||t(),!g||!v)return;let m=s(p),b=s(a.clientWidth-(h+g)),y={rootMargin:-m+"px "+-b+"px "+-s(a.clientHeight-(p+v))+"px "+-s(h)+"px",threshold:o(0,i(1,d))||1},x=!0;function w(t){let r=t[0].intersectionRatio;if(r!==d){if(!x)return u();r?u(!1,r):n=setTimeout(()=>{u(!1,1e-7)},1e3)}1!==r||eo(f,e.getBoundingClientRect())||u(),x=!1}try{r=new IntersectionObserver(w,{...y,root:a.ownerDocument})}catch(e){r=new IntersectionObserver(w,y)}r.observe(e)}(!0),l}(h,n):null,v=-1,m=null;c&&(m=new ResizeObserver(e=>{let[r]=e;r&&r.target===h&&m&&(m.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var e;null==(e=m)||e.observe(t)})),n()}),h&&!f&&m.observe(h),m.observe(t));let b=f?Y(e):null;return f&&function t(){let r=Y(e);b&&!eo(b,r)&&n(),b=r,a=requestAnimationFrame(t)}(),n(),()=>{var e;p.forEach(e=>{l&&e.removeEventListener("scroll",n),u&&e.removeEventListener("resize",n)}),null==g||g(),null==(e=m)||e.disconnect(),m=null,f&&cancelAnimationFrame(a)}}let es=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;let{x:i,y:o,placement:a,middlewareData:s}=t,l=await C(t,e);return a===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:i+l.x,y:o+l.y,data:{...l,placement:a}}}}},el=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:r,placement:a}=t,{mainAxis:s=!0,crossAxis:l=!1,limiter:u={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=d(e,t),h={x:n,y:r},g=await S(t,c),m=v(f(a)),b=p(m),y=h[b],x=h[m];if(s){let e="y"===b?"top":"left",t="y"===b?"bottom":"right",n=y+g[e],r=y-g[t];y=o(n,i(y,r))}if(l){let e="y"===m?"top":"left",t="y"===m?"bottom":"right",n=x+g[e],r=x-g[t];x=o(n,i(x,r))}let w=u.fn({...t,[b]:y,[m]:x});return{...w,data:{x:w.x-n,y:w.y-r,enabled:{[b]:s,[m]:l}}}}}},eu=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r,i,o,a;let{placement:s,middlewareData:l,rects:u,initialPlacement:c,platform:y,elements:x}=t,{mainAxis:w=!0,crossAxis:E=!0,fallbackPlacements:k,fallbackStrategy:O="bestFit",fallbackAxisSideDirection:C="none",flipAlignment:I=!0,..._}=d(e,t);if(null!=(n=l.arrow)&&n.alignmentOffset)return{};let T=f(s),P=v(c),R=f(c)===c,A=await (null==y.isRTL?void 0:y.isRTL(x.floating)),N=k||(R||!I?[b(c)]:function(e){let t=b(e);return[m(e),t,m(t)]}(c)),M="none"!==C;!k&&M&&N.push(...function(e,t,n,r){let i=h(e),o=function(e,t,n){let r=["left","right"],i=["right","left"];switch(e){case"top":case"bottom":if(n)return t?i:r;return t?r:i;case"left":case"right":return t?["top","bottom"]:["bottom","top"];default:return[]}}(f(e),"start"===n,r);return i&&(o=o.map(e=>e+"-"+i),t&&(o=o.concat(o.map(m)))),o}(c,I,C,A));let L=[c,...N],D=await S(t,_),F=[],V=(null==(r=l.flip)?void 0:r.overflows)||[];if(w&&F.push(D[T]),E){let e=function(e,t,n){void 0===n&&(n=!1);let r=h(e),i=p(v(e)),o=g(i),a="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=b(a)),[a,b(a)]}(s,u,A);F.push(D[e[0]],D[e[1]])}if(V=[...V,{placement:s,overflows:F}],!F.every(e=>e<=0)){let e=((null==(i=l.flip)?void 0:i.index)||0)+1,t=L[e];if(t&&(!("alignment"===E&&P!==v(t))||V.every(e=>e.overflows[0]>0&&v(e.placement)===P)))return{data:{index:e,overflows:V},reset:{placement:t}};let n=null==(o=V.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:o.placement;if(!n)switch(O){case"bestFit":{let e=null==(a=V.filter(e=>{if(M){let t=v(e.placement);return t===P||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:a[0];e&&(n=e);break}case"initialPlacement":n=c}if(s!==n)return{reset:{placement:n}}}return{}}}},ec=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;let a,s;let{placement:l,rects:u,platform:c,elements:p}=t,{apply:g=()=>{},...m}=d(e,t),b=await S(t,m),y=f(l),x=h(l),w="y"===v(l),{width:E,height:k}=u.floating;"top"===y||"bottom"===y?(a=y,s=x===(await (null==c.isRTL?void 0:c.isRTL(p.floating))?"start":"end")?"left":"right"):(s=y,a="end"===x?"top":"bottom");let O=k-b.top-b.bottom,C=E-b.left-b.right,I=i(k-b[a],O),_=i(E-b[s],C),T=!t.middlewareData.shift,P=I,R=_;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(R=C),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(P=O),T&&!x){let e=o(b.left,0),t=o(b.right,0),n=o(b.top,0),r=o(b.bottom,0);w?R=E-2*(0!==e||0!==t?e+t:o(b.left,b.right)):P=k-2*(0!==n||0!==r?n+r:o(b.top,b.bottom))}await g({...t,availableWidth:R,availableHeight:P});let A=await c.getDimensions(p.floating);return E!==A.width||k!==A.height?{reset:{rects:!0}}:{}}}},ed=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){let{rects:n}=t,{strategy:r="referenceHidden",...i}=d(e,t);switch(r){case"referenceHidden":{let e=k(await S(t,{...i,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:O(e)}}}case"escaped":{let e=k(await S(t,{...i,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:O(e)}}}default:return{}}}}},ef=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:a,rects:s,platform:l,elements:u,middlewareData:c}=t,{element:f,padding:m=0}=d(e,t)||{};if(null==f)return{};let b=y(m),x={x:n,y:r},w=p(v(a)),E=g(w),S=await l.getDimensions(f),k="y"===w,O=k?"clientHeight":"clientWidth",C=s.reference[E]+s.reference[w]-x[w]-s.floating[E],I=x[w]-s.reference[w],_=await (null==l.getOffsetParent?void 0:l.getOffsetParent(f)),T=_?_[O]:0;T&&await (null==l.isElement?void 0:l.isElement(_))||(T=u.floating[O]||s.floating[E]);let P=T/2-S[E]/2-1,R=i(b[k?"top":"left"],P),A=i(b[k?"bottom":"right"],P),N=T-S[E]-A,M=T/2-S[E]/2+(C/2-I/2),L=o(R,i(M,N)),D=!c.arrow&&null!=h(a)&&M!==L&&s.reference[E]/2-(M<R?R:A)-S[E]/2<0,F=D?M<R?M-R:M-N:0;return{[w]:x[w]+F,data:{[w]:L,centerOffset:M-L-F,...D&&{alignmentOffset:F}},reset:D}}}),eh=function(e){return void 0===e&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:o,middlewareData:a}=t,{offset:s=0,mainAxis:l=!0,crossAxis:u=!0}=d(e,t),c={x:n,y:r},h=v(i),g=p(h),m=c[g],b=c[h],y=d(s,t),x="number"==typeof y?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(l){let e="y"===g?"height":"width",t=o.reference[g]-o.floating[e]+x.mainAxis,n=o.reference[g]+o.reference[e]-x.mainAxis;m<t?m=t:m>n&&(m=n)}if(u){var w,E;let e="y"===g?"width":"height",t=["top","left"].includes(f(i)),n=o.reference[h]-o.floating[e]+(t&&(null==(w=a.offset)?void 0:w[h])||0)+(t?0:x.crossAxis),r=o.reference[h]+o.reference[e]+(t?0:(null==(E=a.offset)?void 0:E[h])||0)-(t?x.crossAxis:0);b<n?b=n:b>r&&(b=r)}return{[g]:m,[h]:b}}}},ep=(e,t,n)=>{let r=new Map,i={platform:ei,...n},o={...i.platform,_c:r};return E(e,t,{...i,platform:o})}},29220:function(e,t,n){"use strict";n.d(t,{j:function(){return o}});var r=n(23158),i=n(21738),o=new class extends r.l{#e;#t;#n;constructor(){super(),this.#n=e=>{if(!i.sk&&window.addEventListener){let t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return"boolean"==typeof this.#e?this.#e:globalThis.document?.visibilityState!=="hidden"}}},70153:function(e,t,n){"use strict";n.d(t,{R:function(){return s},m:function(){return a}});var r=n(62991),i=n(17972),o=n(22635),a=class extends i.F{#r;#i;#o;constructor(e){super(),this.mutationId=e.mutationId,this.#i=e.mutationCache,this.#r=[],this.state=e.state||s(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#r.includes(e)||(this.#r.push(e),this.clearGcTimeout(),this.#i.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#r=this.#r.filter(t=>t!==e),this.scheduleGc(),this.#i.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#r.length||("pending"===this.state.status?this.scheduleGc():this.#i.remove(this))}continue(){return this.#o?.continue()??this.execute(this.state.variables)}async execute(e){let t=()=>{this.#a({type:"continue"})};this.#o=(0,o.Mz)({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(Error("No mutationFn found")),onFail:(e,t)=>{this.#a({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#a({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#i.canRun(this)});let n="pending"===this.state.status,r=!this.#o.canStart();try{if(n)t();else{this.#a({type:"pending",variables:e,isPaused:r}),await this.#i.config.onMutate?.(e,this);let t=await this.options.onMutate?.(e);t!==this.state.context&&this.#a({type:"pending",context:t,variables:e,isPaused:r})}let i=await this.#o.start();return await this.#i.config.onSuccess?.(i,e,this.state.context,this),await this.options.onSuccess?.(i,e,this.state.context),await this.#i.config.onSettled?.(i,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(i,null,e,this.state.context),this.#a({type:"success",data:i}),i}catch(t){try{throw await this.#i.config.onError?.(t,e,this.state.context,this),await this.options.onError?.(t,e,this.state.context),await this.#i.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,t,e,this.state.context),t}finally{this.#a({type:"error",error:t})}}finally{this.#i.runNext(this)}}#a(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"pending":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}})(this.state),r.Vr.batch(()=>{this.#r.forEach(t=>{t.onMutationUpdate(e)}),this.#i.notify({mutation:this,type:"updated",action:e})})}};function s(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}},62991:function(e,t,n){"use strict";n.d(t,{Vr:function(){return i}});var r=e=>setTimeout(e,0),i=function(){let e=[],t=0,n=e=>{e()},i=e=>{e()},o=r,a=r=>{t?e.push(r):o(()=>{n(r)})},s=()=>{let t=e;e=[],t.length&&o(()=>{i(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{--t||s()}return n},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{i=e},setScheduler:e=>{o=e}}}()},24775:function(e,t,n){"use strict";n.d(t,{N:function(){return o}});var r=n(23158),i=n(21738),o=new class extends r.l{#s=!0;#t;#n;constructor(){super(),this.#n=e=>{if(!i.sk&&window.addEventListener){let t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#s!==e&&(this.#s=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#s}}},61126:function(e,t,n){"use strict";n.d(t,{A:function(){return s},z:function(){return l}});var r=n(21738),i=n(62991),o=n(22635),a=n(17972),s=class extends a.F{#l;#u;#c;#d;#o;#f;#h;constructor(e){super(),this.#h=!1,this.#f=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#d=e.client,this.#c=this.#d.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#l=function(e){let t="function"==typeof e.initialData?e.initialData():e.initialData,n=void 0!==t,r=n?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}(this.options),this.state=e.state??this.#l,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#o?.promise}setOptions(e){this.options={...this.#f,...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#c.remove(this)}setData(e,t){let n=(0,r.oE)(this.state.data,e,this.options);return this.#a({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#a({type:"setState",state:e,setStateOptions:t})}cancel(e){let t=this.#o?.promise;return this.#o?.cancel(e),t?t.then(r.ZT).catch(r.ZT):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#l)}isActive(){return this.observers.some(e=>!1!==(0,r.Nc)(e.options.enabled,this))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===r.CN||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>"static"===(0,r.KC)(e.options.staleTime,this))}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):void 0===this.state.data||this.state.isInvalidated}isStaleByTime(e=0){return void 0===this.state.data||"static"!==e&&(!!this.state.isInvalidated||!(0,r.Kp)(this.state.dataUpdatedAt,e))}onFocus(){let e=this.observers.find(e=>e.shouldFetchOnWindowFocus());e?.refetch({cancelRefetch:!1}),this.#o?.continue()}onOnline(){let e=this.observers.find(e=>e.shouldFetchOnReconnect());e?.refetch({cancelRefetch:!1}),this.#o?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#c.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#o&&(this.#h?this.#o.cancel({revert:!0}):this.#o.cancelRetry()),this.scheduleGc()),this.#c.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#a({type:"invalidate"})}fetch(e,t){if("idle"!==this.state.fetchStatus){if(void 0!==this.state.data&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#o)return this.#o.continueRetry(),this.#o.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let n=new AbortController,i=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#h=!0,n.signal)})},a=()=>{let e=(0,r.cG)(this.options,t),n=(()=>{let e={client:this.#d,queryKey:this.queryKey,meta:this.meta};return i(e),e})();return(this.#h=!1,this.options.persister)?this.options.persister(e,n,this):e(n)},s=(()=>{let e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#d,state:this.state,fetchFn:a};return i(e),e})();this.options.behavior?.onFetch(s,this),this.#u=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==s.fetchOptions?.meta)&&this.#a({type:"fetch",meta:s.fetchOptions?.meta});let l=e=>{(0,o.DV)(e)&&e.silent||this.#a({type:"error",error:e}),(0,o.DV)(e)||(this.#c.config.onError?.(e,this),this.#c.config.onSettled?.(this.state.data,e,this)),this.scheduleGc()};return this.#o=(0,o.Mz)({initialPromise:t?.initialPromise,fn:s.fetchFn,abort:n.abort.bind(n),onSuccess:e=>{if(void 0===e){l(Error(`${this.queryHash} data is undefined`));return}try{this.setData(e)}catch(e){l(e);return}this.#c.config.onSuccess?.(e,this),this.#c.config.onSettled?.(e,this.state.error,this),this.scheduleGc()},onError:l,onFail:(e,t)=>{this.#a({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#a({type:"pause"})},onContinue:()=>{this.#a({type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0}),this.#o.start()}#a(e){this.state=(t=>{switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,...l(t.data,this.options),fetchMeta:e.meta??null};case"success":return this.#u=void 0,{...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":let n=e.error;if((0,o.DV)(n)&&n.revert&&this.#u)return{...this.#u,fetchStatus:"idle"};return{...t,error:n,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:n,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),i.Vr.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#c.notify({query:this,type:"updated",action:e})})}};function l(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:(0,o.Kw)(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}},83147:function(e,t,n){"use strict";n.d(t,{S:function(){return g}});var r=n(21738),i=n(61126),o=n(62991),a=n(23158),s=class extends a.l{constructor(e={}){super(),this.config=e,this.#p=new Map}#p;build(e,t,n){let o=t.queryKey,a=t.queryHash??(0,r.Rm)(o,t),s=this.get(a);return s||(s=new i.A({client:e,queryKey:o,queryHash:a,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(o)}),this.add(s)),s}add(e){this.#p.has(e.queryHash)||(this.#p.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){let t=this.#p.get(e.queryHash);t&&(e.destroy(),t===e&&this.#p.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){o.Vr.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#p.get(e)}getAll(){return[...this.#p.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>(0,r._x)(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>(0,r._x)(e,t)):t}notify(e){o.Vr.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){o.Vr.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){o.Vr.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},l=n(70153),u=class extends a.l{constructor(e={}){super(),this.config=e,this.#g=new Set,this.#v=new Map,this.#m=0}#g;#v;#m;build(e,t,n){let r=new l.m({mutationCache:this,mutationId:++this.#m,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#g.add(e);let t=c(e);if("string"==typeof t){let n=this.#v.get(t);n?n.push(e):this.#v.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#g.delete(e)){let t=c(e);if("string"==typeof t){let n=this.#v.get(t);if(n){if(n.length>1){let t=n.indexOf(e);-1!==t&&n.splice(t,1)}else n[0]===e&&this.#v.delete(t)}}}this.notify({type:"removed",mutation:e})}canRun(e){let t=c(e);if("string"!=typeof t)return!0;{let n=this.#v.get(t),r=n?.find(e=>"pending"===e.state.status);return!r||r===e}}runNext(e){let t=c(e);if("string"!=typeof t)return Promise.resolve();{let n=this.#v.get(t)?.find(t=>t!==e&&t.state.isPaused);return n?.continue()??Promise.resolve()}}clear(){o.Vr.batch(()=>{this.#g.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#g.clear(),this.#v.clear()})}getAll(){return Array.from(this.#g)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>(0,r.X7)(t,e))}findAll(e={}){return this.getAll().filter(t=>(0,r.X7)(e,t))}notify(e){o.Vr.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return o.Vr.batch(()=>Promise.all(e.map(e=>e.continue().catch(r.ZT))))}};function c(e){return e.options.scope?.id}var d=n(29220),f=n(24775);function h(e){return{onFetch:(t,n)=>{let i=t.options,o=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],s=t.state.data?.pageParams||[],l={pages:[],pageParams:[]},u=0,c=async()=>{let n=!1,c=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(t.signal.aborted?n=!0:t.signal.addEventListener("abort",()=>{n=!0}),t.signal)})},d=(0,r.cG)(t.options,t.fetchOptions),f=async(e,i,o)=>{if(n)return Promise.reject();if(null==i&&e.pages.length)return Promise.resolve(e);let a=(()=>{let e={client:t.client,queryKey:t.queryKey,pageParam:i,direction:o?"backward":"forward",meta:t.options.meta};return c(e),e})(),s=await d(a),{maxPages:l}=t.options,u=o?r.Ht:r.VX;return{pages:u(e.pages,s,l),pageParams:u(e.pageParams,i,l)}};if(o&&a.length){let e="backward"===o,t={pages:a,pageParams:s},n=(e?function(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}:p)(i,t);l=await f(t,n,e)}else{let t=e??a.length;do{let e=0===u?s[0]??i.initialPageParam:p(i,l);if(u>0&&null==e)break;l=await f(l,e),u++}while(u<t)}return l};t.options.persister?t.fetchFn=()=>t.options.persister?.(c,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=c}}}function p(e,{pages:t,pageParams:n}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}var g=class{#b;#i;#f;#y;#x;#w;#E;#S;constructor(e={}){this.#b=e.queryCache||new s,this.#i=e.mutationCache||new u,this.#f=e.defaultOptions||{},this.#y=new Map,this.#x=new Map,this.#w=0}mount(){this.#w++,1===this.#w&&(this.#E=d.j.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#b.onFocus())}),this.#S=f.N.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#b.onOnline())}))}unmount(){this.#w--,0===this.#w&&(this.#E?.(),this.#E=void 0,this.#S?.(),this.#S=void 0)}isFetching(e){return this.#b.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#i.findAll({...e,status:"pending"}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#b.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=this.#b.build(this,t),i=n.state.data;return void 0===i?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime((0,r.KC)(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(i))}getQueriesData(e){return this.#b.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let i=this.defaultQueryOptions({queryKey:e}),o=this.#b.get(i.queryHash),a=o?.state.data,s=(0,r.SE)(t,a);if(void 0!==s)return this.#b.build(this,i).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return o.Vr.batch(()=>this.#b.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#b.get(t.queryHash)?.state}removeQueries(e){let t=this.#b;o.Vr.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#b;return o.Vr.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){let n={revert:!0,...t};return Promise.all(o.Vr.batch(()=>this.#b.findAll(e).map(e=>e.cancel(n)))).then(r.ZT).catch(r.ZT)}invalidateQueries(e,t={}){return o.Vr.batch(()=>(this.#b.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType==="none")?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0};return Promise.all(o.Vr.batch(()=>this.#b.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(r.ZT)),"paused"===e.state.fetchStatus?Promise.resolve():t}))).then(r.ZT)}fetchQuery(e){let t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);let n=this.#b.build(this,t);return n.isStaleByTime((0,r.KC)(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(r.ZT).catch(r.ZT)}fetchInfiniteQuery(e){return e.behavior=h(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(r.ZT).catch(r.ZT)}ensureInfiniteQueryData(e){return e.behavior=h(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return f.N.isOnline()?this.#i.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#b}getMutationCache(){return this.#i}getDefaultOptions(){return this.#f}setDefaultOptions(e){this.#f=e}setQueryDefaults(e,t){this.#y.set((0,r.Ym)(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#y.values()],n={};return t.forEach(t=>{(0,r.to)(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#x.set((0,r.Ym)(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#x.values()],n={};return t.forEach(t=>{(0,r.to)(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#f.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=(0,r.Rm)(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===r.CN&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#f.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#b.clear(),this.#i.clear()}}},17972:function(e,t,n){"use strict";n.d(t,{F:function(){return i}});var r=n(21738),i=class{#k;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),(0,r.PN)(this.gcTime)&&(this.#k=setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(r.sk?1/0:3e5))}clearGcTimeout(){this.#k&&(clearTimeout(this.#k),this.#k=void 0)}}},22635:function(e,t,n){"use strict";n.d(t,{DV:function(){return c},Kw:function(){return l},Mz:function(){return d}});var r=n(29220),i=n(24775),o=n(8011),a=n(21738);function s(e){return Math.min(1e3*2**e,3e4)}function l(e){return(e??"online")!=="online"||i.N.isOnline()}var u=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function c(e){return e instanceof u}function d(e){let t,n=!1,c=0,d=!1,f=(0,o.O)(),h=()=>r.j.isFocused()&&("always"===e.networkMode||i.N.isOnline())&&e.canRun(),p=()=>l(e.networkMode)&&e.canRun(),g=n=>{d||(d=!0,e.onSuccess?.(n),t?.(),f.resolve(n))},v=n=>{d||(d=!0,e.onError?.(n),t?.(),f.reject(n))},m=()=>new Promise(n=>{t=e=>{(d||h())&&n(e)},e.onPause?.()}).then(()=>{t=void 0,d||e.onContinue?.()}),b=()=>{let t;if(d)return;let r=0===c?e.initialPromise:void 0;try{t=r??e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(g).catch(t=>{if(d)return;let r=e.retry??(a.sk?0:3),i=e.retryDelay??s,o="function"==typeof i?i(c,t):i,l=!0===r||"number"==typeof r&&c<r||"function"==typeof r&&r(c,t);if(n||!l){v(t);return}c++,e.onFail?.(c,t),(0,a._v)(o).then(()=>h()?void 0:m()).then(()=>{n?v(t):b()})})};return{promise:f,cancel:t=>{d||(v(new u(t)),e.abort?.())},continue:()=>(t?.(),f),cancelRetry:()=>{n=!0},continueRetry:()=>{n=!1},canStart:p,start:()=>(p()?b():m().then(b),f)}}},23158:function(e,t,n){"use strict";n.d(t,{l:function(){return r}});var r=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}},8011:function(e,t,n){"use strict";function r(){let e,t;let n=new Promise((n,r)=>{e=n,t=r});function r(e){Object.assign(n,e),delete n.resolve,delete n.reject}return n.status="pending",n.catch(()=>{}),n.resolve=t=>{r({status:"fulfilled",value:t}),e(t)},n.reject=e=>{r({status:"rejected",reason:e}),t(e)},n}n.d(t,{O:function(){return r}})},21738:function(e,t,n){"use strict";n.d(t,{CN:function(){return S},Ht:function(){return E},KC:function(){return l},Kp:function(){return s},L3:function(){return O},Nc:function(){return u},PN:function(){return a},Rm:function(){return f},SE:function(){return o},VS:function(){return g},VX:function(){return w},X7:function(){return d},Ym:function(){return h},ZT:function(){return i},_v:function(){return y},_x:function(){return c},cG:function(){return k},oE:function(){return x},sk:function(){return r},to:function(){return p}});var r="undefined"==typeof window||"Deno"in globalThis;function i(){}function o(e,t){return"function"==typeof e?e(t):e}function a(e){return"number"==typeof e&&e>=0&&e!==1/0}function s(e,t){return Math.max(e+(t||0)-Date.now(),0)}function l(e,t){return"function"==typeof e?e(t):e}function u(e,t){return"function"==typeof e?e(t):e}function c(e,t){let{type:n="all",exact:r,fetchStatus:i,predicate:o,queryKey:a,stale:s}=e;if(a){if(r){if(t.queryHash!==f(a,t.options))return!1}else if(!p(t.queryKey,a))return!1}if("all"!==n){let e=t.isActive();if("active"===n&&!e||"inactive"===n&&e)return!1}return("boolean"!=typeof s||t.isStale()===s)&&(!i||i===t.state.fetchStatus)&&(!o||!!o(t))}function d(e,t){let{exact:n,status:r,predicate:i,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(h(t.options.mutationKey)!==h(o))return!1}else if(!p(t.options.mutationKey,o))return!1}return(!r||t.state.status===r)&&(!i||!!i(t))}function f(e,t){return(t?.queryKeyHashFn||h)(e)}function h(e){return JSON.stringify(e,(e,t)=>m(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function p(e,t){return e===t||typeof e==typeof t&&!!e&&!!t&&"object"==typeof e&&"object"==typeof t&&Object.keys(t).every(n=>p(e[n],t[n]))}function g(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(e[n]!==t[n])return!1;return!0}function v(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function m(e){if(!b(e))return!1;let t=e.constructor;if(void 0===t)return!0;let n=t.prototype;return!!(b(n)&&n.hasOwnProperty("isPrototypeOf"))&&Object.getPrototypeOf(e)===Object.prototype}function b(e){return"[object Object]"===Object.prototype.toString.call(e)}function y(e){return new Promise(t=>{setTimeout(t,e)})}function x(e,t,n){return"function"==typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?function e(t,n){if(t===n)return t;let r=v(t)&&v(n);if(r||m(t)&&m(n)){let i=r?t:Object.keys(t),o=i.length,a=r?n:Object.keys(n),s=a.length,l=r?[]:{},u=new Set(i),c=0;for(let i=0;i<s;i++){let o=r?i:a[i];(!r&&u.has(o)||r)&&void 0===t[o]&&void 0===n[o]?(l[o]=void 0,c++):(l[o]=e(t[o],n[o]),l[o]===t[o]&&void 0!==t[o]&&c++)}return o===s&&c===o?t:l}return n}(e,t):t}function w(e,t,n=0){let r=[...e,t];return n&&r.length>n?r.slice(1):r}function E(e,t,n=0){let r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var S=Symbol();function k(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:e.queryFn&&e.queryFn!==S?e.queryFn:()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`))}function O(e,t){return"function"==typeof e?e(...t):!!e}},81687:function(e,t,n){"use strict";n.d(t,{NL:function(){return a},aH:function(){return s}});var r=n(97129),i=n(26415),o=r.createContext(void 0),a=e=>{let t=r.useContext(o);if(e)return e;if(!t)throw Error("No QueryClient set, use QueryClientProvider to set one");return t},s=e=>{let{client:t,children:n}=e;return r.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),(0,i.jsx)(o.Provider,{value:t,children:n})}},89981:function(e,t,n){"use strict";let r;n.d(t,{a:function(){return _}});var i=n(29220),o=n(62991),a=n(61126),s=n(23158),l=n(8011),u=n(21738),c=class extends s.l{constructor(e,t){super(),this.options=t,this.#d=e,this.#O=null,this.#C=(0,l.O)(),this.options.experimental_prefetchInRender||this.#C.reject(Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(t)}#d;#I=void 0;#_=void 0;#T=void 0;#P;#R;#C;#O;#A;#N;#M;#L;#D;#F;#V=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#I.addObserver(this),d(this.#I,this.options)?this.#j():this.updateResult(),this.#z())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return f(this.#I,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return f(this.#I,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#U(),this.#B(),this.#I.removeObserver(this)}setOptions(e){let t=this.options,n=this.#I;if(this.options=this.#d.defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof(0,u.Nc)(this.options.enabled,this.#I))throw Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#W(),this.#I.setOptions(this.options),t._defaulted&&!(0,u.VS)(this.options,t)&&this.#d.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#I,observer:this});let r=this.hasListeners();r&&h(this.#I,n,this.options,t)&&this.#j(),this.updateResult(),r&&(this.#I!==n||(0,u.Nc)(this.options.enabled,this.#I)!==(0,u.Nc)(t.enabled,this.#I)||(0,u.KC)(this.options.staleTime,this.#I)!==(0,u.KC)(t.staleTime,this.#I))&&this.#H();let i=this.#$();r&&(this.#I!==n||(0,u.Nc)(this.options.enabled,this.#I)!==(0,u.Nc)(t.enabled,this.#I)||i!==this.#F)&&this.#q(i)}getOptimisticResult(e){let t=this.#d.getQueryCache().build(this.#d,e),n=this.createResult(t,e);return(0,u.VS)(this.getCurrentResult(),n)||(this.#T=n,this.#R=this.options,this.#P=this.#I.state),n}getCurrentResult(){return this.#T}trackResult(e,t){return new Proxy(e,{get:(e,n)=>(this.trackProp(n),t?.(n),Reflect.get(e,n))})}trackProp(e){this.#V.add(e)}getCurrentQuery(){return this.#I}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#d.defaultQueryOptions(e),n=this.#d.getQueryCache().build(this.#d,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#j({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#T))}#j(e){this.#W();let t=this.#I.fetch(this.options,e);return e?.throwOnError||(t=t.catch(u.ZT)),t}#H(){this.#U();let e=(0,u.KC)(this.options.staleTime,this.#I);if(u.sk||this.#T.isStale||!(0,u.PN)(e))return;let t=(0,u.Kp)(this.#T.dataUpdatedAt,e);this.#L=setTimeout(()=>{this.#T.isStale||this.updateResult()},t+1)}#$(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#I):this.options.refetchInterval)??!1}#q(e){this.#B(),this.#F=e,!u.sk&&!1!==(0,u.Nc)(this.options.enabled,this.#I)&&(0,u.PN)(this.#F)&&0!==this.#F&&(this.#D=setInterval(()=>{(this.options.refetchIntervalInBackground||i.j.isFocused())&&this.#j()},this.#F))}#z(){this.#H(),this.#q(this.#$())}#U(){this.#L&&(clearTimeout(this.#L),this.#L=void 0)}#B(){this.#D&&(clearInterval(this.#D),this.#D=void 0)}createResult(e,t){let n;let r=this.#I,i=this.options,o=this.#T,s=this.#P,c=this.#R,f=e!==r?e.state:this.#_,{state:g}=e,v={...g},m=!1;if(t._optimisticResults){let n=this.hasListeners(),o=!n&&d(e,t),s=n&&h(e,r,t,i);(o||s)&&(v={...v,...(0,a.z)(g.data,e.options)}),"isRestoring"===t._optimisticResults&&(v.fetchStatus="idle")}let{error:b,errorUpdatedAt:y,status:x}=v;n=v.data;let w=!1;if(void 0!==t.placeholderData&&void 0===n&&"pending"===x){let e;o?.isPlaceholderData&&t.placeholderData===c?.placeholderData?(e=o.data,w=!0):e="function"==typeof t.placeholderData?t.placeholderData(this.#M?.state.data,this.#M):t.placeholderData,void 0!==e&&(x="success",n=(0,u.oE)(o?.data,e,t),m=!0)}if(t.select&&void 0!==n&&!w){if(o&&n===s?.data&&t.select===this.#A)n=this.#N;else try{this.#A=t.select,n=t.select(n),n=(0,u.oE)(o?.data,n,t),this.#N=n,this.#O=null}catch(e){this.#O=e}}this.#O&&(b=this.#O,n=this.#N,y=Date.now(),x="error");let E="fetching"===v.fetchStatus,S="pending"===x,k="error"===x,O=S&&E,C=void 0!==n,I={status:x,fetchStatus:v.fetchStatus,isPending:S,isSuccess:"success"===x,isError:k,isInitialLoading:O,isLoading:O,data:n,dataUpdatedAt:v.dataUpdatedAt,error:b,errorUpdatedAt:y,failureCount:v.fetchFailureCount,failureReason:v.fetchFailureReason,errorUpdateCount:v.errorUpdateCount,isFetched:v.dataUpdateCount>0||v.errorUpdateCount>0,isFetchedAfterMount:v.dataUpdateCount>f.dataUpdateCount||v.errorUpdateCount>f.errorUpdateCount,isFetching:E,isRefetching:E&&!S,isLoadingError:k&&!C,isPaused:"paused"===v.fetchStatus,isPlaceholderData:m,isRefetchError:k&&C,isStale:p(e,t),refetch:this.refetch,promise:this.#C};if(this.options.experimental_prefetchInRender){let t=e=>{"error"===I.status?e.reject(I.error):void 0!==I.data&&e.resolve(I.data)},n=()=>{t(this.#C=I.promise=(0,l.O)())},i=this.#C;switch(i.status){case"pending":e.queryHash===r.queryHash&&t(i);break;case"fulfilled":("error"===I.status||I.data!==i.value)&&n();break;case"rejected":("error"!==I.status||I.error!==i.reason)&&n()}}return I}updateResult(){let e=this.#T,t=this.createResult(this.#I,this.options);this.#P=this.#I.state,this.#R=this.options,void 0!==this.#P.data&&(this.#M=this.#I),(0,u.VS)(t,e)||(this.#T=t,this.#G({listeners:(()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,n="function"==typeof t?t():t;if("all"===n||!n&&!this.#V.size)return!0;let r=new Set(n??this.#V);return this.options.throwOnError&&r.add("error"),Object.keys(this.#T).some(t=>this.#T[t]!==e[t]&&r.has(t))})()}))}#W(){let e=this.#d.getQueryCache().build(this.#d,this.options);if(e===this.#I)return;let t=this.#I;this.#I=e,this.#_=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#z()}#G(e){o.Vr.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#T)}),this.#d.getQueryCache().notify({query:this.#I,type:"observerResultsUpdated"})})}};function d(e,t){return!1!==(0,u.Nc)(t.enabled,e)&&void 0===e.state.data&&!("error"===e.state.status&&!1===t.retryOnMount)||void 0!==e.state.data&&f(e,t,t.refetchOnMount)}function f(e,t,n){if(!1!==(0,u.Nc)(t.enabled,e)&&"static"!==(0,u.KC)(t.staleTime,e)){let r="function"==typeof n?n(e):n;return"always"===r||!1!==r&&p(e,t)}return!1}function h(e,t,n,r){return(e!==t||!1===(0,u.Nc)(r.enabled,e))&&(!n.suspense||"error"!==e.state.status)&&p(e,n)}function p(e,t){return!1!==(0,u.Nc)(t.enabled,e)&&e.isStaleByTime((0,u.KC)(t.staleTime,e))}var g=n(97129),v=n(81687);n(26415);var m=g.createContext((r=!1,{clearReset:()=>{r=!1},reset:()=>{r=!0},isReset:()=>r})),b=()=>g.useContext(m),y=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&!t.isReset()&&(e.retryOnMount=!1)},x=e=>{g.useEffect(()=>{e.clearReset()},[e])},w=e=>{let{result:t,errorResetBoundary:n,throwOnError:r,query:i,suspense:o}=e;return t.isError&&!n.isReset()&&!t.isFetching&&i&&(o&&void 0===t.data||(0,u.L3)(r,[t.error,i]))},E=g.createContext(!1),S=()=>g.useContext(E);E.Provider;var k=e=>{if(e.suspense){let t=e=>"static"===e?e:Math.max(e??1e3,1e3),n=e.staleTime;e.staleTime="function"==typeof n?(...e)=>t(n(...e)):t(n),"number"==typeof e.gcTime&&(e.gcTime=Math.max(e.gcTime,1e3))}},O=(e,t)=>e.isLoading&&e.isFetching&&!t,C=(e,t)=>e?.suspense&&t.isPending,I=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function _(e,t){return function(e,t,n){var r,i,a,s,l;let c=S(),d=b(),f=(0,v.NL)(n),h=f.defaultQueryOptions(e);null===(i=f.getDefaultOptions().queries)||void 0===i||null===(r=i._experimental_beforeQuery)||void 0===r||r.call(i,h),h._optimisticResults=c?"isRestoring":"optimistic",k(h),y(h,d),x(d);let p=!f.getQueryCache().get(h.queryHash),[m]=g.useState(()=>new t(f,h)),E=m.getOptimisticResult(h),_=!c&&!1!==e.subscribed;if(g.useSyncExternalStore(g.useCallback(e=>{let t=_?m.subscribe(o.Vr.batchCalls(e)):u.ZT;return m.updateResult(),t},[m,_]),()=>m.getCurrentResult(),()=>m.getCurrentResult()),g.useEffect(()=>{m.setOptions(h)},[h,m]),C(h,E))throw I(h,m,d);if(w({result:E,errorResetBoundary:d,throwOnError:h.throwOnError,query:f.getQueryCache().get(h.queryHash),suspense:h.suspense}))throw E.error;if(null===(s=f.getDefaultOptions().queries)||void 0===s||null===(a=s._experimental_afterQuery)||void 0===a||a.call(s,h,E),h.experimental_prefetchInRender&&!u.sk&&O(E,c)){let e=p?I(h,m,d):null===(l=f.getQueryCache().get(h.queryHash))||void 0===l?void 0:l.promise;null==e||e.catch(u.ZT).finally(()=>{m.updateResult()})}return h.notifyOnChangeProps?E:m.trackResult(E)}(e,c,t)}},26558:function(e,t,n){"use strict";n.d(t,{F:function(){return r}});var r=(e,t=[])=>({parts:(...n)=>{if(o(t))return r(e,n);throw Error("createAnatomy().parts(...) should only be called once. Did you mean to use .extendWith(...) ?")},extendWith:(...n)=>r(e,[...t,...n]),omit:(...n)=>r(e,t.filter(e=>!n.includes(e))),rename:e=>r(e,t),keys:()=>t,build:()=>[...new Set(t)].reduce((t,n)=>Object.assign(t,{[n]:{selector:`&[data-scope="${i(e)}"][data-part="${i(n)}"], & [data-scope="${i(e)}"][data-part="${i(n)}"]`,attrs:{"data-scope":i(e),"data-part":i(n)}}}),{})}),i=e=>e.replace(/([A-Z])([A-Z])/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase(),o=e=>0===e.length},11302:function(e,t,n){"use strict";n.d(t,{G:function(){return p}});var r=new WeakMap,i=new WeakMap,o={},a=0,s=e=>e&&(e.host||s(e.parentNode)),l=(e,t)=>t.map(t=>{if(e.contains(t))return t;let n=s(t);return n&&e.contains(n)?n:(console.error("[zag-js > ariaHidden] target",t,"in not contained inside",e,". Doing nothing"),null)}).filter(e=>!!e),u=e=>!!("next-route-announcer"===e.localName||"script"===e.localName||e.hasAttribute("aria-live"))||e.matches("[data-live-announcer]"),c=(e,t)=>{let{parentNode:n,markerName:s,controlAttribute:c}=t,d=l(n,Array.isArray(e)?e:[e]);o[s]||(o[s]=new WeakMap);let f=o[s],h=[],p=new Set,g=new Set(d),v=e=>{!e||p.has(e)||(p.add(e),v(e.parentNode))};d.forEach(v);let m=e=>{!e||g.has(e)||Array.prototype.forEach.call(e.children,e=>{if(p.has(e))m(e);else try{if(u(e))return;let t=e.getAttribute(c),n="true"===t,o=(r.get(e)||0)+1,a=(f.get(e)||0)+1;r.set(e,o),f.set(e,a),h.push(e),1===o&&n&&i.set(e,!0),1===a&&e.setAttribute(s,""),n||e.setAttribute(c,"true")}catch(t){console.error("[zag-js > ariaHidden] cannot operate on ",e,t)}})};return m(n),p.clear(),a++,()=>{h.forEach(e=>{let t=r.get(e)-1,n=f.get(e)-1;r.set(e,t),f.set(e,n),t||(i.has(e)||e.removeAttribute(c),i.delete(e)),n||e.removeAttribute(s)}),--a||(r=new WeakMap,r=new WeakMap,i=new WeakMap,o={})}},d=e=>(Array.isArray(e)?e[0]:e).ownerDocument.body,f=(e,t=d(e),n="data-aria-hidden")=>{if(t)return c(e,{parentNode:t,markerName:n,controlAttribute:"aria-hidden"})},h=e=>{let t=requestAnimationFrame(()=>e());return()=>cancelAnimationFrame(t)};function p(e,t={}){let{defer:n=!0}=t,r=[];return r.push((n?h:e=>e())(()=>{let t=("function"==typeof e?e():e).filter(Boolean);0!==t.length&&r.push(f(t))})),()=>{r.forEach(e=>e?.())}}},40241:function(e,t,n){"use strict";n.d(t,{$j:function(){return m},Os:function(){return u},u_:function(){return y}});var r=n(26558),i=n(88928),o=n(71490),a=n(20749),s=n(41869),l=n(72766),u=(0,r.F)("checkbox").parts("root","label","control","indicator"),c=u.build(),d=e=>e.ids?.root??`checkbox:${e.id}`,f=e=>e.ids?.label??`checkbox:${e.id}:label`,h=e=>e.ids?.control??`checkbox:${e.id}:control`,p=e=>e.ids?.hiddenInput??`checkbox:${e.id}:input`,g=e=>e.getById(d(e)),v=e=>e.getById(p(e));function m(e,t){let{send:n,context:r,prop:a,computed:s,scope:l}=e,u=a("disabled"),g=a("readOnly"),m=a("invalid"),b=!u&&r.get("focused"),y=!u&&r.get("focusVisible"),x=s("checked"),w=s("indeterminate"),E={"data-active":(0,i.PB)(r.get("active")),"data-focus":(0,i.PB)(b),"data-focus-visible":(0,i.PB)(y),"data-readonly":(0,i.PB)(g),"data-hover":(0,i.PB)(r.get("hovered")),"data-disabled":(0,i.PB)(u),"data-state":w?"indeterminate":x?"checked":"unchecked","data-invalid":(0,i.PB)(m)};return{checked:x,disabled:u,indeterminate:w,focused:b,checkedState:x,setChecked(e){n({type:"CHECKED.SET",checked:e,isTrusted:!1})},toggleChecked(){n({type:"CHECKED.TOGGLE",checked:x,isTrusted:!1})},getRootProps:()=>t.label({...c.root.attrs,...E,dir:a("dir"),id:d(l),htmlFor:p(l),onPointerMove(){u||n({type:"CONTEXT.SET",context:{hovered:!0}})},onPointerLeave(){u||n({type:"CONTEXT.SET",context:{hovered:!1}})},onClick(e){(0,i.NI)(e)===v(l)&&e.stopPropagation()}}),getLabelProps:()=>t.element({...c.label.attrs,...E,dir:a("dir"),id:f(l)}),getControlProps:()=>t.element({...c.control.attrs,...E,dir:a("dir"),id:h(l),"aria-hidden":!0}),getIndicatorProps:()=>t.element({...c.indicator.attrs,...E,dir:a("dir"),hidden:!w&&!x}),getHiddenInputProps:()=>t.input({id:p(l),type:"checkbox",required:a("required"),defaultChecked:x,disabled:u,"aria-labelledby":f(l),"aria-invalid":m,name:a("name"),form:a("form"),value:a("value"),style:i.NL,onFocus(){n({type:"CONTEXT.SET",context:{focused:!0,focusVisible:(0,o.E)()}})},onBlur(){n({type:"CONTEXT.SET",context:{focused:!1,focusVisible:!1}})},onClick(e){if(g){e.preventDefault();return}n({type:"CHECKED.SET",checked:e.currentTarget.checked,isTrusted:!0})}})}}var{not:b}=(0,a.Fb)(),y=(0,a.C8)({props:({props:e})=>({value:"on",...e,defaultChecked:!!e.defaultChecked}),initialState:()=>"ready",context:({prop:e,bindable:t})=>({checked:t(()=>({defaultValue:e("defaultChecked"),value:e("checked"),onChange(t){e("onCheckedChange")?.({checked:t})}})),fieldsetDisabled:t(()=>({defaultValue:!1})),focusVisible:t(()=>({defaultValue:!1})),active:t(()=>({defaultValue:!1})),focused:t(()=>({defaultValue:!1})),hovered:t(()=>({defaultValue:!1}))}),watch({track:e,context:t,prop:n,action:r}){e([()=>n("disabled")],()=>{r(["removeFocusIfNeeded"])}),e([()=>t.get("checked")],()=>{r(["syncInputElement"])})},effects:["trackFormControlState","trackPressEvent","trackFocusVisible"],on:{"CHECKED.TOGGLE":[{guard:b("isTrusted"),actions:["toggleChecked","dispatchChangeEvent"]},{actions:["toggleChecked"]}],"CHECKED.SET":[{guard:b("isTrusted"),actions:["setChecked","dispatchChangeEvent"]},{actions:["setChecked"]}],"CONTEXT.SET":{actions:["setContext"]}},computed:{indeterminate:({context:e})=>x(e.get("checked")),checked:({context:e})=>{var t;return!x(t=e.get("checked"))&&!!t},disabled:({context:e,prop:t})=>!!t("disabled")||e.get("fieldsetDisabled")},states:{ready:{}},implementations:{guards:{isTrusted:({event:e})=>!!e.isTrusted},effects:{trackPressEvent({context:e,computed:t,scope:n}){if(!t("disabled"))return(0,i.Tx)({pointerNode:g(n),keyboardNode:v(n),isValidKey:e=>" "===e.key,onPress:()=>e.set("active",!1),onPressStart:()=>e.set("active",!0),onPressEnd:()=>e.set("active",!1)})},trackFocusVisible({computed:e,scope:t}){if(!e("disabled"))return(0,o.BT)({root:t.getRootNode?.()})},trackFormControlState:({context:e,scope:t})=>(0,i.NS)(v(t),{onFieldsetDisabledChange(t){e.set("fieldsetDisabled",t)},onFormReset(){e.set("checked",e.initial("checked"))}})},actions:{setContext({context:e,event:t}){for(let n in t.context)e.set(n,t.context[n])},syncInputElement({context:e,computed:t,scope:n}){let r=v(n);r&&((0,i.T0)(r,t("checked")),r.indeterminate=x(e.get("checked")))},removeFocusIfNeeded({context:e,prop:t}){t("disabled")&&e.get("focused")&&(e.set("focused",!1),e.set("focusVisible",!1))},setChecked({context:e,event:t}){e.set("checked",t.checked)},toggleChecked({context:e,computed:t}){let n=!!x(t("checked"))||!t("checked");e.set("checked",n)},dispatchChangeEvent({computed:e,scope:t}){queueMicrotask(()=>{let n=v(t);(0,i.FW)(n,{checked:e("checked")})})}}}});function x(e){return"indeterminate"===e}var w=(0,s.e)()(["defaultChecked","checked","dir","disabled","form","getRootNode","id","ids","invalid","name","onCheckedChange","readOnly","required","value"]);(0,l.xQ)(w)},20749:function(e,t,n){"use strict";n.d(t,{Bo:function(){return g},C8:function(){return h},Fb:function(){return f},My:function(){return v},X$:function(){return d},cY:function(){return p},dG:function(){return c},tp:function(){return m}});var r,i=n(72766),o=n(88928),a=(...e)=>e.map(e=>e?.trim?.()).filter(Boolean).join(" "),s=/((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g,l=e=>{let t;let n={};for(;t=s.exec(e);)n[t[1]]=t[2];return n},u=(e,t)=>{if((0,i.HD)(e)){if((0,i.HD)(t))return`${e};${t}`;e=l(e)}else(0,i.HD)(t)&&(t=l(t));return Object.assign({},e??{},t??{})};function c(...e){let t={};for(let n of e){for(let e in t){if(e.startsWith("on")&&"function"==typeof t[e]&&"function"==typeof n[e]){t[e]=(0,i.PP)(n[e],t[e]);continue}if("className"===e||"class"===e){t[e]=a(t[e],n[e]);continue}if("style"===e){t[e]=u(t[e],n[e]);continue}t[e]=void 0!==n[e]?n[e]:t[e]}for(let e in n)void 0===t[e]&&(t[e]=n[e])}return t}function d(e,t,n){let r,o=[];return a=>{let s=e(a);return(s.length!==o.length||s.some((e,t)=>!(0,i.Xy)(o[t],e)))&&(o=s,r=t(...s),n?.onChange?.(r)),r}}function f(){return{and:(...e)=>function(t){return e.every(e=>t.guard(e))},or:(...e)=>function(t){return e.some(e=>t.guard(e))},not:e=>function(t){return!t.guard(e)}}}function h(e){return e}function p(){return{guards:f(),createMachine:e=>e,choose:e=>function({choose:t}){return t(e)?.actions}}}var g=((r=g||{}).NotStarted="Not Started",r.Started="Started",r.Stopped="Stopped",r),v="__init__";function m(e){let t=()=>e.getRootNode?.()??document,n=()=>(0,o.Me)(t()),r=()=>(0,o.vY)(t());return{...e,getRootNode:t,getDoc:n,getWin:()=>n().defaultView??window,getActiveElement:r,isActiveElement:e=>e===r(),getById:e=>t().getElementById(e)}}},68348:function(e,t,n){"use strict";n.d(t,{$j:function(){return _},Os:function(){return f},u_:function(){return T}});var r=n(26558),i=n(11302),o=n(20749),a=n(83331),s=n(88928),l=n(79571),u=n(89274),c=n(41869),d=n(72766),f=(0,r.F)("dialog").parts("trigger","backdrop","positioner","content","title","description","closeTrigger"),h=f.build(),p=e=>e.ids?.positioner??`dialog:${e.id}:positioner`,g=e=>e.ids?.backdrop??`dialog:${e.id}:backdrop`,v=e=>e.ids?.content??`dialog:${e.id}:content`,m=e=>e.ids?.trigger??`dialog:${e.id}:trigger`,b=e=>e.ids?.title??`dialog:${e.id}:title`,y=e=>e.ids?.description??`dialog:${e.id}:description`,x=e=>e.ids?.closeTrigger??`dialog:${e.id}:close`,w=e=>e.getById(v(e)),E=e=>e.getById(p(e)),S=e=>e.getById(g(e)),k=e=>e.getById(m(e)),O=e=>e.getById(b(e)),C=e=>e.getById(y(e)),I=e=>e.getById(x(e));function _(e,t){let{state:n,send:r,context:i,prop:o,scope:a}=e,s=o("aria-label"),l=n.matches("open");return{open:l,setOpen(e){n.matches("open")!==e&&r({type:e?"OPEN":"CLOSE"})},getTriggerProps:()=>t.button({...h.trigger.attrs,dir:o("dir"),id:m(a),"aria-haspopup":"dialog",type:"button","aria-expanded":l,"data-state":l?"open":"closed","aria-controls":v(a),onClick(e){e.defaultPrevented||r({type:"TOGGLE"})}}),getBackdropProps:()=>t.element({...h.backdrop.attrs,dir:o("dir"),hidden:!l,id:g(a),"data-state":l?"open":"closed"}),getPositionerProps:()=>t.element({...h.positioner.attrs,dir:o("dir"),id:p(a),style:{pointerEvents:l?void 0:"none"}}),getContentProps(){let e=i.get("rendered");return t.element({...h.content.attrs,dir:o("dir"),role:o("role"),hidden:!l,id:v(a),tabIndex:-1,"data-state":l?"open":"closed","aria-modal":!0,"aria-label":s||void 0,"aria-labelledby":s||!e.title?void 0:b(a),"aria-describedby":e.description?y(a):void 0})},getTitleProps:()=>t.element({...h.title.attrs,dir:o("dir"),id:b(a)}),getDescriptionProps:()=>t.element({...h.description.attrs,dir:o("dir"),id:y(a)}),getCloseTriggerProps:()=>t.button({...h.closeTrigger.attrs,dir:o("dir"),id:x(a),type:"button",onClick(e){e.defaultPrevented||(e.stopPropagation(),r({type:"CLOSE"}))}})}}var T=(0,o.C8)({props({props:e,scope:t}){let n="alertdialog"===e.role,r=n?()=>I(t):void 0;return{role:"dialog",modal:!0,trapFocus:!0,preventScroll:!0,closeOnInteractOutside:!n,closeOnEscape:!0,restoreFocus:!0,initialFocusEl:r,...e}},initialState:({prop:e})=>e("open")||e("defaultOpen")?"open":"closed",context:({bindable:e})=>({rendered:e(()=>({defaultValue:{title:!0,description:!0}}))}),watch({track:e,action:t,prop:n}){e([()=>n("open")],()=>{t(["toggleVisibility"])})},states:{open:{entry:["checkRenderedElements","syncZIndex"],effects:["trackDismissableElement","trapFocus","preventScroll","hideContentBelow"],on:{"CONTROLLED.CLOSE":{target:"closed"},CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],TOGGLE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}]}},closed:{on:{"CONTROLLED.OPEN":{target:"open"},OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}],TOGGLE:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}]}}},implementations:{guards:{isOpenControlled:({prop:e})=>void 0!=e("open")},effects:{trackDismissableElement:({scope:e,send:t,prop:n})=>(0,a.A)(()=>w(e),{defer:!0,pointerBlocking:n("modal"),exclude:[k(e)],onInteractOutside(e){n("onInteractOutside")?.(e),n("closeOnInteractOutside")||e.preventDefault()},persistentElements:n("persistentElements"),onFocusOutside:n("onFocusOutside"),onPointerDownOutside:n("onPointerDownOutside"),onEscapeKeyDown(e){n("onEscapeKeyDown")?.(e),n("closeOnEscape")||e.preventDefault()},onDismiss(){t({type:"CLOSE",src:"interact-outside"})}}),preventScroll({scope:e,prop:t}){if(t("preventScroll"))return(0,u.M)(e.getDoc())},trapFocus({scope:e,prop:t}){if(t("trapFocus")&&t("modal"))return(0,l.S)(()=>w(e),{preventScroll:!0,returnFocusOnDeactivate:!!t("restoreFocus"),initialFocus:t("initialFocusEl"),setReturnFocus:e=>t("finalFocusEl")?.()??e})},hideContentBelow({scope:e,prop:t}){if(t("modal"))return(0,i.G)(()=>[w(e)],{defer:!0})}},actions:{checkRenderedElements({context:e,scope:t}){(0,s.Wn)(()=>{e.set("rendered",{title:!!O(t),description:!!C(t)})})},syncZIndex({scope:e}){(0,s.Wn)(()=>{let t=w(e);if(!t)return;let n=(0,s.Dx)(t);[E(e),S(e)].forEach(e=>{e?.style.setProperty("--z-index",n.zIndex)})})},invokeOnClose({prop:e}){e("onOpenChange")?.({open:!1})},invokeOnOpen({prop:e}){e("onOpenChange")?.({open:!0})},toggleVisibility({prop:e,send:t,event:n}){t({type:e("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:n})}}}}),P=(0,c.e)()(["aria-label","closeOnEscape","closeOnInteractOutside","dir","finalFocusEl","getRootNode","getRootNode","id","id","ids","initialFocusEl","modal","onEscapeKeyDown","onFocusOutside","onInteractOutside","onOpenChange","onPointerDownOutside","defaultOpen","open","persistentElements","preventScroll","restoreFocus","role","trapFocus"]);(0,d.xQ)(P)},83331:function(e,t,n){"use strict";n.d(t,{A:function(){return u},B:function(){return c}});var r,i=n(88928),o=n(43868),a=n(72766),s={layers:[],branches:[],count(){return this.layers.length},pointerBlockingLayers(){return this.layers.filter(e=>e.pointerBlocking)},topMostPointerBlockingLayer(){return[...this.pointerBlockingLayers()].slice(-1)[0]},hasPointerBlockingLayer(){return this.pointerBlockingLayers().length>0},isBelowPointerBlockingLayer(e){return this.indexOf(e)<(this.topMostPointerBlockingLayer()?this.indexOf(this.topMostPointerBlockingLayer()?.node):-1)},isTopMost(e){let t=this.layers[this.count()-1];return t?.node===e},getNestedLayers(e){return Array.from(this.layers).slice(this.indexOf(e)+1)},isInNestedLayer(e,t){return this.getNestedLayers(e).some(e=>(0,i.r3)(e.node,t))},isInBranch(e){return Array.from(this.branches).some(t=>(0,i.r3)(t,e))},add(e){let t=this.layers.push(e);e.node.style.setProperty("--layer-index",`${t}`)},addBranch(e){this.branches.push(e)},remove(e){let t=this.indexOf(e);t<0||(t<this.count()-1&&this.getNestedLayers(e).forEach(e=>e.dismiss()),this.layers.splice(t,1),e.style.removeProperty("--layer-index"))},removeBranch(e){let t=this.branches.indexOf(e);t>=0&&this.branches.splice(t,1)},indexOf(e){return this.layers.findIndex(t=>t.node===e)},dismiss(e){this.layers[this.indexOf(e)]?.dismiss()},clear(){this.remove(this.layers[0].node)}};function l(){s.layers.forEach(({node:e})=>{e.style.pointerEvents=s.isBelowPointerBlockingLayer(e)?"none":"auto"})}function u(e,t){let{defer:n}=t,u=n?i.Wn:e=>e(),c=[];return c.push(u(()=>{let n=(0,a.mf)(e)?e():e;c.push(function(e,t){var n;let{warnOnMissingNode:u=!0}=t;if(u&&!e){(0,a.ZK)("[@zag-js/dismissable] node is `null` or `undefined`");return}if(!e)return;let{onDismiss:c,pointerBlocking:d,exclude:f,debug:h}=t;s.add({dismiss:c,node:e,pointerBlocking:d}),l();let p=[d?function(e,t){let n=(0,i.Me)(e),o=[];if(s.hasPointerBlockingLayer()&&!n.body.hasAttribute("data-inert")&&(r=document.body.style.pointerEvents,queueMicrotask(()=>{n.body.style.pointerEvents="none",n.body.setAttribute("data-inert","")})),t){let e=(0,i.Sn)(t,e=>{o.push((0,i.A_)(e,{pointerEvents:"auto"}))});o.push(e)}return()=>{s.hasPointerBlockingLayer()||(queueMicrotask(()=>{n.body.style.pointerEvents=r,n.body.removeAttribute("data-inert"),0===n.body.style.length&&n.body.removeAttribute("style")}),o.forEach(e=>e()))}}(e,t.persistentElements):void 0,(n=function(n){s.isTopMost(e)&&(t.onEscapeKeyDown?.(n),!n.defaultPrevented&&c&&(n.preventDefault(),c()))},(0,i.EV)((0,i.Me)(e),"keydown",e=>{"Escape"===e.key&&(e.isComposing||n?.(e))},{capture:!0})),(0,o.J)(e,{exclude:function(n){if(!e)return!1;let r="function"==typeof f?f():f,o=Array.isArray(r)?r:[r],a=t.persistentElements?.map(e=>e()).filter(i.DV);return a&&o.push(...a),o.some(e=>(0,i.r3)(e,n))||s.isInNestedLayer(e,n)},onFocusOutside:function(e){let n=(0,i.NI)(e.detail.originalEvent);!s.isInBranch(n)&&(t.onFocusOutside?.(e),t.onInteractOutside?.(e),e.defaultPrevented||(h&&console.log("onFocusOutside:",e.detail.originalEvent),c?.()))},onPointerDownOutside:function(n){let r=(0,i.NI)(n.detail.originalEvent);!(s.isBelowPointerBlockingLayer(e)||s.isInBranch(r))&&(t.onPointerDownOutside?.(n),t.onInteractOutside?.(n),n.defaultPrevented||(h&&console.log("onPointerDownOutside:",n.detail.originalEvent),c?.()))},defer:t.defer})];return()=>{s.remove(e),l(),e.style.pointerEvents="",p.forEach(e=>e?.())}}(n,t))})),()=>{c.forEach(e=>e?.())}}function c(e,t={}){let{defer:n}=t,r=n?i.Wn:e=>e(),o=[];return o.push(r(()=>{let t=(0,a.mf)(e)?e():e;if(!t){(0,a.ZK)("[@zag-js/dismissable] branch node is `null` or `undefined`");return}s.addBranch(t),o.push(()=>{s.removeBranch(t)})})),()=>{o.forEach(e=>e?.())}}},88928:function(e,t,n){"use strict";function r(e){if(!e)return;let t=e.selectionStart??0;0===Math.abs((e.selectionEnd??0)-t)&&0===t&&e.setSelectionRange(e.value.length,e.value.length)}n.d(t,{$k:function(){return T},A_:function(){return eQ},DV:function(){return f},Dx:function(){return _},EB:function(){return ev},EV:function(){return ei},Em:function(){return er},Es:function(){return eq},FW:function(){return eu},FX:function(){return eO},G6:function(){return z},Hx:function(){return E},IO:function(){return eB},J2:function(){return K},Jj:function(){return O},Kt:function(){return eU},Kx:function(){return function e(t,n=[]){let r=e_(t),i=r===t.ownerDocument.body,o=O(r);return i?n.concat(o,o.visualViewport||[],eP(r)?r:[]):n.concat(r,e(r,[]))}},Me:function(){return k},NI:function(){return W},NL:function(){return e1},NS:function(){return ec},P$:function(){return eC},PB:function(){return c},Q2:function(){return ew},Qm:function(){return d},Re:function(){return q},Sn:function(){return e5},Sv:function(){return eG},T0:function(){return es},Tx:function(){return ej},U0:function(){return eJ},Ud:function(){return H},V5:function(){return j},VN:function(){return em},Wn:function(){return ek},Wq:function(){return eb},Y3:function(){return eS},ZX:function(){return eH},Zj:function(){return Z},Zq:function(){return m},b1:function(){return M},cB:function(){return e0},ce:function(){return eK},d3:function(){return eN},dw:function(){return u},g0:function(){return en},gX:function(){return eE},h_:function(){return eV},lG:function(){return ea},lJ:function(){return eF},ne:function(){return ez},pI:function(){return Q},pN:function(){return ex},pW:function(){return Y},qk:function(){return h},r3:function(){return S},rT:function(){return G},rs:function(){return eA},s:function(){return F},sd:function(){return eg},t:function(){return y},tM:function(){return r},uM:function(){return e_},v$:function(){return X},vY:function(){return C},wC:function(){return $},wq:function(){return eI},x$:function(){return el},zT:function(){return eR}});var i=e=>Math.max(0,Math.min(1,e)),o=(e,t)=>e.map((n,r)=>e[(Math.max(t,0)+r)%e.length]),a=(...e)=>t=>e.reduce((e,t)=>t(e),t),s=()=>void 0,l=e=>"object"==typeof e&&null!==e,u=2147483647,c=e=>e?"":void 0,d=e=>e?"true":void 0,f=e=>l(e)&&1===e.nodeType&&"string"==typeof e.nodeName,h=e=>l(e)&&9===e.nodeType,p=e=>l(e)&&e===e.window,g=e=>f(e)?e.localName||"":"#document",v=e=>l(e)&&void 0!==e.nodeType,m=e=>v(e)&&11===e.nodeType&&"host"in e,b=e=>f(e)&&"input"===e.localName,y=e=>!!e?.matches("a[href]"),x=e=>!!f(e)&&(e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0),w=/(textarea|select)/;function E(e){if(null==e||!f(e))return!1;try{return b(e)&&null!=e.selectionStart||w.test(e.localName)||e.isContentEditable||"true"===e.getAttribute("contenteditable")||""===e.getAttribute("contenteditable")}catch{return!1}}function S(e,t){if(!e||!t||!f(e)||!f(t))return!1;let n=t.getRootNode?.();if(e===t||e.contains(t))return!0;if(n&&m(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function k(e){return h(e)?e:p(e)?e.document:e?.ownerDocument??document}function O(e){return m(e)?O(e.host):h(e)?e.defaultView??window:f(e)?e.ownerDocument?.defaultView??window:window}function C(e){let t=e.activeElement;for(;t?.shadowRoot;){let e=t.shadowRoot.activeElement;if(e===t)break;t=e}return t}var I=new WeakMap;function _(e){return I.has(e)||I.set(e,O(e).getComputedStyle(e)),I.get(e)}function T(e,t){let{type:n,quality:r=.92,background:i}=t;if(!e)throw Error("[zag-js > getDataUrl]: Could not find the svg element");let o=O(e),a=o.document,s=e.getBoundingClientRect(),l=e.cloneNode(!0);l.hasAttribute("viewBox")||l.setAttribute("viewBox",`0 0 ${s.width} ${s.height}`);let u="data:image/svg+xml;charset=utf-8,"+encodeURIComponent('<?xml version="1.0" standalone="no"?>\r\n'+new o.XMLSerializer().serializeToString(l));if("image/svg+xml"===n)return Promise.resolve(u).then(e=>(l.remove(),e));let c=o.devicePixelRatio||1,d=a.createElement("canvas"),f=new o.Image;f.src=u,d.width=s.width*c,d.height=s.height*c;let h=d.getContext("2d");return("image/jpeg"===n||i)&&(h.fillStyle=i||"white",h.fillRect(0,0,d.width,d.height)),new Promise(e=>{f.onload=()=>{h?.drawImage(f,0,0,d.width,d.height),e(d.toDataURL(n,r)),l.remove()}})}var P=()=>"undefined"!=typeof document,R=e=>P()&&e.test(function(){let e=navigator.userAgentData;return e?.platform??navigator.platform}()),A=e=>P()&&e.test(function(){let e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(({brand:e,version:t})=>`${e}/${t}`).join(" "):navigator.userAgent}()),N=e=>P()&&e.test(navigator.vendor),M=()=>P()&&!!navigator.maxTouchPoints,L=()=>R(/^iPhone/i),D=()=>R(/^iPad/i)||j()&&navigator.maxTouchPoints>1,F=()=>L()||D(),V=()=>j()||F(),j=()=>R(/^Mac/i),z=()=>V()&&N(/apple/i),U=()=>A(/Firefox/i),B=()=>A(/Android/i);function W(e){let t=e.composedPath?.()??e.nativeEvent?.composedPath?.();return t?.[0]??e.target}var H=e=>S(e.currentTarget,W(e));function $(e){let t=e.currentTarget;if(!t||!t.matches("a[href], button[type='submit'], input[type='submit']"))return!1;let n=1===e.button,r=j()?e.metaKey:e.ctrlKey;return n||r}function q(e){let t=e.currentTarget;if(!t)return!1;let n=t.localName;return!!e.altKey&&("a"===n||"button"===n&&"submit"===t.type||"input"===n&&"submit"===t.type)}function G(e){return(e.nativeEvent??e).isComposing||229===e.keyCode}function K(e){return 1===e.key.length&&!e.ctrlKey&&!e.metaKey}function Z(e){return 0===e.mozInputSource&&!!e.isTrusted||(B()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}var Y=e=>0===e.button,X=e=>2===e.button||j()&&e.ctrlKey&&0===e.button,Q=e=>e.ctrlKey||e.altKey||e.metaKey,J=e=>"touches"in e&&e.touches.length>0,ee={Up:"ArrowUp",Down:"ArrowDown",Esc:"Escape"," ":"Space",",":"Comma",Left:"ArrowLeft",Right:"ArrowRight"},et={ArrowLeft:"ArrowRight",ArrowRight:"ArrowLeft"};function en(e,t={}){let{dir:n="ltr",orientation:r="horizontal"}=t,i=e.key;return i=ee[i]??i,"rtl"===n&&"horizontal"===r&&i in et&&(i=et[i]),i}function er(e,t="client"){let n=J(e)?e.touches[0]||e.changedTouches[0]:e;return{x:n[`${t}X`],y:n[`${t}Y`]}}var ei=(e,t,n,r)=>{let i="function"==typeof e?e():e;return i?.addEventListener(t,n,r),()=>{i?.removeEventListener(t,n,r)}};function eo(e,t){let{type:n="HTMLInputElement",property:r="value"}=t;return Object.getOwnPropertyDescriptor(O(e)[n].prototype,r)??{}}function ea(e,t,n="value"){if(!e)return;let r="input"===e.localName?"HTMLInputElement":"textarea"===e.localName?"HTMLTextAreaElement":"select"===e.localName?"HTMLSelectElement":void 0;if(r){let i=eo(e,{type:r,property:n});i.set?.call(e,t)}e.setAttribute(n,t)}function es(e,t){if(!e)return;let n=eo(e,{type:"HTMLInputElement",property:"checked"});n.set?.call(e,t),t?e.setAttribute("checked",""):e.removeAttribute("checked")}function el(e,t){let{value:n,bubbles:r=!0}=t;if(!e)return;let i=O(e);e instanceof i.HTMLInputElement&&(ea(e,`${n}`),e.dispatchEvent(new i.Event("input",{bubbles:r})))}function eu(e,t){let{checked:n,bubbles:r=!0}=t;if(!e)return;let i=O(e);e instanceof i.HTMLInputElement&&(es(e,n),e.dispatchEvent(new i.Event("click",{bubbles:r})))}function ec(e,t){if(!e)return;let{onFieldsetDisabledChange:n,onFormReset:r}=t,i=[function(e,t){if(!e)return;let n=e.matches("textarea, input, select, button")?e.form:e.closest("form"),r=e=>{e.defaultPrevented||t()};return n?.addEventListener("reset",r,{passive:!0}),()=>n?.removeEventListener("reset",r)}(e,r),function(e,t){let n=e?.closest("fieldset");if(!n)return;t(n.disabled);let r=new(O(n)).MutationObserver(()=>t(n.disabled));return r.observe(n,{attributes:!0,attributeFilter:["disabled"]}),()=>r.disconnect()}(e,n)];return()=>i.forEach(e=>e?.())}var ed=e=>f(e)&&"IFRAME"===e.tagName,ef=e=>!Number.isNaN(parseInt(e.getAttribute("tabindex")||"0",10)),eh=e=>0>parseInt(e.getAttribute("tabindex")||"0",10),ep="input:not([type='hidden']):not([disabled]), select:not([disabled]), textarea:not([disabled]), a[href], button:not([disabled]), [tabindex], iframe, object, embed, area[href], audio[controls], video[controls], [contenteditable]:not([contenteditable='false']), details > summary:first-of-type",eg=(e,t=!1)=>{if(!e)return[];let n=Array.from(e.querySelectorAll(ep));(!0==t||"if-empty"==t&&0===n.length)&&f(e)&&ev(e)&&n.unshift(e);let r=n.filter(ev);return r.forEach((e,t)=>{if(ed(e)&&e.contentDocument){let n=e.contentDocument.body;r.splice(t,1,...eg(n))}}),r};function ev(e){return!(!e||e.closest("[inert]"))&&e.matches(ep)&&x(e)}function em(e,t){if(!e)return[];let n=Array.from(e.querySelectorAll(ep)),r=n.filter(eb);return(t&&eb(e)&&r.unshift(e),r.forEach((e,t)=>{if(ed(e)&&e.contentDocument){let n=em(e.contentDocument.body);r.splice(t,1,...n)}}),!r.length&&t)?n:r}function eb(e){return null!=e&&e.tabIndex>0||ev(e)&&!eh(e)}function ey(e,t){let n=em(e,t);return[n[0]||null,n[n.length-1]||null]}function ex(e){return e.tabIndex<0&&(/^(audio|video|details)$/.test(e.localName)||E(e))&&!ef(e)?0:e.tabIndex}function ew(e){let{root:t,getInitialEl:n,filter:r,enabled:i=!0}=e;if(!i)return;let o=null;if((o="function"==typeof n?n():n)||(o=t?.querySelector("[data-autofocus],[autofocus]")),!o){let e=em(t);o=r?e.filter(r)[0]:e[0]}return o||t||void 0}function eE(e){let t=e.currentTarget;if(!t)return!1;let[n,r]=ey(t),i=t.ownerDocument||document;return(i.activeElement!==n||!e.shiftKey)&&(i.activeElement!==r||!!e.shiftKey)&&(!!n||!!r)}function eS(e){let t=new Set;function n(e){let n=globalThis.requestAnimationFrame(e);t.add(()=>globalThis.cancelAnimationFrame(n))}return n(()=>n(e)),function(){t.forEach(e=>e())}}function ek(e){let t;let n=globalThis.requestAnimationFrame(()=>{t=e()});return()=>{globalThis.cancelAnimationFrame(n),t?.()}}function eO(e,t){let{defer:n}=t,r=[];return r.push((n?ek:e=>e())(()=>{let n="function"==typeof e?e():e;r.push(function(e,t){if(!e)return;let{attributes:n,callback:r}=t,i=new(e.ownerDocument.defaultView||window).MutationObserver(e=>{for(let t of e)"attributes"===t.type&&t.attributeName&&n.includes(t.attributeName)&&r(t)});return i.observe(e,{attributes:!0,attributeFilter:n}),()=>i.disconnect()}(n,t))})),()=>{r.forEach(e=>e?.())}}function eC(e,t){let{defer:n}=t,r=[];return r.push((n?ek:e=>e())(()=>{let n="function"==typeof e?e():e;r.push(function(e,t){let{callback:n}=t;if(!e)return;let r=new(e.ownerDocument.defaultView||window).MutationObserver(n);return r.observe(e,{childList:!0,subtree:!0}),()=>r.disconnect()}(n,t))})),()=>{r.forEach(e=>e?.())}}function eI(e){let t=()=>{let t=O(e);e.dispatchEvent(new t.MouseEvent("click"))};U()?function(e,t,n){let r=ek(()=>{e.removeEventListener(t,i,!0),n()}),i=()=>{r(),n()};return e.addEventListener(t,i,{once:!0,capture:!0}),r}(e,"keyup",t):queueMicrotask(t)}function e_(e){let t=function(e){if("html"===g(e))return e;let t=e.assignedSlot||e.parentNode||m(e)&&e.host||k(e).documentElement;return m(t)?t.host:t}(e);return["html","body","#document"].includes(g(t))?k(t).body:f(t)&&eP(t)?t:e_(t)}var eT=/auto|scroll|overlay|hidden|clip/;function eP(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=O(e).getComputedStyle(e);return eT.test(t+r+n)&&!["inline","contents"].includes(i)}function eR(e,t){let{rootEl:n,...r}=t||{};e&&n&&eP(n)&&(n.scrollHeight>n.clientHeight||n.scrollWidth>n.clientWidth)&&e.scrollIntoView(r)}function eA(e,t){let{left:n,top:r,width:o,height:a}=t.getBoundingClientRect(),s={x:e.x-n,y:e.y-r},l={x:i(s.x/o),y:i(s.y/a)};return{offset:s,percent:l,getPercentValue:function(e={}){let{dir:t="ltr",orientation:n="horizontal",inverted:r}=e,i="object"==typeof r?r.x:r,o="object"==typeof r?r.y:r;return"horizontal"===n?"rtl"===t||i?1-l.x:l.x:o?1-l.y:l.y}}}function eN(e,t){let n=e.body,r=()=>!!e.pointerLockElement;if(!("pointerLockElement"in e||"mozPointerLockElement"in e))return;try{n.requestPointerLock()}catch{}let i=[ei(e,"pointerlockchange",function(){t?.(r())},!1),ei(e,"pointerlockerror",function(n){r()&&t?.(!1),console.error("PointerLock error occurred:",n),e.exitPointerLock()},!1)];return()=>{i.forEach(e=>e()),e.exitPointerLock()}}var eM="default",eL="",eD=new WeakMap;function eF(e={}){let{defer:t,target:n,...r}=e,i=[];return i.push((t?ek:e=>e())(()=>{let e="function"==typeof n?n():n;i.push(function(e={}){let{target:t,doc:n}=e,r=n??document,i=r.documentElement;return F()?("default"===eM&&(eL=i.style.webkitUserSelect,i.style.webkitUserSelect="none"),eM="disabled"):t&&(eD.set(t,t.style.userSelect),t.style.userSelect="none"),()=>(function(e={}){let{target:t,doc:n}=e,r=(n??document).documentElement;if(F()){if("disabled"!==eM)return;eM="restoring",setTimeout(()=>{eS(()=>{"restoring"===eM&&("none"===r.style.webkitUserSelect&&(r.style.webkitUserSelect=eL||""),eL="",eM="default")})},300)}else if(t&&eD.has(t)){let e=eD.get(t);"none"===t.style.userSelect&&(t.style.userSelect=e??""),""===t.getAttribute("style")&&t.removeAttribute("style"),eD.delete(t)}})({target:t,doc:r})}({...r,target:e}))})),()=>{i.forEach(e=>e?.())}}function eV(e,t){let{onPointerMove:n,onPointerUp:r}=t,i=[ei(e,"pointermove",e=>{let t=er(e);if(!(Math.sqrt(t.x**2+t.y**2)<("touch"===e.pointerType?10:5))){if("mouse"===e.pointerType&&0===e.button){r();return}n({point:t,event:e})}},!1),ei(e,"pointerup",r,!1),ei(e,"pointercancel",r,!1),ei(e,"contextmenu",r,!1),eF({doc:e})];return()=>{i.forEach(e=>e())}}function ej(e){let{pointerNode:t,keyboardNode:n=t,onPress:r,onPressStart:i,onPressEnd:o,isValidKey:l=e=>"Enter"===e.key}=e;if(!t)return s;let u=O(t),c=k(t),d=s,f=s,h=s,p=e=>({point:er(e),event:e});function g(e){o?.(p(e))}let v=ei(t,"pointerdown",e=>{f(),f=a(ei(u,"pointerup",e=>{S(t,W(e))?r?.(p(e)):o?.(p(e))},{passive:!r,once:!0}),ei(u,"pointercancel",g,{passive:!o,once:!0})),c.activeElement===n&&"mouse"===e.pointerType&&e.preventDefault(),i?.(p(e))},{passive:!i});return d=a(v,ei(n,"focus",function(){h=a(ei(n,"keydown",e=>{var t;l(e)&&(f(),f=ei(n,"keyup",e=>{if(!l(e))return;let t=p(new u.PointerEvent("pointerup"));r?.(t),o?.(t)}),t=new u.PointerEvent("pointerdown"),i?.(p(t)))}),ei(n,"blur",()=>{g(new u.PointerEvent("pointercancel"))}))})),()=>{d(),f(),h()}}function ez(e,t){let{defer:n,triggerElement:r,...i}=t,o=[];return o.push((n?ek:e=>e())(()=>{let t="function"==typeof e?e():e,n="function"==typeof r?r():r;o.push(function(e,t={}){let{triggerElement:n,onFocus:r,onFocusEnter:i}=t,o=e?.ownerDocument||document,a=o.body;return ei(o,"keydown",function(t){if("Tab"!==t.key)return;let s=null,[l,u]=ey(e,!0),c=function(e,t){let n=em(e),r=e?.ownerDocument||document,i=t??r.activeElement;if(!i)return null;let o=n.indexOf(i);return n[o+1]||null}(a,n),d=!l&&!u;t.shiftKey&&c===o.activeElement?(i?.(),s=u):t.shiftKey&&(o.activeElement===l||d)?s=n:t.shiftKey||o.activeElement!==n?!t.shiftKey&&(o.activeElement===u||d)&&(s=c):(i?.(),s=l),s&&(t.preventDefault(),"function"==typeof r?r(s):s.focus())},!0)}(t,{triggerElement:n,...i}))})),()=>{o.forEach(e=>e?.())}}function eU(e,t){return Array.from(e?.querySelectorAll(t)??[])}function eB(e,t){return e?.querySelector(t)??null}var eW=e=>e.id;function eH(e,t,n=eW){return e.find(e=>n(e)===t)}function e$(e,t,n=eW){let r=eH(e,t,n);return r?e.indexOf(r):-1}function eq(e,t,n=!0){let r=e$(e,t);return r=n?(r+1)%e.length:Math.min(r+1,e.length-1),e[r]}function eG(e,t,n=!0){let r=e$(e,t);return -1===r?n?e[e.length-1]:null:(r=n?(r-1+e.length)%e.length:Math.max(0,r-1),e[r])}function eK(e,t){let{onEntry:n,measure:r,box:i="border-box"}=t,o=(Array.isArray(e)?e:[e]).filter(f),a=O(o[0]),s=e=>{n({rects:o.map(e=>r(e)),entries:e})};s([]);let l=new a.ResizeObserver(s);return o.forEach(e=>l.observe(e,{box:i})),()=>l.disconnect()}var eZ=e=>e.split("").map(e=>{let t=e.charCodeAt(0);return t>0&&t<128?e:t>=128&&t<=255?`/x${t.toString(16)}`.replace("/","\\"):""}).join("").trim(),eY=e=>eZ(e.dataset?.valuetext??e.textContent??""),eX=(e,t)=>e.trim().toLowerCase().startsWith(t.toLowerCase());function eQ(e,t){if(!e)return s;let n=Object.keys(t).reduce((t,n)=>(t[n]=e.style.getPropertyValue(n),t),{});return Object.assign(e.style,t),()=>{Object.assign(e.style,n),0===e.style.length&&e.removeAttribute("style")}}function eJ(e,t,n){if(!e)return s;let r=e.style.getPropertyValue(t);return e.style.setProperty(t,n),()=>{e.style.setProperty(t,r),0===e.style.length&&e.removeAttribute("style")}}var e0=Object.assign(function(e,t){let{state:n,activeId:r,key:i,timeout:a=350,itemToId:s}=t,l=n.keysSoFar+i,u=l.length>1&&Array.from(l).every(e=>e===l[0])?l[0]:l,c=function(e,t,n,r=eW){let i=n?e$(e,n,r):-1,a=n?o(e,i):e;return 1===t.length&&(a=a.filter(e=>r(e)!==n)),a.find(e=>eX(eY(e),t))}(e.slice(),u,r,s);function d(){clearTimeout(n.timer),n.timer=-1}return!function e(t){n.keysSoFar=t,d(),""!==t&&(n.timer=+setTimeout(()=>{e(""),d()},a))}(l),c},{defaultOptions:{keysSoFar:"",timer:-1},isValidEvent:function(e){return 1===e.key.length&&!e.ctrlKey&&!e.metaKey}}),e1={border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px",whiteSpace:"nowrap",wordWrap:"normal"},e2=1e3/60;function e5(e,t){let n=[];return e?.forEach(e=>{let r=function(e,t){let n=e();if(f(n)&&n.isConnected)return t(n),()=>void 0;{let n=setInterval(()=>{let r=e();f(r)&&r.isConnected&&(t(r),clearInterval(n))},e2);return()=>clearInterval(n)}}(e,t);n.push(r)}),()=>{n.forEach(e=>e())}}},79571:function(e,t,n){"use strict";n.d(t,{S:function(){return g}});var r=n(88928),i=Object.defineProperty,o=(e,t,n)=>t in e?i(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,a=(e,t,n)=>o(e,"symbol"!=typeof t?t+"":t,n),s={activateTrap(e,t){if(e.length>0){let n=e[e.length-1];n!==t&&n.pause()}let n=e.indexOf(t);-1===n||e.splice(n,1),e.push(t)},deactivateTrap(e,t){let n=e.indexOf(t);-1!==n&&e.splice(n,1),e.length>0&&e[e.length-1].unpause()}},l=[],u=class{constructor(e,t){a(this,"trapStack"),a(this,"config"),a(this,"doc"),a(this,"state",{containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0}),a(this,"listenerCleanups",[]),a(this,"handleFocus",e=>{let t=(0,r.NI)(e),n=this.findContainerIndex(t,e)>=0;if(n||(0,r.qk)(t))n&&(this.state.mostRecentlyFocusedNode=t);else{let t;e.stopImmediatePropagation();let n=!0;if(this.state.mostRecentlyFocusedNode){if((0,r.pN)(this.state.mostRecentlyFocusedNode)>0){let e=this.findContainerIndex(this.state.mostRecentlyFocusedNode),{tabbableNodes:r}=this.state.containerGroups[e];if(r.length>0){let e=r.findIndex(e=>e===this.state.mostRecentlyFocusedNode);e>=0&&(this.config.isKeyForward(this.state.recentNavEvent)?e+1<r.length&&(t=r[e+1],n=!1):e-1>=0&&(t=r[e-1],n=!1))}}else this.state.containerGroups.some(e=>e.tabbableNodes.some(e=>(0,r.pN)(e)>0))||(n=!1)}else n=!1;n&&(t=this.findNextNavNode({target:this.state.mostRecentlyFocusedNode,isBackward:this.config.isKeyBackward(this.state.recentNavEvent)})),t?this.tryFocus(t):this.tryFocus(this.state.mostRecentlyFocusedNode||this.getInitialFocusNode())}this.state.recentNavEvent=void 0}),a(this,"handlePointerDown",e=>{let t=(0,r.NI)(e);if(!(this.findContainerIndex(t,e)>=0)){if(d(this.config.clickOutsideDeactivates,e)){this.deactivate({returnFocus:this.config.returnFocusOnDeactivate});return}d(this.config.allowOutsideClick,e)||e.preventDefault()}}),a(this,"handleClick",e=>{let t=(0,r.NI)(e);this.findContainerIndex(t,e)>=0||d(this.config.clickOutsideDeactivates,e)||d(this.config.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())}),a(this,"handleTabKey",e=>{if(this.config.isKeyForward(e)||this.config.isKeyBackward(e)){this.state.recentNavEvent=e;let t=this.config.isKeyBackward(e),n=this.findNextNavNode({event:e,isBackward:t});n&&(c(e)&&e.preventDefault(),this.tryFocus(n))}}),a(this,"handleEscapeKey",e=>{f(e)&&!1!==d(this.config.escapeDeactivates,e)&&(e.preventDefault(),this.deactivate())}),a(this,"_mutationObserver"),a(this,"setupMutationObserver",()=>{let e=this.doc.defaultView||window;this._mutationObserver=new e.MutationObserver(e=>{e.some(e=>Array.from(e.removedNodes).some(e=>e===this.state.mostRecentlyFocusedNode))&&this.tryFocus(this.getInitialFocusNode())})}),a(this,"updateObservedNodes",()=>{this._mutationObserver?.disconnect(),this.state.active&&!this.state.paused&&this.state.containers.map(e=>{this._mutationObserver?.observe(e,{subtree:!0,childList:!0})})}),a(this,"getInitialFocusNode",()=>{let e=this.getNodeForOption("initialFocus",{hasFallback:!0});if(!1===e)return!1;if(void 0===e||e&&!(0,r.EB)(e)){if(this.findContainerIndex(this.doc.activeElement)>=0)e=this.doc.activeElement;else{let t=this.state.tabbableGroups[0];e=t&&t.firstTabbableNode||this.getNodeForOption("fallbackFocus")}}else null===e&&(e=this.getNodeForOption("fallbackFocus"));if(!e)throw Error("Your focus-trap needs to have at least one focusable element");return e.isConnected||(e=this.getNodeForOption("fallbackFocus")),e}),a(this,"tryFocus",e=>{if(!1!==e&&e!==(0,r.vY)(this.doc)){if(!e||!e.focus){this.tryFocus(this.getInitialFocusNode());return}e.focus({preventScroll:!!this.config.preventScroll}),this.state.mostRecentlyFocusedNode=e,p(e)&&e.select()}}),a(this,"deactivate",e=>{if(!this.state.active)return this;let t={onDeactivate:this.config.onDeactivate,onPostDeactivate:this.config.onPostDeactivate,checkCanReturnFocus:this.config.checkCanReturnFocus,...e};clearTimeout(this.state.delayInitialFocusTimer),this.state.delayInitialFocusTimer=void 0,this.removeListeners(),this.state.active=!1,this.state.paused=!1,this.updateObservedNodes(),s.deactivateTrap(this.trapStack,this);let n=this.getOption(t,"onDeactivate"),r=this.getOption(t,"onPostDeactivate"),i=this.getOption(t,"checkCanReturnFocus"),o=this.getOption(t,"returnFocus","returnFocusOnDeactivate");n?.();let a=()=>{h(()=>{if(o){let e=this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation);this.tryFocus(e)}r?.()})};return o&&i?i(this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation)).then(a,a):a(),this}),a(this,"pause",e=>{if(this.state.paused||!this.state.active)return this;let t=this.getOption(e,"onPause"),n=this.getOption(e,"onPostPause");return this.state.paused=!0,t?.(),this.removeListeners(),this.updateObservedNodes(),n?.(),this}),a(this,"unpause",e=>{if(!this.state.paused||!this.state.active)return this;let t=this.getOption(e,"onUnpause"),n=this.getOption(e,"onPostUnpause");return this.state.paused=!1,t?.(),this.updateTabbableNodes(),this.addListeners(),this.updateObservedNodes(),n?.(),this}),a(this,"updateContainerElements",e=>(this.state.containers=Array.isArray(e)?e.filter(Boolean):[e].filter(Boolean),this.state.active&&this.updateTabbableNodes(),this.updateObservedNodes(),this)),a(this,"getReturnFocusNode",e=>{let t=this.getNodeForOption("setReturnFocus",{params:[e]});return t||!1!==t&&e}),a(this,"getOption",(e,t,n)=>e&&void 0!==e[t]?e[t]:this.config[n||t]),a(this,"getNodeForOption",(e,{hasFallback:t=!1,params:n=[]}={})=>{let r=this.config[e];if("function"==typeof r&&(r=r(...n)),!0===r&&(r=void 0),!r){if(void 0===r||!1===r)return r;throw Error(`\`${e}\` was specified but was not a node, or did not return a node`)}let i=r;if("string"==typeof r){try{i=this.doc.querySelector(r)}catch(t){throw Error(`\`${e}\` appears to be an invalid selector; error="${t.message}"`)}if(!i&&!t)throw Error(`\`${e}\` as selector refers to no known node`)}return i}),a(this,"findNextNavNode",e=>{let{event:t,isBackward:n=!1}=e,i=e.target||(0,r.NI)(t);this.updateTabbableNodes();let o=null;if(this.state.tabbableGroups.length>0){let e=this.findContainerIndex(i,t),a=e>=0?this.state.containerGroups[e]:void 0;if(e<0)o=n?this.state.tabbableGroups[this.state.tabbableGroups.length-1].lastTabbableNode:this.state.tabbableGroups[0].firstTabbableNode;else if(n){let n=this.state.tabbableGroups.findIndex(({firstTabbableNode:e})=>i===e);if(n<0&&(a?.container===i||(0,r.EB)(i)&&!(0,r.Wq)(i)&&!a?.nextTabbableNode(i,!1))&&(n=e),n>=0){let e=0===n?this.state.tabbableGroups.length-1:n-1,t=this.state.tabbableGroups[e];o=(0,r.pN)(i)>=0?t.lastTabbableNode:t.lastDomTabbableNode}else c(t)||(o=a?.nextTabbableNode(i,!1))}else{let n=this.state.tabbableGroups.findIndex(({lastTabbableNode:e})=>i===e);if(n<0&&(a?.container===i||(0,r.EB)(i)&&!(0,r.Wq)(i)&&!a?.nextTabbableNode(i))&&(n=e),n>=0){let e=n===this.state.tabbableGroups.length-1?0:n+1,t=this.state.tabbableGroups[e];o=(0,r.pN)(i)>=0?t.firstTabbableNode:t.firstDomTabbableNode}else c(t)||(o=a?.nextTabbableNode(i))}}else o=this.getNodeForOption("fallbackFocus");return o}),this.trapStack=t.trapStack||l;let n={returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:e=>c(e)&&!e.shiftKey,isKeyBackward:e=>c(e)&&e.shiftKey,...t};this.doc=n.document||(0,r.Me)(Array.isArray(e)?e[0]:e),this.config=n,this.updateContainerElements(e),this.setupMutationObserver()}get active(){return this.state.active}get paused(){return this.state.paused}findContainerIndex(e,t){let n="function"==typeof t?.composedPath?t.composedPath():void 0;return this.state.containerGroups.findIndex(({container:t,tabbableNodes:r})=>t.contains(e)||n?.includes(t)||r.find(t=>t===e))}updateTabbableNodes(){if(this.state.containerGroups=this.state.containers.map(e=>{let t=(0,r.VN)(e),n=(0,r.sd)(e),i=t.length>0?t[0]:void 0,o=t.length>0?t[t.length-1]:void 0,a=n.find(e=>(0,r.Wq)(e)),s=n.slice().reverse().find(e=>(0,r.Wq)(e)),l=!!t.find(e=>(0,r.pN)(e)>0);return{container:e,tabbableNodes:t,focusableNodes:n,posTabIndexesFound:l,firstTabbableNode:i,lastTabbableNode:o,firstDomTabbableNode:a,lastDomTabbableNode:s,nextTabbableNode:function(e,i=!0){let o=t.indexOf(e);return o<0?i?n.slice(n.indexOf(e)+1).find(e=>(0,r.Wq)(e)):n.slice(0,n.indexOf(e)).reverse().find(e=>(0,r.Wq)(e)):t[o+(i?1:-1)]}}}),this.state.tabbableGroups=this.state.containerGroups.filter(e=>e.tabbableNodes.length>0),this.state.tabbableGroups.length<=0&&!this.getNodeForOption("fallbackFocus"))throw Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(this.state.containerGroups.find(e=>e.posTabIndexesFound)&&this.state.containerGroups.length>1)throw Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")}addListeners(){if(this.state.active)return s.activateTrap(this.trapStack,this),this.state.delayInitialFocusTimer=this.config.delayInitialFocus?h(()=>{this.tryFocus(this.getInitialFocusNode())}):this.tryFocus(this.getInitialFocusNode()),this.listenerCleanups.push((0,r.EV)(this.doc,"focusin",this.handleFocus,!0),(0,r.EV)(this.doc,"mousedown",this.handlePointerDown,{capture:!0,passive:!1}),(0,r.EV)(this.doc,"touchstart",this.handlePointerDown,{capture:!0,passive:!1}),(0,r.EV)(this.doc,"click",this.handleClick,{capture:!0,passive:!1}),(0,r.EV)(this.doc,"keydown",this.handleTabKey,{capture:!0,passive:!1}),(0,r.EV)(this.doc,"keydown",this.handleEscapeKey)),this}removeListeners(){if(this.state.active)return this.listenerCleanups.forEach(e=>e()),this.listenerCleanups=[],this}activate(e){if(this.state.active)return this;let t=this.getOption(e,"onActivate"),n=this.getOption(e,"onPostActivate"),r=this.getOption(e,"checkCanFocusTrap");r||this.updateTabbableNodes(),this.state.active=!0,this.state.paused=!1,this.state.nodeFocusedBeforeActivation=this.doc.activeElement||null,t?.();let i=()=>{r&&this.updateTabbableNodes(),this.addListeners(),this.updateObservedNodes(),n?.()};return r?r(this.state.containers.concat()).then(i,i):i(),this}},c=e=>"Tab"===e.key,d=(e,...t)=>"function"==typeof e?e(...t):e,f=e=>!e.isComposing&&"Escape"===e.key,h=e=>setTimeout(e,0),p=e=>"input"===e.localName&&"select"in e&&"function"==typeof e.select;function g(e,t={}){let n;let i=(0,r.Wn)(()=>{let i="function"==typeof e?e():e;if(i){n=new u(i,{escapeDeactivates:!1,allowOutsideClick:!0,preventScroll:!0,returnFocusOnDeactivate:!0,delayInitialFocus:!1,fallbackFocus:i,...t,document:(0,r.Me)(i)});try{n.activate()}catch{}}});return function(){n?.deactivate(),i()}}},71490:function(e,t,n){"use strict";n.d(t,{BT:function(){return y},E:function(){return b}});var r=n(88928),i=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]),o=null,a=new Set,s=new Map,l=!1,u=!1,c={Tab:!0,Escape:!0};function d(e,t){for(let n of a)n(e,t)}function f(e){l=!0,e.metaKey||!(0,r.V5)()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key||(o="keyboard",d("keyboard",e))}function h(e){o="pointer",("mousedown"===e.type||"pointerdown"===e.type)&&(l=!0,d("pointer",e))}function p(e){(0,r.Zj)(e)&&(l=!0,o="virtual")}function g(e){let t=(0,r.NI)(e);t!==(0,r.Jj)(t)&&t!==(0,r.Me)(t)&&(l||u||(o="virtual",d("virtual",e)),l=!1,u=!1)}function v(){l=!1,u=!0}var m=(e,t)=>{let n=(0,r.Jj)(e),i=(0,r.Me)(e);s.has(n)&&(n.HTMLElement.prototype.focus=s.get(n).focus,i.removeEventListener("keydown",f,!0),i.removeEventListener("keyup",f,!0),i.removeEventListener("click",p,!0),n.removeEventListener("focus",g,!0),n.removeEventListener("blur",v,!1),void 0!==n.PointerEvent?(i.removeEventListener("pointerdown",h,!0),i.removeEventListener("pointermove",h,!0),i.removeEventListener("pointerup",h,!0)):(i.removeEventListener("mousedown",h,!0),i.removeEventListener("mousemove",h,!0),i.removeEventListener("mouseup",h,!0)),s.delete(n))};function b(){return"keyboard"===o}function y(e={}){let{isTextInput:t,autoFocus:n,onChange:u,root:y}=e;!function(e){if("undefined"==typeof window||s.get((0,r.Jj)(e)))return;let t=(0,r.Jj)(e),n=(0,r.Me)(e),i=t.HTMLElement.prototype.focus;Object.defineProperty(t.HTMLElement.prototype,"focus",{configurable:!0,value:function(){o="virtual",d("virtual",null),l=!0,i.apply(this,arguments)}}),n.addEventListener("keydown",f,!0),n.addEventListener("keyup",f,!0),n.addEventListener("click",p,!0),t.addEventListener("focus",g,!0),t.addEventListener("blur",v,!1),void 0!==t.PointerEvent?(n.addEventListener("pointerdown",h,!0),n.addEventListener("pointermove",h,!0),n.addEventListener("pointerup",h,!0)):(n.addEventListener("mousedown",h,!0),n.addEventListener("mousemove",h,!0),n.addEventListener("mouseup",h,!0)),t.addEventListener("beforeunload",()=>{m(e)},{once:!0}),s.set(t,{focus:i})}(y),u?.({isFocusVisible:n||b(),modality:o});let x=(e,n)=>{(function(e,t,n){let o=n?(0,r.NI)(n):null,a=(0,r.Jj)(o);return!((e=e||o instanceof a.HTMLInputElement&&!i.has(o?.type)||o instanceof a.HTMLTextAreaElement||o instanceof a.HTMLElement&&o.isContentEditable)&&"keyboard"===t&&n instanceof a.KeyboardEvent&&!Reflect.has(c,n.key))})(!!t,e,n)&&u?.({isFocusVisible:b(),modality:e})};return a.add(x),()=>{a.delete(x)}}},43868:function(e,t,n){"use strict";n.d(t,{J:function(){return u}});var r=n(88928),i=n(72766),o="pointerdown.outside",a="focus.outside",s=e=>"clientY"in e;function l(e,t){if(!t||!s(e))return!1;let n=t.scrollHeight>t.clientHeight,r=n&&e.clientX>t.offsetLeft+t.clientWidth,i=t.scrollWidth>t.clientWidth,o=i&&e.clientY>t.offsetTop+t.clientHeight,a={x:t.offsetLeft,y:t.offsetTop,width:t.clientWidth+(n?16:0),height:t.clientHeight+(i?16:0)},l={x:e.clientX,y:e.clientY};return a.y<=l.y&&l.y<=a.y+a.height&&a.x<=l.x&&l.x<=a.x+a.width&&(r||o)}function u(e,t){let{defer:n}=t,u=n?r.Wn:e=>e(),d=[];return d.push(u(()=>{let n="function"==typeof e?e():e;d.push(function(e,t){let{exclude:n,onFocusOutside:u,onPointerDownOutside:d,onInteractOutside:f,defer:h}=t;if(!e)return;let p=(0,r.Me)(e),g=(0,r.Jj)(e),v=function(e){let t={each(t){for(let n=0;n<e.frames?.length;n+=1){let r=e.frames[n];r&&t(r)}},addEventListener:(e,n,r)=>(t.each(t=>{try{t.document.addEventListener(e,n,r)}catch{}}),()=>{try{t.removeEventListener(e,n,r)}catch{}}),removeEventListener(e,n,r){t.each(t=>{try{t.document.removeEventListener(e,n,r)}catch{}})}};return t}(g),m=function(e){let t=null!=e.frameElement?e.parent:null;return{addEventListener:(e,n,r)=>{try{t?.addEventListener(e,n,r)}catch{}return()=>{try{t?.removeEventListener(e,n,r)}catch{}}},removeEventListener:(e,n,r)=>{try{t?.removeEventListener(e,n,r)}catch{}}}}(g);function b(t,i){if(!(0,r.DV)(i)||!i.isConnected||(0,r.r3)(e,i)||function(e,t){if(!s(t)||!e)return!1;let n=e.getBoundingClientRect();return 0!==n.width&&0!==n.height&&n.top<=t.clientY&&t.clientY<=n.top+n.height&&n.left<=t.clientX&&t.clientX<=n.left+n.width}(e,t))return!1;let o=p.querySelector(`[aria-controls="${e.id}"]`);return!(o&&l(t,(0,r.uM)(o))||l(t,(0,r.uM)(e)))&&!n?.(i)}let y=new Set,x=(0,r.Zq)(e?.getRootNode());function w(t){function n(n){let a=h&&!(0,r.b1)()?r.Wn:e=>e(),s=n??t,l=s?.composedPath?.()??[s?.target];a(()=>{let n=x?l[0]:(0,r.NI)(t);if(e&&b(t,n)){if(d||f){let t=(0,i.PP)(d,f);e.addEventListener(o,t,{once:!0})}c(e,o,{bubbles:!1,cancelable:!0,detail:{originalEvent:s,contextmenu:(0,r.v$)(s),focusable:function(e){for(let t of e)if((0,r.DV)(t)&&(0,r.EB)(t))return!0;return!1}(l),target:n}})}})}"touch"===t.pointerType?(y.forEach(e=>e()),y.add((0,r.EV)(p,"click",n,{once:!0})),y.add(m.addEventListener("click",n,{once:!0})),y.add(v.addEventListener("click",n,{once:!0}))):n()}let E=new Set,S=setTimeout(()=>{E.add((0,r.EV)(p,"pointerdown",w,!0)),E.add(m.addEventListener("pointerdown",w,!0)),E.add(v.addEventListener("pointerdown",w,!0))},0);function k(t){(h?r.Wn:e=>e())(()=>{let n=(0,r.NI)(t);if(e&&b(t,n)){if(u||f){let t=(0,i.PP)(u,f);e.addEventListener(a,t,{once:!0})}c(e,a,{bubbles:!1,cancelable:!0,detail:{originalEvent:t,contextmenu:!1,focusable:(0,r.EB)(n),target:n}})}})}return(0,r.b1)()||(E.add((0,r.EV)(p,"focusin",k,!0)),E.add(m.addEventListener("focusin",k,!0)),E.add(v.addEventListener("focusin",k,!0))),()=>{clearTimeout(S),y.forEach(e=>e()),E.forEach(e=>e())}}(n,t))})),()=>{d.forEach(e=>e?.())}}function c(e,t,n){let r=new(e.ownerDocument.defaultView||window).CustomEvent(t,n);return e.dispatchEvent(r)}},60061:function(e,t,n){"use strict";n.d(t,{Os:function(){return v},$j:function(){return B},u_:function(){return q}});var r=n(26558),i=n(20749),o=n(88928),a=n(31298),s=n(72766),l=n(83331),u=(e,t)=>({x:e,y:t}),{min:c,max:d}=Math,{sign:f,abs:h,min:p}=Math,g=n(41869),v=(0,r.F)("menu").parts("arrow","arrowTip","content","contextTrigger","indicator","item","itemGroup","itemGroupLabel","itemIndicator","itemText","positioner","separator","trigger","triggerItem"),m=v.build(),b=e=>e.ids?.trigger??`menu:${e.id}:trigger`,y=e=>e.ids?.contextTrigger??`menu:${e.id}:ctx-trigger`,x=e=>e.ids?.content??`menu:${e.id}:content`,w=e=>e.ids?.arrow??`menu:${e.id}:arrow`,E=e=>e.ids?.positioner??`menu:${e.id}:popper`,S=(e,t)=>e.ids?.group?.(t)??`menu:${e.id}:group:${t}`,k=(e,t)=>`${e.id}/${t}`,O=e=>e?.dataset.value??null,C=(e,t)=>e.ids?.groupLabel?.(t)??`menu:${e.id}:group-label:${t}`,I=e=>e.getById(x(e)),_=e=>e.getById(E(e)),T=e=>e.getById(b(e)),P=(e,t)=>t?e.getById(k(e,t)):null,R=e=>e.getById(y(e)),A=e=>{let t=CSS.escape(x(e)),n=`[role^="menuitem"][data-ownedby=${t}]:not([data-disabled])`;return(0,o.Kt)(I(e),n)},N=e=>(0,s.Ps)(A(e)),M=e=>(0,s.Z$)(A(e)),L=(e,t)=>!!t&&(e.id===t||e.dataset.value===t),D=(e,t)=>{let n=A(e),r=n.findIndex(e=>L(e,t.value));return(0,s.lp)(n,r,{loop:t.loop??t.loopFocus})},F=(e,t)=>{let n=A(e),r=n.findIndex(e=>L(e,t.value));return(0,s.mp)(n,r,{loop:t.loop??t.loopFocus})},V=(e,t)=>{let n=A(e),r=n.find(e=>L(e,t.value));return(0,o.cB)(n,{state:t.typeaheadState,key:t.key,activeId:r?.id??null})},j=e=>(0,o.DV)(e)&&(""===e.dataset.disabled||e.hasAttribute("disabled")),z=e=>!!e?.getAttribute("role")?.startsWith("menuitem")&&!!e?.hasAttribute("aria-controls"),U="menu:select";function B(e,t){let{context:n,send:r,state:l,computed:u,prop:c,scope:d}=e,f=l.hasTag("open"),h=u("isSubmenu"),p=u("isTypingAhead"),g=c("composite"),v=n.get("currentPlacement"),O=n.get("anchorPoint"),I=n.get("highlightedValue"),_=(0,a.hn)({...c("positioning"),placement:O?"bottom":v});function T(e){return{id:k(d,e.value),disabled:!!e.disabled,highlighted:I===e.value}}function R(e){let t=e.valueText??e.value;return{...e,id:e.value,valueText:t}}function A(e){return{...T(R(e)),checked:!!e.checked}}function N(n){let{closeOnSelect:i,valueText:a,value:s}=n,l=T(n),u=k(d,s);return t.element({...m.item.attrs,id:u,role:"menuitem","aria-disabled":(0,o.Qm)(l.disabled),"data-disabled":(0,o.PB)(l.disabled),"data-ownedby":x(d),"data-highlighted":(0,o.PB)(l.highlighted),"data-value":s,"data-valuetext":a,onDragStart(e){e.currentTarget.matches("a[href]")&&e.preventDefault()},onPointerMove(e){if(l.disabled||"mouse"!==e.pointerType)return;let t=e.currentTarget;l.highlighted||r({type:"ITEM_POINTERMOVE",id:u,target:t,closeOnSelect:i})},onPointerLeave(t){!l.disabled&&"mouse"===t.pointerType&&e.event.previous()?.type.includes("POINTER")&&r({type:"ITEM_POINTERLEAVE",id:u,target:t.currentTarget,closeOnSelect:i})},onPointerDown(e){l.disabled||r({type:"ITEM_POINTERDOWN",target:e.currentTarget,id:u,closeOnSelect:i})},onClick(e){(0,o.Re)(e)||(0,o.wC)(e)||l.disabled||r({type:"ITEM_CLICK",target:e.currentTarget,id:u,closeOnSelect:i})}})}return{highlightedValue:I,open:f,setOpen(e){l.hasTag("open")!==e&&r({type:e?"OPEN":"CLOSE"})},setHighlightedValue(e){r({type:"HIGHLIGHTED.SET",value:e})},setParent(e){r({type:"PARENT.SET",value:e,id:e.prop("id")})},setChild(e){r({type:"CHILD.SET",value:e,id:e.prop("id")})},reposition(e={}){r({type:"POSITIONING.SET",options:e})},addItemListener(e){let t=d.getById(e.id);if(!t)return;let n=()=>e.onSelect?.();return t.addEventListener(U,n),()=>t.removeEventListener(U,n)},getContextTriggerProps:()=>t.element({...m.contextTrigger.attrs,dir:c("dir"),id:y(d),onPointerDown(e){"mouse"!==e.pointerType&&r({type:"CONTEXT_MENU_START",point:(0,o.Em)(e)})},onPointerCancel(e){"mouse"!==e.pointerType&&r({type:"CONTEXT_MENU_CANCEL"})},onPointerMove(e){"mouse"!==e.pointerType&&r({type:"CONTEXT_MENU_CANCEL"})},onPointerUp(e){"mouse"!==e.pointerType&&r({type:"CONTEXT_MENU_CANCEL"})},onContextMenu(e){r({type:"CONTEXT_MENU",point:(0,o.Em)(e)}),e.preventDefault()},style:{WebkitTouchCallout:"none",WebkitUserSelect:"none",userSelect:"none"}}),getTriggerItemProps(e){let t=e.getTriggerProps();return(0,i.dG)(N({value:t.id}),t)},getTriggerProps:()=>t.button({...h?m.triggerItem.attrs:m.trigger.attrs,"data-placement":n.get("currentPlacement"),type:"button",dir:c("dir"),id:b(d),"data-uid":c("id"),"aria-haspopup":g?"menu":"dialog","aria-controls":x(d),"aria-expanded":f||void 0,"data-state":f?"open":"closed",onPointerMove(e){if("mouse"!==e.pointerType||j(e.currentTarget)||!h)return;let t=(0,o.Em)(e);r({type:"TRIGGER_POINTERMOVE",target:e.currentTarget,point:t})},onPointerLeave(e){if(j(e.currentTarget)||"mouse"!==e.pointerType||!h)return;let t=(0,o.Em)(e);r({type:"TRIGGER_POINTERLEAVE",target:e.currentTarget,point:t})},onPointerDown(e){!j(e.currentTarget)&&((0,o.v$)(e)||e.preventDefault())},onClick(e){!e.defaultPrevented&&(j(e.currentTarget)||r({type:"TRIGGER_CLICK",target:e.currentTarget}))},onBlur(){r({type:"TRIGGER_BLUR"})},onFocus(){r({type:"TRIGGER_FOCUS"})},onKeyDown(e){if(e.defaultPrevented)return;let t={ArrowDown(){r({type:"ARROW_DOWN"})},ArrowUp(){r({type:"ARROW_UP"})},Enter(){r({type:"ARROW_DOWN",src:"enter"})},Space(){r({type:"ARROW_DOWN",src:"space"})}}[(0,o.g0)(e,{orientation:"vertical",dir:c("dir")})];t&&(e.preventDefault(),t(e))}}),getIndicatorProps:()=>t.element({...m.indicator.attrs,dir:c("dir"),"data-state":f?"open":"closed"}),getPositionerProps:()=>t.element({...m.positioner.attrs,dir:c("dir"),id:E(d),style:_.floating}),getArrowProps:()=>t.element({id:w(d),...m.arrow.attrs,dir:c("dir"),style:_.arrow}),getArrowTipProps:()=>t.element({...m.arrowTip.attrs,dir:c("dir"),style:_.arrowTip}),getContentProps:()=>t.element({...m.content.attrs,id:x(d),"aria-label":c("aria-label"),hidden:!f,"data-state":f?"open":"closed",role:g?"menu":"dialog",tabIndex:0,dir:c("dir"),"aria-activedescendant":u("highlightedId")||void 0,"aria-labelledby":b(d),"data-placement":v,onPointerEnter(e){"mouse"===e.pointerType&&r({type:"MENU_POINTERENTER"})},onKeyDown(e){if(e.defaultPrevented||!(0,o.Ud)(e))return;let t=(0,o.NI)(e);if(!(t?.closest("[role=menu]")===e.currentTarget||t===e.currentTarget))return;if("Tab"===e.key&&!(0,o.gX)(e)){e.preventDefault();return}let n=P(d,I),i={ArrowDown(){r({type:"ARROW_DOWN"})},ArrowUp(){r({type:"ARROW_UP"})},ArrowLeft(){r({type:"ARROW_LEFT"})},ArrowRight(){r({type:"ARROW_RIGHT"})},Enter(){r({type:"ENTER"}),null!=I&&(0,o.t)(n)&&c("navigate")?.({value:I,node:n,href:n.href})},Space(e){p?r({type:"TYPEAHEAD",key:e.key}):i.Enter?.(e)},Home(){r({type:"HOME"})},End(){r({type:"END"})}},a=i[(0,o.g0)(e,{dir:c("dir")})];if(a){a(e),e.stopPropagation(),e.preventDefault();return}!(!c("typeahead")||!(0,o.J2)(e)||(0,o.pI)(e))&&((0,o.Hx)(t)||(r({type:"TYPEAHEAD",key:e.key}),e.preventDefault()))}}),getSeparatorProps:()=>t.element({...m.separator.attrs,role:"separator",dir:c("dir"),"aria-orientation":"horizontal"}),getItemState:T,getItemProps:N,getOptionItemState:A,getOptionItemProps(e){let{type:n,disabled:i,onCheckedChange:a,closeOnSelect:s}=e,l=R(e),u=A(e);return{...N(l),...t.element({"data-type":n,...m.item.attrs,dir:c("dir"),"data-value":l.value,role:`menuitem${n}`,"aria-checked":!!u.checked,"data-state":u.checked?"checked":"unchecked",onClick(e){i||(0,o.Re)(e)||(0,o.wC)(e)||(r({type:"ITEM_CLICK",target:e.currentTarget,option:l,closeOnSelect:s}),a?.(!u.checked))}})}},getItemIndicatorProps(e){let n=A((0,s.pj)(e)),r=n.checked?"checked":"unchecked";return t.element({...m.itemIndicator.attrs,dir:c("dir"),"data-disabled":(0,o.PB)(n.disabled),"data-highlighted":(0,o.PB)(n.highlighted),"data-state":(0,s.m2)(e,"checked")?r:void 0,hidden:(0,s.m2)(e,"checked")?!n.checked:void 0})},getItemTextProps(e){let n=A((0,s.pj)(e)),r=n.checked?"checked":"unchecked";return t.element({...m.itemText.attrs,dir:c("dir"),"data-disabled":(0,o.PB)(n.disabled),"data-highlighted":(0,o.PB)(n.highlighted),"data-state":(0,s.m2)(e,"checked")?r:void 0})},getItemGroupLabelProps:e=>t.element({...m.itemGroupLabel.attrs,id:C(d,e.htmlFor),dir:c("dir")}),getItemGroupProps:e=>t.element({id:S(d,e.id),...m.itemGroup.attrs,dir:c("dir"),"aria-labelledby":C(d,e.id),role:"group"})}}var{not:W,and:H,or:$}=(0,i.Fb)(),q=(0,i.C8)({props:({props:e})=>({closeOnSelect:!0,typeahead:!0,composite:!0,loopFocus:!1,navigate(e){(0,o.wq)(e.node)},...e,positioning:{placement:"bottom-start",gutter:8,...e.positioning}}),initialState:({prop:e})=>e("open")||e("defaultOpen")?"open":"idle",context:({bindable:e,prop:t})=>({suspendPointer:e(()=>({defaultValue:!1})),highlightedValue:e(()=>({defaultValue:t("defaultHighlightedValue")||null,value:t("highlightedValue"),onChange(e){t("onHighlightChange")?.({highlightedValue:e})}})),lastHighlightedValue:e(()=>({defaultValue:null})),currentPlacement:e(()=>({defaultValue:void 0})),intentPolygon:e(()=>({defaultValue:null})),anchorPoint:e(()=>({defaultValue:null,hash:e=>`x: ${e?.x}, y: ${e?.y}`}))}),refs:()=>({parent:null,children:{},typeaheadState:{...o.cB.defaultOptions},positioningOverride:{}}),computed:{isSubmenu:({refs:e})=>null!=e.get("parent"),isRtl:({prop:e})=>"rtl"===e("dir"),isTypingAhead:({refs:e})=>""!==e.get("typeaheadState").keysSoFar,highlightedId:({context:e,scope:t,refs:n})=>(function(e,t,n){let r=Object.keys(e).length>0;if(!t)return null;if(!r)return k(n,t);for(let n in e){let r=b(e[n].scope);if(r===t)return r}return k(n,t)})(n.get("children"),e.get("highlightedValue"),t)},watch({track:e,action:t,context:n,computed:r,prop:i}){e([()=>r("isSubmenu")],()=>{t(["setSubmenuPlacement"])}),e([()=>n.hash("anchorPoint")],()=>{t(["reposition"])}),e([()=>i("open")],()=>{t(["toggleVisibility"])})},on:{"PARENT.SET":{actions:["setParentMenu"]},"CHILD.SET":{actions:["setChildMenu"]},OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}],OPEN_AUTOFOCUS:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["highlightFirstItem","invokeOnOpen"]}],CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],"HIGHLIGHTED.RESTORE":{actions:["restoreHighlightedItem"]},"HIGHLIGHTED.SET":{actions:["setHighlightedItem"]}},states:{idle:{tags:["closed"],on:{"CONTROLLED.OPEN":{target:"open"},"CONTROLLED.CLOSE":{target:"closed"},CONTEXT_MENU_START:{target:"opening:contextmenu",actions:["setAnchorPoint"]},CONTEXT_MENU:[{guard:"isOpenControlled",actions:["setAnchorPoint","invokeOnOpen"]},{target:"open",actions:["setAnchorPoint","invokeOnOpen"]}],TRIGGER_CLICK:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}],TRIGGER_FOCUS:{guard:W("isSubmenu"),target:"closed"},TRIGGER_POINTERMOVE:{guard:"isSubmenu",target:"opening"}}},"opening:contextmenu":{tags:["closed"],effects:["waitForLongPress"],on:{"CONTROLLED.OPEN":{target:"open"},"CONTROLLED.CLOSE":{target:"closed"},CONTEXT_MENU_CANCEL:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],"LONG_PRESS.OPEN":[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}]}},opening:{tags:["closed"],effects:["waitForOpenDelay"],on:{"CONTROLLED.OPEN":{target:"open"},"CONTROLLED.CLOSE":{target:"closed"},BLUR:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],TRIGGER_POINTERLEAVE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],"DELAY.OPEN":[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}]}},closing:{tags:["open"],effects:["trackPointerMove","trackInteractOutside","waitForCloseDelay"],on:{"CONTROLLED.OPEN":{target:"open"},"CONTROLLED.CLOSE":{target:"closed",actions:["focusParentMenu","restoreParentHighlightedItem"]},MENU_POINTERENTER:{target:"open",actions:["clearIntentPolygon"]},POINTER_MOVED_AWAY_FROM_SUBMENU:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["focusParentMenu","restoreParentHighlightedItem"]}],"DELAY.CLOSE":[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["focusParentMenu","restoreParentHighlightedItem","invokeOnClose"]}]}},closed:{tags:["closed"],entry:["clearHighlightedItem","focusTrigger","resumePointer"],on:{"CONTROLLED.OPEN":[{guard:$("isOpenAutoFocusEvent","isArrowDownEvent"),target:"open",actions:["highlightFirstItem"]},{guard:"isArrowUpEvent",target:"open",actions:["highlightLastItem"]},{target:"open"}],CONTEXT_MENU_START:{target:"opening:contextmenu",actions:["setAnchorPoint"]},CONTEXT_MENU:[{guard:"isOpenControlled",actions:["setAnchorPoint","invokeOnOpen"]},{target:"open",actions:["setAnchorPoint","invokeOnOpen"]}],TRIGGER_CLICK:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}],TRIGGER_POINTERMOVE:{guard:"isTriggerItem",target:"opening"},TRIGGER_BLUR:{target:"idle"},ARROW_DOWN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["highlightFirstItem","invokeOnOpen"]}],ARROW_UP:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["highlightLastItem","invokeOnOpen"]}]}},open:{tags:["open"],effects:["trackInteractOutside","trackPositioning","scrollToHighlightedItem"],entry:["focusMenu","resumePointer"],on:{"CONTROLLED.CLOSE":[{target:"closed",guard:"isArrowLeftEvent",actions:["focusParentMenu"]},{target:"closed"}],TRIGGER_CLICK:[{guard:H(W("isTriggerItem"),"isOpenControlled"),actions:["invokeOnClose"]},{guard:W("isTriggerItem"),target:"closed",actions:["invokeOnClose"]}],CONTEXT_MENU:{actions:["setAnchorPoint","focusMenu"]},ARROW_UP:{actions:["highlightPrevItem","focusMenu"]},ARROW_DOWN:{actions:["highlightNextItem","focusMenu"]},ARROW_LEFT:[{guard:H("isSubmenu","isOpenControlled"),actions:["invokeOnClose"]},{guard:"isSubmenu",target:"closed",actions:["focusParentMenu","invokeOnClose"]}],HOME:{actions:["highlightFirstItem","focusMenu"]},END:{actions:["highlightLastItem","focusMenu"]},ARROW_RIGHT:{guard:"isTriggerItemHighlighted",actions:["openSubmenu"]},ENTER:[{guard:"isTriggerItemHighlighted",actions:["openSubmenu"]},{actions:["clickHighlightedItem"]}],ITEM_POINTERMOVE:[{guard:W("isPointerSuspended"),actions:["setHighlightedItem","focusMenu"]},{actions:["setLastHighlightedItem"]}],ITEM_POINTERLEAVE:{guard:H(W("isPointerSuspended"),W("isTriggerItem")),actions:["clearHighlightedItem"]},ITEM_CLICK:[{guard:H(W("isTriggerItemHighlighted"),W("isHighlightedItemEditable"),"closeOnSelect","isOpenControlled"),actions:["invokeOnSelect","setOptionState","closeRootMenu","invokeOnClose"]},{guard:H(W("isTriggerItemHighlighted"),W("isHighlightedItemEditable"),"closeOnSelect"),target:"closed",actions:["invokeOnSelect","setOptionState","closeRootMenu","invokeOnClose"]},{guard:H(W("isTriggerItemHighlighted"),W("isHighlightedItemEditable")),actions:["invokeOnSelect","setOptionState"]},{actions:["setHighlightedItem"]}],TRIGGER_POINTERMOVE:{guard:"isTriggerItem",actions:["setIntentPolygon"]},TRIGGER_POINTERLEAVE:{target:"closing"},ITEM_POINTERDOWN:{actions:["setHighlightedItem"]},TYPEAHEAD:{actions:["highlightMatchedItem"]},FOCUS_MENU:{actions:["focusMenu"]},"POSITIONING.SET":{actions:["reposition"]}}}},implementations:{guards:{closeOnSelect:({prop:e,event:t})=>!!(t?.closeOnSelect??e("closeOnSelect")),isTriggerItem:({event:e})=>z(e.target),isTriggerItemHighlighted:({event:e,scope:t,computed:n})=>{let r=e.target??t.getById(n("highlightedId"));return!!r?.hasAttribute("aria-controls")},isSubmenu:({computed:e})=>e("isSubmenu"),isPointerSuspended:({context:e})=>e.get("suspendPointer"),isHighlightedItemEditable:({scope:e,computed:t})=>(0,o.Hx)(e.getById(t("highlightedId"))),isOpenControlled:({prop:e})=>void 0!==e("open"),isArrowLeftEvent:({event:e})=>e.previousEvent?.type==="ARROW_LEFT",isArrowUpEvent:({event:e})=>e.previousEvent?.type==="ARROW_UP",isArrowDownEvent:({event:e})=>e.previousEvent?.type==="ARROW_DOWN",isOpenAutoFocusEvent:({event:e})=>e.previousEvent?.type==="OPEN_AUTOFOCUS"},effects:{waitForOpenDelay({send:e}){let t=setTimeout(()=>{e({type:"DELAY.OPEN"})},100);return()=>clearTimeout(t)},waitForCloseDelay({send:e}){let t=setTimeout(()=>{e({type:"DELAY.CLOSE"})},300);return()=>clearTimeout(t)},waitForLongPress({send:e}){let t=setTimeout(()=>{e({type:"LONG_PRESS.OPEN"})},700);return()=>clearTimeout(t)},trackPositioning({context:e,prop:t,scope:n,refs:r}){if(R(n))return;let i={...t("positioning"),...r.get("positioningOverride")};return e.set("currentPlacement",i.placement),(0,a.x_)(T(n),()=>_(n),{...i,defer:!0,onComplete(t){e.set("currentPlacement",t.placement)}})},trackInteractOutside({refs:e,scope:t,prop:n,computed:r,send:i}){let a=!0;return(0,l.A)(()=>I(t),{defer:!0,exclude:[T(t)],onInteractOutside:n("onInteractOutside"),onFocusOutside:n("onFocusOutside"),onEscapeKeyDown(t){n("onEscapeKeyDown")?.(t),r("isSubmenu")&&t.preventDefault(),G({parent:e.get("parent")})},onPointerDownOutside(e){let r=(0,o.NI)(e.detail.originalEvent);if((0,o.r3)(R(t),r)&&e.detail.contextmenu){e.preventDefault();return}a=!e.detail.focusable,n("onPointerDownOutside")?.(e)},onDismiss(){i({type:"CLOSE",src:"interact-outside",restoreFocus:a})}})},trackPointerMove({context:e,scope:t,send:n,refs:r,flush:i}){let a=r.get("parent");i(()=>{a.context.set("suspendPointer",!0)});let s=t.getDoc();return(0,o.EV)(s,"pointermove",t=>{var r,i;r=e.get("intentPolygon"),i={x:t.clientX,y:t.clientY},r&&function(e,t){let{x:n,y:r}=t,i=!1;for(let t=0,o=e.length-1;t<e.length;o=t++){let a=e[t].x,s=e[t].y,l=e[o].x,u=e[o].y;s>r!=u>r&&n<(l-a)*(r-s)/(u-s)+a&&(i=!i)}return i}(r,i)||(n({type:"POINTER_MOVED_AWAY_FROM_SUBMENU"}),a.context.set("suspendPointer",!1))})},scrollToHighlightedItem({event:e,scope:t,computed:n}){let r=()=>{if(e.type.startsWith("ITEM_POINTER"))return;let r=t.getById(n("highlightedId")),i=I(t);(0,o.zT)(r,{rootEl:i,block:"nearest"})};return(0,o.Wn)(()=>r()),(0,o.FX)(()=>I(t),{defer:!0,attributes:["aria-activedescendant"],callback:r})}},actions:{setAnchorPoint({context:e,event:t}){e.set("anchorPoint",t.point)},setSubmenuPlacement({computed:e,refs:t}){if(!e("isSubmenu"))return;let n=e("isRtl")?"left-start":"right-start";t.set("positioningOverride",{placement:n,gutter:0})},reposition({context:e,scope:t,prop:n,event:r,refs:i}){let o=e.get("anchorPoint"),s={...n("positioning"),...i.get("positioningOverride")};(0,a.x_)(T(t),()=>_(t),{...s,defer:!0,getAnchorRect:o?()=>({width:0,height:0,...o}):void 0,...r.options??{},listeners:!1,onComplete(t){e.set("currentPlacement",t.placement)}})},setOptionState({event:e}){if(!e.option)return;let{checked:t,onCheckedChange:n,type:r}=e.option;"radio"===r?n?.(!0):"checkbox"===r&&n?.(!t)},clickHighlightedItem({scope:e,computed:t}){let n=e.getById(t("highlightedId"));n&&!n.dataset.disabled&&queueMicrotask(()=>n.click())},setIntentPolygon({context:e,scope:t,event:n}){let r=I(t),i=e.get("currentPlacement");if(!r||!i)return;let o=function(e,t){let{top:n,right:r,left:i,bottom:o}=function(e){let t=u(e.minX,e.minY);return{top:t,right:u(e.maxX,e.minY),bottom:u(e.maxX,e.maxY),left:u(e.minX,e.maxY)}}(function(e){let{x:t,y:n,width:r,height:i}=e,o=t+r/2,a=n+i/2;return{x:t,y:n,width:r,height:i,minX:t,minY:n,maxX:t+r,maxY:n+i,midX:o,midY:a,center:u(o,a)}}(e)),[a]=t.split("-");return({top:[i,n,r,o],right:[n,r,o,i],bottom:[n,i,o,r],left:[r,n,i,o]})[a]}(r.getBoundingClientRect(),i);if(!o)return;let s="right"===(0,a.uH)(i);e.set("intentPolygon",[{...n.point,x:n.point.x+(s?-5:5)},...o])},clearIntentPolygon({context:e}){e.set("intentPolygon",null)},resumePointer({refs:e,flush:t}){let n=e.get("parent");n&&t(()=>{n.context.set("suspendPointer",!1)})},setHighlightedItem({context:e,event:t}){let n=t.value||O(t.target);e.set("highlightedValue",n)},clearHighlightedItem({context:e}){e.set("highlightedValue",null)},focusMenu({scope:e}){(0,o.Wn)(()=>{let t=I(e),n=(0,o.Q2)({root:t,enabled:!(0,o.r3)(t,e.getActiveElement()),filter:e=>!e.role?.startsWith("menuitem")});n?.focus({preventScroll:!0})})},highlightFirstItem({context:e,scope:t}){(I(t)?queueMicrotask:o.Wn)(()=>{let n=N(t);n&&e.set("highlightedValue",O(n))})},highlightLastItem({context:e,scope:t}){(I(t)?queueMicrotask:o.Wn)(()=>{let n=M(t);n&&e.set("highlightedValue",O(n))})},highlightNextItem({context:e,scope:t,event:n,prop:r}){let i=D(t,{loop:n.loop,value:e.get("highlightedValue"),loopFocus:r("loopFocus")});e.set("highlightedValue",O(i))},highlightPrevItem({context:e,scope:t,event:n,prop:r}){let i=F(t,{loop:n.loop,value:e.get("highlightedValue"),loopFocus:r("loopFocus")});e.set("highlightedValue",O(i))},invokeOnSelect({context:e,prop:t,scope:n}){let r=e.get("highlightedValue");null!=r&&(!function(e,t){if(!e)return;let n=new((0,o.Jj)(e)).CustomEvent(U,{detail:{value:t}});e.dispatchEvent(n)}(P(n,r),r),t("onSelect")?.({value:r}))},focusTrigger({scope:e,context:t,event:n,computed:r}){r("isSubmenu")||t.get("anchorPoint")||!1===n.restoreFocus||queueMicrotask(()=>T(e)?.focus({preventScroll:!0}))},highlightMatchedItem({scope:e,context:t,event:n,refs:r}){let i=V(e,{key:n.key,value:t.get("highlightedValue"),typeaheadState:r.get("typeaheadState")});i&&t.set("highlightedValue",O(i))},setParentMenu({refs:e,event:t}){e.set("parent",t.value)},setChildMenu({refs:e,event:t}){let n=e.get("children");n[t.id]=t.value,e.set("children",n)},closeRootMenu({refs:e}){G({parent:e.get("parent")})},openSubmenu({refs:e,scope:t,computed:n}){let r=t.getById(n("highlightedId")),i=r?.getAttribute("data-uid"),o=e.get("children"),a=i?o[i]:null;a?.send({type:"OPEN_AUTOFOCUS"})},focusParentMenu({refs:e}){e.get("parent")?.send({type:"FOCUS_MENU"})},setLastHighlightedItem({context:e,event:t}){e.set("lastHighlightedValue",O(t.target))},restoreHighlightedItem({context:e}){e.get("lastHighlightedValue")&&(e.set("highlightedValue",e.get("lastHighlightedValue")),e.set("lastHighlightedValue",null))},restoreParentHighlightedItem({refs:e}){e.get("parent")?.send({type:"HIGHLIGHTED.RESTORE"})},invokeOnOpen({prop:e}){e("onOpenChange")?.({open:!0})},invokeOnClose({prop:e}){e("onOpenChange")?.({open:!1})},toggleVisibility({prop:e,event:t,send:n}){n({type:e("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:t})}}}});function G(e){let t=e.parent;for(;t&&t.computed("isSubmenu");)t=t.refs.get("parent");t?.send({type:"CLOSE"})}var K=(0,g.e)()(["anchorPoint","aria-label","closeOnSelect","composite","defaultHighlightedValue","defaultOpen","dir","getRootNode","highlightedValue","id","ids","loopFocus","navigate","onEscapeKeyDown","onFocusOutside","onHighlightChange","onInteractOutside","onOpenChange","onPointerDownOutside","onSelect","open","positioning","typeahead"]);(0,s.xQ)(K);var Z=(0,g.e)()(["closeOnSelect","disabled","value","valueText"]);(0,s.xQ)(Z);var Y=(0,g.e)()(["htmlFor"]);(0,s.xQ)(Y);var X=(0,g.e)()(["id"]);(0,s.xQ)(X);var Q=(0,g.e)()(["checked","closeOnSelect","disabled","onCheckedChange","type","value","valueText"]);(0,s.xQ)(Q)},33535:function(e,t,n){"use strict";n.d(t,{$j:function(){return T},Os:function(){return h},u_:function(){return P}});var r=n(26558),i=n(88928),o=n(31298),a=n(11302),s=n(20749),l=n(83331),u=n(79571),c=n(89274),d=n(41869),f=n(72766),h=(0,r.F)("popover").parts("arrow","arrowTip","anchor","trigger","indicator","positioner","content","title","description","closeTrigger"),p=h.build(),g=e=>e.ids?.anchor??`popover:${e.id}:anchor`,v=e=>e.ids?.trigger??`popover:${e.id}:trigger`,m=e=>e.ids?.content??`popover:${e.id}:content`,b=e=>e.ids?.positioner??`popover:${e.id}:popper`,y=e=>e.ids?.arrow??`popover:${e.id}:arrow`,x=e=>e.ids?.title??`popover:${e.id}:title`,w=e=>e.ids?.description??`popover:${e.id}:desc`,E=e=>e.ids?.closeTrigger??`popover:${e.id}:close`,S=e=>e.getById(g(e)),k=e=>e.getById(v(e)),O=e=>e.getById(m(e)),C=e=>e.getById(b(e)),I=e=>e.getById(x(e)),_=e=>e.getById(w(e));function T(e,t){let{state:n,context:r,send:a,computed:s,prop:l,scope:u}=e,c=n.matches("open"),d=r.get("currentPlacement"),f=s("currentPortalled"),h=r.get("renderedElements"),S=(0,o.hn)({...l("positioning"),placement:d});return{portalled:f,open:c,setOpen(e){n.matches("open")!==e&&a({type:e?"OPEN":"CLOSE"})},reposition(e={}){a({type:"POSITIONING.SET",options:e})},getArrowProps:()=>t.element({id:y(u),...p.arrow.attrs,dir:l("dir"),style:S.arrow}),getArrowTipProps:()=>t.element({...p.arrowTip.attrs,dir:l("dir"),style:S.arrowTip}),getAnchorProps:()=>t.element({...p.anchor.attrs,dir:l("dir"),id:g(u)}),getTriggerProps:()=>t.button({...p.trigger.attrs,dir:l("dir"),type:"button","data-placement":d,id:v(u),"aria-haspopup":"dialog","aria-expanded":c,"data-state":c?"open":"closed","aria-controls":m(u),onPointerDown(e){(0,i.pW)(e)&&(0,i.G6)()&&e.currentTarget.focus()},onClick(e){e.defaultPrevented||a({type:"TOGGLE"})},onBlur(e){a({type:"TRIGGER_BLUR",target:e.relatedTarget})}}),getIndicatorProps:()=>t.element({...p.indicator.attrs,dir:l("dir"),"data-state":c?"open":"closed"}),getPositionerProps:()=>t.element({id:b(u),...p.positioner.attrs,dir:l("dir"),style:S.floating}),getContentProps:()=>t.element({...p.content.attrs,dir:l("dir"),id:m(u),tabIndex:-1,role:"dialog",hidden:!c,"data-state":c?"open":"closed","data-expanded":(0,i.PB)(c),"aria-labelledby":h.title?x(u):void 0,"aria-describedby":h.description?w(u):void 0,"data-placement":d}),getTitleProps:()=>t.element({...p.title.attrs,id:x(u),dir:l("dir")}),getDescriptionProps:()=>t.element({...p.description.attrs,id:w(u),dir:l("dir")}),getCloseTriggerProps:()=>t.button({...p.closeTrigger.attrs,dir:l("dir"),id:E(u),type:"button","aria-label":"close",onClick(e){e.defaultPrevented||(e.stopPropagation(),a({type:"CLOSE"}))}})}}var P=(0,s.C8)({props:({props:e})=>({closeOnInteractOutside:!0,closeOnEscape:!0,autoFocus:!0,modal:!1,portalled:!0,...e,positioning:{placement:"bottom",...e.positioning}}),initialState:({prop:e})=>e("open")||e("defaultOpen")?"open":"closed",context:({bindable:e})=>({currentPlacement:e(()=>({defaultValue:void 0})),renderedElements:e(()=>({defaultValue:{title:!0,description:!0}}))}),computed:{currentPortalled:({prop:e})=>!!e("modal")||!!e("portalled")},watch({track:e,prop:t,action:n}){e([()=>t("open")],()=>{n(["toggleVisibility"])})},entry:["checkRenderedElements"],states:{closed:{on:{"CONTROLLED.OPEN":{target:"open",actions:["setInitialFocus"]},TOGGLE:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen","setInitialFocus"]}],OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen","setInitialFocus"]}]}},open:{effects:["trapFocus","preventScroll","hideContentBelow","trackPositioning","trackDismissableElement","proxyTabFocus"],on:{"CONTROLLED.CLOSE":{target:"closed",actions:["setFinalFocus"]},CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose","setFinalFocus"]}],TOGGLE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],"POSITIONING.SET":{actions:["reposition"]}}}},implementations:{guards:{isOpenControlled:({prop:e})=>void 0!=e("open")},effects:{trackPositioning({context:e,prop:t,scope:n}){e.set("currentPlacement",t("positioning").placement);let r=S(n)??k(n);return(0,o.x_)(r,()=>C(n),{...t("positioning"),defer:!0,onComplete(t){e.set("currentPlacement",t.placement)}})},trackDismissableElement({send:e,prop:t,scope:n}){let r=!0;return(0,l.A)(()=>O(n),{pointerBlocking:t("modal"),exclude:k(n),defer:!0,onEscapeKeyDown(e){t("onEscapeKeyDown")?.(e),t("closeOnEscape")||e.preventDefault()},onInteractOutside(e){t("onInteractOutside")?.(e),e.defaultPrevented||(r=!(e.detail.focusable||e.detail.contextmenu),t("closeOnInteractOutside")||e.preventDefault())},onPointerDownOutside:t("onPointerDownOutside"),onFocusOutside:t("onFocusOutside"),persistentElements:t("persistentElements"),onDismiss(){e({type:"CLOSE",src:"interact-outside",restoreFocus:r})}})},proxyTabFocus({prop:e,scope:t}){if(!e("modal")&&e("portalled"))return(0,i.ne)(()=>O(t),{triggerElement:k(t),defer:!0,onFocus(e){e.focus({preventScroll:!0})}})},hideContentBelow({prop:e,scope:t}){if(e("modal"))return(0,a.G)(()=>[O(t),k(t)],{defer:!0})},preventScroll({prop:e,scope:t}){if(e("modal"))return(0,c.M)(t.getDoc())},trapFocus({prop:e,scope:t}){if(e("modal"))return(0,u.S)(()=>O(t),{initialFocus:()=>(0,i.Q2)({root:O(t),getInitialEl:e("initialFocusEl"),enabled:e("autoFocus")})})}},actions:{reposition({event:e,prop:t,scope:n,context:r}){let i=S(n)??k(n);(0,o.x_)(i,()=>C(n),{...t("positioning"),...e.options,defer:!0,listeners:!1,onComplete(e){r.set("currentPlacement",e.placement)}})},checkRenderedElements({context:e,scope:t}){(0,i.Wn)(()=>{Object.assign(e.get("renderedElements"),{title:!!I(t),description:!!_(t)})})},setInitialFocus({prop:e,scope:t}){e("modal")||(0,i.Wn)(()=>{let n=(0,i.Q2)({root:O(t),getInitialEl:e("initialFocusEl"),enabled:e("autoFocus")});n?.focus({preventScroll:!0})})},setFinalFocus({event:e,scope:t}){let n=e.restoreFocus??e.previousEvent?.restoreFocus;(null==n||n)&&(0,i.Wn)(()=>{let e=k(t);e?.focus({preventScroll:!0})})},invokeOnOpen({prop:e,flush:t}){t(()=>{e("onOpenChange")?.({open:!0})})},invokeOnClose({prop:e,flush:t}){t(()=>{e("onOpenChange")?.({open:!1})})},toggleVisibility({event:e,send:t,prop:n}){t({type:n("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:e})}}}}),R=(0,d.e)()(["autoFocus","closeOnEscape","closeOnInteractOutside","dir","getRootNode","id","ids","initialFocusEl","modal","onEscapeKeyDown","onFocusOutside","onInteractOutside","onOpenChange","onPointerDownOutside","defaultOpen","open","persistentElements","portalled","positioning"]);(0,f.xQ)(R)},31298:function(e,t,n){"use strict";n.d(t,{hn:function(){return y},uH:function(){return h},x_:function(){return m}});var r=n(50186),i=n(88928),o=n(72766);function a(e=0,t=0,n=0,r=0){if("function"==typeof DOMRect)return new DOMRect(e,t,n,r);let i={x:e,y:t,width:n,height:r,top:t,right:e+n,bottom:t+r,left:e};return{...i,toJSON:()=>i}}var s=e=>({variable:e,reference:`var(${e})`}),l={arrowSize:s("--arrow-size"),arrowSizeHalf:s("--arrow-size-half"),arrowBg:s("--arrow-background"),transformOrigin:s("--transform-origin"),arrowOffset:s("--arrow-offset")},u=e=>({top:"bottom center","top-start":e?`${e.x}px bottom`:"left bottom","top-end":e?`${e.x}px bottom`:"right bottom",bottom:"top center","bottom-start":e?`${e.x}px top`:"top left","bottom-end":e?`${e.x}px top`:"top right",left:"right center","left-start":e?`right ${e.y}px`:"right top","left-end":e?`right ${e.y}px`:"right bottom",right:"left center","right-start":e?`left ${e.y}px`:"left top","right-end":e?`left ${e.y}px`:"left bottom"}),c={name:"transformOrigin",fn({placement:e,elements:t,middlewareData:n}){let{arrow:r}=n,i=u(r)[e],{floating:o}=t;return o.style.setProperty(l.transformOrigin.variable,i),{data:{transformOrigin:i}}}},d={name:"rects",fn:({rects:e})=>({data:e})},f=e=>{if(e)return{name:"shiftArrow",fn({placement:t,middlewareData:n}){if(!n.arrow)return{};let{x:r,y:i}=n.arrow,o=t.split("-")[0];return Object.assign(e.style,{left:null!=r?`${r}px`:"",top:null!=i?`${i}px`:"",[o]:`calc(100% + ${l.arrowOffset.reference})`}),{}}}};function h(e){return e.split("-")[0]}var p={strategy:"absolute",placement:"bottom",listeners:!0,gutter:8,flip:!0,slide:!0,overlap:!1,sameWidth:!1,fitViewport:!1,overflowPadding:8,arrowPadding:4};function g(e,t){let n=e.devicePixelRatio||1;return Math.round(t*n)/n}function v(e){return(0,o.Pu)(e.boundary)}function m(e,t,n={}){let{defer:s,...l}=n,u=s?i.Wn:e=>e(),h=[];return h.push(u(()=>{let n="function"==typeof e?e():e,s="function"==typeof t?t():t;h.push(function(e,t,n={}){var s,l;let u=(s=n.getAnchorRect,{contextElement:(0,i.DV)(e)?e:void 0,getBoundingClientRect:()=>{let t=s?.(e);return t||!e?function(e){if(!e)return a();let{x:t,y:n,width:r,height:i}=e;return a(t,n,r,i)}(t):e.getBoundingClientRect()}});if(!t||!u)return;let h=Object.assign({},p,n),m=t.querySelector("[data-part=arrow]"),b=[function(e,t){if(!(0,o.Ft)(t.offset??t.gutter))return(0,r.cv)(({placement:n})=>{let r=(e?.clientHeight||0)/2,i=t.offset?.mainAxis??t.gutter,{hasAlign:a}=function(e){let[t,n]=e.split("-");return{side:t,align:n,hasAlign:null!=n}}(n),s=a?void 0:t.shift,l=t.offset?.crossAxis??s;return(0,o.oA)({crossAxis:l,mainAxis:"number"==typeof i?i+r:i??r,alignmentAxis:t.shift})})}(m,h),function(e){if(e.flip)return(0,r.RR)({boundary:v(e),padding:e.overflowPadding,fallbackPlacements:!0===e.flip?void 0:e.flip})}(h),function(e){if(e.slide||e.overlap)return(0,r.uY)({boundary:v(e),mainAxis:e.slide,crossAxis:e.overlap,padding:e.overflowPadding,limiter:(0,r.dr)()})}(h),function(e,t){if(e)return(0,r.x7)({element:e,padding:t.arrowPadding})}(m,h),f(m),c,(0,r.dp)({padding:h.overflowPadding,apply({elements:e,rects:t,availableHeight:n,availableWidth:r}){let i=e.floating,o=Math.round(t.reference.width);r=Math.floor(r),n=Math.floor(n),i.style.setProperty("--reference-width",`${o}px`),i.style.setProperty("--available-width",`${r}px`),i.style.setProperty("--available-height",`${n}px`)}}),function(e){if(e.hideWhenDetached)return(0,r.Cp)({strategy:"referenceHidden",boundary:e.boundary?.()??"clippingAncestors"})}(h),d],{placement:y,strategy:x,onComplete:w,onPositioned:E}=h,S=async()=>{if(!u||!t)return;let e=await (0,r.oo)(u,t,{placement:y,middleware:b,strategy:x});w?.(e),E?.({placed:!0});let n=(0,i.Jj)(t),o=g(n,e.x),a=g(n,e.y);t.style.setProperty("--x",`${o}px`),t.style.setProperty("--y",`${a}px`),h.hideWhenDetached&&(e.middlewareData.hide?.referenceHidden?(t.style.setProperty("visibility","hidden"),t.style.setProperty("pointer-events","none")):(t.style.removeProperty("visibility"),t.style.removeProperty("pointer-events")));let s=t.firstElementChild;if(s){let e=(0,i.Dx)(s);t.style.setProperty("--z-index",e.zIndex)}},k=async()=>{n.updatePosition?(await n.updatePosition({updatePosition:S}),E?.({placed:!0})):await S()},O=(l=h.listeners)?!0===l?{ancestorResize:!0,ancestorScroll:!0,elementResize:!0,layoutShift:!0}:l:{},C=h.listeners?(0,r.Me)(u,t,k,O):o.ZT;return k(),()=>{C?.(),E?.({placed:!1})}}(n,s,l))})),()=>{h.forEach(e=>e?.())}}var b={bottom:"rotate(45deg)",left:"rotate(135deg)",top:"rotate(225deg)",right:"rotate(315deg)"};function y(e={}){let{placement:t,sameWidth:n,fitViewport:r,strategy:i="absolute"}=e;return{arrow:{position:"absolute",width:l.arrowSize.reference,height:l.arrowSize.reference,[l.arrowSizeHalf.variable]:`calc(${l.arrowSize.reference} / 2)`,[l.arrowOffset.variable]:`calc(${l.arrowSizeHalf.reference} * -1)`},arrowTip:{transform:t?b[t.split("-")[0]]:void 0,background:l.arrowBg.reference,top:"0",left:"0",width:"100%",height:"100%",position:"absolute",zIndex:"inherit"},floating:{position:i,isolation:"isolate",minWidth:n?void 0:"max-content",width:n?"var(--reference-width)":void 0,maxWidth:r?"var(--available-width)":void 0,maxHeight:r?"var(--available-height)":void 0,pointerEvents:t?void 0:"none",top:"0px",left:"0px",transform:t?"translate3d(var(--x), var(--y), 0)":"translate3d(0, -100vh, 0)",zIndex:"var(--z-index)"}}}},7628:function(e,t,n){"use strict";n.d(t,{$j:function(){return h},Os:function(){return s},u_:function(){return v}});var r=n(26558),i=n(20749),o=n(72766),a=n(41869),s=(0,r.F)("progress").parts("root","label","track","range","valueText","view","circle","circleTrack","circleRange"),l=s.build(),u=e=>e.ids?.root??`progress-${e.id}`,c=e=>e.ids?.track??`progress-${e.id}-track`,d=e=>e.ids?.label??`progress-${e.id}-label`,f=e=>e.ids?.circle??`progress-${e.id}-circle`;function h(e,t){let{context:n,computed:r,prop:i,send:o,scope:a}=e,s=r("percent"),h=r("isIndeterminate")?"":r("formatter").format(r("percent")/100),v=i("max"),m=i("min"),b=i("orientation"),y=i("translations"),x=r("isIndeterminate"),w=n.get("value"),E=y?.value({value:w,max:v,percent:s,min:m})??"",S=null==w?"indeterminate":w===v?"complete":"loading",k={role:"progressbar","aria-label":E,"data-max":v,"aria-valuemin":m,"aria-valuemax":v,"aria-valuenow":w??void 0,"data-orientation":b,"data-state":S},O=function(e){let{context:t,computed:n}=e;return{root:g,track:p,range:{opacity:0===t.get("value")?0:void 0,style:{...p.style,"--percent":n("percent"),"--circumference":"calc(2 * 3.14159 * var(--radius))","--offset":"calc(var(--circumference) * (100 - var(--percent)) / 100)",strokeDashoffset:"calc(var(--circumference) * ((100 - var(--percent)) / 100))",strokeDasharray:n("isIndeterminate")?void 0:"var(--circumference)",transformOrigin:"center",transform:"rotate(-90deg)"}}}}(e);return{value:w,valueAsString:E,min:m,max:v,percent:s,percentAsString:h,indeterminate:x,setValue(e){o({type:"VALUE.SET",value:e})},setToMax(){o({type:"VALUE.SET",value:v})},setToMin(){o({type:"VALUE.SET",value:m})},getRootProps:()=>t.element({dir:i("dir"),...l.root.attrs,id:u(a),"data-max":v,"data-value":w??void 0,"data-state":S,"data-orientation":b,style:{"--percent":x?void 0:s}}),getLabelProps:()=>t.element({dir:i("dir"),id:d(a),...l.label.attrs,"data-orientation":b}),getValueTextProps:()=>t.element({dir:i("dir"),"aria-live":"polite",...l.valueText.attrs}),getTrackProps:()=>t.element({dir:i("dir"),id:c(a),...l.track.attrs,...k}),getRangeProps:()=>t.element({dir:i("dir"),...l.range.attrs,"data-orientation":b,"data-state":S,style:{[r("isHorizontal")?"width":"height"]:x?void 0:`${s}%`}}),getCircleProps:()=>t.element({dir:i("dir"),id:f(a),...l.circle.attrs,...k,...O.root}),getCircleTrackProps:()=>t.element({dir:i("dir"),"data-orientation":b,...l.circleTrack.attrs,...O.track}),getCircleRangeProps:()=>t.element({dir:i("dir"),...l.circleRange.attrs,...O.range,"data-state":S}),getViewProps:e=>t.element({dir:i("dir"),...l.view.attrs,"data-state":e.state,hidden:e.state!==S})}}var p={style:{"--radius":"calc(var(--size) / 2 - var(--thickness) / 2)",cx:"calc(var(--size) / 2)",cy:"calc(var(--size) / 2)",r:"var(--radius)",fill:"transparent",strokeWidth:"var(--thickness)"}},g={style:{width:"var(--size)",height:"var(--size)"}},v=(0,i.C8)({props({props:e}){let t=e.min??0,n=e.max??100;return{orientation:"horizontal",...e,max:n,min:t,defaultValue:void 0!==e.defaultValue?e.defaultValue:x(t,n),formatOptions:{style:"percent",...e.formatOptions},translations:{value:({percent:e})=>-1===e?"loading...":`${e} percent`,...e.translations}}},initialState:()=>"idle",entry:["validateContext"],context:({bindable:e,prop:t})=>({value:e(()=>({defaultValue:t("defaultValue"),value:t("value"),onChange(e){t("onValueChange")?.({value:e})}}))}),computed:{isIndeterminate:({context:e})=>null===e.get("value"),percent({context:e,prop:t}){let n=e.get("value");return(0,o.hj)(n)?100*(0,o.xs)(n,t("min"),t("max")):-1},formatter:(0,i.X$)(({prop:e})=>[e("locale"),e("formatOptions")],(e,t)=>new Intl.NumberFormat(e,t)),isHorizontal:({prop:e})=>"horizontal"===e("orientation")},states:{idle:{on:{"VALUE.SET":{actions:["setValue"]}}}},implementations:{actions:{setValue:({context:e,event:t,prop:n})=>{let r=null===t.value?null:Math.max(0,Math.min(t.value,n("max")));e.set("value",r)},validateContext:({context:e,prop:t})=>{let n=t("max"),r=t("min"),i=e.get("value");if(null!=i){if(!m(n))throw Error(`[progress] The max value passed \`${n}\` is not a valid number`);if(!b(i,n))throw Error(`[progress] The value passed \`${i}\` exceeds the max value \`${n}\``);if(!y(i,r))throw Error(`[progress] The value passed \`${i}\` exceeds the min value \`${r}\``)}}}}}),m=e=>(0,o.hj)(e)&&!isNaN(e),b=(e,t)=>m(e)&&e<=t,y=(e,t)=>m(e)&&e>=t,x=(e,t)=>e+(t-e)/2,w=(0,a.e)()(["dir","getRootNode","id","ids","max","min","orientation","translations","value","onValueChange","defaultValue","formatOptions","locale"]);(0,o.xQ)(w)},43493:function(e,t,n){"use strict";n.d(t,{$j:function(){return I},Os:function(){return u},u_:function(){return T}});var r=n(26558),i=n(88928),o=n(71490),a=n(20749),s=n(72766),l=n(41869),u=(0,r.F)("radio-group").parts("root","label","item","itemText","itemControl","indicator"),c=u.build(),d=e=>e.ids?.root??`radio-group:${e.id}`,f=e=>e.ids?.label??`radio-group:${e.id}:label`,h=(e,t)=>e.ids?.item?.(t)??`radio-group:${e.id}:radio:${t}`,p=(e,t)=>e.ids?.itemHiddenInput?.(t)??`radio-group:${e.id}:radio:input:${t}`,g=(e,t)=>e.ids?.itemControl?.(t)??`radio-group:${e.id}:radio:control:${t}`,v=(e,t)=>e.ids?.itemLabel?.(t)??`radio-group:${e.id}:radio:label:${t}`,m=e=>e.ids?.indicator??`radio-group:${e.id}:indicator`,b=e=>e.getById(d(e)),y=(e,t)=>e.getById(p(e,t)),x=e=>e.getById(m(e)),w=e=>b(e)?.querySelector("input:not(:disabled)"),E=e=>b(e)?.querySelector("input:not(:disabled):checked"),S=e=>{let t=CSS.escape(d(e)),n=`input[type=radio][data-ownedby='${t}']:not([disabled])`;return(0,i.Kt)(b(e),n)},k=(e,t)=>{if(t)return e.getById(h(e,t))},O=e=>({left:e?.offsetLeft??0,top:e?.offsetTop??0,width:e?.offsetWidth??0,height:e?.offsetHeight??0}),C=e=>({width:`${e.width}px`,height:`${e.height}px`,left:`${e.left}px`,top:`${e.top}px`});function I(e,t){let{context:n,send:r,computed:a,prop:s,scope:l}=e,u=a("isDisabled"),b=s("readOnly");function x(e){let t=n.get("focusedValue")===e.value,r=t&&(0,o.E)();return{value:e.value,invalid:!!e.invalid,disabled:!!e.disabled||u,checked:n.get("value")===e.value,focused:t,focusVisible:r,hovered:n.get("hoveredValue")===e.value,active:n.get("activeValue")===e.value}}function S(e){let t=x(e);return{"data-focus":(0,i.PB)(t.focused),"data-focus-visible":(0,i.PB)(t.focusVisible),"data-disabled":(0,i.PB)(t.disabled),"data-readonly":(0,i.PB)(b),"data-state":t.checked?"checked":"unchecked","data-hover":(0,i.PB)(t.hovered),"data-invalid":(0,i.PB)(t.invalid),"data-orientation":s("orientation"),"data-ssr":(0,i.PB)(n.get("ssr"))}}let k=()=>{let e=E(l)??w(l);e?.focus()};return{focus:k,value:n.get("value"),setValue(e){r({type:"SET_VALUE",value:e,isTrusted:!1})},clearValue(){r({type:"SET_VALUE",value:null,isTrusted:!1})},getRootProps:()=>t.element({...c.root.attrs,role:"radiogroup",id:d(l),"aria-labelledby":f(l),"data-orientation":s("orientation"),"data-disabled":(0,i.PB)(u),"aria-orientation":s("orientation"),dir:s("dir"),style:{position:"relative"}}),getLabelProps:()=>t.element({...c.label.attrs,dir:s("dir"),"data-orientation":s("orientation"),"data-disabled":(0,i.PB)(u),id:f(l),onClick:k}),getItemState:x,getItemProps(e){let n=x(e);return t.label({...c.item.attrs,dir:s("dir"),id:h(l,e.value),htmlFor:p(l,e.value),...S(e),onPointerMove(){!n.disabled&&(n.hovered||r({type:"SET_HOVERED",value:e.value,hovered:!0}))},onPointerLeave(){n.disabled||r({type:"SET_HOVERED",value:null})},onPointerDown(t){!n.disabled&&(0,i.pW)(t)&&(n.focused&&"mouse"===t.pointerType&&t.preventDefault(),r({type:"SET_ACTIVE",value:e.value,active:!0}))},onPointerUp(){n.disabled||r({type:"SET_ACTIVE",value:null})},onClick(){!n.disabled&&(0,i.G6)()&&y(l,e.value)?.focus()}})},getItemTextProps:e=>t.element({...c.itemText.attrs,dir:s("dir"),id:v(l,e.value),...S(e)}),getItemControlProps(e){let n=x(e);return t.element({...c.itemControl.attrs,dir:s("dir"),id:g(l,e.value),"data-active":(0,i.PB)(n.active),"aria-hidden":!0,...S(e)})},getItemHiddenInputProps(e){let n=x(e);return t.input({"data-ownedby":d(l),id:p(l,e.value),type:"radio",name:s("name")||s("id"),form:s("form"),value:e.value,onClick(t){if(b){t.preventDefault();return}t.currentTarget.checked&&r({type:"SET_VALUE",value:e.value,isTrusted:!0})},onBlur(){r({type:"SET_FOCUSED",value:null,focused:!1})},onFocus(){r({type:"SET_FOCUSED",value:e.value,focused:!0})},onKeyDown(t){t.defaultPrevented||" "!==t.key||r({type:"SET_ACTIVE",value:e.value,active:!0})},onKeyUp(e){e.defaultPrevented||" "!==e.key||r({type:"SET_ACTIVE",value:null})},disabled:n.disabled,defaultChecked:n.checked,style:i.NL})},getIndicatorProps(){let e=n.get("indicatorRect");return t.element({id:m(l),...c.indicator.attrs,dir:s("dir"),hidden:null==n.get("value"),"data-disabled":(0,i.PB)(u),"data-orientation":s("orientation"),style:{"--transition-property":"left, top, width, height","--left":e?.left,"--top":e?.top,"--width":e?.width,"--height":e?.height,position:"absolute",willChange:"var(--transition-property)",transitionProperty:"var(--transition-property)",transitionDuration:n.get("canIndicatorTransition")?"var(--transition-duration, 150ms)":"0ms",transitionTimingFunction:"var(--transition-timing-function)",["horizontal"===s("orientation")?"left":"top"]:"horizontal"===s("orientation")?"var(--left)":"var(--top)"}})}}}var{not:_}=(0,a.Fb)(),T=(0,a.C8)({props:({props:e})=>({orientation:"vertical",...e}),initialState:()=>"idle",context:({prop:e,bindable:t})=>({value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),onChange(t){e("onValueChange")?.({value:t})}})),activeValue:t(()=>({defaultValue:null})),focusedValue:t(()=>({defaultValue:null})),hoveredValue:t(()=>({defaultValue:null})),indicatorRect:t(()=>({defaultValue:{}})),canIndicatorTransition:t(()=>({defaultValue:!1})),fieldsetDisabled:t(()=>({defaultValue:!1})),ssr:t(()=>({defaultValue:!0}))}),refs:()=>({indicatorCleanup:null}),computed:{isDisabled:({prop:e,context:t})=>!!e("disabled")||t.get("fieldsetDisabled")},entry:["syncIndicatorRect","syncSsr"],exit:["cleanupObserver"],effects:["trackFormControlState","trackFocusVisible"],watch({track:e,action:t,context:n}){e([()=>n.get("value")],()=>{t(["setIndicatorTransition","syncIndicatorRect","syncInputElements"])})},on:{SET_VALUE:[{guard:_("isTrusted"),actions:["setValue","dispatchChangeEvent"]},{actions:["setValue"]}],SET_HOVERED:{actions:["setHovered"]},SET_ACTIVE:{actions:["setActive"]},SET_FOCUSED:{actions:["setFocused"]}},states:{idle:{}},implementations:{guards:{isTrusted:({event:e})=>!!e.isTrusted},effects:{trackFormControlState:({context:e,scope:t})=>(0,i.NS)(b(t),{onFieldsetDisabledChange(t){e.set("fieldsetDisabled",t)},onFormReset(){e.set("value",e.initial("value"))}}),trackFocusVisible:({scope:e})=>(0,o.BT)({root:e.getRootNode?.()})},actions:{setValue({context:e,event:t}){e.set("value",t.value)},setHovered({context:e,event:t}){e.set("hoveredValue",t.value)},setActive({context:e,event:t}){e.set("activeValue",t.value)},setFocused({context:e,event:t}){e.set("focusedValue",t.value)},syncInputElements({context:e,scope:t}){S(t).forEach(t=>{t.checked=t.value===e.get("value")})},setIndicatorTransition({context:e}){e.set("canIndicatorTransition",(0,s.HD)(e.get("value")))},cleanupObserver({refs:e}){e.get("indicatorCleanup")?.()},syncSsr({context:e}){e.set("ssr",!1)},syncIndicatorRect({context:e,scope:t,refs:n}){if(n.get("indicatorCleanup")?.(),!x(t))return;let r=e.get("value"),o=k(t,r);if(null==r||!o){e.set("canIndicatorTransition",!1),e.set("indicatorRect",{});return}let a=(0,i.ce)([o],{measure:e=>O(e),onEntry({rects:t}){e.set("indicatorRect",C(t[0]))}});n.set("indicatorCleanup",a)},dispatchChangeEvent({context:e,scope:t}){S(t).forEach(t=>{let n=t.value===e.get("value");n!==t.checked&&(0,i.FW)(t,{checked:n})})}}}}),P=(0,l.e)()(["dir","disabled","form","getRootNode","id","ids","name","onValueChange","orientation","readOnly","value","defaultValue"]);(0,s.xQ)(P);var R=(0,l.e)()(["value","disabled","invalid"]);(0,s.xQ)(R)},77093:function(e,t,n){"use strict";n.d(t,{eO:function(){return d},vs:function(){return p}});var r=n(20749),i=n(72766),o=n(97129),a=n(51853),s=n(41869);n(26415);var l=void 0!==globalThis.document?o.useLayoutEffect:o.useEffect;function u(e){var t,n;let r=null!==(t=e().value)&&void 0!==t?t:e().defaultValue,s=null!==(n=e().isEqual)&&void 0!==n?n:Object.is,[u]=(0,o.useState)(r),[c,d]=(0,o.useState)(u),f=void 0!==e().value,h=(0,o.useRef)(c);h.current=f?e().value:c;let p=(0,o.useRef)(h.current);l(()=>{p.current=h.current},[c,e().value]);let g=t=>{let n=p.current,r=(0,i.mf)(t)?t(n):t;if(e().debug&&console.log("[bindable > ".concat(e().debug,"] setValue"),{next:r,prev:n}),f||d(r),!s(r,n)){var o,a;null===(o=(a=e()).onChange)||void 0===o||o.call(a,r,n)}};return{initial:u,ref:h,get:function(){return f?e().value:c},set(t){(e().sync?a.flushSync:i.yR)(()=>g(t))},invoke(t,n){var r,i;null===(r=(i=e()).onChange)||void 0===r||r.call(i,t,n)},hash(t){var n,r,i;return null!==(i=null===(n=(r=e()).hash)||void 0===n?void 0:n.call(r,t))&&void 0!==i?i:String(t)}}}u.cleanup=e=>{(0,o.useEffect)(()=>e,[])},u.ref=e=>{let t=(0,o.useRef)(e);return{get:()=>t.current,set:e=>{t.current=e}}};var c=(e,t)=>{let n=(0,o.useRef)(!1),r=(0,o.useRef)(!1);(0,o.useEffect)(()=>{if(n.current&&r.current)return t();r.current=!0},[...(null!=e?e:[]).map(e=>"function"==typeof e?e():e)]),(0,o.useEffect)(()=>(n.current=!0,()=>{n.current=!1}),[])};function d(e){var t,n,s,d,p,g;let v=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},m=(0,o.useMemo)(()=>{let{id:e,ids:t,getRootNode:n}=v;return(0,r.tp)({id:e,ids:t,getRootNode:n})},[v]),b=function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];e.debug&&console.log(...n)},y=function(e){let t=f(e);return function(e){return t.current[e]}}(null!==(p=null===(t=e.props)||void 0===t?void 0:t.call(e,{props:(0,i.oA)(v),scope:m}))&&void 0!==p?p:v),x=f(null===(n=e.context)||void 0===n?void 0:n.call(e,{prop:y,bindable:u,scope:m,flush:h,getContext:()=>w,getComputed:()=>M,getRefs:()=>_})),w={get(e){var t;return null===(t=x.current)||void 0===t?void 0:t[e].ref.current},set(e,t){var n;null===(n=x.current)||void 0===n||n[e].set(t)},initial(e){var t;return null===(t=x.current)||void 0===t?void 0:t[e].initial},hash(e){var t,n;let r=null===(t=x.current)||void 0===t?void 0:t[e].get();return null===(n=x.current)||void 0===n?void 0:n[e].hash(r)}},E=(0,o.useRef)(new Map),S=(0,o.useRef)(null),k=(0,o.useRef)(null),O=(0,o.useRef)({type:""}),C=()=>({...O.current,current:()=>O.current,previous:()=>k.current}),I=()=>({...L,matches(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.includes(L.ref.current)},hasTag(t){var n,r;return!!(null===(r=e.states[L.ref.current])||void 0===r?void 0:null===(n=r.tags)||void 0===n?void 0:n.includes(t))}}),_=function(e){let t=(0,o.useRef)(e);return{get:e=>t.current[e],set(e,n){t.current[e]=n}}}(null!==(g=null===(s=e.refs)||void 0===s?void 0:s.call(e,{prop:y,context:w}))&&void 0!==g?g:{}),T=()=>({state:I(),context:w,event:C(),prop:y,send:j,action:P,guard:R,track:c,refs:_,computed:M,flush:h,scope:m,choose:N}),P=t=>{let n=(0,i.mf)(t)?t(T()):t;if(n)for(let t of n.map(t=>{var n,r;let o=null===(r=e.implementations)||void 0===r?void 0:null===(n=r.actions)||void 0===n?void 0:n[t];return o||(0,i.ZK)('[zag-js] No implementation found for action "'.concat(JSON.stringify(t),'"')),o}))null==t||t(T())},R=t=>{var n,r;return(0,i.mf)(t)?t(T()):null===(r=e.implementations)||void 0===r?void 0:null===(n=r.guards)||void 0===n?void 0:n[t](T())},A=t=>{let n=(0,i.mf)(t)?t(T()):t;if(!n)return;let r=n.map(t=>{var n,r;let o=null===(r=e.implementations)||void 0===r?void 0:null===(n=r.effects)||void 0===n?void 0:n[t];return o||(0,i.ZK)('[zag-js] No implementation found for effect "'.concat(JSON.stringify(t),'"')),o}),o=[];for(let e of r){let t=null==e?void 0:e(T());t&&o.push(t)}return()=>o.forEach(e=>null==e?void 0:e())},N=e=>(0,i.qo)(e).find(e=>{let t=!e.guard;return(0,i.HD)(e.guard)?t=!!R(e.guard):(0,i.mf)(e.guard)&&(t=e.guard(T())),t}),M=t=>((0,i.zx)(e.computed,()=>"[zag-js] No computed object found on machine"),(0,e.computed[t])({context:w,event:C(),prop:y,refs:_,scope:m,computed:M})),L=u(()=>({defaultValue:e.initialState({prop:y}),onChange(t,n){var i,o,a,s;if(n){let e=E.current.get(n);null==e||e(),E.current.delete(n)}n&&P(null===(s=e.states[n])||void 0===s?void 0:s.exit),P(null===(i=S.current)||void 0===i?void 0:i.actions);let l=A(null===(o=e.states[t])||void 0===o?void 0:o.effects);if(l&&E.current.set(t,l),n===r.My){P(e.entry);let t=A(e.effects);t&&E.current.set(r.My,t)}P(null===(a=e.states[t])||void 0===a?void 0:a.entry)}})),D=(0,o.useRef)(void 0),F=(0,o.useRef)(r.Bo.NotStarted);l(()=>{queueMicrotask(()=>{var e;let t=F.current===r.Bo.Started;F.current=r.Bo.Started,b(t?"rehydrating...":"initializing...");let n=null!==(e=D.current)&&void 0!==e?e:L.initial;L.invoke(n,t?L.get():r.My)});let t=E.current,n=L.ref.current;return()=>{b("unmounting..."),D.current=n,F.current=r.Bo.Stopped,t.forEach(e=>null==e?void 0:e()),E.current=new Map,S.current=null,queueMicrotask(()=>{P(e.exit)})}},[]);let V=()=>"ref"in L?L.ref.current:L.get(),j=t=>{queueMicrotask(()=>{var n,i,o,s,l;if(F.current!==r.Bo.Started)return;k.current=O.current,O.current=t,b("send",t);let u=V(),c=N(null!==(o=null===(n=e.states[u].on)||void 0===n?void 0:n[t.type])&&void 0!==o?o:null===(i=e.on)||void 0===i?void 0:i[t.type]);if(!c)return;S.current=c;let d=null!==(s=c.target)&&void 0!==s?s:u;b("transition",c);let f=d!==u;f?(0,a.flushSync)(()=>L.set(d)):c.reenter&&!f?L.invoke(u,u):P(null!==(l=c.actions)&&void 0!==l?l:[])})};return null===(d=e.watch)||void 0===d||d.call(e,T()),{state:I(),send:j,context:w,prop:y,scope:m,refs:_,computed:M,event:C(),getStatus:()=>F.current}}function f(e){let t=(0,o.useRef)(e);return t.current=e,t}function h(e){queueMicrotask(()=>{(0,a.flushSync)(()=>e())})}var p=(0,s.F)(e=>e)},89274:function(e,t,n){"use strict";n.d(t,{M:function(){return o}});var r=n(88928),i="data-scroll-lock";function o(e){let t=e??document,n=t.defaultView??window,{documentElement:o,body:a}=t;if(a.hasAttribute(i))return;let s=n.innerWidth-o.clientWidth;a.setAttribute(i,"");let l=Math.round(o.getBoundingClientRect().left)+o.scrollLeft?"paddingLeft":"paddingRight",u=[(0,r.U0)(o,"--scrollbar-width",`${s}px`),(0,r.s)()?(()=>{let{scrollX:e,scrollY:t,visualViewport:i}=n,o=i?.offsetLeft??0,u=i?.offsetTop??0,c=(0,r.A_)(a,{position:"fixed",overflow:"hidden",top:`${-(t-Math.floor(u))}px`,left:`${-(e-Math.floor(o))}px`,right:"0",[l]:`${s}px`});return()=>{c?.(),n.scrollTo({left:e,top:t,behavior:"instant"})}})():(0,r.A_)(a,{overflow:"hidden",[l]:`${s}px`})];return()=>{u.forEach(e=>e?.()),a.removeAttribute(i)}}},56682:function(e,t,n){"use strict";n.d(t,{$j:function(){return b},Os:function(){return u},u_:function(){return x}});var r=n(26558),i=n(88928),o=n(71490),a=n(20749),s=n(41869),l=n(72766),u=(0,r.F)("switch").parts("root","label","control","thumb"),c=u.build(),d=e=>e.ids?.root??`switch:${e.id}`,f=e=>e.ids?.label??`switch:${e.id}:label`,h=e=>e.ids?.thumb??`switch:${e.id}:thumb`,p=e=>e.ids?.control??`switch:${e.id}:control`,g=e=>e.ids?.hiddenInput??`switch:${e.id}:input`,v=e=>e.getById(d(e)),m=e=>e.getById(g(e));function b(e,t){let{context:n,send:r,prop:a,scope:s}=e,l=a("disabled"),u=a("readOnly"),v=!!n.get("checked"),b=!l&&n.get("focused"),y=!l&&n.get("focusVisible"),x={"data-active":(0,i.PB)(n.get("active")),"data-focus":(0,i.PB)(b),"data-focus-visible":(0,i.PB)(y),"data-readonly":(0,i.PB)(u),"data-hover":(0,i.PB)(n.get("hovered")),"data-disabled":(0,i.PB)(l),"data-state":v?"checked":"unchecked","data-invalid":(0,i.PB)(a("invalid"))};return{checked:v,disabled:l,focused:b,setChecked(e){r({type:"CHECKED.SET",checked:e,isTrusted:!1})},toggleChecked(){r({type:"CHECKED.TOGGLE",checked:v,isTrusted:!1})},getRootProps:()=>t.label({...c.root.attrs,...x,dir:a("dir"),id:d(s),htmlFor:g(s),onPointerMove(){l||r({type:"CONTEXT.SET",context:{hovered:!0}})},onPointerLeave(){l||r({type:"CONTEXT.SET",context:{hovered:!1}})},onClick(e){!l&&((0,i.NI)(e)===m(s)&&e.stopPropagation(),(0,i.G6)()&&m(s)?.focus())}}),getLabelProps:()=>t.element({...c.label.attrs,...x,dir:a("dir"),id:f(s)}),getThumbProps:()=>t.element({...c.thumb.attrs,...x,dir:a("dir"),id:h(s),"aria-hidden":!0}),getControlProps:()=>t.element({...c.control.attrs,...x,dir:a("dir"),id:p(s),"aria-hidden":!0}),getHiddenInputProps:()=>t.input({id:g(s),type:"checkbox",required:a("required"),defaultChecked:v,disabled:l,"aria-labelledby":f(s),"aria-invalid":a("invalid"),name:a("name"),form:a("form"),value:a("value"),style:i.NL,onFocus(){r({type:"CONTEXT.SET",context:{focused:!0,focusVisible:(0,o.E)()}})},onBlur(){r({type:"CONTEXT.SET",context:{focused:!1,focusVisible:!1}})},onClick(e){if(u){e.preventDefault();return}r({type:"CHECKED.SET",checked:e.currentTarget.checked,isTrusted:!0})}})}}var{not:y}=(0,a.Fb)(),x=(0,a.C8)({props:({props:e})=>({defaultChecked:!1,label:"switch",value:"on",...e}),initialState:()=>"ready",context:({prop:e,bindable:t})=>({checked:t(()=>({defaultValue:e("defaultChecked"),value:e("checked"),onChange(t){e("onCheckedChange")?.({checked:t})}})),fieldsetDisabled:t(()=>({defaultValue:!1})),focusVisible:t(()=>({defaultValue:!1})),active:t(()=>({defaultValue:!1})),focused:t(()=>({defaultValue:!1})),hovered:t(()=>({defaultValue:!1}))}),computed:{isDisabled:({context:e,prop:t})=>t("disabled")||e.get("fieldsetDisabled")},watch({track:e,prop:t,context:n,action:r}){e([()=>t("disabled")],()=>{r(["removeFocusIfNeeded"])}),e([()=>n.get("checked")],()=>{r(["syncInputElement"])})},effects:["trackFormControlState","trackPressEvent","trackFocusVisible"],on:{"CHECKED.TOGGLE":[{guard:y("isTrusted"),actions:["toggleChecked","dispatchChangeEvent"]},{actions:["toggleChecked"]}],"CHECKED.SET":[{guard:y("isTrusted"),actions:["setChecked","dispatchChangeEvent"]},{actions:["setChecked"]}],"CONTEXT.SET":{actions:["setContext"]}},states:{ready:{}},implementations:{guards:{isTrusted:({event:e})=>!!e.isTrusted},effects:{trackPressEvent({computed:e,scope:t,context:n}){if(!e("isDisabled"))return(0,i.Tx)({pointerNode:v(t),keyboardNode:m(t),isValidKey:e=>" "===e.key,onPress:()=>n.set("active",!1),onPressStart:()=>n.set("active",!0),onPressEnd:()=>n.set("active",!1)})},trackFocusVisible({computed:e,scope:t}){if(!e("isDisabled"))return(0,o.BT)({root:t.getRootNode()})},trackFormControlState:({context:e,send:t,scope:n})=>(0,i.NS)(m(n),{onFieldsetDisabledChange(t){e.set("fieldsetDisabled",t)},onFormReset(){t({type:"CHECKED.SET",checked:!!e.initial("checked"),src:"form-reset"})}})},actions:{setContext({context:e,event:t}){for(let n in t.context)e.set(n,t.context[n])},syncInputElement({context:e,scope:t}){let n=m(t);n&&(0,i.T0)(n,!!e.get("checked"))},removeFocusIfNeeded({context:e,prop:t}){t("disabled")&&e.set("focused",!1)},setChecked({context:e,event:t}){e.set("checked",t.checked)},toggleChecked({context:e}){e.set("checked",!e.get("checked"))},dispatchChangeEvent({context:e,scope:t}){let n=m(t);(0,i.FW)(n,{checked:e.get("checked")})}}}}),w=(0,s.e)()(["checked","defaultChecked","dir","disabled","form","getRootNode","id","ids","invalid","label","name","onCheckedChange","readOnly","required","value"]);(0,l.xQ)(w)},56071:function(e,t,n){"use strict";n.d(t,{$j:function(){return x},MT:function(){return O},ru:function(){return I},u_:function(){return E}});var r=n(88928),i=n(26558),o=n(20749),a=n(83331),s=n(72766),l=(0,i.F)("toast").parts("group","root","title","description","actionTrigger","closeTrigger").build(),u=e=>`toast-group:${e}`,c=(e,t)=>e.getById(`toast-group:${t}`),d=e=>`toast:${e.id}`,f=e=>e.getById(d(e)),h=e=>`toast:${e.id}:title`,p=e=>`toast:${e.id}:description`,g=e=>`toast${e.id}:close`,v={info:5e3,error:5e3,success:2e3,loading:1/0,DEFAULT:5e3};function m(e,t){return e??v[t]??v.DEFAULT}var b=e=>"string"==typeof e?{left:e,right:e,bottom:e,top:e}:e,y=(0,o.C8)({props:({props:e})=>({dir:"ltr",id:(0,s.Vj)(),...e,store:e.store}),initialState:({prop:e})=>e("store").attrs.overlap?"overlap":"stack",refs:()=>({lastFocusedEl:null,isFocusWithin:!1,dismissableCleanup:void 0}),context:({bindable:e})=>({toasts:e(()=>({defaultValue:[],sync:!0,hash:e=>e.map(e=>e.id).join(",")})),heights:e(()=>({defaultValue:[],sync:!0}))}),computed:{count:({context:e})=>e.get("toasts").length,overlap:({prop:e})=>e("store").attrs.overlap,placement:({prop:e})=>e("store").attrs.placement},effects:["subscribeToStore","trackDocumentVisibility","trackHotKeyPress"],watch({track:e,context:t,action:n}){e([()=>t.hash("toasts")],()=>{queueMicrotask(()=>{n(["collapsedIfEmpty","setDismissableBranch"])})})},exit:["clearDismissableBranch","clearLastFocusedEl"],on:{"DOC.HOTKEY":{actions:["focusRegionEl"]},"REGION.BLUR":[{guard:"isOverlapping",target:"overlap",actions:["collapseToasts","resumeToasts","restoreLastFocusedEl"]},{target:"stack",actions:["resumeToasts","restoreLastFocusedEl"]}],"TOAST.REMOVE":{actions:["removeToast","removeHeight"]},"TOAST.PAUSE":{actions:["pauseToasts"]}},states:{stack:{on:{"REGION.POINTER_LEAVE":[{guard:"isOverlapping",target:"overlap",actions:["resumeToasts","collapseToasts"]},{actions:["resumeToasts"]}],"REGION.OVERLAP":{target:"overlap",actions:["collapseToasts"]},"REGION.FOCUS":{actions:["setLastFocusedEl","pauseToasts"]},"REGION.POINTER_ENTER":{actions:["pauseToasts"]}}},overlap:{on:{"REGION.STACK":{target:"stack",actions:["expandToasts"]},"REGION.POINTER_ENTER":{target:"stack",actions:["pauseToasts","expandToasts"]},"REGION.FOCUS":{target:"stack",actions:["setLastFocusedEl","pauseToasts","expandToasts"]}}}},implementations:{guards:{isOverlapping:({computed:e})=>e("overlap")},effects:{subscribeToStore:({context:e,prop:t})=>t("store").subscribe(t=>{if(t.dismiss){e.set("toasts",e=>e.filter(e=>e.id!==t.id));return}e.set("toasts",e=>{let n=e.findIndex(e=>e.id===t.id);return -1!==n?[...e.slice(0,n),{...e[n],...t},...e.slice(n+1)]:[t,...e]})}),trackHotKeyPress:({prop:e,send:t})=>(0,r.EV)(document,"keydown",n=>{let{hotkey:r}=e("store").attrs;r.every(e=>n[e]||n.code===e)&&t({type:"DOC.HOTKEY"})},{capture:!0}),trackDocumentVisibility({prop:e,send:t,scope:n}){let{pauseOnPageIdle:i}=e("store").attrs;if(!i)return;let o=n.getDoc();return(0,r.EV)(o,"visibilitychange",()=>{t({type:"hidden"===o.visibilityState?"PAUSE_ALL":"RESUME_ALL"})})}},actions:{setDismissableBranch({refs:e,context:t,computed:n,scope:r}){let i=t.get("toasts"),o=n("placement"),s=i.length>0;if(!s){e.get("dismissableCleanup")?.();return}if(s&&e.get("dismissableCleanup"))return;let l=(0,a.B)(()=>c(r,o),{defer:!0});e.set("dismissableCleanup",l)},clearDismissableBranch({refs:e}){e.get("dismissableCleanup")?.()},focusRegionEl({scope:e,computed:t}){queueMicrotask(()=>{c(e,t("placement"))?.focus()})},pauseToasts({prop:e}){e("store").pause()},resumeToasts({prop:e}){e("store").resume()},expandToasts({prop:e}){e("store").expand()},collapseToasts({prop:e}){e("store").collapse()},removeToast({prop:e,event:t}){e("store").remove(t.id)},removeHeight({event:e,context:t}){e?.id!=null&&queueMicrotask(()=>{t.set("heights",t=>t.filter(t=>t.id!==e.id))})},collapsedIfEmpty({send:e,computed:t}){!t("overlap")||t("count")>1||e({type:"REGION.OVERLAP"})},setLastFocusedEl({refs:e,event:t}){!e.get("isFocusWithin")&&t.target&&(e.set("isFocusWithin",!0),e.set("lastFocusedEl",t.target))},restoreLastFocusedEl({refs:e}){e.get("lastFocusedEl")&&(e.get("lastFocusedEl")?.focus({preventScroll:!0}),e.set("lastFocusedEl",null),e.set("isFocusWithin",!1))},clearLastFocusedEl({refs:e}){e.get("lastFocusedEl")&&(e.get("lastFocusedEl")?.focus({preventScroll:!0}),e.set("lastFocusedEl",null),e.set("isFocusWithin",!1))}}}});function x(e,t){let{state:n,send:i,prop:o,scope:a,context:s,computed:u}=e,c=n.hasTag("visible"),f=n.hasTag("paused"),v=s.get("mounted"),m=u("frontmost"),b=o("parent").computed("placement"),y=o("type"),x=o("stacked"),w=o("title"),E=o("description"),S=o("action"),[k,O="center"]=b.split("-");return{type:y,title:w,description:E,placement:b,visible:c,paused:f,closable:!!o("closable"),pause(){i({type:"PAUSE"})},resume(){i({type:"RESUME"})},dismiss(){i({type:"DISMISS",src:"programmatic"})},getRootProps:()=>t.element({...l.root.attrs,dir:o("dir"),id:d(a),"data-state":c?"open":"closed","data-type":y,"data-placement":b,"data-align":O,"data-side":k,"data-mounted":(0,r.PB)(v),"data-paused":(0,r.PB)(f),"data-first":(0,r.PB)(m),"data-sibling":(0,r.PB)(!m),"data-stack":(0,r.PB)(x),"data-overlap":(0,r.PB)(!x),role:"status","aria-atomic":"true","aria-describedby":E?p(a):void 0,"aria-labelledby":w?h(a):void 0,tabIndex:0,style:function(e,t){let{prop:n,context:r,computed:i}=e,o=n("parent"),a=o.computed("placement"),{gap:s}=o.prop("store").attrs,[l]=a.split("-"),u=r.get("mounted"),c=r.get("remainingTime"),d=i("height"),f=i("frontmost"),h=!f,p=!n("stacked"),g=n("stacked"),v="loading"===n("type")?Number.MAX_SAFE_INTEGER:c,m=i("heightIndex")*s+i("heightBefore"),b={position:"absolute",pointerEvents:"auto","--opacity":"0","--remove-delay":`${n("removeDelay")}ms`,"--duration":`${v}ms`,"--initial-height":`${d}px`,"--offset":`${m}px`,"--index":n("index"),"--z-index":i("zIndex"),"--lift-amount":"calc(var(--lift) * var(--gap))","--y":"100%","--x":"0"},y=e=>Object.assign(b,e);return"top"===l?y({top:"0","--sign":"-1","--y":"-100%","--lift":"1"}):"bottom"===l&&y({bottom:"0","--sign":"1","--y":"100%","--lift":"-1"}),u&&(y({"--y":"0","--opacity":"1"}),g&&y({"--y":"calc(var(--lift) * var(--offset))","--height":"var(--initial-height)"})),t||y({"--opacity":"0",pointerEvents:"none"}),h&&p&&(y({"--base-scale":"var(--index) * 0.05 + 1","--y":"calc(var(--lift-amount) * var(--index))","--scale":"calc(-1 * var(--base-scale))","--height":"var(--first-height)"}),t||y({"--y":"calc(var(--sign) * 40%)"})),h&&g&&!t&&y({"--y":"calc(var(--lift) * var(--offset) + var(--lift) * -100%)"}),f&&!t&&y({"--y":"calc(var(--lift) * -100%)"}),b}(e,c),onKeyDown(e){e.defaultPrevented||"Escape"!=e.key||(i({type:"DISMISS",src:"keyboard"}),e.preventDefault())}}),getGhostBeforeProps:()=>t.element({"data-ghost":"before",style:function(e,t){let{computed:n}=e,r={position:"absolute",inset:"0",scale:"1 2",pointerEvents:t?"none":"auto"};return n("frontmost")&&!t&&Object.assign(r,{height:"calc(var(--initial-height) + 80%)"}),r}(e,c)}),getGhostAfterProps:()=>t.element({"data-ghost":"after",style:{position:"absolute",left:"0",height:"calc(var(--gap) + 2px)",bottom:"100%",width:"100%"}}),getTitleProps:()=>t.element({...l.title.attrs,id:h(a)}),getDescriptionProps:()=>t.element({...l.description.attrs,id:p(a)}),getActionTriggerProps:()=>t.button({...l.actionTrigger.attrs,type:"button",onClick(e){e.defaultPrevented||(S?.onClick?.(),i({type:"DISMISS",src:"user"}))}}),getCloseTriggerProps:()=>t.button({id:g(a),...l.closeTrigger.attrs,type:"button","aria-label":"Dismiss notification",onClick(e){e.defaultPrevented||i({type:"DISMISS",src:"user"})}})}}var{not:w}=(0,o.Fb)(),E=(0,o.C8)({props:({props:e})=>((0,s.WR)(e,["id","type","parent","removeDelay"],"toast"),{closable:!0,...e,duration:m(e.duration,e.type)}),initialState:({prop:e})=>"loading"===e("type")||e("duration")===1/0?"visible:persist":"visible",context:({prop:e,bindable:t})=>({remainingTime:t(()=>({defaultValue:m(e("duration"),e("type"))})),createdAt:t(()=>({defaultValue:Date.now()})),mounted:t(()=>({defaultValue:!1})),initialHeight:t(()=>({defaultValue:0}))}),refs:()=>({closeTimerStartTime:Date.now(),lastCloseStartTimerStartTime:0}),computed:{zIndex:({prop:e})=>{let t=e("parent").context.get("toasts"),n=t.findIndex(t=>t.id===e("id"));return t.length-n},height:({prop:e})=>{let t=e("parent").context.get("heights").find(t=>t.id===e("id"));return t?.height??0},heightIndex:({prop:e})=>e("parent").context.get("heights").findIndex(t=>t.id===e("id")),frontmost:({prop:e})=>0===e("index"),heightBefore:({prop:e})=>{let t=e("parent").context.get("heights"),n=t.findIndex(t=>t.id===e("id"));return t.reduce((e,t,r)=>r>=n?e:e+t.height,0)},shouldPersist:({prop:e})=>"loading"===e("type")||e("duration")===1/0},watch({track:e,prop:t,send:n}){e([()=>t("message")],()=>{let e=t("message");e&&n({type:e,src:"programmatic"})}),e([()=>t("type"),()=>t("duration")],()=>{n({type:"UPDATE"})})},on:{UPDATE:[{guard:"shouldPersist",target:"visible:persist",actions:["resetCloseTimer"]},{target:"visible:updating",actions:["resetCloseTimer"]}],MEASURE:{actions:["measureHeight"]}},entry:["setMounted","measureHeight","invokeOnVisible"],effects:["trackHeight"],states:{"visible:updating":{tags:["visible","updating"],effects:["waitForNextTick"],on:{SHOW:{target:"visible"}}},"visible:persist":{tags:["visible","paused"],on:{RESUME:{guard:w("isLoadingType"),target:"visible",actions:["setCloseTimer"]},DISMISS:{target:"dismissing"}}},visible:{tags:["visible"],effects:["waitForDuration"],on:{DISMISS:{target:"dismissing"},PAUSE:{target:"visible:persist",actions:["syncRemainingTime"]}}},dismissing:{entry:["invokeOnDismiss"],effects:["waitForRemoveDelay"],on:{REMOVE:{target:"unmounted",actions:["notifyParentToRemove"]}}},unmounted:{entry:["invokeOnUnmount"]}},implementations:{effects:{waitForRemoveDelay:({prop:e,send:t})=>(0,s.cX)(()=>{t({type:"REMOVE",src:"timer"})},e("removeDelay")),waitForDuration({send:e,context:t,computed:n}){if(!n("shouldPersist"))return(0,s.cX)(()=>{e({type:"DISMISS",src:"timer"})},t.get("remainingTime"))},waitForNextTick:({send:e})=>(0,s.cX)(()=>{e({type:"SHOW",src:"timer"})},0),trackHeight({scope:e,prop:t}){let n;return(0,r.Wn)(()=>{let r=f(e);if(!r)return;let i=new(e.getWin()).MutationObserver(()=>{let e=r.style.height;r.style.height="auto";let n=r.getBoundingClientRect().height;r.style.height=e;let i={id:t("id"),height:n};S(t("parent"),i)});i.observe(r,{childList:!0,subtree:!0,characterData:!0}),n=()=>i.disconnect()}),()=>n?.()}},guards:{isLoadingType:({prop:e})=>"loading"===e("type"),shouldPersist:({computed:e})=>e("shouldPersist")},actions:{setMounted({context:e}){(0,r.Wn)(()=>{e.set("mounted",!0)})},measureHeight({scope:e,prop:t,context:n}){queueMicrotask(()=>{let r=f(e);if(!r)return;let i=r.style.height;r.style.height="auto";let o=r.getBoundingClientRect().height;r.style.height=i,n.set("initialHeight",o);let a={id:t("id"),height:o};S(t("parent"),a)})},setCloseTimer({refs:e}){e.set("closeTimerStartTime",Date.now())},resetCloseTimer({context:e,refs:t,prop:n}){t.set("closeTimerStartTime",Date.now()),e.set("remainingTime",m(n("duration"),n("type")))},syncRemainingTime({context:e,refs:t}){e.set("remainingTime",e=>{let n=t.get("closeTimerStartTime"),r=Date.now()-n;return t.set("lastCloseStartTimerStartTime",Date.now()),e-r})},notifyParentToRemove({prop:e}){e("parent").send({type:"TOAST.REMOVE",id:e("id")})},invokeOnDismiss({prop:e,event:t}){e("onStatusChange")?.({status:"dismissing",src:t.src})},invokeOnUnmount({prop:e}){e("onStatusChange")?.({status:"unmounted"})},invokeOnVisible({prop:e}){e("onStatusChange")?.({status:"visible"})}}}});function S(e,t){let{id:n,height:r}=t;e.context.set("heights",e=>e.find(e=>e.id===n)?e.map(e=>e.id===n?{...e,height:r}:e):[{id:n,height:r},...e])}var k=(e,t)=>({...t,...(0,s.oA)(e)});function O(e){let t=k(e,{placement:"bottom",overlap:!1,max:24,gap:16,offsets:"1rem",hotkey:["altKey","KeyT"],removeDelay:200,pauseOnPageIdle:!0}),n=[],r=[],i=new Set,o=[],a=e=>(n.forEach(t=>t(e)),e),l=e=>{if(r.length>=t.max){o.push(e);return}a(e),r.unshift(e)},u=()=>{for(;o.length>0&&r.length<t.max;){let e=o.shift();e&&(a(e),r.unshift(e))}},c=e=>{let n=e.id??`toast:${(0,s.Vj)()}`,o=r.find(e=>e.id===n);return i.has(n)&&i.delete(n),o?r=r.map(t=>t.id===n?a({...t,...e,id:n}):t):l({id:n,duration:t.duration,removeDelay:t.removeDelay,type:"info",...e,stacked:!t.overlap,gap:t.gap}),n},d=e=>(i.add(e),e?(n.forEach(t=>t({id:e,dismiss:!0})),r=r.filter(t=>t.id!==e),u()):(r.forEach(e=>{n.forEach(t=>t({id:e.id,dismiss:!0}))}),r=[],o=[]),e);return{attrs:t,subscribe:e=>(n.push(e),()=>{let t=n.indexOf(e);n.splice(t,1)}),create:c,update:(e,t)=>c({id:e,...t}),remove:d,dismiss:e=>{r=null!=e?r.map(t=>t.id===e?a({...t,message:"DISMISS"}):t):r.map(e=>a({...e,message:"DISMISS"}))},error:e=>c({...e,type:"error"}),success:e=>c({...e,type:"success"}),info:e=>c({...e,type:"info"}),warning:e=>c({...e,type:"warning"}),loading:e=>c({...e,type:"loading"}),getVisibleToasts:()=>r.filter(e=>!i.has(e.id)),getCount:()=>r.length,promise:(e,t,n={})=>{let r;if(!t||!t.loading){(0,s.ZK)("[zag-js > toast] toaster.promise() requires at least a 'loading' option to be specified");return}let i=c({...n,...t.loading,promise:e,type:"loading"}),o=!0,a=(0,s.Pu)(e).then(async e=>{if(r=["resolve",e],C(e)&&!e.ok){o=!1;let r=(0,s.Pu)(t.error,`HTTP Error! status: ${e.status}`);c({...n,...r,id:i,type:"error"})}else if(void 0!==t.success){o=!1;let r=(0,s.Pu)(t.success,e);c({...n,...r,id:i,type:"success"})}}).catch(async e=>{if(r=["reject",e],void 0!==t.error){o=!1;let r=(0,s.Pu)(t.error,e);c({...n,...r,id:i,type:"error"})}}).finally(()=>{o&&d(i),t.finally?.()});return{id:i,unwrap:()=>new Promise((e,t)=>a.then(()=>"reject"===r[0]?t(r[1]):e(r[1])).catch(t))}},pause:e=>{r=null!=e?r.map(t=>t.id===e?a({...t,message:"PAUSE"}):t):r.map(e=>a({...e,message:"PAUSE"}))},resume:e=>{r=null!=e?r.map(t=>t.id===e?a({...t,message:"RESUME"}):t):r.map(e=>a({...e,message:"RESUME"}))},isVisible:e=>!i.has(e)&&!!r.find(t=>t.id===e),isDismissed:e=>i.has(e),expand:()=>{r=r.map(e=>a({...e,stacked:!0}))},collapse:()=>{r=r.map(e=>a({...e,stacked:!1}))}}}var C=e=>e&&"object"==typeof e&&"ok"in e&&"boolean"==typeof e.ok&&"status"in e&&"number"==typeof e.status,I={connect:function(e,t){let{context:n,prop:i,send:o,refs:a,computed:s}=e;return{getCount:()=>n.get("toasts").length,getToasts:()=>n.get("toasts"),getGroupProps(n={}){let{label:c="Notifications"}=n,{hotkey:d}=i("store").attrs,f=d.join("+").replace(/Key/g,"").replace(/Digit/g,""),h=s("placement"),[p,g="center"]=h.split("-");return t.element({...l.group.attrs,dir:i("dir"),tabIndex:-1,"aria-label":`${h} ${c} ${f}`,id:u(h),"data-placement":h,"data-side":p,"data-align":g,"aria-live":"polite",role:"region",style:function(e,t){let{prop:n,computed:i,context:o}=e,{offsets:a,gap:s}=n("store").attrs,l=o.get("heights"),u=b(a),c="rtl"===n("dir"),d=t.replace("-start",c?"-right":"-left").replace("-end",c?"-left":"-right"),f=d.includes("right"),h=d.includes("left"),p={position:"fixed",pointerEvents:i("count")>0?void 0:"none",display:"flex",flexDirection:"column","--gap":`${s}px`,"--first-height":`${l[0]?.height||0}px`,zIndex:r.dw},g="center";if(f&&(g="flex-end"),h&&(g="flex-start"),p.alignItems=g,d.includes("top")){let e=u.top;p.top=`max(env(safe-area-inset-top, 0px), ${e})`}if(d.includes("bottom")){let e=u.bottom;p.bottom=`max(env(safe-area-inset-bottom, 0px), ${e})`}if(!d.includes("left")){let e=u.right;p.insetInlineEnd=`calc(env(safe-area-inset-right, 0px) + ${e})`}if(!d.includes("right")){let e=u.left;p.insetInlineStart=`calc(env(safe-area-inset-left, 0px) + ${e})`}return p}(e,h),onMouseMove(){o({type:"REGION.POINTER_ENTER",placement:h})},onMouseLeave(){o({type:"REGION.POINTER_LEAVE",placement:h})},onFocus(e){o({type:"REGION.FOCUS",target:e.relatedTarget})},onBlur(e){a.get("isFocusWithin")&&!(0,r.r3)(e.currentTarget,e.relatedTarget)&&queueMicrotask(()=>o({type:"REGION.BLUR"}))}})},subscribe:e=>i("store").subscribe(()=>e(n.get("toasts")))}},machine:y}},76956:function(e,t,n){"use strict";n.d(t,{Os:function(){return D},$j:function(){return $},u_:function(){return K}});var r=n(26558),i=n(88928),o=n(71490),a=n(31298);let s=Symbol(),l=Symbol(),u=(e,t)=>new Proxy(e,t),c=Object.getPrototypeOf,d=new WeakMap,f=e=>e&&(d.has(e)?d.get(e):c(e)===Object.prototype||c(e)===Array.prototype),h=e=>Object.values(Object.getOwnPropertyDescriptors(e)).some(e=>!e.configurable&&!e.writable),p=e=>{if(Array.isArray(e))return Array.from(e);let t=Object.getOwnPropertyDescriptors(e);return Object.values(t).forEach(e=>{e.configurable=!0}),Object.create(c(e),t)},g=(e,t)=>{let n={f:t},r=!1,i=(t,i)=>{if(!r){let r=n.a.get(e);if(r||(r={},n.a.set(e,r)),"w"===t)r.w=!0;else{let e=r[t];e||(e=new Set,r[t]=e),e.add(i)}}},o=()=>{r=!0,n.a.delete(e)},a={get:(t,r)=>r===l?e:(i("k",r),m(Reflect.get(t,r),n.a,n.c,n.t)),has:(e,t)=>t===s?(o(),!0):(i("h",t),Reflect.has(e,t)),getOwnPropertyDescriptor:(e,t)=>(i("o",t),Reflect.getOwnPropertyDescriptor(e,t)),ownKeys:e=>(i("w"),Reflect.ownKeys(e))};return t&&(a.set=a.deleteProperty=()=>!1),[a,n]},v=e=>e[l]||e,m=(e,t,n,r)=>{if(!f(e))return e;let i=r&&r.get(e);if(!i){let t=v(e);i=h(t)?[t,p(t)]:[t],null==r||r.set(e,i)}let[o,a]=i,s=n&&n.get(o);return(!s||!!a!==s[1].f)&&((s=g(o,!!a))[1].p=u(a||o,s[0]),n&&n.set(o,s)),s[1].a=t,s[1].c=n,s[1].t=r,s[1].p},b=e=>f(e)&&e[l]||null,y=(e,t=!0)=>{d.set(e,t)};function x(e,t){let n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:void 0;return n?(n[e]||(n[e]=t()),n[e]):t()}var w=x("__zag__refSet",()=>new WeakSet),E=e=>"object"==typeof e&&null!==e&&"$$typeof"in e&&"props"in e,S=e=>"object"==typeof e&&null!==e&&"__v_isVNode"in e,k=e=>"object"==typeof e&&null!==e&&"nodeType"in e&&"string"==typeof e.nodeName,O=e=>E(e)||S(e)||k(e),C=e=>null!==e&&"object"==typeof e,I=e=>C(e)&&!w.has(e)&&(Array.isArray(e)||!(Symbol.iterator in e))&&!O(e)&&!(e instanceof WeakMap)&&!(e instanceof WeakSet)&&!(e instanceof Error)&&!(e instanceof Number)&&!(e instanceof Date)&&!(e instanceof String)&&!(e instanceof RegExp)&&!(e instanceof ArrayBuffer)&&!(e instanceof Promise),_=()=>!1,T=x("__zag__proxyStateMap",()=>new WeakMap),[P]=((e=Object.is,t=(e,t)=>new Proxy(e,t),n=new WeakMap,r=(e,t)=>{let r=n.get(e);if(r?.[0]===t)return r[1];let i=Array.isArray(e)?[]:Object.create(Object.getPrototypeOf(e));return y(i,!0),n.set(e,[t,i]),Reflect.ownKeys(e).forEach(t=>{let n=Reflect.get(e,t);w.has(n)?(y(n,!1),i[t]=n):T.has(n)?i[t]=A(n):i[t]=n}),Object.freeze(i)},i=new WeakMap,o=[1,1],a=n=>{if(!C(n))throw Error("object required");let a=i.get(n);if(a)return a;let s=o[0],l=new Set,u=(e,t=++o[0])=>{s!==t&&(s=t,l.forEach(n=>n(e,t)))},c=o[1],d=(e=++o[1])=>(c===e||l.size||(c=e,h.forEach(([t])=>{let n=t[1](e);n>s&&(s=n)})),s),f=e=>(t,n)=>{let r=[...t];r[1]=[e,...r[1]],u(r,n)},h=new Map,p=(e,t)=>{if(_()&&h.has(e))throw Error("prop listener already exists");if(l.size){let n=t[3](f(e));h.set(e,[t,n])}else h.set(e,[t])},g=e=>{let t=h.get(e);t&&(h.delete(e),t[1]?.())},v=e=>{l.add(e),1===l.size&&h.forEach(([e,t],n)=>{if(_()&&t)throw Error("remove already exists");let r=e[3](f(n));h.set(n,[e,r])});let t=()=>{l.delete(e),0===l.size&&h.forEach(([e,t],n)=>{t&&(t(),h.set(n,[e]))})};return t},m=Array.isArray(n)?[]:Object.create(Object.getPrototypeOf(n)),y={deleteProperty(e,t){let n=Reflect.get(e,t);g(t);let r=Reflect.deleteProperty(e,t);return r&&u(["delete",[t],n]),r},set(t,n,r,o){let a=Reflect.has(t,n),s=Reflect.get(t,n,o);if(a&&(e(s,r)||i.has(r)&&e(s,i.get(r))))return!0;g(n),C(r)&&(r=b(r)||r);let l=r;if(Object.getOwnPropertyDescriptor(t,n)?.set);else{!T.has(r)&&I(r)&&(l=R(r));let e=!w.has(l)&&T.get(l);e&&p(n,e)}return Reflect.set(t,n,l,o),u(["set",[n],r,s]),!0}},x=t(m,y);i.set(n,x);let E=[m,d,r,v];return T.set(x,E),Reflect.ownKeys(n).forEach(e=>{let t=Object.getOwnPropertyDescriptor(n,e);t.get||t.set?Object.defineProperty(m,e,t):x[e]=n[e]}),x})=>[a,T,w,e,t,I,n,r,i,o])();function R(e={}){return P(e)}function A(e){let t=T.get(e);_()&&!t&&console.warn("Please use proxy object");let[n,r,i]=t;return i(n,r())}var N=n(20749),M=n(41869),L=n(72766),D=(0,r.F)("tooltip").parts("trigger","arrow","arrowTip","positioner","content"),F=D.build(),V=e=>e.ids?.trigger??`tooltip:${e.id}:trigger`,j=e=>e.ids?.content??`tooltip:${e.id}:content`,z=e=>e.ids?.arrow??`tooltip:${e.id}:arrow`,U=e=>e.ids?.positioner??`tooltip:${e.id}:popper`,B=e=>e.getById(V(e)),W=e=>e.getById(U(e)),H=R({id:null});function $(e,t){let{state:n,context:r,send:s,scope:l,prop:u,event:c}=e,d=u("id"),f=!!u("aria-label"),h=n.matches("open","closing"),p=V(l),g=j(l),v=u("disabled"),m=(0,a.hn)({...u("positioning"),placement:r.get("currentPlacement")});return{open:h,setOpen(e){n.matches("open","closing")!==e&&s({type:e?"open":"close"})},reposition(e={}){s({type:"positioning.set",options:e})},getTriggerProps:()=>t.button({...F.trigger.attrs,id:p,dir:u("dir"),"data-expanded":(0,i.PB)(h),"data-state":h?"open":"closed","aria-describedby":h?g:void 0,onClick(e){!e.defaultPrevented&&!v&&u("closeOnClick")&&s({type:"close",src:"trigger.click"})},onFocus(e){queueMicrotask(()=>{!e.defaultPrevented&&!v&&"trigger.pointerdown"!==c.src&&(0,o.E)()&&s({type:"open",src:"trigger.focus"})})},onBlur(e){!e.defaultPrevented&&(v||d!==H.id||s({type:"close",src:"trigger.blur"}))},onPointerDown(e){!e.defaultPrevented&&!v&&(0,i.pW)(e)&&u("closeOnPointerDown")&&d===H.id&&s({type:"close",src:"trigger.pointerdown"})},onPointerMove(e){e.defaultPrevented||v||"touch"===e.pointerType||s({type:"pointer.move"})},onPointerLeave(){v||s({type:"pointer.leave"})},onPointerCancel(){v||s({type:"pointer.leave"})}}),getArrowProps:()=>t.element({id:z(l),...F.arrow.attrs,dir:u("dir"),style:m.arrow}),getArrowTipProps:()=>t.element({...F.arrowTip.attrs,dir:u("dir"),style:m.arrowTip}),getPositionerProps:()=>t.element({id:U(l),...F.positioner.attrs,dir:u("dir"),style:m.floating}),getContentProps:()=>t.element({...F.content.attrs,dir:u("dir"),hidden:!h,"data-state":h?"open":"closed",role:f?void 0:"tooltip",id:f?void 0:g,"data-placement":r.get("currentPlacement"),onPointerEnter(){s({type:"content.pointer.move"})},onPointerLeave(){s({type:"content.pointer.leave"})},style:{pointerEvents:u("interactive")?"auto":"none"}})}}var{and:q,not:G}=(0,N.Fb)(),K=(0,N.C8)({initialState:({prop:e})=>e("open")||e("defaultOpen")?"open":"closed",props:({props:e})=>({id:"x",openDelay:1e3,closeDelay:500,closeOnPointerDown:!0,closeOnEscape:!0,interactive:!1,closeOnScroll:!0,closeOnClick:!0,disabled:!1,...e,positioning:{placement:"bottom",...e.positioning}}),effects:["trackFocusVisible","trackStore"],context:({bindable:e})=>({currentPlacement:e(()=>({defaultValue:void 0})),hasPointerMoveOpened:e(()=>({defaultValue:!1}))}),watch({track:e,action:t,prop:n}){e([()=>n("disabled")],()=>{t(["closeIfDisabled"])}),e([()=>n("open")],()=>{t(["toggleVisibility"])})},states:{closed:{entry:["clearGlobalId"],on:{"controlled.open":{target:"open"},open:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}],"pointer.leave":{actions:["clearPointerMoveOpened"]},"pointer.move":[{guard:q("noVisibleTooltip",G("hasPointerMoveOpened")),target:"opening"},{guard:G("hasPointerMoveOpened"),target:"open",actions:["setPointerMoveOpened","invokeOnOpen"]}]}},opening:{effects:["trackScroll","trackPointerlockChange","waitForOpenDelay"],on:{"after.openDelay":[{guard:"isOpenControlled",actions:["setPointerMoveOpened","invokeOnOpen"]},{target:"open",actions:["setPointerMoveOpened","invokeOnOpen"]}],"controlled.open":{target:"open"},"controlled.close":{target:"closed"},open:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}],"pointer.leave":[{guard:"isOpenControlled",actions:["clearPointerMoveOpened","invokeOnClose","toggleVisibility"]},{target:"closed",actions:["clearPointerMoveOpened","invokeOnClose"]}],close:[{guard:"isOpenControlled",actions:["invokeOnClose","toggleVisibility"]},{target:"closed",actions:["invokeOnClose"]}]}},open:{effects:["trackEscapeKey","trackScroll","trackPointerlockChange","trackPositioning"],entry:["setGlobalId"],on:{"controlled.close":{target:"closed"},close:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],"pointer.leave":[{guard:"isVisible",target:"closing",actions:["clearPointerMoveOpened"]},{guard:"isOpenControlled",actions:["clearPointerMoveOpened","invokeOnClose"]},{target:"closed",actions:["clearPointerMoveOpened","invokeOnClose"]}],"content.pointer.leave":{guard:"isInteractive",target:"closing"},"positioning.set":{actions:["reposition"]}}},closing:{effects:["trackPositioning","waitForCloseDelay"],on:{"after.closeDelay":[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],"controlled.close":{target:"closed"},"controlled.open":{target:"open"},close:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],"pointer.move":[{guard:"isOpenControlled",actions:["setPointerMoveOpened","invokeOnOpen","toggleVisibility"]},{target:"open",actions:["setPointerMoveOpened","invokeOnOpen"]}],"content.pointer.move":{guard:"isInteractive",target:"open"},"positioning.set":{actions:["reposition"]}}}},implementations:{guards:{noVisibleTooltip:()=>null===H.id,isVisible:({prop:e})=>e("id")===H.id,isInteractive:({prop:e})=>!!e("interactive"),hasPointerMoveOpened:({context:e})=>e.get("hasPointerMoveOpened"),isOpenControlled:({prop:e})=>void 0!==e("open")},actions:{setGlobalId:({prop:e})=>{H.id=e("id")},clearGlobalId:({prop:e})=>{e("id")===H.id&&(H.id=null)},invokeOnOpen:({prop:e})=>{e("onOpenChange")?.({open:!0})},invokeOnClose:({prop:e})=>{e("onOpenChange")?.({open:!1})},closeIfDisabled:({prop:e,send:t})=>{e("disabled")&&t({type:"close",src:"disabled.change"})},reposition:({context:e,event:t,prop:n,scope:r})=>{if("positioning.set"===t.type)return(0,a.x_)(B(r),()=>W(r),{...n("positioning"),...t.options,defer:!0,listeners:!1,onComplete(t){e.set("currentPlacement",t.placement)}})},toggleVisibility:({prop:e,event:t,send:n})=>{queueMicrotask(()=>{n({type:e("open")?"controlled.open":"controlled.close",previousEvent:t})})},setPointerMoveOpened:({context:e})=>{e.set("hasPointerMoveOpened",!0)},clearPointerMoveOpened:({context:e})=>{e.set("hasPointerMoveOpened",!1)}},effects:{trackFocusVisible:({scope:e})=>(0,o.BT)({root:e.getRootNode?.()}),trackPositioning:({context:e,prop:t,scope:n})=>(e.get("currentPlacement")||e.set("currentPlacement",t("positioning").placement),(0,a.x_)(B(n),()=>W(n),{...t("positioning"),defer:!0,onComplete(t){e.set("currentPlacement",t.placement)}})),trackPointerlockChange:({send:e,scope:t})=>{let n=t.getDoc();return(0,i.EV)(n,"pointerlockchange",()=>e({type:"close",src:"pointerlock:change"}),!1)},trackScroll:({send:e,prop:t,scope:n})=>{if(!t("closeOnScroll"))return;let r=B(n);if(!r)return;let o=(0,i.Kx)(r).map(t=>(0,i.EV)(t,"scroll",()=>{e({type:"close",src:"scroll"})},{passive:!0,capture:!0}));return()=>{o.forEach(e=>e?.())}},trackStore:({prop:e,send:t})=>{let n;return queueMicrotask(()=>{n=function(e,t,n){let r;let i=T.get(e);_()&&!i&&console.warn("Please use proxy object");let o=[],a=i[3],s=!1,l=a(e=>{o.push(e),r||(r=Promise.resolve().then(()=>{r=void 0,s&&t(o.splice(0))}))});return s=!0,()=>{s=!1,l()}}(H,()=>{H.id!==e("id")&&t({type:"close",src:"id.change"})})}),()=>n?.()},trackEscapeKey:({send:e,prop:t})=>{if(t("closeOnEscape"))return(0,i.EV)(document,"keydown",t=>{(0,i.rT)(t)||"Escape"!==t.key||(t.stopPropagation(),e({type:"close",src:"keydown.escape"}))},!0)},waitForOpenDelay:({send:e,prop:t})=>{let n=setTimeout(()=>{e({type:"after.openDelay"})},t("openDelay"));return()=>clearTimeout(n)},waitForCloseDelay:({send:e,prop:t})=>{let n=setTimeout(()=>{e({type:"after.closeDelay"})},t("closeDelay"));return()=>clearTimeout(n)}}}}),Z=(0,M.e)()(["aria-label","closeDelay","closeOnEscape","closeOnPointerDown","closeOnScroll","closeOnClick","dir","disabled","getRootNode","id","ids","interactive","onOpenChange","defaultOpen","open","openDelay","positioning"]);(0,L.xQ)(Z)},41869:function(e,t,n){"use strict";function r(e){return new Proxy({},{get:(t,n)=>"style"===n?t=>e({style:t}).style:e})}n.d(t,{F:function(){return r},e:function(){return i}});var i=()=>e=>Array.from(new Set(e))},72766:function(e,t,n){"use strict";let r;function i(e){return null==e?[]:Array.isArray(e)?e:[e]}n.d(t,{BK:function(){return er},Dh:function(){return eu},EQ:function(){return M},Ft:function(){return C},GI:function(){return el},HD:function(){return k},HU:function(){return J},IH:function(){return l},JK:function(){return eo},Je:function(){return Y},Kn:function(){return E},Mi:function(){return es},N4:function(){return ei},Od:function(){return u},PP:function(){return A},Ps:function(){return o},Pu:function(){return _},RV:function(){return ec},Sm:function(){return h},U4:function(){return eg},Uq:function(){return X},Vj:function(){return N},WR:function(){return eE},Xy:function(){return b},Y3:function(){return L},Z$:function(){return a},ZK:function(){return ex},ZT:function(){return R},cX:function(){return ey},d5:function(){return d},ei:function(){return em},h1:function(){return et},hj:function(){return S},jn:function(){return x},kb:function(){return c},lp:function(){return f},lt:function(){return ed},m2:function(){return I},mf:function(){return O},mp:function(){return p},oA:function(){return function e(t){if(!ev(t)||void 0===t)return t;let n=Reflect.ownKeys(t).filter(e=>"string"==typeof e),r={};for(let i of n){let n=t[i];void 0!==n&&(r[i]=e(n))}return r}},oe:function(){return Z},pc:function(){return ep},pj:function(){return T},qo:function(){return i},re:function(){return q},wQ:function(){return $},xQ:function(){return eb},xs:function(){return ee},yR:function(){return P},yo:function(){return g},zx:function(){return ew}});var o=e=>e[0],a=e=>e[e.length-1],s=(e,t)=>-1!==e.indexOf(t),l=(e,...t)=>e.concat(t),u=(e,...t)=>e.filter(e=>!t.includes(e)),c=(e,t)=>s(e,t)?u(e,t):l(e,t);function d(e,t,n={}){let{step:r=1,loop:i=!0}=n,o=t+r,a=e.length,s=a-1;return -1===t?r>0?0:s:o<0?i?s:0:o>=a?i?0:t>a?a:t:o}function f(e,t,n={}){return e[d(e,t,n)]}function h(e,t,n={}){let{step:r=1,loop:i=!0}=n;return d(e,t,{step:-r,loop:i})}function p(e,t,n={}){return e[h(e,t,n)]}function g(e,t){return e.reduce((e,n,r)=>(r%t==0?e.push([n]):a(e)?.push(n),e),[])}var v=e=>e?.constructor.name==="Array",m=(e,t)=>{if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!b(e[n],t[n]))return!1;return!0},b=(e,t)=>{if(Object.is(e,t))return!0;if(null==e&&null!=t||null!=e&&null==t)return!1;if("function"==typeof e?.isEqual&&"function"==typeof t?.isEqual)return e.isEqual(t);if("function"==typeof e&&"function"==typeof t)return e.toString()===t.toString();if(v(e)&&v(t))return m(Array.from(e),Array.from(t));if("object"!=typeof e||"object"!=typeof t)return!1;let n=Object.keys(t??Object.create(null)),r=n.length;for(let t=0;t<r;t++)if(!Reflect.has(e,n[t]))return!1;for(let i=0;i<r;i++){let r=n[i];if(!b(e[r],t[r]))return!1}return!0},y=e=>Array.isArray(e),x=e=>!0===e||!1===e,w=e=>null!=e&&"object"==typeof e,E=e=>w(e)&&!y(e),S=e=>"number"==typeof e&&!Number.isNaN(e),k=e=>"string"==typeof e,O=e=>"function"==typeof e,C=e=>null==e,I=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);Function.prototype.toString.call(Object);var _=(e,...t)=>("function"==typeof e?e(...t):e)??void 0,T=e=>e,P=e=>e(),R=()=>{},A=(...e)=>(...t)=>{e.forEach(function(e){e?.(...t)})},N=(r=0,()=>(r++,r.toString(36)));function M(e,t,...n){if(e in t){let r=t[e];return O(r)?r(...n):r}let r=Error(`No matching key: ${JSON.stringify(e)} in ${JSON.stringify(Object.keys(t))}`);throw Error.captureStackTrace?.(r,M),r}var L=(e,t)=>{try{return e()}catch(e){return e instanceof Error&&Error.captureStackTrace?.(e,L),t?.()}},{floor:D,abs:F,round:V,min:j,max:z,pow:U,sign:B}=Math,W=e=>Number.isNaN(e),H=e=>W(e)?0:e,$=(e,t)=>(e%t+t)%t,q=(e,t)=>(e%t+t)%t,G=(e,t,n)=>0===e?n:t[e-1],K=(e,t,n)=>e===t.length-1?n:t[e+1],Z=(e,t)=>H(e)>=t,Y=(e,t)=>H(e)<=t,X=(e,t,n)=>H(e)>=t&&H(e)<=n,Q=(e,t,n)=>V((H(e)-t)/n)*n+t,J=(e,t,n)=>j(z(H(e),t),n),ee=(e,t,n)=>(H(e)-t)/(n-t),et=(e,t,n,r)=>J(Q(e*(n-t)+t,t,r),t,n),en=(e,t)=>{let n=e,r=t.toString(),i=r.indexOf("."),o=i>=0?r.length-i:0;if(o>0){let e=U(10,o);n=V(n*e)/e}return n},er=(e,t)=>"number"==typeof t?D(e*t+.5)/t:V(e),ei=(e,t,n,r)=>{let i=null!=t?Number(t):0,o=Number(n),a=(e-i)%r,s=2*F(a)>=r?e+B(a)*(r-F(a)):e-a;if(s=en(s,r),!W(i)&&s<i)s=i;else if(!W(o)&&s>o){let e=D((o-i)/r),t=i+e*r;s=e<=0||t<i?o:t}return en(s,r)},eo=(e,t,n)=>e[t]===n?e:[...e.slice(0,t),n,...e.slice(t+1)];function ea(e,t){let n=G(e,t.values,t.min),r=K(e,t.values,t.max),i=t.values.slice();return function(o){let a=ei(o,n,r,t.step);return(i=eo(i,e,o))[e]=a,i}}function es(e,t){let n=t.values[e]+t.step;return ea(e,t)(n)}function el(e,t){let n=t.values[e]-t.step;return ea(e,t)(n)}var eu=(e,t)=>{let n=e.findIndex(e=>t-e<0);if(0===n)return n;if(-1===n)return e.length-1;let r=e[n-1],i=e[n];return F(r-t)<F(i-t)?n-1:n},ec=(e,t,n,r)=>e.map((i,o)=>({min:0===o?t:e[o-1]+r,max:o===e.length-1?n:e[o+1]-r,value:i})),ed=(e,t=0,n=10)=>{let r=Math.pow(n,t);return V(e*r)/r},ef=e=>{if(!Number.isFinite(e))return 0;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n+=1;return n},eh=(e,t,n)=>{let r="+"===t?e+n:e-n;if(e%1!=0||n%1!=0){let i=10**Math.max(ef(e),ef(n));e=Math.round(e*i),n=Math.round(n*i),r=("+"===t?e+n:e-n)/i}return r},ep=(e,t)=>eh(H(e),"+",t),eg=(e,t)=>eh(H(e),"-",t),ev=e=>e&&"object"==typeof e&&e.constructor===Object;function em(e,t){let n={};for(let r of t){let t=e[r];void 0!==t&&(n[r]=t)}return n}var eb=e=>function(t){return function(e,t){let n={},r={},i=new Set(t);for(let t in e)i.has(t)?r[t]=e[t]:n[t]=e[t];return[r,n]}(t,e)};function ey(e,t){let n;let r=performance.now();return n=requestAnimationFrame(function i(o){if(o-r>=t){e();return}n=requestAnimationFrame(i)}),()=>cancelAnimationFrame(n)}function ex(...e){1===e.length?e[0]:e[1],2!==e.length||e[0]}function ew(e,t){if(null==e)throw Error(t())}function eE(e,t,n){let r=[];for(let n of t)null==e[n]&&r.push(n);if(r.length>0)throw Error(`[zag-js${n?` > ${n}`:""}] missing required props: ${r.join(", ")}`)}},86891:function(e,t,n){"use strict";n.d(t,{IZ:function(){return d},d7:function(){return i}});let{Axios:r,AxiosError:i,CanceledError:o,isCancel:a,CancelToken:s,VERSION:l,all:u,Cancel:c,isAxiosError:d,spread:f,toFormData:h,AxiosHeaders:p,HttpStatusCode:g,formToJSON:v,getAdapter:m,mergeConfig:b}=n(26828).default},26828:function(e,t,n){"use strict";let r,i,o,a,s;n.d(t,{default:function(){return tg}});var l,u,c,d,f,h={};function p(e,t){return function(){return e.apply(t,arguments)}}n.r(h),n.d(h,{hasBrowserEnv:function(){return eb},hasStandardBrowserEnv:function(){return ex},hasStandardBrowserWebWorkerEnv:function(){return ew},navigator:function(){return ey},origin:function(){return eE}});var g=n(85555);let{toString:v}=Object.prototype,{getPrototypeOf:m}=Object,{iterator:b,toStringTag:y}=Symbol,x=(r=Object.create(null),e=>{let t=v.call(e);return r[t]||(r[t]=t.slice(8,-1).toLowerCase())}),w=e=>(e=e.toLowerCase(),t=>x(t)===e),E=e=>t=>typeof t===e,{isArray:S}=Array,k=E("undefined"),O=w("ArrayBuffer"),C=E("string"),I=E("function"),_=E("number"),T=e=>null!==e&&"object"==typeof e,P=e=>{if("object"!==x(e))return!1;let t=m(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(y in e)&&!(b in e)},R=w("Date"),A=w("File"),N=w("Blob"),M=w("FileList"),L=w("URLSearchParams"),[D,F,V,j]=["ReadableStream","Request","Response","Headers"].map(w);function z(e,t,{allOwnKeys:n=!1}={}){let r,i;if(null!=e){if("object"!=typeof e&&(e=[e]),S(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{let i;let o=n?Object.getOwnPropertyNames(e):Object.keys(e),a=o.length;for(r=0;r<a;r++)i=o[r],t.call(null,e[i],i,e)}}}function U(e,t){let n;t=t.toLowerCase();let r=Object.keys(e),i=r.length;for(;i-- >0;)if(t===(n=r[i]).toLowerCase())return n;return null}let B="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,W=e=>!k(e)&&e!==B,H=(i="undefined"!=typeof Uint8Array&&m(Uint8Array),e=>i&&e instanceof i),$=w("HTMLFormElement"),q=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),G=w("RegExp"),K=(e,t)=>{let n=Object.getOwnPropertyDescriptors(e),r={};z(n,(n,i)=>{let o;!1!==(o=t(n,i,e))&&(r[i]=o||n)}),Object.defineProperties(e,r)},Z=w("AsyncFunction"),Y=(l="function"==typeof setImmediate,u=I(B.postMessage),l?setImmediate:u?(c=`axios@${Math.random()}`,d=[],B.addEventListener("message",({source:e,data:t})=>{e===B&&t===c&&d.length&&d.shift()()},!1),e=>{d.push(e),B.postMessage(c,"*")}):e=>setTimeout(e)),X="undefined"!=typeof queueMicrotask?queueMicrotask.bind(B):void 0!==g&&g.nextTick||Y;var Q={isArray:S,isArrayBuffer:O,isBuffer:function(e){return null!==e&&!k(e)&&null!==e.constructor&&!k(e.constructor)&&I(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||I(e.append)&&("formdata"===(t=x(e))||"object"===t&&I(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&O(e.buffer)},isString:C,isNumber:_,isBoolean:e=>!0===e||!1===e,isObject:T,isPlainObject:P,isReadableStream:D,isRequest:F,isResponse:V,isHeaders:j,isUndefined:k,isDate:R,isFile:A,isBlob:N,isRegExp:G,isFunction:I,isStream:e=>T(e)&&I(e.pipe),isURLSearchParams:L,isTypedArray:H,isFileList:M,forEach:z,merge:function e(){let{caseless:t}=W(this)&&this||{},n={},r=(r,i)=>{let o=t&&U(n,i)||i;P(n[o])&&P(r)?n[o]=e(n[o],r):P(r)?n[o]=e({},r):S(r)?n[o]=r.slice():n[o]=r};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&z(arguments[e],r);return n},extend:(e,t,n,{allOwnKeys:r}={})=>(z(t,(t,r)=>{n&&I(t)?e[r]=p(t,n):e[r]=t},{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let i,o,a;let s={};if(t=t||{},null==e)return t;do{for(o=(i=Object.getOwnPropertyNames(e)).length;o-- >0;)a=i[o],(!r||r(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=!1!==n&&m(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:x,kindOfTest:w,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;let r=e.indexOf(t,n);return -1!==r&&r===n},toArray:e=>{if(!e)return null;if(S(e))return e;let t=e.length;if(!_(t))return null;let n=Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{let n;let r=(e&&e[b]).call(e);for(;(n=r.next())&&!n.done;){let r=n.value;t.call(e,r[0],r[1])}},matchAll:(e,t)=>{let n;let r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:$,hasOwnProperty:q,hasOwnProp:q,reduceDescriptors:K,freezeMethods:e=>{K(e,(t,n)=>{if(I(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;if(I(e[n])){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},toObjectSet:(e,t)=>{let n={};return(e=>{e.forEach(e=>{n[e]=!0})})(S(e)?e:String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:U,global:B,isContextDefined:W,isSpecCompliantForm:function(e){return!!(e&&I(e.append)&&"FormData"===e[y]&&e[b])},toJSONObject:e=>{let t=Array(10),n=(e,r)=>{if(T(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;let i=S(e)?[]:{};return z(e,(e,t)=>{let o=n(e,r+1);k(o)||(i[t]=o)}),t[r]=void 0,i}}return e};return n(e,0)},isAsyncFn:Z,isThenable:e=>e&&(T(e)||I(e))&&I(e.then)&&I(e.catch),setImmediate:Y,asap:X,isIterable:e=>null!=e&&I(e[b])};function J(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}Q.inherits(J,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Q.toJSONObject(this.config),code:this.code,status:this.status}}});let ee=J.prototype,et={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{et[e]={value:e}}),Object.defineProperties(J,et),Object.defineProperty(ee,"isAxiosError",{value:!0}),J.from=(e,t,n,r,i,o)=>{let a=Object.create(ee);return Q.toFlatObject(e,a,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e),J.call(a,e.message,t,n,r,i),a.cause=e,a.name=e.name,o&&Object.assign(a,o),a};var en=n(12138).Buffer;function er(e){return Q.isPlainObject(e)||Q.isArray(e)}function ei(e){return Q.endsWith(e,"[]")?e.slice(0,-2):e}function eo(e,t,n){return e?e.concat(t).map(function(e,t){return e=ei(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}let ea=Q.toFlatObject(Q,{},null,function(e){return/^is[A-Z]/.test(e)});var es=function(e,t,n){if(!Q.isObject(e))throw TypeError("target must be an object");t=t||new FormData;let r=(n=Q.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!Q.isUndefined(t[e])})).metaTokens,i=n.visitor||u,o=n.dots,a=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&Q.isSpecCompliantForm(t);if(!Q.isFunction(i))throw TypeError("visitor must be a function");function l(e){if(null===e)return"";if(Q.isDate(e))return e.toISOString();if(Q.isBoolean(e))return e.toString();if(!s&&Q.isBlob(e))throw new J("Blob is not supported. Use a Buffer instead.");return Q.isArrayBuffer(e)||Q.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):en.from(e):e}function u(e,n,i){let s=e;if(e&&!i&&"object"==typeof e){if(Q.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else{var u;if(Q.isArray(e)&&(u=e,Q.isArray(u)&&!u.some(er))||(Q.isFileList(e)||Q.endsWith(n,"[]"))&&(s=Q.toArray(e)))return n=ei(n),s.forEach(function(e,r){Q.isUndefined(e)||null===e||t.append(!0===a?eo([n],r,o):null===a?n:n+"[]",l(e))}),!1}}return!!er(e)||(t.append(eo(i,n,o),l(e)),!1)}let c=[],d=Object.assign(ea,{defaultVisitor:u,convertValue:l,isVisitable:er});if(!Q.isObject(e))throw TypeError("data must be an object");return!function e(n,r){if(!Q.isUndefined(n)){if(-1!==c.indexOf(n))throw Error("Circular reference detected in "+r.join("."));c.push(n),Q.forEach(n,function(n,o){!0===(!(Q.isUndefined(n)||null===n)&&i.call(t,n,Q.isString(o)?o.trim():o,r,d))&&e(n,r?r.concat(o):[o])}),c.pop()}}(e),t};function el(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function eu(e,t){this._pairs=[],e&&es(e,this,t)}let ec=eu.prototype;function ed(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ef(e,t,n){let r;if(!t)return e;let i=n&&n.encode||ed;Q.isFunction(n)&&(n={serialize:n});let o=n&&n.serialize;if(r=o?o(t,n):Q.isURLSearchParams(t)?t.toString():new eu(t,n).toString(i)){let t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+r}return e}ec.append=function(e,t){this._pairs.push([e,t])},ec.toString=function(e){let t=e?function(t){return e.call(this,t,el)}:el;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};class eh{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){Q.forEach(this.handlers,function(t){null!==t&&e(t)})}}var ep={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},eg="undefined"!=typeof URLSearchParams?URLSearchParams:eu,ev="undefined"!=typeof FormData?FormData:null,em="undefined"!=typeof Blob?Blob:null;let eb="undefined"!=typeof window&&"undefined"!=typeof document,ey="object"==typeof navigator&&navigator||void 0,ex=eb&&(!ey||0>["ReactNative","NativeScript","NS"].indexOf(ey.product)),ew="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,eE=eb&&window.location.href||"http://localhost";var eS={...h,isBrowser:!0,classes:{URLSearchParams:eg,FormData:ev,Blob:em},protocols:["http","https","file","blob","url","data"]},ek=function(e){if(Q.isFormData(e)&&Q.isFunction(e.entries)){let t={};return Q.forEachEntry(e,(e,n)=>{!function e(t,n,r,i){let o=t[i++];if("__proto__"===o)return!0;let a=Number.isFinite(+o),s=i>=t.length;return(o=!o&&Q.isArray(r)?r.length:o,s)?Q.hasOwnProp(r,o)?r[o]=[r[o],n]:r[o]=n:(r[o]&&Q.isObject(r[o])||(r[o]=[]),e(t,n,r[o],i)&&Q.isArray(r[o])&&(r[o]=function(e){let t,n;let r={},i=Object.keys(e),o=i.length;for(t=0;t<o;t++)r[n=i[t]]=e[n];return r}(r[o]))),!a}(Q.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0]),n,t,0)}),t}return null};let eO={transitional:ep,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){let n;let r=t.getContentType()||"",i=r.indexOf("application/json")>-1,o=Q.isObject(e);if(o&&Q.isHTMLForm(e)&&(e=new FormData(e)),Q.isFormData(e))return i?JSON.stringify(ek(e)):e;if(Q.isArrayBuffer(e)||Q.isBuffer(e)||Q.isStream(e)||Q.isFile(e)||Q.isBlob(e)||Q.isReadableStream(e))return e;if(Q.isArrayBufferView(e))return e.buffer;if(Q.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1){var a,s;return(a=e,s=this.formSerializer,es(a,new eS.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return eS.isNode&&Q.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},s))).toString()}if((n=Q.isFileList(e))||r.indexOf("multipart/form-data")>-1){let t=this.env&&this.env.FormData;return es(n?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||i?(t.setContentType("application/json",!1),function(e,t,n){if(Q.isString(e))try{return(0,JSON.parse)(e),Q.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){let t=this.transitional||eO.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(Q.isResponse(e)||Q.isReadableStream(e))return e;if(e&&Q.isString(e)&&(n&&!this.responseType||r)){let n=t&&t.silentJSONParsing;try{return JSON.parse(e)}catch(e){if(!n&&r){if("SyntaxError"===e.name)throw J.from(e,J.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:eS.classes.FormData,Blob:eS.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Q.forEach(["delete","get","head","post","put","patch"],e=>{eO.headers[e]={}});let eC=Q.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var eI=e=>{let t,n,r;let i={};return e&&e.split("\n").forEach(function(e){r=e.indexOf(":"),t=e.substring(0,r).trim().toLowerCase(),n=e.substring(r+1).trim(),!t||i[t]&&eC[t]||("set-cookie"===t?i[t]?i[t].push(n):i[t]=[n]:i[t]=i[t]?i[t]+", "+n:n)}),i};let e_=Symbol("internals");function eT(e){return e&&String(e).trim().toLowerCase()}function eP(e){return!1===e||null==e?e:Q.isArray(e)?e.map(eP):String(e)}let eR=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function eA(e,t,n,r,i){if(Q.isFunction(r))return r.call(this,t,n);if(i&&(t=n),Q.isString(t)){if(Q.isString(r))return -1!==t.indexOf(r);if(Q.isRegExp(r))return r.test(t)}}class eN{constructor(e){e&&this.set(e)}set(e,t,n){let r=this;function i(e,t,n){let i=eT(t);if(!i)throw Error("header name must be a non-empty string");let o=Q.findKey(r,i);o&&void 0!==r[o]&&!0!==n&&(void 0!==n||!1===r[o])||(r[o||t]=eP(e))}let o=(e,t)=>Q.forEach(e,(e,n)=>i(e,n,t));if(Q.isPlainObject(e)||e instanceof this.constructor)o(e,t);else if(Q.isString(e)&&(e=e.trim())&&!eR(e))o(eI(e),t);else if(Q.isObject(e)&&Q.isIterable(e)){let n={},r,i;for(let t of e){if(!Q.isArray(t))throw TypeError("Object iterator must return a key-value pair");n[i=t[0]]=(r=n[i])?Q.isArray(r)?[...r,t[1]]:[r,t[1]]:t[1]}o(n,t)}else null!=e&&i(t,e,n);return this}get(e,t){if(e=eT(e)){let n=Q.findKey(this,e);if(n){let e=this[n];if(!t)return e;if(!0===t)return function(e){let t;let n=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;for(;t=r.exec(e);)n[t[1]]=t[2];return n}(e);if(Q.isFunction(t))return t.call(this,e,n);if(Q.isRegExp(t))return t.exec(e);throw TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=eT(e)){let n=Q.findKey(this,e);return!!(n&&void 0!==this[n]&&(!t||eA(this,this[n],n,t)))}return!1}delete(e,t){let n=this,r=!1;function i(e){if(e=eT(e)){let i=Q.findKey(n,e);i&&(!t||eA(n,n[i],i,t))&&(delete n[i],r=!0)}}return Q.isArray(e)?e.forEach(i):i(e),r}clear(e){let t=Object.keys(this),n=t.length,r=!1;for(;n--;){let i=t[n];(!e||eA(this,this[i],i,e,!0))&&(delete this[i],r=!0)}return r}normalize(e){let t=this,n={};return Q.forEach(this,(r,i)=>{let o=Q.findKey(n,i);if(o){t[o]=eP(r),delete t[i];return}let a=e?i.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n):String(i).trim();a!==i&&delete t[i],t[a]=eP(r),n[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return Q.forEach(this,(n,r)=>{null!=n&&!1!==n&&(t[r]=e&&Q.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){let n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){let t=(this[e_]=this[e_]={accessors:{}}).accessors,n=this.prototype;function r(e){let r=eT(e);t[r]||(!function(e,t){let n=Q.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(e,n,i){return this[r].call(this,t,e,n,i)},configurable:!0})})}(n,e),t[r]=!0)}return Q.isArray(e)?e.forEach(r):r(e),this}}function eM(e,t){let n=this||eO,r=t||n,i=eN.from(r.headers),o=r.data;return Q.forEach(e,function(e){o=e.call(n,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function eL(e){return!!(e&&e.__CANCEL__)}function eD(e,t,n){J.call(this,null==e?"canceled":e,J.ERR_CANCELED,t,n),this.name="CanceledError"}function eF(e,t,n){let r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new J("Request failed with status code "+n.status,[J.ERR_BAD_REQUEST,J.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}eN.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Q.reduceDescriptors(eN.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),Q.freezeMethods(eN),Q.inherits(eD,J,{__CANCEL__:!0});var eV=function(e,t){let n;let r=Array(e=e||10),i=Array(e),o=0,a=0;return t=void 0!==t?t:1e3,function(s){let l=Date.now(),u=i[a];n||(n=l),r[o]=s,i[o]=l;let c=a,d=0;for(;c!==o;)d+=r[c++],c%=e;if((o=(o+1)%e)===a&&(a=(a+1)%e),l-n<t)return;let f=u&&l-u;return f?Math.round(1e3*d/f):void 0}},ej=function(e,t){let n,r,i=0,o=1e3/t,a=(t,o=Date.now())=>{i=o,n=null,r&&(clearTimeout(r),r=null),e.apply(null,t)};return[(...e)=>{let t=Date.now(),s=t-i;s>=o?a(e,t):(n=e,r||(r=setTimeout(()=>{r=null,a(n)},o-s)))},()=>n&&a(n)]};let ez=(e,t,n=3)=>{let r=0,i=eV(50,250);return ej(n=>{let o=n.loaded,a=n.lengthComputable?n.total:void 0,s=o-r,l=i(s);r=o,e({loaded:o,total:a,progress:a?o/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&o<=a?(a-o)/l:void 0,event:n,lengthComputable:null!=a,[t?"download":"upload"]:!0})},n)},eU=(e,t)=>{let n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},eB=e=>(...t)=>Q.asap(()=>e(...t));var eW=eS.hasStandardBrowserEnv?(o=new URL(eS.origin),a=eS.navigator&&/(msie|trident)/i.test(eS.navigator.userAgent),e=>(e=new URL(e,eS.origin),o.protocol===e.protocol&&o.host===e.host&&(a||o.port===e.port))):()=>!0,eH=eS.hasStandardBrowserEnv?{write(e,t,n,r,i,o){let a=[e+"="+encodeURIComponent(t)];Q.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),Q.isString(r)&&a.push("path="+r),Q.isString(i)&&a.push("domain="+i),!0===o&&a.push("secure"),document.cookie=a.join("; ")},read(e){let t=document.cookie.match(RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function e$(e,t,n){let r=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&(r||!1==n)?t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e:t}let eq=e=>e instanceof eN?{...e}:e;function eG(e,t){t=t||{};let n={};function r(e,t,n,r){return Q.isPlainObject(e)&&Q.isPlainObject(t)?Q.merge.call({caseless:r},e,t):Q.isPlainObject(t)?Q.merge({},t):Q.isArray(t)?t.slice():t}function i(e,t,n,i){return Q.isUndefined(t)?Q.isUndefined(e)?void 0:r(void 0,e,n,i):r(e,t,n,i)}function o(e,t){if(!Q.isUndefined(t))return r(void 0,t)}function a(e,t){return Q.isUndefined(t)?Q.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,i,o){return o in t?r(n,i):o in e?r(void 0,n):void 0}let l={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t,n)=>i(eq(e),eq(t),n,!0)};return Q.forEach(Object.keys(Object.assign({},e,t)),function(r){let o=l[r]||i,a=o(e[r],t[r],r);Q.isUndefined(a)&&o!==s||(n[r]=a)}),n}var eK=e=>{let t;let n=eG({},e),{data:r,withXSRFToken:i,xsrfHeaderName:o,xsrfCookieName:a,headers:s,auth:l}=n;if(n.headers=s=eN.from(s),n.url=ef(e$(n.baseURL,n.url,n.allowAbsoluteUrls),e.params,e.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),Q.isFormData(r)){if(eS.hasStandardBrowserEnv||eS.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(!1!==(t=s.getContentType())){let[e,...n]=t?t.split(";").map(e=>e.trim()).filter(Boolean):[];s.setContentType([e||"multipart/form-data",...n].join("; "))}}if(eS.hasStandardBrowserEnv&&(i&&Q.isFunction(i)&&(i=i(n)),i||!1!==i&&eW(n.url))){let e=o&&a&&eH.read(a);e&&s.set(o,e)}return n},eZ="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){let r,i,o,a,s;let l=eK(e),u=l.data,c=eN.from(l.headers).normalize(),{responseType:d,onUploadProgress:f,onDownloadProgress:h}=l;function p(){a&&a(),s&&s(),l.cancelToken&&l.cancelToken.unsubscribe(r),l.signal&&l.signal.removeEventListener("abort",r)}let g=new XMLHttpRequest;function v(){if(!g)return;let r=eN.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders());eF(function(e){t(e),p()},function(e){n(e),p()},{data:d&&"text"!==d&&"json"!==d?g.response:g.responseText,status:g.status,statusText:g.statusText,headers:r,config:e,request:g}),g=null}g.open(l.method.toUpperCase(),l.url,!0),g.timeout=l.timeout,"onloadend"in g?g.onloadend=v:g.onreadystatechange=function(){g&&4===g.readyState&&(0!==g.status||g.responseURL&&0===g.responseURL.indexOf("file:"))&&setTimeout(v)},g.onabort=function(){g&&(n(new J("Request aborted",J.ECONNABORTED,e,g)),g=null)},g.onerror=function(){n(new J("Network Error",J.ERR_NETWORK,e,g)),g=null},g.ontimeout=function(){let t=l.timeout?"timeout of "+l.timeout+"ms exceeded":"timeout exceeded",r=l.transitional||ep;l.timeoutErrorMessage&&(t=l.timeoutErrorMessage),n(new J(t,r.clarifyTimeoutError?J.ETIMEDOUT:J.ECONNABORTED,e,g)),g=null},void 0===u&&c.setContentType(null),"setRequestHeader"in g&&Q.forEach(c.toJSON(),function(e,t){g.setRequestHeader(t,e)}),Q.isUndefined(l.withCredentials)||(g.withCredentials=!!l.withCredentials),d&&"json"!==d&&(g.responseType=l.responseType),h&&([o,s]=ez(h,!0),g.addEventListener("progress",o)),f&&g.upload&&([i,a]=ez(f),g.upload.addEventListener("progress",i),g.upload.addEventListener("loadend",a)),(l.cancelToken||l.signal)&&(r=t=>{g&&(n(!t||t.type?new eD(null,e,g):t),g.abort(),g=null)},l.cancelToken&&l.cancelToken.subscribe(r),l.signal&&(l.signal.aborted?r():l.signal.addEventListener("abort",r)));let m=function(e){let t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(l.url);if(m&&-1===eS.protocols.indexOf(m)){n(new J("Unsupported protocol "+m+":",J.ERR_BAD_REQUEST,e));return}g.send(u||null)})},eY=(e,t)=>{let{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController,i=function(e){if(!n){n=!0,a();let t=e instanceof Error?e:this.reason;r.abort(t instanceof J?t:new eD(t instanceof Error?t.message:t))}},o=t&&setTimeout(()=>{o=null,i(new J(`timeout ${t} of ms exceeded`,J.ETIMEDOUT))},t),a=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(i):e.removeEventListener("abort",i)}),e=null)};e.forEach(e=>e.addEventListener("abort",i));let{signal:s}=r;return s.unsubscribe=()=>Q.asap(a),s}};let eX=function*(e,t){let n,r=e.byteLength;if(!t||r<t){yield e;return}let i=0;for(;i<r;)n=i+t,yield e.slice(i,n),i=n},eQ=async function*(e,t){for await(let n of eJ(e))yield*eX(n,t)},eJ=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}let t=e.getReader();try{for(;;){let{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},e0=(e,t,n,r)=>{let i;let o=eQ(e,t),a=0,s=e=>{!i&&(i=!0,r&&r(e))};return new ReadableStream({async pull(e){try{let{done:t,value:r}=await o.next();if(t){s(),e.close();return}let i=r.byteLength;if(n){let e=a+=i;n(e)}e.enqueue(new Uint8Array(r))}catch(e){throw s(e),e}},cancel:e=>(s(e),o.return())},{highWaterMark:2})},e1="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,e2=e1&&"function"==typeof ReadableStream,e5=e1&&("function"==typeof TextEncoder?(s=new TextEncoder,e=>s.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer())),e4=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},e3=e2&&e4(()=>{let e=!1,t=new Request(eS.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),e6=e2&&e4(()=>Q.isReadableStream(new Response("").body)),e8={stream:e6&&(e=>e.body)};e1&&(f=new Response,["text","arrayBuffer","blob","formData","stream"].forEach(e=>{e8[e]||(e8[e]=Q.isFunction(f[e])?t=>t[e]():(t,n)=>{throw new J(`Response type '${e}' is not supported`,J.ERR_NOT_SUPPORT,n)})}));let e7=async e=>{if(null==e)return 0;if(Q.isBlob(e))return e.size;if(Q.isSpecCompliantForm(e)){let t=new Request(eS.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return Q.isArrayBufferView(e)||Q.isArrayBuffer(e)?e.byteLength:(Q.isURLSearchParams(e)&&(e+=""),Q.isString(e))?(await e5(e)).byteLength:void 0},e9=async(e,t)=>{let n=Q.toFiniteNumber(e.getContentLength());return null==n?e7(t):n},te={http:null,xhr:eZ,fetch:e1&&(async e=>{let t,n,{url:r,method:i,data:o,signal:a,cancelToken:s,timeout:l,onDownloadProgress:u,onUploadProgress:c,responseType:d,headers:f,withCredentials:h="same-origin",fetchOptions:p}=eK(e);d=d?(d+"").toLowerCase():"text";let g=eY([a,s&&s.toAbortSignal()],l),v=g&&g.unsubscribe&&(()=>{g.unsubscribe()});try{if(c&&e3&&"get"!==i&&"head"!==i&&0!==(n=await e9(f,o))){let e,t=new Request(r,{method:"POST",body:o,duplex:"half"});if(Q.isFormData(o)&&(e=t.headers.get("content-type"))&&f.setContentType(e),t.body){let[e,r]=eU(n,ez(eB(c)));o=e0(t.body,65536,e,r)}}Q.isString(h)||(h=h?"include":"omit");let a="credentials"in Request.prototype;t=new Request(r,{...p,signal:g,method:i.toUpperCase(),headers:f.normalize().toJSON(),body:o,duplex:"half",credentials:a?h:void 0});let s=await fetch(t,p),l=e6&&("stream"===d||"response"===d);if(e6&&(u||l&&v)){let e={};["status","statusText","headers"].forEach(t=>{e[t]=s[t]});let t=Q.toFiniteNumber(s.headers.get("content-length")),[n,r]=u&&eU(t,ez(eB(u),!0))||[];s=new Response(e0(s.body,65536,n,()=>{r&&r(),v&&v()}),e)}d=d||"text";let m=await e8[Q.findKey(e8,d)||"text"](s,e);return!l&&v&&v(),await new Promise((n,r)=>{eF(n,r,{data:m,headers:eN.from(s.headers),status:s.status,statusText:s.statusText,config:e,request:t})})}catch(n){if(v&&v(),n&&"TypeError"===n.name&&/Load failed|fetch/i.test(n.message))throw Object.assign(new J("Network Error",J.ERR_NETWORK,e,t),{cause:n.cause||n});throw J.from(n,n&&n.code,e,t)}})};Q.forEach(te,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});let tt=e=>`- ${e}`,tn=e=>Q.isFunction(e)||null===e||!1===e;var tr=e=>{let t,n;let{length:r}=e=Q.isArray(e)?e:[e],i={};for(let o=0;o<r;o++){let r;if(n=t=e[o],!tn(t)&&void 0===(n=te[(r=String(t)).toLowerCase()]))throw new J(`Unknown adapter '${r}'`);if(n)break;i[r||"#"+o]=n}if(!n){let e=Object.entries(i).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new J("There is no suitable adapter to dispatch the request "+(r?e.length>1?"since :\n"+e.map(tt).join("\n"):" "+tt(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return n};function ti(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new eD(null,e)}function to(e){return ti(e),e.headers=eN.from(e.headers),e.data=eM.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),tr(e.adapter||eO.adapter)(e).then(function(t){return ti(e),t.data=eM.call(e,e.transformResponse,t),t.headers=eN.from(t.headers),t},function(t){return!eL(t)&&(ti(e),t&&t.response&&(t.response.data=eM.call(e,e.transformResponse,t.response),t.response.headers=eN.from(t.response.headers))),Promise.reject(t)})}let ta="1.10.0",ts={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ts[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});let tl={};ts.transitional=function(e,t,n){function r(e,t){return"[Axios v"+ta+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,i,o)=>{if(!1===e)throw new J(r(i," has been removed"+(t?" in "+t:"")),J.ERR_DEPRECATED);return t&&!tl[i]&&(tl[i]=!0,console.warn(r(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,i,o)}},ts.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};var tu={assertOptions:function(e,t,n){if("object"!=typeof e)throw new J("options must be an object",J.ERR_BAD_OPTION_VALUE);let r=Object.keys(e),i=r.length;for(;i-- >0;){let o=r[i],a=t[o];if(a){let t=e[o],n=void 0===t||a(t,o,e);if(!0!==n)throw new J("option "+o+" must be "+n,J.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new J("Unknown option "+o,J.ERR_BAD_OPTION)}},validators:ts};let tc=tu.validators;class td{constructor(e){this.defaults=e||{},this.interceptors={request:new eh,response:new eh}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=Error();let n=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}catch(e){}}throw e}}_request(e,t){let n,r;"string"==typeof e?(t=t||{}).url=e:t=e||{};let{transitional:i,paramsSerializer:o,headers:a}=t=eG(this.defaults,t);void 0!==i&&tu.assertOptions(i,{silentJSONParsing:tc.transitional(tc.boolean),forcedJSONParsing:tc.transitional(tc.boolean),clarifyTimeoutError:tc.transitional(tc.boolean)},!1),null!=o&&(Q.isFunction(o)?t.paramsSerializer={serialize:o}:tu.assertOptions(o,{encode:tc.function,serialize:tc.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),tu.assertOptions(t,{baseUrl:tc.spelling("baseURL"),withXsrfToken:tc.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let s=a&&Q.merge(a.common,a[t.method]);a&&Q.forEach(["delete","get","head","post","put","patch","common"],e=>{delete a[e]}),t.headers=eN.concat(s,a);let l=[],u=!0;this.interceptors.request.forEach(function(e){("function"!=typeof e.runWhen||!1!==e.runWhen(t))&&(u=u&&e.synchronous,l.unshift(e.fulfilled,e.rejected))});let c=[];this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let d=0;if(!u){let e=[to.bind(this),void 0];for(e.unshift.apply(e,l),e.push.apply(e,c),r=e.length,n=Promise.resolve(t);d<r;)n=n.then(e[d++],e[d++]);return n}r=l.length;let f=t;for(d=0;d<r;){let e=l[d++],t=l[d++];try{f=e(f)}catch(e){t.call(this,e);break}}try{n=to.call(this,f)}catch(e){return Promise.reject(e)}for(d=0,r=c.length;d<r;)n=n.then(c[d++],c[d++]);return n}getUri(e){return ef(e$((e=eG(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}Q.forEach(["delete","get","head","options"],function(e){td.prototype[e]=function(t,n){return this.request(eG(n||{},{method:e,url:t,data:(n||{}).data}))}}),Q.forEach(["post","put","patch"],function(e){function t(t){return function(n,r,i){return this.request(eG(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}td.prototype[e]=t(),td.prototype[e+"Form"]=t(!0)});class tf{constructor(e){let t;if("function"!=typeof e)throw TypeError("executor must be a function.");this.promise=new Promise(function(e){t=e});let n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t;let r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,i){n.reason||(n.reason=new eD(e,r,i),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){let e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new tf(function(t){e=t}),cancel:e}}}let th={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(th).forEach(([e,t])=>{th[t]=e});let tp=function e(t){let n=new td(t),r=p(td.prototype.request,n);return Q.extend(r,td.prototype,n,{allOwnKeys:!0}),Q.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(eG(t,n))},r}(eO);tp.Axios=td,tp.CanceledError=eD,tp.CancelToken=tf,tp.isCancel=eL,tp.VERSION=ta,tp.toFormData=es,tp.AxiosError=J,tp.Cancel=tp.CanceledError,tp.all=function(e){return Promise.all(e)},tp.spread=function(e){return function(t){return e.apply(null,t)}},tp.isAxiosError=function(e){return Q.isObject(e)&&!0===e.isAxiosError},tp.mergeConfig=eG,tp.AxiosHeaders=eN,tp.formToJSON=e=>ek(Q.isHTMLForm(e)?new FormData(e):e),tp.getAdapter=tr,tp.HttpStatusCode=th,tp.default=tp;var tg=tp},15129:function(e,t,n){"use strict";n.d(t,{Ph:function(){return tV}});var r,i,o,a=n(97129);function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e){var t=function(e,t){if("object"!=s(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=s(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==s(t)?t:t+""}function u(e,t,n){return(t=l(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach(function(t){u(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function h(e,t){if(e){if("string"==typeof e)return f(e,t);var n=({}).toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}function p(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(e,t)||h(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],-1===t.indexOf(n)&&({}).propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var v=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function m(e){var t=e.defaultInputValue,n=e.defaultMenuIsOpen,r=e.defaultValue,i=e.inputValue,o=e.menuIsOpen,s=e.onChange,l=e.onInputChange,u=e.onMenuClose,c=e.onMenuOpen,f=e.value,h=g(e,v),m=p((0,a.useState)(void 0!==i?i:void 0===t?"":t),2),b=m[0],y=m[1],x=p((0,a.useState)(void 0!==o?o:void 0!==n&&n),2),w=x[0],E=x[1],S=p((0,a.useState)(void 0!==f?f:void 0===r?null:r),2),k=S[0],O=S[1],C=(0,a.useCallback)(function(e,t){"function"==typeof s&&s(e,t),O(e)},[s]),I=(0,a.useCallback)(function(e,t){var n;"function"==typeof l&&(n=l(e,t)),y(void 0!==n?n:e)},[l]),_=(0,a.useCallback)(function(){"function"==typeof c&&c(),E(!0)},[c]),T=(0,a.useCallback)(function(){"function"==typeof u&&u(),E(!1)},[u]),P=void 0!==i?i:b,R=void 0!==o?o:w,A=void 0!==f?f:k;return d(d({},h),{},{inputValue:P,menuIsOpen:R,onChange:C,onInputChange:I,onMenuClose:T,onMenuOpen:_,value:A})}var b=n(23258);function y(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,l(r.key),r)}}function x(e,t){return(x=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function w(e){return(w=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function E(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(E=function(){return!!e})()}function S(e){return function(e){if(Array.isArray(e))return f(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||h(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var k=n(86501),O=n(51853),C=n(50186),I=a.useLayoutEffect,_=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],T=function(){};function P(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var o=[].concat(r);if(t&&e)for(var a in t)t.hasOwnProperty(a)&&t[a]&&o.push("".concat(a?"-"===a[0]?e+a:e+"__"+a:e));return o.filter(function(e){return e}).map(function(e){return String(e).trim()}).join(" ")}var R=function(e){return Array.isArray(e)?e.filter(Boolean):"object"===s(e)&&null!==e?[e]:[]},A=function(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,d({},g(e,_))},N=function(e,t,n){var r=e.cx,i=e.getStyles,o=e.getClassNames,a=e.className;return{css:i(t,e),className:r(null!=n?n:{},o(t,e),a)}};function M(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function L(e){return M(e)?window.pageYOffset:e.scrollTop}function D(e,t){if(M(e)){window.scrollTo(0,t);return}e.scrollTop=t}function F(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:T,i=L(e),o=t-i,a=0;!function t(){var s;a+=10,D(e,o*((s=(s=a)/n-1)*s*s+1)+i),a<n?window.requestAnimationFrame(t):r(e)}()}function V(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=t.offsetHeight/3;r.bottom+i>n.bottom?D(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+i,e.scrollHeight)):r.top-i<n.top&&D(e,Math.max(t.offsetTop-i,0))}function j(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var z=!1,U="undefined"!=typeof window?window:{};U.addEventListener&&U.removeEventListener&&(U.addEventListener("p",T,{get passive(){return z=!0}}),U.removeEventListener("p",T,!1));var B=z;function W(e){return null!=e}var H=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Object.entries(e).filter(function(e){var t=p(e,1)[0];return!n.includes(t)}).reduce(function(e,t){var n=p(t,2),r=n[0],i=n[1];return e[r]=i,e},{})},$=["children","innerProps"],q=["children","innerProps"],G=function(e){return"auto"===e?"bottom":e},K=(0,a.createContext)(null),Z=function(e){var t=e.children,n=e.minMenuHeight,r=e.maxMenuHeight,i=e.menuPlacement,o=e.menuPosition,s=e.menuShouldScrollIntoView,l=e.theme,u=((0,a.useContext)(K)||{}).setPortalPlacement,c=(0,a.useRef)(null),f=p((0,a.useState)(r),2),h=f[0],g=f[1],v=p((0,a.useState)(null),2),m=v[0],b=v[1],y=l.spacing.controlHeight;return I(function(){var e=c.current;if(e){var t="fixed"===o,a=function(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,i=e.placement,o=e.shouldScroll,a=e.isFixedPosition,s=e.controlHeight,l=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var i=e;i=i.parentElement;)if(t=getComputedStyle(i),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return i;return document.documentElement}(n),u={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return u;var c=l.getBoundingClientRect().height,d=n.getBoundingClientRect(),f=d.bottom,h=d.height,p=d.top,g=n.offsetParent.getBoundingClientRect().top,v=a?window.innerHeight:M(l)?window.innerHeight:l.clientHeight,m=L(l),b=parseInt(getComputedStyle(n).marginBottom,10),y=parseInt(getComputedStyle(n).marginTop,10),x=g-y,w=v-p,E=x+m,S=c-m-p,k=f-v+m+b,O=m+p-y;switch(i){case"auto":case"bottom":if(w>=h)return{placement:"bottom",maxHeight:t};if(S>=h&&!a)return o&&F(l,k,160),{placement:"bottom",maxHeight:t};if(!a&&S>=r||a&&w>=r)return o&&F(l,k,160),{placement:"bottom",maxHeight:a?w-b:S-b};if("auto"===i||a){var C=t,I=a?x:E;return I>=r&&(C=Math.min(I-b-s,t)),{placement:"top",maxHeight:C}}if("bottom"===i)return o&&D(l,k),{placement:"bottom",maxHeight:t};break;case"top":if(x>=h)return{placement:"top",maxHeight:t};if(E>=h&&!a)return o&&F(l,O,160),{placement:"top",maxHeight:t};if(!a&&E>=r||a&&x>=r){var _=t;return(!a&&E>=r||a&&x>=r)&&(_=a?x-y:E-y),o&&F(l,O,160),{placement:"top",maxHeight:_}}return{placement:"bottom",maxHeight:t};default:throw Error('Invalid placement provided "'.concat(i,'".'))}return u}({maxHeight:r,menuEl:e,minHeight:n,placement:i,shouldScroll:s&&!t,isFixedPosition:t,controlHeight:y});g(a.maxHeight),b(a.placement),null==u||u(a.placement)}},[r,i,o,s,n,u,y]),t({ref:c,placerProps:d(d({},e),{},{placement:m||G(i),maxHeight:h})})},Y=function(e,t){var n=e.theme,r=n.spacing.baseUnit,i=n.colors;return d({textAlign:"center"},t?{}:{color:i.neutral40,padding:"".concat(2*r,"px ").concat(3*r,"px")})},X=["size"],Q=["innerProps","isRtl","size"],J={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},ee=function(e){var t=e.size,n=g(e,X);return(0,k.tZ)("svg",(0,b.Z)({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:J},n))},et=function(e){return(0,k.tZ)(ee,(0,b.Z)({size:20},e),(0,k.tZ)("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},en=function(e){return(0,k.tZ)(ee,(0,b.Z)({size:20},e),(0,k.tZ)("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},er=function(e,t){var n=e.isFocused,r=e.theme,i=r.spacing.baseUnit,o=r.colors;return d({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?o.neutral60:o.neutral20,padding:2*i,":hover":{color:n?o.neutral80:o.neutral40}})},ei=(0,k.F4)(o||(r=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],i||(i=r.slice(0)),o=Object.freeze(Object.defineProperties(r,{raw:{value:Object.freeze(i)}})))),eo=function(e){var t=e.delay,n=e.offset;return(0,k.tZ)("span",{css:(0,k.iv)({animation:"".concat(ei," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},ea=["data"],es=["innerRef","isDisabled","isHidden","inputClassName"],el={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},eu={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":d({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},el)},ec=function(e){var t=e.children,n=e.innerProps;return(0,k.tZ)("div",n,t)},ed={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return(0,k.tZ)("div",(0,b.Z)({},N(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||(0,k.tZ)(et,null))},Control:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,i=e.innerRef,o=e.innerProps,a=e.menuIsOpen;return(0,k.tZ)("div",(0,b.Z)({ref:i},N(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":r,"control--menu-is-open":a}),o,{"aria-disabled":n||void 0}),t)},DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return(0,k.tZ)("div",(0,b.Z)({},N(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||(0,k.tZ)(en,null))},DownChevron:en,CrossIcon:et,Group:function(e){var t=e.children,n=e.cx,r=e.getStyles,i=e.getClassNames,o=e.Heading,a=e.headingProps,s=e.innerProps,l=e.label,u=e.theme,c=e.selectProps;return(0,k.tZ)("div",(0,b.Z)({},N(e,"group",{group:!0}),s),(0,k.tZ)(o,(0,b.Z)({},a,{selectProps:c,theme:u,getStyles:r,getClassNames:i,cx:n}),l),(0,k.tZ)("div",null,t))},GroupHeading:function(e){var t=A(e);t.data;var n=g(t,ea);return(0,k.tZ)("div",(0,b.Z)({},N(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return(0,k.tZ)("div",(0,b.Z)({},N(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return(0,k.tZ)("span",(0,b.Z)({},t,N(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var t=e.cx,n=e.value,r=A(e),i=r.innerRef,o=r.isDisabled,a=r.isHidden,s=r.inputClassName,l=g(r,es);return(0,k.tZ)("div",(0,b.Z)({},N(e,"input",{"input-container":!0}),{"data-value":n||""}),(0,k.tZ)("input",(0,b.Z)({className:t({input:!0},s),ref:i,style:d({label:"input",color:"inherit",background:0,opacity:a?0:1,width:"100%"},el),disabled:o},l)))},LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,r=e.size,i=g(e,Q);return(0,k.tZ)("div",(0,b.Z)({},N(d(d({},i),{},{innerProps:t,isRtl:n,size:void 0===r?4:r}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),(0,k.tZ)(eo,{delay:0,offset:n}),(0,k.tZ)(eo,{delay:160,offset:!0}),(0,k.tZ)(eo,{delay:320,offset:!n}))},Menu:function(e){var t=e.children,n=e.innerRef,r=e.innerProps;return(0,k.tZ)("div",(0,b.Z)({},N(e,"menu",{menu:!0}),{ref:n},r),t)},MenuList:function(e){var t=e.children,n=e.innerProps,r=e.innerRef,i=e.isMulti;return(0,k.tZ)("div",(0,b.Z)({},N(e,"menuList",{"menu-list":!0,"menu-list--is-multi":i}),{ref:r},n),t)},MenuPortal:function(e){var t=e.appendTo,n=e.children,r=e.controlElement,i=e.innerProps,o=e.menuPlacement,s=e.menuPosition,l=(0,a.useRef)(null),u=(0,a.useRef)(null),c=p((0,a.useState)(G(o)),2),f=c[0],h=c[1],g=(0,a.useMemo)(function(){return{setPortalPlacement:h}},[]),v=p((0,a.useState)(null),2),m=v[0],y=v[1],x=(0,a.useCallback)(function(){if(r){var e,t={bottom:(e=r.getBoundingClientRect()).bottom,height:e.height,left:e.left,right:e.right,top:e.top,width:e.width},n="fixed"===s?0:window.pageYOffset,i=t[f]+n;(i!==(null==m?void 0:m.offset)||t.left!==(null==m?void 0:m.rect.left)||t.width!==(null==m?void 0:m.rect.width))&&y({offset:i,rect:t})}},[r,s,f,null==m?void 0:m.offset,null==m?void 0:m.rect.left,null==m?void 0:m.rect.width]);I(function(){x()},[x]);var w=(0,a.useCallback)(function(){"function"==typeof u.current&&(u.current(),u.current=null),r&&l.current&&(u.current=(0,C.Me)(r,l.current,x,{elementResize:"ResizeObserver"in window}))},[r,x]);I(function(){w()},[w]);var E=(0,a.useCallback)(function(e){l.current=e,w()},[w]);if(!t&&"fixed"!==s||!m)return null;var S=(0,k.tZ)("div",(0,b.Z)({ref:E},N(d(d({},e),{},{offset:m.offset,position:s,rect:m.rect}),"menuPortal",{"menu-portal":!0}),i),n);return(0,k.tZ)(K.Provider,{value:g},t?(0,O.createPortal)(S,t):S)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,r=e.innerProps,i=g(e,q);return(0,k.tZ)("div",(0,b.Z)({},N(d(d({},i),{},{children:n,innerProps:r}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),r),n)},NoOptionsMessage:function(e){var t=e.children,n=void 0===t?"No options":t,r=e.innerProps,i=g(e,$);return(0,k.tZ)("div",(0,b.Z)({},N(d(d({},i),{},{children:n,innerProps:r}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),r),n)},MultiValue:function(e){var t=e.children,n=e.components,r=e.data,i=e.innerProps,o=e.isDisabled,a=e.removeProps,s=e.selectProps,l=n.Container,u=n.Label,c=n.Remove;return(0,k.tZ)(l,{data:r,innerProps:d(d({},N(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":o})),i),selectProps:s},(0,k.tZ)(u,{data:r,innerProps:d({},N(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:s},t),(0,k.tZ)(c,{data:r,innerProps:d(d({},N(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},a),selectProps:s}))},MultiValueContainer:ec,MultiValueLabel:ec,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return(0,k.tZ)("div",(0,b.Z)({role:"button"},n),t||(0,k.tZ)(et,{size:14}))},Option:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,i=e.isSelected,o=e.innerRef,a=e.innerProps;return(0,k.tZ)("div",(0,b.Z)({},N(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":r,"option--is-selected":i}),{ref:o,"aria-disabled":n},a),t)},Placeholder:function(e){var t=e.children,n=e.innerProps;return(0,k.tZ)("div",(0,b.Z)({},N(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,r=e.isDisabled,i=e.isRtl;return(0,k.tZ)("div",(0,b.Z)({},N(e,"container",{"--is-disabled":r,"--is-rtl":i}),n),t)},SingleValue:function(e){var t=e.children,n=e.isDisabled,r=e.innerProps;return(0,k.tZ)("div",(0,b.Z)({},N(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),r),t)},ValueContainer:function(e){var t=e.children,n=e.innerProps,r=e.isMulti,i=e.hasValue;return(0,k.tZ)("div",(0,b.Z)({},N(e,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":i}),n),t)}},ef=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function eh(e,t){if(e.length!==t.length)return!1;for(var n,r,i=0;i<e.length;i++)if(!((n=e[i])===(r=t[i])||ef(n)&&ef(r)))return!1;return!0}for(var ep={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},eg=function(e){return(0,k.tZ)("span",(0,b.Z)({css:ep},e))},ev={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.tabSelectsValue,i=e.context,o=e.isInitialFocus;switch(i){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(r?", press Tab to select the option and exit the menu":"",".");case"input":return o?"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,r=void 0===n?"":n,i=e.labels,o=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(i.length>1?"s":""," ").concat(i.join(","),", selected.");case"select-option":return o?"option ".concat(r," is disabled. Select another option."):"option ".concat(r,", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,i=e.label,o=void 0===i?"":i,a=e.selectValue,s=e.isDisabled,l=e.isSelected,u=e.isAppleDevice,c=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&a)return"value ".concat(o," focused, ").concat(c(a,n),".");if("menu"===t&&u){var d="".concat(l?" selected":"").concat(s?" disabled":"");return"".concat(o).concat(d,", ").concat(c(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},em=function(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,i=e.focusableOptions,o=e.isFocused,s=e.selectValue,l=e.selectProps,u=e.id,c=e.isAppleDevice,f=l.ariaLiveMessages,h=l.getOptionLabel,p=l.inputValue,g=l.isMulti,v=l.isOptionDisabled,m=l.isSearchable,b=l.menuIsOpen,y=l.options,x=l.screenReaderStatus,w=l.tabSelectsValue,E=l.isLoading,S=l["aria-label"],O=l["aria-live"],C=(0,a.useMemo)(function(){return d(d({},ev),f||{})},[f]),I=(0,a.useMemo)(function(){var e="";if(t&&C.onChange){var n=t.option,r=t.options,i=t.removedValue,o=t.removedValues,a=t.value,l=i||n||(Array.isArray(a)?null:a),u=l?h(l):"",c=r||o||void 0,f=c?c.map(h):[],p=d({isDisabled:l&&v(l,s),label:u,labels:f},t);e=C.onChange(p)}return e},[t,C,v,s,h]),_=(0,a.useMemo)(function(){var e="",t=n||r,o=!!(n&&s&&s.includes(n));if(t&&C.onFocus){var a={focused:t,label:h(t),isDisabled:v(t,s),isSelected:o,options:i,context:t===n?"menu":"value",selectValue:s,isAppleDevice:c};e=C.onFocus(a)}return e},[n,r,h,v,C,i,s,c]),T=(0,a.useMemo)(function(){var e="";if(b&&y.length&&!E&&C.onFilter){var t=x({count:i.length});e=C.onFilter({inputValue:p,resultsMessage:t})}return e},[i,p,b,C,y,x,E]),P=(null==t?void 0:t.action)==="initial-input-focus",R=(0,a.useMemo)(function(){var e="";if(C.guidance){var t=r?"value":b?"menu":"input";e=C.guidance({"aria-label":S,context:t,isDisabled:n&&v(n,s),isMulti:g,isSearchable:m,tabSelectsValue:w,isInitialFocus:P})}return e},[S,n,r,g,v,m,b,C,s,w,P]),A=(0,k.tZ)(a.Fragment,null,(0,k.tZ)("span",{id:"aria-selection"},I),(0,k.tZ)("span",{id:"aria-focused"},_),(0,k.tZ)("span",{id:"aria-results"},T),(0,k.tZ)("span",{id:"aria-guidance"},R));return(0,k.tZ)(a.Fragment,null,(0,k.tZ)(eg,{id:u},P&&A),(0,k.tZ)(eg,{"aria-live":O,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},o&&!P&&A))},eb=[{base:"A",letters:"AⒶA\xc0\xc1\xc2ẦẤẪẨ\xc3ĀĂẰẮẴẲȦǠ\xc4ǞẢ\xc5ǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"\xc6ǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČ\xc7ḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺE\xc8\xc9\xcaỀẾỄỂẼĒḔḖĔĖ\xcbẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾI\xcc\xcd\xceĨĪĬİ\xcfḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃ\xd1ṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄO\xd2\xd3\xd4ỒỐỖỔ\xd5ṌȬṎŌṐṒŎȮȰ\xd6ȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬ\xd8ǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊU\xd9\xda\xdbŨṸŪṺŬ\xdcǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲ\xddŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚ\xe0\xe1\xe2ầấẫẩ\xe3āăằắẵẳȧǡ\xe4ǟả\xe5ǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"\xe6ǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċč\xe7ḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔe\xe8\xe9\xeaềếễểẽēḕḗĕė\xebẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘi\xec\xed\xeeĩīĭ\xefḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹń\xf1ṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞo\xf2\xf3\xf4ồốỗổ\xf5ṍȭṏōṑṓŏȯȱ\xf6ȫỏőǒȍȏơờớỡởợọộǫǭ\xf8ǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢs\xdfśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤu\xf9\xfa\xfbũṹūṻŭ\xfcǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳ\xfdŷỹȳẏ\xffỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],ey=RegExp("["+eb.map(function(e){return e.letters}).join("")+"]","g"),ex={},ew=0;ew<eb.length;ew++)for(var eE=eb[ew],eS=0;eS<eE.letters.length;eS++)ex[eE.letters[eS]]=eE.base;var ek=function(e){return e.replace(ey,function(e){return ex[e]})},eO=function(e,t){void 0===t&&(t=eh);var n=null;function r(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var o=e.apply(this,r);return n={lastResult:o,lastArgs:r,lastThis:this},o}return r.clear=function(){n=null},r}(ek),eC=function(e){return e.replace(/^\s+|\s+$/g,"")},eI=function(e){return"".concat(e.label," ").concat(e.value)},e_=["innerRef"];function eT(e){var t=e.innerRef,n=H(g(e,e_),"onExited","in","enter","exit","appear");return(0,k.tZ)("input",(0,b.Z)({ref:t},n,{css:(0,k.iv)({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var eP=function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()},eR=["boxSizing","height","overflow","paddingRight","position"],eA={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function eN(e){e.cancelable&&e.preventDefault()}function eM(e){e.stopPropagation()}function eL(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function eD(){return"ontouchstart"in window||navigator.maxTouchPoints}var eF=!!("undefined"!=typeof window&&window.document&&window.document.createElement),eV=0,ej={capture:!1,passive:!1},ez=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},eU={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function eB(e){var t,n,r,i,o,s,l,u,c,d,f,h,p,g,v,m,b,y,x,w,E,S,O,C,I=e.children,_=e.lockEnabled,T=e.captureEnabled,P=(n=(t={isEnabled:void 0===T||T,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}).isEnabled,r=t.onBottomArrive,i=t.onBottomLeave,o=t.onTopArrive,s=t.onTopLeave,l=(0,a.useRef)(!1),u=(0,a.useRef)(!1),c=(0,a.useRef)(0),d=(0,a.useRef)(null),f=(0,a.useCallback)(function(e,t){if(null!==d.current){var n=d.current,a=n.scrollTop,c=n.scrollHeight,f=n.clientHeight,h=d.current,p=t>0,g=c-f-a,v=!1;g>t&&l.current&&(i&&i(e),l.current=!1),p&&u.current&&(s&&s(e),u.current=!1),p&&t>g?(r&&!l.current&&r(e),h.scrollTop=c,v=!0,l.current=!0):!p&&-t>a&&(o&&!u.current&&o(e),h.scrollTop=0,v=!0,u.current=!0),v&&eP(e)}},[r,i,o,s]),h=(0,a.useCallback)(function(e){f(e,e.deltaY)},[f]),p=(0,a.useCallback)(function(e){c.current=e.changedTouches[0].clientY},[]),g=(0,a.useCallback)(function(e){var t=c.current-e.changedTouches[0].clientY;f(e,t)},[f]),v=(0,a.useCallback)(function(e){if(e){var t=!!B&&{passive:!1};e.addEventListener("wheel",h,t),e.addEventListener("touchstart",p,t),e.addEventListener("touchmove",g,t)}},[g,p,h]),m=(0,a.useCallback)(function(e){e&&(e.removeEventListener("wheel",h,!1),e.removeEventListener("touchstart",p,!1),e.removeEventListener("touchmove",g,!1))},[g,p,h]),(0,a.useEffect)(function(){if(n){var e=d.current;return v(e),function(){m(e)}}},[n,v,m]),function(e){d.current=e}),R=(y=(b={isEnabled:_}).isEnabled,w=void 0===(x=b.accountForScrollbars)||x,E=(0,a.useRef)({}),S=(0,a.useRef)(null),O=(0,a.useCallback)(function(e){if(eF){var t=document.body,n=t&&t.style;if(w&&eR.forEach(function(e){var t=n&&n[e];E.current[e]=t}),w&&eV<1){var r=parseInt(E.current.paddingRight,10)||0,i=document.body?document.body.clientWidth:0,o=window.innerWidth-i+r||0;Object.keys(eA).forEach(function(e){var t=eA[e];n&&(n[e]=t)}),n&&(n.paddingRight="".concat(o,"px"))}t&&eD()&&(t.addEventListener("touchmove",eN,ej),e&&(e.addEventListener("touchstart",eL,ej),e.addEventListener("touchmove",eM,ej))),eV+=1}},[w]),C=(0,a.useCallback)(function(e){if(eF){var t=document.body,n=t&&t.style;eV=Math.max(eV-1,0),w&&eV<1&&eR.forEach(function(e){var t=E.current[e];n&&(n[e]=t)}),t&&eD()&&(t.removeEventListener("touchmove",eN,ej),e&&(e.removeEventListener("touchstart",eL,ej),e.removeEventListener("touchmove",eM,ej)))}},[w]),(0,a.useEffect)(function(){if(y){var e=S.current;return O(e),function(){C(e)}}},[y,O,C]),function(e){S.current=e});return(0,k.tZ)(a.Fragment,null,_&&(0,k.tZ)("div",{onClick:ez,css:eU}),I(function(e){P(e),R(e)}))}var eW={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},eH=function(e){var t=e.name,n=e.onFocus;return(0,k.tZ)("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:eW,value:"",onChange:function(){}})};function e$(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}var eq=function(e){return e.label},eG=function(e){return e.value},eK={clearIndicator:er,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e,t){var n=e.isDisabled,r=e.isFocused,i=e.theme,o=i.colors,a=i.borderRadius;return d({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:i.spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?o.neutral5:o.neutral0,borderColor:n?o.neutral10:r?o.primary:o.neutral20,borderRadius:a,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(o.primary):void 0,"&:hover":{borderColor:r?o.primary:o.neutral30}})},dropdownIndicator:er,group:function(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:2*n.baseUnit,paddingTop:2*n.baseUnit}},groupHeading:function(e,t){var n=e.theme,r=n.colors,i=n.spacing;return d({label:"group",cursor:"default",display:"block"},t?{}:{color:r.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*i.baseUnit,paddingRight:3*i.baseUnit,textTransform:"uppercase"})},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e,t){var n=e.isDisabled,r=e.theme,i=r.spacing.baseUnit,o=r.colors;return d({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?o.neutral10:o.neutral20,marginBottom:2*i,marginTop:2*i})},input:function(e,t){var n=e.isDisabled,r=e.value,i=e.theme,o=i.spacing,a=i.colors;return d(d({visibility:n?"hidden":"visible",transform:r?"translateZ(0)":""},eu),t?{}:{margin:o.baseUnit/2,paddingBottom:o.baseUnit/2,paddingTop:o.baseUnit/2,color:a.neutral80})},loadingIndicator:function(e,t){var n=e.isFocused,r=e.size,i=e.theme,o=i.colors,a=i.spacing.baseUnit;return d({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?o.neutral60:o.neutral20,padding:2*a})},loadingMessage:Y,menu:function(e,t){var n,r=e.placement,i=e.theme,o=i.borderRadius,a=i.spacing,s=i.colors;return d((u(n={label:"menu"},r?({bottom:"top",top:"bottom"})[r]:"bottom","100%"),u(n,"position","absolute"),u(n,"width","100%"),u(n,"zIndex",1),n),t?{}:{backgroundColor:s.neutral0,borderRadius:o,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:a.menuGutter,marginTop:a.menuGutter})},menuList:function(e,t){var n=e.maxHeight,r=e.theme.spacing.baseUnit;return d({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:r,paddingTop:r})},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e,t){var n=e.theme,r=n.spacing,i=n.borderRadius,o=n.colors;return d({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:o.neutral10,borderRadius:i/2,margin:r.baseUnit/2})},multiValueLabel:function(e,t){var n=e.theme,r=n.borderRadius,i=n.colors,o=e.cropWithEllipsis;return d({overflow:"hidden",textOverflow:o||void 0===o?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:r/2,color:i.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,t){var n=e.theme,r=n.spacing,i=n.borderRadius,o=n.colors,a=e.isFocused;return d({alignItems:"center",display:"flex"},t?{}:{borderRadius:i/2,backgroundColor:a?o.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:o.dangerLight,color:o.danger}})},noOptionsMessage:Y,option:function(e,t){var n=e.isDisabled,r=e.isFocused,i=e.isSelected,o=e.theme,a=o.spacing,s=o.colors;return d({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:i?s.primary:r?s.primary25:"transparent",color:n?s.neutral20:i?s.neutral0:"inherit",padding:"".concat(2*a.baseUnit,"px ").concat(3*a.baseUnit,"px"),":active":{backgroundColor:n?void 0:i?s.primary:s.primary50}})},placeholder:function(e,t){var n=e.theme,r=n.spacing,i=n.colors;return d({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:i.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},singleValue:function(e,t){var n=e.isDisabled,r=e.theme,i=r.spacing,o=r.colors;return d({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?o.neutral40:o.neutral80,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},valueContainer:function(e,t){var n=e.theme.spacing,r=e.isMulti,i=e.hasValue,o=e.selectProps.controlShouldRenderValue;return d({alignItems:"center",display:r&&i&&o?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})}},eZ={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},eY={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:j(),captureMenuScroll:!j(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=d({ignoreCase:!0,ignoreAccents:!0,stringify:eI,trim:!0,matchFrom:"any"},void 0),r=n.ignoreCase,i=n.ignoreAccents,o=n.stringify,a=n.trim,s=n.matchFrom,l=a?eC(t):t,u=a?eC(o(e)):o(e);return r&&(l=l.toLowerCase(),u=u.toLowerCase()),i&&(l=eO(l),u=ek(u)),"start"===s?u.substr(0,l.length)===l:u.indexOf(l)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:eq,getOptionValue:eG,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function eX(e,t,n,r){var i=e3(e,t,n),o=e6(e,t,n),a=e5(e,t),s=e4(e,t);return{type:"option",data:t,isDisabled:i,isSelected:o,label:a,value:s,index:r}}function eQ(e,t){return e.options.map(function(n,r){if("options"in n){var i=n.options.map(function(n,r){return eX(e,n,t,r)}).filter(function(t){return e1(e,t)});return i.length>0?{type:"group",data:n,options:i,index:r}:void 0}var o=eX(e,n,t,r);return e1(e,o)?o:void 0}).filter(W)}function eJ(e){return e.reduce(function(e,t){return"group"===t.type?e.push.apply(e,S(t.options.map(function(e){return e.data}))):e.push(t.data),e},[])}function e0(e,t){return e.reduce(function(e,n){return"group"===n.type?e.push.apply(e,S(n.options.map(function(e){return{data:e.data,id:"".concat(t,"-").concat(n.index,"-").concat(e.index)}}))):e.push({data:n.data,id:"".concat(t,"-").concat(n.index)}),e},[])}function e1(e,t){var n=e.inputValue,r=t.data,i=t.isSelected,o=t.label,a=t.value;return(!e7(e)||!i)&&e8(e,{label:o,value:a,data:r},void 0===n?"":n)}var e2=function(e,t){var n;return(null===(n=e.find(function(e){return e.data===t}))||void 0===n?void 0:n.id)||null},e5=function(e,t){return e.getOptionLabel(t)},e4=function(e,t){return e.getOptionValue(t)};function e3(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function e6(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=e4(e,t);return n.some(function(t){return e4(e,t)===r})}function e8(e,t,n){return!e.filterOption||e.filterOption(t,n)}var e7=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},e9=1,te=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&x(e,t)}(o,e);var t,n,r,i=(t=E(),function(){var e,n=w(o);return e=t?Reflect.construct(n,arguments,w(this).constructor):n.apply(this,arguments),function(e,t){if(t&&("object"==s(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function o(e){var t;if(!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,o),(t=i.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},t.blockOptionHover=!1,t.isComposing=!1,t.commonProps=void 0,t.initialTouchX=0,t.initialTouchY=0,t.openAfterFocus=!1,t.scrollToFocusedOptionOnUpdate=!1,t.userIsDragging=void 0,t.isAppleDevice=e$(/^Mac/i)||e$(/^iPhone/i)||e$(/^iPad/i)||e$(/^Mac/i)&&navigator.maxTouchPoints>1,t.controlRef=null,t.getControlRef=function(e){t.controlRef=e},t.focusedOptionRef=null,t.getFocusedOptionRef=function(e){t.focusedOptionRef=e},t.menuListRef=null,t.getMenuListRef=function(e){t.menuListRef=e},t.inputRef=null,t.getInputRef=function(e){t.inputRef=e},t.focus=t.focusInput,t.blur=t.blurInput,t.onChange=function(e,n){var r=t.props,i=r.onChange,o=r.name;n.name=o,t.ariaOnChange(e,n),i(e,n)},t.setValue=function(e,n,r){var i=t.props,o=i.closeMenuOnSelect,a=i.isMulti,s=i.inputValue;t.onInputChange("",{action:"set-value",prevInputValue:s}),o&&(t.setState({inputIsHiddenAfterUpdate:!a}),t.onMenuClose()),t.setState({clearFocusValueOnUpdate:!0}),t.onChange(e,{action:n,option:r})},t.selectOption=function(e){var n=t.props,r=n.blurInputOnSelect,i=n.isMulti,o=n.name,a=t.state.selectValue,s=i&&t.isOptionSelected(e,a),l=t.isOptionDisabled(e,a);if(s){var u=t.getOptionValue(e);t.setValue(a.filter(function(e){return t.getOptionValue(e)!==u}),"deselect-option",e)}else if(l){t.ariaOnChange(e,{action:"select-option",option:e,name:o});return}else i?t.setValue([].concat(S(a),[e]),"select-option",e):t.setValue(e,"select-option");r&&t.blurInput()},t.removeValue=function(e){var n,r=t.props.isMulti,i=t.state.selectValue,o=t.getOptionValue(e),a=i.filter(function(e){return t.getOptionValue(e)!==o}),s=(n=a[0]||null,r?a:n);t.onChange(s,{action:"remove-value",removedValue:e}),t.focusInput()},t.clearValue=function(){var e,n,r=t.state.selectValue;t.onChange((e=t.props.isMulti,n=[],e?n:null),{action:"clear",removedValues:r})},t.popValue=function(){var e,n=t.props.isMulti,r=t.state.selectValue,i=r[r.length-1],o=r.slice(0,r.length-1),a=(e=o[0]||null,n?o:e);i&&t.onChange(a,{action:"pop-value",removedValue:i})},t.getFocusedOptionId=function(e){return e2(t.state.focusableOptionsWithIds,e)},t.getFocusableOptionsWithIds=function(){return e0(eQ(t.props,t.state.selectValue),t.getElementId("option"))},t.getValue=function(){return t.state.selectValue},t.cx=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return P.apply(void 0,[t.props.classNamePrefix].concat(n))},t.getOptionLabel=function(e){return e5(t.props,e)},t.getOptionValue=function(e){return e4(t.props,e)},t.getStyles=function(e,n){var r=t.props.unstyled,i=eK[e](n,r);i.boxSizing="border-box";var o=t.props.styles[e];return o?o(i,n):i},t.getClassNames=function(e,n){var r,i;return null===(r=(i=t.props.classNames)[e])||void 0===r?void 0:r.call(i,n)},t.getElementId=function(e){return"".concat(t.state.instancePrefix,"-").concat(e)},t.getComponents=function(){var e;return e=t.props,d(d({},ed),e.components)},t.buildCategorizedOptions=function(){return eQ(t.props,t.state.selectValue)},t.getCategorizedOptions=function(){return t.props.menuIsOpen?t.buildCategorizedOptions():[]},t.buildFocusableOptions=function(){return eJ(t.buildCategorizedOptions())},t.getFocusableOptions=function(){return t.props.menuIsOpen?t.buildFocusableOptions():[]},t.ariaOnChange=function(e,n){t.setState({ariaSelection:d({value:e},n)})},t.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),t.focusInput())},t.onMenuMouseMove=function(e){t.blockOptionHover=!1},t.onControlMouseDown=function(e){if(!e.defaultPrevented){var n=t.props.openMenuOnClick;t.state.isFocused?t.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&t.onMenuClose():n&&t.openMenu("first"):(n&&(t.openAfterFocus=!0),t.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},t.onDropdownIndicatorMouseDown=function(e){if((!e||"mousedown"!==e.type||0===e.button)&&!t.props.isDisabled){var n=t.props,r=n.isMulti,i=n.menuIsOpen;t.focusInput(),i?(t.setState({inputIsHiddenAfterUpdate:!r}),t.onMenuClose()):t.openMenu("first"),e.preventDefault()}},t.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(t.clearValue(),e.preventDefault(),t.openAfterFocus=!1,"touchend"===e.type?t.focusInput():setTimeout(function(){return t.focusInput()}))},t.onScroll=function(e){"boolean"==typeof t.props.closeMenuOnScroll?e.target instanceof HTMLElement&&M(e.target)&&t.props.onMenuClose():"function"==typeof t.props.closeMenuOnScroll&&t.props.closeMenuOnScroll(e)&&t.props.onMenuClose()},t.onCompositionStart=function(){t.isComposing=!0},t.onCompositionEnd=function(){t.isComposing=!1},t.onTouchStart=function(e){var n=e.touches,r=n&&n.item(0);r&&(t.initialTouchX=r.clientX,t.initialTouchY=r.clientY,t.userIsDragging=!1)},t.onTouchMove=function(e){var n=e.touches,r=n&&n.item(0);if(r){var i=Math.abs(r.clientX-t.initialTouchX),o=Math.abs(r.clientY-t.initialTouchY);t.userIsDragging=i>5||o>5}},t.onTouchEnd=function(e){t.userIsDragging||(t.controlRef&&!t.controlRef.contains(e.target)&&t.menuListRef&&!t.menuListRef.contains(e.target)&&t.blurInput(),t.initialTouchX=0,t.initialTouchY=0)},t.onControlTouchEnd=function(e){t.userIsDragging||t.onControlMouseDown(e)},t.onClearIndicatorTouchEnd=function(e){t.userIsDragging||t.onClearIndicatorMouseDown(e)},t.onDropdownIndicatorTouchEnd=function(e){t.userIsDragging||t.onDropdownIndicatorMouseDown(e)},t.handleInputChange=function(e){var n=t.props.inputValue,r=e.currentTarget.value;t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange(r,{action:"input-change",prevInputValue:n}),t.props.menuIsOpen||t.onMenuOpen()},t.onInputFocus=function(e){t.props.onFocus&&t.props.onFocus(e),t.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(t.openAfterFocus||t.props.openMenuOnFocus)&&t.openMenu("first"),t.openAfterFocus=!1},t.onInputBlur=function(e){var n=t.props.inputValue;if(t.menuListRef&&t.menuListRef.contains(document.activeElement)){t.inputRef.focus();return}t.props.onBlur&&t.props.onBlur(e),t.onInputChange("",{action:"input-blur",prevInputValue:n}),t.onMenuClose(),t.setState({focusedValue:null,isFocused:!1})},t.onOptionHover=function(e){if(!t.blockOptionHover&&t.state.focusedOption!==e){var n=t.getFocusableOptions().indexOf(e);t.setState({focusedOption:e,focusedOptionId:n>-1?t.getFocusedOptionId(e):null})}},t.shouldHideSelectedOptions=function(){return e7(t.props)},t.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),t.focus()},t.onKeyDown=function(e){var n=t.props,r=n.isMulti,i=n.backspaceRemovesValue,o=n.escapeClearsValue,a=n.inputValue,s=n.isClearable,l=n.isDisabled,u=n.menuIsOpen,c=n.onKeyDown,d=n.tabSelectsValue,f=n.openMenuOnFocus,h=t.state,p=h.focusedOption,g=h.focusedValue,v=h.selectValue;if(!l){if("function"==typeof c&&(c(e),e.defaultPrevented))return;switch(t.blockOptionHover=!0,e.key){case"ArrowLeft":if(!r||a)return;t.focusValue("previous");break;case"ArrowRight":if(!r||a)return;t.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(g)t.removeValue(g);else{if(!i)return;r?t.popValue():s&&t.clearValue()}break;case"Tab":if(t.isComposing||e.shiftKey||!u||!d||!p||f&&t.isOptionSelected(p,v))return;t.selectOption(p);break;case"Enter":if(229===e.keyCode)break;if(u){if(!p||t.isComposing)return;t.selectOption(p);break}return;case"Escape":u?(t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange("",{action:"menu-close",prevInputValue:a}),t.onMenuClose()):s&&o&&t.clearValue();break;case" ":if(a)return;if(!u){t.openMenu("first");break}if(!p)return;t.selectOption(p);break;case"ArrowUp":u?t.focusOption("up"):t.openMenu("last");break;case"ArrowDown":u?t.focusOption("down"):t.openMenu("first");break;case"PageUp":if(!u)return;t.focusOption("pageup");break;case"PageDown":if(!u)return;t.focusOption("pagedown");break;case"Home":if(!u)return;t.focusOption("first");break;case"End":if(!u)return;t.focusOption("last");break;default:return}e.preventDefault()}},t.state.instancePrefix="react-select-"+(t.props.instanceId||++e9),t.state.selectValue=R(e.value),e.menuIsOpen&&t.state.selectValue.length){var n=t.getFocusableOptionsWithIds(),r=t.buildFocusableOptions(),a=r.indexOf(t.state.selectValue[0]);t.state.focusableOptionsWithIds=n,t.state.focusedOption=r[a],t.state.focusedOptionId=e2(n,r[a])}return t}return n=[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&V(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,r=t.menuIsOpen,i=this.state.isFocused;(i&&!n&&e.isDisabled||i&&r&&!e.menuIsOpen)&&this.focusInput(),i&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):i||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(V(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,i=n.isFocused,o=this.buildFocusableOptions(),a="first"===e?0:o.length-1;if(!this.props.isMulti){var s=o.indexOf(r[0]);s>-1&&(a=s)}this.scrollToFocusedOptionOnUpdate=!(i&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:o[a],focusedOptionId:this.getFocusedOptionId(o[a])},function(){return t.onMenuOpen()})}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var i=n.indexOf(r);r||(i=-1);var o=n.length-1,a=-1;if(n.length){switch(e){case"previous":a=0===i?0:-1===i?o:i-1;break;case"next":i>-1&&i<o&&(a=i+1)}this.setState({inputIsHidden:-1!==a,focusedValue:n[a]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var i=0,o=r.indexOf(n);n||(o=-1),"up"===e?i=o>0?o-1:r.length-1:"down"===e?i=(o+1)%r.length:"pageup"===e?(i=o-t)<0&&(i=0):"pagedown"===e?(i=o+t)>r.length-1&&(i=r.length-1):"last"===e&&(i=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[i],focusedValue:null,focusedOptionId:this.getFocusedOptionId(r[i])})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(eZ):d(d({},eZ),this.props.theme):eZ}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getClassNames,i=this.getValue,o=this.selectOption,a=this.setValue,s=this.props,l=s.isMulti,u=s.isRtl,c=s.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:r,getValue:i,hasValue:this.hasValue(),isMulti:l,isRtl:u,options:c,selectOption:o,selectProps:s,setValue:a,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return e3(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return e6(this.props,e,t)}},{key:"filterOption",value:function(e,t){return e8(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"!=typeof this.props.formatOptionLabel)return this.getOptionLabel(e);var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,r=e.inputId,i=e.inputValue,o=e.tabIndex,s=e.form,l=e.menuIsOpen,u=e.required,c=this.getComponents().Input,f=this.state,h=f.inputIsHidden,p=f.ariaSelection,g=this.commonProps,v=r||this.getElementId("input"),m=d(d(d({"aria-autocomplete":"list","aria-expanded":l,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":u,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},l&&{"aria-controls":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?(null==p?void 0:p.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?a.createElement(c,(0,b.Z)({},g,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:v,innerRef:this.getInputRef,isDisabled:t,isHidden:h,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:o,form:s,type:"text",value:i},m)):a.createElement(eT,(0,b.Z)({id:v,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:T,onFocus:this.onInputFocus,disabled:t,tabIndex:o,inputMode:"none",form:s,value:""},m))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,r=t.MultiValueContainer,i=t.MultiValueLabel,o=t.MultiValueRemove,s=t.SingleValue,l=t.Placeholder,u=this.commonProps,c=this.props,d=c.controlShouldRenderValue,f=c.isDisabled,h=c.isMulti,p=c.inputValue,g=c.placeholder,v=this.state,m=v.selectValue,y=v.focusedValue,x=v.isFocused;if(!this.hasValue()||!d)return p?null:a.createElement(l,(0,b.Z)({},u,{key:"placeholder",isDisabled:f,isFocused:x,innerProps:{id:this.getElementId("placeholder")}}),g);if(h)return m.map(function(t,s){var l=t===y,c="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return a.createElement(n,(0,b.Z)({},u,{components:{Container:r,Label:i,Remove:o},isFocused:l,isDisabled:f,key:c,index:s,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))});if(p)return null;var w=m[0];return a.createElement(s,(0,b.Z)({},u,{data:w,isDisabled:f}),this.formatOptionLabel(w,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,i=n.isLoading,o=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||i)return null;var s={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return a.createElement(e,(0,b.Z)({},t,{innerProps:s,isFocused:o}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,i=n.isLoading,o=this.state.isFocused;return e&&i?a.createElement(e,(0,b.Z)({},t,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:o})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var r=this.commonProps,i=this.props.isDisabled,o=this.state.isFocused;return a.createElement(n,(0,b.Z)({},r,{isDisabled:i,isFocused:o}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,r=this.state.isFocused,i={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return a.createElement(e,(0,b.Z)({},t,{innerProps:i,isDisabled:n,isFocused:r}))}},{key:"renderMenu",value:function(){var e,t=this,n=this.getComponents(),r=n.Group,i=n.GroupHeading,o=n.Menu,s=n.MenuList,l=n.MenuPortal,u=n.LoadingMessage,c=n.NoOptionsMessage,d=n.Option,f=this.commonProps,h=this.state.focusedOption,p=this.props,g=p.captureMenuScroll,v=p.inputValue,m=p.isLoading,y=p.loadingMessage,x=p.minMenuHeight,w=p.maxMenuHeight,E=p.menuIsOpen,S=p.menuPlacement,k=p.menuPosition,O=p.menuPortalTarget,C=p.menuShouldBlockScroll,I=p.menuShouldScrollIntoView,_=p.noOptionsMessage,T=p.onMenuScrollToTop,P=p.onMenuScrollToBottom;if(!E)return null;var R=function(e,n){var r=e.type,i=e.data,o=e.isDisabled,s=e.isSelected,l=e.label,u=e.value,c=h===i,p=o?void 0:function(){return t.onOptionHover(i)},g=o?void 0:function(){return t.selectOption(i)},v="".concat(t.getElementId("option"),"-").concat(n),m={id:v,onClick:g,onMouseMove:p,onMouseOver:p,tabIndex:-1,role:"option","aria-selected":t.isAppleDevice?void 0:s};return a.createElement(d,(0,b.Z)({},f,{innerProps:m,data:i,isDisabled:o,isSelected:s,key:v,label:l,type:r,value:u,isFocused:c,innerRef:c?t.getFocusedOptionRef:void 0}),t.formatOptionLabel(e.data,"menu"))};if(this.hasOptions())e=this.getCategorizedOptions().map(function(e){if("group"===e.type){var n=e.data,o=e.options,s=e.index,l="".concat(t.getElementId("group"),"-").concat(s),u="".concat(l,"-heading");return a.createElement(r,(0,b.Z)({},f,{key:l,data:n,options:o,Heading:i,headingProps:{id:u,data:e.data},label:t.formatGroupLabel(e.data)}),e.options.map(function(e){return R(e,"".concat(s,"-").concat(e.index))}))}if("option"===e.type)return R(e,"".concat(e.index))});else if(m){var A=y({inputValue:v});if(null===A)return null;e=a.createElement(u,f,A)}else{var N=_({inputValue:v});if(null===N)return null;e=a.createElement(c,f,N)}var M={minMenuHeight:x,maxMenuHeight:w,menuPlacement:S,menuPosition:k,menuShouldScrollIntoView:I},L=a.createElement(Z,(0,b.Z)({},f,M),function(n){var r=n.ref,i=n.placerProps,l=i.placement,u=i.maxHeight;return a.createElement(o,(0,b.Z)({},f,M,{innerRef:r,innerProps:{onMouseDown:t.onMenuMouseDown,onMouseMove:t.onMenuMouseMove},isLoading:m,placement:l}),a.createElement(eB,{captureEnabled:g,onTopArrive:T,onBottomArrive:P,lockEnabled:C},function(n){return a.createElement(s,(0,b.Z)({},f,{innerRef:function(e){t.getMenuListRef(e),n(e)},innerProps:{role:"listbox","aria-multiselectable":f.isMulti,id:t.getElementId("listbox")},isLoading:m,maxHeight:u,focusedOption:h}),e)}))});return O||"fixed"===k?a.createElement(l,(0,b.Z)({},f,{appendTo:O,controlElement:this.controlRef,menuPlacement:S,menuPosition:k}),L):L}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,i=t.isMulti,o=t.name,s=t.required,l=this.state.selectValue;if(s&&!this.hasValue()&&!r)return a.createElement(eH,{name:o,onFocus:this.onValueInputFocus});if(o&&!r){if(i){if(n){var u=l.map(function(t){return e.getOptionValue(t)}).join(n);return a.createElement("input",{name:o,type:"hidden",value:u})}var c=l.length>0?l.map(function(t,n){return a.createElement("input",{key:"i-".concat(n),name:o,type:"hidden",value:e.getOptionValue(t)})}):a.createElement("input",{name:o,type:"hidden",value:""});return a.createElement("div",null,c)}var d=l[0]?this.getOptionValue(l[0]):"";return a.createElement("input",{name:o,type:"hidden",value:d})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,r=t.focusedOption,i=t.focusedValue,o=t.isFocused,s=t.selectValue,l=this.getFocusableOptions();return a.createElement(em,(0,b.Z)({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:r,focusedValue:i,isFocused:o,selectValue:s,focusableOptions:l,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,i=e.ValueContainer,o=this.props,s=o.className,l=o.id,u=o.isDisabled,c=o.menuIsOpen,d=this.state.isFocused,f=this.commonProps=this.getCommonProps();return a.createElement(r,(0,b.Z)({},f,{className:s,innerProps:{id:l,onKeyDown:this.onKeyDown},isDisabled:u,isFocused:d}),this.renderLiveRegion(),a.createElement(t,(0,b.Z)({},f,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:u,isFocused:d,menuIsOpen:c}),a.createElement(i,(0,b.Z)({},f,{isDisabled:u}),this.renderPlaceholderOrValue(),this.renderInput()),a.createElement(n,(0,b.Z)({},f,{isDisabled:u}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],r=[{key:"getDerivedStateFromProps",value:function(e,t){var n,r=t.prevProps,i=t.clearFocusValueOnUpdate,o=t.inputIsHiddenAfterUpdate,a=t.ariaSelection,s=t.isFocused,l=t.prevWasFocused,u=t.instancePrefix,c=e.options,f=e.value,h=e.menuIsOpen,p=e.inputValue,g=e.isMulti,v=R(f),m={};if(r&&(f!==r.value||c!==r.options||h!==r.menuIsOpen||p!==r.inputValue)){var b,y=h?eJ(eQ(e,v)):[],x=h?e0(eQ(e,v),"".concat(u,"-option")):[],w=i?function(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r<t.length)return t[r]}return null}(t,v):null,E=(b=t.focusedOption)&&y.indexOf(b)>-1?b:y[0],S=e2(x,E);m={selectValue:v,focusedOption:E,focusedOptionId:S,focusableOptionsWithIds:x,focusedValue:w,clearFocusValueOnUpdate:!1}}var k=null!=o&&e!==r?{inputIsHidden:o,inputIsHiddenAfterUpdate:void 0}:{},O=a,C=s&&l;return s&&!C&&(O={value:(n=v[0]||null,g?v:n),options:v,action:"initial-input-focus"},C=!l),(null==a?void 0:a.action)==="initial-input-focus"&&(O=null),d(d(d({},m),k),{},{prevProps:e,ariaSelection:O,prevWasFocused:C})}}],n&&y(o.prototype,n),r&&y(o,r),Object.defineProperty(o,"prototype",{writable:!1}),o}(a.Component);te.defaultProps=eY,n(28255);var tt=(0,a.forwardRef)(function(e,t){var n=m(e);return a.createElement(te,(0,b.Z)({ref:t},n))}),tn=n(69463),tr=n(64899),ti=n(93064),to=n(90072),ta=n(43098),ts=n(66927),tl=n(22952),tu=n(71433),tc=n(70462),td=n(67791),tf=n(51591),th=n(26415),tp=["allowCreateWhileLoading","createOptionPosition","formatCreateLabel","isValidNewOption","getNewOptionData","onCreateOption","options","onChange"],tg=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=String(e).toLowerCase(),i=String(n.getOptionValue(t)).toLowerCase(),o=String(n.getOptionLabel(t)).toLowerCase();return i===r||o===r},tv={formatCreateLabel:function(e){return'Create "'.concat(e,'"')},isValidNewOption:function(e,t,n,r){return!(!e||t.some(function(t){return tg(e,t,r)})||n.some(function(t){return tg(e,t,r)}))},getNewOptionData:function(e,t){return{label:t,value:e,__isNew__:!0}}};function tm(e){var t=e.allowCreateWhileLoading,n=void 0!==t&&t,r=e.createOptionPosition,i=void 0===r?"last":r,o=e.formatCreateLabel,s=void 0===o?tv.formatCreateLabel:o,l=e.isValidNewOption,u=void 0===l?tv.isValidNewOption:l,c=e.getNewOptionData,f=void 0===c?tv.getNewOptionData:c,h=e.onCreateOption,p=e.options,v=void 0===p?[]:p,m=e.onChange,b=g(e,tp),y=b.getOptionValue,x=void 0===y?eG:y,w=b.getOptionLabel,E=void 0===w?eq:w,k=b.inputValue,O=b.isLoading,C=b.isMulti,I=b.value,_=b.name,T=(0,a.useMemo)(function(){return u(k,R(I),v,{getOptionValue:x,getOptionLabel:E})?f(k,s(k)):void 0},[s,f,E,x,k,u,v,I]),P=(0,a.useMemo)(function(){return(n||!O)&&T?"first"===i?[T].concat(S(v)):[].concat(S(v),[T]):v},[n,i,O,T,v]),A=(0,a.useCallback)(function(e,t){if("select-option"!==t.action)return m(e,t);var n=Array.isArray(e)?e:[e];if(n[n.length-1]===T){if(h)h(k);else{var r,i=f(k,k);m((r=[].concat(S(R(I)),[i]),C?r:i),{action:"create-option",name:_,option:i})}return}m(e,t)},[f,k,C,_,T,h,m,I]);return d(d({},b),{},{options:P,onChange:A})}var tb=(0,a.forwardRef)(function(e,t){var n=tm(m(e));return a.createElement(te,(0,b.Z)({ref:t},n))}),ty=["defaultOptions","cacheOptions","loadOptions","options","isLoading","onInputChange","filterOption"];function tx(e){var t=e.defaultOptions,n=void 0!==t&&t,r=e.cacheOptions,i=void 0!==r&&r,o=e.loadOptions;e.options;var s=e.isLoading,l=e.onInputChange,c=e.filterOption,f=g(e,ty),h=f.inputValue,v=(0,a.useRef)(void 0),m=(0,a.useRef)(!1),b=p((0,a.useState)(Array.isArray(n)?n:void 0),2),y=b[0],x=b[1],w=p((0,a.useState)(void 0!==h?h:""),2),E=w[0],S=w[1],k=p((0,a.useState)(!0===n),2),O=k[0],C=k[1],I=p((0,a.useState)(void 0),2),_=I[0],T=I[1],P=p((0,a.useState)([]),2),R=P[0],A=P[1],N=p((0,a.useState)(!1),2),M=N[0],L=N[1],D=p((0,a.useState)({}),2),F=D[0],V=D[1],j=p((0,a.useState)(void 0),2),z=j[0],U=j[1],B=p((0,a.useState)(void 0),2),W=B[0],H=B[1];i!==W&&(V({}),H(i)),n!==z&&(x(Array.isArray(n)?n:void 0),U(n)),(0,a.useEffect)(function(){return m.current=!0,function(){m.current=!1}},[]);var $=(0,a.useCallback)(function(e,t){if(!o)return t();var n=o(e,t);n&&"function"==typeof n.then&&n.then(t,function(){return t()})},[o]);(0,a.useEffect)(function(){!0===n&&$(E,function(e){m.current&&(x(e||[]),C(!!v.current))})},[]);var q=(0,a.useCallback)(function(e,t){var n=function(e,t,n){if(n){var r=n(e,t);if("string"==typeof r)return r}return e}(e,t,l);if(!n){v.current=void 0,S(""),T(""),A([]),C(!1),L(!1);return}if(i&&F[n])S(n),T(n),A(F[n]),C(!1),L(!1);else{var r=v.current={};S(n),C(!0),L(!_),$(n,function(e){m&&r===v.current&&(v.current=void 0,C(!1),T(n),A(e||[]),L(!1),V(e?d(d({},F),{},u({},n,e)):F))})}},[i,$,_,F,l]),G=M?[]:E&&_?R:y||[];return d(d({},f),{},{options:G,isLoading:O||void 0!==s&&s,onInputChange:q,filterOption:void 0===c?null:c})}var tw=(0,a.forwardRef)(function(e,t){var n=m(tx(e));return a.createElement(te,(0,b.Z)({ref:t},n))}),tE=(0,a.forwardRef)(function(e,t){var n=tm(m(tx(e)));return a.createElement(te,(0,b.Z)({ref:t},n))}),tS=(0,ti.m)("svg"),tk=e=>(0,th.jsx)(tS,{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...e,children:(0,th.jsx)("path",{d:"M20 6 9 17l-5-5"})}),tO=e=>(0,th.jsx)(tS,{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...e,children:(0,th.jsx)("path",{d:"m6 9 6 6 6-6"})}),tC=e=>(0,th.jsx)(tS,{viewBox:"0 0 24 24",fill:"currentColor",...e,children:(0,th.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.7071 6.70711C19.0976 6.31658 19.0976 5.68342 18.7071 5.29289C18.3166 4.90237 17.6834 4.90237 17.2929 5.29289L12 10.5858L6.70711 5.29289C6.31658 4.90237 5.68342 4.90237 5.29289 5.29289C4.90237 5.68342 4.90237 6.31658 5.29289 6.70711L10.5858 12L5.29289 17.2929C4.90237 17.6834 4.90237 18.3166 5.29289 18.7071C5.68342 19.0976 6.31658 19.0976 6.70711 18.7071L12 13.4142L17.2929 18.7071C17.6834 19.0976 18.3166 19.0976 18.7071 18.7071C19.0976 18.3166 19.0976 17.6834 18.7071 17.2929L13.4142 12L18.7071 6.70711Z"})}),tI=e=>{let{className:t,clearValue:n,cx:r,getStyles:i,getClassNames:o,getValue:a,hasValue:s,isMulti:l,isRtl:u,options:c,selectOption:d,selectProps:f,setValue:h,theme:p,...g}=e;return{...g}},t_=e=>"string"==typeof e&&["sm","md","lg"].includes(e),tT=e=>t_(e)?e:"xs"===e?"sm":"xl"===e?"lg":"md",tP=e=>{var t,n,r,i;let o=tT(null==(n=null==(t=(0,tu.V)().getSlotRecipe("select"))?void 0:t.defaultVariants)?void 0:n.size);return null!=(i=function(e,t){let n=(0,tu.V)().normalizeValue(e),r=function(){var e,t;let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n.fallback||(n.fallback="base");let r=(0,tu.V)(),i=!1,o=r.breakpoints.values.map(e=>{let{min:t,name:r}=e,o={breakpoint:r,query:"(min-width: ".concat(t,")"),fallback:!i};return r===n.fallback&&(i=!0),o}).filter(e=>{var t;let{breakpoint:r}=e;return!!(null===(t=n.breakpoints)||void 0===t?void 0:t.includes(r))}),s=o.map(e=>{let{fallback:t}=e;return t}),l=(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{fallback:n=[],ssr:r=!0,getWindow:i}=t,o=(0,tc.W)(i),s=Array.isArray(e)?e:[e],l=null==n?void 0:n.filter(e=>null!=e),[u,c]=(0,a.useState)(()=>s.map((e,t)=>{if(!r){var n;let{media:t,matches:r}=(null!==(n=null==i?void 0:i())&&void 0!==n?n:window).matchMedia(e);return{media:t,matches:r}}return{media:e,matches:!!l[t]}}));return(0,a.useEffect)(()=>{var e;let t=null!==(e=o())&&void 0!==e?e:window;c(e=>{let n=s.map(e=>{let{media:n,matches:r}=t.matchMedia(e);return{media:n,matches:r}});return e.every((e,t)=>e.matches===n[t].matches&&e.media===n[t].media)?e:n});let n=s.map(e=>t.matchMedia(e)),r=e=>{c(t=>t.slice().map(t=>t.media===e.media?{...t,matches:e.matches}:t))},i=n.map(e=>(function(e,t){try{return e.addEventListener("change",t),()=>e.removeEventListener("change",t)}catch(n){return e.addListener(t),()=>e.removeListener(t)}})(e,r));return()=>i.forEach(e=>e())},[o]),u.map(e=>e.matches)})(o.map(e=>e.query),{fallback:s,ssr:n.ssr}).lastIndexOf(!0);return null!==(t=null===(e=o[l])||void 0===e?void 0:e.breakpoint)&&void 0!==t?t:n.fallback}({breakpoints:Object.keys(n)});return n[r]}(null!=(r="string"==typeof e?[e]:e)?r:[o]))?i:o},tR=(0,ti.m)("input"),tA={sm:1.5,md:2,lg:2.5},tN=e=>(0,th.jsx)(td.D,{...e,children:(0,th.jsx)(tk,{})}),tM=e=>"object"==typeof e&&null!==e&&"colorPalette"in e&&"string"==typeof e.colorPalette,tL=e=>"object"==typeof e&&null!==e&&"variant"in e&&"string"==typeof e.variant,tD={ClearIndicator:e=>{let{children:t,className:n,cx:r,innerProps:i,selectProps:{chakraStyles:o,size:a,variant:s}}=e,l={...(0,tn.j)({key:"select"})({size:a,variant:s}).clearTrigger},u=(null==o?void 0:o.clearIndicator)?o.clearIndicator(l,e):l,c={},d=(null==o?void 0:o.crossIcon)?o.crossIcon(c,e):c;return(0,th.jsx)(tr.x,{className:r({indicator:!0,"clear-indicator":!0},n),css:u,"aria-label":"Clear selected options",asChild:!0,...i,children:(0,th.jsx)(ts.h,{size:"sm",boxSize:8,minWidth:"unset",variant:"plain",pointerEvents:"auto",tabIndex:-1,children:t||(0,th.jsx)(tC,{css:d})})})},Control:e=>{let{className:t,cx:n,children:r,innerRef:i,innerProps:o,isDisabled:a,isFocused:s,menuIsOpen:l,selectProps:{chakraStyles:u,size:c,variant:d,invalid:f,readOnly:h,focusRingColor:p}}=e,g={...(0,to.r)({key:"input"})({size:c,variant:d}),display:"flex",height:"auto",minHeight:"var(--select-trigger-height)",...a?{pointerEvents:"none"}:{}},v=(null==u?void 0:u.control)?u.control(g,e):g;return(0,th.jsx)(tr.x,{ref:i,className:n({control:!0,"control--is-disabled":a,"control--is-focused":s,"control--menu-is-open":l},t),css:v,...o,focusRingColor:p,"data-focus":!!s||void 0,"data-focus-visible":!!s||void 0,"data-invalid":!!f||void 0,"data-disabled":!!a||void 0,"data-readonly":!!h||void 0,children:r})},DropdownIndicator:e=>{let{children:t,className:n,cx:r,innerProps:i,selectProps:{chakraStyles:o,size:a,variant:s}}=e,l={...(0,tn.j)({key:"select"})({size:a,variant:s}).indicator},u=(null==o?void 0:o.dropdownIndicator)?o.dropdownIndicator(l,e):l,c={},d=(null==o?void 0:o.downChevron)?o.downChevron(c,e):c;return(0,th.jsx)(tr.x,{...i,className:r({indicator:!0,"dropdown-indicator":!0},n),css:u,children:t||(0,th.jsx)(tO,{css:d})})},Group:e=>{let{children:t,className:n,cx:r,theme:i,getStyles:o,Heading:a,headingProps:s,label:l,selectProps:u,innerProps:c,getClassNames:d}=e,{chakraStyles:f,size:h,variant:p}=u,g={...(0,tn.j)({key:"select"})({size:h,variant:p}).itemGroup},v=(null==f?void 0:f.group)?f.group(g,e):g;return(0,th.jsxs)(tr.x,{...c,className:r({group:!0},n),css:v,children:[(0,th.jsx)(a,{...s,selectProps:u,cx:r,theme:i,getStyles:o,getClassNames:d,children:l}),(0,th.jsx)(tr.x,{children:t})]})},GroupHeading:e=>{let{cx:t,className:n,selectProps:{chakraStyles:r,size:i,variant:o}}=e,{data:a,...s}=tI(e),l={...(0,tn.j)({key:"select"})({size:i,variant:o}).itemGroupLabel},u=(null==r?void 0:r.groupHeading)?r.groupHeading(l,e):l;return(0,th.jsx)(tr.x,{...s,className:t({"group-heading":!0},n),css:u})},IndicatorSeparator:e=>{let{className:t,cx:n,selectProps:{chakraStyles:r}}=e,i={display:"none"},o=(null==r?void 0:r.indicatorSeparator)?r.indicatorSeparator(i,e):i;return(0,th.jsx)(ta.Z,{className:n({"indicator-separator":!0},t),css:o,orientation:"vertical"})},IndicatorsContainer:e=>{let{children:t,className:n,cx:r,innerProps:i,selectProps:{chakraStyles:o,size:a,variant:s}}=e,l={...(0,tn.j)({key:"select"})({size:a,variant:s}).indicatorGroup,position:"static",paddingRight:0},u=(null==o?void 0:o.indicatorsContainer)?o.indicatorsContainer(l,e):l;return(0,th.jsx)(tr.x,{...i,className:r({indicators:!0},n),css:u,children:t})},Input:e=>{let{className:t,cx:n,value:r,selectProps:{chakraStyles:i,readOnly:o}}=e,{innerRef:a,isDisabled:s,isHidden:l,inputClassName:u,...c}=tI(e),d={gridArea:"1 / 2",minW:"2px",border:0,margin:0,outline:0,padding:0},f={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content",color:"inherit",marginX:"0.125rem",paddingY:"0.125rem",visibility:s?"hidden":"visible",transform:r?"translateZ(0)":"",_after:{content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre",padding:0,...d}},h=(null==i?void 0:i.inputContainer)?i.inputContainer(f,e):f,p={background:0,opacity:l?0:1,width:"100%",...d},g=(null==i?void 0:i.input)?i.input(p,e):p;return(0,th.jsx)(tr.x,{className:n({"input-container":!0},t),"data-value":r||"",css:h,children:(0,th.jsx)(tR,{className:n({input:!0},u),ref:a,css:g,disabled:s,readOnly:!!o||void 0,...c})})},LoadingIndicator:e=>{let{className:t,cx:n,innerProps:r,selectProps:{chakraStyles:i},color:o,colorPalette:a,trackColor:s,animationDuration:l,borderWidth:u,spinnerSize:c}=e,d={marginRight:3,...s?{"--spinner-track-color":s}:{}},f=(null==i?void 0:i.loadingIndicator)?i.loadingIndicator(d,e):d;return(0,th.jsx)(tl.$,{className:n({indicator:!0,"loading-indicator":!0},t),css:f,...r,size:c,colorPalette:a,color:o,animationDuration:l,borderWidth:u})},LoadingMessage:e=>{let{children:t,className:n,cx:r,innerProps:i,selectProps:{chakraStyles:o,size:a}}=e,s={color:"fg.muted",textAlign:"center",paddingY:tA[tP(a)]},l=(null==o?void 0:o.loadingMessage)?o.loadingMessage(s,e):s;return(0,th.jsx)(tr.x,{...i,className:r({"menu-notice":!0,"menu-notice--loading":!0},n),css:l,children:t})},Menu:e=>{let{className:t,cx:n,children:r,innerProps:i,innerRef:o,placement:a,selectProps:{chakraStyles:s}}=e,l={position:"absolute",..."top"===a?{bottom:"100%"}:{top:"100%"},marginY:"8px",width:"100%",zIndex:1},u=(null==s?void 0:s.menu)?s.menu(l,e):l;return(0,th.jsx)(tr.x,{...i,ref:o,className:n({menu:!0},t),css:u,children:r})},MenuList:e=>{let{className:t,cx:n,innerRef:r,children:i,maxHeight:o,isMulti:a,innerProps:s,selectProps:{chakraStyles:l,size:u,variant:c}}=e,d={...(0,tn.j)({key:"select"})({size:u,variant:c}).content,maxHeight:`${o}px`,position:"relative"},f=(null==l?void 0:l.menuList)?l.menuList(d,e):d;return(0,th.jsx)(tr.x,{...s,className:n({"menu-list":!0,"menu-list--is-multi":a},t),css:f,ref:r,children:i})},MultiValue:e=>{var t;let{children:n,className:r,components:i,cx:o,data:a,innerProps:s,isDisabled:l,isFocused:u,removeProps:c,selectProps:d,cropWithEllipsis:f}=e,{Container:h,Label:p,Remove:g}=i,{chakraStyles:v,tagColorPalette:m,tagVariant:b,size:y}=d,{colorPalette:x,variant:w}=null!=(t=(0,tu.V)().getSlotRecipe("tag").defaultVariants)?t:{},E=x;tM(a)?E=a.colorPalette:m&&(E=m);let S=w;tL(a)?S=a.variant:b&&(S=b);let k=(0,tn.j)({key:"tag"})({size:y,variant:S}),O={...k.root,colorPalette:E,minWidth:0,margin:"0.125rem"},C=(null==v?void 0:v.multiValue)?v.multiValue(O,e):O,I={...k.label,overflow:"hidden",textOverflow:f||void 0===f?"ellipsis":void 0,whiteSpace:"nowrap"},_=(null==v?void 0:v.multiValueLabel)?v.multiValueLabel(I,e):I,T={...k.endElement},P=(null==v?void 0:v.multiValueEndElement)?v.multiValueEndElement(T,e):T,R={...k.closeTrigger,cursor:"pointer"},A=(null==v?void 0:v.multiValueRemove)?v.multiValueRemove(R,e):R;return(0,th.jsxs)(h,{data:a,innerProps:{className:o({"multi-value":!0,"multi-value--is-disabled":l},r),...s},css:C,selectProps:d,children:[(0,th.jsx)(p,{data:a,innerProps:{className:o({"multi-value__label":!0},r)},css:_,selectProps:d,children:n}),(0,th.jsx)(g,{data:a,innerProps:{className:o({"multi-value__remove":!0},r),"aria-label":`Remove ${n||"option"}`,...c},endElementCss:P,css:A,selectProps:d,isFocused:u})]})},MultiValueContainer:e=>{let{children:t,innerProps:n,css:r}=e;return(0,th.jsx)(td.D,{...n,css:r,children:t})},MultiValueLabel:e=>{let{children:t,innerProps:n,css:r}=e;return(0,th.jsx)(td.D,{...n,css:r,children:t})},MultiValueRemove:e=>{let{children:t,innerProps:n,isFocused:r,endElementCss:i,css:o}=e;return(0,th.jsx)(td.D,{css:i,...n,children:(0,th.jsx)(td.D,{role:"button",css:o,"data-focus-visible":!!r||void 0,children:t||(0,th.jsx)(tC,{})})})},NoOptionsMessage:e=>{let{children:t,className:n,cx:r,innerProps:i,selectProps:{chakraStyles:o,size:a}}=e,s={color:"fg.muted",textAlign:"center",paddingY:tA[tP(a)]},l=(null==o?void 0:o.noOptionsMessage)?o.noOptionsMessage(s,e):s;return(0,th.jsx)(tr.x,{...i,className:r({"menu-notice":!0,"menu-notice--no-options":!0},n),css:l,children:t})},Option:e=>{let{className:t,cx:n,innerRef:r,innerProps:i,children:o,isFocused:a,isDisabled:s,isSelected:l,selectProps:{chakraStyles:u,isMulti:c,hideSelectedOptions:d,selectedOptionStyle:f,selectedOptionColorPalette:h,size:p,variant:g}}=e,v=(0,tn.j)({key:"select"})({size:p,variant:g}),m="color"===f&&l,b={...v.item,...m?{color:"colorPalette.contrast",bg:"colorPalette.solid",_active:{bg:"colorPalette.solid"}}:{}},y=(null==u?void 0:u.option)?u.option(b,e):b;return(0,th.jsxs)(tr.x,{...i,colorPalette:h,className:n({option:!0,"option--is-disabled":s,"option--is-focused":a,"option--is-selected":l},t),css:y,ref:r,"data-highlighted":!!a||void 0,"aria-disabled":!!s||void 0,"aria-selected":l,children:[o,"check"===f&&(!c||!1===d)&&(0,th.jsx)(tN,{css:{...v.itemIndicator},hidden:!l,children:(0,th.jsx)(tk,{})})]})},Placeholder:e=>{let{children:t,className:n,cx:r,innerProps:i,selectProps:{chakraStyles:o}}=e,a={gridArea:"1 / 1 / 2 / 3",color:"fg.muted/80",mx:"0.125rem",userSelect:"none"},s=(null==o?void 0:o.placeholder)?o.placeholder(a,e):a;return(0,th.jsx)(tr.x,{...i,className:r({placeholder:!0},n),css:s,children:t})},SelectContainer:e=>{let{children:t,className:n,cx:r,innerProps:i,isDisabled:o,isRtl:a,hasValue:s,selectProps:{chakraStyles:l,size:u,variant:c}}=e,d={...(0,tn.j)({key:"select"})({size:u,variant:c}).root,gap:0,position:"relative",direction:a?"rtl":void 0,...o?{cursor:"not-allowed"}:{}},f=(null==l?void 0:l.container)?l.container(d,e):d;return(0,th.jsx)(tr.x,{...i,className:r({"--is-disabled":o,"--is-rtl":a,"--has-value":s},n),css:f,children:t})},SingleValue:e=>{let{children:t,className:n,cx:r,isDisabled:i,innerProps:o,selectProps:{chakraStyles:a}}=e,s={gridArea:"1 / 1 / 2 / 3",mx:"0.125rem",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},l=(null==a?void 0:a.singleValue)?a.singleValue(s,e):s;return(0,th.jsx)(tr.x,{className:r({"single-value":!0,"single-value--is-disabled":i},n),css:l,...o,children:t})},ValueContainer:e=>{let{children:t,className:n,cx:r,isMulti:i,hasValue:o,innerProps:a,selectProps:{chakraStyles:s,controlShouldRenderValue:l}}=e,u={display:i&&o&&l?"flex":"grid",alignItems:"center",flex:1,paddingY:"2px",flexWrap:"wrap",position:"relative",overflow:"hidden"},c=(null==s?void 0:s.valueContainer)?s.valueContainer(u,e):u;return(0,th.jsx)(tr.x,{...a,className:r({"value-container":!0,"value-container--is-multi":i,"value-container--has-value":o},n),css:c,children:t})}},tF=({components:e={},disabled:t,isDisabled:n,invalid:r,readOnly:i,required:o,inputId:a,selectedOptionStyle:s="color",selectedOptionColorPalette:l="blue",menuIsOpen:u,menuPlacement:c="auto",theme:d,...f})=>{var h,p;let g=(0,tf.O)(),v=null!=i?i:null==g?void 0:g.readOnly,m=s;["color","check"].includes(s)||(m="color");let b=l||"blue";return"string"!=typeof b&&(b="blue"),{components:{...tD,...e},selectedOptionStyle:m,selectedOptionColorPalette:b,isDisabled:null!=(h=null!=t?t:n)?h:null==g?void 0:g.disabled,invalid:null!=r?r:null==g?void 0:g.invalid,inputId:null!=a?a:null==g?void 0:g.ids.control,readOnly:v,required:null!=o?o:null==g?void 0:g.required,menuIsOpen:null!=u?u:!v&&void 0,menuPlacement:c,unstyled:!0,...f,"aria-invalid":null!=(p=f["aria-invalid"])?p:null==g?void 0:g.invalid}},tV=(0,a.forwardRef)((e,t)=>{let n=tF(e);return(0,th.jsx)(tt,{ref:t,...n})});(0,a.forwardRef)((e,t)=>{let n=tF(e);return(0,th.jsx)(tb,{ref:t,...n})}),(0,a.forwardRef)((e,t)=>{let n=tF(e);return(0,th.jsx)(tw,{ref:t,...n})}),(0,a.forwardRef)((e,t)=>{let n=tF(e);return(0,th.jsx)(tE,{ref:t,...n})})},86322:function(e,t,n){"use strict";let r,i;function o(e){return e+.5|0}n.d(t,{$:function(){return tf},A:function(){return eL},B:function(){return eM},C:function(){return tc},D:function(){return eO},E:function(){return tS},F:function(){return $},G:function(){return tJ},H:function(){return ed},I:function(){return t$},J:function(){return t2},K:function(){return t1},L:function(){return eB},M:function(){return tH},N:function(){return eb},O:function(){return z},P:function(){return ea},Q:function(){return H},R:function(){return tC},S:function(){return eP},T:function(){return es},U:function(){return eS},V:function(){return ti},W:function(){return eR},X:function(){return ta},Y:function(){return td},Z:function(){return tg},_:function(){return ez},a:function(){return tO},a0:function(){return tk},a1:function(){return eH},a2:function(){return e$},a3:function(){return e7},a4:function(){return Y},a5:function(){return et},a6:function(){return e9},a7:function(){return er},a8:function(){return function e(t,n,r,i){return new Proxy({_cacheable:!1,_proxy:t,_context:n,_subProxy:r,_stack:new Set,_descriptors:tT(t,i),setContext:n=>e(t,n,r,i),override:o=>e(t.override(o),n,r,i)},{deleteProperty:(e,n)=>(delete e[n],delete t[n],!0),get:(t,n,r)=>tA(t,n,()=>(function(t,n,r){let{_proxy:i,_context:o,_subProxy:a,_descriptors:s}=t,l=i[n];return er(l)&&s.isScriptable(n)&&(l=function(e,t,n,r){let{_proxy:i,_context:o,_subProxy:a,_stack:s}=n;if(s.has(e))throw Error("Recursion detected: "+Array.from(s).join("->")+"->"+e);s.add(e);let l=t(o,a||r);return s.delete(e),tR(e,l)&&(l=tM(i._scopes,i,e,l)),l}(n,l,t,r)),F(l)&&l.length&&(l=function(t,n,r,i){let{_proxy:o,_context:a,_subProxy:s,_descriptors:l}=r;if(void 0!==a.index&&i(t))return n[a.index%n.length];if(V(n[0])){let r=n,i=o._scopes.filter(e=>e!==r);for(let u of(n=[],r)){let r=tM(i,o,t,u);n.push(e(r,a,s&&s[t],l))}}return n}(n,l,t,s.isIndexable)),tR(n,l)&&(l=e(l,o,a&&a[n],s)),l})(t,n,r)),getOwnPropertyDescriptor:(e,n)=>e._descriptors.allKeys?Reflect.has(t,n)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,n),getPrototypeOf:()=>Reflect.getPrototypeOf(t),has:(e,n)=>Reflect.has(t,n),ownKeys:()=>Reflect.ownKeys(t),set:(e,n,r)=>(t[n]=r,delete e[n],!0)})}},a9:function(){return t_},aA:function(){return t6},aB:function(){return t8},aC:function(){return eq},aD:function(){return t7},aE:function(){return tu},aF:function(){return eC},aG:function(){return M},aH:function(){return ew},aI:function(){return em},aJ:function(){return ex},aK:function(){return ev},aL:function(){return ek},aM:function(){return e8},aN:function(){return ep},aO:function(){return to},aP:function(){return eD},aQ:function(){return eN},aa:function(){return tT},ab:function(){return X},ac:function(){return L},ad:function(){return eW},ae:function(){return t0},af:function(){return ts},ag:function(){return ei},ah:function(){return ns},ai:function(){return q},aj:function(){return eo},ak:function(){return eA},al:function(){return e_},am:function(){return tx},an:function(){return tW},ao:function(){return nr},ap:function(){return nn},aq:function(){return t4},ar:function(){return t3},as:function(){return t5},at:function(){return th},au:function(){return tp},av:function(){return tl},aw:function(){return tv},ax:function(){return tw},ay:function(){return tE},az:function(){return nt},b:function(){return F},c:function(){return e0},d:function(){return tr},e:function(){return eQ},f:function(){return ee},g:function(){return j},h:function(){return en},i:function(){return V},j:function(){return tI},k:function(){return D},l:function(){return eV},m:function(){return B},n:function(){return W},o:function(){return e3},p:function(){return eT},q:function(){return eG},r:function(){return eU},s:function(){return eg},t:function(){return eE},u:function(){return ej},v:function(){return U},w:function(){return eK},x:function(){return ey},y:function(){return tV},z:function(){return tX}});let a=(e,t,n)=>Math.max(Math.min(e,n),t);function s(e){return a(o(2.55*e),0,255)}function l(e){return a(o(255*e),0,255)}function u(e){return a(o(e/2.55)/100,0,1)}function c(e){return a(o(100*e),0,100)}let d={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},f=[..."0123456789ABCDEF"],h=e=>f[15&e],p=e=>f[(240&e)>>4]+f[15&e],g=e=>(240&e)>>4==(15&e),v=e=>g(e.r)&&g(e.g)&&g(e.b)&&g(e.a),m=(e,t)=>e<255?t(e):"",b=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function y(e,t,n){let r=t*Math.min(n,1-n),i=(t,i=(t+e/30)%12)=>n-r*Math.max(Math.min(i-3,9-i,1),-1);return[i(0),i(8),i(4)]}function x(e,t,n){let r=(r,i=(r+e/60)%6)=>n-n*t*Math.max(Math.min(i,4-i,1),0);return[r(5),r(3),r(1)]}function w(e,t,n){let r;let i=y(e,1,.5);for(t+n>1&&(r=1/(t+n),t*=r,n*=r),r=0;r<3;r++)i[r]*=1-t-n,i[r]+=t;return i}function E(e){let t,n,r;let i=e.r/255,o=e.g/255,a=e.b/255,s=Math.max(i,o,a),l=Math.min(i,o,a),u=(s+l)/2;return s!==l&&(r=s-l,n=u>.5?r/(2-s-l):r/(s+l),t=60*(t=i===s?(o-a)/r+(o<a?6:0):o===s?(a-i)/r+2:(i-o)/r+4)+.5),[0|t,n||0,u]}function S(e,t,n,r){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,r)).map(l)}function k(e){return(e%360+360)%360}let O={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},C={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"},I=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/,_=e=>e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055,T=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function P(e,t,n){if(e){let r=E(e);r[t]=Math.max(0,Math.min(r[t]+r[t]*n,0===t?360:1)),r=S(y,r,void 0,void 0),e.r=r[0],e.g=r[1],e.b=r[2]}}function R(e,t){return e?Object.assign(t||{},e):e}function A(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=l(e[3]))):(t=R(e,{r:0,g:0,b:0,a:1})).a=l(t.a),t}class N{constructor(e){let t;if(e instanceof N)return e;let n=typeof e;if("object"===n)t=A(e);else if("string"===n){var i,o;o=e.length,"#"===e[0]&&(4===o||5===o?i={r:255&17*d[e[1]],g:255&17*d[e[2]],b:255&17*d[e[3]],a:5===o?17*d[e[4]]:255}:(7===o||9===o)&&(i={r:d[e[1]]<<4|d[e[2]],g:d[e[3]]<<4|d[e[4]],b:d[e[5]]<<4|d[e[6]],a:9===o?d[e[7]]<<4|d[e[8]]:255})),t=i||function(e){r||((r=function(){let e,t,n,r,i;let o={},a=Object.keys(C),s=Object.keys(O);for(e=0;e<a.length;e++){for(t=0,r=i=a[e];t<s.length;t++)n=s[t],i=i.replace(n,O[n]);n=parseInt(C[r],16),o[i]=[n>>16&255,n>>8&255,255&n]}return o}()).transparent=[0,0,0,0]);let t=r[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:4===t.length?t[3]:255}}(e)||("r"===e.charAt(0)?function(e){let t,n,r;let i=I.exec(e),o=255;if(i){if(i[7]!==t){let e=+i[7];o=i[8]?s(e):a(255*e,0,255)}return t=+i[1],n=+i[3],r=+i[5],{r:t=255&(i[2]?s(t):a(t,0,255)),g:n=255&(i[4]?s(n):a(n,0,255)),b:r=255&(i[6]?s(r):a(r,0,255)),a:o}}}(e):function(e){let t;let n=b.exec(e),r=255;if(!n)return;n[5]!==t&&(r=n[6]?s(+n[5]):l(+n[5]));let i=k(+n[2]),o=+n[3]/100,a=+n[4]/100;return{r:(t="hwb"===n[1]?S(w,i,o,a):"hsv"===n[1]?S(x,i,o,a):S(y,i,o,a))[0],g:t[1],b:t[2],a:r}}(e))}this._rgb=t,this._valid=!!t}get valid(){return this._valid}get rgb(){var e=R(this._rgb);return e&&(e.a=u(e.a)),e}set rgb(e){this._rgb=A(e)}rgbString(){var e;return this._valid?(e=this._rgb)&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${u(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`):void 0}hexString(){var e,t;return this._valid?(t=v(e=this._rgb)?h:p,e?"#"+t(e.r)+t(e.g)+t(e.b)+m(e.a,t):void 0):void 0}hslString(){return this._valid?function(e){if(!e)return;let t=E(e),n=t[0],r=c(t[1]),i=c(t[2]);return e.a<255?`hsla(${n}, ${r}%, ${i}%, ${u(e.a)})`:`hsl(${n}, ${r}%, ${i}%)`}(this._rgb):void 0}mix(e,t){if(e){let n;let r=this.rgb,i=e.rgb,o=t===n?.5:t,a=2*o-1,s=r.a-i.a,l=((a*s==-1?a:(a+s)/(1+a*s))+1)/2;n=1-l,r.r=255&l*r.r+n*i.r+.5,r.g=255&l*r.g+n*i.g+.5,r.b=255&l*r.b+n*i.b+.5,r.a=o*r.a+(1-o)*i.a,this.rgb=r}return this}interpolate(e,t){return e&&(this._rgb=function(e,t,n){let r=T(u(e.r)),i=T(u(e.g)),o=T(u(e.b));return{r:l(_(r+n*(T(u(t.r))-r))),g:l(_(i+n*(T(u(t.g))-i))),b:l(_(o+n*(T(u(t.b))-o))),a:e.a+n*(t.a-e.a)}}(this._rgb,e._rgb,t)),this}clone(){return new N(this.rgb)}alpha(e){return this._rgb.a=l(e),this}clearer(e){let t=this._rgb;return t.a*=1-e,this}greyscale(){let e=this._rgb,t=o(.3*e.r+.59*e.g+.11*e.b);return e.r=e.g=e.b=t,this}opaquer(e){let t=this._rgb;return t.a*=1+e,this}negate(){let e=this._rgb;return e.r=255-e.r,e.g=255-e.g,e.b=255-e.b,this}lighten(e){return P(this._rgb,2,e),this}darken(e){return P(this._rgb,2,-e),this}saturate(e){return P(this._rgb,1,e),this}desaturate(e){return P(this._rgb,1,-e),this}rotate(e){var t,n;return(n=E(t=this._rgb))[0]=k(n[0]+e),n=S(y,n,void 0,void 0),t.r=n[0],t.g=n[1],t.b=n[2],this}}function M(){}let L=(i=0,()=>i++);function D(e){return null==e}function F(e){if(Array.isArray&&Array.isArray(e))return!0;let t=Object.prototype.toString.call(e);return"[object"===t.slice(0,7)&&"Array]"===t.slice(-6)}function V(e){return null!==e&&"[object Object]"===Object.prototype.toString.call(e)}function j(e){return("number"==typeof e||e instanceof Number)&&isFinite(+e)}function z(e,t){return j(e)?e:t}function U(e,t){return void 0===e?t:e}let B=(e,t)=>"string"==typeof e&&e.endsWith("%")?parseFloat(e)/100:+e/t,W=(e,t)=>"string"==typeof e&&e.endsWith("%")?parseFloat(e)/100*t:+e;function H(e,t,n){if(e&&"function"==typeof e.call)return e.apply(n,t)}function $(e,t,n,r){let i,o,a;if(F(e)){if(o=e.length,r)for(i=o-1;i>=0;i--)t.call(n,e[i],i);else for(i=0;i<o;i++)t.call(n,e[i],i)}else if(V(e))for(i=0,o=(a=Object.keys(e)).length;i<o;i++)t.call(n,e[a[i]],a[i])}function q(e,t){let n,r,i,o;if(!e||!t||e.length!==t.length)return!1;for(n=0,r=e.length;n<r;++n)if(i=e[n],o=t[n],i.datasetIndex!==o.datasetIndex||i.index!==o.index)return!1;return!0}function G(e){if(F(e))return e.map(G);if(V(e)){let t=Object.create(null),n=Object.keys(e),r=n.length,i=0;for(;i<r;++i)t[n[i]]=G(e[n[i]]);return t}return e}function K(e){return -1===["__proto__","prototype","constructor"].indexOf(e)}function Z(e,t,n,r){if(!K(e))return;let i=t[e],o=n[e];V(i)&&V(o)?Y(i,o,r):t[e]=G(o)}function Y(e,t,n){let r;let i=F(t)?t:[t],o=i.length;if(!V(e))return e;let a=(n=n||{}).merger||Z;for(let t=0;t<o;++t){if(!V(r=i[t]))continue;let o=Object.keys(r);for(let t=0,i=o.length;t<i;++t)a(o[t],e,r,n)}return e}function X(e,t){return Y(e,t,{merger:Q})}function Q(e,t,n){if(!K(e))return;let r=t[e],i=n[e];V(r)&&V(i)?X(r,i):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=G(i))}let J={"":e=>e,x:e=>e.x,y:e=>e.y};function ee(e,t){return(J[t]||(J[t]=function(e){let t=function(e){let t=e.split("."),n=[],r="";for(let e of t)(r+=e).endsWith("\\")?r=r.slice(0,-1)+".":(n.push(r),r="");return n}(e);return e=>{for(let n of t){if(""===n)break;e=e&&e[n]}return e}}(t)))(e)}function et(e){return e.charAt(0).toUpperCase()+e.slice(1)}let en=e=>void 0!==e,er=e=>"function"==typeof e,ei=(e,t)=>{if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0};function eo(e){return"mouseup"===e.type||"click"===e.type||"contextmenu"===e.type}let ea=Math.PI,es=2*ea,el=es+ea,eu=Number.POSITIVE_INFINITY,ec=ea/180,ed=ea/2,ef=ea/4,eh=2*ea/3,ep=Math.log10,eg=Math.sign;function ev(e,t,n){return Math.abs(e-t)<n}function em(e){let t=Math.round(e),n=Math.pow(10,Math.floor(ep(e=ev(e,t,e/1e3)?t:e))),r=e/n;return(r<=1?1:r<=2?2:r<=5?5:10)*n}function eb(e){let t;let n=[],r=Math.sqrt(e);for(t=1;t<r;t++)e%t==0&&(n.push(t),n.push(e/t));return r===(0|r)&&n.push(r),n.sort((e,t)=>e-t).pop(),n}function ey(e){return!("symbol"==typeof e||"object"==typeof e&&null!==e&&!(Symbol.toPrimitive in e||"toString"in e||"valueOf"in e))&&!isNaN(parseFloat(e))&&isFinite(e)}function ex(e,t){let n=Math.round(e);return n-t<=e&&n+t>=e}function ew(e,t,n){let r,i,o;for(r=0,i=e.length;r<i;r++)isNaN(o=e[r][n])||(t.min=Math.min(t.min,o),t.max=Math.max(t.max,o))}function eE(e){return ea/180*e}function eS(e){return 180/ea*e}function ek(e){if(!j(e))return;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n++;return n}function eO(e,t){let n=t.x-e.x,r=t.y-e.y,i=Math.atan2(r,n);return i<-.5*ea&&(i+=es),{angle:i,distance:Math.sqrt(n*n+r*r)}}function eC(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function eI(e,t){return(e-t+el)%es-ea}function e_(e){return(e%es+es)%es}function eT(e,t,n,r){let i=e_(e),o=e_(t),a=e_(n),s=e_(o-i),l=e_(a-i),u=e_(i-o),c=e_(i-a);return i===o||i===a||r&&o===a||s>l&&u<c}function eP(e,t,n){return Math.max(t,Math.min(n,e))}function eR(e){return eP(e,-32768,32767)}function eA(e,t,n,r=1e-6){return e>=Math.min(t,n)-r&&e<=Math.max(t,n)+r}function eN(e,t,n){let r;n=n||(n=>e[n]<t);let i=e.length-1,o=0;for(;i-o>1;)n(r=o+i>>1)?o=r:i=r;return{lo:o,hi:i}}let eM=(e,t,n,r)=>eN(e,n,r?r=>{let i=e[r][t];return i<n||i===n&&e[r+1][t]===n}:r=>e[r][t]<n),eL=(e,t,n)=>eN(e,n,r=>e[r][t]>=n);function eD(e,t,n){let r=0,i=e.length;for(;r<i&&e[r]<t;)r++;for(;i>r&&e[i-1]>n;)i--;return r>0||i<e.length?e.slice(r,i):e}let eF=["push","pop","shift","splice","unshift"];function eV(e,t){if(e._chartjs){e._chartjs.listeners.push(t);return}Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),eF.forEach(t=>{let n="_onData"+et(t),r=e[t];Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value(...t){let i=r.apply(this,t);return e._chartjs.listeners.forEach(e=>{"function"==typeof e[n]&&e[n](...t)}),i}})})}function ej(e,t){let n=e._chartjs;if(!n)return;let r=n.listeners,i=r.indexOf(t);-1!==i&&r.splice(i,1),r.length>0||(eF.forEach(t=>{delete e[t]}),delete e._chartjs)}function ez(e){let t=new Set(e);return t.size===e.length?e:Array.from(t)}let eU="undefined"==typeof window?function(e){return e()}:window.requestAnimationFrame;function eB(e,t){let n=[],r=!1;return function(...i){n=i,r||(r=!0,eU.call(window,()=>{r=!1,e.apply(t,n)}))}}function eW(e,t){let n;return function(...r){return t?(clearTimeout(n),n=setTimeout(e,t,r)):e.apply(this,r),t}}let eH=e=>"start"===e?"left":"end"===e?"right":"center",e$=(e,t,n)=>"start"===e?t:"end"===e?n:(t+n)/2,eq=(e,t,n,r)=>e===(r?"left":"right")?n:"center"===e?(t+n)/2:t;function eG(e,t,n){let r=t.length,i=0,o=r;if(e._sorted){let{iScale:a,vScale:s,_parsed:l}=e,u=e.dataset&&e.dataset.options?e.dataset.options.spanGaps:null,c=a.axis,{min:d,max:f,minDefined:h,maxDefined:p}=a.getUserBounds();if(h){if(i=Math.min(eM(l,c,d).lo,n?r:eM(t,c,a.getPixelForValue(d)).lo),u){let e=l.slice(0,i+1).reverse().findIndex(e=>!D(e[s.axis]));i-=Math.max(0,e)}i=eP(i,0,r-1)}if(p){let e=Math.max(eM(l,a.axis,f,!0).hi+1,n?0:eM(t,c,a.getPixelForValue(f),!0).hi+1);if(u){let t=l.slice(e-1).findIndex(e=>!D(e[s.axis]));e+=Math.max(0,t)}o=eP(e,i,r)-i}else o=r-i}return{start:i,count:o}}function eK(e){let{xScale:t,yScale:n,_scaleRanges:r}=e,i={xmin:t.min,xmax:t.max,ymin:n.min,ymax:n.max};if(!r)return e._scaleRanges=i,!0;let o=r.xmin!==t.min||r.xmax!==t.max||r.ymin!==n.min||r.ymax!==n.max;return Object.assign(r,i),o}let eZ=e=>0===e||1===e,eY=(e,t,n)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-t)*es/n)),eX=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*es/n)+1,eQ={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>-Math.cos(e*ed)+1,easeOutSine:e=>Math.sin(e*ed),easeInOutSine:e=>-.5*(Math.cos(ea*e)-1),easeInExpo:e=>0===e?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>1===e?1:-Math.pow(2,-10*e)+1,easeInOutExpo:e=>eZ(e)?e:e<.5?.5*Math.pow(2,10*(2*e-1)):.5*(-Math.pow(2,-10*(2*e-1))+2),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>eZ(e)?e:eY(e,.075,.3),easeOutElastic:e=>eZ(e)?e:eX(e,.075,.3),easeInOutElastic:e=>eZ(e)?e:e<.5?.5*eY(2*e,.1125,.45):.5+.5*eX(2*e-1,.1125,.45),easeInBack:e=>e*e*(2.70158*e-1.70158),easeOutBack:e=>(e-=1)*e*(2.70158*e+1.70158)+1,easeInOutBack(e){let t=1.70158;return(e/=.5)<1?e*e*(((t*=1.525)+1)*e-t)*.5:.5*((e-=2)*e*(((t*=1.525)+1)*e+t)+2)},easeInBounce:e=>1-eQ.easeOutBounce(1-e),easeOutBounce:e=>e<.36363636363636365?7.5625*e*e:e<.7272727272727273?7.5625*(e-=.5454545454545454)*e+.75:e<.9090909090909091?7.5625*(e-=.8181818181818182)*e+.9375:7.5625*(e-=.9545454545454546)*e+.984375,easeInOutBounce:e=>e<.5?.5*eQ.easeInBounce(2*e):.5*eQ.easeOutBounce(2*e-1)+.5};function eJ(e){if(e&&"object"==typeof e){let t=e.toString();return"[object CanvasPattern]"===t||"[object CanvasGradient]"===t}return!1}function e0(e){return eJ(e)?e:new N(e)}function e1(e){return eJ(e)?e:new N(e).saturate(.5).darken(.1).hexString()}let e2=["x","y","borderWidth","radius","tension"],e5=["color","borderColor","backgroundColor"],e4=new Map;function e3(e,t,n){return(function(e,t){let n=e+JSON.stringify(t=t||{}),r=e4.get(n);return r||(r=new Intl.NumberFormat(e,t),e4.set(n,r)),r})(t,n).format(e)}let e6={values:e=>F(e)?e:""+e,numeric(e,t,n){let r;if(0===e)return"0";let i=this.chart.options.locale,o=e;if(n.length>1){let t;let i=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(i<1e-4||i>1e15)&&(r="scientific"),Math.abs(t=n.length>3?n[2].value-n[1].value:n[1].value-n[0].value)>=1&&e!==Math.floor(e)&&(t=e-Math.floor(e)),o=t}let a=ep(Math.abs(o)),s=isNaN(a)?1:Math.max(Math.min(-1*Math.floor(a),20),0),l={notation:r,minimumFractionDigits:s,maximumFractionDigits:s};return Object.assign(l,this.options.ticks.format),e3(e,i,l)},logarithmic(e,t,n){return 0===e?"0":[1,2,3,5,10,15].includes(n[t].significand||e/Math.pow(10,Math.floor(ep(e))))||t>.8*n.length?e6.numeric.call(this,e,t,n):""}};var e8={formatters:e6};let e7=Object.create(null),e9=Object.create(null);function te(e,t){if(!t)return e;let n=t.split(".");for(let t=0,r=n.length;t<r;++t){let r=n[t];e=e[r]||(e[r]=Object.create(null))}return e}function tt(e,t,n){return"string"==typeof t?Y(te(e,t),n):Y(te(e,""),t)}class tn{constructor(e,t){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=e=>e.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(e,t)=>e1(t.backgroundColor),this.hoverBorderColor=(e,t)=>e1(t.borderColor),this.hoverColor=(e,t)=>e1(t.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(e),this.apply(t)}set(e,t){return tt(this,e,t)}get(e){return te(this,e)}describe(e,t){return tt(e9,e,t)}override(e,t){return tt(e7,e,t)}route(e,t,n,r){let i=te(this,e),o=te(this,n),a="_"+t;Object.defineProperties(i,{[a]:{value:i[t],writable:!0},[t]:{enumerable:!0,get(){let e=this[a],t=o[r];return V(e)?Object.assign({},t,e):U(e,t)},set(e){this[a]=e}}})}apply(e){e.forEach(e=>e(this))}}var tr=new tn({_scriptable:e=>!e.startsWith("on"),_indexable:e=>"events"!==e,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[function(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:e=>"onProgress"!==e&&"onComplete"!==e&&"fn"!==e}),e.set("animations",{colors:{type:"color",properties:e5},numbers:{type:"number",properties:e2}}),e.describe("animations",{_fallback:"animation"}),e.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:e=>0|e}}}})},function(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})},function(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(e,t)=>t.lineWidth,tickColor:(e,t)=>t.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:e8.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:e=>!e.startsWith("before")&&!e.startsWith("after")&&"callback"!==e&&"parser"!==e,_indexable:e=>"borderDash"!==e&&"tickBorderDash"!==e&&"dash"!==e}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:e=>"backdropPadding"!==e&&"callback"!==e,_indexable:e=>"backdropPadding"!==e})}]);function ti(e,t,n,r,i){let o=t[i];return o||(o=t[i]=e.measureText(i).width,n.push(i)),o>r&&(r=o),r}function to(e,t,n,r){let i,o,a,s,l;let u=(r=r||{}).data=r.data||{},c=r.garbageCollect=r.garbageCollect||[];r.font!==t&&(u=r.data={},c=r.garbageCollect=[],r.font=t),e.save(),e.font=t;let d=0,f=n.length;for(i=0;i<f;i++)if(null==(s=n[i])||F(s)){if(F(s))for(o=0,a=s.length;o<a;o++)null==(l=s[o])||F(l)||(d=ti(e,u,c,d,l))}else d=ti(e,u,c,d,s);e.restore();let h=c.length/2;if(h>n.length){for(i=0;i<h;i++)delete u[c[i]];c.splice(0,h)}return d}function ta(e,t,n){let r=e.currentDevicePixelRatio,i=0!==n?Math.max(n/2,.5):0;return Math.round((t-i)*r)/r+i}function ts(e,t){(t||e)&&((t=t||e.getContext("2d")).save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore())}function tl(e,t,n,r){tu(e,t,n,r,null)}function tu(e,t,n,r,i){let o,a,s,l,u,c,d,f;let h=t.pointStyle,p=t.rotation,g=t.radius,v=(p||0)*ec;if(h&&"object"==typeof h&&("[object HTMLImageElement]"===(o=h.toString())||"[object HTMLCanvasElement]"===o)){e.save(),e.translate(n,r),e.rotate(v),e.drawImage(h,-h.width/2,-h.height/2,h.width,h.height),e.restore();return}if(!isNaN(g)&&!(g<=0)){switch(e.beginPath(),h){default:i?e.ellipse(n,r,i/2,g,0,0,es):e.arc(n,r,g,0,es),e.closePath();break;case"triangle":c=i?i/2:g,e.moveTo(n+Math.sin(v)*c,r-Math.cos(v)*g),v+=eh,e.lineTo(n+Math.sin(v)*c,r-Math.cos(v)*g),v+=eh,e.lineTo(n+Math.sin(v)*c,r-Math.cos(v)*g),e.closePath();break;case"rectRounded":u=.516*g,a=Math.cos(v+ef)*(l=g-u),d=Math.cos(v+ef)*(i?i/2-u:l),s=Math.sin(v+ef)*l,f=Math.sin(v+ef)*(i?i/2-u:l),e.arc(n-d,r-s,u,v-ea,v-ed),e.arc(n+f,r-a,u,v-ed,v),e.arc(n+d,r+s,u,v,v+ed),e.arc(n-f,r+a,u,v+ed,v+ea),e.closePath();break;case"rect":if(!p){l=Math.SQRT1_2*g,c=i?i/2:l,e.rect(n-c,r-l,2*c,2*l);break}v+=ef;case"rectRot":d=Math.cos(v)*(i?i/2:g),a=Math.cos(v)*g,s=Math.sin(v)*g,f=Math.sin(v)*(i?i/2:g),e.moveTo(n-d,r-s),e.lineTo(n+f,r-a),e.lineTo(n+d,r+s),e.lineTo(n-f,r+a),e.closePath();break;case"crossRot":v+=ef;case"cross":d=Math.cos(v)*(i?i/2:g),a=Math.cos(v)*g,s=Math.sin(v)*g,f=Math.sin(v)*(i?i/2:g),e.moveTo(n-d,r-s),e.lineTo(n+d,r+s),e.moveTo(n+f,r-a),e.lineTo(n-f,r+a);break;case"star":d=Math.cos(v)*(i?i/2:g),a=Math.cos(v)*g,s=Math.sin(v)*g,f=Math.sin(v)*(i?i/2:g),e.moveTo(n-d,r-s),e.lineTo(n+d,r+s),e.moveTo(n+f,r-a),e.lineTo(n-f,r+a),v+=ef,d=Math.cos(v)*(i?i/2:g),a=Math.cos(v)*g,s=Math.sin(v)*g,f=Math.sin(v)*(i?i/2:g),e.moveTo(n-d,r-s),e.lineTo(n+d,r+s),e.moveTo(n+f,r-a),e.lineTo(n-f,r+a);break;case"line":a=i?i/2:Math.cos(v)*g,s=Math.sin(v)*g,e.moveTo(n-a,r-s),e.lineTo(n+a,r+s);break;case"dash":e.moveTo(n,r),e.lineTo(n+Math.cos(v)*(i?i/2:g),r+Math.sin(v)*g);break;case!1:e.closePath()}e.fill(),t.borderWidth>0&&e.stroke()}}function tc(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.x<t.right+n&&e.y>t.top-n&&e.y<t.bottom+n}function td(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()}function tf(e){e.restore()}function th(e,t,n,r,i){if(!t)return e.lineTo(n.x,n.y);if("middle"===i){let r=(t.x+n.x)/2;e.lineTo(r,t.y),e.lineTo(r,n.y)}else"after"===i!=!!r?e.lineTo(t.x,n.y):e.lineTo(n.x,t.y);e.lineTo(n.x,n.y)}function tp(e,t,n,r){if(!t)return e.lineTo(n.x,n.y);e.bezierCurveTo(r?t.cp1x:t.cp2x,r?t.cp1y:t.cp2y,r?n.cp2x:n.cp1x,r?n.cp2y:n.cp1y,n.x,n.y)}function tg(e,t,n,r,i,o={}){let a,s;let l=F(t)?t:[t],u=o.strokeWidth>0&&""!==o.strokeColor;for(e.save(),e.font=i.string,o.translation&&e.translate(o.translation[0],o.translation[1]),D(o.rotation)||e.rotate(o.rotation),o.color&&(e.fillStyle=o.color),o.textAlign&&(e.textAlign=o.textAlign),o.textBaseline&&(e.textBaseline=o.textBaseline),a=0;a<l.length;++a)s=l[a],o.backdrop&&function(e,t){let n=e.fillStyle;e.fillStyle=t.color,e.fillRect(t.left,t.top,t.width,t.height),e.fillStyle=n}(e,o.backdrop),u&&(o.strokeColor&&(e.strokeStyle=o.strokeColor),D(o.strokeWidth)||(e.lineWidth=o.strokeWidth),e.strokeText(s,n,r,o.maxWidth)),e.fillText(s,n,r,o.maxWidth),function(e,t,n,r,i){if(i.strikethrough||i.underline){let o=e.measureText(r),a=t-o.actualBoundingBoxLeft,s=t+o.actualBoundingBoxRight,l=n-o.actualBoundingBoxAscent,u=n+o.actualBoundingBoxDescent,c=i.strikethrough?(l+u)/2:u;e.strokeStyle=e.fillStyle,e.beginPath(),e.lineWidth=i.decorationWidth||2,e.moveTo(a,c),e.lineTo(s,c),e.stroke()}}(e,n,r,s,o),r+=Number(i.lineHeight);e.restore()}function tv(e,t){let{x:n,y:r,w:i,h:o,radius:a}=t;e.arc(n+a.topLeft,r+a.topLeft,a.topLeft,1.5*ea,ea,!0),e.lineTo(n,r+o-a.bottomLeft),e.arc(n+a.bottomLeft,r+o-a.bottomLeft,a.bottomLeft,ea,ed,!0),e.lineTo(n+i-a.bottomRight,r+o),e.arc(n+i-a.bottomRight,r+o-a.bottomRight,a.bottomRight,ed,0,!0),e.lineTo(n+i,r+a.topRight),e.arc(n+i-a.topRight,r+a.topRight,a.topRight,0,-ed,!0),e.lineTo(n+a.topLeft,r)}let tm=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,tb=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/,ty=e=>+e||0;function tx(e,t){let n={},r=V(t),i=r?Object.keys(t):t,o=V(e)?r?n=>U(e[n],e[t[n]]):t=>e[t]:()=>e;for(let e of i)n[e]=ty(o(e));return n}function tw(e){return tx(e,{top:"y",right:"x",bottom:"y",left:"x"})}function tE(e){return tx(e,["topLeft","topRight","bottomLeft","bottomRight"])}function tS(e){let t=tw(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function tk(e,t){e=e||{},t=t||tr.font;let n=U(e.size,t.size);"string"==typeof n&&(n=parseInt(n,10));let r=U(e.style,t.style);r&&!(""+r).match(tb)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);let i={family:U(e.family,t.family),lineHeight:function(e,t){let n=(""+e).match(tm);if(!n||"normal"===n[1])return 1.2*t;switch(e=+n[2],n[3]){case"px":return e;case"%":e/=100}return t*e}(U(e.lineHeight,t.lineHeight),n),size:n,style:r,weight:U(e.weight,t.weight),string:""};return i.string=!i||D(i.size)||D(i.family)?null:(i.style?i.style+" ":"")+(i.weight?i.weight+" ":"")+i.size+"px "+i.family,i}function tO(e,t,n,r){let i,o,a,s=!0;for(i=0,o=e.length;i<o;++i)if(void 0!==(a=e[i])&&(void 0!==t&&"function"==typeof a&&(a=a(t),s=!1),void 0!==n&&F(a)&&(a=a[n%a.length],s=!1),void 0!==a))return r&&!s&&(r.cacheable=!1),a}function tC(e,t,n){let{min:r,max:i}=e,o=W(t,(i-r)/2),a=(e,t)=>n&&0===e?0:e+t;return{min:a(r,-Math.abs(o)),max:a(i,o)}}function tI(e,t){return Object.assign(Object.create(e),t)}function t_(e,t=[""],n,r,i=()=>e[0]){let o=n||e;return void 0===r&&(r=tD("_fallback",e)),new Proxy({[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:o,_fallback:r,_getTarget:i,override:n=>t_([n,...e],t,o,r)},{deleteProperty:(t,n)=>(delete t[n],delete t._keys,delete e[0][n],!0),get:(n,r)=>tA(n,r,()=>(function(e,t,n,r){let i;for(let o of t)if(void 0!==(i=tD(tP(o,e),n)))return tR(e,i)?tM(n,r,e,i):i})(r,t,e,n)),getOwnPropertyDescriptor:(e,t)=>Reflect.getOwnPropertyDescriptor(e._scopes[0],t),getPrototypeOf:()=>Reflect.getPrototypeOf(e[0]),has:(e,t)=>tF(e).includes(t),ownKeys:e=>tF(e),set(e,t,n){let r=e._storage||(e._storage=i());return e[t]=r[t]=n,delete e._keys,!0}})}function tT(e,t={scriptable:!0,indexable:!0}){let{_scriptable:n=t.scriptable,_indexable:r=t.indexable,_allKeys:i=t.allKeys}=e;return{allKeys:i,scriptable:n,indexable:r,isScriptable:er(n)?n:()=>n,isIndexable:er(r)?r:()=>r}}let tP=(e,t)=>e?e+et(t):t,tR=(e,t)=>V(t)&&"adapters"!==e&&(null===Object.getPrototypeOf(t)||t.constructor===Object);function tA(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t)||"constructor"===t)return e[t];let r=n();return e[t]=r,r}let tN=(e,t)=>!0===e?t:"string"==typeof e?ee(t,e):void 0;function tM(e,t,n,r){var i;let o=t._rootScopes,a=er(i=t._fallback)?i(n,r):i,s=[...e,...o],l=new Set;l.add(r);let u=tL(l,s,n,a||n,r);return null!==u&&(void 0===a||a===n||null!==(u=tL(l,s,a,u,r)))&&t_(Array.from(l),[""],o,a,()=>(function(e,t,n){let r=e._getTarget();t in r||(r[t]={});let i=r[t];return F(i)&&V(n)?n:i||{}})(t,n,r))}function tL(e,t,n,r,i){for(;n;)n=function(e,t,n,r,i){for(let a of t){let t=tN(n,a);if(t){var o;e.add(t);let a=er(o=t._fallback)?o(n,i):o;if(void 0!==a&&a!==n&&a!==r)return a}else if(!1===t&&void 0!==r&&n!==r)return null}return!1}(e,t,n,r,i);return n}function tD(e,t){for(let n of t){if(!n)continue;let t=n[e];if(void 0!==t)return t}}function tF(e){let t=e._keys;return t||(t=e._keys=function(e){let t=new Set;for(let n of e)for(let e of Object.keys(n).filter(e=>!e.startsWith("_")))t.add(e);return Array.from(t)}(e._scopes)),t}function tV(e,t,n,r){let i,o,a;let{iScale:s}=e,{key:l="r"}=this._parsing,u=Array(r);for(i=0;i<r;++i)a=t[o=i+n],u[i]={r:s.parse(ee(a,l),o)};return u}let tj=Number.EPSILON||1e-14,tz=(e,t)=>t<e.length&&!e[t].skip&&e[t],tU=e=>"x"===e?"y":"x";function tB(e,t,n){return Math.max(Math.min(e,n),t)}function tW(e,t,n,r,i){let o,a,s,l;if(t.spanGaps&&(e=e.filter(e=>!e.skip)),"monotone"===t.cubicInterpolationMode)!function(e,t="x"){let n,r,i;let o=tU(t),a=e.length,s=Array(a).fill(0),l=Array(a),u=tz(e,0);for(n=0;n<a;++n)if(r=i,i=u,u=tz(e,n+1),i){if(u){let e=u[t]-i[t];s[n]=0!==e?(u[o]-i[o])/e:0}l[n]=r?u?eg(s[n-1])!==eg(s[n])?0:(s[n-1]+s[n])/2:s[n-1]:s[n]}!function(e,t,n){let r,i,o,a,s;let l=e.length,u=tz(e,0);for(let c=0;c<l-1;++c)if(s=u,u=tz(e,c+1),s&&u){if(ev(t[c],0,tj)){n[c]=n[c+1]=0;continue}(a=Math.pow(r=n[c]/t[c],2)+Math.pow(i=n[c+1]/t[c],2))<=9||(o=3/Math.sqrt(a),n[c]=r*o*t[c],n[c+1]=i*o*t[c])}}(e,s,l),function(e,t,n="x"){let r,i,o;let a=tU(n),s=e.length,l=tz(e,0);for(let u=0;u<s;++u){if(i=o,o=l,l=tz(e,u+1),!o)continue;let s=o[n],c=o[a];i&&(r=(s-i[n])/3,o[`cp1${n}`]=s-r,o[`cp1${a}`]=c-r*t[u]),l&&(r=(l[n]-s)/3,o[`cp2${n}`]=s+r,o[`cp2${a}`]=c+r*t[u])}}(e,l,t)}(e,i);else{let n=r?e[e.length-1]:e[0];for(o=0,a=e.length;o<a;++o)l=function(e,t,n,r){let i=e.skip?t:e,o=n.skip?t:n,a=eC(t,i),s=eC(o,t),l=a/(a+s),u=s/(a+s);l=isNaN(l)?0:l,u=isNaN(u)?0:u;let c=r*l,d=r*u;return{previous:{x:t.x-c*(o.x-i.x),y:t.y-c*(o.y-i.y)},next:{x:t.x+d*(o.x-i.x),y:t.y+d*(o.y-i.y)}}}(n,s=e[o],e[Math.min(o+1,a-(r?0:1))%a],t.tension),s.cp1x=l.previous.x,s.cp1y=l.previous.y,s.cp2x=l.next.x,s.cp2y=l.next.y,n=s}t.capBezierPoints&&function(e,t){let n,r,i,o,a;let s=tc(e[0],t);for(n=0,r=e.length;n<r;++n)a=o,o=s,s=n<r-1&&tc(e[n+1],t),o&&(i=e[n],a&&(i.cp1x=tB(i.cp1x,t.left,t.right),i.cp1y=tB(i.cp1y,t.top,t.bottom)),s&&(i.cp2x=tB(i.cp2x,t.left,t.right),i.cp2y=tB(i.cp2y,t.top,t.bottom)))}(e,n)}function tH(){return"undefined"!=typeof window&&"undefined"!=typeof document}function t$(e){let t=e.parentNode;return t&&"[object ShadowRoot]"===t.toString()&&(t=t.host),t}function tq(e,t,n){let r;return"string"==typeof e?(r=parseInt(e,10),-1!==e.indexOf("%")&&(r=r/100*t.parentNode[n])):r=e,r}let tG=e=>e.ownerDocument.defaultView.getComputedStyle(e,null),tK=["top","right","bottom","left"];function tZ(e,t,n){let r={};n=n?"-"+n:"";for(let i=0;i<4;i++){let o=tK[i];r[o]=parseFloat(e[t+"-"+o+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}let tY=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function tX(e,t){if("native"in e)return e;let{canvas:n,currentDevicePixelRatio:r}=t,i=tG(n),o="border-box"===i.boxSizing,a=tZ(i,"padding"),s=tZ(i,"border","width"),{x:l,y:u,box:c}=function(e,t){let n,r;let i=e.touches,o=i&&i.length?i[0]:e,{offsetX:a,offsetY:s}=o,l=!1;if(tY(a,s,e.target))n=a,r=s;else{let e=t.getBoundingClientRect();n=o.clientX-e.left,r=o.clientY-e.top,l=!0}return{x:n,y:r,box:l}}(e,n),d=a.left+(c&&s.left),f=a.top+(c&&s.top),{width:h,height:p}=t;return o&&(h-=a.width+s.width,p-=a.height+s.height),{x:Math.round((l-d)/h*n.width/r),y:Math.round((u-f)/p*n.height/r)}}let tQ=e=>Math.round(10*e)/10;function tJ(e,t,n,r){let i=tG(e),o=tZ(i,"margin"),a=tq(i.maxWidth,e,"clientWidth")||eu,s=tq(i.maxHeight,e,"clientHeight")||eu,l=function(e,t,n){let r,i;if(void 0===t||void 0===n){let o=e&&t$(e);if(o){let e=o.getBoundingClientRect(),a=tG(o),s=tZ(a,"border","width"),l=tZ(a,"padding");t=e.width-l.width-s.width,n=e.height-l.height-s.height,r=tq(a.maxWidth,o,"clientWidth"),i=tq(a.maxHeight,o,"clientHeight")}else t=e.clientWidth,n=e.clientHeight}return{width:t,height:n,maxWidth:r||eu,maxHeight:i||eu}}(e,t,n),{width:u,height:c}=l;if("content-box"===i.boxSizing){let e=tZ(i,"border","width"),t=tZ(i,"padding");u-=t.width+e.width,c-=t.height+e.height}return u=Math.max(0,u-o.width),c=Math.max(0,r?u/r:c-o.height),u=tQ(Math.min(u,a,l.maxWidth)),c=tQ(Math.min(c,s,l.maxHeight)),u&&!c&&(c=tQ(u/2)),(void 0!==t||void 0!==n)&&r&&l.height&&c>l.height&&(u=tQ(Math.floor((c=l.height)*r))),{width:u,height:c}}function t0(e,t,n){let r=t||1,i=Math.floor(e.height*r),o=Math.floor(e.width*r);e.height=Math.floor(e.height),e.width=Math.floor(e.width);let a=e.canvas;return a.style&&(n||!a.style.height&&!a.style.width)&&(a.style.height=`${e.height}px`,a.style.width=`${e.width}px`),(e.currentDevicePixelRatio!==r||a.height!==i||a.width!==o)&&(e.currentDevicePixelRatio=r,a.height=i,a.width=o,e.ctx.setTransform(r,0,0,r,0,0),!0)}let t1=function(){let e=!1;try{let t={get passive(){return e=!0,!1}};tH()&&(window.addEventListener("test",null,t),window.removeEventListener("test",null,t))}catch(e){}return e}();function t2(e,t){let n=tG(e).getPropertyValue(t),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function t5(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function t4(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:"middle"===r?n<.5?e.y:t.y:"after"===r?n<1?e.y:t.y:n>0?t.y:e.y}}function t3(e,t,n,r){let i={x:e.cp2x,y:e.cp2y},o={x:t.cp1x,y:t.cp1y},a=t5(e,i,n),s=t5(i,o,n),l=t5(o,t,n),u=t5(a,s,n),c=t5(s,l,n);return t5(u,c,n)}function t6(e,t,n){var r;return e?(r=n,{x:e=>t+t+r-e,setWidth(e){r=e},textAlign:e=>"center"===e?e:"right"===e?"left":"right",xPlus:(e,t)=>e-t,leftForLtr:(e,t)=>e-t}):{x:e=>e,setWidth(e){},textAlign:e=>e,xPlus:(e,t)=>e+t,leftForLtr:(e,t)=>e}}function t8(e,t){let n,r;("ltr"===t||"rtl"===t)&&(r=[(n=e.canvas.style).getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=r)}function t7(e,t){void 0!==t&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function t9(e){return"angle"===e?{between:eT,compare:eI,normalize:e_}:{between:eA,compare:(e,t)=>e-t,normalize:e=>e}}function ne({start:e,end:t,count:n,loop:r,style:i}){return{start:e%n,end:t%n,loop:r&&(t-e+1)%n==0,style:i}}function nt(e,t,n){let r,i,o;if(!n)return[e];let{property:a,start:s,end:l}=n,u=t.length,{compare:c,between:d,normalize:f}=t9(a),{start:h,end:p,loop:g,style:v}=function(e,t,n){let r;let{property:i,start:o,end:a}=n,{between:s,normalize:l}=t9(i),u=t.length,{start:c,end:d,loop:f}=e;if(f){for(c+=u,d+=u,r=0;r<u&&s(l(t[c%u][i]),o,a);++r)c--,d--;c%=u,d%=u}return d<c&&(d+=u),{start:c,end:d,loop:f,style:e.style}}(e,t,n),m=[],b=!1,y=null,x=()=>d(s,o,r)&&0!==c(s,o),w=()=>0===c(l,r)||d(l,o,r),E=()=>b||x(),S=()=>!b||w();for(let e=h,n=h;e<=p;++e)(i=t[e%u]).skip||(r=f(i[a]))===o||(b=d(r,s,l),null===y&&E()&&(y=0===c(r,s)?e:n),null!==y&&S()&&(m.push(ne({start:y,end:e,loop:g,count:u,style:v})),y=null),n=e,o=r);return null!==y&&m.push(ne({start:y,end:p,loop:g,count:u,style:v})),m}function nn(e,t){let n=[],r=e.segments;for(let i=0;i<r.length;i++){let o=nt(r[i],e.points,t);o.length&&n.push(...o)}return n}function nr(e,t){let n=e.points,r=e.options.spanGaps,i=n.length;if(!i)return[];let o=!!e._loop,{start:a,end:s}=function(e,t,n,r){let i=0,o=t-1;if(n&&!r)for(;i<t&&!e[i].skip;)i++;for(;i<t&&e[i].skip;)i++;for(i%=t,n&&(o+=i);o>i&&e[o%t].skip;)o--;return{start:i,end:o%=t}}(n,i,o,r);if(!0===r)return ni(e,[{start:a,end:s,loop:o}],n,t);let l=s<a?s+i:s,u=!!e._fullLoop&&0===a&&s===i-1;return ni(e,function(e,t,n,r){let i;let o=e.length,a=[],s=t,l=e[t];for(i=t+1;i<=n;++i){let n=e[i%o];n.skip||n.stop?l.skip||(r=!1,a.push({start:t%o,end:(i-1)%o,loop:r}),t=s=n.stop?i:null):(s=i,l.skip&&(t=i)),l=n}return null!==s&&a.push({start:t%o,end:s%o,loop:r}),a}(n,a,l,u),n,t)}function ni(e,t,n,r){return r&&r.setContext&&n?function(e,t,n,r){let i=e._chart.getContext(),o=no(e.options),{_datasetIndex:a,options:{spanGaps:s}}=e,l=n.length,u=[],c=o,d=t[0].start,f=d;function h(e,t,r,i){let o=s?-1:1;if(e!==t){for(e+=l;n[e%l].skip;)e-=o;for(;n[t%l].skip;)t+=o;e%l!=t%l&&(u.push({start:e%l,end:t%l,loop:r,style:i}),c=i,d=t%l)}}for(let e of t){let t;let o=n[(d=s?d:e.start)%l];for(f=d+1;f<=e.end;f++){let s=n[f%l];(function(e,t){if(!t)return!1;let n=[],r=function(e,t){return eJ(t)?(n.includes(t)||n.push(t),n.indexOf(t)):t};return JSON.stringify(e,r)!==JSON.stringify(t,r)})(t=no(r.setContext(tI(i,{type:"segment",p0:o,p1:s,p0DataIndex:(f-1)%l,p1DataIndex:f%l,datasetIndex:a}))),c)&&h(d,f-1,e.loop,c),o=s,c=t}d<f-1&&h(d,f-1,e.loop,c)}return u}(e,t,n,r):t}function no(e){return{backgroundColor:e.backgroundColor,borderCapStyle:e.borderCapStyle,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderJoinStyle:e.borderJoinStyle,borderWidth:e.borderWidth,borderColor:e.borderColor}}function na(e,t,n){return e.options.clip?e[n]:t[n]}function ns(e,t){let n=t._clip;if(n.disabled)return!1;let r=function(e,t){let{xScale:n,yScale:r}=e;return n&&r?{left:na(n,t,"left"),right:na(n,t,"right"),top:na(r,t,"top"),bottom:na(r,t,"bottom")}:t}(t,e.chartArea);return{left:!1===n.left?0:r.left-(!0===n.left?0:n.left),right:!1===n.right?e.width:r.right+(!0===n.right?0:n.right),top:!1===n.top?0:r.top-(!0===n.top?0:n.top),bottom:!1===n.bottom?e.height:r.bottom+(!0===n.bottom?0:n.bottom)}}},25092:function(e,t,n){"use strict";n.d(t,{Z:function(){return function e(t){if("string"==typeof t||"number"==typeof t)return""+t;let n="";if(Array.isArray(t))for(let r=0,i;r<t.length;r++)""!==(i=e(t[r]))&&(n+=(n&&" ")+i);else for(let e in t)t[e]&&(n+=(n&&" ")+e);return n}}})},40571:function(e,t){"use strict";var n={value:()=>{}};function r(){for(var e,t=0,n=arguments.length,r={};t<n;++t){if(!(e=arguments[t]+"")||e in r||/[\s.]/.test(e))throw Error("illegal type: "+e);r[e]=[]}return new i(r)}function i(e){this._=e}function o(e,t,r){for(var i=0,o=e.length;i<o;++i)if(e[i].name===t){e[i]=n,e=e.slice(0,i).concat(e.slice(i+1));break}return null!=r&&e.push({name:t,value:r}),e}i.prototype=r.prototype={constructor:i,on:function(e,t){var n,r=this._,i=(e+"").trim().split(/^|\s+/).map(function(e){var t="",n=e.indexOf(".");if(n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),e&&!r.hasOwnProperty(e))throw Error("unknown type: "+e);return{type:e,name:t}}),a=-1,s=i.length;if(arguments.length<2){for(;++a<s;)if((n=(e=i[a]).type)&&(n=function(e,t){for(var n,r=0,i=e.length;r<i;++r)if((n=e[r]).name===t)return n.value}(r[n],e.name)))return n;return}if(null!=t&&"function"!=typeof t)throw Error("invalid callback: "+t);for(;++a<s;)if(n=(e=i[a]).type)r[n]=o(r[n],e.name,t);else if(null==t)for(n in r)r[n]=o(r[n],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new i(e)},call:function(e,t){if((n=arguments.length-2)>0)for(var n,r,i=Array(n),o=0;o<n;++o)i[o]=arguments[o+2];if(!this._.hasOwnProperty(e))throw Error("unknown type: "+e);for(r=this._[e],o=0,n=r.length;o<n;++o)r[o].value.apply(t,i)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw Error("unknown type: "+e);for(var r=this._[e],i=0,o=r.length;i<o;++i)r[i].value.apply(t,n)}},t.Z=r},1329:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var r=n(40571),i=n(74452),o=n(31147),a=n(64099),s=n(78868),l=e=>()=>e;function u(e,{sourceEvent:t,subject:n,target:r,identifier:i,active:o,x:a,y:s,dx:l,dy:u,dispatch:c}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},identifier:{value:i,enumerable:!0,configurable:!0},active:{value:o,enumerable:!0,configurable:!0},x:{value:a,enumerable:!0,configurable:!0},y:{value:s,enumerable:!0,configurable:!0},dx:{value:l,enumerable:!0,configurable:!0},dy:{value:u,enumerable:!0,configurable:!0},_:{value:c}})}function c(e){return!e.ctrlKey&&!e.button}function d(){return this.parentNode}function f(e,t){return null==t?{x:e.x,y:e.y}:t}function h(){return navigator.maxTouchPoints||"ontouchstart"in this}function p(){var e,t,n,p,g=c,v=d,m=f,b=h,y={},x=(0,r.Z)("start","drag","end"),w=0,E=0;function S(e){e.on("mousedown.drag",k).filter(b).on("touchstart.drag",I).on("touchmove.drag",_,s.Q7).on("touchend.drag touchcancel.drag",T).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function k(r,o){if(!p&&g.call(this,r,o)){var l=P(this,v.call(this,r,o),r,o,"mouse");l&&((0,i.Z)(r.view).on("mousemove.drag",O,s.Dd).on("mouseup.drag",C,s.Dd),(0,a.Z)(r.view),(0,s.rG)(r),n=!1,e=r.clientX,t=r.clientY,l("start",r))}}function O(r){if((0,s.ZP)(r),!n){var i=r.clientX-e,o=r.clientY-t;n=i*i+o*o>E}y.mouse("drag",r)}function C(e){(0,i.Z)(e.view).on("mousemove.drag mouseup.drag",null),(0,a.D)(e.view,n),(0,s.ZP)(e),y.mouse("end",e)}function I(e,t){if(g.call(this,e,t)){var n,r,i=e.changedTouches,o=v.call(this,e,t),a=i.length;for(n=0;n<a;++n)(r=P(this,o,e,t,i[n].identifier,i[n]))&&((0,s.rG)(e),r("start",e,i[n]))}}function _(e){var t,n,r=e.changedTouches,i=r.length;for(t=0;t<i;++t)(n=y[r[t].identifier])&&((0,s.ZP)(e),n("drag",e,r[t]))}function T(e){var t,n,r=e.changedTouches,i=r.length;for(p&&clearTimeout(p),p=setTimeout(function(){p=null},500),t=0;t<i;++t)(n=y[r[t].identifier])&&((0,s.rG)(e),n("end",e,r[t]))}function P(e,t,n,r,i,a){var s,l,c,d=x.copy(),f=(0,o.Z)(a||n,t);if(null!=(c=m.call(e,new u("beforestart",{sourceEvent:n,target:S,identifier:i,active:w,x:f[0],y:f[1],dx:0,dy:0,dispatch:d}),r)))return s=c.x-f[0]||0,l=c.y-f[1]||0,function n(a,h,p){var g,v=f;switch(a){case"start":y[i]=n,g=w++;break;case"end":delete y[i],--w;case"drag":f=(0,o.Z)(p||h,t),g=w}d.call(a,e,new u(a,{sourceEvent:h,subject:c,target:S,identifier:i,active:g,x:f[0]+s,y:f[1]+l,dx:f[0]-v[0],dy:f[1]-v[1],dispatch:d}),r)}}return S.filter=function(e){return arguments.length?(g="function"==typeof e?e:l(!!e),S):g},S.container=function(e){return arguments.length?(v="function"==typeof e?e:l(e),S):v},S.subject=function(e){return arguments.length?(m="function"==typeof e?e:l(e),S):m},S.touchable=function(e){return arguments.length?(b="function"==typeof e?e:l(!!e),S):b},S.on=function(){var e=x.on.apply(x,arguments);return e===x?S:e},S.clickDistance=function(e){return arguments.length?(E=(e=+e)*e,S):Math.sqrt(E)},S}u.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e}},64099:function(e,t,n){"use strict";n.d(t,{D:function(){return a},Z:function(){return o}});var r=n(74452),i=n(78868);function o(e){var t=e.document.documentElement,n=(0,r.Z)(e).on("dragstart.drag",i.ZP,i.Dd);"onselectstart"in t?n.on("selectstart.drag",i.ZP,i.Dd):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function a(e,t){var n=e.document.documentElement,o=(0,r.Z)(e).on("dragstart.drag",null);t&&(o.on("click.drag",i.ZP,i.Dd),setTimeout(function(){o.on("click.drag",null)},0)),"onselectstart"in n?o.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}},78868:function(e,t,n){"use strict";n.d(t,{Dd:function(){return i},Q7:function(){return r},ZP:function(){return a},rG:function(){return o}});let r={passive:!1},i={capture:!0,passive:!1};function o(e){e.stopImmediatePropagation()}function a(e){e.preventDefault(),e.stopImmediatePropagation()}},47246:function(e,t,n){"use strict";function r(e){return function(){return this.matches(e)}}function i(e){return function(t){return t.matches(e)}}n.d(t,{P:function(){return i},Z:function(){return r}})},9457:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(47193);function i(e){var t=e+="",n=t.indexOf(":");return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),r.Z.hasOwnProperty(t)?{space:r.Z[t],local:e}:e}},47193:function(e,t,n){"use strict";n.d(t,{P:function(){return r}});var r="http://www.w3.org/1999/xhtml";t.Z={svg:"http://www.w3.org/2000/svg",xhtml:r,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}},31147:function(e,t,n){"use strict";function r(e,t){if(e=function(e){let t;for(;t=e.sourceEvent;)e=t;return e}(e),void 0===t&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,[(r=r.matrixTransform(t.getScreenCTM().inverse())).x,r.y]}if(t.getBoundingClientRect){var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}}return[e.pageX,e.pageY]}n.d(t,{Z:function(){return r}})},74452:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(73640);function i(e){return"string"==typeof e?new r.Y1([[document.querySelector(e)]],[document.documentElement]):new r.Y1([[e]],r.Jz)}},73640:function(e,t,n){"use strict";n.d(t,{Y1:function(){return V},ZP:function(){return z},Jz:function(){return F}});var r=n(77796),i=n(46530),o=n(47246),a=Array.prototype.find;function s(){return this.firstElementChild}var l=Array.prototype.filter;function u(){return Array.from(this.children)}function c(e){return Array(e.length)}function d(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}function f(e,t,n,r,i,o){for(var a,s=0,l=t.length,u=o.length;s<u;++s)(a=t[s])?(a.__data__=o[s],r[s]=a):n[s]=new d(e,o[s]);for(;s<l;++s)(a=t[s])&&(i[s]=a)}function h(e,t,n,r,i,o,a){var s,l,u,c=new Map,f=t.length,h=o.length,p=Array(f);for(s=0;s<f;++s)(l=t[s])&&(p[s]=u=a.call(l,l.__data__,s,t)+"",c.has(u)?i[s]=l:c.set(u,l));for(s=0;s<h;++s)u=a.call(e,o[s],s,o)+"",(l=c.get(u))?(r[s]=l,l.__data__=o[s],c.delete(u)):n[s]=new d(e,o[s]);for(s=0;s<f;++s)(l=t[s])&&c.get(p[s])===l&&(i[s]=l)}function p(e){return e.__data__}function g(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}d.prototype={constructor:d,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};var v=n(9457),m=n(28586);function b(e){return e.trim().split(/^|\s+/)}function y(e){return e.classList||new x(e)}function x(e){this._node=e,this._names=b(e.getAttribute("class")||"")}function w(e,t){for(var n=y(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function E(e,t){for(var n=y(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function S(){this.textContent=""}function k(){this.innerHTML=""}function O(){this.nextSibling&&this.parentNode.appendChild(this)}function C(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}x.prototype={add:function(e){0>this._names.indexOf(e)&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};var I=n(47193);function _(e){var t=(0,v.Z)(e);return(t.local?function(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}:function(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===I.P&&t.documentElement.namespaceURI===I.P?t.createElement(e):t.createElementNS(n,e)}})(t)}function T(){return null}function P(){var e=this.parentNode;e&&e.removeChild(this)}function R(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function A(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function N(e){return function(){var t=this.__on;if(t){for(var n,r=0,i=-1,o=t.length;r<o;++r)(n=t[r],e.type&&n.type!==e.type||n.name!==e.name)?t[++i]=n:this.removeEventListener(n.type,n.listener,n.options);++i?t.length=i:delete this.__on}}}function M(e,t,n){return function(){var r,i=this.__on,o=function(e){t.call(this,e,this.__data__)};if(i){for(var a=0,s=i.length;a<s;++a)if((r=i[a]).type===e.type&&r.name===e.name){this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=o,r.options=n),r.value=t;return}}this.addEventListener(e.type,o,n),r={type:e.type,name:e.name,value:t,listener:o,options:n},i?i.push(r):this.__on=[r]}}var L=n(77416);function D(e,t,n){var r=(0,L.Z)(e),i=r.CustomEvent;"function"==typeof i?i=new i(t,n):(i=r.document.createEvent("Event"),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}var F=[null];function V(e,t){this._groups=e,this._parents=t}function j(){return new V([[document.documentElement]],F)}V.prototype=j.prototype={constructor:V,select:function(e){"function"!=typeof e&&(e=(0,r.Z)(e));for(var t=this._groups,n=t.length,i=Array(n),o=0;o<n;++o)for(var a,s,l=t[o],u=l.length,c=i[o]=Array(u),d=0;d<u;++d)(a=l[d])&&(s=e.call(a,a.__data__,d,l))&&("__data__"in a&&(s.__data__=a.__data__),c[d]=s);return new V(i,this._parents)},selectAll:function(e){if("function"==typeof e){var t;t=e,e=function(){var e;return e=t.apply(this,arguments),null==e?[]:Array.isArray(e)?e:Array.from(e)}}else e=(0,i.Z)(e);for(var n=this._groups,r=n.length,o=[],a=[],s=0;s<r;++s)for(var l,u=n[s],c=u.length,d=0;d<c;++d)(l=u[d])&&(o.push(e.call(l,l.__data__,d,u)),a.push(l));return new V(o,a)},selectChild:function(e){var t;return this.select(null==e?s:(t="function"==typeof e?e:(0,o.P)(e),function(){return a.call(this.children,t)}))},selectChildren:function(e){var t;return this.selectAll(null==e?u:(t="function"==typeof e?e:(0,o.P)(e),function(){return l.call(this.children,t)}))},filter:function(e){"function"!=typeof e&&(e=(0,o.Z)(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a,s=t[i],l=s.length,u=r[i]=[],c=0;c<l;++c)(a=s[c])&&e.call(a,a.__data__,c,s)&&u.push(a);return new V(r,this._parents)},data:function(e,t){if(!arguments.length)return Array.from(this,p);var n=t?h:f,r=this._parents,i=this._groups;"function"!=typeof e&&(w=e,e=function(){return w});for(var o=i.length,a=Array(o),s=Array(o),l=Array(o),u=0;u<o;++u){var c=r[u],d=i[u],g=d.length,v="object"==typeof(x=e.call(c,c&&c.__data__,u,r))&&"length"in x?x:Array.from(x),m=v.length,b=s[u]=Array(m),y=a[u]=Array(m);n(c,d,b,y,l[u]=Array(g),v,t);for(var x,w,E,S,k=0,O=0;k<m;++k)if(E=b[k]){for(k>=O&&(O=k+1);!(S=y[O])&&++O<m;);E._next=S||null}}return(a=new V(a,r))._enter=s,a._exit=l,a},enter:function(){return new V(this._enter||this._groups.map(c),this._parents)},exit:function(){return new V(this._exit||this._groups.map(c),this._parents)},join:function(e,t,n){var r=this.enter(),i=this,o=this.exit();return"function"==typeof e?(r=e(r))&&(r=r.selection()):r=r.append(e+""),null!=t&&(i=t(i))&&(i=i.selection()),null==n?o.remove():n(o),r&&i?r.merge(i).order():i},merge:function(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,i=n.length,o=r.length,a=Math.min(i,o),s=Array(i),l=0;l<a;++l)for(var u,c=n[l],d=r[l],f=c.length,h=s[l]=Array(f),p=0;p<f;++p)(u=c[p]||d[p])&&(h[p]=u);for(;l<i;++l)s[l]=n[l];return new V(s,this._parents)},selection:function(){return this},order:function(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r,i=e[t],o=i.length-1,a=i[o];--o>=0;)(r=i[o])&&(a&&4^r.compareDocumentPosition(a)&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=g);for(var n=this._groups,r=n.length,i=Array(r),o=0;o<r;++o){for(var a,s=n[o],l=s.length,u=i[o]=Array(l),c=0;c<l;++c)(a=s[c])&&(u[c]=a);u.sort(t)}return new V(i,this._parents).order()},call:function(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,o=r.length;i<o;++i){var a=r[i];if(a)return a}return null},size:function(){let e=0;for(let t of this)++e;return e},empty:function(){return!this.node()},each:function(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i,o=t[n],a=0,s=o.length;a<s;++a)(i=o[a])&&e.call(i,i.__data__,a,o);return this},attr:function(e,t){var n=(0,v.Z)(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==t?n.local?function(e){return function(){this.removeAttributeNS(e.space,e.local)}}:function(e){return function(){this.removeAttribute(e)}}:"function"==typeof t?n.local?function(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}:function(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}}:n.local?function(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}:function(e,t){return function(){this.setAttribute(e,t)}})(n,t))},style:m.Z,property:function(e,t){return arguments.length>1?this.each((null==t?function(e){return function(){delete this[e]}}:"function"==typeof t?function(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}:function(e,t){return function(){this[e]=t}})(e,t)):this.node()[e]},classed:function(e,t){var n=b(e+"");if(arguments.length<2){for(var r=y(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"==typeof t?function(e,t){return function(){(t.apply(this,arguments)?w:E)(this,e)}}:t?function(e){return function(){w(this,e)}}:function(e){return function(){E(this,e)}})(n,t))},text:function(e){return arguments.length?this.each(null==e?S:("function"==typeof e?function(e){return function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}}:function(e){return function(){this.textContent=e}})(e)):this.node().textContent},html:function(e){return arguments.length?this.each(null==e?k:("function"==typeof e?function(e){return function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}}:function(e){return function(){this.innerHTML=e}})(e)):this.node().innerHTML},raise:function(){return this.each(O)},lower:function(){return this.each(C)},append:function(e){var t="function"==typeof e?e:_(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})},insert:function(e,t){var n="function"==typeof e?e:_(e),i=null==t?T:"function"==typeof t?t:(0,r.Z)(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)})},remove:function(){return this.each(P)},clone:function(e){return this.select(e?A:R)},datum:function(e){return arguments.length?this.property("__data__",e):this.node().__data__},on:function(e,t,n){var r,i,o=(e+"").trim().split(/^|\s+/).map(function(e){var t="",n=e.indexOf(".");return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}}),a=o.length;if(arguments.length<2){var s=this.node().__on;if(s){for(var l,u=0,c=s.length;u<c;++u)for(r=0,l=s[u];r<a;++r)if((i=o[r]).type===l.type&&i.name===l.name)return l.value}return}for(r=0,s=t?M:N;r<a;++r)this.each(s(o[r],t,n));return this},dispatch:function(e,t){return this.each(("function"==typeof t?function(e,t){return function(){return D(this,e,t.apply(this,arguments))}}:function(e,t){return function(){return D(this,e,t)}})(e,t))},[Symbol.iterator]:function*(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r,i=e[t],o=0,a=i.length;o<a;++o)(r=i[o])&&(yield r)}};var z=j},28586:function(e,t,n){"use strict";n.d(t,{S:function(){return o},Z:function(){return i}});var r=n(77416);function i(e,t,n){return arguments.length>1?this.each((null==t?function(e){return function(){this.style.removeProperty(e)}}:"function"==typeof t?function(e,t,n){return function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}:function(e,t,n){return function(){this.style.setProperty(e,t,n)}})(e,t,null==n?"":n)):o(this.node(),e)}function o(e,t){return e.style.getPropertyValue(t)||(0,r.Z)(e).getComputedStyle(e,null).getPropertyValue(t)}},77796:function(e,t,n){"use strict";function r(){}function i(e){return null==e?r:function(){return this.querySelector(e)}}n.d(t,{Z:function(){return i}})},46530:function(e,t,n){"use strict";function r(){return[]}function i(e){return null==e?r:function(){return this.querySelectorAll(e)}}n.d(t,{Z:function(){return i}})},77416:function(e,t,n){"use strict";function r(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}n.d(t,{Z:function(){return r}})},53630:function(e,t,n){"use strict";n.d(t,{sP:function(){return eJ},CR:function(){return eH}});var r,i=n(40571),o=n(64099);function a(e){return((e=Math.exp(e))+1/e)/2}var s,l,u=function e(t,n,r){function i(e,i){var o,s,l=e[0],u=e[1],c=e[2],d=i[0],f=i[1],h=i[2],p=d-l,g=f-u,v=p*p+g*g;if(v<1e-12)s=Math.log(h/c)/t,o=function(e){return[l+e*p,u+e*g,c*Math.exp(t*e*s)]};else{var m=Math.sqrt(v),b=(h*h-c*c+r*v)/(2*c*n*m),y=(h*h-c*c-r*v)/(2*h*n*m),x=Math.log(Math.sqrt(b*b+1)-b);s=(Math.log(Math.sqrt(y*y+1)-y)-x)/t,o=function(e){var r,i,o=e*s,d=a(x),f=c/(n*m)*(((r=Math.exp(2*(r=t*o+x)))-1)/(r+1)*d-((i=Math.exp(i=x))-1/i)/2);return[l+f*p,u+f*g,c*d/a(t*o+x)]}}return o.duration=1e3*s*t/Math.SQRT2,o}return i.rho=function(t){var n=Math.max(.001,+t),r=n*n;return e(n,r,r*r)},i}(Math.SQRT2,2,4),c=n(74452),d=n(31147),f=n(73640),h=0,p=0,g=0,v=0,m=0,b=0,y="object"==typeof performance&&performance.now?performance:Date,x="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function w(){return m||(x(E),m=y.now()+b)}function E(){m=0}function S(){this._call=this._time=this._next=null}function k(e,t,n){var r=new S;return r.restart(e,t,n),r}function O(){m=(v=y.now())+b,h=p=0;try{!function(){w(),++h;for(var e,t=s;t;)(e=m-t._time)>=0&&t._call.call(void 0,e),t=t._next;--h}()}finally{h=0,function(){for(var e,t,n=s,r=1/0;n;)n._call?(r>n._time&&(r=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:s=t);l=e,I(r)}(),m=0}}function C(){var e=y.now(),t=e-v;t>1e3&&(b-=t,v=e)}function I(e){!h&&(p&&(p=clearTimeout(p)),e-m>24?(e<1/0&&(p=setTimeout(O,e-y.now()-b)),g&&(g=clearInterval(g))):(g||(v=y.now(),g=setInterval(C,1e3)),h=1,x(O)))}function _(e,t,n){var r=new S;return t=null==t?0:+t,r.restart(n=>{r.stop(),e(n+t)},t,n),r}S.prototype=k.prototype={constructor:S,restart:function(e,t,n){if("function"!=typeof e)throw TypeError("callback is not a function");n=(null==n?w():+n)+(null==t?0:+t),this._next||l===this||(l?l._next=this:s=this,l=this),this._call=e,this._time=n,I()},stop:function(){this._call&&(this._call=null,this._time=1/0,I())}};var T=(0,i.Z)("start","end","cancel","interrupt"),P=[];function R(e,t,n,r,i,o){var a=e.__transition;if(a){if(n in a)return}else e.__transition={};!function(e,t,n){var r,i=e.__transition;function o(l){var u,c,d,f;if(1!==n.state)return s();for(u in i)if((f=i[u]).name===n.name){if(3===f.state)return _(o);4===f.state?(f.state=6,f.timer.stop(),f.on.call("interrupt",e,e.__data__,f.index,f.group),delete i[u]):+u<t&&(f.state=6,f.timer.stop(),f.on.call("cancel",e,e.__data__,f.index,f.group),delete i[u])}if(_(function(){3===n.state&&(n.state=4,n.timer.restart(a,n.delay,n.time),a(l))}),n.state=2,n.on.call("start",e,e.__data__,n.index,n.group),2===n.state){for(u=0,n.state=3,r=Array(d=n.tween.length),c=-1;u<d;++u)(f=n.tween[u].value.call(e,e.__data__,n.index,n.group))&&(r[++c]=f);r.length=c+1}}function a(t){for(var i=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(s),n.state=5,1),o=-1,a=r.length;++o<a;)r[o].call(e,i);5===n.state&&(n.on.call("end",e,e.__data__,n.index,n.group),s())}function s(){for(var r in n.state=6,n.timer.stop(),delete i[t],i)return;delete e.__transition}i[t]=n,n.timer=k(function(e){n.state=1,n.timer.restart(o,n.delay,n.time),n.delay<=e&&o(e-n.delay)},0,n.time)}(e,n,{name:t,index:r,group:i,on:T,tween:P,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:0})}function A(e,t){var n=M(e,t);if(n.state>0)throw Error("too late; already scheduled");return n}function N(e,t){var n=M(e,t);if(n.state>3)throw Error("too late; already running");return n}function M(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw Error("transition not found");return n}function L(e,t){var n,r,i,o=e.__transition,a=!0;if(o){for(i in t=null==t?null:t+"",o){if((n=o[i]).name!==t){a=!1;continue}r=n.state>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?"interrupt":"cancel",e,e.__data__,n.index,n.group),delete o[i]}a&&delete e.__transition}}function D(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var F=180/Math.PI,V={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function j(e,t,n,r,i,o){var a,s,l;return(a=Math.sqrt(e*e+t*t))&&(e/=a,t/=a),(l=e*n+t*r)&&(n-=e*l,r-=t*l),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,l/=s),e*r<t*n&&(e=-e,t=-t,l=-l,a=-a),{translateX:i,translateY:o,rotate:Math.atan2(t,e)*F,skewX:Math.atan(l)*F,scaleX:a,scaleY:s}}function z(e,t,n,r){function i(e){return e.length?e.pop()+" ":""}return function(o,a){var s,l,u,c,d=[],f=[];return o=e(o),a=e(a),!function(e,r,i,o,a,s){if(e!==i||r!==o){var l=a.push("translate(",null,t,null,n);s.push({i:l-4,x:D(e,i)},{i:l-2,x:D(r,o)})}else(i||o)&&a.push("translate("+i+t+o+n)}(o.translateX,o.translateY,a.translateX,a.translateY,d,f),(s=o.rotate)!==(l=a.rotate)?(s-l>180?l+=360:l-s>180&&(s+=360),f.push({i:d.push(i(d)+"rotate(",null,r)-2,x:D(s,l)})):l&&d.push(i(d)+"rotate("+l+r),(u=o.skewX)!==(c=a.skewX)?f.push({i:d.push(i(d)+"skewX(",null,r)-2,x:D(u,c)}):c&&d.push(i(d)+"skewX("+c+r),!function(e,t,n,r,o,a){if(e!==n||t!==r){var s=o.push(i(o)+"scale(",null,",",null,")");a.push({i:s-4,x:D(e,n)},{i:s-2,x:D(t,r)})}else(1!==n||1!==r)&&o.push(i(o)+"scale("+n+","+r+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,d,f),o=a=null,function(e){for(var t,n=-1,r=f.length;++n<r;)d[(t=f[n]).i]=t.x(e);return d.join("")}}}var U=z(function(e){let t=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?V:j(t.a,t.b,t.c,t.d,t.e,t.f)},"px, ","px)","deg)"),B=z(function(e){return null==e?V:(r||(r=document.createElementNS("http://www.w3.org/2000/svg","g")),r.setAttribute("transform",e),e=r.transform.baseVal.consolidate())?j((e=e.matrix).a,e.b,e.c,e.d,e.e,e.f):V},", ",")",")"),W=n(9457);function H(e,t,n){var r=e._id;return e.each(function(){var e=N(this,r);(e.value||(e.value={}))[t]=n.apply(this,arguments)}),function(e){return M(e,r).value[t]}}function $(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function q(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function G(){}var K="\\s*([+-]?\\d+)\\s*",Z="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Y="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",X=/^#([0-9a-f]{3,8})$/,Q=RegExp(`^rgb\\(${K},${K},${K}\\)$`),J=RegExp(`^rgb\\(${Y},${Y},${Y}\\)$`),ee=RegExp(`^rgba\\(${K},${K},${K},${Z}\\)$`),et=RegExp(`^rgba\\(${Y},${Y},${Y},${Z}\\)$`),en=RegExp(`^hsl\\(${Z},${Y},${Y}\\)$`),er=RegExp(`^hsla\\(${Z},${Y},${Y},${Z}\\)$`),ei={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function eo(){return this.rgb().formatHex()}function ea(){return this.rgb().formatRgb()}function es(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=X.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?el(t):3===n?new ed(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?eu(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?eu(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=Q.exec(e))?new ed(t[1],t[2],t[3],1):(t=J.exec(e))?new ed(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=ee.exec(e))?eu(t[1],t[2],t[3],t[4]):(t=et.exec(e))?eu(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=en.exec(e))?em(t[1],t[2]/100,t[3]/100,1):(t=er.exec(e))?em(t[1],t[2]/100,t[3]/100,t[4]):ei.hasOwnProperty(e)?el(ei[e]):"transparent"===e?new ed(NaN,NaN,NaN,0):null}function el(e){return new ed(e>>16&255,e>>8&255,255&e,1)}function eu(e,t,n,r){return r<=0&&(e=t=n=NaN),new ed(e,t,n,r)}function ec(e,t,n,r){var i;return 1==arguments.length?((i=e)instanceof G||(i=es(i)),i)?new ed((i=i.rgb()).r,i.g,i.b,i.opacity):new ed:new ed(e,t,n,null==r?1:r)}function ed(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function ef(){return`#${ev(this.r)}${ev(this.g)}${ev(this.b)}`}function eh(){let e=ep(this.opacity);return`${1===e?"rgb(":"rgba("}${eg(this.r)}, ${eg(this.g)}, ${eg(this.b)}${1===e?")":`, ${e})`}`}function ep(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function eg(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function ev(e){return((e=eg(e))<16?"0":"")+e.toString(16)}function em(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new ey(e,t,n,r)}function eb(e){if(e instanceof ey)return new ey(e.h,e.s,e.l,e.opacity);if(e instanceof G||(e=es(e)),!e)return new ey;if(e instanceof ey)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,l=(o+i)/2;return s?(a=t===o?(n-r)/s+(n<r)*6:n===o?(r-t)/s+2:(t-n)/s+4,s/=l<.5?o+i:2-o-i,a*=60):s=l>0&&l<1?0:a,new ey(a,s,l,e.opacity)}function ey(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function ex(e){return(e=(e||0)%360)<0?e+360:e}function ew(e){return Math.max(0,Math.min(1,e||0))}function eE(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}function eS(e,t,n,r,i){var o=e*e,a=o*e;return((1-3*e+3*o-a)*t+(4-6*o+3*a)*n+(1+3*e+3*o-3*a)*r+a*i)/6}$(G,es,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:eo,formatHex:eo,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return eb(this).formatHsl()},formatRgb:ea,toString:ea}),$(ed,ec,q(G,{brighter(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new ed(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new ed(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new ed(eg(this.r),eg(this.g),eg(this.b),ep(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:ef,formatHex:ef,formatHex8:function(){return`#${ev(this.r)}${ev(this.g)}${ev(this.b)}${ev((isNaN(this.opacity)?1:this.opacity)*255)}`},formatRgb:eh,toString:eh})),$(ey,function(e,t,n,r){return 1==arguments.length?eb(e):new ey(e,t,n,null==r?1:r)},q(G,{brighter(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new ey(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new ey(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new ed(eE(e>=240?e-240:e+120,i,r),eE(e,i,r),eE(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new ey(ex(this.h),ew(this.s),ew(this.l),ep(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(){let e=ep(this.opacity);return`${1===e?"hsl(":"hsla("}${ex(this.h)}, ${100*ew(this.s)}%, ${100*ew(this.l)}%${1===e?")":`, ${e})`}`}}));var ek=e=>()=>e;function eO(e,t){var n=t-e;return n?function(t){return e+t*n}:ek(isNaN(e)?t:e)}var eC=function e(t){var n,r=1==(n=+(n=t))?eO:function(e,t){var r,i,o;return t-e?(r=e,i=t,r=Math.pow(r,o=n),i=Math.pow(i,o)-r,o=1/o,function(e){return Math.pow(r+e*i,o)}):ek(isNaN(e)?t:e)};function i(e,t){var n=r((e=ec(e)).r,(t=ec(t)).r),i=r(e.g,t.g),o=r(e.b,t.b),a=eO(e.opacity,t.opacity);return function(t){return e.r=n(t),e.g=i(t),e.b=o(t),e.opacity=a(t),e+""}}return i.gamma=e,i}(1);function eI(e){return function(t){var n,r,i=t.length,o=Array(i),a=Array(i),s=Array(i);for(n=0;n<i;++n)r=ec(t[n]),o[n]=r.r||0,a[n]=r.g||0,s[n]=r.b||0;return o=e(o),a=e(a),s=e(s),r.opacity=1,function(e){return r.r=o(e),r.g=a(e),r.b=s(e),r+""}}}eI(function(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),i=e[r],o=e[r+1],a=r>0?e[r-1]:2*i-o,s=r<t-1?e[r+2]:2*o-i;return eS((n-r/t)*t,a,i,o,s)}}),eI(function(e){var t=e.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*t),i=e[(r+t-1)%t],o=e[r%t],a=e[(r+1)%t],s=e[(r+2)%t];return eS((n-r/t)*t,i,o,a,s)}});var e_=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,eT=RegExp(e_.source,"g");function eP(e,t){var n;return("number"==typeof t?D:t instanceof es?eC:(n=es(t))?(t=n,eC):function(e,t){var n,r,i,o,a,s=e_.lastIndex=eT.lastIndex=0,l=-1,u=[],c=[];for(e+="",t+="";(i=e_.exec(e))&&(o=eT.exec(t));)(a=o.index)>s&&(a=t.slice(s,a),u[l]?u[l]+=a:u[++l]=a),(i=i[0])===(o=o[0])?u[l]?u[l]+=o:u[++l]=o:(u[++l]=null,c.push({i:l,x:D(i,o)})),s=eT.lastIndex;return s<t.length&&(a=t.slice(s),u[l]?u[l]+=a:u[++l]=a),u.length<2?c[0]?(n=c[0].x,function(e){return n(e)+""}):(r=t,function(){return r}):(t=c.length,function(e){for(var n,r=0;r<t;++r)u[(n=c[r]).i]=n.x(e);return u.join("")})})(e,t)}var eR=n(47246),eA=n(77796),eN=n(46530),eM=f.ZP.prototype.constructor,eL=n(28586);function eD(e){return function(){this.style.removeProperty(e)}}var eF=0;function eV(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}var ej=f.ZP.prototype;eV.prototype=(function(e){return(0,f.ZP)().transition(e)}).prototype={constructor:eV,select:function(e){var t=this._name,n=this._id;"function"!=typeof e&&(e=(0,eA.Z)(e));for(var r=this._groups,i=r.length,o=Array(i),a=0;a<i;++a)for(var s,l,u=r[a],c=u.length,d=o[a]=Array(c),f=0;f<c;++f)(s=u[f])&&(l=e.call(s,s.__data__,f,u))&&("__data__"in s&&(l.__data__=s.__data__),d[f]=l,R(d[f],t,n,f,d,M(s,n)));return new eV(o,this._parents,t,n)},selectAll:function(e){var t=this._name,n=this._id;"function"!=typeof e&&(e=(0,eN.Z)(e));for(var r=this._groups,i=r.length,o=[],a=[],s=0;s<i;++s)for(var l,u=r[s],c=u.length,d=0;d<c;++d)if(l=u[d]){for(var f,h=e.call(l,l.__data__,d,u),p=M(l,n),g=0,v=h.length;g<v;++g)(f=h[g])&&R(f,t,n,g,h,p);o.push(h),a.push(l)}return new eV(o,a,t,n)},selectChild:ej.selectChild,selectChildren:ej.selectChildren,filter:function(e){"function"!=typeof e&&(e=(0,eR.Z)(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var o,a=t[i],s=a.length,l=r[i]=[],u=0;u<s;++u)(o=a[u])&&e.call(o,o.__data__,u,a)&&l.push(o);return new eV(r,this._parents,this._name,this._id)},merge:function(e){if(e._id!==this._id)throw Error();for(var t=this._groups,n=e._groups,r=t.length,i=n.length,o=Math.min(r,i),a=Array(r),s=0;s<o;++s)for(var l,u=t[s],c=n[s],d=u.length,f=a[s]=Array(d),h=0;h<d;++h)(l=u[h]||c[h])&&(f[h]=l);for(;s<r;++s)a[s]=t[s];return new eV(a,this._parents,this._name,this._id)},selection:function(){return new eM(this._groups,this._parents)},transition:function(){for(var e=this._name,t=this._id,n=++eF,r=this._groups,i=r.length,o=0;o<i;++o)for(var a,s=r[o],l=s.length,u=0;u<l;++u)if(a=s[u]){var c=M(a,t);R(a,e,n,u,s,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}return new eV(r,this._parents,e,n)},call:ej.call,nodes:ej.nodes,node:ej.node,size:ej.size,empty:ej.empty,each:ej.each,on:function(e,t){var n,r,i,o=this._id;return arguments.length<2?M(this.node(),o).on.on(e):this.each((i=(e+"").trim().split(/^|\s+/).every(function(e){var t=e.indexOf(".");return t>=0&&(e=e.slice(0,t)),!e||"start"===e})?A:N,function(){var a=i(this,o),s=a.on;s!==n&&(r=(n=s).copy()).on(e,t),a.on=r}))},attr:function(e,t){var n=(0,W.Z)(e),r="transform"===n?B:eP;return this.attrTween(e,"function"==typeof t?(n.local?function(e,t,n){var r,i,o;return function(){var a,s,l=n(this);return null==l?void this.removeAttributeNS(e.space,e.local):(a=this.getAttributeNS(e.space,e.local))===(s=l+"")?null:a===r&&s===i?o:(i=s,o=t(r=a,l))}}:function(e,t,n){var r,i,o;return function(){var a,s,l=n(this);return null==l?void this.removeAttribute(e):(a=this.getAttribute(e))===(s=l+"")?null:a===r&&s===i?o:(i=s,o=t(r=a,l))}})(n,r,H(this,"attr."+e,t)):null==t?(n.local?function(e){return function(){this.removeAttributeNS(e.space,e.local)}}:function(e){return function(){this.removeAttribute(e)}})(n):(n.local?function(e,t,n){var r,i,o=n+"";return function(){var a=this.getAttributeNS(e.space,e.local);return a===o?null:a===r?i:i=t(r=a,n)}}:function(e,t,n){var r,i,o=n+"";return function(){var a=this.getAttribute(e);return a===o?null:a===r?i:i=t(r=a,n)}})(n,r,t))},attrTween:function(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!=typeof t)throw Error();var r=(0,W.Z)(e);return this.tween(n,(r.local?function(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&function(t){this.setAttributeNS(e.space,e.local,i.call(this,t))}),n}return i._value=t,i}:function(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&function(t){this.setAttribute(e,i.call(this,t))}),n}return i._value=t,i})(r,t))},style:function(e,t,n){var r,i,o,a,s,l,u,c,d,f,h,p,g,v,m,b,y,x,w,E,S,k="transform"==(e+="")?U:eP;return null==t?this.styleTween(e,(r=e,function(){var e=(0,eL.S)(this,r),t=(this.style.removeProperty(r),(0,eL.S)(this,r));return e===t?null:e===i&&t===o?a:a=k(i=e,o=t)})).on("end.style."+e,eD(e)):"function"==typeof t?this.styleTween(e,(s=e,l=H(this,"style."+e,t),function(){var e=(0,eL.S)(this,s),t=l(this),n=t+"";return null==t&&(this.style.removeProperty(s),n=t=(0,eL.S)(this,s)),e===n?null:e===u&&n===c?d:(c=n,d=k(u=e,t))})).each((f=this._id,y="end."+(b="style."+(h=e)),function(){var e=N(this,f),t=e.on,n=null==e.value[b]?m||(m=eD(h)):void 0;(t!==p||v!==n)&&(g=(p=t).copy()).on(y,v=n),e.on=g})):this.styleTween(e,(x=e,S=t+"",function(){var e=(0,eL.S)(this,x);return e===S?null:e===w?E:E=k(w=e,t)}),n).on("end.style."+e,null)},styleTween:function(e,t,n){var r="style."+(e+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==t)return this.tween(r,null);if("function"!=typeof t)throw Error();return this.tween(r,function(e,t,n){var r,i;function o(){var o=t.apply(this,arguments);return o!==i&&(r=(i=o)&&function(t){this.style.setProperty(e,o.call(this,t),n)}),r}return o._value=t,o}(e,t,null==n?"":n))},text:function(e){var t,n;return this.tween("text","function"==typeof e?(t=H(this,"text",e),function(){var e=t(this);this.textContent=null==e?"":e}):(n=null==e?"":e+"",function(){this.textContent=n}))},textTween:function(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(null==e)return this.tween(t,null);if("function"!=typeof e)throw Error();return this.tween(t,function(e){var t,n;function r(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&function(e){this.textContent=r.call(this,e)}),t}return r._value=e,r}(e))},remove:function(){var e;return this.on("end.remove",(e=this._id,function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}))},tween:function(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r,i=M(this.node(),n).tween,o=0,a=i.length;o<a;++o)if((r=i[o]).name===e)return r.value;return null}return this.each((null==t?function(e,t){var n,r;return function(){var i=N(this,e),o=i.tween;if(o!==n){r=n=o;for(var a=0,s=r.length;a<s;++a)if(r[a].name===t){(r=r.slice()).splice(a,1);break}}i.tween=r}}:function(e,t,n){var r,i;if("function"!=typeof n)throw Error();return function(){var o=N(this,e),a=o.tween;if(a!==r){i=(r=a).slice();for(var s={name:t,value:n},l=0,u=i.length;l<u;++l)if(i[l].name===t){i[l]=s;break}l===u&&i.push(s)}o.tween=i}})(n,e,t))},delay:function(e){var t=this._id;return arguments.length?this.each(("function"==typeof e?function(e,t){return function(){A(this,e).delay=+t.apply(this,arguments)}}:function(e,t){return t=+t,function(){A(this,e).delay=t}})(t,e)):M(this.node(),t).delay},duration:function(e){var t=this._id;return arguments.length?this.each(("function"==typeof e?function(e,t){return function(){N(this,e).duration=+t.apply(this,arguments)}}:function(e,t){return t=+t,function(){N(this,e).duration=t}})(t,e)):M(this.node(),t).duration},ease:function(e){var t=this._id;return arguments.length?this.each(function(e,t){if("function"!=typeof t)throw Error();return function(){N(this,e).ease=t}}(t,e)):M(this.node(),t).ease},easeVarying:function(e){var t;if("function"!=typeof e)throw Error();return this.each((t=this._id,function(){var n=e.apply(this,arguments);if("function"!=typeof n)throw Error();N(this,t).ease=n}))},end:function(){var e,t,n=this,r=n._id,i=n.size();return new Promise(function(o,a){var s={value:a},l={value:function(){0==--i&&o()}};n.each(function(){var n=N(this,r),i=n.on;i!==e&&((t=(e=i).copy())._.cancel.push(s),t._.interrupt.push(s),t._.end.push(l)),n.on=t}),0===i&&o()})},[Symbol.iterator]:ej[Symbol.iterator]};var ez={time:null,delay:0,duration:250,ease:function(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}};f.ZP.prototype.interrupt=function(e){return this.each(function(){L(this,e)})},f.ZP.prototype.transition=function(e){var t,n;e instanceof eV?(t=e._id,e=e._name):(t=++eF,(n=ez).time=w(),e=null==e?null:e+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var a,s=r[o],l=s.length,u=0;u<l;++u)(a=s[u])&&R(a,e,t,u,s,n||function(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw Error(`transition ${t} not found`);return n}(a,t));return new eV(r,this._parents,e,t)};var eU=e=>()=>e;function eB(e,{sourceEvent:t,target:n,transform:r,dispatch:i}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:i}})}function eW(e,t,n){this.k=e,this.x=t,this.y=n}eW.prototype={constructor:eW,scale:function(e){return 1===e?this:new eW(this.k*e,this.x,this.y)},translate:function(e,t){return 0===e&0===t?this:new eW(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var eH=new eW(1,0,0);function e$(e){e.stopImmediatePropagation()}function eq(e){e.preventDefault(),e.stopImmediatePropagation()}function eG(e){return(!e.ctrlKey||"wheel"===e.type)&&!e.button}function eK(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e).hasAttribute("viewBox")?[[(e=e.viewBox.baseVal).x,e.y],[e.x+e.width,e.y+e.height]]:[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]:[[0,0],[e.clientWidth,e.clientHeight]]}function eZ(){return this.__zoom||eH}function eY(e){return-e.deltaY*(1===e.deltaMode?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function eX(){return navigator.maxTouchPoints||"ontouchstart"in this}function eQ(e,t,n){var r=e.invertX(t[0][0])-n[0][0],i=e.invertX(t[1][0])-n[1][0],o=e.invertY(t[0][1])-n[0][1],a=e.invertY(t[1][1])-n[1][1];return e.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),a>o?(o+a)/2:Math.min(0,o)||Math.max(0,a))}function eJ(){var e,t,n,r=eG,a=eK,s=eQ,l=eY,f=eX,h=[0,1/0],p=[[-1/0,-1/0],[1/0,1/0]],g=250,v=u,m=(0,i.Z)("start","zoom","end"),b=0,y=10;function x(e){e.property("__zoom",eZ).on("wheel.zoom",I,{passive:!1}).on("mousedown.zoom",_).on("dblclick.zoom",T).filter(f).on("touchstart.zoom",P).on("touchmove.zoom",R).on("touchend.zoom touchcancel.zoom",A).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function w(e,t){return(t=Math.max(h[0],Math.min(h[1],t)))===e.k?e:new eW(t,e.x,e.y)}function E(e,t,n){var r=t[0]-n[0]*e.k,i=t[1]-n[1]*e.k;return r===e.x&&i===e.y?e:new eW(e.k,r,i)}function S(e){return[(+e[0][0]+ +e[1][0])/2,(+e[0][1]+ +e[1][1])/2]}function k(e,t,n,r){e.on("start.zoom",function(){O(this,arguments).event(r).start()}).on("interrupt.zoom end.zoom",function(){O(this,arguments).event(r).end()}).tween("zoom",function(){var e=arguments,i=O(this,e).event(r),o=a.apply(this,e),s=null==n?S(o):"function"==typeof n?n.apply(this,e):n,l=Math.max(o[1][0]-o[0][0],o[1][1]-o[0][1]),u=this.__zoom,c="function"==typeof t?t.apply(this,e):t,d=v(u.invert(s).concat(l/u.k),c.invert(s).concat(l/c.k));return function(e){if(1===e)e=c;else{var t=d(e),n=l/t[2];e=new eW(n,s[0]-t[0]*n,s[1]-t[1]*n)}i.zoom(null,e)}})}function O(e,t,n){return!n&&e.__zooming||new C(e,t)}function C(e,t){this.that=e,this.args=t,this.active=0,this.sourceEvent=null,this.extent=a.apply(e,t),this.taps=0}function I(e,...t){if(r.apply(this,arguments)){var n=O(this,t).event(e),i=this.__zoom,o=Math.max(h[0],Math.min(h[1],i.k*Math.pow(2,l.apply(this,arguments)))),a=(0,d.Z)(e);if(n.wheel)(n.mouse[0][0]!==a[0]||n.mouse[0][1]!==a[1])&&(n.mouse[1]=i.invert(n.mouse[0]=a)),clearTimeout(n.wheel);else{if(i.k===o)return;n.mouse=[a,i.invert(a)],L(this),n.start()}eq(e),n.wheel=setTimeout(function(){n.wheel=null,n.end()},150),n.zoom("mouse",s(E(w(i,o),n.mouse[0],n.mouse[1]),n.extent,p))}}function _(e,...t){if(!n&&r.apply(this,arguments)){var i=e.currentTarget,a=O(this,t,!0).event(e),l=(0,c.Z)(e.view).on("mousemove.zoom",function(e){if(eq(e),!a.moved){var t=e.clientX-f,n=e.clientY-h;a.moved=t*t+n*n>b}a.event(e).zoom("mouse",s(E(a.that.__zoom,a.mouse[0]=(0,d.Z)(e,i),a.mouse[1]),a.extent,p))},!0).on("mouseup.zoom",function(e){l.on("mousemove.zoom mouseup.zoom",null),(0,o.D)(e.view,a.moved),eq(e),a.event(e).end()},!0),u=(0,d.Z)(e,i),f=e.clientX,h=e.clientY;(0,o.Z)(e.view),e$(e),a.mouse=[u,this.__zoom.invert(u)],L(this),a.start()}}function T(e,...t){if(r.apply(this,arguments)){var n=this.__zoom,i=(0,d.Z)(e.changedTouches?e.changedTouches[0]:e,this),o=n.invert(i),l=n.k*(e.shiftKey?.5:2),u=s(E(w(n,l),i,o),a.apply(this,t),p);eq(e),g>0?(0,c.Z)(this).transition().duration(g).call(k,u,i,e):(0,c.Z)(this).call(x.transform,u,i,e)}}function P(n,...i){if(r.apply(this,arguments)){var o,a,s,l,u=n.touches,c=u.length,f=O(this,i,n.changedTouches.length===c).event(n);for(e$(n),a=0;a<c;++a)s=u[a],l=[l=(0,d.Z)(s,this),this.__zoom.invert(l),s.identifier],f.touch0?f.touch1||f.touch0[2]===l[2]||(f.touch1=l,f.taps=0):(f.touch0=l,o=!0,f.taps=1+!!e);e&&(e=clearTimeout(e)),o&&(f.taps<2&&(t=l[0],e=setTimeout(function(){e=null},500)),L(this),f.start())}}function R(e,...t){if(this.__zooming){var n,r,i,o,a=O(this,t).event(e),l=e.changedTouches,u=l.length;for(eq(e),n=0;n<u;++n)r=l[n],i=(0,d.Z)(r,this),a.touch0&&a.touch0[2]===r.identifier?a.touch0[0]=i:a.touch1&&a.touch1[2]===r.identifier&&(a.touch1[0]=i);if(r=a.that.__zoom,a.touch1){var c=a.touch0[0],f=a.touch0[1],h=a.touch1[0],g=a.touch1[1],v=(v=h[0]-c[0])*v+(v=h[1]-c[1])*v,m=(m=g[0]-f[0])*m+(m=g[1]-f[1])*m;r=w(r,Math.sqrt(v/m)),i=[(c[0]+h[0])/2,(c[1]+h[1])/2],o=[(f[0]+g[0])/2,(f[1]+g[1])/2]}else{if(!a.touch0)return;i=a.touch0[0],o=a.touch0[1]}a.zoom("touch",s(E(r,i,o),a.extent,p))}}function A(e,...r){if(this.__zooming){var i,o,a=O(this,r).event(e),s=e.changedTouches,l=s.length;for(e$(e),n&&clearTimeout(n),n=setTimeout(function(){n=null},500),i=0;i<l;++i)o=s[i],a.touch0&&a.touch0[2]===o.identifier?delete a.touch0:a.touch1&&a.touch1[2]===o.identifier&&delete a.touch1;if(a.touch1&&!a.touch0&&(a.touch0=a.touch1,delete a.touch1),a.touch0)a.touch0[1]=this.__zoom.invert(a.touch0[0]);else if(a.end(),2===a.taps&&(o=(0,d.Z)(o,this),Math.hypot(t[0]-o[0],t[1]-o[1])<y)){var u=(0,c.Z)(this).on("dblclick.zoom");u&&u.apply(this,arguments)}}}return x.transform=function(e,t,n,r){var i=e.selection?e.selection():e;i.property("__zoom",eZ),e!==i?k(e,t,n,r):i.interrupt().each(function(){O(this,arguments).event(r).start().zoom(null,"function"==typeof t?t.apply(this,arguments):t).end()})},x.scaleBy=function(e,t,n,r){x.scaleTo(e,function(){var e=this.__zoom.k,n="function"==typeof t?t.apply(this,arguments):t;return e*n},n,r)},x.scaleTo=function(e,t,n,r){x.transform(e,function(){var e=a.apply(this,arguments),r=this.__zoom,i=null==n?S(e):"function"==typeof n?n.apply(this,arguments):n,o=r.invert(i),l="function"==typeof t?t.apply(this,arguments):t;return s(E(w(r,l),i,o),e,p)},n,r)},x.translateBy=function(e,t,n,r){x.transform(e,function(){return s(this.__zoom.translate("function"==typeof t?t.apply(this,arguments):t,"function"==typeof n?n.apply(this,arguments):n),a.apply(this,arguments),p)},null,r)},x.translateTo=function(e,t,n,r,i){x.transform(e,function(){var e=a.apply(this,arguments),i=this.__zoom,o=null==r?S(e):"function"==typeof r?r.apply(this,arguments):r;return s(eH.translate(o[0],o[1]).scale(i.k).translate("function"==typeof t?-t.apply(this,arguments):-t,"function"==typeof n?-n.apply(this,arguments):-n),e,p)},r,i)},C.prototype={event:function(e){return e&&(this.sourceEvent=e),this},start:function(){return 1==++this.active&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(e,t){return this.mouse&&"mouse"!==e&&(this.mouse[1]=t.invert(this.mouse[0])),this.touch0&&"touch"!==e&&(this.touch0[1]=t.invert(this.touch0[0])),this.touch1&&"touch"!==e&&(this.touch1[1]=t.invert(this.touch1[0])),this.that.__zoom=t,this.emit("zoom"),this},end:function(){return 0==--this.active&&(delete this.that.__zooming,this.emit("end")),this},emit:function(e){var t=(0,c.Z)(this.that).datum();m.call(e,this.that,new eB(e,{sourceEvent:this.sourceEvent,target:x,type:e,transform:this.that.__zoom,dispatch:m}),t)}},x.wheelDelta=function(e){return arguments.length?(l="function"==typeof e?e:eU(+e),x):l},x.filter=function(e){return arguments.length?(r="function"==typeof e?e:eU(!!e),x):r},x.touchable=function(e){return arguments.length?(f="function"==typeof e?e:eU(!!e),x):f},x.extent=function(e){return arguments.length?(a="function"==typeof e?e:eU([[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]]),x):a},x.scaleExtent=function(e){return arguments.length?(h[0]=+e[0],h[1]=+e[1],x):[h[0],h[1]]},x.translateExtent=function(e){return arguments.length?(p[0][0]=+e[0][0],p[1][0]=+e[1][0],p[0][1]=+e[0][1],p[1][1]=+e[1][1],x):[[p[0][0],p[0][1]],[p[1][0],p[1][1]]]},x.constrain=function(e){return arguments.length?(s=e,x):s},x.duration=function(e){return arguments.length?(g=+e,x):g},x.interpolate=function(e){return arguments.length?(v=e,x):v},x.on=function(){var e=m.on.apply(m,arguments);return e===m?x:e},x.clickDistance=function(e){return arguments.length?(b=(e=+e)*e,x):Math.sqrt(b)},x.tapDistance=function(e){return arguments.length?(y=+e,x):y},x}eW.prototype},97804:function(e,t,n){"use strict";n.d(t,{$Q:function(){return c},kL:function(){return u}});var r,i=n(97129),o=n(48006);let a="label";function s(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function l(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a,r=[];e.datasets=t.map(t=>{let i=e.datasets.find(e=>e[n]===t[n]);return!i||!t.data||r.includes(i)?{...t}:(r.push(i),Object.assign(i,t),i)})}let u=(0,i.forwardRef)(function(e,t){let{height:n=150,width:r=300,redraw:u=!1,datasetIdKey:c,type:d,data:f,options:h,plugins:p=[],fallbackContent:g,updateMode:v,...m}=e,b=(0,i.useRef)(null),y=(0,i.useRef)(null),x=()=>{b.current&&(y.current=new o.kL(b.current,{type:d,data:function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a,r={labels:[],datasets:[]};return t=e.labels,r.labels=t,l(r,e.datasets,n),r}(f,c),options:h&&{...h},plugins:p}),s(t,y.current))},w=()=>{s(t,null),y.current&&(y.current.destroy(),y.current=null)};return(0,i.useEffect)(()=>{!u&&y.current&&h&&function(e,t){let n=e.options;n&&t&&Object.assign(n,t)}(y.current,h)},[u,h]),(0,i.useEffect)(()=>{if(!u&&y.current){var e,t;e=y.current.config.data,t=f.labels,e.labels=t}},[u,f.labels]),(0,i.useEffect)(()=>{!u&&y.current&&f.datasets&&l(y.current.config.data,f.datasets,c)},[u,f.datasets]),(0,i.useEffect)(()=>{y.current&&(u?(w(),setTimeout(x)):y.current.update(v))},[u,h,f.labels,f.datasets,v]),(0,i.useEffect)(()=>{y.current&&(w(),setTimeout(x))},[d]),(0,i.useEffect)(()=>(x(),()=>w()),[]),i.createElement("canvas",{ref:b,role:"img",height:n,width:r,...m},g)}),c=(r=o.vn,o.kL.register(r),(0,i.forwardRef)((e,t)=>i.createElement(u,{...e,ref:t,type:"bar"})))},21645:function(e,t,n){"use strict";n.d(t,{ZP:function(){return es},Ug:function(){return eu}});var r=n(97129),i=n(51853),o=function(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=function e(t){var n,r,i="";if("string"==typeof t||"number"==typeof t)i+=t;else if("object"==typeof t){if(Array.isArray(t)){var o=t.length;for(n=0;n<o;n++)t[n]&&(r=e(t[n]))&&(i&&(i+=" "),i+=r)}else for(r in t)t[r]&&(i&&(i+=" "),i+=r)}return i}(e))&&(r&&(r+=" "),r+=t);return r},a=n(26415);function s(e,t,n){let r="function"==typeof e.colSpan?e.colSpan(n):1;if(Number.isInteger(r)&&r>1&&(!e.frozen||e.idx+r-1<=t))return r}function l(e){e.stopPropagation()}function u(e){e?.scrollIntoView({inline:"nearest",block:"nearest"})}function c(e){let t=!1,n={...e,preventGridDefault(){t=!0},isGridDefaultPrevented:()=>t};return Object.setPrototypeOf(n,Object.getPrototypeOf(e)),n}let d=new Set(["Unidentified","Alt","AltGraph","CapsLock","Control","Fn","FnLock","Meta","NumLock","ScrollLock","Shift","Tab","ArrowDown","ArrowLeft","ArrowRight","ArrowUp","End","Home","PageDown","PageUp","Insert","ContextMenu","Escape","Pause","Play","PrintScreen","F1","F3","F4","F5","F6","F7","F8","F9","F10","F11","F12"]);function f(e){return(e.ctrlKey||e.metaKey)&&"Control"!==e.key}function h(e,t){return null!=e.renderEditCell&&("function"==typeof e.editable?e.editable(t):e.editable)!==!1}let p="rdg-cell cj343x07-0-0-beta-40";function g(e,t){return void 0!==t?{"--rdg-grid-row-start":e,"--rdg-row-height":`${t}px`}:{"--rdg-grid-row-start":e}}function v(e,t,n){let r=t+1,i=`calc(${n-1} * var(--rdg-header-row-height))`;return void 0===e.parent?{insetBlockStart:0,gridRowStart:1,gridRowEnd:r,paddingBlockStart:i}:{insetBlockStart:`calc(${t-n} * var(--rdg-header-row-height))`,gridRowStart:r-n,gridRowEnd:r,paddingBlockStart:i}}function m(e,t=1){let n=e.idx+1;return{gridColumnStart:n,gridColumnEnd:n+t,insetInlineStart:e.frozen?`var(--rdg-frozen-left-${e.idx})`:void 0}}function b(e,...t){return o(p,...t,e.frozen&&"rdg-cell-frozen csofj7r7-0-0-beta-40",e.isLastFrozenColumn&&"rdg-cell-frozen-last ch2wcw87-0-0-beta-40")}let{min:y,max:x,round:w,floor:E,sign:S,abs:k}=Math;function O(e){if("function"!=typeof e)throw Error("Please specify the rowKeyGetter prop to use selection")}function C(e,{minWidth:t,maxWidth:n}){return(e=x(e,t),"number"==typeof n&&n>=t)?y(e,n):e}function I(e,t){return void 0===e.parent?t:e.level-e.parent.level}function _({onChange:e,...t}){return(0,a.jsxs)("label",{className:o("rdg-checkbox-label c1bn88vv7-0-0-beta-40",t.disabled&&"rdg-checkbox-label-disabled c1lwve4p7-0-0-beta-40"),children:[(0,a.jsx)("input",{type:"checkbox",...t,className:"rdg-checkbox-input c1qt073l7-0-0-beta-40",onChange:function(t){e(t.target.checked,t.nativeEvent.shiftKey)}}),(0,a.jsx)("div",{className:"rdg-checkbox cf71kmq7-0-0-beta-40"})]})}function T(e){try{return e.row[e.column.key]}catch{return null}}let P=(0,r.createContext)(void 0),R=P.Provider;function A(){return(0,r.useContext)(P)}let N=(0,r.createContext)(void 0).Provider,M=(0,r.createContext)(void 0).Provider,L="select-row",D="undefined"==typeof window?r.useEffect:r.useLayoutEffect;function F(e,t){let n=`[data-measuring-cell-key="${CSS.escape(t)}"]`,r=e.current.querySelector(n);return r?.getBoundingClientRect().width}function V(e){let t=(0,r.useRef)(e);(0,r.useEffect)(()=>{t.current=e});let n=(0,r.useCallback)((...e)=>{t.current(...e)},[]);return e?n:e}function j(e){let[t,n]=(0,r.useState)(!1);return t&&!e&&n(!1),{tabIndex:e&&!t?0:-1,childTabIndex:e?0:-1,onFocus:e?function(e){e.target!==e.currentTarget&&n(!0)}:void 0}}function z({gridRowStart:e,rows:t,column:n,columnWidth:r,selectedPosition:i,latestDraggedOverRowIdx:s,isCellEditable:l,onRowsChange:u,onFill:c,onClick:d,setDragging:f,setDraggedOverRowIdx:h}){let{idx:p,rowIdx:g}=i;function v(e,r){let i=t[g],o=[...t],a=[];for(let s=e;s<r;s++)if(l({rowIdx:s,idx:p})){let e=c({columnKey:n.key,sourceRow:i,targetRow:t[s]});e!==t[s]&&(o[s]=e,a.push(s))}a.length>0&&u?.(o,{indexes:a,column:n})}let b=n.colSpan?.({type:"ROW",row:t[g]})??1,y=m(n,b);return(0,a.jsx)("div",{style:{...y,gridRowStart:e,insetInlineStart:y.insetInlineStart&&"number"==typeof r?`calc(${y.insetInlineStart} + ${r}px - var(--rdg-drag-handle-size))`:void 0},className:o("rdg-cell-drag-handle c1w9bbhr7-0-0-beta-40",n.frozen&&"c1creorc7-0-0-beta-40"),onClick:d,onMouseDown:function(e){function t(e){1!==e.buttons&&n()}function n(){window.removeEventListener("mouseover",t),window.removeEventListener("mouseup",n),f(!1),function(){let e=s.current;void 0!==e&&(v(g<e?g+1:e,g<e?e+1:g),h(void 0))}()}e.preventDefault(),1===e.buttons&&(f(!0),window.addEventListener("mouseover",t),window.addEventListener("mouseup",n))},onDoubleClick:function(e){e.stopPropagation(),v(g+1,t.length)}})}function U({column:e,colSpan:t,row:n,rowIdx:i,onRowChange:o,closeEditor:s,onKeyDown:l,navigate:u}){let d=(0,r.useRef)(),f=e.editorOptions?.commitOnOutsideClick!==!1,h=V(()=>{g(!0,!1)});function p(){cancelAnimationFrame(d.current)}function g(e=!1,t=!0){e?o(n,!0,t):s(t)}function v(e,t=!1){o(e,t,t)}(0,r.useEffect)(()=>{if(f)return addEventListener("mousedown",e,{capture:!0}),()=>{removeEventListener("mousedown",e,{capture:!0}),p()};function e(){d.current=requestAnimationFrame(h)}},[f,h]);let{cellClass:y}=e,x=b(e,"rdg-editor-container","function"==typeof y?y(n):y,!e.editorOptions?.displayCellContent&&"cis5rrm7-0-0-beta-40");return(0,a.jsx)("div",{role:"gridcell","aria-colindex":e.idx+1,"aria-colspan":t,"aria-selected":!0,className:x,style:m(e,t),onKeyDown:function(t){if(l){let r=c(t);if(l({mode:"EDIT",row:n,column:e,rowIdx:i,navigate(){u(t)},onClose:g},r),r.isGridDefaultPrevented())return}"Escape"===t.key?g():"Enter"===t.key?g(!0):function({key:e,target:t}){return!!("Tab"===e&&(t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement||t instanceof HTMLSelectElement))&&t.closest(".rdg-editor-container")?.querySelectorAll("input, textarea, select").length===1}(t)&&u(t)},onMouseDownCapture:p,children:null!=e.renderEditCell&&(0,a.jsxs)(a.Fragment,{children:[e.renderEditCell({column:e,row:n,onRowChange:v,onClose:g}),e.editorOptions?.displayCellContent&&e.renderCell({column:e,row:n,isCellEditable:!0,tabIndex:-1,onRowChange:v})]})})}function B({column:e,rowIdx:t,isCellSelected:n,selectCell:r}){let{tabIndex:i,onFocus:s}=j(n),{colSpan:l}=e,u=I(e,t),c=e.idx+1;return(0,a.jsx)("div",{role:"columnheader","aria-colindex":c,"aria-colspan":l,"aria-rowspan":u,"aria-selected":n,tabIndex:i,className:o(p,e.headerCellClass),style:{...v(e,t,u),gridColumnStart:c,gridColumnEnd:c+l},onFocus:s,onClick:function(){r({idx:e.idx,rowIdx:t})},children:e.name})}function W({column:e,sortDirection:t,priority:n}){return e.sortable?(0,a.jsx)(H,{sortDirection:t,priority:n,children:e.name}):e.name}function H({sortDirection:e,priority:t,children:n}){let r=A().renderSortStatus;return(0,a.jsxs)("span",{className:"h44jtk67-0-0-beta-40",children:[(0,a.jsx)("span",{className:"rdg-header-sort-name hcgkhxz7-0-0-beta-40",children:n}),(0,a.jsx)("span",{children:r({sortDirection:e,priority:t})})]})}function $({column:e,colSpan:t,rowIdx:n,isCellSelected:i,onColumnResize:o,onColumnsReorder:s,sortColumns:u,onSortColumnsChange:c,selectCell:d,shouldFocusGrid:f,direction:h,dragDropKey:p}){let g;let[y,x]=(0,r.useState)(!1),[w,E]=(0,r.useState)(!1),S="rtl"===h,k=I(e,n),{tabIndex:O,childTabIndex:_,onFocus:T}=j(i),P=u?.findIndex(t=>t.columnKey===e.key),R=void 0!==P&&P>-1?u[P]:void 0,A=R?.direction,N=void 0!==R&&u.length>1?P+1:void 0,M=A&&!N?"ASC"===A?"ascending":"descending":void 0,{sortable:L,resizable:D,draggable:F}=e,V=b(e,e.headerCellClass,L&&"c6l2wv17-0-0-beta-40",D&&"rdg-cell-resizable c1kqdw7y7-0-0-beta-40",F&&"rdg-cell-draggable",y&&"rdg-cell-dragging c1bezg5o7-0-0-beta-40",w&&"rdg-cell-drag-over c1vc96037-0-0-beta-40"),z=e.renderHeaderCell??W;function U(t){if(null==c)return;let{sortDescendingFirst:n}=e;if(void 0===R){let r={columnKey:e.key,direction:n?"DESC":"ASC"};c(u&&t?[...u,r]:[r])}else{let r;if((!0===n&&"DESC"===A||!0!==n&&"ASC"===A)&&(r={columnKey:e.key,direction:"ASC"===A?"DESC":"ASC"}),t){let e=[...u];r?e[P]=r:e.splice(P,1),c(e)}else c(r?[r]:[])}}return F&&(g={draggable:!0,onDragStart:function(t){t.dataTransfer.setData(p,e.key),t.dataTransfer.dropEffect="move",x(!0)},onDragEnd:function(){x(!1)},onDragOver:function(e){e.preventDefault(),e.dataTransfer.dropEffect="move"},onDragEnter:function(e){q(e)&&E(!0)},onDragLeave:function(e){q(e)&&E(!1)},onDrop:function(t){if(E(!1),t.dataTransfer.types.includes(p)){let n=t.dataTransfer.getData(p);n!==e.key&&(t.preventDefault(),s?.(n,e.key))}}}),(0,a.jsxs)("div",{role:"columnheader","aria-colindex":e.idx+1,"aria-colspan":t,"aria-rowspan":k,"aria-selected":i,"aria-sort":M,tabIndex:f?0:O,className:V,style:{...v(e,n,k),...m(e,t)},onFocus:function(e){T?.(e),f&&d({idx:0,rowIdx:n})},onClick:function(t){d({idx:e.idx,rowIdx:n}),L&&U(t.ctrlKey||t.metaKey)},onKeyDown:L?function(e){(" "===e.key||"Enter"===e.key)&&(e.preventDefault(),U(e.ctrlKey||e.metaKey))}:void 0,...g,children:[z({column:e,sortDirection:A,priority:N,tabIndex:_}),D&&(0,a.jsx)("div",{className:"r1y6ywlx7-0-0-beta-40",onClick:l,onDoubleClick:function(){o(e,"max-content")},onPointerDown:function(t){if("mouse"===t.pointerType&&1!==t.buttons)return;let{currentTarget:n,pointerId:r}=t,i=n.parentElement,{right:a,left:s}=i.getBoundingClientRect(),l=S?t.clientX-s:a-t.clientX;function u(t){t.preventDefault();let{right:n,left:r}=i.getBoundingClientRect(),a=S?n+l-t.clientX:t.clientX+l-r;a>0&&o(e,C(a,e))}n.setPointerCapture(r),n.addEventListener("pointermove",u),n.addEventListener("lostpointercapture",function e(){n.removeEventListener("pointermove",u),n.removeEventListener("lostpointercapture",e)})}})]})}function q(e){let t=e.relatedTarget;return!e.currentTarget.contains(t)}let G="rdg-row r1upfr807-0-0-beta-40",K="rdg-row-selected",Z="rdg-header-row h10tskcx7-0-0-beta-40",Y=(0,r.memo)(function({rowIdx:e,columns:t,onColumnResize:n,onColumnsReorder:i,sortColumns:l,onSortColumnsChange:u,lastFrozenColumnIndex:c,selectedCellIdx:d,selectCell:f,shouldFocusGrid:h,direction:p}){let g=(0,r.useId)(),v=[];for(let r=0;r<t.length;r++){let o=t[r],m=s(o,c,{type:"HEADER"});void 0!==m&&(r+=m-1),v.push((0,a.jsx)($,{column:o,colSpan:m,rowIdx:e,isCellSelected:d===o.idx,onColumnResize:n,onColumnsReorder:i,onSortColumnsChange:u,sortColumns:l,selectCell:f,shouldFocusGrid:h&&0===r,direction:p,dragDropKey:g},o.key))}return(0,a.jsx)("div",{role:"row","aria-rowindex":e,className:o(Z,-1===d&&K),children:v})}),X=(0,r.memo)(function({rowIdx:e,level:t,columns:n,selectedCellIdx:r,selectCell:i}){let o=[],s=new Set;for(let l of n){let{parent:n}=l;if(void 0!==n){for(;n.level>t&&void 0!==n.parent;)n=n.parent;if(n.level===t&&!s.has(n)){s.add(n);let{idx:t}=n;o.push((0,a.jsx)(B,{column:n,rowIdx:e,isCellSelected:r===t,selectCell:i},t))}}}return(0,a.jsx)("div",{role:"row","aria-rowindex":e,className:Z,children:o})}),Q=(0,r.memo)(function({column:e,colSpan:t,isCellSelected:n,isCopied:r,isDraggedOver:i,row:o,rowIdx:s,onClick:l,onDoubleClick:u,onContextMenu:d,onRowChange:f,selectCell:p,...g}){let{tabIndex:v,childTabIndex:y,onFocus:x}=j(n),{cellClass:w}=e,E=b(e,"function"==typeof w?w(o):w,r&&"rdg-cell-copied c6ra8a37-0-0-beta-40",i&&"rdg-cell-dragged-over cq910m07-0-0-beta-40"),S=h(e,o);function k(t){p({rowIdx:s,idx:e.idx},t)}return(0,a.jsx)("div",{role:"gridcell","aria-colindex":e.idx+1,"aria-colspan":t,"aria-selected":n,"aria-readonly":!S||void 0,tabIndex:v,className:E,style:m(e,t),onClick:function(t){if(l){let n=c(t);if(l({row:o,column:e,selectCell:k},n),n.isGridDefaultPrevented())return}k()},onDoubleClick:function(t){if(u){let n=c(t);if(u({row:o,column:e,selectCell:k},n),n.isGridDefaultPrevented())return}k(!0)},onContextMenu:function(t){if(d){let n=c(t);if(d({row:o,column:e,selectCell:k},n),n.isGridDefaultPrevented())return}k()},onFocus:x,...g,children:e.renderCell({column:e,row:o,isCellEditable:S,tabIndex:y,onRowChange:function(t){f(e,t)}})})}),J=(0,r.memo)((0,r.forwardRef)(function({className:e,rowIdx:t,gridRowStart:n,height:r,selectedCellIdx:i,isRowSelected:l,copiedCellIdx:u,draggedOverCellIdx:c,lastFrozenColumnIndex:d,row:f,viewportColumns:h,selectedCellEditor:p,onCellClick:v,onCellDoubleClick:m,onCellContextMenu:b,rowClass:y,setDraggedOverRowIdx:x,onMouseEnter:w,onRowChange:E,selectCell:S,...k},O){let C=V((e,n)=>{E(e,t,n)});e=o(G,`rdg-row-${t%2==0?"even":"odd"}`,y?.(f,t),e,-1===i&&K);let I=[];for(let e=0;e<h.length;e++){let n=h[e],{idx:r}=n,o=s(n,d,{type:"ROW",row:f});void 0!==o&&(e+=o-1);let l=i===r;l&&p?I.push(p):I.push((0,a.jsx)(Q,{column:n,colSpan:o,row:f,rowIdx:t,isCopied:u===r,isDraggedOver:c===r,isCellSelected:l,onClick:v,onDoubleClick:m,onContextMenu:b,onRowChange:C,selectCell:S},n.key))}return(0,a.jsx)(N,{value:l,children:(0,a.jsx)("div",{role:"row",ref:O,className:e,onMouseEnter:function(e){x?.(t),w?.(e)},style:g(n,r),...k,children:I})})}));function ee(e,t){return(0,a.jsx)(J,{...t},e)}function et({scrollToPosition:{idx:e,rowIdx:t},gridElement:n,setScrollToCellPosition:i}){let o=(0,r.useRef)(null);return D(()=>{u(o.current)}),D(()=>{let e=new IntersectionObserver(function(){i(null)},{root:n,threshold:1});return e.observe(o.current),()=>{e.disconnect()}},[n,i]),(0,a.jsx)("div",{ref:o,style:{gridColumn:void 0===e?"1/-1":e+1,gridRow:void 0===t?"1/-1":t+2}})}function en({sortDirection:e,priority:t}){return(0,a.jsxs)(a.Fragment,{children:[function({sortDirection:e}){return void 0===e?null:(0,a.jsx)("svg",{viewBox:"0 0 12 8",width:"12",height:"8",className:"rdg-sort-arrow a3ejtar7-0-0-beta-40","aria-hidden":!0,children:(0,a.jsx)("path",{d:"ASC"===e?"M0 8 6 0 12 8":"M0 0 6 8 12 0"})})}({sortDirection:e}),function({priority:e}){return e}({priority:t})]})}let er=(0,r.memo)(function({column:e,colSpan:t,row:n,rowIdx:r,isCellSelected:i,selectCell:o}){let{tabIndex:s,childTabIndex:l,onFocus:u}=j(i),{summaryCellClass:c}=e,d=b(e,"s8wc6fl7-0-0-beta-40","function"==typeof c?c(n):c);return(0,a.jsx)("div",{role:"gridcell","aria-colindex":e.idx+1,"aria-colspan":t,"aria-selected":i,tabIndex:s,className:d,style:m(e,t),onClick:function(){o({rowIdx:r,idx:e.idx})},onFocus:u,children:e.renderSummaryCell?.({column:e,row:n,tabIndex:l})})}),ei=(0,r.memo)(function({rowIdx:e,gridRowStart:t,row:n,viewportColumns:r,top:i,bottom:l,lastFrozenColumnIndex:u,selectedCellIdx:c,isTop:d,showBorder:f,selectCell:h,"aria-rowindex":p}){let v=[];for(let t=0;t<r.length;t++){let i=r[t],o=s(i,u,{type:"SUMMARY",row:n});void 0!==o&&(t+=o-1);let l=c===i.idx;v.push((0,a.jsx)(er,{column:i,colSpan:o,row:n,rowIdx:e,isCellSelected:l,selectCell:h},i.key))}return(0,a.jsx)("div",{role:"row","aria-rowindex":p,className:o(G,`rdg-row-${e%2==0?"even":"odd"}`,"rdg-summary-row skuhp557-0-0-beta-40",d?["rdg-top-summary-row tf8l5ub7-0-0-beta-40",f&&"tb9ughf7-0-0-beta-40"]:["rdg-bottom-summary-row",f&&"b1yssfnt7-0-0-beta-40"],-1===c&&K),style:{...g(t),"--rdg-summary-row-top":void 0!==i?`${i}px`:void 0,"--rdg-summary-row-bottom":void 0!==l?`${l}px`:void 0},children:v})});function eo(e){return e.querySelector(':scope > [role="row"] > [tabindex="0"]')}function ea(e,t){return e.idx===t.idx&&e.rowIdx===t.rowIdx}let es=(0,r.forwardRef)(function(e,t){let{columns:n,rows:l,topSummaryRows:p,bottomSummaryRows:g,rowKeyGetter:v,onRowsChange:m,rowHeight:b,headerRowHeight:w,summaryRowHeight:I,selectedRows:P,onSelectedRowsChange:j,sortColumns:B,onSortColumnsChange:W,defaultColumnOptions:H,onCellClick:$,onCellDoubleClick:q,onCellContextMenu:G,onCellKeyDown:K,onSelectedCellChange:Z,onScroll:Q,onColumnResize:J,onColumnsReorder:er,onFill:es,onCopy:el,onPaste:eu,enableVirtualization:ec,renderers:ed,className:ef,style:eh,rowClass:ep,direction:eg,role:ev,"aria-label":em,"aria-labelledby":eb,"aria-describedby":ey,"aria-rowcount":ex,"data-testid":ew}=e,eE=A(),eS=ev??"grid",ek=b??35,eO=w??("number"==typeof ek?ek:35),eC=I??("number"==typeof ek?ek:35),eI=ed?.renderRow??eE?.renderRow??ee,e_=ed?.renderSortStatus??eE?.renderSortStatus??en,eT=ed?.renderCheckbox??eE?.renderCheckbox??_,eP=ed?.noRowsFallback??eE?.noRowsFallback,eR=ec??!0,eA=eg??"ltr",[eN,eM]=(0,r.useState)(0),[eL,eD]=(0,r.useState)(0),[eF,eV]=(0,r.useState)(()=>new Map),[ej,ez]=(0,r.useState)(()=>new Map),[eU,eB]=(0,r.useState)(null),[eW,eH]=(0,r.useState)(!1),[e$,eq]=(0,r.useState)(void 0),[eG,eK]=(0,r.useState)(null),eZ=(0,r.useCallback)(e=>eF.get(e.key)??ej.get(e.key)??e.width,[ej,eF]),[eY,eX,eQ]=function(){let e=(0,r.useRef)(null),[t,n]=(0,r.useState)(1),[o,a]=(0,r.useState)(1);return D(()=>{let{ResizeObserver:t}=window;if(null==t)return;let{clientWidth:r,clientHeight:o,offsetWidth:s,offsetHeight:l}=e.current,{width:u,height:c}=e.current.getBoundingClientRect();n(u-s+r),a(c-l+o);let d=new t(e=>{let t=e[0].contentBoxSize[0];(0,i.flushSync)(()=>{n(t.inlineSize),a(t.blockSize)})});return d.observe(e.current),()=>{d.disconnect()}},[]),[e,t,o]}(),{columns:eJ,colSpanColumns:e0,lastFrozenColumnIndex:e1,headerRowsCount:e2,colOverscanStartIdx:e5,colOverscanEndIdx:e4,templateColumns:e3,layoutCssVars:e6,totalFrozenColumnWidth:e8}=function({rawColumns:e,defaultColumnOptions:t,getColumnWidth:n,viewportWidth:i,scrollLeft:o,enableVirtualization:a}){let s=t?.width??"auto",l=t?.minWidth??50,u=t?.maxWidth??void 0,c=t?.renderCell??T,d=t?.sortable??!1,f=t?.resizable??!1,h=t?.draggable??!1,{columns:p,colSpanColumns:g,lastFrozenColumnIndex:v,headerRowsCount:m}=(0,r.useMemo)(()=>{let t=-1,n=1,r=[];!function e(i,o,a){for(let p of i){if("children"in p){let t={name:p.name,parent:a,idx:-1,colSpan:0,level:0,headerCellClass:p.headerCellClass};e(p.children,o+1,t);continue}let i=p.frozen??!1,g={...p,parent:a,idx:0,level:0,frozen:i,isLastFrozenColumn:!1,width:p.width??s,minWidth:p.minWidth??l,maxWidth:p.maxWidth??u,sortable:p.sortable??d,resizable:p.resizable??f,draggable:p.draggable??h,renderCell:p.renderCell??c};r.push(g),i&&t++,o>n&&(n=o)}}(e,1),r.sort(({key:e,frozen:t},{key:n,frozen:r})=>e===L?-1:n===L?1:t?r?0:-1:r?1:0);let i=[];return r.forEach((e,t)=>{e.idx=t,function e(t,n,r){if(r<t.level&&(t.level=r),void 0!==t.parent){let{parent:i}=t;-1===i.idx&&(i.idx=n),i.colSpan+=1,e(i,n,r-1)}}(e,t,0),null!=e.colSpan&&i.push(e)}),-1!==t&&(r[t].isLastFrozenColumn=!0),{columns:r,colSpanColumns:i,lastFrozenColumnIndex:t,headerRowsCount:n}},[e,s,l,u,c,f,d,h]),{templateColumns:b,layoutCssVars:w,totalFrozenColumnWidth:E,columnMetrics:S}=(0,r.useMemo)(()=>{let e=new Map,t=0,r=0,i=[];for(let r of p){let o=n(r);o="number"==typeof o?C(o,r):r.minWidth,i.push(`${o}px`),e.set(r,{width:o,left:t}),t+=o}if(-1!==v){let t=e.get(p[v]);r=t.left+t.width}let o={};for(let t=0;t<=v;t++){let n=p[t];o[`--rdg-frozen-left-${n.idx}`]=`${e.get(n).left}px`}return{templateColumns:i,layoutCssVars:o,totalFrozenColumnWidth:r,columnMetrics:e}},[n,p,v]),[k,O]=(0,r.useMemo)(()=>{if(!a)return[0,p.length-1];let e=o+E,t=o+i,n=p.length-1,r=y(v+1,n);if(e>=t)return[r,r];let s=r;for(;s<n;){let{left:t,width:n}=S.get(p[s]);if(t+n>e)break;s++}let l=s;for(;l<n;){let{left:e,width:n}=S.get(p[l]);if(e+n>=t)break;l++}return[x(r,s-1),y(n,l+1)]},[S,p,v,o,E,i,a]);return{columns:p,colSpanColumns:g,colOverscanStartIdx:k,colOverscanEndIdx:O,templateColumns:b,layoutCssVars:w,headerRowsCount:m,lastFrozenColumnIndex:v,totalFrozenColumnWidth:E}}({rawColumns:n,defaultColumnOptions:H,getColumnWidth:eZ,scrollLeft:eL,viewportWidth:eX,enableVirtualization:eR}),e7=p?.length??0,e9=g?.length??0,te=e7+e9,tt=e2+e7,tn=e2-1,tr=-tt,ti=tr+tn,to=l.length+e9-1,[ta,ts]=(0,r.useState)(()=>({idx:-1,rowIdx:tr-1,mode:"SELECT"})),tl=(0,r.useRef)(ta),tu=(0,r.useRef)(e$),tc=(0,r.useRef)(-1),td=(0,r.useRef)(null),tf=(0,r.useRef)(!1),th="treegrid"===eS,tp=e2*eO,tg=eQ-tp-te*eC,tv=null!=P&&null!=j,tm="rtl"===eA,tb=tm?"ArrowRight":"ArrowLeft",ty=tm?"ArrowLeft":"ArrowRight",tx=ex??e2+l.length+te,tw=(0,r.useMemo)(()=>({renderCheckbox:eT,renderSortStatus:e_}),[eT,e_]),tE=(0,r.useMemo)(()=>{let{length:e}=l;return 0!==e&&null!=P&&null!=v&&P.size>=e&&l.every(e=>P.has(v(e)))},[l,P,v]),{rowOverscanStartIdx:tS,rowOverscanEndIdx:tk,totalRowHeight:tO,gridTemplateRows:tC,getRowTop:tI,getRowHeight:t_,findRowIdx:tT}=function({rows:e,rowHeight:t,clientHeight:n,scrollTop:i,enableVirtualization:o}){let{totalRowHeight:a,gridTemplateRows:s,getRowTop:l,getRowHeight:u,findRowIdx:c}=(0,r.useMemo)(()=>{if("number"==typeof t)return{totalRowHeight:t*e.length,gridTemplateRows:` repeat(${e.length}, ${t}px)`,getRowTop:e=>e*t,getRowHeight:()=>t,findRowIdx:e=>E(e/t)};let n=0,r=" ",i=e.map(e=>{let i=t(e),o={top:n,height:i};return r+=`${i}px `,n+=i,o}),o=t=>x(0,y(e.length-1,t));return{totalRowHeight:n,gridTemplateRows:r,getRowTop:e=>i[o(e)].top,getRowHeight:e=>i[o(e)].height,findRowIdx(e){let t=0,n=i.length-1;for(;t<=n;){let r=t+E((n-t)/2),o=i[r].top;if(o===e)return r;if(o<e?t=r+1:o>e&&(n=r-1),t>n)return n}return 0}}},[t,e]),d=0,f=e.length-1;if(o){let t=c(i),r=c(i+n);d=x(0,t-4),f=y(e.length-1,r+4)}return{rowOverscanStartIdx:d,rowOverscanEndIdx:f,totalRowHeight:a,gridTemplateRows:s,getRowTop:l,getRowHeight:u,findRowIdx:c}}({rows:l,rowHeight:ek,clientHeight:tg,scrollTop:eN,enableVirtualization:eR}),tP=function({columns:e,colSpanColumns:t,rows:n,topSummaryRows:i,bottomSummaryRows:o,colOverscanStartIdx:a,colOverscanEndIdx:l,lastFrozenColumnIndex:u,rowOverscanStartIdx:c,rowOverscanEndIdx:d}){let f=(0,r.useMemo)(()=>{if(0===a)return 0;let e=a,r=(t,n)=>void 0!==n&&t+n>a&&(e=t,!0);for(let a of t){let t=a.idx;if(t>=e||r(t,s(a,u,{type:"HEADER"})))break;for(let e=c;e<=d&&!r(t,s(a,u,{type:"ROW",row:n[e]}));e++);if(null!=i){for(let e of i)if(r(t,s(a,u,{type:"SUMMARY",row:e})))break}if(null!=o){for(let e of o)if(r(t,s(a,u,{type:"SUMMARY",row:e})))break}}return e},[c,d,n,i,o,a,u,t]);return(0,r.useMemo)(()=>{let t=[];for(let n=0;n<=l;n++){let r=e[n];(!(n<f)||r.frozen)&&t.push(r)}return t},[f,l,e])}({columns:eJ,colSpanColumns:e0,colOverscanStartIdx:e5,colOverscanEndIdx:e4,lastFrozenColumnIndex:e1,rowOverscanStartIdx:tS,rowOverscanEndIdx:tk,rows:l,topSummaryRows:p,bottomSummaryRows:g}),{gridTemplateColumns:tR,handleColumnResize:tA}=function(e,t,n,o,a,s,l,u,c,d){let f=(0,r.useRef)(a),h=e.length===t.length,p=h&&a!==f.current,g=[...n],v=[];for(let{key:e,idx:n,width:r}of t)"string"!=typeof r||!p&&l.has(e)||s.has(e)||(g[n]=r,v.push(e));let m=g.join(" ");function b(e){0!==e.length&&c(t=>{let n=new Map(t),r=!1;for(let i of e){let e=F(o,i);r||=e!==t.get(i),void 0===e?n.delete(i):n.set(i,e)}return r?n:t})}return D(()=>{f.current=a,b(v)}),{gridTemplateColumns:m,handleColumnResize:function(e,r){let{key:a}=e,l=[...n],c=[];for(let{key:e,idx:n,width:i}of t)if(a===e){let e="number"==typeof r?`${r}px`:r;l[n]=e}else h&&"string"==typeof i&&!s.has(e)&&(l[n]=i,c.push(e));o.current.style.gridTemplateColumns=l.join(" ");let f="number"==typeof r?r:F(o,a);(0,i.flushSync)(()=>{u(e=>{let t=new Map(e);return t.set(a,f),t}),b(c)}),d?.(e.idx,f)}}}(eJ,tP,e3,eY,eX,eF,ej,eV,ez,J),tN=th?-1:0,tM=eJ.length-1,tL=tQ(ta),tD=tJ(ta),tF=V(tA),tV=V(er),tj=V(W),tz=V($),tU=V(q),tB=V(G),tW=V(tK),tH=V(tZ),t$=V(t1),tq=V(({idx:e,rowIdx:t})=>{t1({rowIdx:tr+t-1,idx:e})});D(()=>{if(!tL||ea(ta,tl.current)){tl.current=ta;return}tl.current=ta,-1===ta.idx&&(td.current.focus({preventScroll:!0}),u(td.current))}),D(()=>{tf.current&&(tf.current=!1,t5())}),(0,r.useImperativeHandle)(t,()=>({element:eY.current,scrollToCell({idx:e,rowIdx:t}){let n=void 0!==e&&e>e1&&e<eJ.length?e:void 0,r=void 0!==t&&tX(t)?t:void 0;(void 0!==n||void 0!==r)&&eK({idx:n,rowIdx:r})},selectCell:t1}));let tG=(0,r.useCallback)(e=>{eq(e),tu.current=e},[]);function tK(e){if(!j)return;if(O(v),"HEADER"===e.type){let t=new Set(P);for(let n of l){let r=v(n);e.checked?t.add(r):t.delete(r)}j(t);return}let{row:t,checked:n,isShiftClick:r}=e,i=new Set(P),o=v(t);if(n){i.add(o);let e=tc.current,n=l.indexOf(t);if(tc.current=n,r&&-1!==e&&e!==n){let t=S(n-e);for(let r=e+t;r!==n;r+=t){let e=l[r];i.add(v(e))}}}else i.delete(o),tc.current=-1;j(i)}function tZ(e,t,n){if("function"!=typeof m||n===l[t])return;let r=[...l];r[t]=n,m(r,{indexes:[t],column:e})}function tY(){"EDIT"===ta.mode&&tZ(eJ[ta.idx],ta.rowIdx,ta.row)}function tX(e){return e>=0&&e<l.length}function tQ({idx:e,rowIdx:t}){var n;return t>=tr&&t<=to&&(n=e)>=tN&&n<=tM}function tJ({idx:e,rowIdx:t}){var n;return tX(t)&&(n=e)>=tN&&n<=tM}function t0(e){return tJ(e)&&function({selectedPosition:e,columns:t,rows:n}){return h(t[e.idx],n[e.rowIdx])}({columns:eJ,rows:l,selectedPosition:e})}function t1(e,t){if(!tQ(e))return;tY();let n=l[e.rowIdx],r=ea(ta,e);t&&t0(e)?ts({...e,mode:"EDIT",row:n,originalRow:n}):r?u(eo(eY.current)):(tf.current=!0,ts({...e,mode:"SELECT"})),Z&&!r&&Z({rowIdx:e.rowIdx,row:n,column:eJ[e.idx]})}function t2(e){let{key:t,shiftKey:n}=e,r="NONE";if("Tab"===t){if(function({maxColIdx:e,minRowIdx:t,maxRowIdx:n,selectedPosition:{rowIdx:r,idx:i},shiftKey:o}){return o?0===i&&r===t:i===e&&r===n}({shiftKey:n,maxColIdx:tM,minRowIdx:tr,maxRowIdx:to,selectedPosition:ta})){tY();return}r="CHANGE_ROW"}e.preventDefault();let i=function(e,t,n){let{idx:r,rowIdx:i}=ta,o=tL&&-1===r;switch(e){case"ArrowUp":return{idx:r,rowIdx:i-1};case"ArrowDown":return{idx:r,rowIdx:i+1};case tb:return{idx:r-1,rowIdx:i};case ty:return{idx:r+1,rowIdx:i};case"Tab":return{idx:r+(n?-1:1),rowIdx:i};case"Home":if(o)return{idx:r,rowIdx:tr};return{idx:0,rowIdx:t?tr:i};case"End":if(o)return{idx:r,rowIdx:to};return{idx:tM,rowIdx:t?to:i};case"PageUp":{if(ta.rowIdx===tr)return ta;let e=tI(i)+t_(i)-tg;return{idx:r,rowIdx:e>0?tT(e):0}}case"PageDown":{if(ta.rowIdx>=l.length)return ta;let e=tI(i)+tg;return{idx:r,rowIdx:e<tO?tT(e):l.length-1}}default:return ta}}(t,f(e),n);ea(ta,i)||t1(function({moveUp:e,moveNext:t,cellNavigationMode:n,columns:r,colSpanColumns:i,rows:o,topSummaryRows:a,bottomSummaryRows:l,minRowIdx:u,mainHeaderRowIdx:c,maxRowIdx:d,currentPosition:{idx:f,rowIdx:h},nextPosition:p,lastFrozenColumnIndex:g,isCellWithinBounds:v}){let{idx:m,rowIdx:b}=p,y=r.length,x=e=>{for(let t of i){let n=t.idx;if(n>m)break;let r=function({rows:e,topSummaryRows:t,bottomSummaryRows:n,rowIdx:r,mainHeaderRowIdx:i,lastFrozenColumnIndex:o,column:a}){let l=t?.length??0;return r===i?s(a,o,{type:"HEADER"}):t&&r>i&&r<=l+i?s(a,o,{type:"SUMMARY",row:t[r+l]}):r>=0&&r<e.length?s(a,o,{type:"ROW",row:e[r]}):n?s(a,o,{type:"SUMMARY",row:n[r-e.length]}):void 0}({rows:o,topSummaryRows:a,bottomSummaryRows:l,rowIdx:b,mainHeaderRowIdx:c,lastFrozenColumnIndex:g,column:t});if(r&&m>n&&m<r+n){m=n+(e?r:0);break}}},w=e=>e.level+c;if(v(p)&&(x(t),b<c&&(()=>{if(t){let e=r[m].parent;for(;void 0!==e;){let t=w(e);if(b===t){m=e.idx+e.colSpan;break}e=e.parent}}else if(e){let e=r[m].parent,t=!1;for(;void 0!==e;){let n=w(e);if(b>=n){m=e.idx,b=n,t=!0;break}e=e.parent}t||(m=f,b=h)}})()),"CHANGE_ROW"===n){let e=m===y,t=-1===m;e?b!==d&&(m=0,b+=1):t&&(b!==u&&(b-=1,m=y-1),x(!1))}if(b<c){let e=r[m].parent,t=b;for(b=c;void 0!==e;){let n=w(e);n>=t&&(b=n,m=e.idx),e=e.parent}}return{idx:m,rowIdx:b}}({moveUp:"ArrowUp"===t,moveNext:t===ty||"Tab"===t&&!n,columns:eJ,colSpanColumns:e0,rows:l,topSummaryRows:p,bottomSummaryRows:g,minRowIdx:tr,mainHeaderRowIdx:ti,maxRowIdx:to,lastFrozenColumnIndex:e1,cellNavigationMode:r,currentPosition:ta,nextPosition:i,isCellWithinBounds:tQ}))}function t5(){let e=eo(eY.current);null!==e&&(u(e),(e.querySelector('[tabindex="0"]')??e).focus({preventScroll:!0}))}function t4(e){let t=-1===ta.idx?void 0:eJ[ta.idx];return void 0===t||ta.rowIdx!==e||tP.includes(t)?tP:ta.idx>e4?[...tP,t]:[...tP.slice(0,e1+1),t,...tP.slice(e1+1)]}(ta.idx>tM||ta.rowIdx>to)&&(ts({idx:-1,rowIdx:tr-1,mode:"SELECT"}),tG(void 0));let t3=`repeat(${e2}, ${eO}px)`;e7>0&&(t3+=` repeat(${e7}, ${eC}px)`),l.length>0&&(t3+=tC),e9>0&&(t3+=` repeat(${e9}, ${eC}px)`);let t6=-1===ta.idx&&ta.rowIdx!==tr-1;return(0,a.jsxs)("div",{role:eS,"aria-label":em,"aria-labelledby":eb,"aria-describedby":ey,"aria-multiselectable":!!tv||void 0,"aria-colcount":eJ.length,"aria-rowcount":tx,className:o("rdg rnvodz57-0-0-beta-40",ef,eW&&"rdg-viewport-dragging vlqv91k7-0-0-beta-40"),style:{...eh,scrollPaddingInlineStart:ta.idx>e1||eG?.idx!==void 0?`${e8}px`:void 0,scrollPaddingBlock:tX(ta.rowIdx)||eG?.rowIdx!==void 0?`${tp+e7*eC}px ${e9*eC}px`:void 0,gridTemplateColumns:tR,gridTemplateRows:t3,"--rdg-header-row-height":`${eO}px`,"--rdg-summary-row-height":`${eC}px`,"--rdg-sign":tm?-1:1,...e6},dir:eA,ref:eY,onScroll:function(e){let{scrollTop:t,scrollLeft:n}=e.currentTarget;(0,i.flushSync)(()=>{eM(t),eD(k(n))}),Q?.(e)},onKeyDown:function(e){let{idx:t,rowIdx:n,mode:r}=ta;if("EDIT"===r)return;if(K&&tX(n)){let r=l[n],i=c(e);if(K({mode:"SELECT",row:r,column:eJ[t],rowIdx:n,selectCell:t1},i),i.isGridDefaultPrevented())return}if(!(e.target instanceof Element))return;let i=null!==e.target.closest(".rdg-cell"),o=th&&e.target===td.current;if(!i&&!o)return;let{keyCode:a}=e;if(tD&&(null!=eu||null!=el)&&f(e)){if(67===a){!function(){let{idx:e,rowIdx:t}=ta,n=l[t],r=eJ[e].key;eB({row:n,columnKey:r}),el?.({sourceRow:n,sourceColumnKey:r})}();return}if(86===a){!function(){if(!eu||!m||null===eU||!t0(ta))return;let{idx:e,rowIdx:t}=ta,n=eJ[e],r=l[t],i=eu({sourceRow:eU.row,sourceColumnKey:eU.columnKey,targetRow:r,targetColumnKey:n.key});tZ(n,t,i)}();return}}switch(e.key){case"Escape":eB(null);return;case"ArrowUp":case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"Tab":case"Home":case"End":case"PageUp":case"PageDown":t2(e);break;default:!function(e){if(!tD)return;let t=l[ta.rowIdx],{key:n,shiftKey:r}=e;if(tv&&r&&" "===n){O(v);let n=v(t);tK({type:"ROW",row:t,checked:!P.has(n),isShiftClick:!1}),e.preventDefault();return}t0(ta)&&!d.has(e.key)&&ts(({idx:e,rowIdx:n})=>({idx:e,rowIdx:n,mode:"EDIT",row:t,originalRow:t}))}(e)}},"data-testid":ew,children:[(0,a.jsx)(R,{value:tw,children:(0,a.jsxs)(M,{value:tW,children:[(0,a.jsxs)(N,{value:tE,children:[Array.from({length:tn},(e,t)=>(0,a.jsx)(X,{rowIdx:t+1,level:-tn+t,columns:t4(tr+t),selectedCellIdx:ta.rowIdx===tr+t?ta.idx:void 0,selectCell:tq},t)),(0,a.jsx)(Y,{rowIdx:e2,columns:t4(ti),onColumnResize:tF,onColumnsReorder:tV,sortColumns:B,onSortColumnsChange:tj,lastFrozenColumnIndex:e1,selectedCellIdx:ta.rowIdx===ti?ta.idx:void 0,selectCell:tq,shouldFocusGrid:!tL,direction:eA})]}),0===l.length&&eP?eP:(0,a.jsxs)(a.Fragment,{children:[p?.map((e,t)=>{let n=e2+1+t,r=ti+1+t,i=ta.rowIdx===r;return a.jsx(ei,{"aria-rowindex":n,rowIdx:r,gridRowStart:n,row:e,top:tp+eC*t,bottom:void 0,viewportColumns:t4(r),lastFrozenColumnIndex:e1,selectedCellIdx:i?ta.idx:void 0,isTop:!0,showBorder:t===e7-1,selectCell:t$},t)}),function(){let e=[],{idx:t,rowIdx:n}=ta,r=tD&&n<tS?tS-1:tS,o=tD&&n>tk?tk+1:tk;for(let u=r;u<=o;u++){let r=u===tS-1||u===tk+1,o=r?n:u,c=tP,d=-1===t?void 0:eJ[t];void 0!==d&&(c=r?[d]:t4(o));let f=l[o],h=tt+o+1,p=o,g=!1;"function"==typeof v&&(p=v(f),g=P?.has(p)??!1),e.push(eI(p,{"aria-rowindex":tt+o+1,"aria-selected":tv?g:void 0,rowIdx:o,row:f,viewportColumns:c,isRowSelected:g,onCellClick:tz,onCellDoubleClick:tU,onCellContextMenu:tB,rowClass:ep,gridRowStart:h,height:t_(o),copiedCellIdx:null!==eU&&eU.row===f?eJ.findIndex(e=>e.key===eU.columnKey):void 0,selectedCellIdx:n===o?t:void 0,draggedOverCellIdx:function(e){if(void 0===e$)return;let{rowIdx:t}=ta;return(t<e$?t<e&&e<=e$:t>e&&e>=e$)?ta.idx:void 0}(o),setDraggedOverRowIdx:eW?tG:void 0,lastFrozenColumnIndex:e1,onRowChange:tH,selectCell:t$,selectedCellEditor:function(e){if(ta.rowIdx!==e||"SELECT"===ta.mode)return;let{idx:t,row:n}=ta,r=eJ[t],o=s(r,e1,{type:"ROW",row:n}),u=e=>{tf.current=e,ts(({idx:e,rowIdx:t})=>({idx:e,rowIdx:t,mode:"SELECT"}))};return l[ta.rowIdx]!==ta.originalRow&&u(!1),(0,a.jsx)(U,{column:r,colSpan:o,row:n,rowIdx:e,onRowChange:(e,t,n)=>{t?(0,i.flushSync)(()=>{tZ(r,ta.rowIdx,e),u(n)}):ts(t=>({...t,row:e}))},closeEditor:u,onKeyDown:K,navigate:t2},r.key)}(o)}))}return e}(),g?.map((e,t)=>{let n=tt+l.length+t+1,r=l.length+t,i=ta.rowIdx===r,o=tg>tO?eQ-eC*(g.length-t):void 0,s=void 0===o?eC*(g.length-1-t):void 0;return a.jsx(ei,{"aria-rowindex":tx-e9+t+1,rowIdx:r,gridRowStart:n,row:e,top:o,bottom:s,viewportColumns:t4(r),lastFrozenColumnIndex:e1,selectedCellIdx:i?ta.idx:void 0,isTop:!1,showBorder:0===t,selectCell:t$},t)})]})]})}),function(){if(null==es||"EDIT"===ta.mode||!tJ(ta))return;let e=eJ[ta.idx];if(null==e.renderEditCell||!1===e.editable)return;let t=eZ(e);return(0,a.jsx)(z,{gridRowStart:tt+ta.rowIdx+1,rows:l,column:e,columnWidth:t,selectedPosition:ta,isCellEditable:t0,latestDraggedOverRowIdx:tu,onRowsChange:m,onClick:t5,onFill:es,setDragging:eH,setDraggedOverRowIdx:tG})}(),tP.map(({key:e,idx:t,minWidth:n,maxWidth:r})=>(0,a.jsx)("div",{className:"mlln6zg7-0-0-beta-40",style:{gridColumnStart:t+1,minWidth:n,maxWidth:r},"data-measuring-cell-key":e},e)),th&&(0,a.jsx)("div",{ref:td,tabIndex:t6?0:-1,className:o("f1lsfrzw7-0-0-beta-40",t6&&["r190mhd37-0-0-beta-40",-1!==e1&&"r139qu9m7-0-0-beta-40"],!tX(ta.rowIdx)&&"f1cte0lg7-0-0-beta-40"),style:{gridRowStart:ta.rowIdx+tt+1}}),null!==eG&&(0,a.jsx)(et,{scrollToPosition:eG,setScrollToCellPosition:eK,gridElement:eY.current})]})});function el(e){e?.focus(),e?.select()}function eu({row:e,column:t,onRowChange:n,onClose:r}){return(0,a.jsx)("input",{className:"rdg-text-editor t7vyx3i7-0-0-beta-40",ref:el,value:e[t.key],onChange:r=>n({...e,[t.key]:r.target.value}),onBlur:()=>r(!0,!1)})}},9497:function(e,t,n){"use strict";n.d(t,{w_:function(){return c}});var r=n(97129),i={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},o=r.createContext&&r.createContext(i),a=["attr","size","title"];function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach(function(t){var r,i;r=t,i=n[t],(r=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(r))in e?Object.defineProperty(e,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[r]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function c(e){return t=>r.createElement(d,s({attr:u({},e.attr)},t),function e(t){return t&&t.map((t,n)=>r.createElement(t.tag,u({key:n},t.attr),e(t.child)))}(e.child))}function d(e){var t=t=>{var n,{attr:i,size:o,title:l}=e,c=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,a),d=o||t.size||"1em";return t.className&&(n=t.className),e.className&&(n=(n?n+" ":"")+e.className),r.createElement("svg",s({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,i,c,{className:n,style:u(u({color:e.color||t.color},t.style),e.style),height:d,width:d,xmlns:"http://www.w3.org/2000/svg"}),l&&r.createElement("title",null,l),e.children)};return void 0!==o?r.createElement(o.Consumer,null,e=>t(e)):t(i)}},29289:function(e,t,n){"use strict";n.d(t,{m9:function(){return i}});var r=n(97129);function i(){let[e,t]=(0,r.useState)(null);return[e,(0,r.useCallback)(async e=>{if(!(null==navigator?void 0:navigator.clipboard))return console.warn("Clipboard not supported"),!1;try{return await navigator.clipboard.writeText(e),t(e),!0}catch(e){return console.warn("Copy failed",e),t(null),!1}},[])]}n(45636),"undefined"!=typeof window?r.useLayoutEffect:r.useEffect},54284:function(e,t,n){"use strict";n.d(t,{l_:function(){return C},AW:function(){return S},F0:function(){return x},rs:function(){return O},TH:function(){return m},yj:function(){return y}});var r=n(22715),i=n(13847);let o=(e,t)=>t.toLowerCase().indexOf(e.toLowerCase())?"~"+t:t.slice(e.length)||"/",a=(e="")=>"/"===e?"":e,s=(e,t)=>"~"===e[0]?e.slice(1):a(t)+e,l=(e="",t)=>o(u(a(e)),u(t)),u=e=>{try{return decodeURI(e)}catch(t){return e}},c={hook:r.tL,searchHook:r.Rx,parser:function(e,t){if(e instanceof RegExp)return{keys:!1,pattern:e};var n,r,i,o,a=[],s="",l=e.split("/");for(l[0]||l.shift();i=l.shift();)"*"===(n=i[0])?(a.push(n),s+="?"===i[1]?"(?:/(.*))?":"/(.*)"):":"===n?(r=i.indexOf("?",1),o=i.indexOf(".",1),a.push(i.substring(1,~r?r:~o?o:i.length)),s+=~r&&!~o?"(?:/([^/]+?))?":"/([^/]+?)",~o&&(s+=(~r?"?":"")+"\\"+i.substring(o))):s+="/"+i;return{keys:a,pattern:RegExp("^"+s+(t?"(?=$|/)":"/?$"),"i")}},base:"",ssrPath:void 0,ssrSearch:void 0,ssrContext:void 0,hrefs:e=>e},d=(0,i.kr)(c),f=()=>(0,i.qp)(d),h={},p=(0,i.kr)(h),g=()=>(0,i.qp)(p),v=e=>{let[t,n]=e.hook(e);return[l(e.base,t),(0,i.zX)((t,r)=>n(s(t,e.base),r))]},m=()=>v(f()),b=(e,t,n,r)=>{let{pattern:i,keys:o}=t instanceof RegExp?{keys:!1,pattern:t}:e(t||"*",r),a=i.exec(n)||[],[s,...l]=a;return void 0!==s?[!0,(()=>{let e=!1!==o?Object.fromEntries(o.map((e,t)=>[e,l[t]])):a.groups,t={...l};return e&&Object.assign(t,e),t})(),...r?[s]:[]]:[!1,null]},y=e=>b(f().parser,e,m()[0]),x=({children:e,...t})=>{let n=f(),r=t.hook?c:n,o=r,[a,s]=t.ssrPath?.split("?")??[];s&&(t.ssrSearch=s,t.ssrPath=a),t.hrefs=t.hrefs??t.hook?.hrefs;let l=(0,i.sO)({}),u=l.current,h=u;for(let e in r){let n="base"===e?r[e]+(t[e]||""):t[e]||r[e];u===h&&n!==h[e]&&(l.current=h={...h}),h[e]=n,(n!==r[e]||n!==o[e])&&(o=h)}return(0,i.az)(d.Provider,{value:o,children:e})},w=({children:e,component:t},n)=>t?(0,i.az)(t,{params:n}):"function"==typeof e?e(n):e,E=e=>{let t=(0,i.sO)(h),n=t.current;return t.current=Object.keys(e).length!==Object.keys(n).length||Object.entries(e).some(([e,t])=>t!==n[e])?e:n},S=({path:e,nest:t,match:n,...r})=>{let o=f(),[a]=v(o),[s,l,u]=n??b(o.parser,e,a,t),c=E({...g(),...l});if(!s)return null;let d=u?(0,i.az)(x,{base:u},w(r,c)):w(r,c);return(0,i.az)(p.Provider,{value:c,children:d})};(0,i.Gp)((e,t)=>{let n=f(),[r,o]=v(n),{to:a="",href:s=a,onClick:l,asChild:u,children:c,className:d,replace:h,state:p,...g}=e,m=(0,i.zX)(t=>{t.ctrlKey||t.metaKey||t.altKey||t.shiftKey||0!==t.button||(l?.(t),t.defaultPrevented||(t.preventDefault(),o(s,e)))}),b=n.hrefs("~"===s[0]?s.slice(1):n.base+s,n);return u&&(0,i.l$)(c)?(0,i.Tm)(c,{onClick:m,href:b}):(0,i.az)("a",{...g,onClick:m,href:b,className:d?.call?d(r===s):d,children:c,ref:t})});let k=e=>Array.isArray(e)?e.flatMap(e=>k(e&&e.type===i.HY?e.props.children:e)):[e],O=({children:e,location:t})=>{let n=f(),[r]=v(n);for(let o of k(e)){let e=0;if((0,i.l$)(o)&&(e=b(n.parser,o.props.path,t||r,o.props.nest))[0])return(0,i.Tm)(o,{match:e})}return null},C=e=>{let{to:t,href:n=t}=e,r=f(),[,o]=v(r),a=(0,i.zX)(()=>o(t||n,e)),{ssrContext:s}=r;return(0,i.LI)(()=>{a()},[]),s&&(s.redirectTo=t),null}},13847:function(e,t,n){"use strict";n.d(t,{$N:function(){return o.useSyncExternalStore},Gp:function(){return i.forwardRef},HY:function(){return i.Fragment},LI:function(){return s},Tm:function(){return i.cloneElement},az:function(){return i.createElement},kr:function(){return i.createContext},l$:function(){return i.isValidElement},qp:function(){return i.useContext},sO:function(){return i.useRef},zX:function(){return u}});var r,i=n(97129),o=n(86124);let a=(r||(r=n.t(i,2))).useInsertionEffect,s="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?i.useLayoutEffect:i.useEffect,l=a||s,u=e=>{let t=i.useRef([e,(...e)=>t[0](...e)]).current;return l(()=>{t[0]=e}),t[1]}},22715:function(e,t,n){"use strict";n.d(t,{LD:function(){return l},Rx:function(){return c},c4:function(){return h},tL:function(){return p}});var r=n(13847);let i="pushState",o="replaceState",a=["popstate",i,o,"hashchange"],s=e=>{for(let t of a)addEventListener(t,e);return()=>{for(let t of a)removeEventListener(t,e)}},l=(e,t)=>(0,r.$N)(s,e,t),u=()=>location.search,c=({ssrSearch:e=""}={})=>l(u,()=>e),d=()=>location.pathname,f=({ssrPath:e}={})=>l(d,e?()=>e:d),h=(e,{replace:t=!1,state:n=null}={})=>history[t?o:i](n,"",e),p=(e={})=>[f(e),h],g=Symbol.for("wouter_v3");if("undefined"!=typeof history&&void 0===window[g]){for(let e of[i,o]){let t=history[e];history[e]=function(){let n=t.apply(this,arguments),r=new Event(e);return r.arguments=arguments,dispatchEvent(r),n}}Object.defineProperty(window,g,{value:!0})}},67723:function(e,t,n){"use strict";function r(e,t){if(Object.is(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(let[n,r]of e)if(!Object.is(r,t.get(n)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}let n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let r of n)if(!Object.prototype.hasOwnProperty.call(t,r)||!Object.is(e[r],t[r]))return!1;return!0}n.d(t,{X:function(){return r}})},38800:function(e,t,n){"use strict";n.d(t,{F:function(){return f},s:function(){return c}});var r=n(97129),i=n(5618);let o=e=>{let t;let n=new Set,r=(e,r)=>{let i="function"==typeof e?e(t):e;if(!Object.is(i,t)){let e=t;t=(null!=r?r:"object"!=typeof i||null===i)?i:Object.assign({},t,i),n.forEach(n=>n(t,e))}},i=()=>t,o={setState:r,getState:i,getInitialState:()=>a,subscribe:e=>(n.add(e),()=>n.delete(e)),destroy:()=>{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."),n.clear()}},a=t=e(r,i,o);return o},a=e=>e?o(e):o,{useDebugValue:s}=r,{useSyncExternalStoreWithSelector:l}=i,u=e=>e;function c(e,t=u,n){let r=l(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return s(r),r}let d=(e,t)=>{let n=a(e),r=(e,r=t)=>c(n,e,r);return Object.assign(r,n),r},f=(e,t)=>e?d(e,t):d}}]);