@graphhopper/graphhopper-maps-bundle 0.0.0-013290ebfc49eed6592e45744921be3a2c603353

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.
Files changed (78) hide show
  1. package/LICENSE.txt +203 -0
  2. package/README.md +38 -0
  3. package/dist/134.bundle.js +1 -0
  4. package/dist/218.bundle.js +1 -0
  5. package/dist/242.bundle.js +1 -0
  6. package/dist/35.bundle.js +1 -0
  7. package/dist/384.bundle.js +1 -0
  8. package/dist/399.bundle.js +2 -0
  9. package/dist/399.bundle.js.LICENSE.txt +1 -0
  10. package/dist/666.bundle.js +1 -0
  11. package/dist/76.bundle.js +1 -0
  12. package/dist/929.bundle.js +1 -0
  13. package/dist/assets/android-chrome-144x144.png +0 -0
  14. package/dist/assets/android-chrome-192x192.png +0 -0
  15. package/dist/assets/android-chrome-256x256.png +0 -0
  16. package/dist/assets/android-chrome-36x36.png +0 -0
  17. package/dist/assets/android-chrome-384x384.png +0 -0
  18. package/dist/assets/android-chrome-48x48.png +0 -0
  19. package/dist/assets/android-chrome-512x512.png +0 -0
  20. package/dist/assets/android-chrome-72x72.png +0 -0
  21. package/dist/assets/android-chrome-96x96.png +0 -0
  22. package/dist/assets/apple-touch-icon-1024x1024.png +0 -0
  23. package/dist/assets/apple-touch-icon-114x114.png +0 -0
  24. package/dist/assets/apple-touch-icon-120x120.png +0 -0
  25. package/dist/assets/apple-touch-icon-144x144.png +0 -0
  26. package/dist/assets/apple-touch-icon-152x152.png +0 -0
  27. package/dist/assets/apple-touch-icon-167x167.png +0 -0
  28. package/dist/assets/apple-touch-icon-180x180.png +0 -0
  29. package/dist/assets/apple-touch-icon-57x57.png +0 -0
  30. package/dist/assets/apple-touch-icon-60x60.png +0 -0
  31. package/dist/assets/apple-touch-icon-72x72.png +0 -0
  32. package/dist/assets/apple-touch-icon-76x76.png +0 -0
  33. package/dist/assets/apple-touch-icon-precomposed.png +0 -0
  34. package/dist/assets/apple-touch-icon.png +0 -0
  35. package/dist/assets/apple-touch-startup-image-1125x2436.png +0 -0
  36. package/dist/assets/apple-touch-startup-image-1136x640.png +0 -0
  37. package/dist/assets/apple-touch-startup-image-1170x2532.png +0 -0
  38. package/dist/assets/apple-touch-startup-image-1242x2208.png +0 -0
  39. package/dist/assets/apple-touch-startup-image-1242x2688.png +0 -0
  40. package/dist/assets/apple-touch-startup-image-1284x2778.png +0 -0
  41. package/dist/assets/apple-touch-startup-image-1334x750.png +0 -0
  42. package/dist/assets/apple-touch-startup-image-1536x2048.png +0 -0
  43. package/dist/assets/apple-touch-startup-image-1620x2160.png +0 -0
  44. package/dist/assets/apple-touch-startup-image-1668x2224.png +0 -0
  45. package/dist/assets/apple-touch-startup-image-1668x2388.png +0 -0
  46. package/dist/assets/apple-touch-startup-image-1792x828.png +0 -0
  47. package/dist/assets/apple-touch-startup-image-2048x1536.png +0 -0
  48. package/dist/assets/apple-touch-startup-image-2048x2732.png +0 -0
  49. package/dist/assets/apple-touch-startup-image-2160x1620.png +0 -0
  50. package/dist/assets/apple-touch-startup-image-2208x1242.png +0 -0
  51. package/dist/assets/apple-touch-startup-image-2224x1668.png +0 -0
  52. package/dist/assets/apple-touch-startup-image-2388x1668.png +0 -0
  53. package/dist/assets/apple-touch-startup-image-2436x1125.png +0 -0
  54. package/dist/assets/apple-touch-startup-image-2532x1170.png +0 -0
  55. package/dist/assets/apple-touch-startup-image-2688x1242.png +0 -0
  56. package/dist/assets/apple-touch-startup-image-2732x2048.png +0 -0
  57. package/dist/assets/apple-touch-startup-image-2778x1284.png +0 -0
  58. package/dist/assets/apple-touch-startup-image-640x1136.png +0 -0
  59. package/dist/assets/apple-touch-startup-image-750x1334.png +0 -0
  60. package/dist/assets/apple-touch-startup-image-828x1792.png +0 -0
  61. package/dist/assets/browserconfig.xml +12 -0
  62. package/dist/assets/favicon-16x16.png +0 -0
  63. package/dist/assets/favicon-32x32.png +0 -0
  64. package/dist/assets/favicon-48x48.png +0 -0
  65. package/dist/assets/favicon.ico +0 -0
  66. package/dist/assets/manifest.webmanifest +67 -0
  67. package/dist/assets/mstile-144x144.png +0 -0
  68. package/dist/assets/mstile-150x150.png +0 -0
  69. package/dist/assets/mstile-310x150.png +0 -0
  70. package/dist/assets/mstile-310x310.png +0 -0
  71. package/dist/assets/mstile-70x70.png +0 -0
  72. package/dist/assets/yandex-browser-50x50.png +0 -0
  73. package/dist/assets/yandex-browser-manifest.json +9 -0
  74. package/dist/bundle.js +2 -0
  75. package/dist/bundle.js.LICENSE.txt +37 -0
  76. package/dist/config.js +1 -0
  77. package/dist/index.html +24 -0
  78. package/package.json +11 -0
package/dist/bundle.js ADDED
@@ -0,0 +1,2 @@
1
+ /*! For license information please see bundle.js.LICENSE.txt */
2
+ (()=>{var t,e,n={3200:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r,i=n(9526);function o(){return o=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},o.apply(this,arguments)}const a=function(t){return i.createElement("svg",o({"aria-hidden":"true","data-prefix":"fas","data-icon":"layer-group",className:"layer-group-solid_svg__svg-inline--fa layer-group-solid_svg__fa-layer-group layer-group-solid_svg__fa-w-16",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",role:"img"},t),r||(r=i.createElement("path",{fill:"currentColor",d:"m12.41 148.02 232.94 105.67c6.8 3.09 14.49 3.09 21.29 0l232.94-105.67c16.55-7.51 16.55-32.52 0-40.03L266.65 2.31a25.607 25.607 0 0 0-21.29 0L12.41 107.98c-16.55 7.51-16.55 32.53 0 40.04zm487.18 88.28-58.09-26.33-161.64 73.27c-7.56 3.43-15.59 5.17-23.86 5.17s-16.29-1.74-23.86-5.17L70.51 209.97l-58.1 26.33c-16.55 7.5-16.55 32.5 0 40l232.94 105.59c6.8 3.08 14.49 3.08 21.29 0L499.59 276.3c16.55-7.5 16.55-32.5 0-40zm0 127.8-57.87-26.23-161.86 73.37c-7.56 3.43-15.59 5.17-23.86 5.17s-16.29-1.74-23.86-5.17L70.29 337.87 12.41 364.1c-16.55 7.5-16.55 32.5 0 40l232.94 105.59c6.8 3.08 14.49 3.08 21.29 0L499.59 404.1c16.55-7.5 16.55-32.5 0-40z"})))}},5106:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r,i=n(9526);function o(){return o=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},o.apply(this,arguments)}const a=function(t){return i.createElement("svg",o({xmlns:"http://www.w3.org/2000/svg",height:48,width:48,viewBox:"0 0 50 50",role:"img"},t),r||(r=i.createElement("path",{d:"M11 40q-1.2 0-2.1-.9Q8 38.2 8 37v-7.15h3V37h26v-7.15h3V37q0 1.2-.9 2.1-.9.9-2.1.9Zm13-7.65-9.65-9.65 2.15-2.15 6 6V8h3v18.55l6-6 2.15 2.15Z"})))}},3874:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>d});var r,i,o,a,s,l,u,c,h=n(9526);function p(){return p=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},p.apply(this,arguments)}const d=function(t){return h.createElement("svg",p({viewBox:"0 0 260 50",width:260,height:30,xmlns:"http://www.w3.org/2000/svg",role:"img"},t),r||(r=h.createElement("g",{fill:"#ccc"},h.createElement("path",{d:"M118.239 24.82v13.557h-6.462V28.04c0-1.948-.042-3.286-.125-4.015-.072-.729-.204-1.266-.395-1.61a2.705 2.705 0 0 0-1.023-1.074 2.752 2.752 0 0 0-1.472-.397c-1.34 0-2.393.576-3.159 1.73-.766 1.139-1.149 2.723-1.149 4.75v10.953H98.03c-5.456-18.695 6.405-40.603 6.425-19.003.97-1.299 1.999-2.253 3.087-2.862 1.09-.623 2.292-.935 3.608-.935 2.322 0 4.08.789 5.277 2.366 1.209 1.577 1.813 3.87 1.813 6.878M145.469 20.34c-3.726 6.104-.904 16.197 4.033 18.054H138.3v-12.83c0-2.02-.047-3.409-.14-4.164-.08-.756-.226-1.313-.44-1.67a2.903 2.903 0 0 0-1.138-1.113c-.48-.275-1.025-.413-1.638-.413-1.491 0-2.663.598-3.516 1.794-.852 1.182-1.278 2.824-1.278 4.927v13.47h-7.152c-6.071-19.39 7.071-43.55 7.152-21.82 1.079-1.346 2.224-2.335 3.436-2.968 1.212-.646 2.55-.969 4.015-.969 2.583 0 4.541.818 5.873 2.454.797.858 1.88 2.74 2.017 4.47"}),h.createElement("path",{d:"M156.659 20.48c-1.372 0-2.422.557-3.148 1.67-.715 1.101-1.072 2.694-1.072 4.78 0 2.084.357 3.683 1.072 4.797.726 1.1 1.776 1.651 3.148 1.651 1.35 0 2.381-.55 3.096-1.65.715-1.115 1.073-2.714 1.073-4.799 0-2.085-.358-3.678-1.073-4.778-.715-1.114-1.747-1.67-3.096-1.671m0-4.973c3.333 0 5.933 1.01 7.801 3.03 1.88 2.02 2.82 4.818 2.82 8.392s-.94 6.371-2.82 8.392c-1.868 2.02-4.468 3.03-7.801 3.03-3.344 0-5.962-1.01-7.853-3.03-1.88-2.02-2.82-4.818-2.82-8.392s.94-6.371 2.82-8.392c1.891-2.02 4.509-3.03 7.853-3.03"}),h.createElement("path",{d:"M175.189 34.62v11.385c-14.984 2.813-5.88-24.53 2.784-29.547 1.019-.607 2.19-.91 3.514-.91 2.343 0 4.267 1.065 5.773 3.195 1.505 2.117 2.257 4.847 2.257 8.19 0 3.343-.752 6.08-2.257 8.21-1.506 2.116-3.43 3.175-5.773 3.175-1.324 0-2.495-.297-3.514-.89-1.018-.608-1.947-1.543-2.784-2.808m4.04-14.038c-1.301 0-2.303.548-3.004 1.645-.69 1.085-1.036 2.653-1.036 4.705 0 2.053.345 3.628 1.036 4.725.701 1.084 1.703 1.626 3.005 1.626 1.301 0 2.291-.542 2.97-1.626.69-1.084 1.036-2.66 1.036-4.725 0-2.065-.345-3.64-1.035-4.724-.68-1.084-1.67-1.626-2.971-1.626M247.119 21.34c-1.797 0-3.228.538-4.204 1.7-.964 1.15-1.446 2.804-1.446 4.96v10.117c-16.799 2.842-4.274-17.8 3.086-21.486 1.782-.81 3.284-1.047 4.961-.96 2.758-.027 2.22 3.442 1.476 5.72M218.249 18.13c1.806-1.43 5.043-2.78 8.148-2.59 3.656.226 5.387 2.173 6.333 4.28 1.025 2.938.94 6.068-.747 8.114-3.247 3.473-6.536 3.639-11.171 2.538 0 0 1.979 2.508 4.938 5.691-4.888 4.869-10.733.475-11.814-4.518-.86-3.975-.024-10.079 4.314-13.515zm5.161 2.285c-1.541.03-2.232.519-2.936 1.228-.657.813-.71 1.812-.748 2.874-.05 1.405.41 2.368.903 2.87.794.705 1.846.85 2.922.849 1.036-.002 1.882-.264 2.53-.913.311-.362.987-1.089.965-2.863-.002-1.467-.333-2.303-.909-2.945-.917-.842-1.64-1.063-2.556-1.089M50.509 21.37c-2.047 0-3.228.54-4.204 1.71-.964 1.156-1.446 2.819-1.446 4.987v10.17c-16.799 2.857-4.274-17.896 3.086-21.602 1.782-.815 3.284-1.053 4.961-.966 2.758-.026 2.22 3.461 1.476 5.752"}),h.createElement("path",{d:"M27.479 11.39c-3.53-3.949-9.117-4.201-12.908-1.616-2.728 1.907-4.671 4.846-5.83 8.818-1.158 3.972-1.108 7.527.149 10.666 3.315 6.812 9.042 7.113 15.514 5.886 0 0-2.094 4.523-3.623 7.642 7.77 7.645 12.59 1.003 13.302-7.188.714-8.192-1.733-19.477-6.604-24.207zm-2.905 3.813c1.725.526 2.862 1.582 3.412 3.17.54 1.567.453 3.57-.258 6.008-.71 2.438-1.714 4.17-3.009 5.194-1.305 1.005-2.82 1.244-4.545.719-1.725-.526-2.85-1.57-3.374-3.133-.539-1.567-.45-3.578.265-6.031.715-2.454 1.718-4.186 3.009-5.195 1.275-1.014 2.775-1.258 4.5-.732M197.409 34.69v11.385c-14.984 2.813-5.88-24.53 2.784-29.547 1.019-.607 2.19-.91 3.514-.91 2.343 0 4.267 1.065 5.773 3.195 1.505 2.117 2.258 4.847 2.258 8.19 0 3.343-.753 6.08-2.258 8.21-1.506 2.116-3.43 3.175-5.773 3.175-1.324 0-2.495-.297-3.514-.89-1.018-.608-1.946-1.543-2.784-2.808m4.04-14.038c-1.301 0-2.303.548-3.004 1.645-.69 1.085-1.036 2.653-1.036 4.705 0 2.053.345 3.628 1.036 4.725.701 1.084 1.703 1.626 3.005 1.626 1.301 0 2.291-.542 2.97-1.626.69-1.084 1.036-2.66 1.036-4.725 0-2.065-.345-3.64-1.035-4.724-.68-1.084-1.67-1.626-2.971-1.626M80.239 34.74v11.385c-14.984 2.813-5.88-24.53 2.784-29.547 1.019-.607 2.19-.91 3.514-.91 2.343 0 4.267 1.065 5.773 3.195 1.505 2.117 2.258 4.847 2.258 8.19 0 3.343-.753 6.08-2.258 8.21-1.506 2.116-3.43 3.175-5.773 3.175-1.324 0-2.495-.297-3.514-.89-1.018-.608-1.946-1.543-2.784-2.808m4.04-14.038c-1.301 0-2.303.548-3.004 1.645-.69 1.085-1.036 2.653-1.036 4.705 0 2.053.345 3.628 1.036 4.725.701 1.084 1.703 1.626 3.004 1.626 1.302 0 2.292-.542 2.972-1.626.69-1.084 1.035-2.66 1.035-4.725 0-2.065-.345-3.64-1.035-4.724-.68-1.084-1.67-1.626-2.972-1.626"}))),i||(i=h.createElement("path",{d:"M116.859 23.54v13.557h-6.462V26.76c0-1.948-.042-3.286-.125-4.015-.072-.729-.204-1.266-.395-1.61a2.705 2.705 0 0 0-1.023-1.074 2.752 2.752 0 0 0-1.472-.397c-1.34 0-2.393.576-3.159 1.73-.766 1.139-1.149 2.723-1.149 4.75v10.953H96.65c-5.456-18.695 6.405-40.603 6.425-19.003.97-1.299 1.999-2.253 3.087-2.862 1.09-.623 2.292-.935 3.608-.935 2.322 0 4.08.789 5.277 2.366 1.209 1.577 1.813 3.87 1.813 6.878M144.089 19.05c-3.726 6.104-.904 16.197 4.033 18.054H136.92v-12.83c0-2.02-.046-3.409-.14-4.164-.08-.756-.226-1.313-.44-1.67a2.903 2.903 0 0 0-1.138-1.113c-.48-.275-1.025-.413-1.638-.413-1.491 0-2.663.598-3.516 1.794-.852 1.182-1.278 2.824-1.278 4.927v13.47h-7.152c-6.071-19.39 7.071-43.55 7.152-21.82 1.079-1.346 2.224-2.335 3.436-2.968 1.212-.646 2.55-.969 4.015-.969 2.583 0 4.541.818 5.873 2.454.797.858 1.88 2.74 2.017 4.47"})),o||(o=h.createElement("path",{d:"M155.279 19.2c-1.372 0-2.422.557-3.148 1.67-.715 1.101-1.073 2.694-1.073 4.78 0 2.084.358 3.683 1.073 4.797.726 1.1 1.776 1.651 3.148 1.651 1.35 0 2.381-.55 3.096-1.65.715-1.115 1.073-2.714 1.073-4.799 0-2.085-.358-3.678-1.073-4.778-.715-1.114-1.747-1.67-3.096-1.671m0-4.973c3.333 0 5.933 1.01 7.801 3.03 1.88 2.02 2.82 4.818 2.82 8.392s-.94 6.371-2.82 8.392c-1.868 2.02-4.468 3.03-7.801 3.03-3.344 0-5.962-1.01-7.853-3.03-1.88-2.02-2.82-4.818-2.82-8.392s.94-6.371 2.82-8.392c1.891-2.02 4.509-3.03 7.853-3.03"})),a||(a=h.createElement("path",{d:"M173.809 33.33v11.385c-14.984 2.813-5.88-24.53 2.784-29.547 1.019-.607 2.19-.91 3.514-.91 2.343 0 4.267 1.065 5.773 3.195 1.505 2.117 2.257 4.847 2.257 8.19 0 3.343-.752 6.08-2.257 8.21-1.506 2.116-3.43 3.175-5.773 3.175-1.324 0-2.495-.297-3.514-.89-1.018-.608-1.946-1.543-2.784-2.808m4.04-14.038c-1.301 0-2.303.548-3.004 1.645-.69 1.085-1.036 2.653-1.036 4.705 0 2.053.345 3.628 1.036 4.725.701 1.084 1.703 1.626 3.005 1.626 1.301 0 2.291-.542 2.97-1.626.69-1.084 1.036-2.66 1.036-4.725 0-2.065-.345-3.64-1.035-4.724-.68-1.084-1.67-1.626-2.971-1.626M245.739 20.05c-1.797 0-3.228.538-4.204 1.7-.964 1.15-1.446 2.804-1.446 4.96v10.117c-16.799 2.842-4.274-17.8 3.086-21.486 1.782-.81 3.284-1.047 4.961-.96 2.758-.027 2.22 3.442 1.476 5.72M216.869 16.85c1.806-1.43 5.043-2.78 8.148-2.59 3.656.226 5.387 2.173 6.333 4.28 1.025 2.938.94 6.068-.747 8.114-3.247 3.473-6.536 3.639-11.171 2.538 0 0 1.979 2.508 4.938 5.691-4.888 4.869-10.733.475-11.814-4.518-.86-3.975-.024-10.079 4.314-13.515zm5.161 2.285c-1.541.03-2.232.519-2.936 1.228-.657.813-.71 1.812-.748 2.874-.05 1.405.41 2.368.903 2.87.794.705 1.846.85 2.922.849 1.036-.002 1.882-.264 2.53-.913.311-.362.987-1.089.965-2.863-.002-1.467-.333-2.303-.909-2.945-.917-.842-1.64-1.063-2.556-1.089M49.129 20.08c-2.047 0-3.228.54-4.204 1.71-.964 1.156-1.446 2.819-1.446 4.987v10.17c-16.799 2.857-4.274-17.896 3.086-21.602 1.782-.815 3.284-1.053 4.961-.966 2.758-.026 2.22 3.461 1.476 5.752"})),s||(s=h.createElement("path",{d:"M26.099 10.1c-3.53-3.949-9.117-4.201-12.908-1.616-2.728 1.907-4.671 4.846-5.83 8.818-1.158 3.972-1.108 7.527.149 10.666 3.315 6.812 9.042 7.113 15.514 5.886 0 0-2.094 4.523-3.623 7.642 7.77 7.645 12.59 1.003 13.302-7.188.714-8.192-1.733-19.477-6.604-24.207zm-2.905 3.813c1.725.526 2.862 1.582 3.412 3.17.54 1.567.453 3.57-.258 6.008-.71 2.438-1.714 4.17-3.009 5.194-1.305 1.005-2.82 1.244-4.545.719-1.725-.526-2.85-1.57-3.373-3.133-.54-1.567-.452-3.578.264-6.031.715-2.454 1.718-4.186 3.009-5.195 1.275-1.014 2.776-1.258 4.5-.732M196.029 33.4v11.385c-14.984 2.813-5.88-24.53 2.784-29.547 1.019-.607 2.19-.91 3.514-.91 2.343 0 4.267 1.065 5.773 3.195 1.505 2.117 2.258 4.847 2.258 8.19 0 3.343-.753 6.08-2.258 8.21-1.506 2.116-3.43 3.175-5.773 3.175-1.324 0-2.495-.297-3.514-.89-1.018-.608-1.946-1.543-2.784-2.808m4.04-14.038c-1.301 0-2.303.548-3.004 1.645-.69 1.085-1.036 2.653-1.036 4.705 0 2.053.345 3.628 1.036 4.725.701 1.084 1.703 1.626 3.005 1.626 1.301 0 2.291-.542 2.97-1.626.69-1.084 1.036-2.66 1.036-4.725 0-2.065-.345-3.64-1.035-4.724-.68-1.084-1.67-1.626-2.971-1.626M78.849 33.45v11.385c-14.984 2.813-5.88-24.53 2.784-29.547 1.019-.607 2.19-.91 3.514-.91 2.343 0 4.267 1.065 5.773 3.195 1.505 2.117 2.257 4.847 2.257 8.19 0 3.343-.752 6.08-2.257 8.21-1.506 2.116-3.43 3.175-5.773 3.175-1.324 0-2.495-.297-3.514-.89-1.018-.608-1.947-1.543-2.784-2.808m4.04-14.038c-1.301 0-2.303.548-3.004 1.645-.69 1.085-1.036 2.653-1.036 4.705 0 2.053.345 3.628 1.036 4.725.701 1.084 1.703 1.626 3.004 1.626 1.302 0 2.292-.542 2.971-1.626.69-1.084 1.036-2.66 1.036-4.725 0-2.065-.345-3.64-1.036-4.724-.679-1.084-1.669-1.626-2.97-1.626"})),l||(l=h.createElement("g",{fill:"#ccc"},h.createElement("path",{d:"M68.49 35.284c-1.644 1.535-4.681 3.097-7.702 3.137-3.556.047-5.373-1.737-6.442-3.735-1.205-2.807-1.349-5.884.138-8.014 2.893-3.645 6.065-4.049 10.634-3.308 0 0-2.098-2.315-5.194-5.222 4.381-5.134 9.077-1.296 10.485 3.523 1.121 3.837 2.034 9.93-1.918 13.62zm-4.85-1.802c.835.015 1.593-.453 2.223-1.2.578-.846.824-1.86.798-2.905-.022-.852-.193-1.637-.676-2.562-.6-.916-1.41-1.263-2.328-1.276-1.005-.014-1.647.303-2.227.988-.884 1.073-1.205 3.575-.135 5.607.45.759 1.048 1.394 2.218 1.352"}),h.createElement("path",{d:"m71.37 27.544.028 3.465c-.773 1.761-1.44 3.843-1.63 7.355h-3.121l-.044-2.607.882-7.866"}))),u||(u=h.createElement("path",{d:"M67.359 34.01c-1.645 1.535-4.682 3.097-7.702 3.137-3.557.047-5.374-1.737-6.443-3.735-1.205-2.807-1.349-5.884.138-8.014 2.893-3.645 6.065-4.049 10.634-3.308 0 0-2.098-2.315-5.194-5.222 4.381-5.134 9.078-1.296 10.485 3.523 1.121 3.837 2.034 9.93-1.918 13.62zm-4.85-1.802c.834.015 1.592-.453 2.222-1.2.579-.846.825-1.86.798-2.905-.021-.852-.192-1.637-.675-2.562-.601-.916-1.412-1.263-2.329-1.276-1.005-.014-1.771.49-2.351 1.175-.884 1.073-1.205 3.513-.136 5.545.45.759 1.173 1.27 2.343 1.227"})),c||(c=h.createElement("path",{d:"m70.239 26.27.028 3.465c-.774 1.761-1.44 3.843-1.63 7.355h-3.122l-.044-2.607.882-7.866"})))}},7666:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r,i=n(9526);function o(){return o=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},o.apply(this,arguments)}const a=function(t){return i.createElement("svg",o({xmlns:"http://www.w3.org/2000/svg",height:48,width:48,viewBox:"0 0 50 50",role:"img"},t),r||(r=i.createElement("path",{d:"M7.5 34q-.65 0-1.075-.425Q6 33.15 6 32.5q0-.65.425-1.075Q6.85 31 7.5 31q.65 0 1.075.425Q9 31.85 9 32.5q0 .65-.425 1.075Q8.15 34 7.5 34Zm0-8.5q-.65 0-1.075-.425Q6 24.65 6 24q0-.65.425-1.075Q6.85 22.5 7.5 22.5q.65 0 1.075.425Q9 23.35 9 24q0 .65-.425 1.075-.425.425-1.075.425Zm0-8.5q-.65 0-1.075-.425Q6 16.15 6 15.5q0-.65.425-1.075Q6.85 14 7.5 14q.65 0 1.075.425Q9 14.85 9 15.5q0 .65-.425 1.075Q8.15 17 7.5 17Zm7 17v-3H42v3Zm0-8.5v-3H42v3Zm0-8.5v-3H42v3Z"})))}},5601:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>s});var r,i,o=n(9526);function a(){return a=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},a.apply(this,arguments)}const s=function(t){return o.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",role:"img"},t),r||(r=o.createElement("path",{d:"M0 0h24v24H0V0z",fill:"none"})),i||(i=o.createElement("path",{fill:"currentColor",d:"M12 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm8.94 3A8.994 8.994 0 0 0 13 3.06V2c0-.55-.45-1-1-1s-1 .45-1 1v1.06A8.994 8.994 0 0 0 3.06 11H2c-.55 0-1 .45-1 1s.45 1 1 1h1.06A8.994 8.994 0 0 0 11 20.94V22c0 .55.45 1 1 1s1-.45 1-1v-1.06A8.994 8.994 0 0 0 20.94 13H22c.55 0 1-.45 1-1s-.45-1-1-1h-1.06zM12 19c-3.87 0-7-3.13-7-7s3.13-7 7-7 7 3.13 7 7-3.13 7-7 7z"})))}},7244:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r,i=n(9526);function o(){return o=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},o.apply(this,arguments)}const a=function(t){return i.createElement("svg",o({"data-prefix":"fas","data-icon":"minus-circle",className:"minus-circle-solid_svg__svg-inline--fa minus-circle-solid_svg__fa-minus-circle minus-circle-solid_svg__fa-w-16",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",role:"img"},t),r||(r=i.createElement("path",{fill:"currentColor",d:"M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zM124 296c-6.6 0-12-5.4-12-12v-56c0-6.6 5.4-12 12-12h264c6.6 0 12 5.4 12 12v56c0 6.6-5.4 12-12 12H124z"})))}},7245:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r,i=n(9526);function o(){return o=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},o.apply(this,arguments)}const a=function(t){return i.createElement("svg",o({"aria-hidden":"true","data-prefix":"fas","data-icon":"plus-circle",className:"plus-circle-solid_svg__svg-inline--fa plus-circle-solid_svg__fa-plus-circle plus-circle-solid_svg__fa-w-16",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",role:"img"},t),r||(r=i.createElement("path",{fill:"currentColor",d:"M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm144 276c0 6.6-5.4 12-12 12h-92v92c0 6.6-5.4 12-12 12h-56c-6.6 0-12-5.4-12-12v-92h-92c-6.6 0-12-5.4-12-12v-56c0-6.6 5.4-12 12-12h92v-92c0-6.6 5.4-12 12-12h56c6.6 0 12 5.4 12 12v92h92c6.6 0 12 5.4 12 12v56z"})))}},8355:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(9526);function i(){return i=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},i.apply(this,arguments)}const o=function(t){return r.createElement("svg",i({width:24,height:24,xmlns:"http://www.w3.org/2000/svg",role:"img"},t),r.createElement("g",{transform:"translate(0 -1028.362)"},r.createElement("circle",{style:{strokeOpacity:1,strokeDasharray:"none",strokeMiterlimit:4,strokeWidth:1.30522,stroke:"currentColor",fill:"none"},cx:17.346,cy:1044.106,r:3.092}),r.createElement("circle",{style:{strokeOpacity:1,strokeDasharray:"none",strokeMiterlimit:4,strokeWidth:1.30522,stroke:"currentColor",fill:"none"},cx:6.759,cy:1044.106,r:3.092}),r.createElement("circle",{style:{strokeWidth:.243187,stroke:"none",fillOpacity:1,fill:"currentColor"},cx:12.729,cy:1033.707,r:1.128}),r.createElement("path",{style:{strokeOpacity:1,strokeDasharray:"none",strokeMiterlimit:4,strokeLinejoin:"round",strokeLinecap:"round",strokeWidth:1.25956,stroke:"currentColor",fill:"none"},d:"M10.38 1040.226c2.188 1.92 1.38 3.656.856 5.451.243-.93.809-2.298.76-3.105-.232-.971-2.227-2.74-1.616-2.346z"}),r.createElement("path",{style:{strokeOpacity:1,strokeDasharray:"none",strokeMiterlimit:4,strokeLinejoin:"round",strokeLinecap:"round",strokeWidth:2.29606,stroke:"currentColor",fill:"none"},d:"m9.962 1039.68 1.78-3.357v0"}),r.createElement("path",{style:{strokeOpacity:1,strokeDasharray:"none",strokeMiterlimit:4,strokeLinejoin:"round",strokeLinecap:"round",strokeWidth:1.20108,stroke:"currentColor",fill:"none"},d:"m12.15 1036.158 2.803 2.52"})))}},2738:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(9526);function i(){return i=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},i.apply(this,arguments)}const o=function(t){return r.createElement("svg",i({width:24,height:24,xmlns:"http://www.w3.org/2000/svg",role:"img"},t),r.createElement("path",{style:{fillOpacity:1,stroke:"none",strokeWidth:"1.38819px",strokeLinecap:"round",strokeLinejoin:"round",strokeOpacity:1,fill:"currentColor"},d:"m5.35 1043.364 13.272.015c0-2.144.003-3.484.002-4.136-.004-.324-.086-.354-.188-.527-.49-.78-2.167-3.815-2.352-4.103-.11-.157-.216-.203-.388-.189H8.364c-.206 0-.317.073-.406.189-.228.361-1.99 3.453-2.508 4.278-.095.151-.103.346-.11.526.003 1.98.005 2.974.01 3.946zm3.048-7.778 7.226.039 1.537 3.236H6.813Zm-1.055 4.442a1.041 1.041 0 1 1 0 2.083 1.041 1.041 0 0 1 0-2.083zm9.265 0a1.041 1.041 0 1 1 0 2.083 1.041 1.041 0 0 1 0-2.083z",transform:"translate(0 -1028.362)"}),r.createElement("path",{style:{fillOpacity:1,strokeWidth:2.08227,strokeLinecap:"round",strokeLinejoin:"miter",strokeMiterlimit:4,strokeDasharray:"none",strokeOpacity:1,fill:"currentColor",stroke:"currentColor"},d:"m6.39 1043.127-.008 2.192",transform:"translate(0 -1028.362)"}),r.createElement("path",{style:{fillOpacity:1,strokeWidth:2.07309,strokeLinecap:"round",strokeLinejoin:"miter",strokeMiterlimit:4,strokeDasharray:"none",strokeOpacity:1,fill:"currentColor",stroke:"currentColor"},d:"m17.587 1043.12-.009 2.199",transform:"translate(0 -1028.362)"}),r.createElement("path",{style:{fillOpacity:1,stroke:"none",strokeWidth:"1.38819px",strokeLinecap:"round",strokeLinejoin:"round",strokeOpacity:1,fill:"currentColor"},d:"m5.35 1043.364 13.275.015c-.001-2.144-.663-3.037-.553-4.43-2.15-3.365-1.269-3.902-6.134-3.9-3.52-.011-6.582.374-6.588 8.314zm3.232-7.753 6.81-.026 1.77 3.275H6.812Zm-1.239 4.417a1.041 1.041 0 1 1 0 2.083 1.041 1.041 0 0 1 0-2.083zm9.265 0a1.041 1.041 0 1 1 0 2.083 1.041 1.041 0 0 1 0-2.083z",transform:"translate(0 -1028.362)"}))}},7925:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(9526);function i(){return i=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},i.apply(this,arguments)}const o=function(t){return r.createElement("svg",i({width:24,height:24,xmlns:"http://www.w3.org/2000/svg",role:"img"},t),r.createElement("path",{d:"M11.393 1031.664c-.947 0-1.71.763-1.71 1.71 0 .948.832 1.355 1.71 1.71 2.064.578 2.473-3.332 0-3.42zm.245 10.752a.346.346 0 0 0-.03.122c-1.57-2.758 1.099-4.25.03-.122z",style:{color:"#000",display:"inline",overflow:"visible",visibility:"visible",opacity:.3,fill:"none",stroke:"#fff",strokeWidth:1.95499,strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:4,strokeDasharray:"none",strokeDashoffset:0,strokeOpacity:1,marker:"none",enableBackground:"accumulate"},transform:"translate(0 -1028.362)"}),r.createElement("g",{style:{fill:"currentColor"}},r.createElement("g",{style:{display:"inline",fill:"currentColor"}},r.createElement("path",{style:{color:"currentColor",display:"inline",overflow:"visible",visibility:"visible",fill:"currentColor",fillOpacity:1,fillRule:"nonzero",stroke:"none",strokeWidth:2,marker:"none",enableBackground:"accumulate"},d:"M14.875 1008.362c-.97 0-1.75.78-1.75 1.75s.78 1.75 1.75 1.75 1.75-.78 1.75-1.75-.78-1.75-1.75-1.75z",transform:"matrix(.9775 0 0 .9775 -3.025 -982.366)"}))),r.createElement("path",{style:{color:"#000",display:"inline",overflow:"visible",visibility:"visible",opacity:.5,fill:"none",stroke:"none",strokeWidth:2,marker:"none",enableBackground:"accumulate"},d:"M0 1028.362h24v24H0z",transform:"translate(0 -1028.362)"}),r.createElement("path",{style:{enableBackground:"accumulate",marker:"none",strokeWidth:1.95499,stroke:"none",fillRule:"nonzero",fillOpacity:1,fill:"currentColor",visibility:"visible",overflow:"visible",display:"inline",color:"currentColor"},d:"M12.475 1035.556c-.358-.067-.972-.264-1.531.211-.567.625-.44.89-.263 2.093 0 0 .033 2.472-.421 4.243a.359.359 0 0 0-.053.115l-1.76 5.453c-.361.598.03 1.068.5 1.15.307.056.635-.075.852-.401l2.383-5.959c.113-5.007.1-3.506.293-6.905z",transform:"translate(0 -1028.362)"}),r.createElement("path",{style:{enableBackground:"accumulate",marker:"none",strokeWidth:1.95499,stroke:"none",fillRule:"nonzero",fillOpacity:1,fill:"currentColor",visibility:"visible",overflow:"visible",display:"inline",color:"currentColor"},d:"M12.838 1035.562c.508.232 1.057.842 1.682 2.646.508.901.588 1.321 1.117 2.207.351.589-.977 1.023-1.243.399l-1.144-2.677s-.24 2.782.516 4.035a.359.359 0 0 1 .052.115l1.205 2.24.851 2.852a.743.743 0 0 1-.623.905c-.306.057-.818-.256-.851-.583l-.673-2.494-1.883-2.677c.151-2.783-1.831-7.856.994-6.969z",transform:"translate(0 -1028.362)"}))}},1:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(9526);function i(){return i=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},i.apply(this,arguments)}const o=function(t){return r.createElement("svg",i({width:24,height:24,xmlns:"http://www.w3.org/2000/svg",role:"img"},t),r.createElement("g",{transform:"translate(0 -1028.362)"},r.createElement("path",{d:"M11.583 1031.78c-.942 0-1.701.758-1.701 1.7 0 .943.828 1.348 1.7 1.701 2.053.575 2.46-3.313 0-3.401zm.243 10.691a.342.342 0 0 0-.03.121c-1.561-2.742 1.093-4.227.03-.121z",style:{color:"#000",display:"inline",overflow:"visible",visibility:"visible",opacity:.3,fill:"none",stroke:"#fff",strokeWidth:1.94388,strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:4,strokeDasharray:"none",strokeDashoffset:0,strokeOpacity:1,marker:"none",enableBackground:"accumulate"}}),r.createElement("g",{style:{strokeOpacity:1,strokeDasharray:"none",strokeMiterlimit:4,strokeWidth:1.00006006,stroke:"none",fillOpacity:1,fill:"currentColor"}},r.createElement("g",{style:{display:"inline",stroke:"none",strokeOpacity:1,fill:"currentColor",fillOpacity:1,strokeWidth:1.00006006,strokeMiterlimit:4,strokeDasharray:"none"}},r.createElement("path",{style:{color:"currentColor",display:"inline",overflow:"visible",visibility:"visible",fill:"currentColor",fillOpacity:1,fillRule:"nonzero",stroke:"none",strokeWidth:1.00006006,marker:"none",enableBackground:"accumulate",strokeOpacity:1,strokeMiterlimit:4,strokeDasharray:"none"},d:"M14.875 1008.362c-.97 0-1.75.78-1.75 1.75s.78 1.75 1.75 1.75 1.75-.78 1.75-1.75-.78-1.75-1.75-1.75z",transform:"translate(-2.753 51.71) scale(.97194)"}))),r.createElement("path",{style:{color:"#000",display:"inline",overflow:"visible",visibility:"visible",opacity:.5,fill:"none",stroke:"none",strokeWidth:2,marker:"none",enableBackground:"accumulate"},d:"M0 1028.362h24v24H0z"}),r.createElement("path",{style:{color:"currentColor",display:"inline",overflow:"visible",visibility:"visible",fill:"currentColor",fillOpacity:1,fillRule:"nonzero",stroke:"none",strokeWidth:1.94389,marker:"none",enableBackground:"accumulate"},d:"M12.295 1035.65c-.356-.067-.967-.263-1.523.21-.563.62-.438.884-.26 2.08 0 0 .032 2.459-.42 4.22a.354.354 0 0 0-.052.114l-1.75 5.422c-.36.594.03 1.063.497 1.143.305.056.631-.073.847-.398l2.37-5.925c.112-4.979.098-3.487.29-6.867z"}),r.createElement("path",{style:{color:"currentColor",display:"inline",overflow:"visible",visibility:"visible",fill:"currentColor",fillOpacity:1,fillRule:"nonzero",stroke:"none",strokeWidth:1.94389,marker:"none",enableBackground:"accumulate"},d:"M12.655 1035.655c.506.231 1.052.838 1.673 2.631.506.897.982 1.062 1.508 1.943.35.585-.418 1.083-.827.545l-1.943-2.557s-.24 2.766.512 4.012c.026.042.047.08.053.114l1.198 2.227.846 2.836a.739.739 0 0 1-.62.9c-.304.056-.813-.255-.846-.58l-.67-2.48-1.872-2.661c.151-2.767-1.82-7.812.988-6.93z"}),r.createElement("rect",{style:{fill:"currentColor",fillOpacity:1,stroke:"none",strokeWidth:.971942},width:2.7,height:2.395,x:274.144,y:1069.759,transform:"skewX(-14.409) scale(1 .96854)",ry:.293}),r.createElement("rect",{style:{fill:"currentColor",fillOpacity:1,stroke:"none",strokeWidth:.971942},width:2.467,height:4.322,x:110.265,y:1041.998,transform:"skewX(-5.616) scale(1 .9952)",ry:.529}),r.createElement("path",{style:{fill:"none",stroke:"currentColor",strokeWidth:.777553,strokeLinecap:"round",strokeLinejoin:"miter",strokeMiterlimit:4,strokeDasharray:"none",strokeOpacity:1},d:"m16.008 1040.567.332 7.844"})))}},7839:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(9526);function i(){return i=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},i.apply(this,arguments)}const o=function(t){return r.createElement("svg",i({width:24,height:24,xmlns:"http://www.w3.org/2000/svg",role:"img"},t),r.createElement("g",{transform:"translate(0 -1028.362)"},r.createElement("path",{style:{strokeWidth:.960606,stroke:"none",fillOpacity:1,fill:"currentColor"},d:"M5.406 1043.768c-.356-.12-.571-.333-.716-.71-.146-.378-.17-.662-.085-.992.08-.309.211-.487.429-.58.137-.059.701 0 2.061.197.369.055.97.092 1.546.094h.942l.253-.183c2.115-1.958 5.018-4.124 6.424-5.109.053-.246-.177-1-.379-1.374-.102-.19-.178-.354-.17-.364.034-.04.635.216.878.372.784.507 1.574 1.765 1.642 2.617.03.37.009.392-.642.635-.706.264-1.393.796-2.22 1.721-.68.76-1.145 1.664-1.522 2.955l-.212.726-.29-.034c-.708-.082-3.088-.099-5.284-.038a95.46 95.46 0 0 0-2.462.085.39.39 0 0 1-.193-.023z"}),r.createElement("circle",{style:{strokeOpacity:1,strokeDasharray:"none",strokeMiterlimit:4,strokeWidth:1.4,stroke:"currentColor",fill:"none"},r:3.002,cy:1042.641,cx:18.2}),r.createElement("circle",{style:{strokeOpacity:1,strokeDasharray:"none",strokeMiterlimit:4,strokeWidth:1.4,stroke:"currentColor",fill:"none"},r:3.002,cy:1042.592,cx:5.732}),r.createElement("path",{style:{strokeOpacity:1,strokeDasharray:"none",strokeMiterlimit:4,strokeLinejoin:"round",strokeLinecap:"round",strokeWidth:1.52584,stroke:"currentColor",fill:"none"},d:"m16.147 1039.015 1.99 3.568"}),r.createElement("rect",{style:{strokeWidth:.960606,stroke:"none",fillOpacity:1,fill:"currentColor",opacity:.99},width:6.45,height:1.035,x:235.031,y:1002.115,transform:"matrix(.96339 .26812 -.22085 .9753 0 0)",ry:0}),r.createElement("path",{style:{strokeWidth:.960606,stroke:"none",fillOpacity:1,fill:"currentColor"},d:"M5.193 1038.175c-1.33-.764-1.467-1.281-1.148-1.646.026-.029 2.499-.023 3.242.191 1.111.322 1.323.44 2.679 1.49.311.242.657.384.934.384.15 0 .89-.22 2.192-.655 1.08-.36 1.975-.644 1.988-.63.012.014-.415.397-.95.85-1.57 1.328-3.27 2.946-3.541 2.946-1.117-1.647-3.638-2.417-5.396-2.93z"})))}},1218:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(9526);function i(){return i=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},i.apply(this,arguments)}const o=function(t){return r.createElement("svg",i({width:24,height:24,xmlns:"http://www.w3.org/2000/svg",role:"img"},t),r.createElement("g",{transform:"translate(0 -1028.362)"},r.createElement("circle",{style:{fill:"none",strokeWidth:1.20111,strokeMiterlimit:4,strokeDasharray:"none",strokeOpacity:1,stroke:"currentColor"},cx:17.398,cy:1042.2,r:2.846}),r.createElement("circle",{style:{fill:"none",strokeWidth:1.20119,strokeMiterlimit:4,strokeDasharray:"none",strokeOpacity:1,stroke:"currentColor"},cx:6.753,cy:1044.276,r:2.846}),r.createElement("circle",{style:{strokeWidth:.252678,fillOpacity:1,fill:"currentColor",stroke:"currentColor"},cx:14.234,cy:1033.513,r:1.173}),r.createElement("path",{style:{fill:"none",strokeWidth:1.30871,strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:4,strokeDasharray:"none",strokeOpacity:1,stroke:"currentColor"},d:"M10.602 1040.225c.644.561 1.46 3.262.655 5.06.252-.965.297-1.56.442-2.43-.242-1.01-1.731-3.039-1.097-2.63z"}),r.createElement("path",{style:{fill:"none",strokeWidth:2.38567,strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:4,strokeDasharray:"none",strokeOpacity:1,stroke:"currentColor"},d:"m9.992 1039.283 2.824-3.072"}),r.createElement("path",{style:{fill:"none",strokeWidth:1.24796,strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:4,strokeDasharray:"none",strokeOpacity:1,stroke:"currentColor"},d:"m13.47 1036.203 2.89 1.47"}),r.createElement("path",{style:{fill:"none",strokeWidth:".949028px",strokeLinecap:"round",strokeLinejoin:"round",strokeOpacity:1,stroke:"currentColor"},d:"m2.787 1050.013 2.373-1.78 5.22-.296 6.227-1.78 3.915.534 2.017-2.432"})))}},1179:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(9526);function i(){return i=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},i.apply(this,arguments)}const o=function(t){return r.createElement("svg",i({width:24,height:24,xmlns:"http://www.w3.org/2000/svg",role:"img"},t),r.createElement("g",{transform:"translate(0 -1028.362)"},r.createElement("circle",{style:{fill:"none",strokeWidth:1.3502,strokeMiterlimit:4,strokeDasharray:"none",strokeOpacity:1,stroke:"currentColor"},cx:17.366,cy:1043.13,r:3.199}),r.createElement("circle",{style:{fill:"none",strokeWidth:1.3502,strokeMiterlimit:4,strokeDasharray:"none",strokeOpacity:1,stroke:"currentColor"},cx:6.414,cy:1043.13,r:3.199}),r.createElement("circle",{style:{strokeWidth:.251568,stroke:"none",fillOpacity:1,fill:"currentColor"},cx:16.52,cy:1035.737,r:1.167}),r.createElement("path",{style:{fill:"none",strokeWidth:1.30296,strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:4,strokeDasharray:"none",strokeOpacity:1,stroke:"currentColor"},d:"M10.925 1039.245c.642.559.922 3.72.12 5.51.252-.961.414-1.907.559-2.774-.241-1.005-1.31-3.143-.679-2.736z"}),r.createElement("path",{style:{fill:"none",strokeWidth:2.37518,strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:4,strokeDasharray:"none",strokeOpacity:1,stroke:"currentColor"},d:"m10.693 1038.554 3.734-1.229v0"}),r.createElement("path",{style:{fill:"none",strokeWidth:1.24247,strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:4,strokeDasharray:"none",strokeOpacity:1,stroke:"currentColor"},d:"m15.263 1037.495 1.103 3.74"}),r.createElement("path",{style:{fill:"#4d4d4d",strokeWidth:.755886,strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:4,strokeDasharray:"none",strokeOpacity:1,stroke:"currentColor"},d:"m11.245 1034.652-6.437-.354"}),r.createElement("path",{style:{fill:"#474747",fillOpacity:1,strokeWidth:.755886,strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:4,strokeDasharray:"none",strokeOpacity:1,stroke:"currentColor"},d:"m6.604 1037.74-3.42-.201"}),r.createElement("path",{style:{fill:"none",strokeWidth:.755886,strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:4,strokeDasharray:"none",strokeOpacity:1,stroke:"currentColor"},d:"m8.474 1036.063-5.295-.32"})))}},9234:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(9526);function i(){return i=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},i.apply(this,arguments)}const o=function(t){return r.createElement("svg",i({width:24,height:24,xmlns:"http://www.w3.org/2000/svg",role:"img"},t),r.createElement("g",{transform:"translate(0 -1028.362)"},r.createElement("path",{style:{stroke:"none",fillOpacity:1,fill:"currentColor"},d:"M5.548 1039.803c.905 1.804 1.202 2.42 3.18 2.495h.98l5.104.079c3.577-2.625 1.439-3.39 1.277-7.866.985.237 1.25 1.446 1.898 1.94.462.352 1.049 1.298 1.034 2.32-.3 1.348-2.838 4.798-3.328 5.233-.265.382-2.747.463-5.553.419-2.806-.044-5.936-.216-8.121-.588.516-1.95 1.369-3.47 3.529-4.032z"}),r.createElement("circle",{style:{strokeOpacity:1,strokeDasharray:"none",strokeMiterlimit:4,strokeWidth:.957069,stroke:"currentColor",fill:"none"},cx:19.143,cy:1043.334,r:2.267}),r.createElement("path",{style:{strokeOpacity:1,strokeDasharray:"none",strokeMiterlimit:4,strokeLinejoin:"round",strokeLinecap:"round",strokeWidth:1.16776,stroke:"currentColor",fill:"none"},d:"m17.614 1040.655 1.523 2.73"}),r.createElement("path",{style:{stroke:"none",fillOpacity:1,fill:"currentColor"},d:"M5.183 1041.033c-1.384-1.072-1.439-3.227-1.106-3.739.026-.04 4.81.452 7.13.09 2.375.382-2.742 3.904.167 5.137-2.709.076-4.184 1-6.191-1.488z"}),r.createElement("circle",{style:{strokeOpacity:1,strokeDasharray:"none",strokeMiterlimit:4,strokeWidth:.957069,stroke:"currentColor",fill:"none"},cx:5.436,cy:1043.355,r:2.267}),r.createElement("path",{style:{stroke:"none",fillOpacity:1,fill:"currentColor"},d:"M15.645 1042.746c.66-1.65 1.007-1.608 2.641-3.034 2.079-.304 3.533 1.57 3.416 1.795-.75.58-2.606-2.008-5.292.885z"}),r.createElement("path",{style:{strokeOpacity:1,strokeLinejoin:"miter",strokeLinecap:"butt",strokeWidth:1,stroke:"none",fillRule:"evenodd",fillOpacity:1,fill:"currentColor"},d:"M16.68 1035.348s-1.95.398-1.72.89c.197.416.944-.126 1.72-.89z"}),r.createElement("path",{style:{strokeOpacity:1,strokeDasharray:"none",strokeMiterlimit:4,strokeLinejoin:"round",strokeLinecap:"round",strokeWidth:1.7,stroke:"none",fillOpacity:1,fill:"currentColor"},d:"M18.188 1035.784c-.332.054-.551.048-.931.048s-.665-.292-.665-.61c0-.32.241-.767.62-.767.19 0 .49-.054.94.092-.116.357-.12.79.036 1.238z"})))}},3368:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(9526);function i(){return i=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},i.apply(this,arguments)}const o=function(t){return r.createElement("svg",i({width:24,height:24,xmlns:"http://www.w3.org/2000/svg",role:"img"},t),r.createElement("g",{transform:"translate(0 -1028.362)"},r.createElement("path",{style:{fillOpacity:1,strokeWidth:1.15286,strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:4,strokeDasharray:"none",strokeOpacity:1,stroke:"currentColor",fill:"currentColor"},d:"M9.93 1035.133a.424.424 0 0 0-.423.424l-.104 8.262c2.162.024 5.242.01 7.704.015.254-.456.408-1.129 1.713-1.13 1.345 0 1.405.642 1.66 1.099h.471a.423.423 0 0 0 .423-.424v-7.823a.423.423 0 0 0-.423-.423z"}),r.createElement("path",{style:{fillOpacity:1,stroke:"none",strokeWidth:1.04201,fill:"currentColor"},d:"M3.697 1039.694h6.218v3.192H3.697z"}),r.createElement("path",{style:{fillOpacity:1,stroke:"none",strokeWidth:1.0461,fill:"currentColor"},d:"M2.85 1040.73v3.68h1.706a1.441 1.441 0 0 1-.004-.048 1.441 1.441 0 0 1 1.44-1.44 1.441 1.441 0 0 1 1.442 1.44 1.441 1.441 0 0 1-.005.047h4.889v-3.68z"}),r.createElement("path",{style:{fill:"none",strokeWidth:"1.04276px",strokeLinecap:"round",strokeLinejoin:"round",strokeOpacity:1,stroke:"currentColor"},d:"M5.624 1036.386c-3.576 7.11-3.044 4.821-3.076 7.505l1.366-.01 1.373-1.312 2.042-.382.922-.184 1.014.138.138-5.715c-.594-.018-3.162-.047-3.779-.046z"}),r.createElement("path",{style:{fillOpacity:1,stroke:"none",strokeWidth:1.04201,fill:"currentColor"},d:"m5.402 1035.907 4.112-1.26.09 1.555z"}),r.createElement("circle",{style:{fill:"#fff",fillOpacity:.0820312,strokeWidth:.864469,strokeMiterlimit:4,strokeDasharray:"none",strokeOpacity:1,stroke:"currentColor"},cx:18.949,cy:1044.363,r:1.441}),r.createElement("circle",{style:{fill:"#fff",fillOpacity:.0820312,strokeWidth:.864469,strokeMiterlimit:4,strokeDasharray:"none",strokeOpacity:1,stroke:"currentColor"},cx:6.078,cy:1044.363,r:1.441}),r.createElement("path",{style:{fillOpacity:1,stroke:"none",strokeWidth:1.04201,fill:"currentColor"},d:"M7.999 1036.68h6.218v3.192H7.999z"})))}},9326:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(9526);function i(){return i=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},i.apply(this,arguments)}const o=function(t){return r.createElement("svg",i({width:24,height:24,xmlns:"http://www.w3.org/2000/svg",role:"img"},t),r.createElement("g",{transform:"translate(0 -1028.362)"},r.createElement("rect",{style:{strokeWidth:.99494,stroke:"none",fillOpacity:1,fill:"currentColor"},width:7.3,height:2.796,x:6.392,y:1041.53,ry:.684}),r.createElement("path",{style:{fillOpacity:1,stroke:"none",strokeWidth:.99494,fill:"currentColor"},d:"M1.417 1039.837a.022.022 0 0 0-.02.02v4.448c0 .014.008.021.02.021h2.039a1.533 1.533 0 0 1-.004-.038 1.533 1.533 0 0 1 3.066 0 1.533 1.533 0 0 1-.003.038h1.984c.012 0 .021-.012.021-.02v-4.448c0-.013-.01-.021-.021-.021z"}),r.createElement("path",{style:{strokeOpacity:1,strokeLinejoin:"round",strokeLinecap:"round",strokeWidth:"1.19518px",stroke:"currentColor",fill:"none"},d:"M1.244 1043.746H2.93l.506-1.555 1.002-.551 2.075-.2 1.401.114-.01-5.58c-1.188.02-6.147-.012-6.648 0-.028 3.015-.003 5.58-.012 7.772z"}),r.createElement("rect",{style:{fillOpacity:1,stroke:"none",strokeWidth:.99494,fill:"currentColor"},width:2.329,height:4.491,x:5.468,y:1036.143,ry:.022}),r.createElement("path",{style:{fillOpacity:1,stroke:"none",strokeWidth:2.00558,strokeOpacity:1,fill:"currentColor"},d:"M10.047 1034.45c-.637 0-1.148.513-1.148 1.15v7.57c0 .636.511 1.15 1.148 1.15h4.579a1.533 1.533 0 0 1-.004-.028 1.533 1.533 0 0 1 1.533-1.532 1.533 1.533 0 0 1 1.533 1.532 1.533 1.533 0 0 1-.004.028h1.481a1.533 1.533 0 0 1 1.53-1.49 1.533 1.533 0 0 1 1.53 1.488 1.146 1.146 0 0 0 1.1-1.149v-7.569c0-.637-.51-1.15-1.148-1.15z"}),r.createElement("circle",{style:{strokeOpacity:1,strokeDasharray:"none",strokeMiterlimit:4,strokeWidth:.919458,stroke:"currentColor",fillOpacity:0,fill:"#fff"},cx:16.288,cy:1044.289,r:1.533,fill:"none"}),r.createElement("circle",{style:{strokeOpacity:1,strokeDasharray:"none",strokeMiterlimit:4,strokeWidth:.919458,stroke:"currentColor",fillOpacity:0,fill:"#fff"},cx:4.887,cy:1044.289,r:1.533,fill:"none"}),r.createElement("circle",{style:{strokeOpacity:1,strokeDasharray:"none",strokeMiterlimit:4,strokeWidth:.919458,stroke:"currentColor",fillOpacity:0,fill:"#fff"},cx:20.733,cy:1044.289,r:1.533,fill:"none"})))}},2326:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r,i=n(9526);function o(){return o=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},o.apply(this,arguments)}const a=function(t){return i.createElement("svg",o({height:24,width:24,xmlnsXlink:"http://www.w3.org/1999/xlink",xmlns:"http://www.w3.org/2000/svg",role:"img"},t),i.createElement("defs",null,r||(r=i.createElement("pattern",{patternTransform:"matrix(10 0 0 10 -20.86 7.16)",id:"wheelchair_svg__b",xlinkHref:"#wheelchair_svg__a"})),i.createElement("pattern",{patternUnits:"userSpaceOnUse",width:2,height:1,patternTransform:"scale(10)",id:"wheelchair_svg__a"},i.createElement("path",{style:{fill:"#000",stroke:"none"},d:"M0-.5h1v2H0z"}))),i.createElement("g",{transform:"translate(0 -1028.362)"},i.createElement("path",{style:{color:"#000",display:"inline",overflow:"visible",visibility:"visible",opacity:.5,fill:"none",stroke:"none",strokeWidth:2,marker:"none",enableBackground:"accumulate"},d:"M0 1028.362h24v24H0z"}),i.createElement("path",{d:"M12.26 1036.434c.696.172 1.449.624 2.304 1.96.697.668.807.979 1.531 1.635.482.436-1.338.757-1.703.295l-1.567-1.982s-.408 1.483.628 2.411c.035.031.862.761.869.787l1.307 1.535 1.447 1.518c.118.307-.054 1.204-.697 1.264-.42.042-1.433-.815-1.479-1.057l-2.65-3.252-2.383-.015c.207-2.061-1.478-5.756 2.392-5.099z",style:{color:"#000",display:"inline",overflow:"visible",visibility:"visible",fill:"currentColor",fillOpacity:1,fillRule:"nonzero",stroke:"none",strokeWidth:1.96937,marker:"none",enableBackground:"accumulate"}}),i.createElement("path",{style:{fill:"none",fillOpacity:1,stroke:"currentColor",strokeWidth:1.037,strokeMiterlimit:10,strokeDasharray:"none",strokeOpacity:1},d:"M11 1041.362a3.281 3.281 0 1 0 0 6.563 3.281 3.281 0 0 0 0-6.563z"}),i.createElement("circle",{style:{strokeWidth:1.33307,fill:"currentColor"},cx:11.402,cy:1034.037,r:1.75})))}},2010:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r,i=n(9526);function o(){return o=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},o.apply(this,arguments)}const a=function(t){return i.createElement("svg",o({xmlns:"http://www.w3.org/2000/svg",height:48,width:48,viewBox:"0 0 50 50",role:"img"},t),r||(r=i.createElement("path",{d:"M6 40V8l38 16Zm3-4.65L36.2 24 9 12.5v8.4L21.1 24 9 27Zm0 0V12.5 27Z"})))}},91:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r=n(9526);function i(){return i=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},i.apply(this,arguments)}const o=function(t){return r.createElement("svg",i({width:96,height:96,viewBox:"0 0 11 11",xmlSpace:"preserve",xmlns:"http://www.w3.org/2000/svg",role:"img"},t),r.createElement("path",{d:"m4.194 10.685-.265-1.667q-.25-.092-.529-.251-.278-.159-.49-.33l-1.56.713L.12 6.98l1.428-1.044q-.026-.12-.033-.271-.007-.153-.007-.272 0-.119.007-.27.007-.153.033-.272L.12 3.806l1.23-2.17 1.562.715q.211-.172.49-.331.277-.159.528-.238l.265-1.68h2.434l.265 1.667q.251.092.536.244.284.152.482.338l1.561-.715 1.23 2.17-1.428 1.019q.027.132.033.284.007.152.007.284 0 .133-.007.278-.007.146-.033.278l1.429 1.032-1.23 2.17-1.562-.715q-.211.172-.482.337-.272.166-.536.245l-.265 1.667zm1.217-3.572q.714 0 1.217-.503.503-.502.503-1.217 0-.714-.503-1.217-.503-.502-1.217-.502-.714 0-1.217.502-.503.503-.503 1.217 0 .715.503 1.217.503.503 1.217.503zm0-.794q-.384 0-.655-.27-.271-.272-.271-.656 0-.383.271-.654.271-.272.655-.272t.655.272q.271.27.271.654t-.271.655q-.271.271-.655.271zm0-.926zM4.83 9.891h1.164l.185-1.481q.437-.106.827-.331.39-.225.708-.542l1.402.608.53-.952L8.4 6.28q.053-.225.086-.443.033-.219.033-.444 0-.224-.027-.443-.026-.218-.092-.443l1.243-.913-.529-.952-1.402.608q-.304-.344-.688-.575-.384-.232-.847-.298L5.993.895H4.83l-.185 1.482q-.45.093-.84.318-.39.225-.695.555l-1.402-.608-.53.952 1.244.913q-.053.225-.086.443-.033.219-.033.443 0 .225.033.444.033.218.086.443l-1.243.913.529.952 1.402-.608q.318.317.708.542.39.225.827.33z",style:{strokeWidth:.1}}),r.createElement("rect",{style:{fill:"#fff",strokeWidth:.209373},width:1.208,height:1.633,x:4.803,y:3.421,ry:.049}))}},9968:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r,i=n(9526);function o(){return o=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},o.apply(this,arguments)}const a=function(t){return i.createElement("svg",o({"aria-hidden":"true","data-prefix":"fas","data-icon":"times",className:"times-solid_svg__svg-inline--fa times-solid_svg__fa-times times-solid_svg__fa-w-11",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 352 512",role:"img"},t),r||(r=i.createElement("path",{fill:"currentColor",d:"m242.72 256 100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z"})))}},5734:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=n(5402),i=n.n(r),o=n(352),a=n.n(o)()(i());a.push([t.id,".CodeMirror-hints {\n position: absolute;\n z-index: 10;\n overflow: hidden;\n list-style: none;\n\n margin: 0;\n padding: 2px;\n\n -webkit-box-shadow: 2px 3px 5px rgba(0,0,0,.2);\n -moz-box-shadow: 2px 3px 5px rgba(0,0,0,.2);\n box-shadow: 2px 3px 5px rgba(0,0,0,.2);\n border-radius: 3px;\n border: 1px solid silver;\n\n background: white;\n font-size: 90%;\n font-family: monospace;\n\n max-height: 20em;\n overflow-y: auto;\n box-sizing: border-box;\n}\n\n.CodeMirror-hint {\n margin: 0;\n padding: 0 4px;\n border-radius: 2px;\n white-space: pre;\n color: black;\n cursor: pointer;\n}\n\nli.CodeMirror-hint-active {\n background: #08f;\n color: white;\n}\n",""]);const s=a},9735:(t,e,n)=>{"use strict";n.d(e,{Z:()=>b});var r=n(5402),i=n.n(r),o=n(352),a=n.n(o),s=n(8393),l=n.n(s),u=new URL(n(7735),n.b),c=new URL(n(6089),n.b),h=new URL(n(6050),n.b),p=new URL(n(4562),n.b),d=new URL(n(6192),n.b),f=a()(i()),g=l()(u),m=l()(c),y=l()(h),v=l()(p),_=l()(d);f.push([t.id,"/* The lint marker gutter */\n.CodeMirror-lint-markers {\n width: 16px;\n}\n\n.CodeMirror-lint-tooltip {\n background-color: #ffd;\n border: 1px solid black;\n border-radius: 4px 4px 4px 4px;\n color: black;\n font-family: monospace;\n font-size: 10pt;\n overflow: hidden;\n padding: 2px 5px;\n position: fixed;\n white-space: pre;\n white-space: pre-wrap;\n z-index: 100;\n max-width: 600px;\n opacity: 0;\n transition: opacity .4s;\n -moz-transition: opacity .4s;\n -webkit-transition: opacity .4s;\n -o-transition: opacity .4s;\n -ms-transition: opacity .4s;\n}\n\n.CodeMirror-lint-mark {\n background-position: left bottom;\n background-repeat: repeat-x;\n}\n\n.CodeMirror-lint-mark-warning {\n background-image: url("+g+");\n}\n\n.CodeMirror-lint-mark-error {\n background-image: url("+m+");\n}\n\n.CodeMirror-lint-marker {\n background-position: center center;\n background-repeat: no-repeat;\n cursor: pointer;\n display: inline-block;\n height: 16px;\n width: 16px;\n vertical-align: middle;\n position: relative;\n}\n\n.CodeMirror-lint-message {\n padding-left: 18px;\n background-position: top left;\n background-repeat: no-repeat;\n}\n\n.CodeMirror-lint-marker-warning, .CodeMirror-lint-message-warning {\n background-image: url("+y+");\n}\n\n.CodeMirror-lint-marker-error, .CodeMirror-lint-message-error {\n background-image: url("+v+");\n}\n\n.CodeMirror-lint-marker-multiple {\n background-image: url("+_+");\n background-repeat: no-repeat;\n background-position: right bottom;\n width: 100%; height: 100%;\n}\n\n.CodeMirror-lint-line-error {\n background-color: rgba(183, 76, 81, 0.08);\n}\n\n.CodeMirror-lint-line-warning {\n background-color: rgba(255, 211, 0, 0.1);\n}\n",""]);const b=f},1240:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=n(5402),i=n.n(r),o=n(352),a=n.n(o)()(i());a.push([t.id,"/* BASICS */\n\n.CodeMirror {\n /* Set height, width, borders, and global font properties here */\n font-family: monospace;\n height: 300px;\n color: black;\n direction: ltr;\n}\n\n/* PADDING */\n\n.CodeMirror-lines {\n padding: 4px 0; /* Vertical padding around content */\n}\n.CodeMirror pre.CodeMirror-line,\n.CodeMirror pre.CodeMirror-line-like {\n padding: 0 4px; /* Horizontal padding of content */\n}\n\n.CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler {\n background-color: white; /* The little square between H and V scrollbars */\n}\n\n/* GUTTER */\n\n.CodeMirror-gutters {\n border-right: 1px solid #ddd;\n background-color: #f7f7f7;\n white-space: nowrap;\n}\n.CodeMirror-linenumbers {}\n.CodeMirror-linenumber {\n padding: 0 3px 0 5px;\n min-width: 20px;\n text-align: right;\n color: #999;\n white-space: nowrap;\n}\n\n.CodeMirror-guttermarker { color: black; }\n.CodeMirror-guttermarker-subtle { color: #999; }\n\n/* CURSOR */\n\n.CodeMirror-cursor {\n border-left: 1px solid black;\n border-right: none;\n width: 0;\n}\n/* Shown when moving in bi-directional text */\n.CodeMirror div.CodeMirror-secondarycursor {\n border-left: 1px solid silver;\n}\n.cm-fat-cursor .CodeMirror-cursor {\n width: auto;\n border: 0 !important;\n background: #7e7;\n}\n.cm-fat-cursor div.CodeMirror-cursors {\n z-index: 1;\n}\n.cm-fat-cursor .CodeMirror-line::selection,\n.cm-fat-cursor .CodeMirror-line > span::selection, \n.cm-fat-cursor .CodeMirror-line > span > span::selection { background: transparent; }\n.cm-fat-cursor .CodeMirror-line::-moz-selection,\n.cm-fat-cursor .CodeMirror-line > span::-moz-selection,\n.cm-fat-cursor .CodeMirror-line > span > span::-moz-selection { background: transparent; }\n.cm-fat-cursor { caret-color: transparent; }\n@-moz-keyframes blink {\n 0% {}\n 50% { background-color: transparent; }\n 100% {}\n}\n@-webkit-keyframes blink {\n 0% {}\n 50% { background-color: transparent; }\n 100% {}\n}\n@keyframes blink {\n 0% {}\n 50% { background-color: transparent; }\n 100% {}\n}\n\n/* Can style cursor different in overwrite (non-insert) mode */\n.CodeMirror-overwrite .CodeMirror-cursor {}\n\n.cm-tab { display: inline-block; text-decoration: inherit; }\n\n.CodeMirror-rulers {\n position: absolute;\n left: 0; right: 0; top: -50px; bottom: 0;\n overflow: hidden;\n}\n.CodeMirror-ruler {\n border-left: 1px solid #ccc;\n top: 0; bottom: 0;\n position: absolute;\n}\n\n/* DEFAULT THEME */\n\n.cm-s-default .cm-header {color: blue;}\n.cm-s-default .cm-quote {color: #090;}\n.cm-negative {color: #d44;}\n.cm-positive {color: #292;}\n.cm-header, .cm-strong {font-weight: bold;}\n.cm-em {font-style: italic;}\n.cm-link {text-decoration: underline;}\n.cm-strikethrough {text-decoration: line-through;}\n\n.cm-s-default .cm-keyword {color: #708;}\n.cm-s-default .cm-atom {color: #219;}\n.cm-s-default .cm-number {color: #164;}\n.cm-s-default .cm-def {color: #00f;}\n.cm-s-default .cm-variable,\n.cm-s-default .cm-punctuation,\n.cm-s-default .cm-property,\n.cm-s-default .cm-operator {}\n.cm-s-default .cm-variable-2 {color: #05a;}\n.cm-s-default .cm-variable-3, .cm-s-default .cm-type {color: #085;}\n.cm-s-default .cm-comment {color: #a50;}\n.cm-s-default .cm-string {color: #a11;}\n.cm-s-default .cm-string-2 {color: #f50;}\n.cm-s-default .cm-meta {color: #555;}\n.cm-s-default .cm-qualifier {color: #555;}\n.cm-s-default .cm-builtin {color: #30a;}\n.cm-s-default .cm-bracket {color: #997;}\n.cm-s-default .cm-tag {color: #170;}\n.cm-s-default .cm-attribute {color: #00c;}\n.cm-s-default .cm-hr {color: #999;}\n.cm-s-default .cm-link {color: #00c;}\n\n.cm-s-default .cm-error {color: #f00;}\n.cm-invalidchar {color: #f00;}\n\n.CodeMirror-composing { border-bottom: 2px solid; }\n\n/* Default styles for common addons */\n\ndiv.CodeMirror span.CodeMirror-matchingbracket {color: #0b0;}\ndiv.CodeMirror span.CodeMirror-nonmatchingbracket {color: #a22;}\n.CodeMirror-matchingtag { background: rgba(255, 150, 0, .3); }\n.CodeMirror-activeline-background {background: #e8f2ff;}\n\n/* STOP */\n\n/* The rest of this file contains styles related to the mechanics of\n the editor. You probably shouldn't touch them. */\n\n.CodeMirror {\n position: relative;\n overflow: hidden;\n background: white;\n}\n\n.CodeMirror-scroll {\n overflow: scroll !important; /* Things will break if this is overridden */\n /* 50px is the magic margin used to hide the element's real scrollbars */\n /* See overflow: hidden in .CodeMirror */\n margin-bottom: -50px; margin-right: -50px;\n padding-bottom: 50px;\n height: 100%;\n outline: none; /* Prevent dragging from highlighting the element */\n position: relative;\n z-index: 0;\n}\n.CodeMirror-sizer {\n position: relative;\n border-right: 50px solid transparent;\n}\n\n/* The fake, visible scrollbars. Used to force redraw during scrolling\n before actual scrolling happens, thus preventing shaking and\n flickering artifacts. */\n.CodeMirror-vscrollbar, .CodeMirror-hscrollbar, .CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler {\n position: absolute;\n z-index: 6;\n display: none;\n outline: none;\n}\n.CodeMirror-vscrollbar {\n right: 0; top: 0;\n overflow-x: hidden;\n overflow-y: scroll;\n}\n.CodeMirror-hscrollbar {\n bottom: 0; left: 0;\n overflow-y: hidden;\n overflow-x: scroll;\n}\n.CodeMirror-scrollbar-filler {\n right: 0; bottom: 0;\n}\n.CodeMirror-gutter-filler {\n left: 0; bottom: 0;\n}\n\n.CodeMirror-gutters {\n position: absolute; left: 0; top: 0;\n min-height: 100%;\n z-index: 3;\n}\n.CodeMirror-gutter {\n white-space: normal;\n height: 100%;\n display: inline-block;\n vertical-align: top;\n margin-bottom: -50px;\n}\n.CodeMirror-gutter-wrapper {\n position: absolute;\n z-index: 4;\n background: none !important;\n border: none !important;\n}\n.CodeMirror-gutter-background {\n position: absolute;\n top: 0; bottom: 0;\n z-index: 4;\n}\n.CodeMirror-gutter-elt {\n position: absolute;\n cursor: default;\n z-index: 4;\n}\n.CodeMirror-gutter-wrapper ::selection { background-color: transparent }\n.CodeMirror-gutter-wrapper ::-moz-selection { background-color: transparent }\n\n.CodeMirror-lines {\n cursor: text;\n min-height: 1px; /* prevents collapsing before first draw */\n}\n.CodeMirror pre.CodeMirror-line,\n.CodeMirror pre.CodeMirror-line-like {\n /* Reset some styles that the rest of the page might have set */\n -moz-border-radius: 0; -webkit-border-radius: 0; border-radius: 0;\n border-width: 0;\n background: transparent;\n font-family: inherit;\n font-size: inherit;\n margin: 0;\n white-space: pre;\n word-wrap: normal;\n line-height: inherit;\n color: inherit;\n z-index: 2;\n position: relative;\n overflow: visible;\n -webkit-tap-highlight-color: transparent;\n -webkit-font-variant-ligatures: contextual;\n font-variant-ligatures: contextual;\n}\n.CodeMirror-wrap pre.CodeMirror-line,\n.CodeMirror-wrap pre.CodeMirror-line-like {\n word-wrap: break-word;\n white-space: pre-wrap;\n word-break: normal;\n}\n\n.CodeMirror-linebackground {\n position: absolute;\n left: 0; right: 0; top: 0; bottom: 0;\n z-index: 0;\n}\n\n.CodeMirror-linewidget {\n position: relative;\n z-index: 2;\n padding: 0.1px; /* Force widget margins to stay inside of the container */\n}\n\n.CodeMirror-widget {}\n\n.CodeMirror-rtl pre { direction: rtl; }\n\n.CodeMirror-code {\n outline: none;\n}\n\n/* Force content-box sizing for the elements where we expect it */\n.CodeMirror-scroll,\n.CodeMirror-sizer,\n.CodeMirror-gutter,\n.CodeMirror-gutters,\n.CodeMirror-linenumber {\n -moz-box-sizing: content-box;\n box-sizing: content-box;\n}\n\n.CodeMirror-measure {\n position: absolute;\n width: 100%;\n height: 0;\n overflow: hidden;\n visibility: hidden;\n}\n\n.CodeMirror-cursor {\n position: absolute;\n pointer-events: none;\n}\n.CodeMirror-measure pre { position: static; }\n\ndiv.CodeMirror-cursors {\n visibility: hidden;\n position: relative;\n z-index: 3;\n}\ndiv.CodeMirror-dragcursors {\n visibility: visible;\n}\n\n.CodeMirror-focused div.CodeMirror-cursors {\n visibility: visible;\n}\n\n.CodeMirror-selected { background: #d9d9d9; }\n.CodeMirror-focused .CodeMirror-selected { background: #d7d4f0; }\n.CodeMirror-crosshair { cursor: crosshair; }\n.CodeMirror-line::selection, .CodeMirror-line > span::selection, .CodeMirror-line > span > span::selection { background: #d7d4f0; }\n.CodeMirror-line::-moz-selection, .CodeMirror-line > span::-moz-selection, .CodeMirror-line > span > span::-moz-selection { background: #d7d4f0; }\n\n.cm-searching {\n background-color: #ffa;\n background-color: rgba(255, 255, 0, .4);\n}\n\n/* Used to force a border model for a node */\n.cm-force-border { padding-right: .1px; }\n\n@media print {\n /* Hide the cursor when printing */\n .CodeMirror div.CodeMirror-cursors {\n visibility: hidden;\n }\n}\n\n/* See issue #2901 */\n.cm-tab-wrap-hack:after { content: ''; }\n\n/* Help users use markselection to safely style text background */\nspan.CodeMirror-selectedtext { background: none; }\n",""]);const s=a},1055:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=n(5402),i=n.n(r),o=n(352),a=n.n(o)()(i());a.push([t.id,".cm-s-default .cm-string {\n color: #067D17;\n}\n\n.cm-s-default .cm-property {\n color: #871094;\n}\n\n.cm-s-default .cm-number {\n color: #1750EB;\n}\n\n.cm-s-default .cm-atom {\n color: #0033B3;\n}\n",""]);const s=a},6431:(t,e,n)=>{"use strict";n.d(e,{Z:()=>f});var r=n(5402),i=n.n(r),o=n(352),a=n.n(o),s=n(8393),l=n.n(s),u=new URL(n(9994),n.b),c=new URL(n(8633),n.b),h=a()(i()),p=l()(u),d=l()(c);h.push([t.id,".heightgraph-container {\n background-color: rgba(250,250,250,.8);\n border-radius: 10px;\n display: none;\n cursor: default;\n user-select: none;\n}\n\n.heightgraph-toggle {\n cursor: pointer;\n box-shadow: 0 1px 7px rgba(0, 0, 0, .4);\n border-radius: 5px;\n width: 28px;\n height: 28px;\n background: #f8f8f9;\n display: block;\n}\n\n.heightgraph-toggle-icon {\n background: url("+p+") no-repeat center center;\n background-size: 14px 14px;\n width: 26px;\n height: 26px;\n position: absolute;\n}\n\n.heightgraph-close-icon {\n background: url("+d+") no-repeat center center;\n background-size: 14px 14px;\n width: 26px;\n height: 26px;\n position: absolute;\n right: 0;\n display: none;\n cursor: pointer;\n}\n\n.border-top {\n fill: none;\n}\n\n.legend-hover {\n cursor: pointer;\n}\n\n.legend-text {\n fill: #000;\n font-size: 10px;\n cursor: pointer;\n}\n\n.tick, .tick text {\n fill: #000;\n pointer-events: none;\n}\n\n.axis .tick line {\n visibility: hidden;\n pointer-events: none;\n}\n\n.axis path {\n stroke: black;\n fill: none;\n stroke-width: 2px;\n shape-rendering: crispEdges;\n pointer-events: none;\n}\n\n.focusbox {\n display: none;\n font-size: 10px;\n fill: #000;\n pointer-events: none;\n}\n\n.focusbox rect {\n fill: rgba(255, 255, 255, 0.8);\n stroke-width: 1px;\n stroke: #888;\n pointer-events: none;\n}\n\n.focusbox text {\n font-size: 12px;\n}\n\n.focusLine line {\n stroke-width: 1px;\n stroke: rgb(20, 20, 20);\n display: none;\n cursor: default;\n shape-rendering: crispEdges;\n}\n\n.height-focus.label rect {\n fill: rgba(255, 255, 255, 0.5);\n stroke-width: 1px;\n stroke: #888;\n pointer-events: none;\n shape-rendering: crispEdges;\n}\n\n.height-focus.line {\n stroke: rgb(20, 20, 20);\n stroke-width: 1px;\n shape-rendering: crispEdges;\n}\n\n.height-focus.circle {\n stroke: #FFF;\n stroke-width: 1px;\n}\n\n.mouse-height-box-text{\n font-size: 12px;\n}\n\n.grid .tick {\n pointer-events: none;\n}\n\n.grid .tick line {\n stroke: #EEE;\n stroke-width: 1px;\n shape-rendering: crispEdges;\n}\n\n.grid path {\n stroke-width: 0;\n pointer-events: none;\n}\n\n.tspan {\n font-weight: bold;\n}\n\n.select-symbol {\n cursor: pointer;\n}\n\n.select-info {\n cursor: default;\n}\n\n.lineSelection {\n cursor: move;\n}\n",""]);const f=h},1788:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=n(5402),i=n.n(r),o=n(352),a=n.n(o)()(i());a.push([t.id,'.ol-box {\n box-sizing: border-box;\n border-radius: 2px;\n border: 1.5px solid rgb(179,197,219);\n background-color: rgba(255,255,255,0.4);\n}\n\n.ol-mouse-position {\n top: 8px;\n right: 8px;\n position: absolute;\n}\n\n.ol-scale-line {\n background: rgba(0,60,136,0.3);\n border-radius: 4px;\n bottom: 8px;\n left: 8px;\n padding: 2px;\n position: absolute;\n}\n.ol-scale-line-inner {\n border: 1px solid #eee;\n border-top: none;\n color: #eee;\n font-size: 10px;\n text-align: center;\n margin: 1px;\n will-change: contents, width;\n transition: all 0.25s;\n}\n.ol-scale-singlebar-even{\n background-color: #000000;\n}\n.ol-scale-singlebar-odd{\n background-color: #ffffff;\n}\n.ol-scale-bar {\n position: absolute;\n bottom: 8px;\n left: 8px;\n}\n.ol-scale-step-marker {\n width: 1px;\n height: 15px;\n background-color: #000000;\n float: right;\n z-index: 10;\n}\n.ol-scale-step-text {\n position: absolute;\n bottom: -5px;\n font-size: 12px;\n z-index: 11;\n color: #000000;\n text-shadow: -2px 0 #FFFFFF, 0 2px #FFFFFF, 2px 0 #FFFFFF, 0 -2px #FFFFFF;\n}\n.ol-scale-text {\n position: absolute;\n font-size: 14px;\n text-align: center;\n bottom: 25px;\n color: #000000;\n text-shadow: -2px 0 #FFFFFF, 0 2px #FFFFFF, 2px 0 #FFFFFF, 0 -2px #FFFFFF;\n}\n.ol-scale-singlebar {\n position: relative;\n height: 10px;\n z-index: 9;\n box-sizing: border-box;\n border: 1px solid black;\n}\n\n.ol-unsupported {\n display: none;\n}\n.ol-viewport, .ol-unselectable {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n -webkit-tap-highlight-color: rgba(0,0,0,0);\n}\n.ol-viewport canvas {\n all: unset;\n}\n.ol-selectable {\n -webkit-touch-callout: default;\n -webkit-user-select: text;\n -moz-user-select: text;\n -ms-user-select: text;\n user-select: text;\n}\n.ol-grabbing {\n cursor: -webkit-grabbing;\n cursor: -moz-grabbing;\n cursor: grabbing;\n}\n.ol-grab {\n cursor: move;\n cursor: -webkit-grab;\n cursor: -moz-grab;\n cursor: grab;\n}\n.ol-control {\n position: absolute;\n background-color: rgba(255,255,255,0.4);\n border-radius: 4px;\n padding: 2px;\n}\n.ol-control:hover {\n background-color: rgba(255,255,255,0.6);\n}\n.ol-zoom {\n top: .5em;\n left: .5em;\n}\n.ol-rotate {\n top: .5em;\n right: .5em;\n transition: opacity .25s linear, visibility 0s linear;\n}\n.ol-rotate.ol-hidden {\n opacity: 0;\n visibility: hidden;\n transition: opacity .25s linear, visibility 0s linear .25s;\n}\n.ol-zoom-extent {\n top: 4.643em;\n left: .5em;\n}\n.ol-full-screen {\n right: .5em;\n top: .5em;\n}\n\n.ol-control button {\n display: block;\n margin: 1px;\n padding: 0;\n color: white;\n font-weight: bold;\n text-decoration: none;\n font-size: inherit;\n text-align: center;\n height: 1.375em;\n width: 1.375em;\n line-height: .4em;\n background-color: rgba(0,60,136,0.5);\n border: none;\n border-radius: 2px;\n}\n.ol-control button::-moz-focus-inner {\n border: none;\n padding: 0;\n}\n.ol-zoom-extent button {\n line-height: 1.4em;\n}\n.ol-compass {\n display: block;\n font-weight: normal;\n font-size: 1.2em;\n will-change: transform;\n}\n.ol-touch .ol-control button {\n font-size: 1.5em;\n}\n.ol-touch .ol-zoom-extent {\n top: 5.5em;\n}\n.ol-control button:hover,\n.ol-control button:focus {\n text-decoration: none;\n background-color: rgba(0,60,136,0.7);\n}\n.ol-zoom .ol-zoom-in {\n border-radius: 2px 2px 0 0;\n}\n.ol-zoom .ol-zoom-out {\n border-radius: 0 0 2px 2px;\n}\n\n\n.ol-attribution {\n text-align: right;\n bottom: .5em;\n right: .5em;\n max-width: calc(100% - 1.3em);\n display: flex;\n flex-flow: row-reverse;\n align-items: center;\n}\n.ol-attribution a {\n color: rgba(0,60,136,0.7);\n text-decoration: none;\n}\n.ol-attribution ul {\n margin: 0;\n padding: 1px .5em;\n color: #000;\n text-shadow: 0 0 2px #fff;\n font-size: 12px;\n}\n.ol-attribution li {\n display: inline;\n list-style: none;\n}\n.ol-attribution li:not(:last-child):after {\n content: " ";\n}\n.ol-attribution img {\n max-height: 2em;\n max-width: inherit;\n vertical-align: middle;\n}\n.ol-attribution button {\n flex-shrink: 0;\n}\n.ol-attribution.ol-collapsed ul {\n display: none;\n}\n.ol-attribution:not(.ol-collapsed) {\n background: rgba(255,255,255,0.8);\n}\n.ol-attribution.ol-uncollapsible {\n bottom: 0;\n right: 0;\n border-radius: 4px 0 0;\n}\n.ol-attribution.ol-uncollapsible img {\n margin-top: -.2em;\n max-height: 1.6em;\n}\n.ol-attribution.ol-uncollapsible button {\n display: none;\n}\n\n.ol-zoomslider {\n top: 4.5em;\n left: .5em;\n height: 200px;\n}\n.ol-zoomslider button {\n position: relative;\n height: 10px;\n}\n\n.ol-touch .ol-zoomslider {\n top: 5.5em;\n}\n\n.ol-overviewmap {\n left: 0.5em;\n bottom: 0.5em;\n}\n.ol-overviewmap.ol-uncollapsible {\n bottom: 0;\n left: 0;\n border-radius: 0 4px 0 0;\n}\n.ol-overviewmap .ol-overviewmap-map,\n.ol-overviewmap button {\n display: block;\n}\n.ol-overviewmap .ol-overviewmap-map {\n border: 1px solid #7b98bc;\n height: 150px;\n margin: 2px;\n width: 150px;\n}\n.ol-overviewmap:not(.ol-collapsed) button {\n bottom: 2px;\n left: 2px;\n position: absolute;\n}\n.ol-overviewmap.ol-collapsed .ol-overviewmap-map,\n.ol-overviewmap.ol-uncollapsible button {\n display: none;\n}\n.ol-overviewmap:not(.ol-collapsed) {\n background: rgba(255,255,255,0.8);\n}\n.ol-overviewmap-box {\n border: 2px dotted rgba(0,60,136,0.7);\n}\n\n.ol-overviewmap .ol-overviewmap-box:hover {\n cursor: move;\n}\n',""]);const s=a},6718:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=n(5402),i=n.n(r),o=n(352),a=n.n(o)()(i());a.push([t.id,".q_kT5WMd9udchozNJlZr {\n width: 100%;\n height: 100%;\n padding: 0;\n margin: 0;\n display: grid;\n grid-template-columns: 25rem 1fr auto;\n grid-template-rows: 100%;\n justify-content: space-between;\n overflow: auto;\n -webkit-user-select: none;\n user-select: none; /* firefox does not ignore -webkit-user-select so make this explicit, see #217 */\n}\n\n.fOXO82gMC4hOgam0cJSy {\n grid-column: 1 / span 3;\n grid-row: 1 / span 1;\n}\n\n.j8hT5hPrAp23jBq33rWL {\n grid-column: 1 / span 1;\n grid-row: 1 / span 1;\n background-color: transparent;\n pointer-events: none;\n z-index: 1;\n align-self: stretch;\n}\n\n.qd4NFogg84XQE8c8hkH9 {\n grid-column: 1 / span 1;\n grid-row: 1 / span 1;\n background-color: transparent;\n pointer-events: none;\n z-index: 2;\n align-self: stretch;\n\n margin: 0 0.5rem 0 0.5rem;\n overflow: hidden;\n position: relative;\n}\n\n.jP8_HhcWiju8R65rmoVL {\n display: flex;\n flex-direction: column;\n border-radius: 0.5rem;\n background-color: white;\n max-height: calc(100% - 2rem);\n margin: 0.5rem;\n\n box-shadow: 10px 10px 10px rgba(0, 0, 0, 0.1);\n pointer-events: all;\n overflow: auto;\n}\n\n.vUJODfAL4oeiSMQD6gLZ {\n grid-column: 3 / span 1;\n grid-row: 1 / span 1;\n align-self: start;\n z-index: 1;\n display: flex;\n margin: 0.5rem;\n padding: 0.5rem;\n background-color: white;\n border-radius: 0.5rem;\n box-shadow: 10px 10px 10px rgba(0, 0, 0, 0.1);\n}\n\n.Kh7EL29e7Lsbvljx1Pmb {\n grid-column: 2 / span 2;\n grid-row: 1 / span 1;\n z-index: 1;\n align-self: end;\n overflow: hidden; /* This is important to make the heightgraph shrink */\n margin: 0 0.5rem 1.5rem 0;\n pointer-events: none;\n}\n\n.QLeGcrqm_XosygpFBQsq {\n grid-row: 1 / span 3;\n grid-column: 1 / span 1;\n}\n\n.Y2YStLqBk0Ztuoe7o7w0 {\n grid-row: 1 / span 1;\n grid-column: 1 / span 1;\n margin: 0;\n border-radius: 0;\n z-index: 3;\n}\n\n.Jx5JUkckWSBSz4HKACK2 {\n grid-row: 2 / span 1;\n grid-column: 1 / span 1;\n justify-self: end;\n z-index: 1;\n background-color: transparent;\n pointer-events: none;\n}\n\n.mci2Zj15lHsiwdQ1ZecX {\n background-color: white;\n border-radius: 0.5rem;\n padding: 0.5rem;\n margin: 0.5rem;\n pointer-events: all;\n}\n\n.Bj2Mvobenr5pb_5tCvVq {\n grid-row: 4 / span 1;\n grid-column: 1 / span 1;\n margin: 0;\n z-index: 2;\n background-color: white;\n}\n\n.KkhGqhNDXeD2btHHGEPK {\n grid-row: 5 / span 1;\n grid-column: 1 / span 1;\n margin: 0;\n border-radius: 0;\n z-index: 2;\n}\n\n@media (max-width: 44rem) {\n .q_kT5WMd9udchozNJlZr {\n grid-template-columns: 100%;\n grid-template-rows: auto 0 1fr auto auto;\n }\n}\n",""]),a.locals={appWrapper:"q_kT5WMd9udchozNJlZr",map:"fOXO82gMC4hOgam0cJSy",sidebar:"j8hT5hPrAp23jBq33rWL",popupContainer:"qd4NFogg84XQE8c8hkH9",sidebarContent:"jP8_HhcWiju8R65rmoVL",mapOptions:"vUJODfAL4oeiSMQD6gLZ",pathDetails:"Kh7EL29e7Lsbvljx1Pmb",smallScreenMap:"QLeGcrqm_XosygpFBQsq",smallScreenSidebar:"Y2YStLqBk0Ztuoe7o7w0",smallScreenMapOptions:"Jx5JUkckWSBSz4HKACK2",smallScreenMapOptionsContent:"mci2Zj15lHsiwdQ1ZecX",smallScreenRoutingResult:"Bj2Mvobenr5pb_5tCvVq",smallScreenPoweredBy:"KkhGqhNDXeD2btHHGEPK"};const s=a},4245:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=n(5402),i=n.n(r),o=n(352),a=n.n(o)()(i());a.push([t.id,".vtJ9TRIjabzub_3dfQay {\n outline-color: #368fe8; /* doesn't work for firefox? force blue for chrome too */\n border: none;\n padding: 0;\n margin: 0;\n background-color: inherit;\n color: #5b616a;\n font-size: 1rem;\n}\n\n.vtJ9TRIjabzub_3dfQay:hover {\n cursor: pointer;\n color: #2a2b31;\n}\n\n.vtJ9TRIjabzub_3dfQay:active {\n color: lightgray;\n}\n",""]),a.locals={button:"vtJ9TRIjabzub_3dfQay"};const s=a},7406:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=n(5402),i=n.n(r),o=n(352),a=n.n(o)()(i());a.push([t.id,".VOGkzOiP9pBQ6y_FEuj3 {\n background-color: white;\n box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);\n padding: 0.5em 0;\n border-radius: 3px 3px 3px 3px;\n}\n",""]),a.locals={popup:"VOGkzOiP9pBQ6y_FEuj3"};const s=a},4601:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=n(5402),i=n.n(r),o=n(352),a=n.n(o)()(i());a.push([t.id,".q1GtXOUECNXncBufsnbO {\n background-color: white;\n font-size: small;\n box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);\n padding: 5px 10px 5px 10px;\n border-radius: 10px;\n}\n",""]),a.locals={popup:"q1GtXOUECNXncBufsnbO"};const s=a},8737:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=n(5402),i=n.n(r),o=n(352),a=n.n(o)()(i());a.push([t.id,"/* todo: this was just copy-pasted from https://openlayers.org/en/latest/examples/popup.html.\n the popup looks ugly still, but at the very minimum the background color needs to be set to make it visible.\n the popup design needs an overhaul anyway... https://github.com/graphhopper/graphhopper-maps/issues/136\n */\n.RPo5XgmSHlrhwavzfG_Y {\n position: absolute;\n bottom: 12px;\n left: -50px;\n background-color: white;\n box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);\n padding: 0 15px 0 15px;\n border-radius: 10px;\n border: 1px solid #cccccc;\n font-size: small;\n width: 110px;\n}\n.RPo5XgmSHlrhwavzfG_Y:after,\n.RPo5XgmSHlrhwavzfG_Y:before {\n top: 100%;\n border: solid transparent;\n content: ' ';\n height: 0;\n width: 0;\n position: absolute;\n pointer-events: none;\n}\n.RPo5XgmSHlrhwavzfG_Y:after {\n border-top-color: white;\n border-width: 10px;\n left: 48px;\n margin-left: -10px;\n}\n.RPo5XgmSHlrhwavzfG_Y:before {\n border-top-color: #cccccc;\n border-width: 11px;\n left: 48px;\n margin-left: -11px;\n}\n",""]),a.locals={popup:"RPo5XgmSHlrhwavzfG_Y"};const s=a},5639:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=n(5402),i=n.n(r),o=n(352),a=n.n(o)()(i());a.push([t.id,".Fy4UH5CXsl5NRUEgaDuv {\n z-index: 3;\n}\n\n.Qk3LDvrN2Fx3Vrp56YpC {\n height: 100%;\n width: 100%;\n}\n",""]),a.locals={contextMenu:"Fy4UH5CXsl5NRUEgaDuv",mapContainer:"Qk3LDvrN2Fx3Vrp56YpC"};const s=a},7092:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=n(5402),i=n.n(r),o=n(352),a=n.n(o)()(i());a.push([t.id,".DYcjRltc5gbNndYTeMTy {\n display: flex;\n}\n\n.pLocswSdJiZ78ZZcVB3w {\n display: flex;\n flex-direction: column;\n margin: 0.5rem;\n}\n\n.a14RvmtxeXcekVDVpDQ5 {\n display: flex;\n flex-direction: row;\n gap: 0.5rem;\n align-items: center;\n}\n\n.fL_OimgD6FTUYe9ws5_b {\n width: 1.2rem;\n height: 1.2rem;\n margin: 0.5rem;\n}\n\n.fL_OimgD6FTUYe9ws5_b svg {\n width: 100%;\n display: block;\n}\n",""]),a.locals={mapOptionsContainer:"DYcjRltc5gbNndYTeMTy",options:"pLocswSdJiZ78ZZcVB3w",option:"a14RvmtxeXcekVDVpDQ5",layerButton:"fL_OimgD6FTUYe9ws5_b"};const s=a},3675:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=n(5402),i=n.n(r),o=n(352),a=n.n(o)()(i());a.push([t.id,".aM4WGRtfmQWYHS145DOU {\n display: flex;\n flex-direction: column;\n max-width: 11em;\n}\n\nbutton.py3BNg02EbyGPKAVGsss div {\n margin-bottom: 2px;\n padding-right: 8px;\n}\n\n.py3BNg02EbyGPKAVGsss {\n display: flex;\n align-items: center;\n\n border: none;\n background: none;\n text-align: left;\n cursor: pointer;\n outline: inherit;\n font-size: 16px;\n padding: 0.15em 0.8em;\n}\n\n.py3BNg02EbyGPKAVGsss:hover {\n background-color: #ececec;\n}\n\n.py3BNg02EbyGPKAVGsss:active {\n background-color: #c6c6c6;\n}\n\n.py3BNg02EbyGPKAVGsss:disabled {\n color: lightgray;\n}\n",""]),a.locals={wrapper:"aM4WGRtfmQWYHS145DOU",entry:"py3BNg02EbyGPKAVGsss"};const s=a},1428:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=n(5402),i=n.n(r),o=n(352),a=n.n(o)()(i());a.push([t.id,".hVnSeZJrEFIK6F47h0xl {\n position: relative;\n display: flex;\n flex-direction: column;\n align-items: flex-end;\n}\n\n.GKkIltRz_lOhn3vvw3zx {\n position: relative;\n pointer-events: auto;\n background-color: white;\n border-radius: 0.3rem;\n}\n",""]),a.locals={heightgraphContainer:"hVnSeZJrEFIK6F47h0xl",innerDiv:"GKkIltRz_lOhn3vvw3zx"};const s=a},6218:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=n(5402),i=n.n(r),o=n(352),a=n.n(o)()(i());a.push([t.id,".V1kjzdMzmZIx3OCLd9h9 {\n margin: 0.6em 0;\n padding: 0 0;\n border-top: lightgray solid 1px;\n height: 18rem;\n}\n\n#_VmLb7Kw26u3587tyLU5::-webkit-scrollbar {\n display: none;\n}\n\n.QuHD2Qaw3cz6pCYhH_5T {\n display: flex;\n border-bottom: lightgray solid 1px;\n}\n\n.eAK1C3Ea5ZvRG0hma7P0 {\n text-decoration: none;\n flex-grow: 1;\n}\n\n.fW_i66g138rGuxSuC1nw,\n.eAK1C3Ea5ZvRG0hma7P0,\n.LBT2pllUrn07K3M8pioX button {\n font-family: Arial, serif;\n font-size: 14px;\n}\n\n.fW_i66g138rGuxSuC1nw {\n border: none;\n border-top: #ececec solid 1px;\n border-right: #ececec solid 1px;\n padding-left: 1em;\n margin-left: 0;\n background-color: white;\n color: rgba(0, 60, 136, 0.7);\n}\n\n.fW_i66g138rGuxSuC1nw option {\n background-color: white;\n color: rgba(0, 60, 136, 0.7);\n}\n\n/* show disabled button while route calculation */\n.rsrewjIL7ecQyGpbEcVH button,\n.mDdeNmMja8Yr9GztXfRs button {\n cursor: default !important;\n color: lightgray !important;\n}\n\n.T0zKND70vjbdX0_YVZ_3 {\n animation: I83HdeuoPOpr9gRN5wCJ 4s infinite normal;\n height: 2px;\n margin-top: -2px; /* when visible it should not occupy space */\n background-color: rgb(65, 121, 0);\n}\n\n@keyframes I83HdeuoPOpr9gRN5wCJ {\n 0% {\n width: 0;\n margin-left: 0;\n }\n 50% {\n width: 100%;\n margin-left: 0;\n }\n 100% {\n width: 0;\n margin-left: 100%;\n }\n}\n\n.eAK1C3Ea5ZvRG0hma7P0:hover {\n color: black;\n}\n\n.eAK1C3Ea5ZvRG0hma7P0,\n.fW_i66g138rGuxSuC1nw {\n cursor: pointer;\n color: #5b616a;\n}\n\n.LBT2pllUrn07K3M8pioX button {\n background-color: rgb(124, 179, 66, 0.1);\n}\n\n.LBT2pllUrn07K3M8pioX button,\n.eAK1C3Ea5ZvRG0hma7P0 {\n padding: 0.8em 1.7em;\n}\n",""]),a.locals={customModelBox:"V1kjzdMzmZIx3OCLd9h9",element:"_VmLb7Kw26u3587tyLU5",customModelBoxBottomBar:"QuHD2Qaw3cz6pCYhH_5T",helpLink:"eAK1C3Ea5ZvRG0hma7P0",examples:"fW_i66g138rGuxSuC1nw",applyButton:"LBT2pllUrn07K3M8pioX",applyButtonProgress:"rsrewjIL7ecQyGpbEcVH",applyButtonInvalid:"mDdeNmMja8Yr9GztXfRs",infiniteProgressBar:"T0zKND70vjbdX0_YVZ_3",progress:"I83HdeuoPOpr9gRN5wCJ"};const s=a},7984:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=n(5402),i=n.n(r),o=n(352),a=n.n(o)()(i());a.push([t.id,".sT7mSpDJFBGNvKgKAGwS {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n background-color: #f97777;\n color: white;\n margin: 0.5rem;\n padding: 0.5rem;\n border-radius: 0.3rem;\n}\n\n.FdzKN92A2KQQctU5wV4X {\n font-size: smaller;\n word-break: break-word;\n max-width: 90%;\n user-select: all;\n}\n\n.rcBDa2NJjP3Lh0aFSFJh {\n width: 0.8rem;\n color: white;\n align-self: flex-start;\n flex-shrink: 0;\n}\n\n.rcBDa2NJjP3Lh0aFSFJh svg {\n width: 100%;\n}\n",""]),a.locals={errorMessageContainer:"sT7mSpDJFBGNvKgKAGwS",errorMessage:"FdzKN92A2KQQctU5wV4X",errorMessageCloseBtn:"rcBDa2NJjP3Lh0aFSFJh"};const s=a},6820:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=n(5402),i=n.n(r),o=n(352),a=n.n(o)()(i());a.push([t.id,".NmmQhpQV0oKRzD5GW5Ne {\n height: 100%;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n}\n\n.gTENAVP1fij9UCtgLCLA {\n pointer-events: all; /* we want all the content to behave normally*/\n background-color: white;\n}\n\n.KtFf1T1cZh3TmPhlYZ4Z {\n height: 100%;\n}\n\n.lOl39aPc0HpIQ7Gh1NTK {\n display: flex;\n flex-direction: row;\n gap: 0.5rem;\n padding: 0.5rem;\n}\n\n.xSYg6dcNW9d8EAuH_fYk {\n flex-grow: 1;\n}\n\n.Hj0Nrt44Jfm5H5ji7t0c {\n display: flex;\n flex-direction: column;\n padding: 0.25rem 0.5rem;\n border: 1px black solid;\n margin: 0.5rem;\n border-radius: 0.2rem;\n}\n\n.Vf6SYl7sFXpby_vNJgFt {\n display: flex;\n flex-direction: row;\n}\n\n.KkWbod6GAF7ABERgPWeM {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n color: #5b616a;\n}\n\n.Dxy1s_NPAwvAsqLqxpV9 {\n font-size: large;\n font-weight: bold;\n color: inherit;\n}\n\n.k3q9wwpqOILTSzlxHhm7 {\n font-size: small;\n}\n\n.jv2ezCTzlpGyf56vXRwR {\n align-self: center;\n justify-self: center;\n width: 0.6rem;\n margin-right: 0.5rem;\n flex-shrink: 0;\n}\n\n.jv2ezCTzlpGyf56vXRwR > svg {\n width: 100%;\n height: 100%;\n display: block;\n}\n\n.VMEtahbPoz9OkIeAU3pP {\n display: flex;\n flex-direction: column;\n}\n\n.Alj5hJbLKVH0D5sVdWxl {\n width: 1rem;\n margin: 0.5rem;\n align-self: flex-end;\n}\n",""]),a.locals={sidebar:"NmmQhpQV0oKRzD5GW5Ne",background:"gTENAVP1fij9UCtgLCLA",fullHeight:"KtFf1T1cZh3TmPhlYZ4Z",addressSearch:"lOl39aPc0HpIQ7Gh1NTK",addressInputContainer:"xSYg6dcNW9d8EAuH_fYk",mapView:"Hj0Nrt44Jfm5H5ji7t0c",mapViewPoint:"Vf6SYl7sFXpby_vNJgFt",queryPointText:"KkWbod6GAF7ABERgPWeM",queryPointTextTo:"Dxy1s_NPAwvAsqLqxpV9",queryPointTextVia:"k3q9wwpqOILTSzlxHhm7",markerContainer:"jv2ezCTzlpGyf56vXRwR",btnCloseContainer:"VMEtahbPoz9OkIeAU3pP",btnClose:"Alj5hJbLKVH0D5sVdWxl"};const s=a},3861:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=n(5402),i=n.n(r),o=n(352),a=n.n(o)()(i());a.push([t.id,".oujwcLH9HTmG0b_I6Co2 {\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n gap: 0.3rem;\n font-size: x-small;\n}\n\n@media {\n .oujwcLH9HTmG0b_I6Co2 {\n padding: 0.1rem;\n }\n}\n\n.vQ_Bnbkx9prAyfcuNAbC {\n width: 7rem;\n display: flex;\n}\n",""]),a.locals={poweredByContainer:"oujwcLH9HTmG0b_I6Co2",logoContainer:"vQ_Bnbkx9prAyfcuNAbC"};const s=a},7049:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=n(5402),i=n.n(r),o=n(352),a=n.n(o)()(i());a.push([t.id,'.rnBAFlnLfBmxxhPIVIor {\n display: flex;\n flex-direction: column;\n\n border-bottom: 1px lightgray solid;\n}\n\n.ns5p5DMYkmHxzEFGCEAT {\n padding: 1rem 0;\n border-left: white solid 0.25rem;\n}\n\n.ns5p5DMYkmHxzEFGCEAT:hover .BVWRawvSKxjG86rLu2ll {\n border-left: lightgray solid 0.25rem;\n padding: 0 1rem 0 15px;\n}\n\n.BVWRawvSKxjG86rLu2ll {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n padding: 0 1rem 0 15px;\n border-left: white solid 0.25rem;\n}\n\n.FxaeXJtOSjrGxXMgNOMQ {\n border-left: #275dad solid 0.25rem !important;\n padding: 0 1rem 0 15px;\n}\n\n.hhIjTiclndNNH1TX6hcS {\n cursor: pointer;\n width: 50%;\n\n display: flex;\n flex-direction: column;\n}\n\n.Q6EH5iMRh0gtiie3OKQc {\n font-size: large;\n font-weight: bold;\n margin-bottom: 0.1rem;\n}\n\n.FYekzl3rZwF4B5O67EB0,\n.l2ASXmYR4da65zO4bLqD div,\n.oBXjI_9QdeZf4gSGGYiD {\n color: #5b616a;\n}\n\n.FHXtAg0gIxxNvou372BZ {\n color: #5b616a;\n font-size: 12px;\n}\n\n.myXv9V5zPUfMFZoZgqME,\n.l2ASXmYR4da65zO4bLqD {\n padding-top: 1px; /* correction for "height: auto" of svg */\n}\n\n.myXv9V5zPUfMFZoZgqME div,\n.fPuaaIaKe9rWmjJMY289 div,\n.l2ASXmYR4da65zO4bLqD div {\n color: #5b616a;\n font-size: 12px;\n float: left;\n padding-top: 0.15em;\n padding-left: 0.5em;\n}\n\n.myXv9V5zPUfMFZoZgqME svg,\n.fPuaaIaKe9rWmjJMY289 svg,\n.l2ASXmYR4da65zO4bLqD svg {\n float: left;\n width: 1.2em;\n height: auto;\n}\n\n.l2ASXmYR4da65zO4bLqD:active div,\n.myXv9V5zPUfMFZoZgqME:active div,\n.fPuaaIaKe9rWmjJMY289:active div {\n color: lightgray;\n}\n\n.myXv9V5zPUfMFZoZgqME:active svg path,\n.l2ASXmYR4da65zO4bLqD:active svg path,\n.fPuaaIaKe9rWmjJMY289:active svg path {\n fill: lightgray;\n}\n\n.l2ASXmYR4da65zO4bLqD:hover div,\n.myXv9V5zPUfMFZoZgqME:hover div,\n.fPuaaIaKe9rWmjJMY289:hover div {\n color: black;\n}\n\n.myXv9V5zPUfMFZoZgqME:hover svg path,\n.l2ASXmYR4da65zO4bLqD:hover svg path,\n.fPuaaIaKe9rWmjJMY289:hover svg path {\n fill: black;\n}\n\n.myXv9V5zPUfMFZoZgqME svg path,\n.l2ASXmYR4da65zO4bLqD svg path {\n fill: #5b616a;\n stroke: #5b616a;\n}\n\n.XOrqA2NDgl5emOnCLNlQ {\n margin: 1.08rem 1rem;\n}\n\n.u9T08ToHmhbghoIRw76J {\n height: 1.25rem;\n width: 7rem;\n background-color: lightgray;\n margin-bottom: 0.5rem;\n border-radius: 0.2rem;\n animation-name: oZeQP67dynKLo7LWmq8H;\n animation-duration: 1s;\n animation-iteration-count: infinite;\n animation-direction: alternate;\n}\n\n._DuyLfrPs59CwglQ2S3G {\n height: 1rem;\n width: 5rem;\n margin-bottom: 0;\n animation-delay: 0.25s;\n}\n\n@keyframes oZeQP67dynKLo7LWmq8H {\n from {\n opacity: 0.5;\n }\n to {\n opacity: 1;\n }\n}\n\n.hyAtvUblABk1IQDsfw8B div {\n padding: 0 1.5em 0.2em 1.4em;\n}\n\n.hyAtvUblABk1IQDsfw8B div {\n font-size: small;\n color: #f97777;\n}\n\n.hyAtvUblABk1IQDsfw8B {\n padding-bottom: 1em;\n}\n',""]),a.locals={resultRow:"rnBAFlnLfBmxxhPIVIor",resultSelectableArea:"ns5p5DMYkmHxzEFGCEAT",resultSummary:"BVWRawvSKxjG86rLu2ll",selectedResultSummary:"FxaeXJtOSjrGxXMgNOMQ",resultValues:"hhIjTiclndNNH1TX6hcS",resultMainText:"Q6EH5iMRh0gtiie3OKQc",resultSecondaryText:"FYekzl3rZwF4B5O67EB0",exportButton:"l2ASXmYR4da65zO4bLqD",elevationHint:"oBXjI_9QdeZf4gSGGYiD",resultTertiaryText:"FHXtAg0gIxxNvou372BZ",detailsButton:"myXv9V5zPUfMFZoZgqME",detailsButtonExpanded:"fPuaaIaKe9rWmjJMY289",placeholderContainer:"XOrqA2NDgl5emOnCLNlQ",placeholderMain:"u9T08ToHmhbghoIRw76J",pulse:"oZeQP67dynKLo7LWmq8H",placeholderSecondary:"_DuyLfrPs59CwglQ2S3G",routeHints:"hyAtvUblABk1IQDsfw8B"};const s=a},3266:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=n(5402),i=n.n(r),o=n(352),a=n.n(o)()(i());a.push([t.id,".ImebIylYACNb8Fq3EfvP {\n}\n\n.ZsnKv4cu3FV33fjn0Xld {\n display: grid;\n grid-template-rows: auto auto;\n grid-template-columns: 3rem auto;\n align-items: center;\n}\n\n.i3ZyBdJKckilbcln5CKW {\n grid-row: 1 / span 2;\n justify-self: center;\n align-self: center;\n height: 1.5rem;\n}\n\n.i3ZyBdJKckilbcln5CKW > svg {\n width: 100%;\n height: 100%;\n display: block;\n}\n\n.p6AHLJ6yuiQD8tgsdh0P {\n margin-top: 1rem;\n}\n\n.jm34NfrOIuJdt6kAoujT {\n grid-column: 2 / span 1;\n font-size: small;\n color: #5b616a;\n padding-bottom: 1rem;\n border-bottom: 1px solid lightgray;\n}\n",""]),a.locals={instructionsList:"ImebIylYACNb8Fq3EfvP",instruction:"ZsnKv4cu3FV33fjn0Xld",sign:"i3ZyBdJKckilbcln5CKW",mainText:"p6AHLJ6yuiQD8tgsdh0P",distance:"jm34NfrOIuJdt6kAoujT"};const s=a},557:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=n(5402),i=n.n(r),o=n(352),a=n.n(o)()(i());a.push([t.id,".gsqdc2uMxzynfsV4gjMB {\n position: relative;\n}\n\n.QRZ4v7CCyIPB_9Bx1RYg {\n display: none;\n}\n\n.U9hg9dtVbR9N4aUvQAG8 {\n display: grid;\n grid-template-columns: 1fr auto;\n grid-gap: 0;\n}\n\n.Sq7cqEmcVxJYmknzRAoN {\n box-sizing: border-box;\n width: 100%;\n padding: 0.25rem 0.5rem;\n font-size: 1rem;\n border: 1px solid #5b616a;\n border-radius: 0.2rem;\n -webkit-appearance: none;\n}\n\n@media (max-width: 44rem) {\n .s3akjMY7p0pF14XeTOBO {\n position: fixed;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n background-color: white;\n z-index: 5;\n padding: 0.5rem;\n }\n\n .s3akjMY7p0pF14XeTOBO .U9hg9dtVbR9N4aUvQAG8 {\n grid-gap: 0.5rem;\n }\n\n .s3akjMY7p0pF14XeTOBO .QRZ4v7CCyIPB_9Bx1RYg {\n display: flex;\n align-self: stretch;\n justify-self: stretch;\n align-items: center;\n }\n}\n\n.kNFBBjGEXaAE6XRYVX9M {\n padding-top: 3px;\n margin-top: -5px;\n border-top: dashed gray 2px;\n}\n\n.OFUiAEXzbV2d61WKYwEF {\n padding-bottom: 3px;\n margin-bottom: -5px;\n border-bottom: dashed gray 2px;\n}\n",""]),a.locals={container:"gsqdc2uMxzynfsV4gjMB",btnClose:"QRZ4v7CCyIPB_9Bx1RYg",inputContainer:"U9hg9dtVbR9N4aUvQAG8",input:"Sq7cqEmcVxJYmknzRAoN",fullscreen:"s3akjMY7p0pF14XeTOBO",topBorder:"kNFBBjGEXaAE6XRYVX9M",bottomBorder:"OFUiAEXzbV2d61WKYwEF"};const s=a},1248:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=n(5402),i=n.n(r),o=n(352),a=n.n(o)()(i());a.push([t.id,".xQ3D_pFTHhMaUdgYeByw:not(:last-child) {\n border-bottom: 1px lightgray solid;\n}\n\n.z7WdRwzCAU2lGa_1rfeu {\n display: block;\n width: 100%;\n border: none;\n background: none;\n color: inherit;\n font: inherit;\n padding: 0;\n cursor: pointer;\n outline: inherit;\n overflow: hidden;\n}\n\n.AMZ1Jehmhz2MVBcEQd7t,\n.z7WdRwzCAU2lGa_1rfeu:hover {\n background-color: #ececec;\n}\n\n.z7WdRwzCAU2lGa_1rfeu:active {\n background-color: #c6c6c6;\n}\n\n.pe9HhtvNcaZOsP5oT3e2 {\n display: flex;\n flex-direction: row;\n align-items: center;\n gap: 0.5rem;\n margin: 0.5rem 0.5rem;\n}\n\n.ASu5zf7FRLN5O0po0NrW {\n width: 1.2rem;\n}\n\n.ASu5zf7FRLN5O0po0NrW > svg {\n height: 100%;\n width: 100%;\n}\n\n.W4_qhHaJb52H2jirIP7r {\n padding: 0.5em 0em;\n}\n\n.GETCXIg8RjjqUQK55M9J {\n display: flex;\n flex-direction: column;\n text-align: start;\n margin: 0.4rem 0.5rem;\n}\n\n.zKLhjBdKPQtZV4jaEjmo {\n font-weight: bold;\n}\n\n.oq6_FSKENJAxVz7GXSJn,\n.Nu6h7RqyCSnMPIAcOCGk {\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n font-size: small;\n color: #5b616a;\n}\n",""]),a.locals={autocompleteItem:"xQ3D_pFTHhMaUdgYeByw",selectableItem:"z7WdRwzCAU2lGa_1rfeu",highlightedItem:"AMZ1Jehmhz2MVBcEQd7t",currentLocationEntry:"pe9HhtvNcaZOsP5oT3e2",currentLocationIcon:"ASu5zf7FRLN5O0po0NrW",moreResultsEntry:"W4_qhHaJb52H2jirIP7r",geocodingEntry:"GETCXIg8RjjqUQK55M9J",mainText:"zKLhjBdKPQtZV4jaEjmo",moreResultsText:"oq6_FSKENJAxVz7GXSJn",secondaryText:"Nu6h7RqyCSnMPIAcOCGk"};const s=a},9292:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=n(5402),i=n.n(r),o=n(352),a=n.n(o)()(i());a.push([t.id,".ZyeefeOgdKopZAVXvZ27 {\n box-sizing: border-box;\n background-color: white;\n border: solid 1px lightgray;\n box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.1);\n border-radius: 0.2rem;\n position: absolute;\n pointer-events: all;\n}\n",""]),a.locals={popup:"ZyeefeOgdKopZAVXvZ27"};const s=a},6042:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=n(5402),i=n.n(r),o=n(352),a=n.n(o)()(i());a.push([t.id,".tb0BV5_lCyeE2I1MApYE {\n margin: 0.1rem 0.5rem 0.5rem 0.5rem;\n}\n\n.B2w9MWbw0dwcg7CJRBha {\n display: grid;\n grid-template-columns: auto 1fr auto;\n align-items: center;\n grid-gap: 0.5rem;\n margin: 0.5rem 0.1rem 0.7rem 0;\n}\n\n.Ixvef2zO0J5Y6cBOYkOb {\n overflow-y: auto;\n overflow-x: hidden;\n}\n\n.Jk805a7DDlAztx4WXNSy {\n grid-column: 2 / span 2;\n}\n\n.Jvo0BF82Fk2_Sq1VEBLY {\n grid-column: 4;\n width: 1rem;\n color: #adadad;\n justify-self: center;\n}\n\n.M_SQkdEtm41My0IXllvS {\n grid-column: 1 / span 1;\n align-self: center;\n justify-self: center;\n width: 1rem;\n}\n\n.M_SQkdEtm41My0IXllvS > svg {\n height: 100%;\n width: 100%;\n}\n\n.L5m9WrFXzzIAAwTXjeHQ {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n margin: 1rem 0;\n}\n\n.QGfN0FsxXxHFFqV6CdAD {\n grid-column: 1 / span 3;\n}\n\n.IJMEr0mofcX6DEydiDZS {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n margin-right: 2px;\n padding-bottom: 1rem;\n}\n\n.QtBVq7vhXtqq2nEPzZNc:hover path {\n fill: black;\n}\n\n.QtBVq7vhXtqq2nEPzZNc svg {\n color: #adadad;\n width: 1.1rem;\n padding: 0 1.25em 0 0;\n}\n\n.QtBVq7vhXtqq2nEPzZNc {\n display: flex;\n flex-direction: row;\n}\n\n.QtBVq7vhXtqq2nEPzZNc,\n.NKckyjNy98cJB_AGlgL1 {\n font-size: 14px;\n}\n\n.M_SQkdEtm41My0IXllvS:hover svg {\n fill: black !important;\n}\n\n.M_SQkdEtm41My0IXllvS,\n.wDWVe5Zn9LB35M3JjfLC,\n.epsdZsmnsryfJte7w407 {\n grid-column: 1 / span 1;\n align-self: center;\n justify-self: center;\n width: 1rem;\n}\n\n.M_SQkdEtm41My0IXllvS {\n outline: none;\n}\n\n.epsdZsmnsryfJte7w407:hover svg {\n fill: black;\n}\n\n.epsdZsmnsryfJte7w407:active svg {\n fill: lightgray;\n}\n\n.M_SQkdEtm41My0IXllvS > svg,\n.epsdZsmnsryfJte7w407 > svg {\n height: 100%;\n width: 100%;\n}\n\n.wDWVe5Zn9LB35M3JjfLC {\n margin-left: -4px;\n}\n\n.epsdZsmnsryfJte7w407 > svg {\n transform: scaleX(1.7) scaleY(1.5);\n margin-left: 3px;\n fill: gray;\n}\n\n.Cp4ouMqNv1osE4qFyqQ7 > svg {\n fill: black;\n}\n\n.ZOsjL0uMCXzHRXy3U31w {\n visibility: hidden;\n}\n",""]),a.locals={searchBoxParent:"tb0BV5_lCyeE2I1MApYE",searchBox:"B2w9MWbw0dwcg7CJRBha",searchBoxScrollable:"Ixvef2zO0J5Y6cBOYkOb",searchBoxInput:"Jk805a7DDlAztx4WXNSy",removeSearchBox:"Jvo0BF82Fk2_Sq1VEBLY",markerContainer:"M_SQkdEtm41My0IXllvS",searchOptions:"L5m9WrFXzzIAAwTXjeHQ",geocodingResults:"QGfN0FsxXxHFFqV6CdAD",lastSearchLine:"IJMEr0mofcX6DEydiDZS",addSearchBox:"QtBVq7vhXtqq2nEPzZNc",mikm:"NKckyjNy98cJB_AGlgL1",markerSelected:"wDWVe5Zn9LB35M3JjfLC",markerTarget:"epsdZsmnsryfJte7w407",dropPreview:"Cp4ouMqNv1osE4qFyqQ7",hide:"ZOsjL0uMCXzHRXy3U31w"};const s=a},9558:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=n(5402),i=n.n(r),o=n(352),a=n.n(o)()(i());a.push([t.id,".V9cVex8XnlCYmagTeB0Y {\n display: flex;\n flex-direction: row;\n padding: 0.6em 0 0 0;\n}\n\n.qgY6zn0r6XNYSUHmJI0A {\n width: 100%;\n display: flex;\n flex-direction: row;\n justify-content: center;\n padding-right: 0.5em;\n}\n\n.jc6f7fae68CuNGOiF9Ac {\n background-color: rgba(39, 93, 173, 0.2);\n color: #275dad;\n}\n\n.jc6f7fae68CuNGOiF9Ac:hover {\n color: #275dad;\n}\n\n.CJEh6f9s5CSok6mFaRka {\n border-radius: 50%;\n margin: 0.1em;\n padding: 0.3em;\n transform: scale(1.1);\n}\n\n.En7bkFmwgNF9fH1tvPwQ,\n.cEGy0brBn2KDrl2vGHtg {\n border-radius: 50%;\n}\n\n.En7bkFmwgNF9fH1tvPwQ svg path,\n.cEGy0brBn2KDrl2vGHtg svg path {\n fill: #a8a8a8;\n stroke: #a8a8a8;\n}\n\n.En7bkFmwgNF9fH1tvPwQ:active svg path,\n.cEGy0brBn2KDrl2vGHtg:active svg path {\n fill: lightgray;\n stroke: lightgray;\n}\n\n.cEGy0brBn2KDrl2vGHtg:hover svg path,\n.En7bkFmwgNF9fH1tvPwQ:hover svg path {\n fill: #000000;\n stroke: #000000;\n}\n\n.cEGy0brBn2KDrl2vGHtg:active svg path,\n.En7bkFmwgNF9fH1tvPwQ:active svg path {\n fill: lightgray;\n stroke: lightgray;\n}\n\n.En7bkFmwgNF9fH1tvPwQ svg,\n.cEGy0brBn2KDrl2vGHtg svg {\n margin: 0;\n padding: 8px;\n width: 18px;\n height: 18px;\n}\n\n.cEGy0brBn2KDrl2vGHtg svg {\n transform: rotate(0);\n animation-name: kqVeBV0S_BRY2Sv9cezC;\n animation-duration: 0.2s;\n}\n\n.En7bkFmwgNF9fH1tvPwQ svg {\n transform: rotate(180deg);\n animation-name: qJ9nJcGnS6OvkyKLSGfD;\n animation-duration: 0.2s;\n}\n\n@keyframes qJ9nJcGnS6OvkyKLSGfD {\n 0% {\n transform: rotate(0);\n }\n 100% {\n transform: rotate(180deg);\n }\n}\n\n@keyframes kqVeBV0S_BRY2Sv9cezC {\n 0% {\n transform: rotate(180deg);\n }\n 100% {\n transform: rotate(0);\n }\n}\n",""]),a.locals={profilesParent:"V9cVex8XnlCYmagTeB0Y",profiles:"qgY6zn0r6XNYSUHmJI0A",selectedProfile:"jc6f7fae68CuNGOiF9Ac",profileBtn:"CJEh6f9s5CSok6mFaRka",enabledSettings:"En7bkFmwgNF9fH1tvPwQ",settings:"cEGy0brBn2KDrl2vGHtg",reverse_rotate:"kqVeBV0S_BRY2Sv9cezC",setting_rotate:"qJ9nJcGnS6OvkyKLSGfD"};const s=a},1852:function(t,e,n){var r;"undefined"!=typeof self&&self,t.exports=(r=n(9526),function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=7)}([function(t,e,n){"use strict";function r(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}(t,e)||function(t,e){if(t){if("string"==typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var o=n(1),a=n.n(o),s=n(8),l=n.n(s),u=n(2),c=n(10),h=n.n(c),p=n(3),d=n(6),f=function(t){if(!t)return null;var e=Object.keys(t);return 0===e.length?null:e.reduce((function(e,n){return e[Object(u.a)(n)]=t[n],e}),{})},g=function(){var t=a.a.useRef(!1);return a.a.useEffect((function(){t.current=!0}),[]),t.current},m=function(t){var e=function(){return function(t){return t.query||Object(p.a)(t)}(t)},n=r(a.a.useState(e),2),i=n[0],o=n[1];return a.a.useEffect((function(){var t=e();i!==t&&o(t)}),[t]),i};e.a=function(t,e,n){var i=function(t){var e=a.a.useContext(d.a),n=function(){return f(t)||f(e)},i=r(a.a.useState(n),2),o=i[0],s=i[1];return a.a.useEffect((function(){var t=n();h()(o,t)||s(t)}),[t,e]),o}(e),o=m(t);if(!o)throw new Error("Invalid or missing MediaQuery!");var s=function(t,e){var n=function(){return l()(t,e||{},!!e)},i=r(a.a.useState(n),2),o=i[0],s=i[1],u=g();return a.a.useEffect((function(){return u&&s(n()),function(){o.dispose()}}),[t,e]),o}(o,i),u=function(t){var e=r(a.a.useState(t.matches),2),n=e[0],i=e[1];return a.a.useEffect((function(){var e=function(){i(t.matches)};return t.addListener(e),e(),function(){t.removeListener(e)}}),[t]),n}(s),c=g();return a.a.useEffect((function(){c&&n&&n(u)}),[u]),u}},function(t,e){t.exports=r},function(t,e,n){"use strict";function r(t){return"-"+t.toLowerCase()}var i=/[A-Z]/g,o=/^ms-/,a={};e.a=function(t){if(a.hasOwnProperty(t))return a[t];var e=t.replace(i,r);return a[t]=o.test(e)?"-"+e:e}},function(t,e,n){"use strict";var r=n(2),i=n(11);e.a=function(t){var e=[];return Object.keys(i.a.all).forEach((function(n){var i=t[n];null!=i&&e.push(function(t,e){var n=Object(r.a)(t);return"number"==typeof e&&(e="".concat(e,"px")),!0===e?n:!1===e?"not ".concat(n):"(".concat(n,": ").concat(e,")")}(n,i))})),e.join(" and ")}},function(t,e,n){"use strict";t.exports=n(13)},function(t,e,n){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(t,e,n){"use strict";var r=n(1),i=n.n(r).a.createContext();e.a=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(17),o=n(3),a=n(6);n.d(e,"default",(function(){return i.a})),n.d(e,"useMediaQuery",(function(){return r.a})),n.d(e,"toQuery",(function(){return o.a})),n.d(e,"Context",(function(){return a.a}))},function(t,e,n){"use strict";function r(t,e,n){function r(t){a.matches=t.matches,a.media=t.media}var a=this;if(o&&!n){var s=o.call(window,t);this.matches=s.matches,this.media=s.media,s.addListener(r)}else this.matches=i(t,e),this.media=t;this.addListener=function(t){s&&s.addListener(t)},this.removeListener=function(t){s&&s.removeListener(t)},this.dispose=function(){s&&s.removeListener(r)}}var i=n(9).match,o="undefined"!=typeof window?window.matchMedia:null;t.exports=function(t,e,n){return new r(t,e,n)}},function(t,e,n){"use strict";function r(t){return t.split(",").map((function(t){var e=(t=t.trim()).match(s),n=e[1],r=e[2],i=e[3]||"",o={};return o.inverse=!!n&&"not"===n.toLowerCase(),o.type=r?r.toLowerCase():"all",i=i.match(/\([^\)]+\)/g)||[],o.expressions=i.map((function(t){var e=t.match(l),n=e[1].toLowerCase().match(u);return{modifier:n[1],feature:n[2],value:e[2]}})),o}))}function i(t){var e,n=Number(t);return n||(n=(e=t.match(/^(\d+)\s*\/\s*(\d+)$/))[1]/e[2]),n}function o(t){var e=parseFloat(t);switch(String(t).match(h)[1]){case"dpcm":return e/2.54;case"dppx":return 96*e;default:return e}}function a(t){var e=parseFloat(t);switch(String(t).match(c)[1]){case"em":case"rem":return 16*e;case"cm":return 96*e/2.54;case"mm":return 96*e/2.54/10;case"in":return 96*e;case"pt":return 72*e;case"pc":return 72*e/12;default:return e}}e.match=function(t,e){return r(t).some((function(t){var n=t.inverse,r="all"===t.type||e.type===t.type;if(r&&n||!r&&!n)return!1;var s=t.expressions.every((function(t){var n=t.feature,r=t.modifier,s=t.value,l=e[n];if(!l)return!1;switch(n){case"orientation":case"scan":return l.toLowerCase()===s.toLowerCase();case"width":case"height":case"device-width":case"device-height":s=a(s),l=a(l);break;case"resolution":s=o(s),l=o(l);break;case"aspect-ratio":case"device-aspect-ratio":case"device-pixel-ratio":s=i(s),l=i(l);break;case"grid":case"color":case"color-index":case"monochrome":s=parseInt(s,10)||1,l=parseInt(l,10)||0}switch(r){case"min":return l>=s;case"max":return l<=s;default:return l===s}}));return s&&!n||!s&&n}))},e.parse=r;var s=/(?:(only|not)?\s*([^\s\(\)]+)(?:\s*and)?\s*)?(.+)?/i,l=/\(\s*([^\s\:\)]+)\s*(?:\:\s*([^\s\)]+))?\s*\)/,u=/^(?:(min|max)-)?(.+)/,c=/(em|rem|px|cm|mm|in|pt|pc)?$/,h=/(dpi|dpcm|dppx)?$/},function(t,e,n){"use strict";t.exports=function(t,e){if(t===e)return!0;if(!t||!e)return!1;var n=Object.keys(t),r=Object.keys(e),i=n.length;if(r.length!==i)return!1;for(var o=0;o<i;o++){var a=n[o];if(t[a]!==e[a]||!Object.prototype.hasOwnProperty.call(e,a))return!1}return!0}},function(t,e,n){"use strict";function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function i(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){o(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var a=n(12),s=n.n(a),l=s.a.oneOfType([s.a.string,s.a.number]),u={orientation:s.a.oneOf(["portrait","landscape"]),scan:s.a.oneOf(["progressive","interlace"]),aspectRatio:s.a.string,deviceAspectRatio:s.a.string,height:l,deviceHeight:l,width:l,deviceWidth:l,color:s.a.bool,colorIndex:s.a.bool,monochrome:s.a.bool,resolution:l},c=i({minAspectRatio:s.a.string,maxAspectRatio:s.a.string,minDeviceAspectRatio:s.a.string,maxDeviceAspectRatio:s.a.string,minHeight:l,maxHeight:l,minDeviceHeight:l,maxDeviceHeight:l,minWidth:l,maxWidth:l,minDeviceWidth:l,maxDeviceWidth:l,minColor:s.a.number,maxColor:s.a.number,minColorIndex:s.a.number,maxColorIndex:s.a.number,minMonochrome:s.a.number,maxMonochrome:s.a.number,minResolution:l,maxResolution:l},u),h={all:s.a.bool,grid:s.a.bool,aural:s.a.bool,braille:s.a.bool,handheld:s.a.bool,print:s.a.bool,projection:s.a.bool,screen:s.a.bool,tty:s.a.bool,tv:s.a.bool,embossed:s.a.bool},p=i(i({},h),c);u.type=Object.keys(h),e.a={all:p,types:h,matchers:u,features:c}},function(t,e,n){var r=n(4);t.exports=n(14)(r.isElement,!0)},function(t,e,n){"use strict";!function(){function t(t){if("object"==typeof t&&null!==t){var e=t.$$typeof;switch(e){case i:var n=t.type;switch(n){case h:case p:case a:case l:case s:case f:return n;default:var r=n&&n.$$typeof;switch(r){case c:case d:case y:case m:case u:return r;default:return e}}case o:return e}}}function n(e){return t(e)===p}var r="function"==typeof Symbol&&Symbol.for,i=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,s=r?Symbol.for("react.strict_mode"):60108,l=r?Symbol.for("react.profiler"):60114,u=r?Symbol.for("react.provider"):60109,c=r?Symbol.for("react.context"):60110,h=r?Symbol.for("react.async_mode"):60111,p=r?Symbol.for("react.concurrent_mode"):60111,d=r?Symbol.for("react.forward_ref"):60112,f=r?Symbol.for("react.suspense"):60113,g=r?Symbol.for("react.suspense_list"):60120,m=r?Symbol.for("react.memo"):60115,y=r?Symbol.for("react.lazy"):60116,v=r?Symbol.for("react.block"):60121,_=r?Symbol.for("react.fundamental"):60117,b=r?Symbol.for("react.responder"):60118,w=r?Symbol.for("react.scope"):60119,x=h,S=p,C=c,E=u,k=i,A=d,P=a,T=y,M=m,O=o,R=l,I=s,L=f,F=!1;e.AsyncMode=x,e.ConcurrentMode=S,e.ContextConsumer=C,e.ContextProvider=E,e.Element=k,e.ForwardRef=A,e.Fragment=P,e.Lazy=T,e.Memo=M,e.Portal=O,e.Profiler=R,e.StrictMode=I,e.Suspense=L,e.isAsyncMode=function(e){return F||(F=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),n(e)||t(e)===h},e.isConcurrentMode=n,e.isContextConsumer=function(e){return t(e)===c},e.isContextProvider=function(e){return t(e)===u},e.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===i},e.isForwardRef=function(e){return t(e)===d},e.isFragment=function(e){return t(e)===a},e.isLazy=function(e){return t(e)===y},e.isMemo=function(e){return t(e)===m},e.isPortal=function(e){return t(e)===o},e.isProfiler=function(e){return t(e)===l},e.isStrictMode=function(e){return t(e)===s},e.isSuspense=function(e){return t(e)===f},e.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===a||t===p||t===l||t===s||t===f||t===g||"object"==typeof t&&null!==t&&(t.$$typeof===y||t.$$typeof===m||t.$$typeof===u||t.$$typeof===c||t.$$typeof===d||t.$$typeof===_||t.$$typeof===b||t.$$typeof===w||t.$$typeof===v)},e.typeOf=t}()},function(t,e,n){"use strict";function r(){return null}var i,o=n(4),a=n(15),s=n(5),l=n(16),u=Function.call.bind(Object.prototype.hasOwnProperty);i=function(t){var e="Warning: "+t;"undefined"!=typeof console&&console.error(e);try{throw new Error(e)}catch(t){}},t.exports=function(t,e){function n(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function c(t){this.message=t,this.stack=""}function h(t){function n(n,a,l,u,h,p,d){if(u=u||_,p=p||l,d!==s){if(e){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}if("undefined"!=typeof console){var g=u+":"+l;!r[g]&&o<3&&(i("You are manually calling a React.PropTypes validation function for the `"+p+"` prop on `"+u+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),r[g]=!0,o++)}}return null==a[l]?n?new c(null===a[l]?"The "+h+" `"+p+"` is marked as required in `"+u+"`, but its value is `null`.":"The "+h+" `"+p+"` is marked as required in `"+u+"`, but its value is `undefined`."):null:t(a,l,u,h,p)}var r={},o=0,a=n.bind(null,!1);return a.isRequired=n.bind(null,!0),a}function p(t){return h((function(e,n,r,i,o,a){var s=e[n];return f(s)!==t?new c("Invalid "+i+" `"+o+"` of type `"+g(s)+"` supplied to `"+r+"`, expected `"+t+"`."):null}))}function d(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(d);if(null===e||t(e))return!0;var n=function(t){var e=t&&(y&&t[y]||t[v]);if("function"==typeof e)return e}(e);if(!n)return!1;var r,i=n.call(e);if(n!==e.entries){for(;!(r=i.next()).done;)if(!d(r.value))return!1}else for(;!(r=i.next()).done;){var o=r.value;if(o&&!d(o[1]))return!1}return!0;default:return!1}}function f(t){var e=typeof t;return Array.isArray(t)?"array":t instanceof RegExp?"object":function(t,e){return"symbol"===t||!!e&&("Symbol"===e["@@toStringTag"]||"function"==typeof Symbol&&e instanceof Symbol)}(e,t)?"symbol":e}function g(t){if(null==t)return""+t;var e=f(t);if("object"===e){if(t instanceof Date)return"date";if(t instanceof RegExp)return"regexp"}return e}function m(t){var e=g(t);switch(e){case"array":case"object":return"an "+e;case"boolean":case"date":case"regexp":return"a "+e;default:return e}}var y="function"==typeof Symbol&&Symbol.iterator,v="@@iterator",_="<<anonymous>>",b={array:p("array"),bool:p("boolean"),func:p("function"),number:p("number"),object:p("object"),string:p("string"),symbol:p("symbol"),any:h(r),arrayOf:function(t){return h((function(e,n,r,i,o){if("function"!=typeof t)return new c("Property `"+o+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var a=e[n];if(!Array.isArray(a))return new c("Invalid "+i+" `"+o+"` of type `"+f(a)+"` supplied to `"+r+"`, expected an array.");for(var l=0;l<a.length;l++){var u=t(a,l,r,i,o+"["+l+"]",s);if(u instanceof Error)return u}return null}))},element:h((function(e,n,r,i,o){var a=e[n];return t(a)?null:new c("Invalid "+i+" `"+o+"` of type `"+f(a)+"` supplied to `"+r+"`, expected a single ReactElement.")})),elementType:h((function(t,e,n,r,i){var a=t[e];return o.isValidElementType(a)?null:new c("Invalid "+r+" `"+i+"` of type `"+f(a)+"` supplied to `"+n+"`, expected a single ReactElement type.")})),instanceOf:function(t){return h((function(e,n,r,i,o){if(!(e[n]instanceof t)){var a=t.name||_;return new c("Invalid "+i+" `"+o+"` of type `"+(((s=e[n]).constructor&&s.constructor.name?s.constructor.name:_)+"` supplied to `")+r+"`, expected instance of `"+a+"`.")}var s;return null}))},node:h((function(t,e,n,r,i){return d(t[e])?null:new c("Invalid "+r+" `"+i+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(t){return h((function(e,n,r,i,o){if("function"!=typeof t)return new c("Property `"+o+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var a=e[n],l=f(a);if("object"!==l)return new c("Invalid "+i+" `"+o+"` of type `"+l+"` supplied to `"+r+"`, expected an object.");for(var h in a)if(u(a,h)){var p=t(a,h,r,i,o+"."+h,s);if(p instanceof Error)return p}return null}))},oneOf:function(t){function e(e,r,i,o,a){for(var s=e[r],l=0;l<t.length;l++)if(n(s,t[l]))return null;var u=JSON.stringify(t,(function(t,e){return"symbol"===g(e)?String(e):e}));return new c("Invalid "+o+" `"+a+"` of value `"+String(s)+"` supplied to `"+i+"`, expected one of "+u+".")}return Array.isArray(t)?h(e):(i(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),r)},oneOfType:function(t){if(!Array.isArray(t))return i("Invalid argument supplied to oneOfType, expected an instance of array."),r;for(var e=0;e<t.length;e++){var n=t[e];if("function"!=typeof n)return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+m(n)+" at index "+e+"."),r}return h((function(e,n,r,i,o){for(var a=0;a<t.length;a++)if(null==(0,t[a])(e,n,r,i,o,s))return null;return new c("Invalid "+i+" `"+o+"` supplied to `"+r+"`.")}))},shape:function(t){return h((function(e,n,r,i,o){var a=e[n],l=f(a);if("object"!==l)return new c("Invalid "+i+" `"+o+"` of type `"+l+"` supplied to `"+r+"`, expected `object`.");for(var u in t){var h=t[u];if(h){var p=h(a,u,r,i,o+"."+u,s);if(p)return p}}return null}))},exact:function(t){return h((function(e,n,r,i,o){var l=e[n],u=f(l);if("object"!==u)return new c("Invalid "+i+" `"+o+"` of type `"+u+"` supplied to `"+r+"`, expected `object`.");var h=a({},e[n],t);for(var p in h){var d=t[p];if(!d)return new c("Invalid "+i+" `"+o+"` key `"+p+"` supplied to `"+r+"`.\nBad object: "+JSON.stringify(e[n],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(t),null," "));var g=d(l,p,r,i,o+"."+p,s);if(g)return g}return null}))}};return c.prototype=Error.prototype,b.checkPropTypes=l,b.resetWarningCache=l.resetWarningCache,b.PropTypes=b,b}},function(t,e,n){"use strict";function r(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}var i=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(t){r[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}}()?Object.assign:function(t,e){for(var n,s,l=r(t),u=1;u<arguments.length;u++){for(var c in n=Object(arguments[u]))o.call(n,c)&&(l[c]=n[c]);if(i){s=i(n);for(var h=0;h<s.length;h++)a.call(n,s[h])&&(l[s[h]]=n[s[h]])}}return l}},function(t,e,n){"use strict";function r(t,e,n,r,l){for(var u in t)if(s(t,u)){var c;try{if("function"!=typeof t[u]){var h=Error((r||"React class")+": "+n+" type `"+u+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof t[u]+"`.");throw h.name="Invariant Violation",h}c=t[u](e,u,r,n,null,o)}catch(t){c=t}if(!c||c instanceof Error||i((r||"React class")+": type specification of "+n+" `"+u+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof c+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),c instanceof Error&&!(c.message in a)){a[c.message]=!0;var p=l?l():"";i("Failed "+n+" type: "+c.message+(null!=p?p:""))}}}var i=function(){},o=n(5),a={},s=Function.call.bind(Object.prototype.hasOwnProperty);i=function(t){var e="Warning: "+t;"undefined"!=typeof console&&console.error(e);try{throw new Error(e)}catch(t){}},r.resetWarningCache=function(){a={}},t.exports=r},function(t,e,n){"use strict";function r(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}e.a=function(t){var e=t.children,n=t.device,o=t.onChange,a=r(t,["children","device","onChange"]),s=Object(i.a)(a,n,o);return"function"==typeof e?e(s):s?e:null};var i=n(0)}]))},9103:(t,e,n)=>{!function(t){var e={pairs:"()[]{}''\"\"",closeBefore:")]}'\":;>",triples:"",explode:"[]{}"},n=t.Pos;function r(t,n){return"pairs"==n&&"string"==typeof t?t:"object"==typeof t&&null!=t[n]?t[n]:e[n]}t.defineOption("autoCloseBrackets",!1,(function(e,n,a){a&&a!=t.Init&&(e.removeKeyMap(i),e.state.closeBrackets=null),n&&(o(r(n,"pairs")),e.state.closeBrackets=n,e.addKeyMap(i))}));var i={Backspace:function(e){var i=s(e);if(!i||e.getOption("disableInput"))return t.Pass;for(var o=r(i,"pairs"),a=e.listSelections(),l=0;l<a.length;l++){if(!a[l].empty())return t.Pass;var u=c(e,a[l].head);if(!u||o.indexOf(u)%2!=0)return t.Pass}for(l=a.length-1;l>=0;l--){var h=a[l].head;e.replaceRange("",n(h.line,h.ch-1),n(h.line,h.ch+1),"+delete")}},Enter:function(e){var n=s(e),i=n&&r(n,"explode");if(!i||e.getOption("disableInput"))return t.Pass;for(var o=e.listSelections(),a=0;a<o.length;a++){if(!o[a].empty())return t.Pass;var u=c(e,o[a].head);if(!u||i.indexOf(u)%2!=0)return t.Pass}e.operation((function(){var t=e.lineSeparator()||"\n";e.replaceSelection(t+t,null),l(e,-1),o=e.listSelections();for(var n=0;n<o.length;n++){var r=o[n].head.line;e.indentLine(r,null,!0),e.indentLine(r+1,null,!0)}}))}};function o(t){for(var e=0;e<t.length;e++){var n=t.charAt(e),r="'"+n+"'";i[r]||(i[r]=a(n))}}function a(e){return function(i){return function(e,i){var o=s(e);if(!o||e.getOption("disableInput"))return t.Pass;var a=r(o,"pairs"),c=a.indexOf(i);if(-1==c)return t.Pass;for(var p,d=r(o,"closeBefore"),f=r(o,"triples"),g=a.charAt(c+1)==i,m=e.listSelections(),y=c%2==0,v=0;v<m.length;v++){var _,b=m[v],w=b.head,x=e.getRange(w,n(w.line,w.ch+1));if(y&&!b.empty())_="surround";else if(!g&&y||x!=i)if(g&&w.ch>1&&f.indexOf(i)>=0&&e.getRange(n(w.line,w.ch-2),w)==i+i){if(w.ch>2&&/\bstring/.test(e.getTokenTypeAt(n(w.line,w.ch-2))))return t.Pass;_="addFour"}else if(g){var S=0==w.ch?" ":e.getRange(n(w.line,w.ch-1),w);if(t.isWordChar(x)||S==i||t.isWordChar(S))return t.Pass;_="both"}else{if(!y||!(0===x.length||/\s/.test(x)||d.indexOf(x)>-1))return t.Pass;_="both"}else _=g&&h(e,w)?"both":f.indexOf(i)>=0&&e.getRange(w,n(w.line,w.ch+3))==i+i+i?"skipThree":"skip";if(p){if(p!=_)return t.Pass}else p=_}var C=c%2?a.charAt(c-1):i,E=c%2?i:a.charAt(c+1);e.operation((function(){if("skip"==p)l(e,1);else if("skipThree"==p)l(e,3);else if("surround"==p){for(var t=e.getSelections(),n=0;n<t.length;n++)t[n]=C+t[n]+E;for(e.replaceSelections(t,"around"),t=e.listSelections().slice(),n=0;n<t.length;n++)t[n]=u(t[n]);e.setSelections(t)}else"both"==p?(e.replaceSelection(C+E,null),e.triggerElectric(C+E),l(e,-1)):"addFour"==p&&(e.replaceSelection(C+C+C+C,"before"),l(e,1))}))}(i,e)}}function s(t){var e=t.state.closeBrackets;return!e||e.override?e:t.getModeAt(t.getCursor()).closeBrackets||e}function l(t,e){for(var n=[],r=t.listSelections(),i=0,o=0;o<r.length;o++){var a=r[o];a.head==t.getCursor()&&(i=o);var s=a.head.ch||e>0?{line:a.head.line,ch:a.head.ch+e}:{line:a.head.line-1};n.push({anchor:s,head:s})}t.setSelections(n,i)}function u(e){var r=t.cmpPos(e.anchor,e.head)>0;return{anchor:new n(e.anchor.line,e.anchor.ch+(r?-1:1)),head:new n(e.head.line,e.head.ch+(r?1:-1))}}function c(t,e){var r=t.getRange(n(e.line,e.ch-1),n(e.line,e.ch+1));return 2==r.length?r:null}function h(t,e){var r=t.getTokenAt(n(e.line,e.ch+1));return/\bstring/.test(r.type)&&r.start==e.ch&&(0==e.ch||!/\bstring/.test(t.getTokenTypeAt(e)))}o(e.pairs+"`")}(n(3710))},7885:(t,e,n)=>{!function(t){var e=/MSIE \d/.test(navigator.userAgent)&&(null==document.documentMode||document.documentMode<8),n=t.Pos,r={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function i(t){return t&&t.bracketRegex||/[(){}[\]]/}function o(t,e,o){var s=t.getLineHandle(e.line),l=e.ch-1,u=o&&o.afterCursor;null==u&&(u=/(^| )cm-fat-cursor($| )/.test(t.getWrapperElement().className));var c=i(o),h=!u&&l>=0&&c.test(s.text.charAt(l))&&r[s.text.charAt(l)]||c.test(s.text.charAt(l+1))&&r[s.text.charAt(++l)];if(!h)return null;var p=">"==h.charAt(1)?1:-1;if(o&&o.strict&&p>0!=(l==e.ch))return null;var d=t.getTokenTypeAt(n(e.line,l+1)),f=a(t,n(e.line,l+(p>0?1:0)),p,d,o);return null==f?null:{from:n(e.line,l),to:f&&f.pos,match:f&&f.ch==h.charAt(0),forward:p>0}}function a(t,e,o,a,s){for(var l=s&&s.maxScanLineLength||1e4,u=s&&s.maxScanLines||1e3,c=[],h=i(s),p=o>0?Math.min(e.line+u,t.lastLine()+1):Math.max(t.firstLine()-1,e.line-u),d=e.line;d!=p;d+=o){var f=t.getLine(d);if(f){var g=o>0?0:f.length-1,m=o>0?f.length:-1;if(!(f.length>l))for(d==e.line&&(g=e.ch-(o<0?1:0));g!=m;g+=o){var y=f.charAt(g);if(h.test(y)&&(void 0===a||(t.getTokenTypeAt(n(d,g+1))||"")==(a||""))){var v=r[y];if(v&&">"==v.charAt(1)==o>0)c.push(y);else{if(!c.length)return{pos:n(d,g),ch:y};c.pop()}}}}}return d-o!=(o>0?t.lastLine():t.firstLine())&&null}function s(t,r,i){for(var a=t.state.matchBrackets.maxHighlightLineLength||1e3,s=i&&i.highlightNonMatching,l=[],u=t.listSelections(),c=0;c<u.length;c++){var h=u[c].empty()&&o(t,u[c].head,i);if(h&&(h.match||!1!==s)&&t.getLine(h.from.line).length<=a){var p=h.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket";l.push(t.markText(h.from,n(h.from.line,h.from.ch+1),{className:p})),h.to&&t.getLine(h.to.line).length<=a&&l.push(t.markText(h.to,n(h.to.line,h.to.ch+1),{className:p}))}}if(l.length){e&&t.state.focused&&t.focus();var d=function(){t.operation((function(){for(var t=0;t<l.length;t++)l[t].clear()}))};if(!r)return d;setTimeout(d,800)}}function l(t){t.operation((function(){t.state.matchBrackets.currentlyHighlighted&&(t.state.matchBrackets.currentlyHighlighted(),t.state.matchBrackets.currentlyHighlighted=null),t.state.matchBrackets.currentlyHighlighted=s(t,!1,t.state.matchBrackets)}))}function u(t){t.state.matchBrackets&&t.state.matchBrackets.currentlyHighlighted&&(t.state.matchBrackets.currentlyHighlighted(),t.state.matchBrackets.currentlyHighlighted=null)}t.defineOption("matchBrackets",!1,(function(e,n,r){r&&r!=t.Init&&(e.off("cursorActivity",l),e.off("focus",l),e.off("blur",u),u(e)),n&&(e.state.matchBrackets="object"==typeof n?n:{},e.on("cursorActivity",l),e.on("focus",l),e.on("blur",u))})),t.defineExtension("matchBrackets",(function(){s(this,!0)})),t.defineExtension("findMatchingBracket",(function(t,e,n){return(n||"boolean"==typeof e)&&(n?(n.strict=e,e=n):e=e?{strict:!0}:null),o(this,t,e)})),t.defineExtension("scanForBracket",(function(t,e,n,r){return a(this,t,e,n,r)}))}(n(3710))},3395:(t,e,n)=>{!function(t){"use strict";function e(t,e){if(this.cm=t,this.options=e,this.widget=null,this.debounce=0,this.tick=0,this.startPos=this.cm.getCursor("start"),this.startLen=this.cm.getLine(this.startPos.line).length-this.cm.getSelection().length,this.options.updateOnCursorActivity){var n=this;t.on("cursorActivity",this.activityFunc=function(){n.cursorActivity()})}}t.showHint=function(t,e,n){if(!e)return t.showHint(n);n&&n.async&&(e.async=!0);var r={hint:e};if(n)for(var i in n)r[i]=n[i];return t.showHint(r)},t.defineExtension("showHint",(function(n){n=function(t,e,n){var r=t.options.hintOptions,i={};for(var o in l)i[o]=l[o];if(r)for(var o in r)void 0!==r[o]&&(i[o]=r[o]);if(n)for(var o in n)void 0!==n[o]&&(i[o]=n[o]);return i.hint.resolve&&(i.hint=i.hint.resolve(t,e)),i}(this,this.getCursor("start"),n);var r=this.listSelections();if(!(r.length>1)){if(this.somethingSelected()){if(!n.hint.supportsSelection)return;for(var i=0;i<r.length;i++)if(r[i].head.line!=r[i].anchor.line)return}this.state.completionActive&&this.state.completionActive.close();var o=this.state.completionActive=new e(this,n);o.options.hint&&(t.signal(this,"startCompletion",this),o.update(!0))}})),t.defineExtension("closeHint",(function(){this.state.completionActive&&this.state.completionActive.close()}));var n=window.requestAnimationFrame||function(t){return setTimeout(t,1e3/60)},r=window.cancelAnimationFrame||clearTimeout;function i(t){return"string"==typeof t?t:t.text}function o(t,e){for(;e&&e!=t;){if("LI"===e.nodeName.toUpperCase()&&e.parentNode==t)return e;e=e.parentNode}}function a(e,n){this.id="cm-complete-"+Math.floor(Math.random(1e6)),this.completion=e,this.data=n,this.picked=!1;var r=this,a=e.cm,s=a.getInputField().ownerDocument,l=s.defaultView||s.parentWindow,u=this.hints=s.createElement("ul");u.setAttribute("role","listbox"),u.setAttribute("aria-expanded","true"),u.id=this.id;var c=e.cm.options.theme;u.className="CodeMirror-hints "+c,this.selectedHint=n.selectedHint||0;for(var h=n.list,p=0;p<h.length;++p){var d=u.appendChild(s.createElement("li")),f=h[p],g="CodeMirror-hint"+(p!=this.selectedHint?"":" CodeMirror-hint-active");null!=f.className&&(g=f.className+" "+g),d.className=g,p==this.selectedHint&&d.setAttribute("aria-selected","true"),d.id=this.id+"-"+p,d.setAttribute("role","option"),f.render?f.render(d,n,f):d.appendChild(s.createTextNode(f.displayText||i(f))),d.hintId=p}var m=e.options.container||s.body,y=a.cursorCoords(e.options.alignWithWord?n.from:null),v=y.left,_=y.bottom,b=!0,w=0,x=0;if(m!==s.body){var S=-1!==["absolute","relative","fixed"].indexOf(l.getComputedStyle(m).position)?m:m.offsetParent,C=S.getBoundingClientRect(),E=s.body.getBoundingClientRect();w=C.left-E.left-S.scrollLeft,x=C.top-E.top-S.scrollTop}u.style.left=v-w+"px",u.style.top=_-x+"px";var k=l.innerWidth||Math.max(s.body.offsetWidth,s.documentElement.offsetWidth),A=l.innerHeight||Math.max(s.body.offsetHeight,s.documentElement.offsetHeight);m.appendChild(u),a.getInputField().setAttribute("aria-autocomplete","list"),a.getInputField().setAttribute("aria-owns",this.id),a.getInputField().setAttribute("aria-activedescendant",this.id+"-"+this.selectedHint);var P,T=e.options.moveOnOverlap?u.getBoundingClientRect():new DOMRect,M=!!e.options.paddingForScrollbar&&u.scrollHeight>u.clientHeight+1;if(setTimeout((function(){P=a.getScrollInfo()})),T.bottom-A>0){var O=T.bottom-T.top,R=T.top-(y.bottom-y.top)-2;A-T.top<R?(O>R&&(u.style.height=(O=R)+"px"),u.style.top=(_=y.top-O)+x+"px",b=!1):u.style.height=A-T.top-2+"px"}var I,L=T.right-k;if(M&&(L+=a.display.nativeBarWidth),L>0&&(T.right-T.left>k&&(u.style.width=k-5+"px",L-=T.right-T.left-k),u.style.left=(v=Math.max(y.left-L-w,0))+"px"),M)for(var F=u.firstChild;F;F=F.nextSibling)F.style.paddingRight=a.display.nativeBarWidth+"px";a.addKeyMap(this.keyMap=function(t,e){var n={Up:function(){e.moveFocus(-1)},Down:function(){e.moveFocus(1)},PageUp:function(){e.moveFocus(1-e.menuSize(),!0)},PageDown:function(){e.moveFocus(e.menuSize()-1,!0)},Home:function(){e.setFocus(0)},End:function(){e.setFocus(e.length-1)},Enter:e.pick,Tab:e.pick,Esc:e.close};/Mac/.test(navigator.platform)&&(n["Ctrl-P"]=function(){e.moveFocus(-1)},n["Ctrl-N"]=function(){e.moveFocus(1)});var r=t.options.customKeys,i=r?{}:n;function o(t,r){var o;o="string"!=typeof r?function(t){return r(t,e)}:n.hasOwnProperty(r)?n[r]:r,i[t]=o}if(r)for(var a in r)r.hasOwnProperty(a)&&o(a,r[a]);var s=t.options.extraKeys;if(s)for(var a in s)s.hasOwnProperty(a)&&o(a,s[a]);return i}(e,{moveFocus:function(t,e){r.changeActive(r.selectedHint+t,e)},setFocus:function(t){r.changeActive(t)},menuSize:function(){return r.screenAmount()},length:h.length,close:function(){e.close()},pick:function(){r.pick()},data:n})),e.options.closeOnUnfocus&&(a.on("blur",this.onBlur=function(){I=setTimeout((function(){e.close()}),100)}),a.on("focus",this.onFocus=function(){clearTimeout(I)})),a.on("scroll",this.onScroll=function(){var t=a.getScrollInfo(),n=a.getWrapperElement().getBoundingClientRect();P||(P=a.getScrollInfo());var r=_+P.top-t.top,i=r-(l.pageYOffset||(s.documentElement||s.body).scrollTop);if(b||(i+=u.offsetHeight),i<=n.top||i>=n.bottom)return e.close();u.style.top=r+"px",u.style.left=v+P.left-t.left+"px"}),t.on(u,"dblclick",(function(t){var e=o(u,t.target||t.srcElement);e&&null!=e.hintId&&(r.changeActive(e.hintId),r.pick())})),t.on(u,"click",(function(t){var n=o(u,t.target||t.srcElement);n&&null!=n.hintId&&(r.changeActive(n.hintId),e.options.completeOnSingleClick&&r.pick())})),t.on(u,"mousedown",(function(){setTimeout((function(){a.focus()}),20)}));var N=this.getSelectedHintRange();return 0===N.from&&0===N.to||this.scrollToActive(),t.signal(n,"select",h[this.selectedHint],u.childNodes[this.selectedHint]),!0}function s(t,e,n,r){if(t.async)t(e,r,n);else{var i=t(e,n);i&&i.then?i.then(r):r(i)}}e.prototype={close:function(){this.active()&&(this.cm.state.completionActive=null,this.tick=null,this.options.updateOnCursorActivity&&this.cm.off("cursorActivity",this.activityFunc),this.widget&&this.data&&t.signal(this.data,"close"),this.widget&&this.widget.close(),t.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(e,n){var r=e.list[n],o=this;this.cm.operation((function(){r.hint?r.hint(o.cm,e,r):o.cm.replaceRange(i(r),r.from||e.from,r.to||e.to,"complete"),t.signal(e,"pick",r),o.cm.scrollIntoView()})),this.options.closeOnPick&&this.close()},cursorActivity:function(){this.debounce&&(r(this.debounce),this.debounce=0);var t=this.startPos;this.data&&(t=this.data.from);var e=this.cm.getCursor(),i=this.cm.getLine(e.line);if(e.line!=this.startPos.line||i.length-e.ch!=this.startLen-this.startPos.ch||e.ch<t.ch||this.cm.somethingSelected()||!e.ch||this.options.closeCharacters.test(i.charAt(e.ch-1)))this.close();else{var o=this;this.debounce=n((function(){o.update()})),this.widget&&this.widget.disable()}},update:function(t){if(null!=this.tick){var e=this,n=++this.tick;s(this.options.hint,this.cm,this.options,(function(r){e.tick==n&&e.finishUpdate(r,t)}))}},finishUpdate:function(e,n){this.data&&t.signal(this.data,"update");var r=this.widget&&this.widget.picked||n&&this.options.completeSingle;this.widget&&this.widget.close(),this.data=e,e&&e.list.length&&(r&&1==e.list.length?this.pick(e,0):(this.widget=new a(this,e),t.signal(e,"shown")))}},a.prototype={close:function(){if(this.completion.widget==this){this.completion.widget=null,this.hints.parentNode&&this.hints.parentNode.removeChild(this.hints),this.completion.cm.removeKeyMap(this.keyMap);var t=this.completion.cm.getInputField();t.removeAttribute("aria-activedescendant"),t.removeAttribute("aria-owns");var e=this.completion.cm;this.completion.options.closeOnUnfocus&&(e.off("blur",this.onBlur),e.off("focus",this.onFocus)),e.off("scroll",this.onScroll)}},disable:function(){this.completion.cm.removeKeyMap(this.keyMap);var t=this;this.keyMap={Enter:function(){t.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(e,n){if(e>=this.data.list.length?e=n?this.data.list.length-1:0:e<0&&(e=n?0:this.data.list.length-1),this.selectedHint!=e){var r=this.hints.childNodes[this.selectedHint];r&&(r.className=r.className.replace(" CodeMirror-hint-active",""),r.removeAttribute("aria-selected")),(r=this.hints.childNodes[this.selectedHint=e]).className+=" CodeMirror-hint-active",r.setAttribute("aria-selected","true"),this.completion.cm.getInputField().setAttribute("aria-activedescendant",r.id),this.scrollToActive(),t.signal(this.data,"select",this.data.list[this.selectedHint],r)}},scrollToActive:function(){var t=this.getSelectedHintRange(),e=this.hints.childNodes[t.from],n=this.hints.childNodes[t.to],r=this.hints.firstChild;e.offsetTop<this.hints.scrollTop?this.hints.scrollTop=e.offsetTop-r.offsetTop:n.offsetTop+n.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=n.offsetTop+n.offsetHeight-this.hints.clientHeight+r.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1},getSelectedHintRange:function(){var t=this.completion.options.scrollMargin||0;return{from:Math.max(0,this.selectedHint-t),to:Math.min(this.data.list.length-1,this.selectedHint+t)}}},t.registerHelper("hint","auto",{resolve:function(e,n){var r,i=e.getHelpers(n,"hint");if(i.length){var o=function(t,e,n){var r=function(t,e){if(!t.somethingSelected())return e;for(var n=[],r=0;r<e.length;r++)e[r].supportsSelection&&n.push(e[r]);return n}(t,i);!function i(o){if(o==r.length)return e(null);s(r[o],t,n,(function(t){t&&t.list.length>0?e(t):i(o+1)}))}(0)};return o.async=!0,o.supportsSelection=!0,o}return(r=e.getHelper(e.getCursor(),"hintWords"))?function(e){return t.hint.fromList(e,{words:r})}:t.hint.anyword?function(e,n){return t.hint.anyword(e,n)}:function(){}}}),t.registerHelper("hint","fromList",(function(e,n){var r,i=e.getCursor(),o=e.getTokenAt(i),a=t.Pos(i.line,o.start),s=i;o.start<i.ch&&/\w/.test(o.string.charAt(i.ch-o.start-1))?r=o.string.substr(0,i.ch-o.start):(r="",a=i);for(var l=[],u=0;u<n.words.length;u++){var c=n.words[u];c.slice(0,r.length)==r&&l.push(c)}if(l.length)return{list:l,from:a,to:s}})),t.commands.autocomplete=t.showHint;var l={hint:t.hint.auto,completeSingle:!0,alignWithWord:!0,closeCharacters:/[\s()\[\]{};:>,]/,closeOnPick:!0,closeOnUnfocus:!0,updateOnCursorActivity:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null,paddingForScrollbar:!0,moveOnOverlap:!0};t.defineOption("hintOptions",null)}(n(3710))},3520:(t,e,n)=>{!function(t){"use strict";var e="CodeMirror-lint-markers";function n(t){t.parentNode&&t.parentNode.removeChild(t)}function r(e,r,i,o){var a=function(e,n,r){var i=document.createElement("div");function o(e){if(!i.parentNode)return t.off(document,"mousemove",o);i.style.top=Math.max(0,e.clientY-i.offsetHeight-5)+"px",i.style.left=e.clientX+5+"px"}return i.className="CodeMirror-lint-tooltip cm-s-"+e.options.theme,i.appendChild(r.cloneNode(!0)),e.state.lint.options.selfContain?e.getWrapperElement().appendChild(i):document.body.appendChild(i),t.on(document,"mousemove",o),o(n),null!=i.style.opacity&&(i.style.opacity=1),i}(e,r,i);function s(){var e;t.off(o,"mouseout",s),a&&((e=a).parentNode&&(null==e.style.opacity&&n(e),e.style.opacity=0,setTimeout((function(){n(e)}),600)),a=null)}var l=setInterval((function(){if(a)for(var t=o;;t=t.parentNode){if(t&&11==t.nodeType&&(t=t.host),t==document.body)return;if(!t){s();break}}if(!a)return clearInterval(l)}),400);t.on(o,"mouseout",s)}function i(t,e,n){for(var i in this.marked=[],e instanceof Function&&(e={getAnnotations:e}),e&&!0!==e||(e={}),this.options={},this.linterOptions=e.options||{},o)this.options[i]=o[i];for(var i in e)o.hasOwnProperty(i)?null!=e[i]&&(this.options[i]=e[i]):e.options||(this.linterOptions[i]=e[i]);this.timeout=null,this.hasGutter=n,this.onMouseOver=function(e){!function(t,e){var n=e.target||e.srcElement;if(/\bCodeMirror-lint-mark-/.test(n.className)){for(var i=n.getBoundingClientRect(),o=(i.left+i.right)/2,a=(i.top+i.bottom)/2,s=t.findMarksAt(t.coordsChar({left:o,top:a},"client")),u=[],c=0;c<s.length;++c){var h=s[c].__annotation;h&&u.push(h)}u.length&&function(t,e,n){for(var i=n.target||n.srcElement,o=document.createDocumentFragment(),a=0;a<e.length;a++){var s=e[a];o.appendChild(l(s))}r(t,n,o,i)}(t,u,e)}}(t,e)},this.waitingFor=0}var o={highlightLines:!1,tooltips:!0,delay:500,lintOnChange:!0,getAnnotations:null,async:!1,selfContain:null,formatAnnotation:null,onUpdateLinting:null};function a(t){var n=t.state.lint;n.hasGutter&&t.clearGutter(e),n.options.highlightLines&&function(t){t.eachLine((function(e){var n=e.wrapClass&&/\bCodeMirror-lint-line-\w+\b/.exec(e.wrapClass);n&&t.removeLineClass(e,"wrap",n[0])}))}(t);for(var r=0;r<n.marked.length;++r)n.marked[r].clear();n.marked.length=0}function s(e,n,i,o,a){var s=document.createElement("div"),l=s;return s.className="CodeMirror-lint-marker CodeMirror-lint-marker-"+i,o&&((l=s.appendChild(document.createElement("div"))).className="CodeMirror-lint-marker CodeMirror-lint-marker-multiple"),0!=a&&t.on(l,"mouseover",(function(t){r(e,t,n,l)})),s}function l(t){var e=t.severity;e||(e="error");var n=document.createElement("div");return n.className="CodeMirror-lint-message CodeMirror-lint-message-"+e,void 0!==t.messageHTML?n.innerHTML=t.messageHTML:n.appendChild(document.createTextNode(t.message)),n}function u(e){var n=e.state.lint;if(n){var r=n.options,i=r.getAnnotations||e.getHelper(t.Pos(0,0),"lint");if(i)if(r.async||i.async)!function(e,n){var r=e.state.lint,i=++r.waitingFor;function o(){i=-1,e.off("change",o)}e.on("change",o),n(e.getValue(),(function(n,a){e.off("change",o),r.waitingFor==i&&(a&&n instanceof t&&(n=a),e.operation((function(){c(e,n)})))}),r.linterOptions,e)}(e,i);else{var o=i(e.getValue(),n.linterOptions,e);if(!o)return;o.then?o.then((function(t){e.operation((function(){c(e,t)}))})):e.operation((function(){c(e,o)}))}}}function c(t,n){var r,i,o=t.state.lint;if(o){var u=o.options;a(t);for(var c=function(t){for(var e=[],n=0;n<t.length;++n){var r=t[n],i=r.from.line;(e[i]||(e[i]=[])).push(r)}return e}(n),h=0;h<c.length;++h){var p=c[h];if(p){var d=[];p=p.filter((function(t){return!(d.indexOf(t.message)>-1)&&d.push(t.message)}));for(var f=null,g=o.hasGutter&&document.createDocumentFragment(),m=0;m<p.length;++m){var y=p[m],v=y.severity;v||(v="error"),i=v,f="error"==(r=f)?r:i,u.formatAnnotation&&(y=u.formatAnnotation(y)),o.hasGutter&&g.appendChild(l(y)),y.to&&o.marked.push(t.markText(y.from,y.to,{className:"CodeMirror-lint-mark CodeMirror-lint-mark-"+v,__annotation:y}))}o.hasGutter&&t.setGutterMarker(h,e,s(t,g,f,c[h].length>1,u.tooltips)),u.highlightLines&&t.addLineClass(h,"wrap","CodeMirror-lint-line-"+f)}}u.onUpdateLinting&&u.onUpdateLinting(n,c,t)}}function h(t){var e=t.state.lint;e&&(clearTimeout(e.timeout),e.timeout=setTimeout((function(){u(t)}),e.options.delay))}t.defineOption("lint",!1,(function(n,r,o){if(o&&o!=t.Init&&(a(n),!1!==n.state.lint.options.lintOnChange&&n.off("change",h),t.off(n.getWrapperElement(),"mouseover",n.state.lint.onMouseOver),clearTimeout(n.state.lint.timeout),delete n.state.lint),r){for(var s=n.getOption("gutters"),l=!1,c=0;c<s.length;++c)s[c]==e&&(l=!0);var p=n.state.lint=new i(n,r,l);p.options.lintOnChange&&n.on("change",h),0!=p.options.tooltips&&"gutter"!=p.options.tooltips&&t.on(n.getWrapperElement(),"mouseover",p.onMouseOver),u(n)}})),t.defineExtension("performLint",(function(){u(this)}))}(n(3710))},3710:function(t){t.exports=function(){"use strict";var t=navigator.userAgent,e=navigator.platform,n=/gecko\/\d/i.test(t),r=/MSIE \d/.test(t),i=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(t),o=/Edge\/(\d+)/.exec(t),a=r||i||o,s=a&&(r?document.documentMode||6:+(o||i)[1]),l=!o&&/WebKit\//.test(t),u=l&&/Qt\/\d+\.\d+/.test(t),c=!o&&/Chrome\/(\d+)/.exec(t),h=c&&+c[1],p=/Opera\//.test(t),d=/Apple Computer/.test(navigator.vendor),f=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(t),g=/PhantomJS/.test(t),m=d&&(/Mobile\/\w+/.test(t)||navigator.maxTouchPoints>2),y=/Android/.test(t),v=m||y||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(t),_=m||/Mac/.test(e),b=/\bCrOS\b/.test(t),w=/win/i.test(e),x=p&&t.match(/Version\/(\d*\.\d*)/);x&&(x=Number(x[1])),x&&x>=15&&(p=!1,l=!0);var S=_&&(u||p&&(null==x||x<12.11)),C=n||a&&s>=9;function E(t){return new RegExp("(^|\\s)"+t+"(?:$|\\s)\\s*")}var k,A=function(t,e){var n=t.className,r=E(e).exec(n);if(r){var i=n.slice(r.index+r[0].length);t.className=n.slice(0,r.index)+(i?r[1]+i:"")}};function P(t){for(var e=t.childNodes.length;e>0;--e)t.removeChild(t.firstChild);return t}function T(t,e){return P(t).appendChild(e)}function M(t,e,n,r){var i=document.createElement(t);if(n&&(i.className=n),r&&(i.style.cssText=r),"string"==typeof e)i.appendChild(document.createTextNode(e));else if(e)for(var o=0;o<e.length;++o)i.appendChild(e[o]);return i}function O(t,e,n,r){var i=M(t,e,n,r);return i.setAttribute("role","presentation"),i}function R(t,e){if(3==e.nodeType&&(e=e.parentNode),t.contains)return t.contains(e);do{if(11==e.nodeType&&(e=e.host),e==t)return!0}while(e=e.parentNode)}function I(t){var e;try{e=t.activeElement}catch(n){e=t.body||null}for(;e&&e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}function L(t,e){var n=t.className;E(e).test(n)||(t.className+=(n?" ":"")+e)}function F(t,e){for(var n=t.split(" "),r=0;r<n.length;r++)n[r]&&!E(n[r]).test(e)&&(e+=" "+n[r]);return e}k=document.createRange?function(t,e,n,r){var i=document.createRange();return i.setEnd(r||t,n),i.setStart(t,e),i}:function(t,e,n){var r=document.body.createTextRange();try{r.moveToElementText(t.parentNode)}catch(t){return r}return r.collapse(!0),r.moveEnd("character",n),r.moveStart("character",e),r};var N=function(t){t.select()};function D(t){return t.display.wrapper.ownerDocument}function z(t){return D(t).defaultView}function Z(t){var e=Array.prototype.slice.call(arguments,1);return function(){return t.apply(null,e)}}function j(t,e,n){for(var r in e||(e={}),t)!t.hasOwnProperty(r)||!1===n&&e.hasOwnProperty(r)||(e[r]=t[r]);return e}function G(t,e,n,r,i){null==e&&-1==(e=t.search(/[^\s\u00a0]/))&&(e=t.length);for(var o=r||0,a=i||0;;){var s=t.indexOf("\t",o);if(s<0||s>=e)return a+(e-o);a+=s-o,a+=n-a%n,o=s+1}}m?N=function(t){t.selectionStart=0,t.selectionEnd=t.value.length}:a&&(N=function(t){try{t.select()}catch(t){}});var B=function(){this.id=null,this.f=null,this.time=0,this.handler=Z(this.onTimeout,this)};function U(t,e){for(var n=0;n<t.length;++n)if(t[n]==e)return n;return-1}B.prototype.onTimeout=function(t){t.id=0,t.time<=+new Date?t.f():setTimeout(t.handler,t.time-+new Date)},B.prototype.set=function(t,e){this.f=e;var n=+new Date+t;(!this.id||n<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,t),this.time=n)};var V={toString:function(){return"CodeMirror.Pass"}},q={scroll:!1},W={origin:"*mouse"},H={origin:"+move"};function X(t,e,n){for(var r=0,i=0;;){var o=t.indexOf("\t",r);-1==o&&(o=t.length);var a=o-r;if(o==t.length||i+a>=e)return r+Math.min(a,e-i);if(i+=o-r,r=o+1,(i+=n-i%n)>=e)return r}}var K=[""];function Y(t){for(;K.length<=t;)K.push(Q(K)+" ");return K[t]}function Q(t){return t[t.length-1]}function $(t,e){for(var n=[],r=0;r<t.length;r++)n[r]=e(t[r],r);return n}function J(){}function tt(t,e){var n;return Object.create?n=Object.create(t):(J.prototype=t,n=new J),e&&j(e,n),n}var et=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function nt(t){return/\w/.test(t)||t>"€"&&(t.toUpperCase()!=t.toLowerCase()||et.test(t))}function rt(t,e){return e?!!(e.source.indexOf("\\w")>-1&&nt(t))||e.test(t):nt(t)}function it(t){for(var e in t)if(t.hasOwnProperty(e)&&t[e])return!1;return!0}var ot=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function at(t){return t.charCodeAt(0)>=768&&ot.test(t)}function st(t,e,n){for(;(n<0?e>0:e<t.length)&&at(t.charAt(e));)e+=n;return e}function lt(t,e,n){for(var r=e>n?-1:1;;){if(e==n)return e;var i=(e+n)/2,o=r<0?Math.ceil(i):Math.floor(i);if(o==e)return t(o)?e:n;t(o)?n=o:e=o+r}}var ut=null;function ct(t,e,n){var r;ut=null;for(var i=0;i<t.length;++i){var o=t[i];if(o.from<e&&o.to>e)return i;o.to==e&&(o.from!=o.to&&"before"==n?r=i:ut=i),o.from==e&&(o.from!=o.to&&"before"!=n?r=i:ut=i)}return null!=r?r:ut}var ht=function(){var t=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,e=/[stwN]/,n=/[LRr]/,r=/[Lb1n]/,i=/[1n]/;function o(t,e,n){this.level=t,this.from=e,this.to=n}return function(a,s){var l,u="ltr"==s?"L":"R";if(0==a.length||"ltr"==s&&!t.test(a))return!1;for(var c=a.length,h=[],p=0;p<c;++p)h.push((l=a.charCodeAt(p))<=247?"bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN".charAt(l):1424<=l&&l<=1524?"R":1536<=l&&l<=1785?"nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111".charAt(l-1536):1774<=l&&l<=2220?"r":8192<=l&&l<=8203?"w":8204==l?"b":"L");for(var d=0,f=u;d<c;++d){var g=h[d];"m"==g?h[d]=f:f=g}for(var m=0,y=u;m<c;++m){var v=h[m];"1"==v&&"r"==y?h[m]="n":n.test(v)&&(y=v,"r"==v&&(h[m]="R"))}for(var _=1,b=h[0];_<c-1;++_){var w=h[_];"+"==w&&"1"==b&&"1"==h[_+1]?h[_]="1":","!=w||b!=h[_+1]||"1"!=b&&"n"!=b||(h[_]=b),b=w}for(var x=0;x<c;++x){var S=h[x];if(","==S)h[x]="N";else if("%"==S){var C=void 0;for(C=x+1;C<c&&"%"==h[C];++C);for(var E=x&&"!"==h[x-1]||C<c&&"1"==h[C]?"1":"N",k=x;k<C;++k)h[k]=E;x=C-1}}for(var A=0,P=u;A<c;++A){var T=h[A];"L"==P&&"1"==T?h[A]="L":n.test(T)&&(P=T)}for(var M=0;M<c;++M)if(e.test(h[M])){var O=void 0;for(O=M+1;O<c&&e.test(h[O]);++O);for(var R="L"==(M?h[M-1]:u),I=R==("L"==(O<c?h[O]:u))?R?"L":"R":u,L=M;L<O;++L)h[L]=I;M=O-1}for(var F,N=[],D=0;D<c;)if(r.test(h[D])){var z=D;for(++D;D<c&&r.test(h[D]);++D);N.push(new o(0,z,D))}else{var Z=D,j=N.length,G="rtl"==s?1:0;for(++D;D<c&&"L"!=h[D];++D);for(var B=Z;B<D;)if(i.test(h[B])){Z<B&&(N.splice(j,0,new o(1,Z,B)),j+=G);var U=B;for(++B;B<D&&i.test(h[B]);++B);N.splice(j,0,new o(2,U,B)),j+=G,Z=B}else++B;Z<D&&N.splice(j,0,new o(1,Z,D))}return"ltr"==s&&(1==N[0].level&&(F=a.match(/^\s+/))&&(N[0].from=F[0].length,N.unshift(new o(0,0,F[0].length))),1==Q(N).level&&(F=a.match(/\s+$/))&&(Q(N).to-=F[0].length,N.push(new o(0,c-F[0].length,c)))),"rtl"==s?N.reverse():N}}();function pt(t,e){var n=t.order;return null==n&&(n=t.order=ht(t.text,e)),n}var dt=[],ft=function(t,e,n){if(t.addEventListener)t.addEventListener(e,n,!1);else if(t.attachEvent)t.attachEvent("on"+e,n);else{var r=t._handlers||(t._handlers={});r[e]=(r[e]||dt).concat(n)}};function gt(t,e){return t._handlers&&t._handlers[e]||dt}function mt(t,e,n){if(t.removeEventListener)t.removeEventListener(e,n,!1);else if(t.detachEvent)t.detachEvent("on"+e,n);else{var r=t._handlers,i=r&&r[e];if(i){var o=U(i,n);o>-1&&(r[e]=i.slice(0,o).concat(i.slice(o+1)))}}}function yt(t,e){var n=gt(t,e);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),i=0;i<n.length;++i)n[i].apply(null,r)}function vt(t,e,n){return"string"==typeof e&&(e={type:e,preventDefault:function(){this.defaultPrevented=!0}}),yt(t,n||e.type,t,e),Ct(e)||e.codemirrorIgnore}function _t(t){var e=t._handlers&&t._handlers.cursorActivity;if(e)for(var n=t.curOp.cursorActivityHandlers||(t.curOp.cursorActivityHandlers=[]),r=0;r<e.length;++r)-1==U(n,e[r])&&n.push(e[r])}function bt(t,e){return gt(t,e).length>0}function wt(t){t.prototype.on=function(t,e){ft(this,t,e)},t.prototype.off=function(t,e){mt(this,t,e)}}function xt(t){t.preventDefault?t.preventDefault():t.returnValue=!1}function St(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0}function Ct(t){return null!=t.defaultPrevented?t.defaultPrevented:0==t.returnValue}function Et(t){xt(t),St(t)}function kt(t){return t.target||t.srcElement}function At(t){var e=t.which;return null==e&&(1&t.button?e=1:2&t.button?e=3:4&t.button&&(e=2)),_&&t.ctrlKey&&1==e&&(e=3),e}var Pt,Tt,Mt=function(){if(a&&s<9)return!1;var t=M("div");return"draggable"in t||"dragDrop"in t}();function Ot(t){if(null==Pt){var e=M("span","​");T(t,M("span",[e,document.createTextNode("x")])),0!=t.firstChild.offsetHeight&&(Pt=e.offsetWidth<=1&&e.offsetHeight>2&&!(a&&s<8))}var n=Pt?M("span","​"):M("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function Rt(t){if(null!=Tt)return Tt;var e=T(t,document.createTextNode("AخA")),n=k(e,0,1).getBoundingClientRect(),r=k(e,1,2).getBoundingClientRect();return P(t),!(!n||n.left==n.right)&&(Tt=r.right-n.right<3)}var It,Lt=3!="\n\nb".split(/\n/).length?function(t){for(var e=0,n=[],r=t.length;e<=r;){var i=t.indexOf("\n",e);-1==i&&(i=t.length);var o=t.slice(e,"\r"==t.charAt(i-1)?i-1:i),a=o.indexOf("\r");-1!=a?(n.push(o.slice(0,a)),e+=a+1):(n.push(o),e=i+1)}return n}:function(t){return t.split(/\r\n?|\n/)},Ft=window.getSelection?function(t){try{return t.selectionStart!=t.selectionEnd}catch(t){return!1}}:function(t){var e;try{e=t.ownerDocument.selection.createRange()}catch(t){}return!(!e||e.parentElement()!=t)&&0!=e.compareEndPoints("StartToEnd",e)},Nt="oncopy"in(It=M("div"))||(It.setAttribute("oncopy","return;"),"function"==typeof It.oncopy),Dt=null;var zt={},Zt={};function jt(t,e){arguments.length>2&&(e.dependencies=Array.prototype.slice.call(arguments,2)),zt[t]=e}function Gt(t){if("string"==typeof t&&Zt.hasOwnProperty(t))t=Zt[t];else if(t&&"string"==typeof t.name&&Zt.hasOwnProperty(t.name)){var e=Zt[t.name];"string"==typeof e&&(e={name:e}),(t=tt(e,t)).name=e.name}else{if("string"==typeof t&&/^[\w\-]+\/[\w\-]+\+xml$/.test(t))return Gt("application/xml");if("string"==typeof t&&/^[\w\-]+\/[\w\-]+\+json$/.test(t))return Gt("application/json")}return"string"==typeof t?{name:t}:t||{name:"null"}}function Bt(t,e){e=Gt(e);var n=zt[e.name];if(!n)return Bt(t,"text/plain");var r=n(t,e);if(Ut.hasOwnProperty(e.name)){var i=Ut[e.name];for(var o in i)i.hasOwnProperty(o)&&(r.hasOwnProperty(o)&&(r["_"+o]=r[o]),r[o]=i[o])}if(r.name=e.name,e.helperType&&(r.helperType=e.helperType),e.modeProps)for(var a in e.modeProps)r[a]=e.modeProps[a];return r}var Ut={};function Vt(t,e){j(e,Ut.hasOwnProperty(t)?Ut[t]:Ut[t]={})}function qt(t,e){if(!0===e)return e;if(t.copyState)return t.copyState(e);var n={};for(var r in e){var i=e[r];i instanceof Array&&(i=i.concat([])),n[r]=i}return n}function Wt(t,e){for(var n;t.innerMode&&(n=t.innerMode(e))&&n.mode!=t;)e=n.state,t=n.mode;return n||{mode:t,state:e}}function Ht(t,e,n){return!t.startState||t.startState(e,n)}var Xt=function(t,e,n){this.pos=this.start=0,this.string=t,this.tabSize=e||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};function Kt(t,e){if((e-=t.first)<0||e>=t.size)throw new Error("There is no line "+(e+t.first)+" in the document.");for(var n=t;!n.lines;)for(var r=0;;++r){var i=n.children[r],o=i.chunkSize();if(e<o){n=i;break}e-=o}return n.lines[e]}function Yt(t,e,n){var r=[],i=e.line;return t.iter(e.line,n.line+1,(function(t){var o=t.text;i==n.line&&(o=o.slice(0,n.ch)),i==e.line&&(o=o.slice(e.ch)),r.push(o),++i})),r}function Qt(t,e,n){var r=[];return t.iter(e,n,(function(t){r.push(t.text)})),r}function $t(t,e){var n=e-t.height;if(n)for(var r=t;r;r=r.parent)r.height+=n}function Jt(t){if(null==t.parent)return null;for(var e=t.parent,n=U(e.lines,t),r=e.parent;r;e=r,r=r.parent)for(var i=0;r.children[i]!=e;++i)n+=r.children[i].chunkSize();return n+e.first}function te(t,e){var n=t.first;t:do{for(var r=0;r<t.children.length;++r){var i=t.children[r],o=i.height;if(e<o){t=i;continue t}e-=o,n+=i.chunkSize()}return n}while(!t.lines);for(var a=0;a<t.lines.length;++a){var s=t.lines[a].height;if(e<s)break;e-=s}return n+a}function ee(t,e){return e>=t.first&&e<t.first+t.size}function ne(t,e){return String(t.lineNumberFormatter(e+t.firstLineNumber))}function re(t,e,n){if(void 0===n&&(n=null),!(this instanceof re))return new re(t,e,n);this.line=t,this.ch=e,this.sticky=n}function ie(t,e){return t.line-e.line||t.ch-e.ch}function oe(t,e){return t.sticky==e.sticky&&0==ie(t,e)}function ae(t){return re(t.line,t.ch)}function se(t,e){return ie(t,e)<0?e:t}function le(t,e){return ie(t,e)<0?t:e}function ue(t,e){return Math.max(t.first,Math.min(e,t.first+t.size-1))}function ce(t,e){if(e.line<t.first)return re(t.first,0);var n=t.first+t.size-1;return e.line>n?re(n,Kt(t,n).text.length):function(t,e){var n=t.ch;return null==n||n>e?re(t.line,e):n<0?re(t.line,0):t}(e,Kt(t,e.line).text.length)}function he(t,e){for(var n=[],r=0;r<e.length;r++)n[r]=ce(t,e[r]);return n}Xt.prototype.eol=function(){return this.pos>=this.string.length},Xt.prototype.sol=function(){return this.pos==this.lineStart},Xt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Xt.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Xt.prototype.eat=function(t){var e=this.string.charAt(this.pos);if("string"==typeof t?e==t:e&&(t.test?t.test(e):t(e)))return++this.pos,e},Xt.prototype.eatWhile=function(t){for(var e=this.pos;this.eat(t););return this.pos>e},Xt.prototype.eatSpace=function(){for(var t=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>t},Xt.prototype.skipToEnd=function(){this.pos=this.string.length},Xt.prototype.skipTo=function(t){var e=this.string.indexOf(t,this.pos);if(e>-1)return this.pos=e,!0},Xt.prototype.backUp=function(t){this.pos-=t},Xt.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=G(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?G(this.string,this.lineStart,this.tabSize):0)},Xt.prototype.indentation=function(){return G(this.string,null,this.tabSize)-(this.lineStart?G(this.string,this.lineStart,this.tabSize):0)},Xt.prototype.match=function(t,e,n){if("string"!=typeof t){var r=this.string.slice(this.pos).match(t);return r&&r.index>0?null:(r&&!1!==e&&(this.pos+=r[0].length),r)}var i=function(t){return n?t.toLowerCase():t};if(i(this.string.substr(this.pos,t.length))==i(t))return!1!==e&&(this.pos+=t.length),!0},Xt.prototype.current=function(){return this.string.slice(this.start,this.pos)},Xt.prototype.hideFirstChars=function(t,e){this.lineStart+=t;try{return e()}finally{this.lineStart-=t}},Xt.prototype.lookAhead=function(t){var e=this.lineOracle;return e&&e.lookAhead(t)},Xt.prototype.baseToken=function(){var t=this.lineOracle;return t&&t.baseToken(this.pos)};var pe=function(t,e){this.state=t,this.lookAhead=e},de=function(t,e,n,r){this.state=e,this.doc=t,this.line=n,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1};function fe(t,e,n,r){var i=[t.state.modeGen],o={};Se(t,e.text,t.doc.mode,n,(function(t,e){return i.push(t,e)}),o,r);for(var a=n.state,s=function(r){n.baseTokens=i;var s=t.state.overlays[r],l=1,u=0;n.state=!0,Se(t,e.text,s.mode,n,(function(t,e){for(var n=l;u<t;){var r=i[l];r>t&&i.splice(l,1,t,i[l+1],r),l+=2,u=Math.min(t,r)}if(e)if(s.opaque)i.splice(n,l-n,t,"overlay "+e),l=n+2;else for(;n<l;n+=2){var o=i[n+1];i[n+1]=(o?o+" ":"")+"overlay "+e}}),o),n.state=a,n.baseTokens=null,n.baseTokenPos=1},l=0;l<t.state.overlays.length;++l)s(l);return{styles:i,classes:o.bgClass||o.textClass?o:null}}function ge(t,e,n){if(!e.styles||e.styles[0]!=t.state.modeGen){var r=me(t,Jt(e)),i=e.text.length>t.options.maxHighlightLength&&qt(t.doc.mode,r.state),o=fe(t,e,r);i&&(r.state=i),e.stateAfter=r.save(!i),e.styles=o.styles,o.classes?e.styleClasses=o.classes:e.styleClasses&&(e.styleClasses=null),n===t.doc.highlightFrontier&&(t.doc.modeFrontier=Math.max(t.doc.modeFrontier,++t.doc.highlightFrontier))}return e.styles}function me(t,e,n){var r=t.doc,i=t.display;if(!r.mode.startState)return new de(r,!0,e);var o=function(t,e,n){for(var r,i,o=t.doc,a=n?-1:e-(t.doc.mode.innerMode?1e3:100),s=e;s>a;--s){if(s<=o.first)return o.first;var l=Kt(o,s-1),u=l.stateAfter;if(u&&(!n||s+(u instanceof pe?u.lookAhead:0)<=o.modeFrontier))return s;var c=G(l.text,null,t.options.tabSize);(null==i||r>c)&&(i=s-1,r=c)}return i}(t,e,n),a=o>r.first&&Kt(r,o-1).stateAfter,s=a?de.fromSaved(r,a,o):new de(r,Ht(r.mode),o);return r.iter(o,e,(function(n){ye(t,n.text,s);var r=s.line;n.stateAfter=r==e-1||r%5==0||r>=i.viewFrom&&r<i.viewTo?s.save():null,s.nextLine()})),n&&(r.modeFrontier=s.line),s}function ye(t,e,n,r){var i=t.doc.mode,o=new Xt(e,t.options.tabSize,n);for(o.start=o.pos=r||0,""==e&&ve(i,n.state);!o.eol();)_e(i,o,n.state),o.start=o.pos}function ve(t,e){if(t.blankLine)return t.blankLine(e);if(t.innerMode){var n=Wt(t,e);return n.mode.blankLine?n.mode.blankLine(n.state):void 0}}function _e(t,e,n,r){for(var i=0;i<10;i++){r&&(r[0]=Wt(t,n).mode);var o=t.token(e,n);if(e.pos>e.start)return o}throw new Error("Mode "+t.name+" failed to advance stream.")}de.prototype.lookAhead=function(t){var e=this.doc.getLine(this.line+t);return null!=e&&t>this.maxLookAhead&&(this.maxLookAhead=t),e},de.prototype.baseToken=function(t){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=t;)this.baseTokenPos+=2;var e=this.baseTokens[this.baseTokenPos+1];return{type:e&&e.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-t}},de.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},de.fromSaved=function(t,e,n){return e instanceof pe?new de(t,qt(t.mode,e.state),n,e.lookAhead):new de(t,qt(t.mode,e),n)},de.prototype.save=function(t){var e=!1!==t?qt(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new pe(e,this.maxLookAhead):e};var be=function(t,e,n){this.start=t.start,this.end=t.pos,this.string=t.current(),this.type=e||null,this.state=n};function we(t,e,n,r){var i,o,a=t.doc,s=a.mode,l=Kt(a,(e=ce(a,e)).line),u=me(t,e.line,n),c=new Xt(l.text,t.options.tabSize,u);for(r&&(o=[]);(r||c.pos<e.ch)&&!c.eol();)c.start=c.pos,i=_e(s,c,u.state),r&&o.push(new be(c,i,qt(a.mode,u.state)));return r?o:new be(c,i,u.state)}function xe(t,e){if(t)for(;;){var n=t.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!n)break;t=t.slice(0,n.index)+t.slice(n.index+n[0].length);var r=n[1]?"bgClass":"textClass";null==e[r]?e[r]=n[2]:new RegExp("(?:^|\\s)"+n[2]+"(?:$|\\s)").test(e[r])||(e[r]+=" "+n[2])}return t}function Se(t,e,n,r,i,o,a){var s=n.flattenSpans;null==s&&(s=t.options.flattenSpans);var l,u=0,c=null,h=new Xt(e,t.options.tabSize,r),p=t.options.addModeClass&&[null];for(""==e&&xe(ve(n,r.state),o);!h.eol();){if(h.pos>t.options.maxHighlightLength?(s=!1,a&&ye(t,e,r,h.pos),h.pos=e.length,l=null):l=xe(_e(n,h,r.state,p),o),p){var d=p[0].name;d&&(l="m-"+(l?d+" "+l:d))}if(!s||c!=l){for(;u<h.start;)i(u=Math.min(h.start,u+5e3),c);c=l}h.start=h.pos}for(;u<h.pos;){var f=Math.min(h.pos,u+5e3);i(f,c),u=f}}var Ce=!1,Ee=!1;function ke(t,e,n){this.marker=t,this.from=e,this.to=n}function Ae(t,e){if(t)for(var n=0;n<t.length;++n){var r=t[n];if(r.marker==e)return r}}function Pe(t,e){for(var n,r=0;r<t.length;++r)t[r]!=e&&(n||(n=[])).push(t[r]);return n}function Te(t,e){if(e.full)return null;var n=ee(t,e.from.line)&&Kt(t,e.from.line).markedSpans,r=ee(t,e.to.line)&&Kt(t,e.to.line).markedSpans;if(!n&&!r)return null;var i=e.from.ch,o=e.to.ch,a=0==ie(e.from,e.to),s=function(t,e,n){var r;if(t)for(var i=0;i<t.length;++i){var o=t[i],a=o.marker;if(null==o.from||(a.inclusiveLeft?o.from<=e:o.from<e)||o.from==e&&"bookmark"==a.type&&(!n||!o.marker.insertLeft)){var s=null==o.to||(a.inclusiveRight?o.to>=e:o.to>e);(r||(r=[])).push(new ke(a,o.from,s?null:o.to))}}return r}(n,i,a),l=function(t,e,n){var r;if(t)for(var i=0;i<t.length;++i){var o=t[i],a=o.marker;if(null==o.to||(a.inclusiveRight?o.to>=e:o.to>e)||o.from==e&&"bookmark"==a.type&&(!n||o.marker.insertLeft)){var s=null==o.from||(a.inclusiveLeft?o.from<=e:o.from<e);(r||(r=[])).push(new ke(a,s?null:o.from-e,null==o.to?null:o.to-e))}}return r}(r,o,a),u=1==e.text.length,c=Q(e.text).length+(u?i:0);if(s)for(var h=0;h<s.length;++h){var p=s[h];if(null==p.to){var d=Ae(l,p.marker);d?u&&(p.to=null==d.to?null:d.to+c):p.to=i}}if(l)for(var f=0;f<l.length;++f){var g=l[f];null!=g.to&&(g.to+=c),null==g.from?Ae(s,g.marker)||(g.from=c,u&&(s||(s=[])).push(g)):(g.from+=c,u&&(s||(s=[])).push(g))}s&&(s=Me(s)),l&&l!=s&&(l=Me(l));var m=[s];if(!u){var y,v=e.text.length-2;if(v>0&&s)for(var _=0;_<s.length;++_)null==s[_].to&&(y||(y=[])).push(new ke(s[_].marker,null,null));for(var b=0;b<v;++b)m.push(y);m.push(l)}return m}function Me(t){for(var e=0;e<t.length;++e){var n=t[e];null!=n.from&&n.from==n.to&&!1!==n.marker.clearWhenEmpty&&t.splice(e--,1)}return t.length?t:null}function Oe(t){var e=t.markedSpans;if(e){for(var n=0;n<e.length;++n)e[n].marker.detachLine(t);t.markedSpans=null}}function Re(t,e){if(e){for(var n=0;n<e.length;++n)e[n].marker.attachLine(t);t.markedSpans=e}}function Ie(t){return t.inclusiveLeft?-1:0}function Le(t){return t.inclusiveRight?1:0}function Fe(t,e){var n=t.lines.length-e.lines.length;if(0!=n)return n;var r=t.find(),i=e.find(),o=ie(r.from,i.from)||Ie(t)-Ie(e);return o?-o:ie(r.to,i.to)||Le(t)-Le(e)||e.id-t.id}function Ne(t,e){var n,r=Ee&&t.markedSpans;if(r)for(var i=void 0,o=0;o<r.length;++o)(i=r[o]).marker.collapsed&&null==(e?i.from:i.to)&&(!n||Fe(n,i.marker)<0)&&(n=i.marker);return n}function De(t){return Ne(t,!0)}function ze(t){return Ne(t,!1)}function Ze(t,e){var n,r=Ee&&t.markedSpans;if(r)for(var i=0;i<r.length;++i){var o=r[i];o.marker.collapsed&&(null==o.from||o.from<e)&&(null==o.to||o.to>e)&&(!n||Fe(n,o.marker)<0)&&(n=o.marker)}return n}function je(t,e,n,r,i){var o=Kt(t,e),a=Ee&&o.markedSpans;if(a)for(var s=0;s<a.length;++s){var l=a[s];if(l.marker.collapsed){var u=l.marker.find(0),c=ie(u.from,n)||Ie(l.marker)-Ie(i),h=ie(u.to,r)||Le(l.marker)-Le(i);if(!(c>=0&&h<=0||c<=0&&h>=0)&&(c<=0&&(l.marker.inclusiveRight&&i.inclusiveLeft?ie(u.to,n)>=0:ie(u.to,n)>0)||c>=0&&(l.marker.inclusiveRight&&i.inclusiveLeft?ie(u.from,r)<=0:ie(u.from,r)<0)))return!0}}}function Ge(t){for(var e;e=De(t);)t=e.find(-1,!0).line;return t}function Be(t,e){var n=Kt(t,e),r=Ge(n);return n==r?e:Jt(r)}function Ue(t,e){if(e>t.lastLine())return e;var n,r=Kt(t,e);if(!Ve(t,r))return e;for(;n=ze(r);)r=n.find(1,!0).line;return Jt(r)+1}function Ve(t,e){var n=Ee&&e.markedSpans;if(n)for(var r=void 0,i=0;i<n.length;++i)if((r=n[i]).marker.collapsed){if(null==r.from)return!0;if(!r.marker.widgetNode&&0==r.from&&r.marker.inclusiveLeft&&qe(t,e,r))return!0}}function qe(t,e,n){if(null==n.to){var r=n.marker.find(1,!0);return qe(t,r.line,Ae(r.line.markedSpans,n.marker))}if(n.marker.inclusiveRight&&n.to==e.text.length)return!0;for(var i=void 0,o=0;o<e.markedSpans.length;++o)if((i=e.markedSpans[o]).marker.collapsed&&!i.marker.widgetNode&&i.from==n.to&&(null==i.to||i.to!=n.from)&&(i.marker.inclusiveLeft||n.marker.inclusiveRight)&&qe(t,e,i))return!0}function We(t){for(var e=0,n=(t=Ge(t)).parent,r=0;r<n.lines.length;++r){var i=n.lines[r];if(i==t)break;e+=i.height}for(var o=n.parent;o;o=(n=o).parent)for(var a=0;a<o.children.length;++a){var s=o.children[a];if(s==n)break;e+=s.height}return e}function He(t){if(0==t.height)return 0;for(var e,n=t.text.length,r=t;e=De(r);){var i=e.find(0,!0);r=i.from.line,n+=i.from.ch-i.to.ch}for(r=t;e=ze(r);){var o=e.find(0,!0);n-=r.text.length-o.from.ch,n+=(r=o.to.line).text.length-o.to.ch}return n}function Xe(t){var e=t.display,n=t.doc;e.maxLine=Kt(n,n.first),e.maxLineLength=He(e.maxLine),e.maxLineChanged=!0,n.iter((function(t){var n=He(t);n>e.maxLineLength&&(e.maxLineLength=n,e.maxLine=t)}))}var Ke=function(t,e,n){this.text=t,Re(this,e),this.height=n?n(this):1};function Ye(t){t.parent=null,Oe(t)}Ke.prototype.lineNo=function(){return Jt(this)},wt(Ke);var Qe={},$e={};function Je(t,e){if(!t||/^\s*$/.test(t))return null;var n=e.addModeClass?$e:Qe;return n[t]||(n[t]=t.replace(/\S+/g,"cm-$&"))}function tn(t,e){var n=O("span",null,null,l?"padding-right: .1px":null),r={pre:O("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:t,trailingSpace:!1,splitSpaces:t.getOption("lineWrapping")};e.measure={};for(var i=0;i<=(e.rest?e.rest.length:0);i++){var o=i?e.rest[i-1]:e.line,a=void 0;r.pos=0,r.addToken=nn,Rt(t.display.measure)&&(a=pt(o,t.doc.direction))&&(r.addToken=rn(r.addToken,a)),r.map=[],an(o,r,ge(t,o,e!=t.display.externalMeasured&&Jt(o))),o.styleClasses&&(o.styleClasses.bgClass&&(r.bgClass=F(o.styleClasses.bgClass,r.bgClass||"")),o.styleClasses.textClass&&(r.textClass=F(o.styleClasses.textClass,r.textClass||""))),0==r.map.length&&r.map.push(0,0,r.content.appendChild(Ot(t.display.measure))),0==i?(e.measure.map=r.map,e.measure.cache={}):((e.measure.maps||(e.measure.maps=[])).push(r.map),(e.measure.caches||(e.measure.caches=[])).push({}))}if(l){var s=r.content.lastChild;(/\bcm-tab\b/.test(s.className)||s.querySelector&&s.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return yt(t,"renderLine",t,e.line,r.pre),r.pre.className&&(r.textClass=F(r.pre.className,r.textClass||"")),r}function en(t){var e=M("span","•","cm-invalidchar");return e.title="\\u"+t.charCodeAt(0).toString(16),e.setAttribute("aria-label",e.title),e}function nn(t,e,n,r,i,o,l){if(e){var u,c=t.splitSpaces?function(t,e){if(t.length>1&&!/ /.test(t))return t;for(var n=e,r="",i=0;i<t.length;i++){var o=t.charAt(i);" "!=o||!n||i!=t.length-1&&32!=t.charCodeAt(i+1)||(o=" "),r+=o,n=" "==o}return r}(e,t.trailingSpace):e,h=t.cm.state.specialChars,p=!1;if(h.test(e)){u=document.createDocumentFragment();for(var d=0;;){h.lastIndex=d;var f=h.exec(e),g=f?f.index-d:e.length-d;if(g){var m=document.createTextNode(c.slice(d,d+g));a&&s<9?u.appendChild(M("span",[m])):u.appendChild(m),t.map.push(t.pos,t.pos+g,m),t.col+=g,t.pos+=g}if(!f)break;d+=g+1;var y=void 0;if("\t"==f[0]){var v=t.cm.options.tabSize,_=v-t.col%v;(y=u.appendChild(M("span",Y(_),"cm-tab"))).setAttribute("role","presentation"),y.setAttribute("cm-text","\t"),t.col+=_}else"\r"==f[0]||"\n"==f[0]?((y=u.appendChild(M("span","\r"==f[0]?"␍":"␤","cm-invalidchar"))).setAttribute("cm-text",f[0]),t.col+=1):((y=t.cm.options.specialCharPlaceholder(f[0])).setAttribute("cm-text",f[0]),a&&s<9?u.appendChild(M("span",[y])):u.appendChild(y),t.col+=1);t.map.push(t.pos,t.pos+1,y),t.pos++}}else t.col+=e.length,u=document.createTextNode(c),t.map.push(t.pos,t.pos+e.length,u),a&&s<9&&(p=!0),t.pos+=e.length;if(t.trailingSpace=32==c.charCodeAt(e.length-1),n||r||i||p||o||l){var b=n||"";r&&(b+=r),i&&(b+=i);var w=M("span",[u],b,o);if(l)for(var x in l)l.hasOwnProperty(x)&&"style"!=x&&"class"!=x&&w.setAttribute(x,l[x]);return t.content.appendChild(w)}t.content.appendChild(u)}}function rn(t,e){return function(n,r,i,o,a,s,l){i=i?i+" cm-force-border":"cm-force-border";for(var u=n.pos,c=u+r.length;;){for(var h=void 0,p=0;p<e.length&&!((h=e[p]).to>u&&h.from<=u);p++);if(h.to>=c)return t(n,r,i,o,a,s,l);t(n,r.slice(0,h.to-u),i,o,null,s,l),o=null,r=r.slice(h.to-u),u=h.to}}}function on(t,e,n,r){var i=!r&&n.widgetNode;i&&t.map.push(t.pos,t.pos+e,i),!r&&t.cm.display.input.needsContentAttribute&&(i||(i=t.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",n.id)),i&&(t.cm.display.input.setUneditable(i),t.content.appendChild(i)),t.pos+=e,t.trailingSpace=!1}function an(t,e,n){var r=t.markedSpans,i=t.text,o=0;if(r)for(var a,s,l,u,c,h,p,d=i.length,f=0,g=1,m="",y=0;;){if(y==f){l=u=c=s="",p=null,h=null,y=1/0;for(var v=[],_=void 0,b=0;b<r.length;++b){var w=r[b],x=w.marker;if("bookmark"==x.type&&w.from==f&&x.widgetNode)v.push(x);else if(w.from<=f&&(null==w.to||w.to>f||x.collapsed&&w.to==f&&w.from==f)){if(null!=w.to&&w.to!=f&&y>w.to&&(y=w.to,u=""),x.className&&(l+=" "+x.className),x.css&&(s=(s?s+";":"")+x.css),x.startStyle&&w.from==f&&(c+=" "+x.startStyle),x.endStyle&&w.to==y&&(_||(_=[])).push(x.endStyle,w.to),x.title&&((p||(p={})).title=x.title),x.attributes)for(var S in x.attributes)(p||(p={}))[S]=x.attributes[S];x.collapsed&&(!h||Fe(h.marker,x)<0)&&(h=w)}else w.from>f&&y>w.from&&(y=w.from)}if(_)for(var C=0;C<_.length;C+=2)_[C+1]==y&&(u+=" "+_[C]);if(!h||h.from==f)for(var E=0;E<v.length;++E)on(e,0,v[E]);if(h&&(h.from||0)==f){if(on(e,(null==h.to?d+1:h.to)-f,h.marker,null==h.from),null==h.to)return;h.to==f&&(h=!1)}}if(f>=d)break;for(var k=Math.min(d,y);;){if(m){var A=f+m.length;if(!h){var P=A>k?m.slice(0,k-f):m;e.addToken(e,P,a?a+l:l,c,f+P.length==y?u:"",s,p)}if(A>=k){m=m.slice(k-f),f=k;break}f=A,c=""}m=i.slice(o,o=n[g++]),a=Je(n[g++],e.cm.options)}}else for(var T=1;T<n.length;T+=2)e.addToken(e,i.slice(o,o=n[T]),Je(n[T+1],e.cm.options))}function sn(t,e,n){this.line=e,this.rest=function(t){for(var e,n;e=ze(t);)t=e.find(1,!0).line,(n||(n=[])).push(t);return n}(e),this.size=this.rest?Jt(Q(this.rest))-n+1:1,this.node=this.text=null,this.hidden=Ve(t,e)}function ln(t,e,n){for(var r,i=[],o=e;o<n;o=r){var a=new sn(t.doc,Kt(t.doc,o),o);r=o+a.size,i.push(a)}return i}var un=null;var cn=null;function hn(t,e){var n=gt(t,e);if(n.length){var r,i=Array.prototype.slice.call(arguments,2);un?r=un.delayedCallbacks:cn?r=cn:(r=cn=[],setTimeout(pn,0));for(var o=function(t){r.push((function(){return n[t].apply(null,i)}))},a=0;a<n.length;++a)o(a)}}function pn(){var t=cn;cn=null;for(var e=0;e<t.length;++e)t[e]()}function dn(t,e,n,r){for(var i=0;i<e.changes.length;i++){var o=e.changes[i];"text"==o?mn(t,e):"gutter"==o?vn(t,e,n,r):"class"==o?yn(t,e):"widget"==o&&_n(t,e,r)}e.changes=null}function fn(t){return t.node==t.text&&(t.node=M("div",null,null,"position: relative"),t.text.parentNode&&t.text.parentNode.replaceChild(t.node,t.text),t.node.appendChild(t.text),a&&s<8&&(t.node.style.zIndex=2)),t.node}function gn(t,e){var n=t.display.externalMeasured;return n&&n.line==e.line?(t.display.externalMeasured=null,e.measure=n.measure,n.built):tn(t,e)}function mn(t,e){var n=e.text.className,r=gn(t,e);e.text==e.node&&(e.node=r.pre),e.text.parentNode.replaceChild(r.pre,e.text),e.text=r.pre,r.bgClass!=e.bgClass||r.textClass!=e.textClass?(e.bgClass=r.bgClass,e.textClass=r.textClass,yn(t,e)):n&&(e.text.className=n)}function yn(t,e){(function(t,e){var n=e.bgClass?e.bgClass+" "+(e.line.bgClass||""):e.line.bgClass;if(n&&(n+=" CodeMirror-linebackground"),e.background)n?e.background.className=n:(e.background.parentNode.removeChild(e.background),e.background=null);else if(n){var r=fn(e);e.background=r.insertBefore(M("div",null,n),r.firstChild),t.display.input.setUneditable(e.background)}})(t,e),e.line.wrapClass?fn(e).className=e.line.wrapClass:e.node!=e.text&&(e.node.className="");var n=e.textClass?e.textClass+" "+(e.line.textClass||""):e.line.textClass;e.text.className=n||""}function vn(t,e,n,r){if(e.gutter&&(e.node.removeChild(e.gutter),e.gutter=null),e.gutterBackground&&(e.node.removeChild(e.gutterBackground),e.gutterBackground=null),e.line.gutterClass){var i=fn(e);e.gutterBackground=M("div",null,"CodeMirror-gutter-background "+e.line.gutterClass,"left: "+(t.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px; width: "+r.gutterTotalWidth+"px"),t.display.input.setUneditable(e.gutterBackground),i.insertBefore(e.gutterBackground,e.text)}var o=e.line.gutterMarkers;if(t.options.lineNumbers||o){var a=fn(e),s=e.gutter=M("div",null,"CodeMirror-gutter-wrapper","left: "+(t.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px");if(s.setAttribute("aria-hidden","true"),t.display.input.setUneditable(s),a.insertBefore(s,e.text),e.line.gutterClass&&(s.className+=" "+e.line.gutterClass),!t.options.lineNumbers||o&&o["CodeMirror-linenumbers"]||(e.lineNumber=s.appendChild(M("div",ne(t.options,n),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+r.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+t.display.lineNumInnerWidth+"px"))),o)for(var l=0;l<t.display.gutterSpecs.length;++l){var u=t.display.gutterSpecs[l].className,c=o.hasOwnProperty(u)&&o[u];c&&s.appendChild(M("div",[c],"CodeMirror-gutter-elt","left: "+r.gutterLeft[u]+"px; width: "+r.gutterWidth[u]+"px"))}}}function _n(t,e,n){e.alignable&&(e.alignable=null);for(var r=E("CodeMirror-linewidget"),i=e.node.firstChild,o=void 0;i;i=o)o=i.nextSibling,r.test(i.className)&&e.node.removeChild(i);wn(t,e,n)}function bn(t,e,n,r){var i=gn(t,e);return e.text=e.node=i.pre,i.bgClass&&(e.bgClass=i.bgClass),i.textClass&&(e.textClass=i.textClass),yn(t,e),vn(t,e,n,r),wn(t,e,r),e.node}function wn(t,e,n){if(xn(t,e.line,e,n,!0),e.rest)for(var r=0;r<e.rest.length;r++)xn(t,e.rest[r],e,n,!1)}function xn(t,e,n,r,i){if(e.widgets)for(var o=fn(n),a=0,s=e.widgets;a<s.length;++a){var l=s[a],u=M("div",[l.node],"CodeMirror-linewidget"+(l.className?" "+l.className:""));l.handleMouseEvents||u.setAttribute("cm-ignore-events","true"),Sn(l,u,n,r),t.display.input.setUneditable(u),i&&l.above?o.insertBefore(u,n.gutter||n.text):o.appendChild(u),hn(l,"redraw")}}function Sn(t,e,n,r){if(t.noHScroll){(n.alignable||(n.alignable=[])).push(e);var i=r.wrapperWidth;e.style.left=r.fixedPos+"px",t.coverGutter||(i-=r.gutterTotalWidth,e.style.paddingLeft=r.gutterTotalWidth+"px"),e.style.width=i+"px"}t.coverGutter&&(e.style.zIndex=5,e.style.position="relative",t.noHScroll||(e.style.marginLeft=-r.gutterTotalWidth+"px"))}function Cn(t){if(null!=t.height)return t.height;var e=t.doc.cm;if(!e)return 0;if(!R(document.body,t.node)){var n="position: relative;";t.coverGutter&&(n+="margin-left: -"+e.display.gutters.offsetWidth+"px;"),t.noHScroll&&(n+="width: "+e.display.wrapper.clientWidth+"px;"),T(e.display.measure,M("div",[t.node],null,n))}return t.height=t.node.parentNode.offsetHeight}function En(t,e){for(var n=kt(e);n!=t.wrapper;n=n.parentNode)if(!n||1==n.nodeType&&"true"==n.getAttribute("cm-ignore-events")||n.parentNode==t.sizer&&n!=t.mover)return!0}function kn(t){return t.lineSpace.offsetTop}function An(t){return t.mover.offsetHeight-t.lineSpace.offsetHeight}function Pn(t){if(t.cachedPaddingH)return t.cachedPaddingH;var e=T(t.measure,M("pre","x","CodeMirror-line-like")),n=window.getComputedStyle?window.getComputedStyle(e):e.currentStyle,r={left:parseInt(n.paddingLeft),right:parseInt(n.paddingRight)};return isNaN(r.left)||isNaN(r.right)||(t.cachedPaddingH=r),r}function Tn(t){return 50-t.display.nativeBarWidth}function Mn(t){return t.display.scroller.clientWidth-Tn(t)-t.display.barWidth}function On(t){return t.display.scroller.clientHeight-Tn(t)-t.display.barHeight}function Rn(t,e,n){if(t.line==e)return{map:t.measure.map,cache:t.measure.cache};if(t.rest){for(var r=0;r<t.rest.length;r++)if(t.rest[r]==e)return{map:t.measure.maps[r],cache:t.measure.caches[r]};for(var i=0;i<t.rest.length;i++)if(Jt(t.rest[i])>n)return{map:t.measure.maps[i],cache:t.measure.caches[i],before:!0}}}function In(t,e,n,r){return Nn(t,Fn(t,e),n,r)}function Ln(t,e){if(e>=t.display.viewFrom&&e<t.display.viewTo)return t.display.view[dr(t,e)];var n=t.display.externalMeasured;return n&&e>=n.lineN&&e<n.lineN+n.size?n:void 0}function Fn(t,e){var n=Jt(e),r=Ln(t,n);r&&!r.text?r=null:r&&r.changes&&(dn(t,r,n,lr(t)),t.curOp.forceUpdate=!0),r||(r=function(t,e){var n=Jt(e=Ge(e)),r=t.display.externalMeasured=new sn(t.doc,e,n);r.lineN=n;var i=r.built=tn(t,r);return r.text=i.pre,T(t.display.lineMeasure,i.pre),r}(t,e));var i=Rn(r,e,n);return{line:e,view:r,rect:null,map:i.map,cache:i.cache,before:i.before,hasHeights:!1}}function Nn(t,e,n,r,i){e.before&&(n=-1);var o,l=n+(r||"");return e.cache.hasOwnProperty(l)?o=e.cache[l]:(e.rect||(e.rect=e.view.text.getBoundingClientRect()),e.hasHeights||(function(t,e,n){var r=t.options.lineWrapping,i=r&&Mn(t);if(!e.measure.heights||r&&e.measure.width!=i){var o=e.measure.heights=[];if(r){e.measure.width=i;for(var a=e.text.firstChild.getClientRects(),s=0;s<a.length-1;s++){var l=a[s],u=a[s+1];Math.abs(l.bottom-u.bottom)>2&&o.push((l.bottom+u.top)/2-n.top)}}o.push(n.bottom-n.top)}}(t,e.view,e.rect),e.hasHeights=!0),(o=function(t,e,n,r){var i,o=Zn(e.map,n,r),l=o.node,u=o.start,c=o.end,h=o.collapse;if(3==l.nodeType){for(var p=0;p<4;p++){for(;u&&at(e.line.text.charAt(o.coverStart+u));)--u;for(;o.coverStart+c<o.coverEnd&&at(e.line.text.charAt(o.coverStart+c));)++c;if((i=a&&s<9&&0==u&&c==o.coverEnd-o.coverStart?l.parentNode.getBoundingClientRect():jn(k(l,u,c).getClientRects(),r)).left||i.right||0==u)break;c=u,u-=1,h="right"}a&&s<11&&(i=function(t,e){if(!window.screen||null==screen.logicalXDPI||screen.logicalXDPI==screen.deviceXDPI||!function(t){if(null!=Dt)return Dt;var e=T(t,M("span","x")),n=e.getBoundingClientRect(),r=k(e,0,1).getBoundingClientRect();return Dt=Math.abs(n.left-r.left)>1}(t))return e;var n=screen.logicalXDPI/screen.deviceXDPI,r=screen.logicalYDPI/screen.deviceYDPI;return{left:e.left*n,right:e.right*n,top:e.top*r,bottom:e.bottom*r}}(t.display.measure,i))}else{var d;u>0&&(h=r="right"),i=t.options.lineWrapping&&(d=l.getClientRects()).length>1?d["right"==r?d.length-1:0]:l.getBoundingClientRect()}if(a&&s<9&&!u&&(!i||!i.left&&!i.right)){var f=l.parentNode.getClientRects()[0];i=f?{left:f.left,right:f.left+sr(t.display),top:f.top,bottom:f.bottom}:zn}for(var g=i.top-e.rect.top,m=i.bottom-e.rect.top,y=(g+m)/2,v=e.view.measure.heights,_=0;_<v.length-1&&!(y<v[_]);_++);var b=_?v[_-1]:0,w=v[_],x={left:("right"==h?i.right:i.left)-e.rect.left,right:("left"==h?i.left:i.right)-e.rect.left,top:b,bottom:w};return i.left||i.right||(x.bogus=!0),t.options.singleCursorHeightPerLine||(x.rtop=g,x.rbottom=m),x}(t,e,n,r)).bogus||(e.cache[l]=o)),{left:o.left,right:o.right,top:i?o.rtop:o.top,bottom:i?o.rbottom:o.bottom}}var Dn,zn={left:0,right:0,top:0,bottom:0};function Zn(t,e,n){for(var r,i,o,a,s,l,u=0;u<t.length;u+=3)if(s=t[u],l=t[u+1],e<s?(i=0,o=1,a="left"):e<l?o=1+(i=e-s):(u==t.length-3||e==l&&t[u+3]>e)&&(i=(o=l-s)-1,e>=l&&(a="right")),null!=i){if(r=t[u+2],s==l&&n==(r.insertLeft?"left":"right")&&(a=n),"left"==n&&0==i)for(;u&&t[u-2]==t[u-3]&&t[u-1].insertLeft;)r=t[2+(u-=3)],a="left";if("right"==n&&i==l-s)for(;u<t.length-3&&t[u+3]==t[u+4]&&!t[u+5].insertLeft;)r=t[(u+=3)+2],a="right";break}return{node:r,start:i,end:o,collapse:a,coverStart:s,coverEnd:l}}function jn(t,e){var n=zn;if("left"==e)for(var r=0;r<t.length&&(n=t[r]).left==n.right;r++);else for(var i=t.length-1;i>=0&&(n=t[i]).left==n.right;i--);return n}function Gn(t){if(t.measure&&(t.measure.cache={},t.measure.heights=null,t.rest))for(var e=0;e<t.rest.length;e++)t.measure.caches[e]={}}function Bn(t){t.display.externalMeasure=null,P(t.display.lineMeasure);for(var e=0;e<t.display.view.length;e++)Gn(t.display.view[e])}function Un(t){Bn(t),t.display.cachedCharWidth=t.display.cachedTextHeight=t.display.cachedPaddingH=null,t.options.lineWrapping||(t.display.maxLineChanged=!0),t.display.lineNumChars=null}function Vn(t){return c&&y?-(t.body.getBoundingClientRect().left-parseInt(getComputedStyle(t.body).marginLeft)):t.defaultView.pageXOffset||(t.documentElement||t.body).scrollLeft}function qn(t){return c&&y?-(t.body.getBoundingClientRect().top-parseInt(getComputedStyle(t.body).marginTop)):t.defaultView.pageYOffset||(t.documentElement||t.body).scrollTop}function Wn(t){var e=Ge(t).widgets,n=0;if(e)for(var r=0;r<e.length;++r)e[r].above&&(n+=Cn(e[r]));return n}function Hn(t,e,n,r,i){if(!i){var o=Wn(e);n.top+=o,n.bottom+=o}if("line"==r)return n;r||(r="local");var a=We(e);if("local"==r?a+=kn(t.display):a-=t.display.viewOffset,"page"==r||"window"==r){var s=t.display.lineSpace.getBoundingClientRect();a+=s.top+("window"==r?0:qn(D(t)));var l=s.left+("window"==r?0:Vn(D(t)));n.left+=l,n.right+=l}return n.top+=a,n.bottom+=a,n}function Xn(t,e,n){if("div"==n)return e;var r=e.left,i=e.top;if("page"==n)r-=Vn(D(t)),i-=qn(D(t));else if("local"==n||!n){var o=t.display.sizer.getBoundingClientRect();r+=o.left,i+=o.top}var a=t.display.lineSpace.getBoundingClientRect();return{left:r-a.left,top:i-a.top}}function Kn(t,e,n,r,i){return r||(r=Kt(t.doc,e.line)),Hn(t,r,In(t,r,e.ch,i),n)}function Yn(t,e,n,r,i,o){function a(e,a){var s=Nn(t,i,e,a?"right":"left",o);return a?s.left=s.right:s.right=s.left,Hn(t,r,s,n)}r=r||Kt(t.doc,e.line),i||(i=Fn(t,r));var s=pt(r,t.doc.direction),l=e.ch,u=e.sticky;if(l>=r.text.length?(l=r.text.length,u="before"):l<=0&&(l=0,u="after"),!s)return a("before"==u?l-1:l,"before"==u);function c(t,e,n){return a(n?t-1:t,1==s[e].level!=n)}var h=ct(s,l,u),p=ut,d=c(l,h,"before"==u);return null!=p&&(d.other=c(l,p,"before"!=u)),d}function Qn(t,e){var n=0;e=ce(t.doc,e),t.options.lineWrapping||(n=sr(t.display)*e.ch);var r=Kt(t.doc,e.line),i=We(r)+kn(t.display);return{left:n,right:n,top:i,bottom:i+r.height}}function $n(t,e,n,r,i){var o=re(t,e,n);return o.xRel=i,r&&(o.outside=r),o}function Jn(t,e,n){var r=t.doc;if((n+=t.display.viewOffset)<0)return $n(r.first,0,null,-1,-1);var i=te(r,n),o=r.first+r.size-1;if(i>o)return $n(r.first+r.size-1,Kt(r,o).text.length,null,1,1);e<0&&(e=0);for(var a=Kt(r,i);;){var s=rr(t,a,i,e,n),l=Ze(a,s.ch+(s.xRel>0||s.outside>0?1:0));if(!l)return s;var u=l.find(1);if(u.line==i)return u;a=Kt(r,i=u.line)}}function tr(t,e,n,r){r-=Wn(e);var i=e.text.length,o=lt((function(e){return Nn(t,n,e-1).bottom<=r}),i,0);return{begin:o,end:i=lt((function(e){return Nn(t,n,e).top>r}),o,i)}}function er(t,e,n,r){return n||(n=Fn(t,e)),tr(t,e,n,Hn(t,e,Nn(t,n,r),"line").top)}function nr(t,e,n,r){return!(t.bottom<=n)&&(t.top>n||(r?t.left:t.right)>e)}function rr(t,e,n,r,i){i-=We(e);var o=Fn(t,e),a=Wn(e),s=0,l=e.text.length,u=!0,c=pt(e,t.doc.direction);if(c){var h=(t.options.lineWrapping?or:ir)(t,e,n,o,c,r,i);s=(u=1!=h.level)?h.from:h.to-1,l=u?h.to:h.from-1}var p,d,f=null,g=null,m=lt((function(e){var n=Nn(t,o,e);return n.top+=a,n.bottom+=a,!!nr(n,r,i,!1)&&(n.top<=i&&n.left<=r&&(f=e,g=n),!0)}),s,l),y=!1;if(g){var v=r-g.left<g.right-r,_=v==u;m=f+(_?0:1),d=_?"after":"before",p=v?g.left:g.right}else{u||m!=l&&m!=s||m++,d=0==m?"after":m==e.text.length?"before":Nn(t,o,m-(u?1:0)).bottom+a<=i==u?"after":"before";var b=Yn(t,re(n,m,d),"line",e,o);p=b.left,y=i<b.top?-1:i>=b.bottom?1:0}return $n(n,m=st(e.text,m,1),d,y,r-p)}function ir(t,e,n,r,i,o,a){var s=lt((function(s){var l=i[s],u=1!=l.level;return nr(Yn(t,re(n,u?l.to:l.from,u?"before":"after"),"line",e,r),o,a,!0)}),0,i.length-1),l=i[s];if(s>0){var u=1!=l.level,c=Yn(t,re(n,u?l.from:l.to,u?"after":"before"),"line",e,r);nr(c,o,a,!0)&&c.top>a&&(l=i[s-1])}return l}function or(t,e,n,r,i,o,a){var s=tr(t,e,r,a),l=s.begin,u=s.end;/\s/.test(e.text.charAt(u-1))&&u--;for(var c=null,h=null,p=0;p<i.length;p++){var d=i[p];if(!(d.from>=u||d.to<=l)){var f=Nn(t,r,1!=d.level?Math.min(u,d.to)-1:Math.max(l,d.from)).right,g=f<o?o-f+1e9:f-o;(!c||h>g)&&(c=d,h=g)}}return c||(c=i[i.length-1]),c.from<l&&(c={from:l,to:c.to,level:c.level}),c.to>u&&(c={from:c.from,to:u,level:c.level}),c}function ar(t){if(null!=t.cachedTextHeight)return t.cachedTextHeight;if(null==Dn){Dn=M("pre",null,"CodeMirror-line-like");for(var e=0;e<49;++e)Dn.appendChild(document.createTextNode("x")),Dn.appendChild(M("br"));Dn.appendChild(document.createTextNode("x"))}T(t.measure,Dn);var n=Dn.offsetHeight/50;return n>3&&(t.cachedTextHeight=n),P(t.measure),n||1}function sr(t){if(null!=t.cachedCharWidth)return t.cachedCharWidth;var e=M("span","xxxxxxxxxx"),n=M("pre",[e],"CodeMirror-line-like");T(t.measure,n);var r=e.getBoundingClientRect(),i=(r.right-r.left)/10;return i>2&&(t.cachedCharWidth=i),i||10}function lr(t){for(var e=t.display,n={},r={},i=e.gutters.clientLeft,o=e.gutters.firstChild,a=0;o;o=o.nextSibling,++a){var s=t.display.gutterSpecs[a].className;n[s]=o.offsetLeft+o.clientLeft+i,r[s]=o.clientWidth}return{fixedPos:ur(e),gutterTotalWidth:e.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:e.wrapper.clientWidth}}function ur(t){return t.scroller.getBoundingClientRect().left-t.sizer.getBoundingClientRect().left}function cr(t){var e=ar(t.display),n=t.options.lineWrapping,r=n&&Math.max(5,t.display.scroller.clientWidth/sr(t.display)-3);return function(i){if(Ve(t.doc,i))return 0;var o=0;if(i.widgets)for(var a=0;a<i.widgets.length;a++)i.widgets[a].height&&(o+=i.widgets[a].height);return n?o+(Math.ceil(i.text.length/r)||1)*e:o+e}}function hr(t){var e=t.doc,n=cr(t);e.iter((function(t){var e=n(t);e!=t.height&&$t(t,e)}))}function pr(t,e,n,r){var i=t.display;if(!n&&"true"==kt(e).getAttribute("cm-not-content"))return null;var o,a,s=i.lineSpace.getBoundingClientRect();try{o=e.clientX-s.left,a=e.clientY-s.top}catch(t){return null}var l,u=Jn(t,o,a);if(r&&u.xRel>0&&(l=Kt(t.doc,u.line).text).length==u.ch){var c=G(l,l.length,t.options.tabSize)-l.length;u=re(u.line,Math.max(0,Math.round((o-Pn(t.display).left)/sr(t.display))-c))}return u}function dr(t,e){if(e>=t.display.viewTo)return null;if((e-=t.display.viewFrom)<0)return null;for(var n=t.display.view,r=0;r<n.length;r++)if((e-=n[r].size)<0)return r}function fr(t,e,n,r){null==e&&(e=t.doc.first),null==n&&(n=t.doc.first+t.doc.size),r||(r=0);var i=t.display;if(r&&n<i.viewTo&&(null==i.updateLineNumbers||i.updateLineNumbers>e)&&(i.updateLineNumbers=e),t.curOp.viewChanged=!0,e>=i.viewTo)Ee&&Be(t.doc,e)<i.viewTo&&mr(t);else if(n<=i.viewFrom)Ee&&Ue(t.doc,n+r)>i.viewFrom?mr(t):(i.viewFrom+=r,i.viewTo+=r);else if(e<=i.viewFrom&&n>=i.viewTo)mr(t);else if(e<=i.viewFrom){var o=yr(t,n,n+r,1);o?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=r):mr(t)}else if(n>=i.viewTo){var a=yr(t,e,e,-1);a?(i.view=i.view.slice(0,a.index),i.viewTo=a.lineN):mr(t)}else{var s=yr(t,e,e,-1),l=yr(t,n,n+r,1);s&&l?(i.view=i.view.slice(0,s.index).concat(ln(t,s.lineN,l.lineN)).concat(i.view.slice(l.index)),i.viewTo+=r):mr(t)}var u=i.externalMeasured;u&&(n<u.lineN?u.lineN+=r:e<u.lineN+u.size&&(i.externalMeasured=null))}function gr(t,e,n){t.curOp.viewChanged=!0;var r=t.display,i=t.display.externalMeasured;if(i&&e>=i.lineN&&e<i.lineN+i.size&&(r.externalMeasured=null),!(e<r.viewFrom||e>=r.viewTo)){var o=r.view[dr(t,e)];if(null!=o.node){var a=o.changes||(o.changes=[]);-1==U(a,n)&&a.push(n)}}}function mr(t){t.display.viewFrom=t.display.viewTo=t.doc.first,t.display.view=[],t.display.viewOffset=0}function yr(t,e,n,r){var i,o=dr(t,e),a=t.display.view;if(!Ee||n==t.doc.first+t.doc.size)return{index:o,lineN:n};for(var s=t.display.viewFrom,l=0;l<o;l++)s+=a[l].size;if(s!=e){if(r>0){if(o==a.length-1)return null;i=s+a[o].size-e,o++}else i=s-e;e+=i,n+=i}for(;Be(t.doc,n)!=n;){if(o==(r<0?0:a.length-1))return null;n+=r*a[o-(r<0?1:0)].size,o+=r}return{index:o,lineN:n}}function vr(t){for(var e=t.display.view,n=0,r=0;r<e.length;r++){var i=e[r];i.hidden||i.node&&!i.changes||++n}return n}function _r(t){t.display.input.showSelection(t.display.input.prepareSelection())}function br(t,e){void 0===e&&(e=!0);var n=t.doc,r={},i=r.cursors=document.createDocumentFragment(),o=r.selection=document.createDocumentFragment(),a=t.options.$customCursor;a&&(e=!0);for(var s=0;s<n.sel.ranges.length;s++)if(e||s!=n.sel.primIndex){var l=n.sel.ranges[s];if(!(l.from().line>=t.display.viewTo||l.to().line<t.display.viewFrom)){var u=l.empty();if(a){var c=a(t,l);c&&wr(t,c,i)}else(u||t.options.showCursorWhenSelecting)&&wr(t,l.head,i);u||Sr(t,l,o)}}return r}function wr(t,e,n){var r=Yn(t,e,"div",null,null,!t.options.singleCursorHeightPerLine),i=n.appendChild(M("div"," ","CodeMirror-cursor"));if(i.style.left=r.left+"px",i.style.top=r.top+"px",i.style.height=Math.max(0,r.bottom-r.top)*t.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(t.getWrapperElement().className)){var o=Kn(t,e,"div",null,null),a=o.right-o.left;i.style.width=(a>0?a:t.defaultCharWidth())+"px"}if(r.other){var s=n.appendChild(M("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));s.style.display="",s.style.left=r.other.left+"px",s.style.top=r.other.top+"px",s.style.height=.85*(r.other.bottom-r.other.top)+"px"}}function xr(t,e){return t.top-e.top||t.left-e.left}function Sr(t,e,n){var r=t.display,i=t.doc,o=document.createDocumentFragment(),a=Pn(t.display),s=a.left,l=Math.max(r.sizerWidth,Mn(t)-r.sizer.offsetLeft)-a.right,u="ltr"==i.direction;function c(t,e,n,r){e<0&&(e=0),e=Math.round(e),r=Math.round(r),o.appendChild(M("div",null,"CodeMirror-selected","position: absolute; left: "+t+"px;\n top: "+e+"px; width: "+(null==n?l-t:n)+"px;\n height: "+(r-e)+"px"))}function h(e,n,r){var o,a,h=Kt(i,e),p=h.text.length;function d(n,r){return Kn(t,re(e,n),"div",h,r)}function f(e,n,r){var i=er(t,h,null,e),o="ltr"==n==("after"==r)?"left":"right";return d("after"==r?i.begin:i.end-(/\s/.test(h.text.charAt(i.end-1))?2:1),o)[o]}var g=pt(h,i.direction);return function(t,e,n,r){if(!t)return r(e,n,"ltr",0);for(var i=!1,o=0;o<t.length;++o){var a=t[o];(a.from<n&&a.to>e||e==n&&a.to==e)&&(r(Math.max(a.from,e),Math.min(a.to,n),1==a.level?"rtl":"ltr",o),i=!0)}i||r(e,n,"ltr")}(g,n||0,null==r?p:r,(function(t,e,i,h){var m="ltr"==i,y=d(t,m?"left":"right"),v=d(e-1,m?"right":"left"),_=null==n&&0==t,b=null==r&&e==p,w=0==h,x=!g||h==g.length-1;if(v.top-y.top<=3){var S=(u?b:_)&&x,C=(u?_:b)&&w?s:(m?y:v).left,E=S?l:(m?v:y).right;c(C,y.top,E-C,y.bottom)}else{var k,A,P,T;m?(k=u&&_&&w?s:y.left,A=u?l:f(t,i,"before"),P=u?s:f(e,i,"after"),T=u&&b&&x?l:v.right):(k=u?f(t,i,"before"):s,A=!u&&_&&w?l:y.right,P=!u&&b&&x?s:v.left,T=u?f(e,i,"after"):l),c(k,y.top,A-k,y.bottom),y.bottom<v.top&&c(s,y.bottom,null,v.top),c(P,v.top,T-P,v.bottom)}(!o||xr(y,o)<0)&&(o=y),xr(v,o)<0&&(o=v),(!a||xr(y,a)<0)&&(a=y),xr(v,a)<0&&(a=v)})),{start:o,end:a}}var p=e.from(),d=e.to();if(p.line==d.line)h(p.line,p.ch,d.ch);else{var f=Kt(i,p.line),g=Kt(i,d.line),m=Ge(f)==Ge(g),y=h(p.line,p.ch,m?f.text.length+1:null).end,v=h(d.line,m?0:null,d.ch).start;m&&(y.top<v.top-2?(c(y.right,y.top,null,y.bottom),c(s,v.top,v.left,v.bottom)):c(y.right,y.top,v.left-y.right,y.bottom)),y.bottom<v.top&&c(s,y.bottom,null,v.top)}n.appendChild(o)}function Cr(t){if(t.state.focused){var e=t.display;clearInterval(e.blinker);var n=!0;e.cursorDiv.style.visibility="",t.options.cursorBlinkRate>0?e.blinker=setInterval((function(){t.hasFocus()||Pr(t),e.cursorDiv.style.visibility=(n=!n)?"":"hidden"}),t.options.cursorBlinkRate):t.options.cursorBlinkRate<0&&(e.cursorDiv.style.visibility="hidden")}}function Er(t){t.hasFocus()||(t.display.input.focus(),t.state.focused||Ar(t))}function kr(t){t.state.delayingBlurEvent=!0,setTimeout((function(){t.state.delayingBlurEvent&&(t.state.delayingBlurEvent=!1,t.state.focused&&Pr(t))}),100)}function Ar(t,e){t.state.delayingBlurEvent&&!t.state.draggingText&&(t.state.delayingBlurEvent=!1),"nocursor"!=t.options.readOnly&&(t.state.focused||(yt(t,"focus",t,e),t.state.focused=!0,L(t.display.wrapper,"CodeMirror-focused"),t.curOp||t.display.selForContextMenu==t.doc.sel||(t.display.input.reset(),l&&setTimeout((function(){return t.display.input.reset(!0)}),20)),t.display.input.receivedFocus()),Cr(t))}function Pr(t,e){t.state.delayingBlurEvent||(t.state.focused&&(yt(t,"blur",t,e),t.state.focused=!1,A(t.display.wrapper,"CodeMirror-focused")),clearInterval(t.display.blinker),setTimeout((function(){t.state.focused||(t.display.shift=!1)}),150))}function Tr(t){for(var e=t.display,n=e.lineDiv.offsetTop,r=Math.max(0,e.scroller.getBoundingClientRect().top),i=e.lineDiv.getBoundingClientRect().top,o=0,l=0;l<e.view.length;l++){var u=e.view[l],c=t.options.lineWrapping,h=void 0,p=0;if(!u.hidden){if(i+=u.line.height,a&&s<8){var d=u.node.offsetTop+u.node.offsetHeight;h=d-n,n=d}else{var f=u.node.getBoundingClientRect();h=f.bottom-f.top,!c&&u.text.firstChild&&(p=u.text.firstChild.getBoundingClientRect().right-f.left-1)}var g=u.line.height-h;if((g>.005||g<-.005)&&(i<r&&(o-=g),$t(u.line,h),Mr(u.line),u.rest))for(var m=0;m<u.rest.length;m++)Mr(u.rest[m]);if(p>t.display.sizerWidth){var y=Math.ceil(p/sr(t.display));y>t.display.maxLineLength&&(t.display.maxLineLength=y,t.display.maxLine=u.line,t.display.maxLineChanged=!0)}}}Math.abs(o)>2&&(e.scroller.scrollTop+=o)}function Mr(t){if(t.widgets)for(var e=0;e<t.widgets.length;++e){var n=t.widgets[e],r=n.node.parentNode;r&&(n.height=r.offsetHeight)}}function Or(t,e,n){var r=n&&null!=n.top?Math.max(0,n.top):t.scroller.scrollTop;r=Math.floor(r-kn(t));var i=n&&null!=n.bottom?n.bottom:r+t.wrapper.clientHeight,o=te(e,r),a=te(e,i);if(n&&n.ensure){var s=n.ensure.from.line,l=n.ensure.to.line;s<o?(o=s,a=te(e,We(Kt(e,s))+t.wrapper.clientHeight)):Math.min(l,e.lastLine())>=a&&(o=te(e,We(Kt(e,l))-t.wrapper.clientHeight),a=l)}return{from:o,to:Math.max(a,o+1)}}function Rr(t,e){var n=t.display,r=ar(t.display);e.top<0&&(e.top=0);var i=t.curOp&&null!=t.curOp.scrollTop?t.curOp.scrollTop:n.scroller.scrollTop,o=On(t),a={};e.bottom-e.top>o&&(e.bottom=e.top+o);var s=t.doc.height+An(n),l=e.top<r,u=e.bottom>s-r;if(e.top<i)a.scrollTop=l?0:e.top;else if(e.bottom>i+o){var c=Math.min(e.top,(u?s:e.bottom)-o);c!=i&&(a.scrollTop=c)}var h=t.options.fixedGutter?0:n.gutters.offsetWidth,p=t.curOp&&null!=t.curOp.scrollLeft?t.curOp.scrollLeft:n.scroller.scrollLeft-h,d=Mn(t)-n.gutters.offsetWidth,f=e.right-e.left>d;return f&&(e.right=e.left+d),e.left<10?a.scrollLeft=0:e.left<p?a.scrollLeft=Math.max(0,e.left+h-(f?0:10)):e.right>d+p-3&&(a.scrollLeft=e.right+(f?0:10)-d),a}function Ir(t,e){null!=e&&(Nr(t),t.curOp.scrollTop=(null==t.curOp.scrollTop?t.doc.scrollTop:t.curOp.scrollTop)+e)}function Lr(t){Nr(t);var e=t.getCursor();t.curOp.scrollToPos={from:e,to:e,margin:t.options.cursorScrollMargin}}function Fr(t,e,n){null==e&&null==n||Nr(t),null!=e&&(t.curOp.scrollLeft=e),null!=n&&(t.curOp.scrollTop=n)}function Nr(t){var e=t.curOp.scrollToPos;e&&(t.curOp.scrollToPos=null,Dr(t,Qn(t,e.from),Qn(t,e.to),e.margin))}function Dr(t,e,n,r){var i=Rr(t,{left:Math.min(e.left,n.left),top:Math.min(e.top,n.top)-r,right:Math.max(e.right,n.right),bottom:Math.max(e.bottom,n.bottom)+r});Fr(t,i.scrollLeft,i.scrollTop)}function zr(t,e){Math.abs(t.doc.scrollTop-e)<2||(n||pi(t,{top:e}),Zr(t,e,!0),n&&pi(t),ai(t,100))}function Zr(t,e,n){e=Math.max(0,Math.min(t.display.scroller.scrollHeight-t.display.scroller.clientHeight,e)),(t.display.scroller.scrollTop!=e||n)&&(t.doc.scrollTop=e,t.display.scrollbars.setScrollTop(e),t.display.scroller.scrollTop!=e&&(t.display.scroller.scrollTop=e))}function jr(t,e,n,r){e=Math.max(0,Math.min(e,t.display.scroller.scrollWidth-t.display.scroller.clientWidth)),(n?e==t.doc.scrollLeft:Math.abs(t.doc.scrollLeft-e)<2)&&!r||(t.doc.scrollLeft=e,gi(t),t.display.scroller.scrollLeft!=e&&(t.display.scroller.scrollLeft=e),t.display.scrollbars.setScrollLeft(e))}function Gr(t){var e=t.display,n=e.gutters.offsetWidth,r=Math.round(t.doc.height+An(t.display));return{clientHeight:e.scroller.clientHeight,viewHeight:e.wrapper.clientHeight,scrollWidth:e.scroller.scrollWidth,clientWidth:e.scroller.clientWidth,viewWidth:e.wrapper.clientWidth,barLeft:t.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+Tn(t)+e.barHeight,nativeBarWidth:e.nativeBarWidth,gutterWidth:n}}var Br=function(t,e,n){this.cm=n;var r=this.vert=M("div",[M("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=M("div",[M("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=i.tabIndex=-1,t(r),t(i),ft(r,"scroll",(function(){r.clientHeight&&e(r.scrollTop,"vertical")})),ft(i,"scroll",(function(){i.clientWidth&&e(i.scrollLeft,"horizontal")})),this.checkedZeroWidth=!1,a&&s<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Br.prototype.update=function(t){var e=t.scrollWidth>t.clientWidth+1,n=t.scrollHeight>t.clientHeight+1,r=t.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=e?r+"px":"0";var i=t.viewHeight-(e?r:0);this.vert.firstChild.style.height=Math.max(0,t.scrollHeight-t.clientHeight+i)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(e){this.horiz.style.display="block",this.horiz.style.right=n?r+"px":"0",this.horiz.style.left=t.barLeft+"px";var o=t.viewWidth-t.barLeft-(n?r:0);this.horiz.firstChild.style.width=Math.max(0,t.scrollWidth-t.clientWidth+o)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&t.clientHeight>0&&(0==r&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?r:0,bottom:e?r:0}},Br.prototype.setScrollLeft=function(t){this.horiz.scrollLeft!=t&&(this.horiz.scrollLeft=t),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Br.prototype.setScrollTop=function(t){this.vert.scrollTop!=t&&(this.vert.scrollTop=t),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Br.prototype.zeroWidthHack=function(){var t=_&&!f?"12px":"18px";this.horiz.style.height=this.vert.style.width=t,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new B,this.disableVert=new B},Br.prototype.enableZeroWidthBar=function(t,e,n){t.style.visibility="",e.set(1e3,(function r(){var i=t.getBoundingClientRect();("vert"==n?document.elementFromPoint(i.right-1,(i.top+i.bottom)/2):document.elementFromPoint((i.right+i.left)/2,i.bottom-1))!=t?t.style.visibility="hidden":e.set(1e3,r)}))},Br.prototype.clear=function(){var t=this.horiz.parentNode;t.removeChild(this.horiz),t.removeChild(this.vert)};var Ur=function(){};function Vr(t,e){e||(e=Gr(t));var n=t.display.barWidth,r=t.display.barHeight;qr(t,e);for(var i=0;i<4&&n!=t.display.barWidth||r!=t.display.barHeight;i++)n!=t.display.barWidth&&t.options.lineWrapping&&Tr(t),qr(t,Gr(t)),n=t.display.barWidth,r=t.display.barHeight}function qr(t,e){var n=t.display,r=n.scrollbars.update(e);n.sizer.style.paddingRight=(n.barWidth=r.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=r.bottom)+"px",n.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=r.bottom+"px",n.scrollbarFiller.style.width=r.right+"px"):n.scrollbarFiller.style.display="",r.bottom&&t.options.coverGutterNextToScrollbar&&t.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=r.bottom+"px",n.gutterFiller.style.width=e.gutterWidth+"px"):n.gutterFiller.style.display=""}Ur.prototype.update=function(){return{bottom:0,right:0}},Ur.prototype.setScrollLeft=function(){},Ur.prototype.setScrollTop=function(){},Ur.prototype.clear=function(){};var Wr={native:Br,null:Ur};function Hr(t){t.display.scrollbars&&(t.display.scrollbars.clear(),t.display.scrollbars.addClass&&A(t.display.wrapper,t.display.scrollbars.addClass)),t.display.scrollbars=new Wr[t.options.scrollbarStyle]((function(e){t.display.wrapper.insertBefore(e,t.display.scrollbarFiller),ft(e,"mousedown",(function(){t.state.focused&&setTimeout((function(){return t.display.input.focus()}),0)})),e.setAttribute("cm-not-content","true")}),(function(e,n){"horizontal"==n?jr(t,e):zr(t,e)}),t),t.display.scrollbars.addClass&&L(t.display.wrapper,t.display.scrollbars.addClass)}var Xr=0;function Kr(t){var e;t.curOp={cm:t,viewChanged:!1,startHeight:t.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Xr,markArrays:null},e=t.curOp,un?un.ops.push(e):e.ownsGroup=un={ops:[e],delayedCallbacks:[]}}function Yr(t){var e=t.curOp;e&&function(t,e){var n=t.ownsGroup;if(n)try{!function(t){var e=t.delayedCallbacks,n=0;do{for(;n<e.length;n++)e[n].call(null);for(var r=0;r<t.ops.length;r++){var i=t.ops[r];if(i.cursorActivityHandlers)for(;i.cursorActivityCalled<i.cursorActivityHandlers.length;)i.cursorActivityHandlers[i.cursorActivityCalled++].call(null,i.cm)}}while(n<e.length)}(n)}finally{un=null,e(n)}}(e,(function(t){for(var e=0;e<t.ops.length;e++)t.ops[e].cm.curOp=null;!function(t){for(var e=t.ops,n=0;n<e.length;n++)Qr(e[n]);for(var r=0;r<e.length;r++)$r(e[r]);for(var i=0;i<e.length;i++)Jr(e[i]);for(var o=0;o<e.length;o++)ti(e[o]);for(var a=0;a<e.length;a++)ei(e[a])}(t)}))}function Qr(t){var e=t.cm,n=e.display;(function(t){var e=t.display;!e.scrollbarsClipped&&e.scroller.offsetWidth&&(e.nativeBarWidth=e.scroller.offsetWidth-e.scroller.clientWidth,e.heightForcer.style.height=Tn(t)+"px",e.sizer.style.marginBottom=-e.nativeBarWidth+"px",e.sizer.style.borderRightWidth=Tn(t)+"px",e.scrollbarsClipped=!0)})(e),t.updateMaxLine&&Xe(e),t.mustUpdate=t.viewChanged||t.forceUpdate||null!=t.scrollTop||t.scrollToPos&&(t.scrollToPos.from.line<n.viewFrom||t.scrollToPos.to.line>=n.viewTo)||n.maxLineChanged&&e.options.lineWrapping,t.update=t.mustUpdate&&new li(e,t.mustUpdate&&{top:t.scrollTop,ensure:t.scrollToPos},t.forceUpdate)}function $r(t){t.updatedDisplay=t.mustUpdate&&ci(t.cm,t.update)}function Jr(t){var e=t.cm,n=e.display;t.updatedDisplay&&Tr(e),t.barMeasure=Gr(e),n.maxLineChanged&&!e.options.lineWrapping&&(t.adjustWidthTo=In(e,n.maxLine,n.maxLine.text.length).left+3,e.display.sizerWidth=t.adjustWidthTo,t.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+t.adjustWidthTo+Tn(e)+e.display.barWidth),t.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+t.adjustWidthTo-Mn(e))),(t.updatedDisplay||t.selectionChanged)&&(t.preparedSelection=n.input.prepareSelection())}function ti(t){var e=t.cm;null!=t.adjustWidthTo&&(e.display.sizer.style.minWidth=t.adjustWidthTo+"px",t.maxScrollLeft<e.doc.scrollLeft&&jr(e,Math.min(e.display.scroller.scrollLeft,t.maxScrollLeft),!0),e.display.maxLineChanged=!1);var n=t.focus&&t.focus==I(D(e));t.preparedSelection&&e.display.input.showSelection(t.preparedSelection,n),(t.updatedDisplay||t.startHeight!=e.doc.height)&&Vr(e,t.barMeasure),t.updatedDisplay&&fi(e,t.barMeasure),t.selectionChanged&&Cr(e),e.state.focused&&t.updateInput&&e.display.input.reset(t.typing),n&&Er(t.cm)}function ei(t){var e=t.cm,n=e.display,r=e.doc;t.updatedDisplay&&hi(e,t.update),null==n.wheelStartX||null==t.scrollTop&&null==t.scrollLeft&&!t.scrollToPos||(n.wheelStartX=n.wheelStartY=null),null!=t.scrollTop&&Zr(e,t.scrollTop,t.forceScroll),null!=t.scrollLeft&&jr(e,t.scrollLeft,!0,!0),t.scrollToPos&&function(t,e){if(!vt(t,"scrollCursorIntoView")){var n=t.display,r=n.sizer.getBoundingClientRect(),i=null,o=n.wrapper.ownerDocument;if(e.top+r.top<0?i=!0:e.bottom+r.top>(o.defaultView.innerHeight||o.documentElement.clientHeight)&&(i=!1),null!=i&&!g){var a=M("div","​",null,"position: absolute;\n top: "+(e.top-n.viewOffset-kn(t.display))+"px;\n height: "+(e.bottom-e.top+Tn(t)+n.barHeight)+"px;\n left: "+e.left+"px; width: "+Math.max(2,e.right-e.left)+"px;");t.display.lineSpace.appendChild(a),a.scrollIntoView(i),t.display.lineSpace.removeChild(a)}}}(e,function(t,e,n,r){var i;null==r&&(r=0),t.options.lineWrapping||e!=n||(n="before"==e.sticky?re(e.line,e.ch+1,"before"):e,e=e.ch?re(e.line,"before"==e.sticky?e.ch-1:e.ch,"after"):e);for(var o=0;o<5;o++){var a=!1,s=Yn(t,e),l=n&&n!=e?Yn(t,n):s,u=Rr(t,i={left:Math.min(s.left,l.left),top:Math.min(s.top,l.top)-r,right:Math.max(s.left,l.left),bottom:Math.max(s.bottom,l.bottom)+r}),c=t.doc.scrollTop,h=t.doc.scrollLeft;if(null!=u.scrollTop&&(zr(t,u.scrollTop),Math.abs(t.doc.scrollTop-c)>1&&(a=!0)),null!=u.scrollLeft&&(jr(t,u.scrollLeft),Math.abs(t.doc.scrollLeft-h)>1&&(a=!0)),!a)break}return i}(e,ce(r,t.scrollToPos.from),ce(r,t.scrollToPos.to),t.scrollToPos.margin));var i=t.maybeHiddenMarkers,o=t.maybeUnhiddenMarkers;if(i)for(var a=0;a<i.length;++a)i[a].lines.length||yt(i[a],"hide");if(o)for(var s=0;s<o.length;++s)o[s].lines.length&&yt(o[s],"unhide");n.wrapper.offsetHeight&&(r.scrollTop=e.display.scroller.scrollTop),t.changeObjs&&yt(e,"changes",e,t.changeObjs),t.update&&t.update.finish()}function ni(t,e){if(t.curOp)return e();Kr(t);try{return e()}finally{Yr(t)}}function ri(t,e){return function(){if(t.curOp)return e.apply(t,arguments);Kr(t);try{return e.apply(t,arguments)}finally{Yr(t)}}}function ii(t){return function(){if(this.curOp)return t.apply(this,arguments);Kr(this);try{return t.apply(this,arguments)}finally{Yr(this)}}}function oi(t){return function(){var e=this.cm;if(!e||e.curOp)return t.apply(this,arguments);Kr(e);try{return t.apply(this,arguments)}finally{Yr(e)}}}function ai(t,e){t.doc.highlightFrontier<t.display.viewTo&&t.state.highlight.set(e,Z(si,t))}function si(t){var e=t.doc;if(!(e.highlightFrontier>=t.display.viewTo)){var n=+new Date+t.options.workTime,r=me(t,e.highlightFrontier),i=[];e.iter(r.line,Math.min(e.first+e.size,t.display.viewTo+500),(function(o){if(r.line>=t.display.viewFrom){var a=o.styles,s=o.text.length>t.options.maxHighlightLength?qt(e.mode,r.state):null,l=fe(t,o,r,!0);s&&(r.state=s),o.styles=l.styles;var u=o.styleClasses,c=l.classes;c?o.styleClasses=c:u&&(o.styleClasses=null);for(var h=!a||a.length!=o.styles.length||u!=c&&(!u||!c||u.bgClass!=c.bgClass||u.textClass!=c.textClass),p=0;!h&&p<a.length;++p)h=a[p]!=o.styles[p];h&&i.push(r.line),o.stateAfter=r.save(),r.nextLine()}else o.text.length<=t.options.maxHighlightLength&&ye(t,o.text,r),o.stateAfter=r.line%5==0?r.save():null,r.nextLine();if(+new Date>n)return ai(t,t.options.workDelay),!0})),e.highlightFrontier=r.line,e.modeFrontier=Math.max(e.modeFrontier,r.line),i.length&&ni(t,(function(){for(var e=0;e<i.length;e++)gr(t,i[e],"text")}))}}var li=function(t,e,n){var r=t.display;this.viewport=e,this.visible=Or(r,t.doc,e),this.editorIsHidden=!r.wrapper.offsetWidth,this.wrapperHeight=r.wrapper.clientHeight,this.wrapperWidth=r.wrapper.clientWidth,this.oldDisplayWidth=Mn(t),this.force=n,this.dims=lr(t),this.events=[]};function ui(t){if(t.hasFocus())return null;var e=I(D(t));if(!e||!R(t.display.lineDiv,e))return null;var n={activeElt:e};if(window.getSelection){var r=z(t).getSelection();r.anchorNode&&r.extend&&R(t.display.lineDiv,r.anchorNode)&&(n.anchorNode=r.anchorNode,n.anchorOffset=r.anchorOffset,n.focusNode=r.focusNode,n.focusOffset=r.focusOffset)}return n}function ci(t,e){var n=t.display,r=t.doc;if(e.editorIsHidden)return mr(t),!1;if(!e.force&&e.visible.from>=n.viewFrom&&e.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==vr(t))return!1;mi(t)&&(mr(t),e.dims=lr(t));var i=r.first+r.size,o=Math.max(e.visible.from-t.options.viewportMargin,r.first),a=Math.min(i,e.visible.to+t.options.viewportMargin);n.viewFrom<o&&o-n.viewFrom<20&&(o=Math.max(r.first,n.viewFrom)),n.viewTo>a&&n.viewTo-a<20&&(a=Math.min(i,n.viewTo)),Ee&&(o=Be(t.doc,o),a=Ue(t.doc,a));var s=o!=n.viewFrom||a!=n.viewTo||n.lastWrapHeight!=e.wrapperHeight||n.lastWrapWidth!=e.wrapperWidth;(function(t,e,n){var r=t.display;0==r.view.length||e>=r.viewTo||n<=r.viewFrom?(r.view=ln(t,e,n),r.viewFrom=e):(r.viewFrom>e?r.view=ln(t,e,r.viewFrom).concat(r.view):r.viewFrom<e&&(r.view=r.view.slice(dr(t,e))),r.viewFrom=e,r.viewTo<n?r.view=r.view.concat(ln(t,r.viewTo,n)):r.viewTo>n&&(r.view=r.view.slice(0,dr(t,n)))),r.viewTo=n})(t,o,a),n.viewOffset=We(Kt(t.doc,n.viewFrom)),t.display.mover.style.top=n.viewOffset+"px";var u=vr(t);if(!s&&0==u&&!e.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var c=ui(t);return u>4&&(n.lineDiv.style.display="none"),function(t,e,n){var r=t.display,i=t.options.lineNumbers,o=r.lineDiv,a=o.firstChild;function s(e){var n=e.nextSibling;return l&&_&&t.display.currentWheelTarget==e?e.style.display="none":e.parentNode.removeChild(e),n}for(var u=r.view,c=r.viewFrom,h=0;h<u.length;h++){var p=u[h];if(p.hidden);else if(p.node&&p.node.parentNode==o){for(;a!=p.node;)a=s(a);var d=i&&null!=e&&e<=c&&p.lineNumber;p.changes&&(U(p.changes,"gutter")>-1&&(d=!1),dn(t,p,c,n)),d&&(P(p.lineNumber),p.lineNumber.appendChild(document.createTextNode(ne(t.options,c)))),a=p.node.nextSibling}else{var f=bn(t,p,c,n);o.insertBefore(f,a)}c+=p.size}for(;a;)a=s(a)}(t,n.updateLineNumbers,e.dims),u>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,function(t){if(t&&t.activeElt&&t.activeElt!=I(t.activeElt.ownerDocument)&&(t.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(t.activeElt.nodeName)&&t.anchorNode&&R(document.body,t.anchorNode)&&R(document.body,t.focusNode))){var e=t.activeElt.ownerDocument,n=e.defaultView.getSelection(),r=e.createRange();r.setEnd(t.anchorNode,t.anchorOffset),r.collapse(!1),n.removeAllRanges(),n.addRange(r),n.extend(t.focusNode,t.focusOffset)}}(c),P(n.cursorDiv),P(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,s&&(n.lastWrapHeight=e.wrapperHeight,n.lastWrapWidth=e.wrapperWidth,ai(t,400)),n.updateLineNumbers=null,!0}function hi(t,e){for(var n=e.viewport,r=!0;;r=!1){if(r&&t.options.lineWrapping&&e.oldDisplayWidth!=Mn(t))r&&(e.visible=Or(t.display,t.doc,n));else if(n&&null!=n.top&&(n={top:Math.min(t.doc.height+An(t.display)-On(t),n.top)}),e.visible=Or(t.display,t.doc,n),e.visible.from>=t.display.viewFrom&&e.visible.to<=t.display.viewTo)break;if(!ci(t,e))break;Tr(t);var i=Gr(t);_r(t),Vr(t,i),fi(t,i),e.force=!1}e.signal(t,"update",t),t.display.viewFrom==t.display.reportedViewFrom&&t.display.viewTo==t.display.reportedViewTo||(e.signal(t,"viewportChange",t,t.display.viewFrom,t.display.viewTo),t.display.reportedViewFrom=t.display.viewFrom,t.display.reportedViewTo=t.display.viewTo)}function pi(t,e){var n=new li(t,e);if(ci(t,n)){Tr(t),hi(t,n);var r=Gr(t);_r(t),Vr(t,r),fi(t,r),n.finish()}}function di(t){var e=t.gutters.offsetWidth;t.sizer.style.marginLeft=e+"px",hn(t,"gutterChanged",t)}function fi(t,e){t.display.sizer.style.minHeight=e.docHeight+"px",t.display.heightForcer.style.top=e.docHeight+"px",t.display.gutters.style.height=e.docHeight+t.display.barHeight+Tn(t)+"px"}function gi(t){var e=t.display,n=e.view;if(e.alignWidgets||e.gutters.firstChild&&t.options.fixedGutter){for(var r=ur(e)-e.scroller.scrollLeft+t.doc.scrollLeft,i=e.gutters.offsetWidth,o=r+"px",a=0;a<n.length;a++)if(!n[a].hidden){t.options.fixedGutter&&(n[a].gutter&&(n[a].gutter.style.left=o),n[a].gutterBackground&&(n[a].gutterBackground.style.left=o));var s=n[a].alignable;if(s)for(var l=0;l<s.length;l++)s[l].style.left=o}t.options.fixedGutter&&(e.gutters.style.left=r+i+"px")}}function mi(t){if(!t.options.lineNumbers)return!1;var e=t.doc,n=ne(t.options,e.first+e.size-1),r=t.display;if(n.length!=r.lineNumChars){var i=r.measure.appendChild(M("div",[M("div",n)],"CodeMirror-linenumber CodeMirror-gutter-elt")),o=i.firstChild.offsetWidth,a=i.offsetWidth-o;return r.lineGutter.style.width="",r.lineNumInnerWidth=Math.max(o,r.lineGutter.offsetWidth-a)+1,r.lineNumWidth=r.lineNumInnerWidth+a,r.lineNumChars=r.lineNumInnerWidth?n.length:-1,r.lineGutter.style.width=r.lineNumWidth+"px",di(t.display),!0}return!1}function yi(t,e){for(var n=[],r=!1,i=0;i<t.length;i++){var o=t[i],a=null;if("string"!=typeof o&&(a=o.style,o=o.className),"CodeMirror-linenumbers"==o){if(!e)continue;r=!0}n.push({className:o,style:a})}return e&&!r&&n.push({className:"CodeMirror-linenumbers",style:null}),n}function vi(t){var e=t.gutters,n=t.gutterSpecs;P(e),t.lineGutter=null;for(var r=0;r<n.length;++r){var i=n[r],o=i.className,a=i.style,s=e.appendChild(M("div",null,"CodeMirror-gutter "+o));a&&(s.style.cssText=a),"CodeMirror-linenumbers"==o&&(t.lineGutter=s,s.style.width=(t.lineNumWidth||1)+"px")}e.style.display=n.length?"":"none",di(t)}function _i(t){vi(t.display),fr(t),gi(t)}function bi(t,e,r,i){var o=this;this.input=r,o.scrollbarFiller=M("div",null,"CodeMirror-scrollbar-filler"),o.scrollbarFiller.setAttribute("cm-not-content","true"),o.gutterFiller=M("div",null,"CodeMirror-gutter-filler"),o.gutterFiller.setAttribute("cm-not-content","true"),o.lineDiv=O("div",null,"CodeMirror-code"),o.selectionDiv=M("div",null,null,"position: relative; z-index: 1"),o.cursorDiv=M("div",null,"CodeMirror-cursors"),o.measure=M("div",null,"CodeMirror-measure"),o.lineMeasure=M("div",null,"CodeMirror-measure"),o.lineSpace=O("div",[o.measure,o.lineMeasure,o.selectionDiv,o.cursorDiv,o.lineDiv],null,"position: relative; outline: none");var u=O("div",[o.lineSpace],"CodeMirror-lines");o.mover=M("div",[u],null,"position: relative"),o.sizer=M("div",[o.mover],"CodeMirror-sizer"),o.sizerWidth=null,o.heightForcer=M("div",null,null,"position: absolute; height: 50px; width: 1px;"),o.gutters=M("div",null,"CodeMirror-gutters"),o.lineGutter=null,o.scroller=M("div",[o.sizer,o.heightForcer,o.gutters],"CodeMirror-scroll"),o.scroller.setAttribute("tabIndex","-1"),o.wrapper=M("div",[o.scrollbarFiller,o.gutterFiller,o.scroller],"CodeMirror"),c&&h>=105&&(o.wrapper.style.clipPath="inset(0px)"),o.wrapper.setAttribute("translate","no"),a&&s<8&&(o.gutters.style.zIndex=-1,o.scroller.style.paddingRight=0),l||n&&v||(o.scroller.draggable=!0),t&&(t.appendChild?t.appendChild(o.wrapper):t(o.wrapper)),o.viewFrom=o.viewTo=e.first,o.reportedViewFrom=o.reportedViewTo=e.first,o.view=[],o.renderedView=null,o.externalMeasured=null,o.viewOffset=0,o.lastWrapHeight=o.lastWrapWidth=0,o.updateLineNumbers=null,o.nativeBarWidth=o.barHeight=o.barWidth=0,o.scrollbarsClipped=!1,o.lineNumWidth=o.lineNumInnerWidth=o.lineNumChars=null,o.alignWidgets=!1,o.cachedCharWidth=o.cachedTextHeight=o.cachedPaddingH=null,o.maxLine=null,o.maxLineLength=0,o.maxLineChanged=!1,o.wheelDX=o.wheelDY=o.wheelStartX=o.wheelStartY=null,o.shift=!1,o.selForContextMenu=null,o.activeTouch=null,o.gutterSpecs=yi(i.gutters,i.lineNumbers),vi(o),r.init(o)}li.prototype.signal=function(t,e){bt(t,e)&&this.events.push(arguments)},li.prototype.finish=function(){for(var t=0;t<this.events.length;t++)yt.apply(null,this.events[t])};var wi=0,xi=null;function Si(t){var e=t.wheelDeltaX,n=t.wheelDeltaY;return null==e&&t.detail&&t.axis==t.HORIZONTAL_AXIS&&(e=t.detail),null==n&&t.detail&&t.axis==t.VERTICAL_AXIS?n=t.detail:null==n&&(n=t.wheelDelta),{x:e,y:n}}function Ci(t){var e=Si(t);return e.x*=xi,e.y*=xi,e}function Ei(t,e){c&&102==h&&(null==t.display.chromeScrollHack?t.display.sizer.style.pointerEvents="none":clearTimeout(t.display.chromeScrollHack),t.display.chromeScrollHack=setTimeout((function(){t.display.chromeScrollHack=null,t.display.sizer.style.pointerEvents=""}),100));var r=Si(e),i=r.x,o=r.y,a=xi;0===e.deltaMode&&(i=e.deltaX,o=e.deltaY,a=1);var s=t.display,u=s.scroller,d=u.scrollWidth>u.clientWidth,f=u.scrollHeight>u.clientHeight;if(i&&d||o&&f){if(o&&_&&l)t:for(var g=e.target,m=s.view;g!=u;g=g.parentNode)for(var y=0;y<m.length;y++)if(m[y].node==g){t.display.currentWheelTarget=g;break t}if(i&&!n&&!p&&null!=a)return o&&f&&zr(t,Math.max(0,u.scrollTop+o*a)),jr(t,Math.max(0,u.scrollLeft+i*a)),(!o||o&&f)&&xt(e),void(s.wheelStartX=null);if(o&&null!=a){var v=o*a,b=t.doc.scrollTop,w=b+s.wrapper.clientHeight;v<0?b=Math.max(0,b+v-50):w=Math.min(t.doc.height,w+v+50),pi(t,{top:b,bottom:w})}wi<20&&0!==e.deltaMode&&(null==s.wheelStartX?(s.wheelStartX=u.scrollLeft,s.wheelStartY=u.scrollTop,s.wheelDX=i,s.wheelDY=o,setTimeout((function(){if(null!=s.wheelStartX){var t=u.scrollLeft-s.wheelStartX,e=u.scrollTop-s.wheelStartY,n=e&&s.wheelDY&&e/s.wheelDY||t&&s.wheelDX&&t/s.wheelDX;s.wheelStartX=s.wheelStartY=null,n&&(xi=(xi*wi+n)/(wi+1),++wi)}}),200)):(s.wheelDX+=i,s.wheelDY+=o))}}a?xi=-.53:n?xi=15:c?xi=-.7:d&&(xi=-1/3);var ki=function(t,e){this.ranges=t,this.primIndex=e};ki.prototype.primary=function(){return this.ranges[this.primIndex]},ki.prototype.equals=function(t){if(t==this)return!0;if(t.primIndex!=this.primIndex||t.ranges.length!=this.ranges.length)return!1;for(var e=0;e<this.ranges.length;e++){var n=this.ranges[e],r=t.ranges[e];if(!oe(n.anchor,r.anchor)||!oe(n.head,r.head))return!1}return!0},ki.prototype.deepCopy=function(){for(var t=[],e=0;e<this.ranges.length;e++)t[e]=new Ai(ae(this.ranges[e].anchor),ae(this.ranges[e].head));return new ki(t,this.primIndex)},ki.prototype.somethingSelected=function(){for(var t=0;t<this.ranges.length;t++)if(!this.ranges[t].empty())return!0;return!1},ki.prototype.contains=function(t,e){e||(e=t);for(var n=0;n<this.ranges.length;n++){var r=this.ranges[n];if(ie(e,r.from())>=0&&ie(t,r.to())<=0)return n}return-1};var Ai=function(t,e){this.anchor=t,this.head=e};function Pi(t,e,n){var r=t&&t.options.selectionsMayTouch,i=e[n];e.sort((function(t,e){return ie(t.from(),e.from())})),n=U(e,i);for(var o=1;o<e.length;o++){var a=e[o],s=e[o-1],l=ie(s.to(),a.from());if(r&&!a.empty()?l>0:l>=0){var u=le(s.from(),a.from()),c=se(s.to(),a.to()),h=s.empty()?a.from()==a.head:s.from()==s.head;o<=n&&--n,e.splice(--o,2,new Ai(h?c:u,h?u:c))}}return new ki(e,n)}function Ti(t,e){return new ki([new Ai(t,e||t)],0)}function Mi(t){return t.text?re(t.from.line+t.text.length-1,Q(t.text).length+(1==t.text.length?t.from.ch:0)):t.to}function Oi(t,e){if(ie(t,e.from)<0)return t;if(ie(t,e.to)<=0)return Mi(e);var n=t.line+e.text.length-(e.to.line-e.from.line)-1,r=t.ch;return t.line==e.to.line&&(r+=Mi(e).ch-e.to.ch),re(n,r)}function Ri(t,e){for(var n=[],r=0;r<t.sel.ranges.length;r++){var i=t.sel.ranges[r];n.push(new Ai(Oi(i.anchor,e),Oi(i.head,e)))}return Pi(t.cm,n,t.sel.primIndex)}function Ii(t,e,n){return t.line==e.line?re(n.line,t.ch-e.ch+n.ch):re(n.line+(t.line-e.line),t.ch)}function Li(t){t.doc.mode=Bt(t.options,t.doc.modeOption),Fi(t)}function Fi(t){t.doc.iter((function(t){t.stateAfter&&(t.stateAfter=null),t.styles&&(t.styles=null)})),t.doc.modeFrontier=t.doc.highlightFrontier=t.doc.first,ai(t,100),t.state.modeGen++,t.curOp&&fr(t)}function Ni(t,e){return 0==e.from.ch&&0==e.to.ch&&""==Q(e.text)&&(!t.cm||t.cm.options.wholeLineUpdateBefore)}function Di(t,e,n,r){function i(t){return n?n[t]:null}function o(t,n,i){(function(t,e,n,r){t.text=e,t.stateAfter&&(t.stateAfter=null),t.styles&&(t.styles=null),null!=t.order&&(t.order=null),Oe(t),Re(t,n);var i=r?r(t):1;i!=t.height&&$t(t,i)})(t,n,i,r),hn(t,"change",t,e)}function a(t,e){for(var n=[],o=t;o<e;++o)n.push(new Ke(u[o],i(o),r));return n}var s=e.from,l=e.to,u=e.text,c=Kt(t,s.line),h=Kt(t,l.line),p=Q(u),d=i(u.length-1),f=l.line-s.line;if(e.full)t.insert(0,a(0,u.length)),t.remove(u.length,t.size-u.length);else if(Ni(t,e)){var g=a(0,u.length-1);o(h,h.text,d),f&&t.remove(s.line,f),g.length&&t.insert(s.line,g)}else if(c==h)if(1==u.length)o(c,c.text.slice(0,s.ch)+p+c.text.slice(l.ch),d);else{var m=a(1,u.length-1);m.push(new Ke(p+c.text.slice(l.ch),d,r)),o(c,c.text.slice(0,s.ch)+u[0],i(0)),t.insert(s.line+1,m)}else if(1==u.length)o(c,c.text.slice(0,s.ch)+u[0]+h.text.slice(l.ch),i(0)),t.remove(s.line+1,f);else{o(c,c.text.slice(0,s.ch)+u[0],i(0)),o(h,p+h.text.slice(l.ch),d);var y=a(1,u.length-1);f>1&&t.remove(s.line+1,f-1),t.insert(s.line+1,y)}hn(t,"change",t,e)}function zi(t,e,n){!function t(r,i,o){if(r.linked)for(var a=0;a<r.linked.length;++a){var s=r.linked[a];if(s.doc!=i){var l=o&&s.sharedHist;n&&!l||(e(s.doc,l),t(s.doc,r,l))}}}(t,null,!0)}function Zi(t,e){if(e.cm)throw new Error("This document is already in use.");t.doc=e,e.cm=t,hr(t),Li(t),ji(t),t.options.direction=e.direction,t.options.lineWrapping||Xe(t),t.options.mode=e.modeOption,fr(t)}function ji(t){("rtl"==t.doc.direction?L:A)(t.display.lineDiv,"CodeMirror-rtl")}function Gi(t){this.done=[],this.undone=[],this.undoDepth=t?t.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=t?t.maxGeneration:1}function Bi(t,e){var n={from:ae(e.from),to:Mi(e),text:Yt(t,e.from,e.to)};return Hi(t,n,e.from.line,e.to.line+1),zi(t,(function(t){return Hi(t,n,e.from.line,e.to.line+1)}),!0),n}function Ui(t){for(;t.length&&Q(t).ranges;)t.pop()}function Vi(t,e,n,r){var i=t.history;i.undone.length=0;var o,a,s=+new Date;if((i.lastOp==r||i.lastOrigin==e.origin&&e.origin&&("+"==e.origin.charAt(0)&&i.lastModTime>s-(t.cm?t.cm.options.historyEventDelay:500)||"*"==e.origin.charAt(0)))&&(o=function(t,e){return e?(Ui(t.done),Q(t.done)):t.done.length&&!Q(t.done).ranges?Q(t.done):t.done.length>1&&!t.done[t.done.length-2].ranges?(t.done.pop(),Q(t.done)):void 0}(i,i.lastOp==r)))a=Q(o.changes),0==ie(e.from,e.to)&&0==ie(e.from,a.to)?a.to=Mi(e):o.changes.push(Bi(t,e));else{var l=Q(i.done);for(l&&l.ranges||Wi(t.sel,i.done),o={changes:[Bi(t,e)],generation:i.generation},i.done.push(o);i.done.length>i.undoDepth;)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(n),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=s,i.lastOp=i.lastSelOp=r,i.lastOrigin=i.lastSelOrigin=e.origin,a||yt(t,"historyAdded")}function qi(t,e,n,r){var i=t.history,o=r&&r.origin;n==i.lastSelOp||o&&i.lastSelOrigin==o&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==o||function(t,e,n,r){var i=e.charAt(0);return"*"==i||"+"==i&&n.ranges.length==r.ranges.length&&n.somethingSelected()==r.somethingSelected()&&new Date-t.history.lastSelTime<=(t.cm?t.cm.options.historyEventDelay:500)}(t,o,Q(i.done),e))?i.done[i.done.length-1]=e:Wi(e,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=o,i.lastSelOp=n,r&&!1!==r.clearRedo&&Ui(i.undone)}function Wi(t,e){var n=Q(e);n&&n.ranges&&n.equals(t)||e.push(t)}function Hi(t,e,n,r){var i=e["spans_"+t.id],o=0;t.iter(Math.max(t.first,n),Math.min(t.first+t.size,r),(function(n){n.markedSpans&&((i||(i=e["spans_"+t.id]={}))[o]=n.markedSpans),++o}))}function Xi(t){if(!t)return null;for(var e,n=0;n<t.length;++n)t[n].marker.explicitlyCleared?e||(e=t.slice(0,n)):e&&e.push(t[n]);return e?e.length?e:null:t}function Ki(t,e){var n=function(t,e){var n=e["spans_"+t.id];if(!n)return null;for(var r=[],i=0;i<e.text.length;++i)r.push(Xi(n[i]));return r}(t,e),r=Te(t,e);if(!n)return r;if(!r)return n;for(var i=0;i<n.length;++i){var o=n[i],a=r[i];if(o&&a)t:for(var s=0;s<a.length;++s){for(var l=a[s],u=0;u<o.length;++u)if(o[u].marker==l.marker)continue t;o.push(l)}else a&&(n[i]=a)}return n}function Yi(t,e,n){for(var r=[],i=0;i<t.length;++i){var o=t[i];if(o.ranges)r.push(n?ki.prototype.deepCopy.call(o):o);else{var a=o.changes,s=[];r.push({changes:s});for(var l=0;l<a.length;++l){var u=a[l],c=void 0;if(s.push({from:u.from,to:u.to,text:u.text}),e)for(var h in u)(c=h.match(/^spans_(\d+)$/))&&U(e,Number(c[1]))>-1&&(Q(s)[h]=u[h],delete u[h])}}}return r}function Qi(t,e,n,r){if(r){var i=t.anchor;if(n){var o=ie(e,i)<0;o!=ie(n,i)<0?(i=e,e=n):o!=ie(e,n)<0&&(e=n)}return new Ai(i,e)}return new Ai(n||e,e)}function $i(t,e,n,r,i){null==i&&(i=t.cm&&(t.cm.display.shift||t.extend)),ro(t,new ki([Qi(t.sel.primary(),e,n,i)],0),r)}function Ji(t,e,n){for(var r=[],i=t.cm&&(t.cm.display.shift||t.extend),o=0;o<t.sel.ranges.length;o++)r[o]=Qi(t.sel.ranges[o],e[o],null,i);ro(t,Pi(t.cm,r,t.sel.primIndex),n)}function to(t,e,n,r){var i=t.sel.ranges.slice(0);i[e]=n,ro(t,Pi(t.cm,i,t.sel.primIndex),r)}function eo(t,e,n,r){ro(t,Ti(e,n),r)}function no(t,e,n){var r=t.history.done,i=Q(r);i&&i.ranges?(r[r.length-1]=e,io(t,e,n)):ro(t,e,n)}function ro(t,e,n){io(t,e,n),qi(t,t.sel,t.cm?t.cm.curOp.id:NaN,n)}function io(t,e,n){(bt(t,"beforeSelectionChange")||t.cm&&bt(t.cm,"beforeSelectionChange"))&&(e=function(t,e,n){var r={ranges:e.ranges,update:function(e){this.ranges=[];for(var n=0;n<e.length;n++)this.ranges[n]=new Ai(ce(t,e[n].anchor),ce(t,e[n].head))},origin:n&&n.origin};return yt(t,"beforeSelectionChange",t,r),t.cm&&yt(t.cm,"beforeSelectionChange",t.cm,r),r.ranges!=e.ranges?Pi(t.cm,r.ranges,r.ranges.length-1):e}(t,e,n));var r=n&&n.bias||(ie(e.primary().head,t.sel.primary().head)<0?-1:1);oo(t,so(t,e,r,!0)),n&&!1===n.scroll||!t.cm||"nocursor"==t.cm.getOption("readOnly")||Lr(t.cm)}function oo(t,e){e.equals(t.sel)||(t.sel=e,t.cm&&(t.cm.curOp.updateInput=1,t.cm.curOp.selectionChanged=!0,_t(t.cm)),hn(t,"cursorActivity",t))}function ao(t){oo(t,so(t,t.sel,null,!1))}function so(t,e,n,r){for(var i,o=0;o<e.ranges.length;o++){var a=e.ranges[o],s=e.ranges.length==t.sel.ranges.length&&t.sel.ranges[o],l=uo(t,a.anchor,s&&s.anchor,n,r),u=a.head==a.anchor?l:uo(t,a.head,s&&s.head,n,r);(i||l!=a.anchor||u!=a.head)&&(i||(i=e.ranges.slice(0,o)),i[o]=new Ai(l,u))}return i?Pi(t.cm,i,e.primIndex):e}function lo(t,e,n,r,i){var o=Kt(t,e.line);if(o.markedSpans)for(var a=0;a<o.markedSpans.length;++a){var s=o.markedSpans[a],l=s.marker,u="selectLeft"in l?!l.selectLeft:l.inclusiveLeft,c="selectRight"in l?!l.selectRight:l.inclusiveRight;if((null==s.from||(u?s.from<=e.ch:s.from<e.ch))&&(null==s.to||(c?s.to>=e.ch:s.to>e.ch))){if(i&&(yt(l,"beforeCursorEnter"),l.explicitlyCleared)){if(o.markedSpans){--a;continue}break}if(!l.atomic)continue;if(n){var h=l.find(r<0?1:-1),p=void 0;if((r<0?c:u)&&(h=co(t,h,-r,h&&h.line==e.line?o:null)),h&&h.line==e.line&&(p=ie(h,n))&&(r<0?p<0:p>0))return lo(t,h,e,r,i)}var d=l.find(r<0?-1:1);return(r<0?u:c)&&(d=co(t,d,r,d.line==e.line?o:null)),d?lo(t,d,e,r,i):null}}return e}function uo(t,e,n,r,i){var o=r||1;return lo(t,e,n,o,i)||!i&&lo(t,e,n,o,!0)||lo(t,e,n,-o,i)||!i&&lo(t,e,n,-o,!0)||(t.cantEdit=!0,re(t.first,0))}function co(t,e,n,r){return n<0&&0==e.ch?e.line>t.first?ce(t,re(e.line-1)):null:n>0&&e.ch==(r||Kt(t,e.line)).text.length?e.line<t.first+t.size-1?re(e.line+1,0):null:new re(e.line,e.ch+n)}function ho(t){t.setSelection(re(t.firstLine(),0),re(t.lastLine()),q)}function po(t,e,n){var r={canceled:!1,from:e.from,to:e.to,text:e.text,origin:e.origin,cancel:function(){return r.canceled=!0}};return n&&(r.update=function(e,n,i,o){e&&(r.from=ce(t,e)),n&&(r.to=ce(t,n)),i&&(r.text=i),void 0!==o&&(r.origin=o)}),yt(t,"beforeChange",t,r),t.cm&&yt(t.cm,"beforeChange",t.cm,r),r.canceled?(t.cm&&(t.cm.curOp.updateInput=2),null):{from:r.from,to:r.to,text:r.text,origin:r.origin}}function fo(t,e,n){if(t.cm){if(!t.cm.curOp)return ri(t.cm,fo)(t,e,n);if(t.cm.state.suppressEdits)return}if(!(bt(t,"beforeChange")||t.cm&&bt(t.cm,"beforeChange"))||(e=po(t,e,!0))){var r=Ce&&!n&&function(t,e,n){var r=null;if(t.iter(e.line,n.line+1,(function(t){if(t.markedSpans)for(var e=0;e<t.markedSpans.length;++e){var n=t.markedSpans[e].marker;!n.readOnly||r&&-1!=U(r,n)||(r||(r=[])).push(n)}})),!r)return null;for(var i=[{from:e,to:n}],o=0;o<r.length;++o)for(var a=r[o],s=a.find(0),l=0;l<i.length;++l){var u=i[l];if(!(ie(u.to,s.from)<0||ie(u.from,s.to)>0)){var c=[l,1],h=ie(u.from,s.from),p=ie(u.to,s.to);(h<0||!a.inclusiveLeft&&!h)&&c.push({from:u.from,to:s.from}),(p>0||!a.inclusiveRight&&!p)&&c.push({from:s.to,to:u.to}),i.splice.apply(i,c),l+=c.length-3}}return i}(t,e.from,e.to);if(r)for(var i=r.length-1;i>=0;--i)go(t,{from:r[i].from,to:r[i].to,text:i?[""]:e.text,origin:e.origin});else go(t,e)}}function go(t,e){if(1!=e.text.length||""!=e.text[0]||0!=ie(e.from,e.to)){var n=Ri(t,e);Vi(t,e,n,t.cm?t.cm.curOp.id:NaN),vo(t,e,n,Te(t,e));var r=[];zi(t,(function(t,n){n||-1!=U(r,t.history)||(xo(t.history,e),r.push(t.history)),vo(t,e,null,Te(t,e))}))}}function mo(t,e,n){var r=t.cm&&t.cm.state.suppressEdits;if(!r||n){for(var i,o=t.history,a=t.sel,s="undo"==e?o.done:o.undone,l="undo"==e?o.undone:o.done,u=0;u<s.length&&(i=s[u],n?!i.ranges||i.equals(t.sel):i.ranges);u++);if(u!=s.length){for(o.lastOrigin=o.lastSelOrigin=null;;){if(!(i=s.pop()).ranges){if(r)return void s.push(i);break}if(Wi(i,l),n&&!i.equals(t.sel))return void ro(t,i,{clearRedo:!1});a=i}var c=[];Wi(a,l),l.push({changes:c,generation:o.generation}),o.generation=i.generation||++o.maxGeneration;for(var h=bt(t,"beforeChange")||t.cm&&bt(t.cm,"beforeChange"),p=function(n){var r=i.changes[n];if(r.origin=e,h&&!po(t,r,!1))return s.length=0,{};c.push(Bi(t,r));var o=n?Ri(t,r):Q(s);vo(t,r,o,Ki(t,r)),!n&&t.cm&&t.cm.scrollIntoView({from:r.from,to:Mi(r)});var a=[];zi(t,(function(t,e){e||-1!=U(a,t.history)||(xo(t.history,r),a.push(t.history)),vo(t,r,null,Ki(t,r))}))},d=i.changes.length-1;d>=0;--d){var f=p(d);if(f)return f.v}}}}function yo(t,e){if(0!=e&&(t.first+=e,t.sel=new ki($(t.sel.ranges,(function(t){return new Ai(re(t.anchor.line+e,t.anchor.ch),re(t.head.line+e,t.head.ch))})),t.sel.primIndex),t.cm)){fr(t.cm,t.first,t.first-e,e);for(var n=t.cm.display,r=n.viewFrom;r<n.viewTo;r++)gr(t.cm,r,"gutter")}}function vo(t,e,n,r){if(t.cm&&!t.cm.curOp)return ri(t.cm,vo)(t,e,n,r);if(e.to.line<t.first)yo(t,e.text.length-1-(e.to.line-e.from.line));else if(!(e.from.line>t.lastLine())){if(e.from.line<t.first){var i=e.text.length-1-(t.first-e.from.line);yo(t,i),e={from:re(t.first,0),to:re(e.to.line+i,e.to.ch),text:[Q(e.text)],origin:e.origin}}var o=t.lastLine();e.to.line>o&&(e={from:e.from,to:re(o,Kt(t,o).text.length),text:[e.text[0]],origin:e.origin}),e.removed=Yt(t,e.from,e.to),n||(n=Ri(t,e)),t.cm?function(t,e,n){var r=t.doc,i=t.display,o=e.from,a=e.to,s=!1,l=o.line;t.options.lineWrapping||(l=Jt(Ge(Kt(r,o.line))),r.iter(l,a.line+1,(function(t){if(t==i.maxLine)return s=!0,!0}))),r.sel.contains(e.from,e.to)>-1&&_t(t),Di(r,e,n,cr(t)),t.options.lineWrapping||(r.iter(l,o.line+e.text.length,(function(t){var e=He(t);e>i.maxLineLength&&(i.maxLine=t,i.maxLineLength=e,i.maxLineChanged=!0,s=!1)})),s&&(t.curOp.updateMaxLine=!0)),function(t,e){if(t.modeFrontier=Math.min(t.modeFrontier,e),!(t.highlightFrontier<e-10)){for(var n=t.first,r=e-1;r>n;r--){var i=Kt(t,r).stateAfter;if(i&&(!(i instanceof pe)||r+i.lookAhead<e)){n=r+1;break}}t.highlightFrontier=Math.min(t.highlightFrontier,n)}}(r,o.line),ai(t,400);var u=e.text.length-(a.line-o.line)-1;e.full?fr(t):o.line!=a.line||1!=e.text.length||Ni(t.doc,e)?fr(t,o.line,a.line+1,u):gr(t,o.line,"text");var c=bt(t,"changes"),h=bt(t,"change");if(h||c){var p={from:o,to:a,text:e.text,removed:e.removed,origin:e.origin};h&&hn(t,"change",t,p),c&&(t.curOp.changeObjs||(t.curOp.changeObjs=[])).push(p)}t.display.selForContextMenu=null}(t.cm,e,r):Di(t,e,r),io(t,n,q),t.cantEdit&&uo(t,re(t.firstLine(),0))&&(t.cantEdit=!1)}}function _o(t,e,n,r,i){var o;r||(r=n),ie(r,n)<0&&(n=(o=[r,n])[0],r=o[1]),"string"==typeof e&&(e=t.splitLines(e)),fo(t,{from:n,to:r,text:e,origin:i})}function bo(t,e,n,r){n<t.line?t.line+=r:e<t.line&&(t.line=e,t.ch=0)}function wo(t,e,n,r){for(var i=0;i<t.length;++i){var o=t[i],a=!0;if(o.ranges){o.copied||((o=t[i]=o.deepCopy()).copied=!0);for(var s=0;s<o.ranges.length;s++)bo(o.ranges[s].anchor,e,n,r),bo(o.ranges[s].head,e,n,r)}else{for(var l=0;l<o.changes.length;++l){var u=o.changes[l];if(n<u.from.line)u.from=re(u.from.line+r,u.from.ch),u.to=re(u.to.line+r,u.to.ch);else if(e<=u.to.line){a=!1;break}}a||(t.splice(0,i+1),i=0)}}}function xo(t,e){var n=e.from.line,r=e.to.line,i=e.text.length-(r-n)-1;wo(t.done,n,r,i),wo(t.undone,n,r,i)}function So(t,e,n,r){var i=e,o=e;return"number"==typeof e?o=Kt(t,ue(t,e)):i=Jt(e),null==i?null:(r(o,i)&&t.cm&&gr(t.cm,i,n),o)}function Co(t){this.lines=t,this.parent=null;for(var e=0,n=0;n<t.length;++n)t[n].parent=this,e+=t[n].height;this.height=e}function Eo(t){this.children=t;for(var e=0,n=0,r=0;r<t.length;++r){var i=t[r];e+=i.chunkSize(),n+=i.height,i.parent=this}this.size=e,this.height=n,this.parent=null}Ai.prototype.from=function(){return le(this.anchor,this.head)},Ai.prototype.to=function(){return se(this.anchor,this.head)},Ai.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch},Co.prototype={chunkSize:function(){return this.lines.length},removeInner:function(t,e){for(var n=t,r=t+e;n<r;++n){var i=this.lines[n];this.height-=i.height,Ye(i),hn(i,"delete")}this.lines.splice(t,e)},collapse:function(t){t.push.apply(t,this.lines)},insertInner:function(t,e,n){this.height+=n,this.lines=this.lines.slice(0,t).concat(e).concat(this.lines.slice(t));for(var r=0;r<e.length;++r)e[r].parent=this},iterN:function(t,e,n){for(var r=t+e;t<r;++t)if(n(this.lines[t]))return!0}},Eo.prototype={chunkSize:function(){return this.size},removeInner:function(t,e){this.size-=e;for(var n=0;n<this.children.length;++n){var r=this.children[n],i=r.chunkSize();if(t<i){var o=Math.min(e,i-t),a=r.height;if(r.removeInner(t,o),this.height-=a-r.height,i==o&&(this.children.splice(n--,1),r.parent=null),0==(e-=o))break;t=0}else t-=i}if(this.size-e<25&&(this.children.length>1||!(this.children[0]instanceof Co))){var s=[];this.collapse(s),this.children=[new Co(s)],this.children[0].parent=this}},collapse:function(t){for(var e=0;e<this.children.length;++e)this.children[e].collapse(t)},insertInner:function(t,e,n){this.size+=e.length,this.height+=n;for(var r=0;r<this.children.length;++r){var i=this.children[r],o=i.chunkSize();if(t<=o){if(i.insertInner(t,e,n),i.lines&&i.lines.length>50){for(var a=i.lines.length%25+25,s=a;s<i.lines.length;){var l=new Co(i.lines.slice(s,s+=25));i.height-=l.height,this.children.splice(++r,0,l),l.parent=this}i.lines=i.lines.slice(0,a),this.maybeSpill()}break}t-=o}},maybeSpill:function(){if(!(this.children.length<=10)){var t=this;do{var e=new Eo(t.children.splice(t.children.length-5,5));if(t.parent){t.size-=e.size,t.height-=e.height;var n=U(t.parent.children,t);t.parent.children.splice(n+1,0,e)}else{var r=new Eo(t.children);r.parent=t,t.children=[r,e],t=r}e.parent=t.parent}while(t.children.length>10);t.parent.maybeSpill()}},iterN:function(t,e,n){for(var r=0;r<this.children.length;++r){var i=this.children[r],o=i.chunkSize();if(t<o){var a=Math.min(e,o-t);if(i.iterN(t,a,n))return!0;if(0==(e-=a))break;t=0}else t-=o}}};var ko=function(t,e,n){if(n)for(var r in n)n.hasOwnProperty(r)&&(this[r]=n[r]);this.doc=t,this.node=e};function Ao(t,e,n){We(e)<(t.curOp&&t.curOp.scrollTop||t.doc.scrollTop)&&Ir(t,n)}ko.prototype.clear=function(){var t=this.doc.cm,e=this.line.widgets,n=this.line,r=Jt(n);if(null!=r&&e){for(var i=0;i<e.length;++i)e[i]==this&&e.splice(i--,1);e.length||(n.widgets=null);var o=Cn(this);$t(n,Math.max(0,n.height-o)),t&&(ni(t,(function(){Ao(t,n,-o),gr(t,r,"widget")})),hn(t,"lineWidgetCleared",t,this,r))}},ko.prototype.changed=function(){var t=this,e=this.height,n=this.doc.cm,r=this.line;this.height=null;var i=Cn(this)-e;i&&(Ve(this.doc,r)||$t(r,r.height+i),n&&ni(n,(function(){n.curOp.forceUpdate=!0,Ao(n,r,i),hn(n,"lineWidgetChanged",n,t,Jt(r))})))},wt(ko);var Po=0,To=function(t,e){this.lines=[],this.type=e,this.doc=t,this.id=++Po};function Mo(t,e,n,r,i){if(r&&r.shared)return function(t,e,n,r,i){(r=j(r)).shared=!1;var o=[Mo(t,e,n,r,i)],a=o[0],s=r.widgetNode;return zi(t,(function(t){s&&(r.widgetNode=s.cloneNode(!0)),o.push(Mo(t,ce(t,e),ce(t,n),r,i));for(var l=0;l<t.linked.length;++l)if(t.linked[l].isParent)return;a=Q(o)})),new Oo(o,a)}(t,e,n,r,i);if(t.cm&&!t.cm.curOp)return ri(t.cm,Mo)(t,e,n,r,i);var o=new To(t,i),a=ie(e,n);if(r&&j(r,o,!1),a>0||0==a&&!1!==o.clearWhenEmpty)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=O("span",[o.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(je(t,e.line,e,n,o)||e.line!=n.line&&je(t,n.line,e,n,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");Ee=!0}o.addToHistory&&Vi(t,{from:e,to:n,origin:"markText"},t.sel,NaN);var s,l=e.line,u=t.cm;if(t.iter(l,n.line+1,(function(r){u&&o.collapsed&&!u.options.lineWrapping&&Ge(r)==u.display.maxLine&&(s=!0),o.collapsed&&l!=e.line&&$t(r,0),function(t,e,n){var r=n&&window.WeakSet&&(n.markedSpans||(n.markedSpans=new WeakSet));r&&t.markedSpans&&r.has(t.markedSpans)?t.markedSpans.push(e):(t.markedSpans=t.markedSpans?t.markedSpans.concat([e]):[e],r&&r.add(t.markedSpans)),e.marker.attachLine(t)}(r,new ke(o,l==e.line?e.ch:null,l==n.line?n.ch:null),t.cm&&t.cm.curOp),++l})),o.collapsed&&t.iter(e.line,n.line+1,(function(e){Ve(t,e)&&$t(e,0)})),o.clearOnEnter&&ft(o,"beforeCursorEnter",(function(){return o.clear()})),o.readOnly&&(Ce=!0,(t.history.done.length||t.history.undone.length)&&t.clearHistory()),o.collapsed&&(o.id=++Po,o.atomic=!0),u){if(s&&(u.curOp.updateMaxLine=!0),o.collapsed)fr(u,e.line,n.line+1);else if(o.className||o.startStyle||o.endStyle||o.css||o.attributes||o.title)for(var c=e.line;c<=n.line;c++)gr(u,c,"text");o.atomic&&ao(u.doc),hn(u,"markerAdded",u,o)}return o}To.prototype.clear=function(){if(!this.explicitlyCleared){var t=this.doc.cm,e=t&&!t.curOp;if(e&&Kr(t),bt(this,"clear")){var n=this.find();n&&hn(this,"clear",n.from,n.to)}for(var r=null,i=null,o=0;o<this.lines.length;++o){var a=this.lines[o],s=Ae(a.markedSpans,this);t&&!this.collapsed?gr(t,Jt(a),"text"):t&&(null!=s.to&&(i=Jt(a)),null!=s.from&&(r=Jt(a))),a.markedSpans=Pe(a.markedSpans,s),null==s.from&&this.collapsed&&!Ve(this.doc,a)&&t&&$t(a,ar(t.display))}if(t&&this.collapsed&&!t.options.lineWrapping)for(var l=0;l<this.lines.length;++l){var u=Ge(this.lines[l]),c=He(u);c>t.display.maxLineLength&&(t.display.maxLine=u,t.display.maxLineLength=c,t.display.maxLineChanged=!0)}null!=r&&t&&this.collapsed&&fr(t,r,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,t&&ao(t.doc)),t&&hn(t,"markerCleared",t,this,r,i),e&&Yr(t),this.parent&&this.parent.clear()}},To.prototype.find=function(t,e){var n,r;null==t&&"bookmark"==this.type&&(t=1);for(var i=0;i<this.lines.length;++i){var o=this.lines[i],a=Ae(o.markedSpans,this);if(null!=a.from&&(n=re(e?o:Jt(o),a.from),-1==t))return n;if(null!=a.to&&(r=re(e?o:Jt(o),a.to),1==t))return r}return n&&{from:n,to:r}},To.prototype.changed=function(){var t=this,e=this.find(-1,!0),n=this,r=this.doc.cm;e&&r&&ni(r,(function(){var i=e.line,o=Jt(e.line),a=Ln(r,o);if(a&&(Gn(a),r.curOp.selectionChanged=r.curOp.forceUpdate=!0),r.curOp.updateMaxLine=!0,!Ve(n.doc,i)&&null!=n.height){var s=n.height;n.height=null;var l=Cn(n)-s;l&&$t(i,i.height+l)}hn(r,"markerChanged",r,t)}))},To.prototype.attachLine=function(t){if(!this.lines.length&&this.doc.cm){var e=this.doc.cm.curOp;e.maybeHiddenMarkers&&-1!=U(e.maybeHiddenMarkers,this)||(e.maybeUnhiddenMarkers||(e.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(t)},To.prototype.detachLine=function(t){if(this.lines.splice(U(this.lines,t),1),!this.lines.length&&this.doc.cm){var e=this.doc.cm.curOp;(e.maybeHiddenMarkers||(e.maybeHiddenMarkers=[])).push(this)}},wt(To);var Oo=function(t,e){this.markers=t,this.primary=e;for(var n=0;n<t.length;++n)t[n].parent=this};function Ro(t){return t.findMarks(re(t.first,0),t.clipPos(re(t.lastLine())),(function(t){return t.parent}))}function Io(t){for(var e=function(e){var n=t[e],r=[n.primary.doc];zi(n.primary.doc,(function(t){return r.push(t)}));for(var i=0;i<n.markers.length;i++){var o=n.markers[i];-1==U(r,o.doc)&&(o.parent=null,n.markers.splice(i--,1))}},n=0;n<t.length;n++)e(n)}Oo.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var t=0;t<this.markers.length;++t)this.markers[t].clear();hn(this,"clear")}},Oo.prototype.find=function(t,e){return this.primary.find(t,e)},wt(Oo);var Lo=0,Fo=function(t,e,n,r,i){if(!(this instanceof Fo))return new Fo(t,e,n,r,i);null==n&&(n=0),Eo.call(this,[new Co([new Ke("",null)])]),this.first=n,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=n;var o=re(n,0);this.sel=Ti(o),this.history=new Gi(null),this.id=++Lo,this.modeOption=e,this.lineSep=r,this.direction="rtl"==i?"rtl":"ltr",this.extend=!1,"string"==typeof t&&(t=this.splitLines(t)),Di(this,{from:o,to:o,text:t}),ro(this,Ti(o),q)};Fo.prototype=tt(Eo.prototype,{constructor:Fo,iter:function(t,e,n){n?this.iterN(t-this.first,e-t,n):this.iterN(this.first,this.first+this.size,t)},insert:function(t,e){for(var n=0,r=0;r<e.length;++r)n+=e[r].height;this.insertInner(t-this.first,e,n)},remove:function(t,e){this.removeInner(t-this.first,e)},getValue:function(t){var e=Qt(this,this.first,this.first+this.size);return!1===t?e:e.join(t||this.lineSeparator())},setValue:oi((function(t){var e=re(this.first,0),n=this.first+this.size-1;fo(this,{from:e,to:re(n,Kt(this,n).text.length),text:this.splitLines(t),origin:"setValue",full:!0},!0),this.cm&&Fr(this.cm,0,0),ro(this,Ti(e),q)})),replaceRange:function(t,e,n,r){_o(this,t,e=ce(this,e),n=n?ce(this,n):e,r)},getRange:function(t,e,n){var r=Yt(this,ce(this,t),ce(this,e));return!1===n?r:""===n?r.join(""):r.join(n||this.lineSeparator())},getLine:function(t){var e=this.getLineHandle(t);return e&&e.text},getLineHandle:function(t){if(ee(this,t))return Kt(this,t)},getLineNumber:function(t){return Jt(t)},getLineHandleVisualStart:function(t){return"number"==typeof t&&(t=Kt(this,t)),Ge(t)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(t){return ce(this,t)},getCursor:function(t){var e=this.sel.primary();return null==t||"head"==t?e.head:"anchor"==t?e.anchor:"end"==t||"to"==t||!1===t?e.to():e.from()},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:oi((function(t,e,n){eo(this,ce(this,"number"==typeof t?re(t,e||0):t),null,n)})),setSelection:oi((function(t,e,n){eo(this,ce(this,t),ce(this,e||t),n)})),extendSelection:oi((function(t,e,n){$i(this,ce(this,t),e&&ce(this,e),n)})),extendSelections:oi((function(t,e){Ji(this,he(this,t),e)})),extendSelectionsBy:oi((function(t,e){Ji(this,he(this,$(this.sel.ranges,t)),e)})),setSelections:oi((function(t,e,n){if(t.length){for(var r=[],i=0;i<t.length;i++)r[i]=new Ai(ce(this,t[i].anchor),ce(this,t[i].head||t[i].anchor));null==e&&(e=Math.min(t.length-1,this.sel.primIndex)),ro(this,Pi(this.cm,r,e),n)}})),addSelection:oi((function(t,e,n){var r=this.sel.ranges.slice(0);r.push(new Ai(ce(this,t),ce(this,e||t))),ro(this,Pi(this.cm,r,r.length-1),n)})),getSelection:function(t){for(var e,n=this.sel.ranges,r=0;r<n.length;r++){var i=Yt(this,n[r].from(),n[r].to());e=e?e.concat(i):i}return!1===t?e:e.join(t||this.lineSeparator())},getSelections:function(t){for(var e=[],n=this.sel.ranges,r=0;r<n.length;r++){var i=Yt(this,n[r].from(),n[r].to());!1!==t&&(i=i.join(t||this.lineSeparator())),e[r]=i}return e},replaceSelection:function(t,e,n){for(var r=[],i=0;i<this.sel.ranges.length;i++)r[i]=t;this.replaceSelections(r,e,n||"+input")},replaceSelections:oi((function(t,e,n){for(var r=[],i=this.sel,o=0;o<i.ranges.length;o++){var a=i.ranges[o];r[o]={from:a.from(),to:a.to(),text:this.splitLines(t[o]),origin:n}}for(var s=e&&"end"!=e&&function(t,e,n){for(var r=[],i=re(t.first,0),o=i,a=0;a<e.length;a++){var s=e[a],l=Ii(s.from,i,o),u=Ii(Mi(s),i,o);if(i=s.to,o=u,"around"==n){var c=t.sel.ranges[a],h=ie(c.head,c.anchor)<0;r[a]=new Ai(h?u:l,h?l:u)}else r[a]=new Ai(l,l)}return new ki(r,t.sel.primIndex)}(this,r,e),l=r.length-1;l>=0;l--)fo(this,r[l]);s?no(this,s):this.cm&&Lr(this.cm)})),undo:oi((function(){mo(this,"undo")})),redo:oi((function(){mo(this,"redo")})),undoSelection:oi((function(){mo(this,"undo",!0)})),redoSelection:oi((function(){mo(this,"redo",!0)})),setExtending:function(t){this.extend=t},getExtending:function(){return this.extend},historySize:function(){for(var t=this.history,e=0,n=0,r=0;r<t.done.length;r++)t.done[r].ranges||++e;for(var i=0;i<t.undone.length;i++)t.undone[i].ranges||++n;return{undo:e,redo:n}},clearHistory:function(){var t=this;this.history=new Gi(this.history),zi(this,(function(e){return e.history=t.history}),!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(t){return t&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(t){return this.history.generation==(t||this.cleanGeneration)},getHistory:function(){return{done:Yi(this.history.done),undone:Yi(this.history.undone)}},setHistory:function(t){var e=this.history=new Gi(this.history);e.done=Yi(t.done.slice(0),null,!0),e.undone=Yi(t.undone.slice(0),null,!0)},setGutterMarker:oi((function(t,e,n){return So(this,t,"gutter",(function(t){var r=t.gutterMarkers||(t.gutterMarkers={});return r[e]=n,!n&&it(r)&&(t.gutterMarkers=null),!0}))})),clearGutter:oi((function(t){var e=this;this.iter((function(n){n.gutterMarkers&&n.gutterMarkers[t]&&So(e,n,"gutter",(function(){return n.gutterMarkers[t]=null,it(n.gutterMarkers)&&(n.gutterMarkers=null),!0}))}))})),lineInfo:function(t){var e;if("number"==typeof t){if(!ee(this,t))return null;if(e=t,!(t=Kt(this,t)))return null}else if(null==(e=Jt(t)))return null;return{line:e,handle:t,text:t.text,gutterMarkers:t.gutterMarkers,textClass:t.textClass,bgClass:t.bgClass,wrapClass:t.wrapClass,widgets:t.widgets}},addLineClass:oi((function(t,e,n){return So(this,t,"gutter"==e?"gutter":"class",(function(t){var r="text"==e?"textClass":"background"==e?"bgClass":"gutter"==e?"gutterClass":"wrapClass";if(t[r]){if(E(n).test(t[r]))return!1;t[r]+=" "+n}else t[r]=n;return!0}))})),removeLineClass:oi((function(t,e,n){return So(this,t,"gutter"==e?"gutter":"class",(function(t){var r="text"==e?"textClass":"background"==e?"bgClass":"gutter"==e?"gutterClass":"wrapClass",i=t[r];if(!i)return!1;if(null==n)t[r]=null;else{var o=i.match(E(n));if(!o)return!1;var a=o.index+o[0].length;t[r]=i.slice(0,o.index)+(o.index&&a!=i.length?" ":"")+i.slice(a)||null}return!0}))})),addLineWidget:oi((function(t,e,n){return function(t,e,n,r){var i=new ko(t,n,r),o=t.cm;return o&&i.noHScroll&&(o.display.alignWidgets=!0),So(t,e,"widget",(function(e){var n=e.widgets||(e.widgets=[]);if(null==i.insertAt?n.push(i):n.splice(Math.min(n.length,Math.max(0,i.insertAt)),0,i),i.line=e,o&&!Ve(t,e)){var r=We(e)<t.scrollTop;$t(e,e.height+Cn(i)),r&&Ir(o,i.height),o.curOp.forceUpdate=!0}return!0})),o&&hn(o,"lineWidgetAdded",o,i,"number"==typeof e?e:Jt(e)),i}(this,t,e,n)})),removeLineWidget:function(t){t.clear()},markText:function(t,e,n){return Mo(this,ce(this,t),ce(this,e),n,n&&n.type||"range")},setBookmark:function(t,e){var n={replacedWith:e&&(null==e.nodeType?e.widget:e),insertLeft:e&&e.insertLeft,clearWhenEmpty:!1,shared:e&&e.shared,handleMouseEvents:e&&e.handleMouseEvents};return Mo(this,t=ce(this,t),t,n,"bookmark")},findMarksAt:function(t){var e=[],n=Kt(this,(t=ce(this,t)).line).markedSpans;if(n)for(var r=0;r<n.length;++r){var i=n[r];(null==i.from||i.from<=t.ch)&&(null==i.to||i.to>=t.ch)&&e.push(i.marker.parent||i.marker)}return e},findMarks:function(t,e,n){t=ce(this,t),e=ce(this,e);var r=[],i=t.line;return this.iter(t.line,e.line+1,(function(o){var a=o.markedSpans;if(a)for(var s=0;s<a.length;s++){var l=a[s];null!=l.to&&i==t.line&&t.ch>=l.to||null==l.from&&i!=t.line||null!=l.from&&i==e.line&&l.from>=e.ch||n&&!n(l.marker)||r.push(l.marker.parent||l.marker)}++i})),r},getAllMarks:function(){var t=[];return this.iter((function(e){var n=e.markedSpans;if(n)for(var r=0;r<n.length;++r)null!=n[r].from&&t.push(n[r].marker)})),t},posFromIndex:function(t){var e,n=this.first,r=this.lineSeparator().length;return this.iter((function(i){var o=i.text.length+r;if(o>t)return e=t,!0;t-=o,++n})),ce(this,re(n,e))},indexFromPos:function(t){var e=(t=ce(this,t)).ch;if(t.line<this.first||t.ch<0)return 0;var n=this.lineSeparator().length;return this.iter(this.first,t.line,(function(t){e+=t.text.length+n})),e},copy:function(t){var e=new Fo(Qt(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return e.scrollTop=this.scrollTop,e.scrollLeft=this.scrollLeft,e.sel=this.sel,e.extend=!1,t&&(e.history.undoDepth=this.history.undoDepth,e.setHistory(this.getHistory())),e},linkedDoc:function(t){t||(t={});var e=this.first,n=this.first+this.size;null!=t.from&&t.from>e&&(e=t.from),null!=t.to&&t.to<n&&(n=t.to);var r=new Fo(Qt(this,e,n),t.mode||this.modeOption,e,this.lineSep,this.direction);return t.sharedHist&&(r.history=this.history),(this.linked||(this.linked=[])).push({doc:r,sharedHist:t.sharedHist}),r.linked=[{doc:this,isParent:!0,sharedHist:t.sharedHist}],function(t,e){for(var n=0;n<e.length;n++){var r=e[n],i=r.find(),o=t.clipPos(i.from),a=t.clipPos(i.to);if(ie(o,a)){var s=Mo(t,o,a,r.primary,r.primary.type);r.markers.push(s),s.parent=r}}}(r,Ro(this)),r},unlinkDoc:function(t){if(t instanceof Oa&&(t=t.doc),this.linked)for(var e=0;e<this.linked.length;++e)if(this.linked[e].doc==t){this.linked.splice(e,1),t.unlinkDoc(this),Io(Ro(this));break}if(t.history==this.history){var n=[t.id];zi(t,(function(t){return n.push(t.id)}),!0),t.history=new Gi(null),t.history.done=Yi(this.history.done,n),t.history.undone=Yi(this.history.undone,n)}},iterLinkedDocs:function(t){zi(this,t)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(t){return this.lineSep?t.split(this.lineSep):Lt(t)},lineSeparator:function(){return this.lineSep||"\n"},setDirection:oi((function(t){var e;"rtl"!=t&&(t="ltr"),t!=this.direction&&(this.direction=t,this.iter((function(t){return t.order=null})),this.cm&&ni(e=this.cm,(function(){ji(e),fr(e)})))}))}),Fo.prototype.eachLine=Fo.prototype.iter;var No=0;function Do(t){var e=this;if(zo(e),!vt(e,t)&&!En(e.display,t)){xt(t),a&&(No=+new Date);var n=pr(e,t,!0),r=t.dataTransfer.files;if(n&&!e.isReadOnly())if(r&&r.length&&window.FileReader&&window.File)for(var i=r.length,o=Array(i),s=0,l=function(){++s==i&&ri(e,(function(){var t={from:n=ce(e.doc,n),to:n,text:e.doc.splitLines(o.filter((function(t){return null!=t})).join(e.doc.lineSeparator())),origin:"paste"};fo(e.doc,t),no(e.doc,Ti(ce(e.doc,n),ce(e.doc,Mi(t))))}))()},u=function(t,n){if(e.options.allowDropFileTypes&&-1==U(e.options.allowDropFileTypes,t.type))l();else{var r=new FileReader;r.onerror=function(){return l()},r.onload=function(){var t=r.result;/[\x00-\x08\x0e-\x1f]{2}/.test(t)||(o[n]=t),l()},r.readAsText(t)}},c=0;c<r.length;c++)u(r[c],c);else{if(e.state.draggingText&&e.doc.sel.contains(n)>-1)return e.state.draggingText(t),void setTimeout((function(){return e.display.input.focus()}),20);try{var h=t.dataTransfer.getData("Text");if(h){var p;if(e.state.draggingText&&!e.state.draggingText.copy&&(p=e.listSelections()),io(e.doc,Ti(n,n)),p)for(var d=0;d<p.length;++d)_o(e.doc,"",p[d].anchor,p[d].head,"drag");e.replaceSelection(h,"around","paste"),e.display.input.focus()}}catch(t){}}}}function zo(t){t.display.dragCursor&&(t.display.lineSpace.removeChild(t.display.dragCursor),t.display.dragCursor=null)}function Zo(t){if(document.getElementsByClassName){for(var e=document.getElementsByClassName("CodeMirror"),n=[],r=0;r<e.length;r++){var i=e[r].CodeMirror;i&&n.push(i)}n.length&&n[0].operation((function(){for(var e=0;e<n.length;e++)t(n[e])}))}}var jo=!1;function Go(){var t;jo||(ft(window,"resize",(function(){null==t&&(t=setTimeout((function(){t=null,Zo(Bo)}),100))})),ft(window,"blur",(function(){return Zo(Pr)})),jo=!0)}function Bo(t){var e=t.display;e.cachedCharWidth=e.cachedTextHeight=e.cachedPaddingH=null,e.scrollbarsClipped=!1,t.setSize()}for(var Uo={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},Vo=0;Vo<10;Vo++)Uo[Vo+48]=Uo[Vo+96]=String(Vo);for(var qo=65;qo<=90;qo++)Uo[qo]=String.fromCharCode(qo);for(var Wo=1;Wo<=12;Wo++)Uo[Wo+111]=Uo[Wo+63235]="F"+Wo;var Ho={};function Xo(t){var e,n,r,i,o=t.split(/-(?!$)/);t=o[o.length-1];for(var a=0;a<o.length-1;a++){var s=o[a];if(/^(cmd|meta|m)$/i.test(s))i=!0;else if(/^a(lt)?$/i.test(s))e=!0;else if(/^(c|ctrl|control)$/i.test(s))n=!0;else{if(!/^s(hift)?$/i.test(s))throw new Error("Unrecognized modifier name: "+s);r=!0}}return e&&(t="Alt-"+t),n&&(t="Ctrl-"+t),i&&(t="Cmd-"+t),r&&(t="Shift-"+t),t}function Ko(t){var e={};for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];if(/^(name|fallthrough|(de|at)tach)$/.test(n))continue;if("..."==r){delete t[n];continue}for(var i=$(n.split(" "),Xo),o=0;o<i.length;o++){var a=void 0,s=void 0;o==i.length-1?(s=i.join(" "),a=r):(s=i.slice(0,o+1).join(" "),a="...");var l=e[s];if(l){if(l!=a)throw new Error("Inconsistent bindings for "+s)}else e[s]=a}delete t[n]}for(var u in e)t[u]=e[u];return t}function Yo(t,e,n,r){var i=(e=ta(e)).call?e.call(t,r):e[t];if(!1===i)return"nothing";if("..."===i)return"multi";if(null!=i&&n(i))return"handled";if(e.fallthrough){if("[object Array]"!=Object.prototype.toString.call(e.fallthrough))return Yo(t,e.fallthrough,n,r);for(var o=0;o<e.fallthrough.length;o++){var a=Yo(t,e.fallthrough[o],n,r);if(a)return a}}}function Qo(t){var e="string"==typeof t?t:Uo[t.keyCode];return"Ctrl"==e||"Alt"==e||"Shift"==e||"Mod"==e}function $o(t,e,n){var r=t;return e.altKey&&"Alt"!=r&&(t="Alt-"+t),(S?e.metaKey:e.ctrlKey)&&"Ctrl"!=r&&(t="Ctrl-"+t),(S?e.ctrlKey:e.metaKey)&&"Mod"!=r&&(t="Cmd-"+t),!n&&e.shiftKey&&"Shift"!=r&&(t="Shift-"+t),t}function Jo(t,e){if(p&&34==t.keyCode&&t.char)return!1;var n=Uo[t.keyCode];return null!=n&&!t.altGraphKey&&(3==t.keyCode&&t.code&&(n=t.code),$o(n,t,e))}function ta(t){return"string"==typeof t?Ho[t]:t}function ea(t,e){for(var n=t.doc.sel.ranges,r=[],i=0;i<n.length;i++){for(var o=e(n[i]);r.length&&ie(o.from,Q(r).to)<=0;){var a=r.pop();if(ie(a.from,o.from)<0){o.from=a.from;break}}r.push(o)}ni(t,(function(){for(var e=r.length-1;e>=0;e--)_o(t.doc,"",r[e].from,r[e].to,"+delete");Lr(t)}))}function na(t,e,n){var r=st(t.text,e+n,n);return r<0||r>t.text.length?null:r}function ra(t,e,n){var r=na(t,e.ch,n);return null==r?null:new re(e.line,r,n<0?"after":"before")}function ia(t,e,n,r,i){if(t){"rtl"==e.doc.direction&&(i=-i);var o=pt(n,e.doc.direction);if(o){var a,s=i<0?Q(o):o[0],l=i<0==(1==s.level)?"after":"before";if(s.level>0||"rtl"==e.doc.direction){var u=Fn(e,n);a=i<0?n.text.length-1:0;var c=Nn(e,u,a).top;a=lt((function(t){return Nn(e,u,t).top==c}),i<0==(1==s.level)?s.from:s.to-1,a),"before"==l&&(a=na(n,a,1))}else a=i<0?s.to:s.from;return new re(r,a,l)}}return new re(r,i<0?n.text.length:0,i<0?"before":"after")}Ho.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Ho.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Ho.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Ho.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Ho.default=_?Ho.macDefault:Ho.pcDefault;var oa={selectAll:ho,singleSelection:function(t){return t.setSelection(t.getCursor("anchor"),t.getCursor("head"),q)},killLine:function(t){return ea(t,(function(e){if(e.empty()){var n=Kt(t.doc,e.head.line).text.length;return e.head.ch==n&&e.head.line<t.lastLine()?{from:e.head,to:re(e.head.line+1,0)}:{from:e.head,to:re(e.head.line,n)}}return{from:e.from(),to:e.to()}}))},deleteLine:function(t){return ea(t,(function(e){return{from:re(e.from().line,0),to:ce(t.doc,re(e.to().line+1,0))}}))},delLineLeft:function(t){return ea(t,(function(t){return{from:re(t.from().line,0),to:t.from()}}))},delWrappedLineLeft:function(t){return ea(t,(function(e){var n=t.charCoords(e.head,"div").top+5;return{from:t.coordsChar({left:0,top:n},"div"),to:e.from()}}))},delWrappedLineRight:function(t){return ea(t,(function(e){var n=t.charCoords(e.head,"div").top+5,r=t.coordsChar({left:t.display.lineDiv.offsetWidth+100,top:n},"div");return{from:e.from(),to:r}}))},undo:function(t){return t.undo()},redo:function(t){return t.redo()},undoSelection:function(t){return t.undoSelection()},redoSelection:function(t){return t.redoSelection()},goDocStart:function(t){return t.extendSelection(re(t.firstLine(),0))},goDocEnd:function(t){return t.extendSelection(re(t.lastLine()))},goLineStart:function(t){return t.extendSelectionsBy((function(e){return aa(t,e.head.line)}),{origin:"+move",bias:1})},goLineStartSmart:function(t){return t.extendSelectionsBy((function(e){return sa(t,e.head)}),{origin:"+move",bias:1})},goLineEnd:function(t){return t.extendSelectionsBy((function(e){return function(t,e){var n=Kt(t.doc,e),r=function(t){for(var e;e=ze(t);)t=e.find(1,!0).line;return t}(n);return r!=n&&(e=Jt(r)),ia(!0,t,n,e,-1)}(t,e.head.line)}),{origin:"+move",bias:-1})},goLineRight:function(t){return t.extendSelectionsBy((function(e){var n=t.cursorCoords(e.head,"div").top+5;return t.coordsChar({left:t.display.lineDiv.offsetWidth+100,top:n},"div")}),H)},goLineLeft:function(t){return t.extendSelectionsBy((function(e){var n=t.cursorCoords(e.head,"div").top+5;return t.coordsChar({left:0,top:n},"div")}),H)},goLineLeftSmart:function(t){return t.extendSelectionsBy((function(e){var n=t.cursorCoords(e.head,"div").top+5,r=t.coordsChar({left:0,top:n},"div");return r.ch<t.getLine(r.line).search(/\S/)?sa(t,e.head):r}),H)},goLineUp:function(t){return t.moveV(-1,"line")},goLineDown:function(t){return t.moveV(1,"line")},goPageUp:function(t){return t.moveV(-1,"page")},goPageDown:function(t){return t.moveV(1,"page")},goCharLeft:function(t){return t.moveH(-1,"char")},goCharRight:function(t){return t.moveH(1,"char")},goColumnLeft:function(t){return t.moveH(-1,"column")},goColumnRight:function(t){return t.moveH(1,"column")},goWordLeft:function(t){return t.moveH(-1,"word")},goGroupRight:function(t){return t.moveH(1,"group")},goGroupLeft:function(t){return t.moveH(-1,"group")},goWordRight:function(t){return t.moveH(1,"word")},delCharBefore:function(t){return t.deleteH(-1,"codepoint")},delCharAfter:function(t){return t.deleteH(1,"char")},delWordBefore:function(t){return t.deleteH(-1,"word")},delWordAfter:function(t){return t.deleteH(1,"word")},delGroupBefore:function(t){return t.deleteH(-1,"group")},delGroupAfter:function(t){return t.deleteH(1,"group")},indentAuto:function(t){return t.indentSelection("smart")},indentMore:function(t){return t.indentSelection("add")},indentLess:function(t){return t.indentSelection("subtract")},insertTab:function(t){return t.replaceSelection("\t")},insertSoftTab:function(t){for(var e=[],n=t.listSelections(),r=t.options.tabSize,i=0;i<n.length;i++){var o=n[i].from(),a=G(t.getLine(o.line),o.ch,r);e.push(Y(r-a%r))}t.replaceSelections(e)},defaultTab:function(t){t.somethingSelected()?t.indentSelection("add"):t.execCommand("insertTab")},transposeChars:function(t){return ni(t,(function(){for(var e=t.listSelections(),n=[],r=0;r<e.length;r++)if(e[r].empty()){var i=e[r].head,o=Kt(t.doc,i.line).text;if(o)if(i.ch==o.length&&(i=new re(i.line,i.ch-1)),i.ch>0)i=new re(i.line,i.ch+1),t.replaceRange(o.charAt(i.ch-1)+o.charAt(i.ch-2),re(i.line,i.ch-2),i,"+transpose");else if(i.line>t.doc.first){var a=Kt(t.doc,i.line-1).text;a&&(i=new re(i.line,1),t.replaceRange(o.charAt(0)+t.doc.lineSeparator()+a.charAt(a.length-1),re(i.line-1,a.length-1),i,"+transpose"))}n.push(new Ai(i,i))}t.setSelections(n)}))},newlineAndIndent:function(t){return ni(t,(function(){for(var e=t.listSelections(),n=e.length-1;n>=0;n--)t.replaceRange(t.doc.lineSeparator(),e[n].anchor,e[n].head,"+input");e=t.listSelections();for(var r=0;r<e.length;r++)t.indentLine(e[r].from().line,null,!0);Lr(t)}))},openLine:function(t){return t.replaceSelection("\n","start")},toggleOverwrite:function(t){return t.toggleOverwrite()}};function aa(t,e){var n=Kt(t.doc,e),r=Ge(n);return r!=n&&(e=Jt(r)),ia(!0,t,r,e,1)}function sa(t,e){var n=aa(t,e.line),r=Kt(t.doc,n.line),i=pt(r,t.doc.direction);if(!i||0==i[0].level){var o=Math.max(n.ch,r.text.search(/\S/)),a=e.line==n.line&&e.ch<=o&&e.ch;return re(n.line,a?0:o,n.sticky)}return n}function la(t,e,n){if("string"==typeof e&&!(e=oa[e]))return!1;t.display.input.ensurePolled();var r=t.display.shift,i=!1;try{t.isReadOnly()&&(t.state.suppressEdits=!0),n&&(t.display.shift=!1),i=e(t)!=V}finally{t.display.shift=r,t.state.suppressEdits=!1}return i}var ua=new B;function ca(t,e,n,r){var i=t.state.keySeq;if(i){if(Qo(e))return"handled";if(/\'$/.test(e)?t.state.keySeq=null:ua.set(50,(function(){t.state.keySeq==i&&(t.state.keySeq=null,t.display.input.reset())})),ha(t,i+" "+e,n,r))return!0}return ha(t,e,n,r)}function ha(t,e,n,r){var i=function(t,e,n){for(var r=0;r<t.state.keyMaps.length;r++){var i=Yo(e,t.state.keyMaps[r],n,t);if(i)return i}return t.options.extraKeys&&Yo(e,t.options.extraKeys,n,t)||Yo(e,t.options.keyMap,n,t)}(t,e,r);return"multi"==i&&(t.state.keySeq=e),"handled"==i&&hn(t,"keyHandled",t,e,n),"handled"!=i&&"multi"!=i||(xt(n),Cr(t)),!!i}function pa(t,e){var n=Jo(e,!0);return!!n&&(e.shiftKey&&!t.state.keySeq?ca(t,"Shift-"+n,e,(function(e){return la(t,e,!0)}))||ca(t,n,e,(function(e){if("string"==typeof e?/^go[A-Z]/.test(e):e.motion)return la(t,e)})):ca(t,n,e,(function(e){return la(t,e)})))}var da=null;function fa(t){var e=this;if(!(t.target&&t.target!=e.display.input.getField()||(e.curOp.focus=I(D(e)),vt(e,t)))){a&&s<11&&27==t.keyCode&&(t.returnValue=!1);var r=t.keyCode;e.display.shift=16==r||t.shiftKey;var i=pa(e,t);p&&(da=i?r:null,i||88!=r||Nt||!(_?t.metaKey:t.ctrlKey)||e.replaceSelection("",null,"cut")),n&&!_&&!i&&46==r&&t.shiftKey&&!t.ctrlKey&&document.execCommand&&document.execCommand("cut"),18!=r||/\bCodeMirror-crosshair\b/.test(e.display.lineDiv.className)||function(t){var e=t.display.lineDiv;function n(t){18!=t.keyCode&&t.altKey||(A(e,"CodeMirror-crosshair"),mt(document,"keyup",n),mt(document,"mouseover",n))}L(e,"CodeMirror-crosshair"),ft(document,"keyup",n),ft(document,"mouseover",n)}(e)}}function ga(t){16==t.keyCode&&(this.doc.sel.shift=!1),vt(this,t)}function ma(t){var e=this;if(!(t.target&&t.target!=e.display.input.getField()||En(e.display,t)||vt(e,t)||t.ctrlKey&&!t.altKey||_&&t.metaKey)){var n=t.keyCode,r=t.charCode;if(p&&n==da)return da=null,void xt(t);if(!p||t.which&&!(t.which<10)||!pa(e,t)){var i=String.fromCharCode(null==r?n:r);"\b"!=i&&(function(t,e,n){return ca(t,"'"+n+"'",e,(function(e){return la(t,e,!0)}))}(e,t,i)||e.display.input.onKeyPress(t))}}}var ya,va,_a=function(t,e,n){this.time=t,this.pos=e,this.button=n};function ba(t){var e=this,n=e.display;if(!(vt(e,t)||n.activeTouch&&n.input.supportsTouch()))if(n.input.ensurePolled(),n.shift=t.shiftKey,En(n,t))l||(n.scroller.draggable=!1,setTimeout((function(){return n.scroller.draggable=!0}),100));else if(!Sa(e,t)){var r=pr(e,t),i=At(t),o=r?function(t,e){var n=+new Date;return va&&va.compare(n,t,e)?(ya=va=null,"triple"):ya&&ya.compare(n,t,e)?(va=new _a(n,t,e),ya=null,"double"):(ya=new _a(n,t,e),va=null,"single")}(r,i):"single";z(e).focus(),1==i&&e.state.selectingText&&e.state.selectingText(t),r&&function(t,e,n,r,i){var o="Click";return"double"==r?o="Double"+o:"triple"==r&&(o="Triple"+o),ca(t,$o(o=(1==e?"Left":2==e?"Middle":"Right")+o,i),i,(function(e){if("string"==typeof e&&(e=oa[e]),!e)return!1;var r=!1;try{t.isReadOnly()&&(t.state.suppressEdits=!0),r=e(t,n)!=V}finally{t.state.suppressEdits=!1}return r}))}(e,i,r,o,t)||(1==i?r?function(t,e,n,r){a?setTimeout(Z(Er,t),0):t.curOp.focus=I(D(t));var i,o=function(t,e,n){var r=t.getOption("configureMouse"),i=r?r(t,e,n):{};if(null==i.unit){var o=b?n.shiftKey&&n.metaKey:n.altKey;i.unit=o?"rectangle":"single"==e?"char":"double"==e?"word":"line"}return(null==i.extend||t.doc.extend)&&(i.extend=t.doc.extend||n.shiftKey),null==i.addNew&&(i.addNew=_?n.metaKey:n.ctrlKey),null==i.moveOnDrag&&(i.moveOnDrag=!(_?n.altKey:n.ctrlKey)),i}(t,n,r),u=t.doc.sel;t.options.dragDrop&&Mt&&!t.isReadOnly()&&"single"==n&&(i=u.contains(e))>-1&&(ie((i=u.ranges[i]).from(),e)<0||e.xRel>0)&&(ie(i.to(),e)>0||e.xRel<0)?function(t,e,n,r){var i=t.display,o=!1,u=ri(t,(function(e){l&&(i.scroller.draggable=!1),t.state.draggingText=!1,t.state.delayingBlurEvent&&(t.hasFocus()?t.state.delayingBlurEvent=!1:kr(t)),mt(i.wrapper.ownerDocument,"mouseup",u),mt(i.wrapper.ownerDocument,"mousemove",c),mt(i.scroller,"dragstart",h),mt(i.scroller,"drop",u),o||(xt(e),r.addNew||$i(t.doc,n,null,null,r.extend),l&&!d||a&&9==s?setTimeout((function(){i.wrapper.ownerDocument.body.focus({preventScroll:!0}),i.input.focus()}),20):i.input.focus())})),c=function(t){o=o||Math.abs(e.clientX-t.clientX)+Math.abs(e.clientY-t.clientY)>=10},h=function(){return o=!0};l&&(i.scroller.draggable=!0),t.state.draggingText=u,u.copy=!r.moveOnDrag,ft(i.wrapper.ownerDocument,"mouseup",u),ft(i.wrapper.ownerDocument,"mousemove",c),ft(i.scroller,"dragstart",h),ft(i.scroller,"drop",u),t.state.delayingBlurEvent=!0,setTimeout((function(){return i.input.focus()}),20),i.scroller.dragDrop&&i.scroller.dragDrop()}(t,r,e,o):function(t,e,n,r){a&&kr(t);var i=t.display,o=t.doc;xt(e);var s,l,u=o.sel,c=u.ranges;if(r.addNew&&!r.extend?(l=o.sel.contains(n),s=l>-1?c[l]:new Ai(n,n)):(s=o.sel.primary(),l=o.sel.primIndex),"rectangle"==r.unit)r.addNew||(s=new Ai(n,n)),n=pr(t,e,!0,!0),l=-1;else{var h=wa(t,n,r.unit);s=r.extend?Qi(s,h.anchor,h.head,r.extend):h}r.addNew?-1==l?(l=c.length,ro(o,Pi(t,c.concat([s]),l),{scroll:!1,origin:"*mouse"})):c.length>1&&c[l].empty()&&"char"==r.unit&&!r.extend?(ro(o,Pi(t,c.slice(0,l).concat(c.slice(l+1)),0),{scroll:!1,origin:"*mouse"}),u=o.sel):to(o,l,s,W):(l=0,ro(o,new ki([s],0),W),u=o.sel);var p=n;function d(e){if(0!=ie(p,e))if(p=e,"rectangle"==r.unit){for(var i=[],a=t.options.tabSize,c=G(Kt(o,n.line).text,n.ch,a),h=G(Kt(o,e.line).text,e.ch,a),d=Math.min(c,h),f=Math.max(c,h),g=Math.min(n.line,e.line),m=Math.min(t.lastLine(),Math.max(n.line,e.line));g<=m;g++){var y=Kt(o,g).text,v=X(y,d,a);d==f?i.push(new Ai(re(g,v),re(g,v))):y.length>v&&i.push(new Ai(re(g,v),re(g,X(y,f,a))))}i.length||i.push(new Ai(n,n)),ro(o,Pi(t,u.ranges.slice(0,l).concat(i),l),{origin:"*mouse",scroll:!1}),t.scrollIntoView(e)}else{var _,b=s,w=wa(t,e,r.unit),x=b.anchor;ie(w.anchor,x)>0?(_=w.head,x=le(b.from(),w.anchor)):(_=w.anchor,x=se(b.to(),w.head));var S=u.ranges.slice(0);S[l]=function(t,e){var n=e.anchor,r=e.head,i=Kt(t.doc,n.line);if(0==ie(n,r)&&n.sticky==r.sticky)return e;var o=pt(i);if(!o)return e;var a=ct(o,n.ch,n.sticky),s=o[a];if(s.from!=n.ch&&s.to!=n.ch)return e;var l,u=a+(s.from==n.ch==(1!=s.level)?0:1);if(0==u||u==o.length)return e;if(r.line!=n.line)l=(r.line-n.line)*("ltr"==t.doc.direction?1:-1)>0;else{var c=ct(o,r.ch,r.sticky),h=c-a||(r.ch-n.ch)*(1==s.level?-1:1);l=c==u-1||c==u?h<0:h>0}var p=o[u+(l?-1:0)],d=l==(1==p.level),f=d?p.from:p.to,g=d?"after":"before";return n.ch==f&&n.sticky==g?e:new Ai(new re(n.line,f,g),r)}(t,new Ai(ce(o,x),_)),ro(o,Pi(t,S,l),W)}}var f=i.wrapper.getBoundingClientRect(),g=0;function m(e){var n=++g,a=pr(t,e,!0,"rectangle"==r.unit);if(a)if(0!=ie(a,p)){t.curOp.focus=I(D(t)),d(a);var s=Or(i,o);(a.line>=s.to||a.line<s.from)&&setTimeout(ri(t,(function(){g==n&&m(e)})),150)}else{var l=e.clientY<f.top?-20:e.clientY>f.bottom?20:0;l&&setTimeout(ri(t,(function(){g==n&&(i.scroller.scrollTop+=l,m(e))})),50)}}function y(e){t.state.selectingText=!1,g=1/0,e&&(xt(e),i.input.focus()),mt(i.wrapper.ownerDocument,"mousemove",v),mt(i.wrapper.ownerDocument,"mouseup",_),o.history.lastSelOrigin=null}var v=ri(t,(function(t){0!==t.buttons&&At(t)?m(t):y(t)})),_=ri(t,y);t.state.selectingText=_,ft(i.wrapper.ownerDocument,"mousemove",v),ft(i.wrapper.ownerDocument,"mouseup",_)}(t,r,e,o)}(e,r,o,t):kt(t)==n.scroller&&xt(t):2==i?(r&&$i(e.doc,r),setTimeout((function(){return n.input.focus()}),20)):3==i&&(C?e.display.input.onContextMenu(t):kr(e)))}}function wa(t,e,n){if("char"==n)return new Ai(e,e);if("word"==n)return t.findWordAt(e);if("line"==n)return new Ai(re(e.line,0),ce(t.doc,re(e.line+1,0)));var r=n(t,e);return new Ai(r.from,r.to)}function xa(t,e,n,r){var i,o;if(e.touches)i=e.touches[0].clientX,o=e.touches[0].clientY;else try{i=e.clientX,o=e.clientY}catch(t){return!1}if(i>=Math.floor(t.display.gutters.getBoundingClientRect().right))return!1;r&&xt(e);var a=t.display,s=a.lineDiv.getBoundingClientRect();if(o>s.bottom||!bt(t,n))return Ct(e);o-=s.top-a.viewOffset;for(var l=0;l<t.display.gutterSpecs.length;++l){var u=a.gutters.childNodes[l];if(u&&u.getBoundingClientRect().right>=i)return yt(t,n,t,te(t.doc,o),t.display.gutterSpecs[l].className,e),Ct(e)}}function Sa(t,e){return xa(t,e,"gutterClick",!0)}function Ca(t,e){En(t.display,e)||function(t,e){return!!bt(t,"gutterContextMenu")&&xa(t,e,"gutterContextMenu",!1)}(t,e)||vt(t,e,"contextmenu")||C||t.display.input.onContextMenu(e)}function Ea(t){t.display.wrapper.className=t.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+t.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Un(t)}_a.prototype.compare=function(t,e,n){return this.time+400>t&&0==ie(e,this.pos)&&n==this.button};var ka={toString:function(){return"CodeMirror.Init"}},Aa={},Pa={};function Ta(t,e,n){if(!e!=!(n&&n!=ka)){var r=t.display.dragFunctions,i=e?ft:mt;i(t.display.scroller,"dragstart",r.start),i(t.display.scroller,"dragenter",r.enter),i(t.display.scroller,"dragover",r.over),i(t.display.scroller,"dragleave",r.leave),i(t.display.scroller,"drop",r.drop)}}function Ma(t){t.options.lineWrapping?(L(t.display.wrapper,"CodeMirror-wrap"),t.display.sizer.style.minWidth="",t.display.sizerWidth=null):(A(t.display.wrapper,"CodeMirror-wrap"),Xe(t)),hr(t),fr(t),Un(t),setTimeout((function(){return Vr(t)}),100)}function Oa(t,e){var n=this;if(!(this instanceof Oa))return new Oa(t,e);this.options=e=e?j(e):{},j(Aa,e,!1);var r=e.value;"string"==typeof r?r=new Fo(r,e.mode,null,e.lineSeparator,e.direction):e.mode&&(r.modeOption=e.mode),this.doc=r;var i=new Oa.inputStyles[e.inputStyle](this),o=this.display=new bi(t,r,i,e);for(var u in o.wrapper.CodeMirror=this,Ea(this),e.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Hr(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new B,keySeq:null,specialChars:null},e.autofocus&&!v&&o.input.focus(),a&&s<11&&setTimeout((function(){return n.display.input.reset(!0)}),20),function(t){var e=t.display;ft(e.scroller,"mousedown",ri(t,ba)),ft(e.scroller,"dblclick",a&&s<11?ri(t,(function(e){if(!vt(t,e)){var n=pr(t,e);if(n&&!Sa(t,e)&&!En(t.display,e)){xt(e);var r=t.findWordAt(n);$i(t.doc,r.anchor,r.head)}}})):function(e){return vt(t,e)||xt(e)}),ft(e.scroller,"contextmenu",(function(e){return Ca(t,e)})),ft(e.input.getField(),"contextmenu",(function(n){e.scroller.contains(n.target)||Ca(t,n)}));var n,r={end:0};function i(){e.activeTouch&&(n=setTimeout((function(){return e.activeTouch=null}),1e3),(r=e.activeTouch).end=+new Date)}function o(t){if(1!=t.touches.length)return!1;var e=t.touches[0];return e.radiusX<=1&&e.radiusY<=1}function l(t,e){if(null==e.left)return!0;var n=e.left-t.left,r=e.top-t.top;return n*n+r*r>400}ft(e.scroller,"touchstart",(function(i){if(!vt(t,i)&&!o(i)&&!Sa(t,i)){e.input.ensurePolled(),clearTimeout(n);var a=+new Date;e.activeTouch={start:a,moved:!1,prev:a-r.end<=300?r:null},1==i.touches.length&&(e.activeTouch.left=i.touches[0].pageX,e.activeTouch.top=i.touches[0].pageY)}})),ft(e.scroller,"touchmove",(function(){e.activeTouch&&(e.activeTouch.moved=!0)})),ft(e.scroller,"touchend",(function(n){var r=e.activeTouch;if(r&&!En(e,n)&&null!=r.left&&!r.moved&&new Date-r.start<300){var o,a=t.coordsChar(e.activeTouch,"page");o=!r.prev||l(r,r.prev)?new Ai(a,a):!r.prev.prev||l(r,r.prev.prev)?t.findWordAt(a):new Ai(re(a.line,0),ce(t.doc,re(a.line+1,0))),t.setSelection(o.anchor,o.head),t.focus(),xt(n)}i()})),ft(e.scroller,"touchcancel",i),ft(e.scroller,"scroll",(function(){e.scroller.clientHeight&&(zr(t,e.scroller.scrollTop),jr(t,e.scroller.scrollLeft,!0),yt(t,"scroll",t))})),ft(e.scroller,"mousewheel",(function(e){return Ei(t,e)})),ft(e.scroller,"DOMMouseScroll",(function(e){return Ei(t,e)})),ft(e.wrapper,"scroll",(function(){return e.wrapper.scrollTop=e.wrapper.scrollLeft=0})),e.dragFunctions={enter:function(e){vt(t,e)||Et(e)},over:function(e){vt(t,e)||(function(t,e){var n=pr(t,e);if(n){var r=document.createDocumentFragment();wr(t,n,r),t.display.dragCursor||(t.display.dragCursor=M("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),t.display.lineSpace.insertBefore(t.display.dragCursor,t.display.cursorDiv)),T(t.display.dragCursor,r)}}(t,e),Et(e))},start:function(e){return function(t,e){if(a&&(!t.state.draggingText||+new Date-No<100))Et(e);else if(!vt(t,e)&&!En(t.display,e)&&(e.dataTransfer.setData("Text",t.getSelection()),e.dataTransfer.effectAllowed="copyMove",e.dataTransfer.setDragImage&&!d)){var n=M("img",null,null,"position: fixed; left: 0; top: 0;");n.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",p&&(n.width=n.height=1,t.display.wrapper.appendChild(n),n._top=n.offsetTop),e.dataTransfer.setDragImage(n,0,0),p&&n.parentNode.removeChild(n)}}(t,e)},drop:ri(t,Do),leave:function(e){vt(t,e)||zo(t)}};var u=e.input.getField();ft(u,"keyup",(function(e){return ga.call(t,e)})),ft(u,"keydown",ri(t,fa)),ft(u,"keypress",ri(t,ma)),ft(u,"focus",(function(e){return Ar(t,e)})),ft(u,"blur",(function(e){return Pr(t,e)}))}(this),Go(),Kr(this),this.curOp.forceUpdate=!0,Zi(this,r),e.autofocus&&!v||this.hasFocus()?setTimeout((function(){n.hasFocus()&&!n.state.focused&&Ar(n)}),20):Pr(this),Pa)Pa.hasOwnProperty(u)&&Pa[u](this,e[u],ka);mi(this),e.finishInit&&e.finishInit(this);for(var c=0;c<Ra.length;++c)Ra[c](this);Yr(this),l&&e.lineWrapping&&"optimizelegibility"==getComputedStyle(o.lineDiv).textRendering&&(o.lineDiv.style.textRendering="auto")}Oa.defaults=Aa,Oa.optionHandlers=Pa;var Ra=[];function Ia(t,e,n,r){var i,o=t.doc;null==n&&(n="add"),"smart"==n&&(o.mode.indent?i=me(t,e).state:n="prev");var a=t.options.tabSize,s=Kt(o,e),l=G(s.text,null,a);s.stateAfter&&(s.stateAfter=null);var u,c=s.text.match(/^\s*/)[0];if(r||/\S/.test(s.text)){if("smart"==n&&((u=o.mode.indent(i,s.text.slice(c.length),s.text))==V||u>150)){if(!r)return;n="prev"}}else u=0,n="not";"prev"==n?u=e>o.first?G(Kt(o,e-1).text,null,a):0:"add"==n?u=l+t.options.indentUnit:"subtract"==n?u=l-t.options.indentUnit:"number"==typeof n&&(u=l+n),u=Math.max(0,u);var h="",p=0;if(t.options.indentWithTabs)for(var d=Math.floor(u/a);d;--d)p+=a,h+="\t";if(p<u&&(h+=Y(u-p)),h!=c)return _o(o,h,re(e,0),re(e,c.length),"+input"),s.stateAfter=null,!0;for(var f=0;f<o.sel.ranges.length;f++){var g=o.sel.ranges[f];if(g.head.line==e&&g.head.ch<c.length){var m=re(e,c.length);to(o,f,new Ai(m,m));break}}}Oa.defineInitHook=function(t){return Ra.push(t)};var La=null;function Fa(t){La=t}function Na(t,e,n,r,i){var o=t.doc;t.display.shift=!1,r||(r=o.sel);var a=+new Date-200,s="paste"==i||t.state.pasteIncoming>a,l=Lt(e),u=null;if(s&&r.ranges.length>1)if(La&&La.text.join("\n")==e){if(r.ranges.length%La.text.length==0){u=[];for(var c=0;c<La.text.length;c++)u.push(o.splitLines(La.text[c]))}}else l.length==r.ranges.length&&t.options.pasteLinesPerSelection&&(u=$(l,(function(t){return[t]})));for(var h=t.curOp.updateInput,p=r.ranges.length-1;p>=0;p--){var d=r.ranges[p],f=d.from(),g=d.to();d.empty()&&(n&&n>0?f=re(f.line,f.ch-n):t.state.overwrite&&!s?g=re(g.line,Math.min(Kt(o,g.line).text.length,g.ch+Q(l).length)):s&&La&&La.lineWise&&La.text.join("\n")==l.join("\n")&&(f=g=re(f.line,0)));var m={from:f,to:g,text:u?u[p%u.length]:l,origin:i||(s?"paste":t.state.cutIncoming>a?"cut":"+input")};fo(t.doc,m),hn(t,"inputRead",t,m)}e&&!s&&za(t,e),Lr(t),t.curOp.updateInput<2&&(t.curOp.updateInput=h),t.curOp.typing=!0,t.state.pasteIncoming=t.state.cutIncoming=-1}function Da(t,e){var n=t.clipboardData&&t.clipboardData.getData("Text");if(n)return t.preventDefault(),e.isReadOnly()||e.options.disableInput||!e.hasFocus()||ni(e,(function(){return Na(e,n,0,null,"paste")})),!0}function za(t,e){if(t.options.electricChars&&t.options.smartIndent)for(var n=t.doc.sel,r=n.ranges.length-1;r>=0;r--){var i=n.ranges[r];if(!(i.head.ch>100||r&&n.ranges[r-1].head.line==i.head.line)){var o=t.getModeAt(i.head),a=!1;if(o.electricChars){for(var s=0;s<o.electricChars.length;s++)if(e.indexOf(o.electricChars.charAt(s))>-1){a=Ia(t,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(Kt(t.doc,i.head.line).text.slice(0,i.head.ch))&&(a=Ia(t,i.head.line,"smart"));a&&hn(t,"electricInput",t,i.head.line)}}}function Za(t){for(var e=[],n=[],r=0;r<t.doc.sel.ranges.length;r++){var i=t.doc.sel.ranges[r].head.line,o={anchor:re(i,0),head:re(i+1,0)};n.push(o),e.push(t.getRange(o.anchor,o.head))}return{text:e,ranges:n}}function ja(t,e,n,r){t.setAttribute("autocorrect",n?"":"off"),t.setAttribute("autocapitalize",r?"":"off"),t.setAttribute("spellcheck",!!e)}function Ga(){var t=M("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),e=M("div",[t],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return l?t.style.width="1000px":t.setAttribute("wrap","off"),m&&(t.style.border="1px solid black"),ja(t),e}function Ba(t,e,n,r,i){var o=e,a=n,s=Kt(t,e.line),l=i&&"rtl"==t.direction?-n:n;function u(o){var a,u;if("codepoint"==r){var c=s.text.charCodeAt(e.ch+(n>0?0:-1));if(isNaN(c))a=null;else{var h=n>0?c>=55296&&c<56320:c>=56320&&c<57343;a=new re(e.line,Math.max(0,Math.min(s.text.length,e.ch+n*(h?2:1))),-n)}}else a=i?function(t,e,n,r){var i=pt(e,t.doc.direction);if(!i)return ra(e,n,r);n.ch>=e.text.length?(n.ch=e.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var o=ct(i,n.ch,n.sticky),a=i[o];if("ltr"==t.doc.direction&&a.level%2==0&&(r>0?a.to>n.ch:a.from<n.ch))return ra(e,n,r);var s,l=function(t,n){return na(e,t instanceof re?t.ch:t,n)},u=function(n){return t.options.lineWrapping?(s=s||Fn(t,e),er(t,e,s,n)):{begin:0,end:e.text.length}},c=u("before"==n.sticky?l(n,-1):n.ch);if("rtl"==t.doc.direction||1==a.level){var h=1==a.level==r<0,p=l(n,h?1:-1);if(null!=p&&(h?p<=a.to&&p<=c.end:p>=a.from&&p>=c.begin)){var d=h?"before":"after";return new re(n.line,p,d)}}var f=function(t,e,r){for(var o=function(t,e){return e?new re(n.line,l(t,1),"before"):new re(n.line,t,"after")};t>=0&&t<i.length;t+=e){var a=i[t],s=e>0==(1!=a.level),u=s?r.begin:l(r.end,-1);if(a.from<=u&&u<a.to)return o(u,s);if(u=s?a.from:l(a.to,-1),r.begin<=u&&u<r.end)return o(u,s)}},g=f(o+r,r,c);if(g)return g;var m=r>0?c.end:l(c.begin,-1);return null==m||r>0&&m==e.text.length||!(g=f(r>0?0:i.length-1,r,u(m)))?null:g}(t.cm,s,e,n):ra(s,e,n);if(null==a){if(o||((u=e.line+l)<t.first||u>=t.first+t.size||(e=new re(u,e.ch,e.sticky),!(s=Kt(t,u)))))return!1;e=ia(i,t.cm,s,e.line,l)}else e=a;return!0}if("char"==r||"codepoint"==r)u();else if("column"==r)u(!0);else if("word"==r||"group"==r)for(var c=null,h="group"==r,p=t.cm&&t.cm.getHelper(e,"wordChars"),d=!0;!(n<0)||u(!d);d=!1){var f=s.text.charAt(e.ch)||"\n",g=rt(f,p)?"w":h&&"\n"==f?"n":!h||/\s/.test(f)?null:"p";if(!h||d||g||(g="s"),c&&c!=g){n<0&&(n=1,u(),e.sticky="after");break}if(g&&(c=g),n>0&&!u(!d))break}var m=uo(t,e,o,a,!0);return oe(o,m)&&(m.hitSide=!0),m}function Ua(t,e,n,r){var i,o,a=t.doc,s=e.left;if("page"==r){var l=Math.min(t.display.wrapper.clientHeight,z(t).innerHeight||a(t).documentElement.clientHeight),u=Math.max(l-.5*ar(t.display),3);i=(n>0?e.bottom:e.top)+n*u}else"line"==r&&(i=n>0?e.bottom+3:e.top-3);for(;(o=Jn(t,s,i)).outside;){if(n<0?i<=0:i>=a.height){o.hitSide=!0;break}i+=5*n}return o}var Va=function(t){this.cm=t,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new B,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function qa(t,e){var n=Ln(t,e.line);if(!n||n.hidden)return null;var r=Kt(t.doc,e.line),i=Rn(n,r,e.line),o=pt(r,t.doc.direction),a="left";o&&(a=ct(o,e.ch)%2?"right":"left");var s=Zn(i.map,e.ch,a);return s.offset="right"==s.collapse?s.end:s.start,s}function Wa(t,e){return e&&(t.bad=!0),t}function Ha(t,e,n){var r;if(e==t.display.lineDiv){if(!(r=t.display.lineDiv.childNodes[n]))return Wa(t.clipPos(re(t.display.viewTo-1)),!0);e=null,n=0}else for(r=e;;r=r.parentNode){if(!r||r==t.display.lineDiv)return null;if(r.parentNode&&r.parentNode==t.display.lineDiv)break}for(var i=0;i<t.display.view.length;i++){var o=t.display.view[i];if(o.node==r)return Xa(o,e,n)}}function Xa(t,e,n){var r=t.text.firstChild,i=!1;if(!e||!R(r,e))return Wa(re(Jt(t.line),0),!0);if(e==r&&(i=!0,e=r.childNodes[n],n=0,!e)){var o=t.rest?Q(t.rest):t.line;return Wa(re(Jt(o),o.text.length),i)}var a=3==e.nodeType?e:null,s=e;for(a||1!=e.childNodes.length||3!=e.firstChild.nodeType||(a=e.firstChild,n&&(n=a.nodeValue.length));s.parentNode!=r;)s=s.parentNode;var l=t.measure,u=l.maps;function c(e,n,r){for(var i=-1;i<(u?u.length:0);i++)for(var o=i<0?l.map:u[i],a=0;a<o.length;a+=3){var s=o[a+2];if(s==e||s==n){var c=Jt(i<0?t.line:t.rest[i]),h=o[a]+r;return(r<0||s!=e)&&(h=o[a+(r?1:0)]),re(c,h)}}}var h=c(a,s,n);if(h)return Wa(h,i);for(var p=s.nextSibling,d=a?a.nodeValue.length-n:0;p;p=p.nextSibling){if(h=c(p,p.firstChild,0))return Wa(re(h.line,h.ch-d),i);d+=p.textContent.length}for(var f=s.previousSibling,g=n;f;f=f.previousSibling){if(h=c(f,f.firstChild,-1))return Wa(re(h.line,h.ch+g),i);g+=f.textContent.length}}Va.prototype.init=function(t){var e=this,n=this,r=n.cm,i=n.div=t.lineDiv;function o(t){for(var e=t.target;e;e=e.parentNode){if(e==i)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(e.className))break}return!1}function a(t){if(o(t)&&!vt(r,t)){if(r.somethingSelected())Fa({lineWise:!1,text:r.getSelections()}),"cut"==t.type&&r.replaceSelection("",null,"cut");else{if(!r.options.lineWiseCopyCut)return;var e=Za(r);Fa({lineWise:!0,text:e.text}),"cut"==t.type&&r.operation((function(){r.setSelections(e.ranges,0,q),r.replaceSelection("",null,"cut")}))}if(t.clipboardData){t.clipboardData.clearData();var a=La.text.join("\n");if(t.clipboardData.setData("Text",a),t.clipboardData.getData("Text")==a)return void t.preventDefault()}var s=Ga(),l=s.firstChild;r.display.lineSpace.insertBefore(s,r.display.lineSpace.firstChild),l.value=La.text.join("\n");var u=I(i.ownerDocument);N(l),setTimeout((function(){r.display.lineSpace.removeChild(s),u.focus(),u==i&&n.showPrimarySelection()}),50)}}i.contentEditable=!0,ja(i,r.options.spellcheck,r.options.autocorrect,r.options.autocapitalize),ft(i,"paste",(function(t){!o(t)||vt(r,t)||Da(t,r)||s<=11&&setTimeout(ri(r,(function(){return e.updateFromDOM()})),20)})),ft(i,"compositionstart",(function(t){e.composing={data:t.data,done:!1}})),ft(i,"compositionupdate",(function(t){e.composing||(e.composing={data:t.data,done:!1})})),ft(i,"compositionend",(function(t){e.composing&&(t.data!=e.composing.data&&e.readFromDOMSoon(),e.composing.done=!0)})),ft(i,"touchstart",(function(){return n.forceCompositionEnd()})),ft(i,"input",(function(){e.composing||e.readFromDOMSoon()})),ft(i,"copy",a),ft(i,"cut",a)},Va.prototype.screenReaderLabelChanged=function(t){t?this.div.setAttribute("aria-label",t):this.div.removeAttribute("aria-label")},Va.prototype.prepareSelection=function(){var t=br(this.cm,!1);return t.focus=I(this.div.ownerDocument)==this.div,t},Va.prototype.showSelection=function(t,e){t&&this.cm.display.view.length&&((t.focus||e)&&this.showPrimarySelection(),this.showMultipleSelections(t))},Va.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Va.prototype.showPrimarySelection=function(){var t=this.getSelection(),e=this.cm,r=e.doc.sel.primary(),i=r.from(),o=r.to();if(e.display.viewTo==e.display.viewFrom||i.line>=e.display.viewTo||o.line<e.display.viewFrom)t.removeAllRanges();else{var a=Ha(e,t.anchorNode,t.anchorOffset),s=Ha(e,t.focusNode,t.focusOffset);if(!a||a.bad||!s||s.bad||0!=ie(le(a,s),i)||0!=ie(se(a,s),o)){var l=e.display.view,u=i.line>=e.display.viewFrom&&qa(e,i)||{node:l[0].measure.map[2],offset:0},c=o.line<e.display.viewTo&&qa(e,o);if(!c){var h=l[l.length-1].measure,p=h.maps?h.maps[h.maps.length-1]:h.map;c={node:p[p.length-1],offset:p[p.length-2]-p[p.length-3]}}if(u&&c){var d,f=t.rangeCount&&t.getRangeAt(0);try{d=k(u.node,u.offset,c.offset,c.node)}catch(t){}d&&(!n&&e.state.focused?(t.collapse(u.node,u.offset),d.collapsed||(t.removeAllRanges(),t.addRange(d))):(t.removeAllRanges(),t.addRange(d)),f&&null==t.anchorNode?t.addRange(f):n&&this.startGracePeriod()),this.rememberSelection()}else t.removeAllRanges()}}},Va.prototype.startGracePeriod=function(){var t=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout((function(){t.gracePeriod=!1,t.selectionChanged()&&t.cm.operation((function(){return t.cm.curOp.selectionChanged=!0}))}),20)},Va.prototype.showMultipleSelections=function(t){T(this.cm.display.cursorDiv,t.cursors),T(this.cm.display.selectionDiv,t.selection)},Va.prototype.rememberSelection=function(){var t=this.getSelection();this.lastAnchorNode=t.anchorNode,this.lastAnchorOffset=t.anchorOffset,this.lastFocusNode=t.focusNode,this.lastFocusOffset=t.focusOffset},Va.prototype.selectionInEditor=function(){var t=this.getSelection();if(!t.rangeCount)return!1;var e=t.getRangeAt(0).commonAncestorContainer;return R(this.div,e)},Va.prototype.focus=function(){"nocursor"!=this.cm.options.readOnly&&(this.selectionInEditor()&&I(this.div.ownerDocument)==this.div||this.showSelection(this.prepareSelection(),!0),this.div.focus())},Va.prototype.blur=function(){this.div.blur()},Va.prototype.getField=function(){return this.div},Va.prototype.supportsTouch=function(){return!0},Va.prototype.receivedFocus=function(){var t=this,e=this;this.selectionInEditor()?setTimeout((function(){return t.pollSelection()}),20):ni(this.cm,(function(){return e.cm.curOp.selectionChanged=!0})),this.polling.set(this.cm.options.pollInterval,(function t(){e.cm.state.focused&&(e.pollSelection(),e.polling.set(e.cm.options.pollInterval,t))}))},Va.prototype.selectionChanged=function(){var t=this.getSelection();return t.anchorNode!=this.lastAnchorNode||t.anchorOffset!=this.lastAnchorOffset||t.focusNode!=this.lastFocusNode||t.focusOffset!=this.lastFocusOffset},Va.prototype.pollSelection=function(){if(null==this.readDOMTimeout&&!this.gracePeriod&&this.selectionChanged()){var t=this.getSelection(),e=this.cm;if(y&&c&&this.cm.display.gutterSpecs.length&&function(t){for(var e=t;e;e=e.parentNode)if(/CodeMirror-gutter-wrapper/.test(e.className))return!0;return!1}(t.anchorNode))return this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),void this.focus();if(!this.composing){this.rememberSelection();var n=Ha(e,t.anchorNode,t.anchorOffset),r=Ha(e,t.focusNode,t.focusOffset);n&&r&&ni(e,(function(){ro(e.doc,Ti(n,r),q),(n.bad||r.bad)&&(e.curOp.selectionChanged=!0)}))}}},Va.prototype.pollContent=function(){null!=this.readDOMTimeout&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var t,e,n,r=this.cm,i=r.display,o=r.doc.sel.primary(),a=o.from(),s=o.to();if(0==a.ch&&a.line>r.firstLine()&&(a=re(a.line-1,Kt(r.doc,a.line-1).length)),s.ch==Kt(r.doc,s.line).text.length&&s.line<r.lastLine()&&(s=re(s.line+1,0)),a.line<i.viewFrom||s.line>i.viewTo-1)return!1;a.line==i.viewFrom||0==(t=dr(r,a.line))?(e=Jt(i.view[0].line),n=i.view[0].node):(e=Jt(i.view[t].line),n=i.view[t-1].node.nextSibling);var l,u,c=dr(r,s.line);if(c==i.view.length-1?(l=i.viewTo-1,u=i.lineDiv.lastChild):(l=Jt(i.view[c+1].line)-1,u=i.view[c+1].node.previousSibling),!n)return!1;for(var h=r.doc.splitLines(function(t,e,n,r,i){var o="",a=!1,s=t.doc.lineSeparator(),l=!1;function u(){a&&(o+=s,l&&(o+=s),a=l=!1)}function c(t){t&&(u(),o+=t)}function h(e){if(1==e.nodeType){var n=e.getAttribute("cm-text");if(n)return void c(n);var o,p=e.getAttribute("cm-marker");if(p){var d=t.findMarks(re(r,0),re(i+1,0),(m=+p,function(t){return t.id==m}));return void(d.length&&(o=d[0].find(0))&&c(Yt(t.doc,o.from,o.to).join(s)))}if("false"==e.getAttribute("contenteditable"))return;var f=/^(pre|div|p|li|table|br)$/i.test(e.nodeName);if(!/^br$/i.test(e.nodeName)&&0==e.textContent.length)return;f&&u();for(var g=0;g<e.childNodes.length;g++)h(e.childNodes[g]);/^(pre|p)$/i.test(e.nodeName)&&(l=!0),f&&(a=!0)}else 3==e.nodeType&&c(e.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "));var m}for(;h(e),e!=n;)e=e.nextSibling,l=!1;return o}(r,n,u,e,l)),p=Yt(r.doc,re(e,0),re(l,Kt(r.doc,l).text.length));h.length>1&&p.length>1;)if(Q(h)==Q(p))h.pop(),p.pop(),l--;else{if(h[0]!=p[0])break;h.shift(),p.shift(),e++}for(var d=0,f=0,g=h[0],m=p[0],y=Math.min(g.length,m.length);d<y&&g.charCodeAt(d)==m.charCodeAt(d);)++d;for(var v=Q(h),_=Q(p),b=Math.min(v.length-(1==h.length?d:0),_.length-(1==p.length?d:0));f<b&&v.charCodeAt(v.length-f-1)==_.charCodeAt(_.length-f-1);)++f;if(1==h.length&&1==p.length&&e==a.line)for(;d&&d>a.ch&&v.charCodeAt(v.length-f-1)==_.charCodeAt(_.length-f-1);)d--,f++;h[h.length-1]=v.slice(0,v.length-f).replace(/^\u200b+/,""),h[0]=h[0].slice(d).replace(/\u200b+$/,"");var w=re(e,d),x=re(l,p.length?Q(p).length-f:0);return h.length>1||h[0]||ie(w,x)?(_o(r.doc,h,w,x,"+input"),!0):void 0},Va.prototype.ensurePolled=function(){this.forceCompositionEnd()},Va.prototype.reset=function(){this.forceCompositionEnd()},Va.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Va.prototype.readFromDOMSoon=function(){var t=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout((function(){if(t.readDOMTimeout=null,t.composing){if(!t.composing.done)return;t.composing=null}t.updateFromDOM()}),80))},Va.prototype.updateFromDOM=function(){var t=this;!this.cm.isReadOnly()&&this.pollContent()||ni(this.cm,(function(){return fr(t.cm)}))},Va.prototype.setUneditable=function(t){t.contentEditable="false"},Va.prototype.onKeyPress=function(t){0==t.charCode||this.composing||(t.preventDefault(),this.cm.isReadOnly()||ri(this.cm,Na)(this.cm,String.fromCharCode(null==t.charCode?t.keyCode:t.charCode),0))},Va.prototype.readOnlyChanged=function(t){this.div.contentEditable=String("nocursor"!=t)},Va.prototype.onContextMenu=function(){},Va.prototype.resetPosition=function(){},Va.prototype.needsContentAttribute=!0;var Ka=function(t){this.cm=t,this.prevInput="",this.pollingFast=!1,this.polling=new B,this.hasSelection=!1,this.composing=null,this.resetting=!1};Ka.prototype.init=function(t){var e=this,n=this,r=this.cm;this.createField(t);var i=this.textarea;function o(t){if(!vt(r,t)){if(r.somethingSelected())Fa({lineWise:!1,text:r.getSelections()});else{if(!r.options.lineWiseCopyCut)return;var e=Za(r);Fa({lineWise:!0,text:e.text}),"cut"==t.type?r.setSelections(e.ranges,null,q):(n.prevInput="",i.value=e.text.join("\n"),N(i))}"cut"==t.type&&(r.state.cutIncoming=+new Date)}}t.wrapper.insertBefore(this.wrapper,t.wrapper.firstChild),m&&(i.style.width="0px"),ft(i,"input",(function(){a&&s>=9&&e.hasSelection&&(e.hasSelection=null),n.poll()})),ft(i,"paste",(function(t){vt(r,t)||Da(t,r)||(r.state.pasteIncoming=+new Date,n.fastPoll())})),ft(i,"cut",o),ft(i,"copy",o),ft(t.scroller,"paste",(function(e){if(!En(t,e)&&!vt(r,e)){if(!i.dispatchEvent)return r.state.pasteIncoming=+new Date,void n.focus();var o=new Event("paste");o.clipboardData=e.clipboardData,i.dispatchEvent(o)}})),ft(t.lineSpace,"selectstart",(function(e){En(t,e)||xt(e)})),ft(i,"compositionstart",(function(){var t=r.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:t,range:r.markText(t,r.getCursor("to"),{className:"CodeMirror-composing"})}})),ft(i,"compositionend",(function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)}))},Ka.prototype.createField=function(t){this.wrapper=Ga(),this.textarea=this.wrapper.firstChild},Ka.prototype.screenReaderLabelChanged=function(t){t?this.textarea.setAttribute("aria-label",t):this.textarea.removeAttribute("aria-label")},Ka.prototype.prepareSelection=function(){var t=this.cm,e=t.display,n=t.doc,r=br(t);if(t.options.moveInputWithCursor){var i=Yn(t,n.sel.primary().head,"div"),o=e.wrapper.getBoundingClientRect(),a=e.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(e.wrapper.clientHeight-10,i.top+a.top-o.top)),r.teLeft=Math.max(0,Math.min(e.wrapper.clientWidth-10,i.left+a.left-o.left))}return r},Ka.prototype.showSelection=function(t){var e=this.cm.display;T(e.cursorDiv,t.cursors),T(e.selectionDiv,t.selection),null!=t.teTop&&(this.wrapper.style.top=t.teTop+"px",this.wrapper.style.left=t.teLeft+"px")},Ka.prototype.reset=function(t){if(!(this.contextMenuPending||this.composing&&t)){var e=this.cm;if(this.resetting=!0,e.somethingSelected()){this.prevInput="";var n=e.getSelection();this.textarea.value=n,e.state.focused&&N(this.textarea),a&&s>=9&&(this.hasSelection=n)}else t||(this.prevInput=this.textarea.value="",a&&s>=9&&(this.hasSelection=null));this.resetting=!1}},Ka.prototype.getField=function(){return this.textarea},Ka.prototype.supportsTouch=function(){return!1},Ka.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!v||I(this.textarea.ownerDocument)!=this.textarea))try{this.textarea.focus()}catch(t){}},Ka.prototype.blur=function(){this.textarea.blur()},Ka.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Ka.prototype.receivedFocus=function(){this.slowPoll()},Ka.prototype.slowPoll=function(){var t=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,(function(){t.poll(),t.cm.state.focused&&t.slowPoll()}))},Ka.prototype.fastPoll=function(){var t=!1,e=this;e.pollingFast=!0,e.polling.set(20,(function n(){e.poll()||t?(e.pollingFast=!1,e.slowPoll()):(t=!0,e.polling.set(60,n))}))},Ka.prototype.poll=function(){var t=this,e=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||this.resetting||!e.state.focused||Ft(n)&&!r&&!this.composing||e.isReadOnly()||e.options.disableInput||e.state.keySeq)return!1;var i=n.value;if(i==r&&!e.somethingSelected())return!1;if(a&&s>=9&&this.hasSelection===i||_&&/[\uf700-\uf7ff]/.test(i))return e.display.input.reset(),!1;if(e.doc.sel==e.display.selForContextMenu){var o=i.charCodeAt(0);if(8203!=o||r||(r="​"),8666==o)return this.reset(),this.cm.execCommand("undo")}for(var l=0,u=Math.min(r.length,i.length);l<u&&r.charCodeAt(l)==i.charCodeAt(l);)++l;return ni(e,(function(){Na(e,i.slice(l),r.length-l,null,t.composing?"*compose":null),i.length>1e3||i.indexOf("\n")>-1?n.value=t.prevInput="":t.prevInput=i,t.composing&&(t.composing.range.clear(),t.composing.range=e.markText(t.composing.start,e.getCursor("to"),{className:"CodeMirror-composing"}))})),!0},Ka.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Ka.prototype.onKeyPress=function(){a&&s>=9&&(this.hasSelection=null),this.fastPoll()},Ka.prototype.onContextMenu=function(t){var e=this,n=e.cm,r=n.display,i=e.textarea;e.contextMenuPending&&e.contextMenuPending();var o=pr(n,t),u=r.scroller.scrollTop;if(o&&!p){n.options.resetSelectionOnContextMenu&&-1==n.doc.sel.contains(o)&&ri(n,ro)(n.doc,Ti(o),q);var c,h=i.style.cssText,d=e.wrapper.style.cssText,f=e.wrapper.offsetParent.getBoundingClientRect();if(e.wrapper.style.cssText="position: static",i.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(t.clientY-f.top-5)+"px; left: "+(t.clientX-f.left-5)+"px;\n z-index: 1000; background: "+(a?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",l&&(c=i.ownerDocument.defaultView.scrollY),r.input.focus(),l&&i.ownerDocument.defaultView.scrollTo(null,c),r.input.reset(),n.somethingSelected()||(i.value=e.prevInput=" "),e.contextMenuPending=y,r.selForContextMenu=n.doc.sel,clearTimeout(r.detectingSelectAll),a&&s>=9&&m(),C){Et(t);var g=function(){mt(window,"mouseup",g),setTimeout(y,20)};ft(window,"mouseup",g)}else setTimeout(y,50)}function m(){if(null!=i.selectionStart){var t=n.somethingSelected(),o="​"+(t?i.value:"");i.value="⇚",i.value=o,e.prevInput=t?"":"​",i.selectionStart=1,i.selectionEnd=o.length,r.selForContextMenu=n.doc.sel}}function y(){if(e.contextMenuPending==y&&(e.contextMenuPending=!1,e.wrapper.style.cssText=d,i.style.cssText=h,a&&s<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=u),null!=i.selectionStart)){(!a||a&&s<9)&&m();var t=0,o=function(){r.selForContextMenu==n.doc.sel&&0==i.selectionStart&&i.selectionEnd>0&&"​"==e.prevInput?ri(n,ho)(n):t++<10?r.detectingSelectAll=setTimeout(o,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(o,200)}}},Ka.prototype.readOnlyChanged=function(t){t||this.reset(),this.textarea.disabled="nocursor"==t,this.textarea.readOnly=!!t},Ka.prototype.setUneditable=function(){},Ka.prototype.needsContentAttribute=!1,function(t){var e=t.optionHandlers;function n(n,r,i,o){t.defaults[n]=r,i&&(e[n]=o?function(t,e,n){n!=ka&&i(t,e,n)}:i)}t.defineOption=n,t.Init=ka,n("value","",(function(t,e){return t.setValue(e)}),!0),n("mode",null,(function(t,e){t.doc.modeOption=e,Li(t)}),!0),n("indentUnit",2,Li,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,(function(t){Fi(t),Un(t),fr(t)}),!0),n("lineSeparator",null,(function(t,e){if(t.doc.lineSep=e,e){var n=[],r=t.doc.first;t.doc.iter((function(t){for(var i=0;;){var o=t.text.indexOf(e,i);if(-1==o)break;i=o+e.length,n.push(re(r,o))}r++}));for(var i=n.length-1;i>=0;i--)_o(t.doc,e,n[i],re(n[i].line,n[i].ch+e.length))}})),n("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,(function(t,e,n){t.state.specialChars=new RegExp(e.source+(e.test("\t")?"":"|\t"),"g"),n!=ka&&t.refresh()})),n("specialCharPlaceholder",en,(function(t){return t.refresh()}),!0),n("electricChars",!0),n("inputStyle",v?"contenteditable":"textarea",(function(){throw new Error("inputStyle can not (yet) be changed in a running editor")}),!0),n("spellcheck",!1,(function(t,e){return t.getInputField().spellcheck=e}),!0),n("autocorrect",!1,(function(t,e){return t.getInputField().autocorrect=e}),!0),n("autocapitalize",!1,(function(t,e){return t.getInputField().autocapitalize=e}),!0),n("rtlMoveVisually",!w),n("wholeLineUpdateBefore",!0),n("theme","default",(function(t){Ea(t),_i(t)}),!0),n("keyMap","default",(function(t,e,n){var r=ta(e),i=n!=ka&&ta(n);i&&i.detach&&i.detach(t,r),r.attach&&r.attach(t,i||null)})),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,Ma,!0),n("gutters",[],(function(t,e){t.display.gutterSpecs=yi(e,t.options.lineNumbers),_i(t)}),!0),n("fixedGutter",!0,(function(t,e){t.display.gutters.style.left=e?ur(t.display)+"px":"0",t.refresh()}),!0),n("coverGutterNextToScrollbar",!1,(function(t){return Vr(t)}),!0),n("scrollbarStyle","native",(function(t){Hr(t),Vr(t),t.display.scrollbars.setScrollTop(t.doc.scrollTop),t.display.scrollbars.setScrollLeft(t.doc.scrollLeft)}),!0),n("lineNumbers",!1,(function(t,e){t.display.gutterSpecs=yi(t.options.gutters,e),_i(t)}),!0),n("firstLineNumber",1,_i,!0),n("lineNumberFormatter",(function(t){return t}),_i,!0),n("showCursorWhenSelecting",!1,_r,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("selectionsMayTouch",!1),n("readOnly",!1,(function(t,e){"nocursor"==e&&(Pr(t),t.display.input.blur()),t.display.input.readOnlyChanged(e)})),n("screenReaderLabel",null,(function(t,e){e=""===e?null:e,t.display.input.screenReaderLabelChanged(e)})),n("disableInput",!1,(function(t,e){e||t.display.input.reset()}),!0),n("dragDrop",!0,Ta),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,_r,!0),n("singleCursorHeightPerLine",!0,_r,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,Fi,!0),n("addModeClass",!1,Fi,!0),n("pollInterval",100),n("undoDepth",200,(function(t,e){return t.doc.history.undoDepth=e})),n("historyEventDelay",1250),n("viewportMargin",10,(function(t){return t.refresh()}),!0),n("maxHighlightLength",1e4,Fi,!0),n("moveInputWithCursor",!0,(function(t,e){e||t.display.input.resetPosition()})),n("tabindex",null,(function(t,e){return t.display.input.getField().tabIndex=e||""})),n("autofocus",null),n("direction","ltr",(function(t,e){return t.doc.setDirection(e)}),!0),n("phrases",null)}(Oa),function(t){var e=t.optionHandlers,n=t.helpers={};t.prototype={constructor:t,focus:function(){z(this).focus(),this.display.input.focus()},setOption:function(t,n){var r=this.options,i=r[t];r[t]==n&&"mode"!=t||(r[t]=n,e.hasOwnProperty(t)&&ri(this,e[t])(this,n,i),yt(this,"optionChange",this,t))},getOption:function(t){return this.options[t]},getDoc:function(){return this.doc},addKeyMap:function(t,e){this.state.keyMaps[e?"push":"unshift"](ta(t))},removeKeyMap:function(t){for(var e=this.state.keyMaps,n=0;n<e.length;++n)if(e[n]==t||e[n].name==t)return e.splice(n,1),!0},addOverlay:ii((function(e,n){var r=e.token?e:t.getMode(this.options,e);if(r.startState)throw new Error("Overlays may not be stateful.");(function(t,e,n){for(var r=0,i=n(e);r<t.length&&n(t[r])<=i;)r++;t.splice(r,0,e)})(this.state.overlays,{mode:r,modeSpec:e,opaque:n&&n.opaque,priority:n&&n.priority||0},(function(t){return t.priority})),this.state.modeGen++,fr(this)})),removeOverlay:ii((function(t){for(var e=this.state.overlays,n=0;n<e.length;++n){var r=e[n].modeSpec;if(r==t||"string"==typeof t&&r.name==t)return e.splice(n,1),this.state.modeGen++,void fr(this)}})),indentLine:ii((function(t,e,n){"string"!=typeof e&&"number"!=typeof e&&(e=null==e?this.options.smartIndent?"smart":"prev":e?"add":"subtract"),ee(this.doc,t)&&Ia(this,t,e,n)})),indentSelection:ii((function(t){for(var e=this.doc.sel.ranges,n=-1,r=0;r<e.length;r++){var i=e[r];if(i.empty())i.head.line>n&&(Ia(this,i.head.line,t,!0),n=i.head.line,r==this.doc.sel.primIndex&&Lr(this));else{var o=i.from(),a=i.to(),s=Math.max(n,o.line);n=Math.min(this.lastLine(),a.line-(a.ch?0:1))+1;for(var l=s;l<n;++l)Ia(this,l,t);var u=this.doc.sel.ranges;0==o.ch&&e.length==u.length&&u[r].from().ch>0&&to(this.doc,r,new Ai(o,u[r].to()),q)}}})),getTokenAt:function(t,e){return we(this,t,e)},getLineTokens:function(t,e){return we(this,re(t),e,!0)},getTokenTypeAt:function(t){t=ce(this.doc,t);var e,n=ge(this,Kt(this.doc,t.line)),r=0,i=(n.length-1)/2,o=t.ch;if(0==o)e=n[2];else for(;;){var a=r+i>>1;if((a?n[2*a-1]:0)>=o)i=a;else{if(!(n[2*a+1]<o)){e=n[2*a+2];break}r=a+1}}var s=e?e.indexOf("overlay "):-1;return s<0?e:0==s?null:e.slice(0,s-1)},getModeAt:function(e){var n=this.doc.mode;return n.innerMode?t.innerMode(n,this.getTokenAt(e).state).mode:n},getHelper:function(t,e){return this.getHelpers(t,e)[0]},getHelpers:function(t,e){var r=[];if(!n.hasOwnProperty(e))return r;var i=n[e],o=this.getModeAt(t);if("string"==typeof o[e])i[o[e]]&&r.push(i[o[e]]);else if(o[e])for(var a=0;a<o[e].length;a++){var s=i[o[e][a]];s&&r.push(s)}else o.helperType&&i[o.helperType]?r.push(i[o.helperType]):i[o.name]&&r.push(i[o.name]);for(var l=0;l<i._global.length;l++){var u=i._global[l];u.pred(o,this)&&-1==U(r,u.val)&&r.push(u.val)}return r},getStateAfter:function(t,e){var n=this.doc;return me(this,(t=ue(n,null==t?n.first+n.size-1:t))+1,e).state},cursorCoords:function(t,e){var n=this.doc.sel.primary();return Yn(this,null==t?n.head:"object"==typeof t?ce(this.doc,t):t?n.from():n.to(),e||"page")},charCoords:function(t,e){return Kn(this,ce(this.doc,t),e||"page")},coordsChar:function(t,e){return Jn(this,(t=Xn(this,t,e||"page")).left,t.top)},lineAtHeight:function(t,e){return t=Xn(this,{top:t,left:0},e||"page").top,te(this.doc,t+this.display.viewOffset)},heightAtLine:function(t,e,n){var r,i=!1;if("number"==typeof t){var o=this.doc.first+this.doc.size-1;t<this.doc.first?t=this.doc.first:t>o&&(t=o,i=!0),r=Kt(this.doc,t)}else r=t;return Hn(this,r,{top:0,left:0},e||"page",n||i).top+(i?this.doc.height-We(r):0)},defaultTextHeight:function(){return ar(this.display)},defaultCharWidth:function(){return sr(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(t,e,n,r,i){var o,a,s,l=this.display,u=(t=Yn(this,ce(this.doc,t))).bottom,c=t.left;if(e.style.position="absolute",e.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(e),l.sizer.appendChild(e),"over"==r)u=t.top;else if("above"==r||"near"==r){var h=Math.max(l.wrapper.clientHeight,this.doc.height),p=Math.max(l.sizer.clientWidth,l.lineSpace.clientWidth);("above"==r||t.bottom+e.offsetHeight>h)&&t.top>e.offsetHeight?u=t.top-e.offsetHeight:t.bottom+e.offsetHeight<=h&&(u=t.bottom),c+e.offsetWidth>p&&(c=p-e.offsetWidth)}e.style.top=u+"px",e.style.left=e.style.right="","right"==i?(c=l.sizer.clientWidth-e.offsetWidth,e.style.right="0px"):("left"==i?c=0:"middle"==i&&(c=(l.sizer.clientWidth-e.offsetWidth)/2),e.style.left=c+"px"),n&&(o=this,a={left:c,top:u,right:c+e.offsetWidth,bottom:u+e.offsetHeight},null!=(s=Rr(o,a)).scrollTop&&zr(o,s.scrollTop),null!=s.scrollLeft&&jr(o,s.scrollLeft))},triggerOnKeyDown:ii(fa),triggerOnKeyPress:ii(ma),triggerOnKeyUp:ga,triggerOnMouseDown:ii(ba),execCommand:function(t){if(oa.hasOwnProperty(t))return oa[t].call(null,this)},triggerElectric:ii((function(t){za(this,t)})),findPosH:function(t,e,n,r){var i=1;e<0&&(i=-1,e=-e);for(var o=ce(this.doc,t),a=0;a<e&&!(o=Ba(this.doc,o,i,n,r)).hitSide;++a);return o},moveH:ii((function(t,e){var n=this;this.extendSelectionsBy((function(r){return n.display.shift||n.doc.extend||r.empty()?Ba(n.doc,r.head,t,e,n.options.rtlMoveVisually):t<0?r.from():r.to()}),H)})),deleteH:ii((function(t,e){var n=this.doc.sel,r=this.doc;n.somethingSelected()?r.replaceSelection("",null,"+delete"):ea(this,(function(n){var i=Ba(r,n.head,t,e,!1);return t<0?{from:i,to:n.head}:{from:n.head,to:i}}))})),findPosV:function(t,e,n,r){var i=1,o=r;e<0&&(i=-1,e=-e);for(var a=ce(this.doc,t),s=0;s<e;++s){var l=Yn(this,a,"div");if(null==o?o=l.left:l.left=o,(a=Ua(this,l,i,n)).hitSide)break}return a},moveV:ii((function(t,e){var n=this,r=this.doc,i=[],o=!this.display.shift&&!r.extend&&r.sel.somethingSelected();if(r.extendSelectionsBy((function(a){if(o)return t<0?a.from():a.to();var s=Yn(n,a.head,"div");null!=a.goalColumn&&(s.left=a.goalColumn),i.push(s.left);var l=Ua(n,s,t,e);return"page"==e&&a==r.sel.primary()&&Ir(n,Kn(n,l,"div").top-s.top),l}),H),i.length)for(var a=0;a<r.sel.ranges.length;a++)r.sel.ranges[a].goalColumn=i[a]})),findWordAt:function(t){var e=Kt(this.doc,t.line).text,n=t.ch,r=t.ch;if(e){var i=this.getHelper(t,"wordChars");"before"!=t.sticky&&r!=e.length||!n?++r:--n;for(var o=e.charAt(n),a=rt(o,i)?function(t){return rt(t,i)}:/\s/.test(o)?function(t){return/\s/.test(t)}:function(t){return!/\s/.test(t)&&!rt(t)};n>0&&a(e.charAt(n-1));)--n;for(;r<e.length&&a(e.charAt(r));)++r}return new Ai(re(t.line,n),re(t.line,r))},toggleOverwrite:function(t){null!=t&&t==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?L(this.display.cursorDiv,"CodeMirror-overwrite"):A(this.display.cursorDiv,"CodeMirror-overwrite"),yt(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==I(D(this))},isReadOnly:function(){return!(!this.options.readOnly&&!this.doc.cantEdit)},scrollTo:ii((function(t,e){Fr(this,t,e)})),getScrollInfo:function(){var t=this.display.scroller;return{left:t.scrollLeft,top:t.scrollTop,height:t.scrollHeight-Tn(this)-this.display.barHeight,width:t.scrollWidth-Tn(this)-this.display.barWidth,clientHeight:On(this),clientWidth:Mn(this)}},scrollIntoView:ii((function(t,e){null==t?(t={from:this.doc.sel.primary().head,to:null},null==e&&(e=this.options.cursorScrollMargin)):"number"==typeof t?t={from:re(t,0),to:null}:null==t.from&&(t={from:t,to:null}),t.to||(t.to=t.from),t.margin=e||0,null!=t.from.line?function(t,e){Nr(t),t.curOp.scrollToPos=e}(this,t):Dr(this,t.from,t.to,t.margin)})),setSize:ii((function(t,e){var n=this,r=function(t){return"number"==typeof t||/^\d+$/.test(String(t))?t+"px":t};null!=t&&(this.display.wrapper.style.width=r(t)),null!=e&&(this.display.wrapper.style.height=r(e)),this.options.lineWrapping&&Bn(this);var i=this.display.viewFrom;this.doc.iter(i,this.display.viewTo,(function(t){if(t.widgets)for(var e=0;e<t.widgets.length;e++)if(t.widgets[e].noHScroll){gr(n,i,"widget");break}++i})),this.curOp.forceUpdate=!0,yt(this,"refresh",this)})),operation:function(t){return ni(this,t)},startOperation:function(){return Kr(this)},endOperation:function(){return Yr(this)},refresh:ii((function(){var t=this.display.cachedTextHeight;fr(this),this.curOp.forceUpdate=!0,Un(this),Fr(this,this.doc.scrollLeft,this.doc.scrollTop),di(this.display),(null==t||Math.abs(t-ar(this.display))>.5||this.options.lineWrapping)&&hr(this),yt(this,"refresh",this)})),swapDoc:ii((function(t){var e=this.doc;return e.cm=null,this.state.selectingText&&this.state.selectingText(),Zi(this,t),Un(this),this.display.input.reset(),Fr(this,t.scrollLeft,t.scrollTop),this.curOp.forceScroll=!0,hn(this,"swapDoc",this,e),e})),phrase:function(t){var e=this.options.phrases;return e&&Object.prototype.hasOwnProperty.call(e,t)?e[t]:t},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},wt(t),t.registerHelper=function(e,r,i){n.hasOwnProperty(e)||(n[e]=t[e]={_global:[]}),n[e][r]=i},t.registerGlobalHelper=function(e,r,i,o){t.registerHelper(e,r,o),n[e]._global.push({pred:i,val:o})}}(Oa);var Ya="iter insert remove copy getEditor constructor".split(" ");for(var Qa in Fo.prototype)Fo.prototype.hasOwnProperty(Qa)&&U(Ya,Qa)<0&&(Oa.prototype[Qa]=function(t){return function(){return t.apply(this.doc,arguments)}}(Fo.prototype[Qa]));return wt(Fo),Oa.inputStyles={textarea:Ka,contenteditable:Va},Oa.defineMode=function(t){Oa.defaults.mode||"null"==t||(Oa.defaults.mode=t),jt.apply(this,arguments)},Oa.defineMIME=function(t,e){Zt[t]=e},Oa.defineMode("null",(function(){return{token:function(t){return t.skipToEnd()}}})),Oa.defineMIME("text/plain","null"),Oa.defineExtension=function(t,e){Oa.prototype[t]=e},Oa.defineDocExtension=function(t,e){Fo.prototype[t]=e},Oa.fromTextArea=function(t,e){if((e=e?j(e):{}).value=t.value,!e.tabindex&&t.tabIndex&&(e.tabindex=t.tabIndex),!e.placeholder&&t.placeholder&&(e.placeholder=t.placeholder),null==e.autofocus){var n=I(t.ownerDocument);e.autofocus=n==t||null!=t.getAttribute("autofocus")&&n==document.body}function r(){t.value=s.getValue()}var i;if(t.form&&(ft(t.form,"submit",r),!e.leaveSubmitMethodAlone)){var o=t.form;i=o.submit;try{var a=o.submit=function(){r(),o.submit=i,o.submit(),o.submit=a}}catch(t){}}e.finishInit=function(n){n.save=r,n.getTextArea=function(){return t},n.toTextArea=function(){n.toTextArea=isNaN,r(),t.parentNode.removeChild(n.getWrapperElement()),t.style.display="",t.form&&(mt(t.form,"submit",r),e.leaveSubmitMethodAlone||"function"!=typeof t.form.submit||(t.form.submit=i))}},t.style.display="none";var s=Oa((function(e){return t.parentNode.insertBefore(e,t.nextSibling)}),e);return s},function(t){t.off=mt,t.on=ft,t.wheelEventPixels=Ci,t.Doc=Fo,t.splitLines=Lt,t.countColumn=G,t.findColumn=X,t.isWordChar=nt,t.Pass=V,t.signal=yt,t.Line=Ke,t.changeEnd=Mi,t.scrollbarModel=Wr,t.Pos=re,t.cmpPos=ie,t.modes=zt,t.mimeModes=Zt,t.resolveMode=Gt,t.getMode=Bt,t.modeExtensions=Ut,t.extendMode=Vt,t.copyState=qt,t.startState=Ht,t.innerMode=Wt,t.commands=oa,t.keyMap=Ho,t.keyName=Jo,t.isModifierKey=Qo,t.lookupKey=Yo,t.normalizeKeyMap=Ko,t.StringStream=Xt,t.SharedTextMarker=Oo,t.TextMarker=To,t.LineWidget=ko,t.e_preventDefault=xt,t.e_stopPropagation=St,t.e_stop=Et,t.addClass=L,t.contains=R,t.rmClass=A,t.keyNames=Uo}(Oa),Oa.version="5.65.9",Oa}()},3457:(t,e,n)=>{!function(t){"use strict";t.defineMode("javascript",(function(e,n){var r,i,o=e.indentUnit,a=n.statementIndent,s=n.jsonld,l=n.json||s,u=!1!==n.trackScope,c=n.typescript,h=n.wordCharacters||/[\w$\xa1-\uffff]/,p=function(){function t(t){return{type:t,style:"keyword"}}var e=t("keyword a"),n=t("keyword b"),r=t("keyword c"),i=t("keyword d"),o=t("operator"),a={type:"atom",style:"atom"};return{if:t("if"),while:e,with:e,else:n,do:n,try:n,finally:n,return:i,break:i,continue:i,new:t("new"),delete:r,void:r,throw:r,debugger:t("debugger"),var:t("var"),const:t("var"),let:t("var"),function:t("function"),catch:t("catch"),for:t("for"),switch:t("switch"),case:t("case"),default:t("default"),in:o,typeof:o,instanceof:o,true:a,false:a,null:a,undefined:a,NaN:a,Infinity:a,this:t("this"),class:t("class"),super:t("atom"),yield:r,export:t("export"),import:t("import"),extends:r,await:r}}(),d=/[+\-*&%=<>!?|~^@]/,f=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function g(t,e,n){return r=t,i=n,e}function m(t,e){var n,r=t.next();if('"'==r||"'"==r)return e.tokenize=(n=r,function(t,e){var r,i=!1;if(s&&"@"==t.peek()&&t.match(f))return e.tokenize=m,g("jsonld-keyword","meta");for(;null!=(r=t.next())&&(r!=n||i);)i=!i&&"\\"==r;return i||(e.tokenize=m),g("string","string")}),e.tokenize(t,e);if("."==r&&t.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return g("number","number");if("."==r&&t.match(".."))return g("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(r))return g(r);if("="==r&&t.eat(">"))return g("=>","operator");if("0"==r&&t.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return g("number","number");if(/\d/.test(r))return t.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),g("number","number");if("/"==r)return t.eat("*")?(e.tokenize=y,y(t,e)):t.eat("/")?(t.skipToEnd(),g("comment","comment")):Jt(t,e,1)?(function(t){for(var e,n=!1,r=!1;null!=(e=t.next());){if(!n){if("/"==e&&!r)return;"["==e?r=!0:r&&"]"==e&&(r=!1)}n=!n&&"\\"==e}}(t),t.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),g("regexp","string-2")):(t.eat("="),g("operator","operator",t.current()));if("`"==r)return e.tokenize=v,v(t,e);if("#"==r&&"!"==t.peek())return t.skipToEnd(),g("meta","meta");if("#"==r&&t.eatWhile(h))return g("variable","property");if("<"==r&&t.match("!--")||"-"==r&&t.match("->")&&!/\S/.test(t.string.slice(0,t.start)))return t.skipToEnd(),g("comment","comment");if(d.test(r))return">"==r&&e.lexical&&">"==e.lexical.type||(t.eat("=")?"!"!=r&&"="!=r||t.eat("="):/[<>*+\-|&?]/.test(r)&&(t.eat(r),">"==r&&t.eat(r))),"?"==r&&t.eat(".")?g("."):g("operator","operator",t.current());if(h.test(r)){t.eatWhile(h);var i=t.current();if("."!=e.lastType){if(p.propertyIsEnumerable(i)){var o=p[i];return g(o.type,o.style,i)}if("async"==i&&t.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return g("async","keyword",i)}return g("variable","variable",i)}}function y(t,e){for(var n,r=!1;n=t.next();){if("/"==n&&r){e.tokenize=m;break}r="*"==n}return g("comment","comment")}function v(t,e){for(var n,r=!1;null!=(n=t.next());){if(!r&&("`"==n||"$"==n&&t.eat("{"))){e.tokenize=m;break}r=!r&&"\\"==n}return g("quasi","string-2",t.current())}function _(t,e){e.fatArrowAt&&(e.fatArrowAt=null);var n=t.string.indexOf("=>",t.start);if(!(n<0)){if(c){var r=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(t.string.slice(t.start,n));r&&(n=r.index)}for(var i=0,o=!1,a=n-1;a>=0;--a){var s=t.string.charAt(a),l="([{}])".indexOf(s);if(l>=0&&l<3){if(!i){++a;break}if(0==--i){"("==s&&(o=!0);break}}else if(l>=3&&l<6)++i;else if(h.test(s))o=!0;else if(/["'\/`]/.test(s))for(;;--a){if(0==a)return;if(t.string.charAt(a-1)==s&&"\\"!=t.string.charAt(a-2)){a--;break}}else if(o&&!i){++a;break}}o&&!i&&(e.fatArrowAt=a)}}var b={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function w(t,e,n,r,i,o){this.indented=t,this.column=e,this.type=n,this.prev=i,this.info=o,null!=r&&(this.align=r)}function x(t,e){if(!u)return!1;for(var n=t.localVars;n;n=n.next)if(n.name==e)return!0;for(var r=t.context;r;r=r.prev)for(n=r.vars;n;n=n.next)if(n.name==e)return!0}function S(t,e,n,r,i){var o=t.cc;for(C.state=t,C.stream=i,C.marked=null,C.cc=o,C.style=e,t.lexical.hasOwnProperty("align")||(t.lexical.align=!0);;)if((o.length?o.pop():l?B:j)(n,r)){for(;o.length&&o[o.length-1].lex;)o.pop()();return C.marked?C.marked:"variable"==n&&x(t,r)?"variable-2":e}}var C={state:null,column:null,marked:null,cc:null};function E(){for(var t=arguments.length-1;t>=0;t--)C.cc.push(arguments[t])}function k(){return E.apply(null,arguments),!0}function A(t,e){for(var n=e;n;n=n.next)if(n.name==t)return!0;return!1}function P(t){var e=C.state;if(C.marked="def",u){if(e.context)if("var"==e.lexical.info&&e.context&&e.context.block){var r=T(t,e.context);if(null!=r)return void(e.context=r)}else if(!A(t,e.localVars))return void(e.localVars=new R(t,e.localVars));n.globalVars&&!A(t,e.globalVars)&&(e.globalVars=new R(t,e.globalVars))}}function T(t,e){if(e){if(e.block){var n=T(t,e.prev);return n?n==e.prev?e:new O(n,e.vars,!0):null}return A(t,e.vars)?e:new O(e.prev,new R(t,e.vars),!1)}return null}function M(t){return"public"==t||"private"==t||"protected"==t||"abstract"==t||"readonly"==t}function O(t,e,n){this.prev=t,this.vars=e,this.block=n}function R(t,e){this.name=t,this.next=e}var I=new R("this",new R("arguments",null));function L(){C.state.context=new O(C.state.context,C.state.localVars,!1),C.state.localVars=I}function F(){C.state.context=new O(C.state.context,C.state.localVars,!0),C.state.localVars=null}function N(){C.state.localVars=C.state.context.vars,C.state.context=C.state.context.prev}function D(t,e){var n=function(){var n=C.state,r=n.indented;if("stat"==n.lexical.type)r=n.lexical.indented;else for(var i=n.lexical;i&&")"==i.type&&i.align;i=i.prev)r=i.indented;n.lexical=new w(r,C.stream.column(),t,null,n.lexical,e)};return n.lex=!0,n}function z(){var t=C.state;t.lexical.prev&&(")"==t.lexical.type&&(t.indented=t.lexical.indented),t.lexical=t.lexical.prev)}function Z(t){return function e(n){return n==t?k():";"==t||"}"==n||")"==n||"]"==n?E():k(e)}}function j(t,e){return"var"==t?k(D("vardef",e),Ct,Z(";"),z):"keyword a"==t?k(D("form"),V,j,z):"keyword b"==t?k(D("form"),j,z):"keyword d"==t?C.stream.match(/^\s*$/,!1)?k():k(D("stat"),W,Z(";"),z):"debugger"==t?k(Z(";")):"{"==t?k(D("}"),F,lt,z,N):";"==t?k():"if"==t?("else"==C.state.lexical.info&&C.state.cc[C.state.cc.length-1]==z&&C.state.cc.pop()(),k(D("form"),V,j,z,Mt)):"function"==t?k(Lt):"for"==t?k(D("form"),F,Ot,j,N,z):"class"==t||c&&"interface"==e?(C.marked="keyword",k(D("form","class"==t?t:e),Zt,z)):"variable"==t?c&&"declare"==e?(C.marked="keyword",k(j)):c&&("module"==e||"enum"==e||"type"==e)&&C.stream.match(/^\s*\w/,!1)?(C.marked="keyword","enum"==e?k(Qt):"type"==e?k(Nt,Z("operator"),dt,Z(";")):k(D("form"),Et,Z("{"),D("}"),lt,z,z)):c&&"namespace"==e?(C.marked="keyword",k(D("form"),B,j,z)):c&&"abstract"==e?(C.marked="keyword",k(j)):k(D("stat"),et):"switch"==t?k(D("form"),V,Z("{"),D("}","switch"),F,lt,z,z,N):"case"==t?k(B,Z(":")):"default"==t?k(Z(":")):"catch"==t?k(D("form"),L,G,j,z,N):"export"==t?k(D("stat"),Ut,z):"import"==t?k(D("stat"),qt,z):"async"==t?k(j):"@"==e?k(B,j):E(D("stat"),B,Z(";"),z)}function G(t){if("("==t)return k(Dt,Z(")"))}function B(t,e){return q(t,e,!1)}function U(t,e){return q(t,e,!0)}function V(t){return"("!=t?E():k(D(")"),W,Z(")"),z)}function q(t,e,n){if(C.state.fatArrowAt==C.stream.start){var r=n?$:Q;if("("==t)return k(L,D(")"),at(Dt,")"),z,Z("=>"),r,N);if("variable"==t)return E(L,Et,Z("=>"),r,N)}var i=n?X:H;return b.hasOwnProperty(t)?k(i):"function"==t?k(Lt,i):"class"==t||c&&"interface"==e?(C.marked="keyword",k(D("form"),zt,z)):"keyword c"==t||"async"==t?k(n?U:B):"("==t?k(D(")"),W,Z(")"),z,i):"operator"==t||"spread"==t?k(n?U:B):"["==t?k(D("]"),Yt,z,i):"{"==t?st(rt,"}",null,i):"quasi"==t?E(K,i):"new"==t?k(function(t){return function(e){return"."==e?k(t?tt:J):"variable"==e&&c?k(wt,t?X:H):E(t?U:B)}}(n)):k()}function W(t){return t.match(/[;\}\)\],]/)?E():E(B)}function H(t,e){return","==t?k(W):X(t,e,!1)}function X(t,e,n){var r=0==n?H:X,i=0==n?B:U;return"=>"==t?k(L,n?$:Q,N):"operator"==t?/\+\+|--/.test(e)||c&&"!"==e?k(r):c&&"<"==e&&C.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?k(D(">"),at(dt,">"),z,r):"?"==e?k(B,Z(":"),i):k(i):"quasi"==t?E(K,r):";"!=t?"("==t?st(U,")","call",r):"."==t?k(nt,r):"["==t?k(D("]"),W,Z("]"),z,r):c&&"as"==e?(C.marked="keyword",k(dt,r)):"regexp"==t?(C.state.lastType=C.marked="operator",C.stream.backUp(C.stream.pos-C.stream.start-1),k(i)):void 0:void 0}function K(t,e){return"quasi"!=t?E():"${"!=e.slice(e.length-2)?k(K):k(W,Y)}function Y(t){if("}"==t)return C.marked="string-2",C.state.tokenize=v,k(K)}function Q(t){return _(C.stream,C.state),E("{"==t?j:B)}function $(t){return _(C.stream,C.state),E("{"==t?j:U)}function J(t,e){if("target"==e)return C.marked="keyword",k(H)}function tt(t,e){if("target"==e)return C.marked="keyword",k(X)}function et(t){return":"==t?k(z,j):E(H,Z(";"),z)}function nt(t){if("variable"==t)return C.marked="property",k()}function rt(t,e){return"async"==t?(C.marked="property",k(rt)):"variable"==t||"keyword"==C.style?(C.marked="property","get"==e||"set"==e?k(it):(c&&C.state.fatArrowAt==C.stream.start&&(n=C.stream.match(/^\s*:\s*/,!1))&&(C.state.fatArrowAt=C.stream.pos+n[0].length),k(ot))):"number"==t||"string"==t?(C.marked=s?"property":C.style+" property",k(ot)):"jsonld-keyword"==t?k(ot):c&&M(e)?(C.marked="keyword",k(rt)):"["==t?k(B,ut,Z("]"),ot):"spread"==t?k(U,ot):"*"==e?(C.marked="keyword",k(rt)):":"==t?E(ot):void 0;var n}function it(t){return"variable"!=t?E(ot):(C.marked="property",k(Lt))}function ot(t){return":"==t?k(U):"("==t?E(Lt):void 0}function at(t,e,n){function r(i,o){if(n?n.indexOf(i)>-1:","==i){var a=C.state.lexical;return"call"==a.info&&(a.pos=(a.pos||0)+1),k((function(n,r){return n==e||r==e?E():E(t)}),r)}return i==e||o==e?k():n&&n.indexOf(";")>-1?E(t):k(Z(e))}return function(n,i){return n==e||i==e?k():E(t,r)}}function st(t,e,n){for(var r=3;r<arguments.length;r++)C.cc.push(arguments[r]);return k(D(e,n),at(t,e),z)}function lt(t){return"}"==t?k():E(j,lt)}function ut(t,e){if(c){if(":"==t)return k(dt);if("?"==e)return k(ut)}}function ct(t,e){if(c&&(":"==t||"in"==e))return k(dt)}function ht(t){if(c&&":"==t)return C.stream.match(/^\s*\w+\s+is\b/,!1)?k(B,pt,dt):k(dt)}function pt(t,e){if("is"==e)return C.marked="keyword",k()}function dt(t,e){return"keyof"==e||"typeof"==e||"infer"==e||"readonly"==e?(C.marked="keyword",k("typeof"==e?U:dt)):"variable"==t||"void"==e?(C.marked="type",k(bt)):"|"==e||"&"==e?k(dt):"string"==t||"number"==t||"atom"==t?k(bt):"["==t?k(D("]"),at(dt,"]",","),z,bt):"{"==t?k(D("}"),gt,z,bt):"("==t?k(at(_t,")"),ft,bt):"<"==t?k(at(dt,">"),dt):"quasi"==t?E(yt,bt):void 0}function ft(t){if("=>"==t)return k(dt)}function gt(t){return t.match(/[\}\)\]]/)?k():","==t||";"==t?k(gt):E(mt,gt)}function mt(t,e){return"variable"==t||"keyword"==C.style?(C.marked="property",k(mt)):"?"==e||"number"==t||"string"==t?k(mt):":"==t?k(dt):"["==t?k(Z("variable"),ct,Z("]"),mt):"("==t?E(Ft,mt):t.match(/[;\}\)\],]/)?void 0:k()}function yt(t,e){return"quasi"!=t?E():"${"!=e.slice(e.length-2)?k(yt):k(dt,vt)}function vt(t){if("}"==t)return C.marked="string-2",C.state.tokenize=v,k(yt)}function _t(t,e){return"variable"==t&&C.stream.match(/^\s*[?:]/,!1)||"?"==e?k(_t):":"==t?k(dt):"spread"==t?k(_t):E(dt)}function bt(t,e){return"<"==e?k(D(">"),at(dt,">"),z,bt):"|"==e||"."==t||"&"==e?k(dt):"["==t?k(dt,Z("]"),bt):"extends"==e||"implements"==e?(C.marked="keyword",k(dt)):"?"==e?k(dt,Z(":"),dt):void 0}function wt(t,e){if("<"==e)return k(D(">"),at(dt,">"),z,bt)}function xt(){return E(dt,St)}function St(t,e){if("="==e)return k(dt)}function Ct(t,e){return"enum"==e?(C.marked="keyword",k(Qt)):E(Et,ut,Pt,Tt)}function Et(t,e){return c&&M(e)?(C.marked="keyword",k(Et)):"variable"==t?(P(e),k()):"spread"==t?k(Et):"["==t?st(At,"]"):"{"==t?st(kt,"}"):void 0}function kt(t,e){return"variable"!=t||C.stream.match(/^\s*:/,!1)?("variable"==t&&(C.marked="property"),"spread"==t?k(Et):"}"==t?E():"["==t?k(B,Z("]"),Z(":"),kt):k(Z(":"),Et,Pt)):(P(e),k(Pt))}function At(){return E(Et,Pt)}function Pt(t,e){if("="==e)return k(U)}function Tt(t){if(","==t)return k(Ct)}function Mt(t,e){if("keyword b"==t&&"else"==e)return k(D("form","else"),j,z)}function Ot(t,e){return"await"==e?k(Ot):"("==t?k(D(")"),Rt,z):void 0}function Rt(t){return"var"==t?k(Ct,It):"variable"==t?k(It):E(It)}function It(t,e){return")"==t?k():";"==t?k(It):"in"==e||"of"==e?(C.marked="keyword",k(B,It)):E(B,It)}function Lt(t,e){return"*"==e?(C.marked="keyword",k(Lt)):"variable"==t?(P(e),k(Lt)):"("==t?k(L,D(")"),at(Dt,")"),z,ht,j,N):c&&"<"==e?k(D(">"),at(xt,">"),z,Lt):void 0}function Ft(t,e){return"*"==e?(C.marked="keyword",k(Ft)):"variable"==t?(P(e),k(Ft)):"("==t?k(L,D(")"),at(Dt,")"),z,ht,N):c&&"<"==e?k(D(">"),at(xt,">"),z,Ft):void 0}function Nt(t,e){return"keyword"==t||"variable"==t?(C.marked="type",k(Nt)):"<"==e?k(D(">"),at(xt,">"),z):void 0}function Dt(t,e){return"@"==e&&k(B,Dt),"spread"==t?k(Dt):c&&M(e)?(C.marked="keyword",k(Dt)):c&&"this"==t?k(ut,Pt):E(Et,ut,Pt)}function zt(t,e){return"variable"==t?Zt(t,e):jt(t,e)}function Zt(t,e){if("variable"==t)return P(e),k(jt)}function jt(t,e){return"<"==e?k(D(">"),at(xt,">"),z,jt):"extends"==e||"implements"==e||c&&","==t?("implements"==e&&(C.marked="keyword"),k(c?dt:B,jt)):"{"==t?k(D("}"),Gt,z):void 0}function Gt(t,e){return"async"==t||"variable"==t&&("static"==e||"get"==e||"set"==e||c&&M(e))&&C.stream.match(/^\s+[\w$\xa1-\uffff]/,!1)?(C.marked="keyword",k(Gt)):"variable"==t||"keyword"==C.style?(C.marked="property",k(Bt,Gt)):"number"==t||"string"==t?k(Bt,Gt):"["==t?k(B,ut,Z("]"),Bt,Gt):"*"==e?(C.marked="keyword",k(Gt)):c&&"("==t?E(Ft,Gt):";"==t||","==t?k(Gt):"}"==t?k():"@"==e?k(B,Gt):void 0}function Bt(t,e){if("!"==e)return k(Bt);if("?"==e)return k(Bt);if(":"==t)return k(dt,Pt);if("="==e)return k(U);var n=C.state.lexical.prev;return E(n&&"interface"==n.info?Ft:Lt)}function Ut(t,e){return"*"==e?(C.marked="keyword",k(Kt,Z(";"))):"default"==e?(C.marked="keyword",k(B,Z(";"))):"{"==t?k(at(Vt,"}"),Kt,Z(";")):E(j)}function Vt(t,e){return"as"==e?(C.marked="keyword",k(Z("variable"))):"variable"==t?E(U,Vt):void 0}function qt(t){return"string"==t?k():"("==t?E(B):"."==t?E(H):E(Wt,Ht,Kt)}function Wt(t,e){return"{"==t?st(Wt,"}"):("variable"==t&&P(e),"*"==e&&(C.marked="keyword"),k(Xt))}function Ht(t){if(","==t)return k(Wt,Ht)}function Xt(t,e){if("as"==e)return C.marked="keyword",k(Wt)}function Kt(t,e){if("from"==e)return C.marked="keyword",k(B)}function Yt(t){return"]"==t?k():E(at(U,"]"))}function Qt(){return E(D("form"),Et,Z("{"),D("}"),at($t,"}"),z,z)}function $t(){return E(Et,Pt)}function Jt(t,e,n){return e.tokenize==m&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(e.lastType)||"quasi"==e.lastType&&/\{\s*$/.test(t.string.slice(0,t.pos-(n||0)))}return L.lex=F.lex=!0,N.lex=!0,z.lex=!0,{startState:function(t){var e={tokenize:m,lastType:"sof",cc:[],lexical:new w((t||0)-o,0,"block",!1),localVars:n.localVars,context:n.localVars&&new O(null,null,!1),indented:t||0};return n.globalVars&&"object"==typeof n.globalVars&&(e.globalVars=n.globalVars),e},token:function(t,e){if(t.sol()&&(e.lexical.hasOwnProperty("align")||(e.lexical.align=!1),e.indented=t.indentation(),_(t,e)),e.tokenize!=y&&t.eatSpace())return null;var n=e.tokenize(t,e);return"comment"==r?n:(e.lastType="operator"!=r||"++"!=i&&"--"!=i?r:"incdec",S(e,n,r,i,t))},indent:function(e,r){if(e.tokenize==y||e.tokenize==v)return t.Pass;if(e.tokenize!=m)return 0;var i,s=r&&r.charAt(0),l=e.lexical;if(!/^\s*else\b/.test(r))for(var u=e.cc.length-1;u>=0;--u){var c=e.cc[u];if(c==z)l=l.prev;else if(c!=Mt&&c!=N)break}for(;("stat"==l.type||"form"==l.type)&&("}"==s||(i=e.cc[e.cc.length-1])&&(i==H||i==X)&&!/^[,\.=+\-*:?[\(]/.test(r));)l=l.prev;a&&")"==l.type&&"stat"==l.prev.type&&(l=l.prev);var h=l.type,p=s==h;return"vardef"==h?l.indented+("operator"==e.lastType||","==e.lastType?l.info.length+1:0):"form"==h&&"{"==s?l.indented:"form"==h?l.indented+o:"stat"==h?l.indented+(function(t,e){return"operator"==t.lastType||","==t.lastType||d.test(e.charAt(0))||/[,.]/.test(e.charAt(0))}(e,r)?a||o:0):"switch"!=l.info||p||0==n.doubleIndentSwitch?l.align?l.column+(p?0:1):l.indented+(p?0:o):l.indented+(/^(?:case|default)\b/.test(r)?o:2*o)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:l?null:"/*",blockCommentEnd:l?null:"*/",blockCommentContinue:l?null:" * ",lineComment:l?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:l?"json":"javascript",jsonldMode:s,jsonMode:l,expressionAllowed:Jt,skipExpression:function(e){S(e,"atom","atom","true",new t.StringStream("",2,null))}}})),t.registerHelper("wordChars","javascript",/[\w$]/),t.defineMIME("text/javascript","javascript"),t.defineMIME("text/ecmascript","javascript"),t.defineMIME("application/javascript","javascript"),t.defineMIME("application/x-javascript","javascript"),t.defineMIME("application/ecmascript","javascript"),t.defineMIME("application/json",{name:"javascript",json:!0}),t.defineMIME("application/x-json",{name:"javascript",json:!0}),t.defineMIME("application/manifest+json",{name:"javascript",json:!0}),t.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),t.defineMIME("text/typescript",{name:"javascript",typescript:!0}),t.defineMIME("application/typescript",{name:"javascript",typescript:!0})}(n(3710))},352:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n="",r=void 0!==e[5];return e[4]&&(n+="@supports (".concat(e[4],") {")),e[2]&&(n+="@media ".concat(e[2]," {")),r&&(n+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),n+=t(e),r&&(n+="}"),e[2]&&(n+="}"),e[4]&&(n+="}"),n})).join("")},e.i=function(t,n,r,i,o){"string"==typeof t&&(t=[[null,t,void 0]]);var a={};if(r)for(var s=0;s<this.length;s++){var l=this[s][0];null!=l&&(a[l]=!0)}for(var u=0;u<t.length;u++){var c=[].concat(t[u]);r&&a[c[0]]||(void 0!==o&&(void 0===c[5]||(c[1]="@layer".concat(c[5].length>0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=o),n&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=n):c[2]=n),i&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=i):c[4]="".concat(i)),e.push(c))}},e}},8393:t=>{"use strict";t.exports=function(t,e){return e||(e={}),t?(t=String(t.__esModule?t.default:t),/^['"].*['"]$/.test(t)&&(t=t.slice(1,-1)),e.hash&&(t+=e.hash),/["'() \t\n]|(%20)/.test(t)||e.needQuotes?'"'.concat(t.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):t):t}},5402:t=>{"use strict";t.exports=function(t){return t[1]}},1910:(t,e,n)=>{"use strict";n.r(e),n.d(e,{create:()=>Ot});var r,i,o,a,s=n(3710),l=n.n(s);function u(t){return 32===t||9===t}function c(t){return 10===t||13===t}function h(t){return t>=48&&t<=57}function p(t,e,n=i.DEFAULT){const r=function(t,e=!1){const n=t.length;let r=0,i="",o=0,a=16,s=0,l=0,p=0,d=0,f=0;function g(e,n){let i=0,o=0;for(;i<e||!n;){let e=t.charCodeAt(r);if(e>=48&&e<=57)o=16*o+e-48;else if(e>=65&&e<=70)o=16*o+e-65+10;else{if(!(e>=97&&e<=102))break;o=16*o+e-97+10}r++,i++}return i<e&&(o=-1),o}function m(){if(i="",f=0,o=r,l=s,d=p,r>=n)return o=n,a=17;let e=t.charCodeAt(r);if(u(e)){do{r++,i+=String.fromCharCode(e),e=t.charCodeAt(r)}while(u(e));return a=15}if(c(e))return r++,i+=String.fromCharCode(e),13===e&&10===t.charCodeAt(r)&&(r++,i+="\n"),s++,p=r,a=14;switch(e){case 123:return r++,a=1;case 125:return r++,a=2;case 91:return r++,a=3;case 93:return r++,a=4;case 58:return r++,a=6;case 44:return r++,a=5;case 34:return r++,i=function(){let e="",i=r;for(;;){if(r>=n){e+=t.substring(i,r),f=2;break}const o=t.charCodeAt(r);if(34===o){e+=t.substring(i,r),r++;break}if(92!==o){if(o>=0&&o<=31){if(c(o)){e+=t.substring(i,r),f=2;break}f=6}r++}else{if(e+=t.substring(i,r),r++,r>=n){f=2;break}switch(t.charCodeAt(r++)){case 34:e+='"';break;case 92:e+="\\";break;case 47:e+="/";break;case 98:e+="\b";break;case 102:e+="\f";break;case 110:e+="\n";break;case 114:e+="\r";break;case 116:e+="\t";break;case 117:const t=g(4,!0);t>=0?e+=String.fromCharCode(t):f=4;break;default:f=5}i=r}}return e}(),a=10;case 47:const l=r-1;if(47===t.charCodeAt(r+1)){for(r+=2;r<n&&!c(t.charCodeAt(r));)r++;return i=t.substring(l,r),a=12}if(42===t.charCodeAt(r+1)){r+=2;const e=n-1;let o=!1;for(;r<e;){const e=t.charCodeAt(r);if(42===e&&47===t.charCodeAt(r+1)){r+=2,o=!0;break}r++,c(e)&&(13===e&&10===t.charCodeAt(r)&&r++,s++,p=r)}return o||(r++,f=1),i=t.substring(l,r),a=13}return i+=String.fromCharCode(e),r++,a=16;case 45:if(i+=String.fromCharCode(e),r++,r===n||!h(t.charCodeAt(r)))return a=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return i+=function(){let e=r;if(48===t.charCodeAt(r))r++;else for(r++;r<t.length&&h(t.charCodeAt(r));)r++;if(r<t.length&&46===t.charCodeAt(r)){if(r++,!(r<t.length&&h(t.charCodeAt(r))))return f=3,t.substring(e,r);for(r++;r<t.length&&h(t.charCodeAt(r));)r++}let n=r;if(r<t.length&&(69===t.charCodeAt(r)||101===t.charCodeAt(r)))if(r++,(r<t.length&&43===t.charCodeAt(r)||45===t.charCodeAt(r))&&r++,r<t.length&&h(t.charCodeAt(r))){for(r++;r<t.length&&h(t.charCodeAt(r));)r++;n=r}else f=3;return t.substring(e,n)}(),a=11;default:for(;r<n&&y(e);)r++,e=t.charCodeAt(r);if(o!==r){switch(i=t.substring(o,r),i){case"true":return a=8;case"false":return a=9;case"null":return a=7}return a=16}return i+=String.fromCharCode(e),r++,a=16}}function y(t){if(u(t)||c(t))return!1;switch(t){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}return{setPosition:function(t){r=t,i="",o=0,a=16,f=0},getPosition:()=>r,scan:e?function(){let t;do{t=m()}while(t>=12&&t<=15);return t}:m,getToken:()=>a,getTokenValue:()=>i,getTokenOffset:()=>o,getTokenLength:()=>r-o,getTokenStartLine:()=>l,getTokenStartCharacter:()=>o-d,getTokenError:()=>f}}(t,!1),o=[];function a(t){return t?()=>t(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter()):()=>!0}function s(t){return t?()=>t(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter(),(()=>o.slice())):()=>!0}function l(t){return t?e=>t(e,r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter()):()=>!0}function p(t){return t?e=>t(e,r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter(),(()=>o.slice())):()=>!0}const d=s(e.onObjectBegin),f=p(e.onObjectProperty),g=a(e.onObjectEnd),m=s(e.onArrayBegin),y=a(e.onArrayEnd),v=p(e.onLiteralValue),_=l(e.onSeparator),b=a(e.onComment),w=l(e.onError),x=n&&n.disallowComments,S=n&&n.allowTrailingComma;function C(){for(;;){const t=r.scan();switch(r.getTokenError()){case 4:E(14);break;case 5:E(15);break;case 3:E(13);break;case 1:x||E(11);break;case 2:E(12);break;case 6:E(16)}switch(t){case 12:case 13:x?E(10):b();break;case 16:E(1);break;case 15:case 14:break;default:return t}}}function E(t,e=[],n=[]){if(w(t),e.length+n.length>0){let t=r.getToken();for(;17!==t;){if(-1!==e.indexOf(t)){C();break}if(-1!==n.indexOf(t))break;t=C()}}}function k(t){const e=r.getTokenValue();return t?v(e):(f(e),o.push(e)),C(),!0}return C(),17===r.getToken()?!!n.allowEmptyContent||(E(4,[],[]),!1):function t(){switch(r.getToken()){case 3:return function(){m(),C();let e=!0,n=!1;for(;4!==r.getToken()&&17!==r.getToken();){if(5===r.getToken()){if(n||E(4,[],[]),_(","),C(),4===r.getToken()&&S)break}else n&&E(6,[],[]);e?(o.push(0),e=!1):o[o.length-1]++,t()||E(4,[],[4,5]),n=!0}return y(),e||o.pop(),4!==r.getToken()?E(8,[4],[]):C(),!0}();case 1:return function(){d(),C();let e=!1;for(;2!==r.getToken()&&17!==r.getToken();){if(5===r.getToken()){if(e||E(4,[],[]),_(","),C(),2===r.getToken()&&S)break}else e&&E(6,[],[]);(10!==r.getToken()?(E(3,[],[2,5]),0):(k(!1),6===r.getToken()?(_(":"),C(),t()||E(4,[],[2,5])):E(5,[],[2,5]),o.pop(),1))||E(4,[],[2,5]),e=!0}return g(),2!==r.getToken()?E(7,[2],[]):C(),!0}();case 10:return k(!0);default:return function(){switch(r.getToken()){case 11:const t=r.getTokenValue();let e=Number(t);isNaN(e)&&(E(2),e=0),v(e);break;case 7:v(null);break;case 8:v(!0);break;case 9:v(!1);break;default:return!1}return C(),!0}()}}()?(17!==r.getToken()&&E(9,[],[]),!0):(E(4,[],[]),!1)}function d(t){switch(typeof t){case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"object":return t?Array.isArray(t)?"array":"object":"null";default:return"null"}}n(3457),n(7885),n(9103),n(3395),n(3520),function(t){t[t.lineFeed=10]="lineFeed",t[t.carriageReturn=13]="carriageReturn",t[t.space=32]="space",t[t._0=48]="_0",t[t._1=49]="_1",t[t._2=50]="_2",t[t._3=51]="_3",t[t._4=52]="_4",t[t._5=53]="_5",t[t._6=54]="_6",t[t._7=55]="_7",t[t._8=56]="_8",t[t._9=57]="_9",t[t.a=97]="a",t[t.b=98]="b",t[t.c=99]="c",t[t.d=100]="d",t[t.e=101]="e",t[t.f=102]="f",t[t.g=103]="g",t[t.h=104]="h",t[t.i=105]="i",t[t.j=106]="j",t[t.k=107]="k",t[t.l=108]="l",t[t.m=109]="m",t[t.n=110]="n",t[t.o=111]="o",t[t.p=112]="p",t[t.q=113]="q",t[t.r=114]="r",t[t.s=115]="s",t[t.t=116]="t",t[t.u=117]="u",t[t.v=118]="v",t[t.w=119]="w",t[t.x=120]="x",t[t.y=121]="y",t[t.z=122]="z",t[t.A=65]="A",t[t.B=66]="B",t[t.C=67]="C",t[t.D=68]="D",t[t.E=69]="E",t[t.F=70]="F",t[t.G=71]="G",t[t.H=72]="H",t[t.I=73]="I",t[t.J=74]="J",t[t.K=75]="K",t[t.L=76]="L",t[t.M=77]="M",t[t.N=78]="N",t[t.O=79]="O",t[t.P=80]="P",t[t.Q=81]="Q",t[t.R=82]="R",t[t.S=83]="S",t[t.T=84]="T",t[t.U=85]="U",t[t.V=86]="V",t[t.W=87]="W",t[t.X=88]="X",t[t.Y=89]="Y",t[t.Z=90]="Z",t[t.asterisk=42]="asterisk",t[t.backslash=92]="backslash",t[t.closeBrace=125]="closeBrace",t[t.closeBracket=93]="closeBracket",t[t.colon=58]="colon",t[t.comma=44]="comma",t[t.dot=46]="dot",t[t.doubleQuote=34]="doubleQuote",t[t.minus=45]="minus",t[t.openBrace=123]="openBrace",t[t.openBracket=91]="openBracket",t[t.plus=43]="plus",t[t.slash=47]="slash",t[t.formFeed=12]="formFeed",t[t.tab=9]="tab"}(r||(r={})),function(t){t.DEFAULT={allowTrailingComma:!1}}(i||(i={})),function(t){t[t.None=0]="None",t[t.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",t[t.UnexpectedEndOfString=2]="UnexpectedEndOfString",t[t.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",t[t.InvalidUnicode=4]="InvalidUnicode",t[t.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",t[t.InvalidCharacter=6]="InvalidCharacter"}(o||(o={})),function(t){t[t.OpenBraceToken=1]="OpenBraceToken",t[t.CloseBraceToken=2]="CloseBraceToken",t[t.OpenBracketToken=3]="OpenBracketToken",t[t.CloseBracketToken=4]="CloseBracketToken",t[t.CommaToken=5]="CommaToken",t[t.ColonToken=6]="ColonToken",t[t.NullKeyword=7]="NullKeyword",t[t.TrueKeyword=8]="TrueKeyword",t[t.FalseKeyword=9]="FalseKeyword",t[t.StringLiteral=10]="StringLiteral",t[t.NumericLiteral=11]="NumericLiteral",t[t.LineCommentTrivia=12]="LineCommentTrivia",t[t.BlockCommentTrivia=13]="BlockCommentTrivia",t[t.LineBreakTrivia=14]="LineBreakTrivia",t[t.Trivia=15]="Trivia",t[t.Unknown=16]="Unknown",t[t.EOF=17]="EOF"}(a||(a={}));const f=function(t,e=[],n=i.DEFAULT){let r={type:"array",offset:-1,length:-1,children:[],parent:void 0};function o(t){"property"===r.type&&(r.length=t-r.offset,r=r.parent)}function a(t){return r.children.push(t),t}const s={onObjectBegin:t=>{r=a({type:"object",offset:t,length:-1,parent:r,children:[]})},onObjectProperty:(t,e,n)=>{r=a({type:"property",offset:e,length:-1,parent:r,children:[]}),r.children.push({type:"string",value:t,offset:e,length:n,parent:r})},onObjectEnd:(t,e)=>{o(t+e),r.length=t+e-r.offset,r=r.parent,o(t+e)},onArrayBegin:(t,e)=>{r=a({type:"array",offset:t,length:-1,parent:r,children:[]})},onArrayEnd:(t,e)=>{r.length=t+e-r.offset,r=r.parent,o(t+e)},onLiteralValue:(t,e,n)=>{a({type:d(t),offset:e,length:n,parent:r,value:t}),o(e+n)},onSeparator:(t,e,n)=>{"property"===r.type&&(":"===t?r.colonOffset=e:","===t&&o(e))},onError:(t,n,r)=>{e.push({error:t,offset:n,length:r})}};p(t,s,n);const l=r.children[0];return l&&delete l.parent,l},g=function t(e,n,r=!1){if(function(t,e,n=!1){return e>=t.offset&&e<t.offset+t.length||n&&e===t.offset+t.length}(e,n,r)){const i=e.children;if(Array.isArray(i))for(let e=0;e<i.length&&i[e].offset<=n;e++){const o=t(i[e],n,r);if(o)return o}return e}};var m;!function(t){t[t.InvalidSymbol=1]="InvalidSymbol",t[t.InvalidNumberFormat=2]="InvalidNumberFormat",t[t.PropertyNameExpected=3]="PropertyNameExpected",t[t.ValueExpected=4]="ValueExpected",t[t.ColonExpected=5]="ColonExpected",t[t.CommaExpected=6]="CommaExpected",t[t.CloseBraceExpected=7]="CloseBraceExpected",t[t.CloseBracketExpected=8]="CloseBracketExpected",t[t.EndOfFileExpected=9]="EndOfFileExpected",t[t.InvalidCommentToken=10]="InvalidCommentToken",t[t.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",t[t.UnexpectedEndOfString=12]="UnexpectedEndOfString",t[t.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",t[t.InvalidUnicode=14]="InvalidUnicode",t[t.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",t[t.InvalidCharacter=16]="InvalidCharacter"}(m||(m={}));const y=["speed","priority","distance_influence","areas"],v=["if","else_if","else"],_=["multiply_by","limit_to"],b=v.concat(_);let w=[],x=[],S=[];function C(t){if(w=[],x=[],S=[],0===t.trim().length)return{errors:[j("root","must be an object",[0,t.length])],jsonErrors:[],conditionRanges:w,operatorValueRanges:x,areas:S};const e=[],n=f(t,e,{allowEmptyContent:!1,allowTrailingComma:!1,disallowComments:!0}),r=e.map((t=>j("syntax",function(t){switch(t){case 1:return"InvalidSymbol";case 2:return"InvalidNumberFormat";case 3:return"PropertyNameExpected";case 4:return"ValueExpected";case 5:return"ColonExpected";case 6:return"CommaExpected";case 7:return"CloseBraceExpected";case 8:return"CloseBracketExpected";case 9:return"EndOfFileExpected";case 10:return"InvalidCommentToken";case 11:return"UnexpectedEndOfComment";case 12:return"UnexpectedEndOfString";case 13:return"UnexpectedEndOfNumber";case 14:return"InvalidUnicode";case 15:return"InvalidEscapeCharacter";case 16:return"InvalidCharacter"}return"<unknown ParseErrorCode>"}(t.error),[t.offset,t.offset+Math.max(1,t.length)])));return{errors:n?(i=n,Z("root",i,(t=>y.indexOf(t.value)>=0),((t,e,n)=>[]),`possible keys: ${W(y)}`,E)):[],jsonErrors:r,conditionRanges:w,operatorValueRanges:x,areas:S};var i}function E(t,e,n){if("null"===n.type)return[j(`${e.value}`,"must not be null",V(n))];if("speed"===e.value||"priority"===e.value)return function(t,e){const n=L(t,e,0,-1,k);if(n.length>0)return n;const r=e.children,i=[];for(let t=0;t<r.length;++t)for(let e=0;e<r[t].children.length;++e){const n=r[t].children[e].children[0].value;v.indexOf(n)>=0&&i.push(n)}let o="";for(let e=0;e<i.length;++e)"else_if"!==i[e]&&"else"!==i[e]||"else_if"===o||"if"===o||n.push(j(`${t}[${e}]`,`'${i[e]}' clause must be preceded by 'if' or 'else_if'`,V(r[e]))),o=i[e];return n}(e.value,n);if("distance_influence"===e.value)return function(t){return B(t)?[]:[j("distance_influence",`must be a number. given type: ${q(t)}`,V(t))]}(n);if("areas"===e.value)return Z("areas",n,z,((t,e,n)=>(S=e,[])),"names may only contain a-z, digits and _",T);throw`Unexpected root key ${e.value}`}function k(t,e,n){return Z(t,e,(t=>b.indexOf(t.value)>=0),A,`possible keys: ${W(b)}`,P)}function A(t,e,n){const r=[];e.length>2&&r.push(j(t,`too many keys. maximum: 2. given: ${e.sort()}`,n));const i=e.some((t=>v.indexOf(t)>=0)),o=e.some((t=>_.indexOf(t)>=0));return i||r.push(j(t,`every statement must have a clause ${W(v)}. given: ${e}`,n)),o||r.push(j(t,`every statement must have an operator ${W(_)}. given: ${e}`,n)),r}function P(t,e,n){const r=[],i=v.indexOf(e.value)>=0,o=_.indexOf(e.value)>=0;if(i&&("else"===e.value?U(n)&&""===n.value||r.push(j(`${t}[else]`,`must be an empty string. given: '${n.value}'`,V(n))):U(n)?w.push(V(n)):r.push(j(`${t}[${e.value}]`,`must be a string. given type: ${q(n)}`,V(n)))),o&&(U(n)?x.push(V(n)):r.push(j(`${t}[${e.value}]`,`must be a string. given type: ${q(n)}`,V(n)))),i===o)throw`Unexpected statement: ${i} ${o} ${e} ${n}`;return r}function T(t,e,n){const r=["type","geometry","id","properties"],i=`possible keys: ${W(r)}`;return Z(`${t}[${e.value}]`,n,(t=>r.indexOf(t.value)>=0),M,i,O)}function M(t,e,n){const r=["type","geometry"],i=[];for(let o=0;o<r.length;o++)e.indexOf(r[o])<0&&i.push(j(t,`missing '${r[o]}'. given: ${W(e)}`,n));return i}function O(t,e,n){if("type"===e.value)return U(n)?"Feature"!==n.value?[j(`${t}[${e.value}]`,`must be "Feature". given: "${n.value}"`,V(n))]:[]:[j(`${t}[${e.value}]`,`must be "Feature". given type: ${q(n)}`,V(n))];if("properties"===e.value)return Z(`${t}[${e.value}]`,n,(()=>!0),(()=>[]),"",(()=>[]));if("id"!==e.value){if("geometry"===e.value){const r=["type","coordinates"],i=`possible keys: ${W(r)}`,o=t=>r.indexOf(t.value)>=0;return Z(`${t}[${e.value}]`,n,o,R,i,I)}return console.error(`unexpected area field ${e.value}`),[]}return U(n)?void 0:[j(`${t}[${e.value}]`,`must be a string. given type: ${q(n)}`,V(n))]}function R(t,e,n){const r=["type","coordinates"],i=[];for(let o=0;o<r.length;o++)e.indexOf(r[o])<0&&i.push(j(t,`missing '${r[o]}'. given: ${W(e)}`,n));return i}function I(t,e,n){if("type"===e.value)return"Polygon"!==n.value?[j(`${t}[${e.value}]`,`must be "Polygon". given: '${n.value}'`,V(n))]:[];if("coordinates"===e.value)return function(t,e,n){return L(t,n,1,-1,F)}(`${t}[${e.value}]`,0,n);throw`unexpected geometry field ${e.value}`}function L(t,e,n,r,i){if(!function(t){return"array"===t.type}(e))return[j(t,`must be an array. given type: ${q(e)}`,V(e))];const o=e.children;if(o.length<n)return[j(t,`minimum length: ${n}, given: ${o.length}`,V(e))];if(r>=0&&o.length>r)return[j(t,`maximum length: ${r}, given: ${o.length}`,V(e))];const a=[];for(let e=0;e<o.length;++e){const n=o[e];a.push.apply(a,i(`${t}[${e}]`,n,e))}return a}function F(t,e,n){const r=L(t,e,4,-1,N);if(r.length>0)return r;const i=e.children[0],o=e.children[e.children.length-1];return s=o,(a=i).children[0].value!==s.children[0].value||a.children[1].value!==s.children[1].value?[j(`${t}`,"the last point must be equal to the first",V(o))]:[];var a,s}function N(t,e,n){return L(t,e,2,2,D)}function D(t,e,n){const r=[];return B(e)?(0===n&&(e.value<-180||e.value>180)&&r.push(j(`${t}`,"longitude must be in [-180, +180]",V(e))),1===n&&(e.value<-90||e.value>90)&&r.push(j(`${t}`,"latitude must be in [-90, +90]",V(e)))):r.push(j(t,"must be a number",V(e))),r}function z(t){return/^[a-z][0-9A-Za-z_]*$/g.test(t.value)}function Z(t,e,n,r,i,o){if("object"!==e.type)return[j(t,`must be an object. given type: ${q(e)}`,V(e))];const a=function(t,e,n,r){const i=[],o=new Set,a=r.children;for(let r=0;r<a.length;++r){if(!G(a[r]))throw`Expected a key-value pair, but got: ${a[r]}`;const s=a[r].children[0];0===s.value.length||0===s.value.trim().length?i.push(j(t,`keys must be non-empty and must not only consist of whitespace. given: '${s.value}'`,V(s))):e(s)?o.has(s.value)?i.push(j(t,`keys must be unique. duplicate: '${s.value}'`,V(s))):o.add(s.value):i.push(j(t,`${n}. given: '${s.value}'`,V(s)))}return{errors:i,keys:Array.from(o)}}(t,n,i,e);if(a.errors.length>0)return a.errors;const s=[];return s.push.apply(s,r(t,a.keys,V(e))),s.length>0||s.push.apply(s,function(t,e,n){const r=[];for(let i=0;i<e.length;++i){if(!G(e[i]))throw`Expected a key-value pair, but got: ${e[i]}`;const o=e[i].children[0],a=e[i].children[1];if(a)r.push.apply(r,n(t,o,a));else{const e="root"===t?o.value:`${t}[${o.value}]`;r.push(j(e,"missing value",V(o)))}}return r}(t,e.children,o)),s}function j(t,e,n){return{path:t,message:e,range:n}}function G(t){return"property"===t.type}function B(t){return"number"===t.type}function U(t){return"string"===t.type}function V(t){return[t.offset,t.offset+t.length]}function q(t){return t.type}function W(t){return`[${t.map((t=>`'${t}'`)).join(", ")}]`}const H=["(",")","<",">"],X=["||","&&","==","!=","<=",">="],K=["*","/","+","-"],Y=[];function Q(t,e,n,r){if(e<0||e>=t.length)throw`pos ${e} out of range: [0, ${t.length}[`;const i=$(t,n,r);for(let t=0;t<i.ranges.length;++t){const n=i.ranges[t];if(n[0]<=e&&e<n[1])return{token:i.tokens[t],range:n};if(n[0]>e)return{token:null,range:0===t?[0,n[0]]:[i.ranges[t-1][1],n[0]]}}return{token:null,range:0===i.ranges.length?[0,t.length]:[i.ranges[i.ranges.length-1][1],t.length]}}function $(t,e,n){let r=[],i=[];const o=function(s,l){return s>=t.length?(a(s-l,s),{ranges:r,tokens:i}):function(t,e,n){return n.indexOf(t.slice(e,e+2))>=0}(t,s,n)?(a(s-l,s),a(s,s+2),o(s+2,0)):function(t,e,n){return n.indexOf(t[e])>=0}(t,s,e)?(a(s-l,s),a(s,s+1),o(s+1,0)):function(t,e){return""!==t.slice(e,e+1).trim()}(t,s)?(l++,o(s+1,l)):(a(s-l,s),o(s+1,0))},a=function(e,n){n>e&&(i.push(t.slice(e,n)),r.push([e,n]))};return o(0,0)}function J(t,e,n,r){return[n===e.length?t.length:e[n][0],r===e.length?t.length:e[r-1][e[r-1].length-1]]}const tt=["==","!="],et=["<","<=",">",">=","==","!="],nt=["||","&&"];let rt,it,ot,at;function st(t,e,n){const r=function(t){return $(t,H,X)}(t),i=function(t,e,n){for(let[t,n]of Object.entries(e))if("enum"===n.type){if(n.values.length<1)return gt(`no values given for enum category ${t}`)}else if("boolean"!==n.type&&"numeric"!==n.type)return gt(`unknown category type: ${n.type} for category ${t}`);rt=e,it=n,ot=t,at=0;const r=lt();return null!==r.error?r:ht()?{error:null,range:[],completions:[]}:gt(`unexpected token '${ot[at]}'`,[at,at+1],nt)}(r.tokens,e,n);return i.tokens=r.tokens,null!==i.error&&(i.range=J(t,r.ranges,i.range[0],i.range[1])),i}function lt(){const t=ut();if(null!==t.error)return t;if(ht())return{error:null,range:[],completions:[]};for(;e=ot[at],nt.indexOf(e)>=0;){if(pt(),ht())return gt(`unexpected token '${ot[at-1]}'`,[at-1,at],[]);const t=ut();if(null!==t.error)return t}var e;return{error:null,range:[],completions:[]}}function ut(){return dt()&&"enum"===rt[ot[at]].type?ct(tt,((t,e,n)=>function(t,e){return rt[t].values.indexOf(e)>=0}(t,n)),((t,e,n)=>void 0!==rt[t]?rt[t].values:[])):dt()&&"numeric"===rt[ot[at]].type?ct(et,((t,e,n)=>function(t){return!isNaN(Number(t))}(n)),((t,e,n)=>["__hint__type a number"])):ft(ot[at])?(at++,{error:null,range:[],completions:[]}):dt()&&"boolean"===rt[ot[at]].type?at+1===ot.length||tt.indexOf(ot[at+1])<0?(at++,{error:null,range:[],completions:[]}):ct(tt,((t,e,n)=>ft(n)),((t,e,n)=>["true","false"])):function(){const t=ot[at];return"string"==typeof t&&"in_"===t.substr(0,3)}()?function(){const t=ot[at];if(t.length<"in_".length)return void console.error(`expected something like 'in_xyz', but got: '${t}'`);const e=t.substring("in_".length);return it.indexOf(e)<0?gt(`unknown area: '${e}'`,[at,at+1],it.map((t=>"in_"+t))):at+1===ot.length||tt.indexOf(ot[at+1])<0?(at++,{error:null,range:[],completions:[]}):ct(tt,((t,e,n)=>ft(n)),((t,e,n)=>["true","false"]))}():"("===ot[at]?function(){const t=at;if(ht())return gt("unmatched opening '('",[t,at],[]);pt();const e=lt();return null!==e.error?e:")"===ot[at]?(pt(),{error:null,range:[],completions:[]}):gt("unmatched opening '('",[t,at],[])}():ht()?gt("empty comparison",[at,at],[]):function(){const t=ot[at];return"string"==typeof t&&it.indexOf(t)>=0}()?function(){const t=ot[at];if("in_"!==t.substring(0,3))return gt("area names must be prefixed with 'in_'",[at,at+1],it.map((t=>"in_"+t)));console.error(`${t} is a valid area operator and should have been detected earlier`)}():gt(`unexpected token '${ot[at]}'`,[at,at+1],Object.keys(rt).concat(it.map((t=>"in_"+t))).concat(["true","false"]))}function ct(t,e,n){if(at+1>=ot.length)return gt("invalid comparison. missing operator.",[at,at+1],[]);const r=ot[at],i=ot[at+1];if(t.indexOf(i)<0)return gt(`invalid operator '${i}'`,[at+1,at+2],t);if(at+2>=ot.length)return gt("invalid comparison. missing value.",[at,at+2],[]);const o=ot[at+2];return e(r,i,o)?(at+=3,{error:null,range:[],completions:[]}):gt(`invalid ${r}: '${o}'`,[at+2,at+3],n(r,i,o))}function ht(){return at===ot.length}function pt(){at++}function dt(){return void 0!==rt[ot[at]]}function ft(t){return"true"===t||"false"===t}function gt(t,e,n){return{error:t,range:e,completions:n}}const mt=["+","-","*"];let yt,vt,_t;function bt(t,e){const n=function(t){return $(t,K,Y)}(t),r=function(t,e){yt=e,vt=t,_t=0;const n=function(){const t=wt();if(null!==t.error)return t;if(xt())return{error:null,range:[],completions:[]};for(;e=void 0,e=vt[_t],mt.indexOf(e)>=0;){if(St(),xt())return Ct(`unexpected token '${vt[_t-1]}'`,[_t-1,_t],[]);const t=wt();if(null!==t.error)return t}var e;return{error:null,range:[],completions:[]}}();return null!==n.error?n:xt()?t.reduce(((t,n)=>t+(e.indexOf(n)>=0)),0)>1?Ct("too many encoded values, max: 1",[0,vt.length],[]):{error:null,range:[],completions:[]}:Ct(`unexpected token '${vt[_t]}'`,[_t,_t+1],mt)}(n.tokens,e);return r.tokens=n.tokens,null!==r.error&&(r.range=J(t,n.ranges,r.range[0],r.range[1])),r}function wt(){return xt()?Ct("empty expression",[_t,_t],[]):yt.indexOf(vt[_t])>=0||(t=vt[_t],!isNaN(Number(t)))?(St(),{error:null,range:[],completions:[]}):Ct(`unexpected token '${vt[_t]}'`,[_t,_t+1],["__hint__type a number"].concat(yt));var t}function xt(){return _t===vt.length}function St(){_t++}function Ct(t,e,n){return{error:t,range:e,completions:n}}function Et(t,e,n,r){const i=function(t){for(let e=t.length-1;e>=0;--e)if(""!==t.slice(e,e+1).trim())return e;return-1}(t);if(e>i){let i=t;for(;i.length<e;)i+=" ";i=i.slice(0,e),i+="…";const o=n(i),a=r(i,e);if(o.range[0]!==a.range[0])return{suggestions:[],range:null};const s=o.completions.filter((t=>kt(t,a.token.substring(0,a.token.length-1))));return{suggestions:s,range:0===s.length?null:[a.range[0],e]}}{let i=r(t,e);const o=t.substring(0,i.range[0])+"…"+t.substring(i.range[1]),a=r(o,i.range[0]),s=n(o);if(s.range[0]!==a.range[0])return{suggestions:[],range:null};const l=s.completions.filter((t=>kt(t,null===i.token?a.token.substring(0,a.token.length-1):i.token.substring(0,e-i.range[0]))));return{suggestions:l,range:0===l.length?null:[a.range[0],null===i.token?e:i.range[1]]}}}function kt(t,e){return t.substring(0,e.length)===e}function At(t,e){for(;e>=t.length;)t+=" ";const n=function(t,e){if(0===t.trim().length)return{path:[],signature:["root"],tokenRange:[]};const n=f(t,[],{allowEmptyContent:!1,allowTrailingComma:!1,disallowComments:!0});if(!n)return{path:[],signature:[],tokenRange:[]};const r=g(n,e,!0);if(!r)return{path:[],signature:[],tokenRange:[]};const i=function(t){const e=[t];let n=t;for(;n.parent;)e.push(n.parent),n=n.parent;return e.reverse(),e}(r),o=i.map(((t,e)=>function(t,e){if("object"===t.type)return"object";if("property"===t.type)return null!==e&&t.children[1]===e?`property[${t.children[0].value}]`:"property";if("array"===t.type)return null!==e?`array[${t.children.indexOf(e)}]`:"array";if("string"===t.type||"number"===t.type||"boolean"===t.type){if(t.parent&&"property"===t.parent.type){if(t.parent.children[0]===t)return"key";if(t.parent.children[1]===t)return"value";throw"a literal in a property should be the first or second child"}return"literal"}return`unknown[${t.type}]`}(t,e+1<i.length?i[e+1]:null)));o.unshift("root");const a=[r.offset,r.offset+r.length];return"property"===r.type&&r.colonOffset&&e>r.colonOffset&&(o[o.length-1]=`property[${r.children[0].value}]`,o.push("value"),a[0]=r.colonOffset+1),{path:i,signature:o,tokenRange:a}}(t,e),r=n.signature.join("-");if(/^root-object(-property|-property-key)?$/.test(r))return{suggestions:['"speed"','"priority"','"distance_influence"','"areas"'].filter((t=>!Pt(n.path[0].children,n.path[1],t))),range:"key"===n.signature[n.signature.length-1]?n.tokenRange:[e,e+1]};if(/^root-object-property\[distance_influence]-value$/.test(r))return{suggestions:["__hint__type a number"],range:n.tokenRange};if(/^root-object-property\[(speed|priority)]-array\[[0-9]+]-object(-property|-property-key)?$/.test(r)){const t=['"if"','"else_if"','"else"'],r=['"limit_to"','"multiply_by"'],i=n.signature.length>4&&Tt(n.path[3].children,n.path[4],t),o=n.signature.length>4&&Tt(n.path[3].children,n.path[4],r);let a=[];return i||a.push(...t),o||a.push(...r),{suggestions:a,range:"key"===n.signature[n.signature.length-1]?n.tokenRange:[e,e+1]}}return/^root-object-property\[(speed|priority)]-array\[[0-9]+]-object-property\[(else)]-value$/.test(r)?{suggestions:['""'],range:[e,e+2]}:/^root-object-property\[(speed|priority)]-array\[[0-9]+]-object-property\[(if|else_if)]-value$/.test(r)?{suggestions:["__hint__type a condition"],range:n.tokenRange}:/^root-object-property\[(speed|priority)]-array\[[0-9]+]-object-property\[(limit_to|multiply_by)]-value$/.test(r)?{suggestions:["__hint__type an expression"],range:n.tokenRange}:/^root-object-property\[areas]-object(-property-key)?$/.test(r)?{suggestions:["__hint__type an area name"],range:n.tokenRange}:/^root-object-property\[areas]-object-property\[[a-zA-Z0-9_]*]-object(-property-key)?$/.test(r)?{suggestions:['"geometry"','"type"'].filter((t=>!Pt(n.path[4].children,n.path[5],t))),range:"key"===n.signature[n.signature.length-1]?n.tokenRange:[e,e+1]}:/^root-object-property\[areas]-object-property\[[a-zA-Z0-9_]*]-object-property\[type]-value$/.test(r)?{suggestions:['"Feature"'],range:n.tokenRange}:/^root-object-property\[areas]-object-property\[[a-zA-Z0-9_]*]-object-property\[geometry]-object(-property-key)?$/.test(r)?{suggestions:['"type"','"coordinates"'].filter((t=>!Pt(n.path[6].children,n.path[7],t))),range:"key"===n.signature[n.signature.length-1]?n.tokenRange:[e,e+1]}:/^root-object-property\[areas]-object-property\[[a-zA-Z0-9_]*]-object-property\[geometry]-object-property\[type]-value$/.test(r)?{suggestions:['"Polygon"'],range:n.tokenRange}:{suggestions:[],range:[]}}function Pt(t,e,n){return t.some((t=>t!==e&&t.children&&`"${t.children[0].value}"`===n))}function Tt(t,e,n){return t.some((t=>t!==e&&t.children&&n.indexOf(`"${t.children[0].value}"`)>=0))}class Mt{cm;_categories={};_numericCategories=[];_validListener;constructor(t,e){this.categories=t,this.cm=l()(e,{lineNumbers:!1,matchBrackets:!0,autoCloseBrackets:!0,mode:{name:"javascript",json:!0},extraKeys:{"Ctrl-Space":this.showAutoCompleteSuggestions,"Alt-Enter":this.showAutoCompleteSuggestions},lint:{getAnnotations:this.getAnnotations},gutters:[]}),this.cm.on("cursorActivity",(t=>{const e=this.cm.state.completionActive;this.cm.closeHint(),e&&this.showAutoCompleteSuggestions()}))}set categories(t){this._categories=t,0===Object.keys(t).length&&console.warn("Empty list of categories provided to Custom Model Editor"),this._numericCategories=[],Object.entries(this._categories).forEach((([t,e])=>{"numeric"===e.type&&this._numericCategories.push(t)}))}set value(t){this.cm.setValue(t)}get value(){return this.cm.getValue()}get jsonObj(){try{return JSON.parse(this.cm.getValue())}catch(t){throw"invalid json: "+this.cm.getValue()+"error: "+t}}getUsedCategories=()=>{const t=this.getCurrentErrors(this.cm.getValue(),this.cm);return 0!==t.errors.length&&console.warn("invalid custom model",t.errors),t.usedCategories};setExtraKey=(t,e)=>{this.cm.getOption("extraKeys")[t]=e};set validListener(t){this._validListener=t}getAnnotations=(t,e,n)=>{const r=this.getCurrentErrors(t,n).errors;return this._validListener&&this._validListener(0===r.length),r};getCurrentErrors=(t,e)=>{const n=C(t),r=n.errors.map(((t,n)=>({message:t.path+": "+t.message,severity:"error",from:e.posFromIndex(t.range[0]),to:e.posFromIndex(t.range[1])}))),i=n.areas,o=new Set;return n.conditionRanges.forEach(((n,a)=>{const s=t.substring(n[0],n[1]);if(s.length<3||'"'!==s[0]||'"'!==s[s.length-1])return void r.push({message:`must be a non-empty string with double quotes, e.g. "true". given: ${s}`,severity:"error",from:e.posFromIndex(n[0]),to:e.posFromIndex(n[1])});const l=st(s.substring(1,s.length-1),this._categories,i);null!==l.error&&r.push({message:l.error,severity:"error",from:e.posFromIndex(n[0]+l.range[0]+1),to:e.posFromIndex(n[0]+l.range[1]+1)}),Object.keys(this._categories).filter((t=>l.tokens.includes(t))).forEach((t=>o.add(t)))})),n.operatorValueRanges.forEach(((n,i)=>{const a=t.substring(n[0],n[1]);if(a.length<3||'"'!==a[0]||'"'!==a[a.length-1])return void r.push({message:`must be a non-empty string with double quotes, e.g. "100". given: ${a}`,severity:"error",from:e.posFromIndex(n[0]),to:e.posFromIndex(n[1])});const s=bt(a.substring(1,a.length-1),this._numericCategories);null!==s.error&&r.push({message:s.error,severity:"error",from:e.posFromIndex(n[0]+s.range[0]+1),to:e.posFromIndex(n[0]+s.range[1]+1)}),this._numericCategories.filter((t=>s.tokens.includes(t))).forEach((t=>o.add(t)))})),0===r.length&&n.jsonErrors.forEach((t=>{r.push({message:t.path+": "+t.message,severity:"error",from:e.posFromIndex(t.range[0]),to:e.posFromIndex(t.range[1])})})),{errors:r,usedCategories:Array.from(o)}};showAutoCompleteSuggestions=()=>{const t=C(this.cm.getValue()),e=this.cm.indexFromPos(this.cm.getCursor()),n=At(this.cm.getValue(),e);if(n.suggestions.length>0)if(1===n.suggestions.length&&"__hint__type a condition"===n.suggestions[0])this._completeExpression(n,e,((e,n)=>function(t,e,n,r){return Et(t,e,(t=>st(t,n,r)),((t,e)=>function(t,e){return Q(t,e,H,X)}(t,e)))}(e,n,this._categories,t.areas)));else if(1===n.suggestions.length&&"__hint__type an expression"===n.suggestions[0])this._completeExpression(n,e,((t,e)=>function(t,e,n){return Et(t,e,(t=>bt(t,n)),((t,e)=>function(t,e){return Q(t,e,K,Y)}(t,e)))}(t,e,this._numericCategories)));else{const t=this.cm.indexFromPos({line:this.cm.getCursor().line,ch:0}),e=this.cm.indexFromPos({line:this.cm.getCursor().line+1,ch:0}),r=Math.max(t,n.range[0]);let i=Math.min(e,n.range[1]);i>r&&/\r\n|\r|\n/g.test(this.cm.getValue()[i-1])&&i--;const o=[this.cm.posFromIndex(r),this.cm.posFromIndex(i)];this._suggest(o,n.suggestions)}};_completeExpression=(t,e,n)=>{let r=t.range[0],i=t.range[1];'"'===this.cm.getValue()[r]&&r++,'"'===this.cm.getValue()[i-1]&&i--;const o=n(this.cm.getValue().substring(r,i),e-r);if(o.suggestions.length>0){const t=[this.cm.posFromIndex(o.range[0]+r),this.cm.posFromIndex(o.range[1]+r)];this._suggest(t,o.suggestions.sort())}};_suggest=(t,e)=>{const n={hint:function(){const n={from:t[0],to:t[1],list:e.map((t=>{return e="__hint__",t.substr(0,e.length)===e?{text:"",displayText:t.substring("__hint__".length)}:{text:t};var e}))};return l().on(n,"pick",(function(t){})),n},completeSingle:!1};this.cm.showHint(n)}}function Ot(t,e){return new Mt(t,e)}},4064:(t,e,n)=>{"use strict";function r(){}function i(t){return null==t?r:function(){return this.querySelector(t)}}function o(t){return null==t?[]:Array.isArray(t)?t:Array.from(t)}function a(){return[]}function s(t){return function(e){return e.matches(t)}}n.r(e),n.d(e,{HeightGraph:()=>pr,createMapMarker:()=>dr});var l=Array.prototype.find;function u(){return this.firstElementChild}var c=Array.prototype.filter;function h(){return Array.from(this.children)}function p(t){return new Array(t.length)}function d(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function f(t){return function(){return t}}function g(t,e,n,r,i,o){for(var a,s=0,l=e.length,u=o.length;s<u;++s)(a=e[s])?(a.__data__=o[s],r[s]=a):n[s]=new d(t,o[s]);for(;s<l;++s)(a=e[s])&&(i[s]=a)}function m(t,e,n,r,i,o,a){var s,l,u,c=new Map,h=e.length,p=o.length,f=new Array(h);for(s=0;s<h;++s)(l=e[s])&&(f[s]=u=a.call(l,l.__data__,s,e)+"",c.has(u)?i[s]=l:c.set(u,l));for(s=0;s<p;++s)u=a.call(t,o[s],s,o)+"",(l=c.get(u))?(r[s]=l,l.__data__=o[s],c.delete(u)):n[s]=new d(t,o[s]);for(s=0;s<h;++s)(l=e[s])&&c.get(f[s])===l&&(i[s]=l)}function y(t){return t.__data__}function v(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function _(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}d.prototype={constructor:d,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var b="http://www.w3.org/1999/xhtml";const w={svg:"http://www.w3.org/2000/svg",xhtml:b,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function x(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),w.hasOwnProperty(e)?{space:w[e],local:t}:t}function S(t){return function(){this.removeAttribute(t)}}function C(t){return function(){this.removeAttributeNS(t.space,t.local)}}function E(t,e){return function(){this.setAttribute(t,e)}}function k(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function A(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function P(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function T(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function M(t){return function(){this.style.removeProperty(t)}}function O(t,e,n){return function(){this.style.setProperty(t,e,n)}}function R(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function I(t,e){return t.style.getPropertyValue(e)||T(t).getComputedStyle(t,null).getPropertyValue(e)}function L(t){return function(){delete this[t]}}function F(t,e){return function(){this[t]=e}}function N(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function D(t){return t.trim().split(/^|\s+/)}function z(t){return t.classList||new Z(t)}function Z(t){this._node=t,this._names=D(t.getAttribute("class")||"")}function j(t,e){for(var n=z(t),r=-1,i=e.length;++r<i;)n.add(e[r])}function G(t,e){for(var n=z(t),r=-1,i=e.length;++r<i;)n.remove(e[r])}function B(t){return function(){j(this,t)}}function U(t){return function(){G(this,t)}}function V(t,e){return function(){(e.apply(this,arguments)?j:G)(this,t)}}function q(){this.textContent=""}function W(t){return function(){this.textContent=t}}function H(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}function X(){this.innerHTML=""}function K(t){return function(){this.innerHTML=t}}function Y(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}function Q(){this.nextSibling&&this.parentNode.appendChild(this)}function $(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function J(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===b&&e.documentElement.namespaceURI===b?e.createElement(t):e.createElementNS(n,t)}}function tt(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function et(t){var e=x(t);return(e.local?tt:J)(e)}function nt(){return null}function rt(){var t=this.parentNode;t&&t.removeChild(this)}function it(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function ot(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function at(t){return t.trim().split(/^|\s+/).map((function(t){var e="",n=t.indexOf(".");return n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}))}function st(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,o=e.length;r<o;++r)n=e[r],t.type&&n.type!==t.type||n.name!==t.name?e[++i]=n:this.removeEventListener(n.type,n.listener,n.options);++i?e.length=i:delete this.__on}}}function lt(t,e,n){return function(){var r,i=this.__on,o=function(t){return function(e){t.call(this,e,this.__data__)}}(e);if(i)for(var a=0,s=i.length;a<s;++a)if((r=i[a]).type===t.type&&r.name===t.name)return this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=o,r.options=n),void(r.value=e);this.addEventListener(t.type,o,n),r={type:t.type,name:t.name,value:e,listener:o,options:n},i?i.push(r):this.__on=[r]}}function ut(t,e,n){var r=T(t),i=r.CustomEvent;"function"==typeof i?i=new i(e,n):(i=r.document.createEvent("Event"),n?(i.initEvent(e,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(e,!1,!1)),t.dispatchEvent(i)}function ct(t,e){return function(){return ut(this,t,e)}}function ht(t,e){return function(){return ut(this,t,e.apply(this,arguments))}}Z.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var pt=[null];function dt(t,e){this._groups=t,this._parents=e}function ft(t){return"string"==typeof t?new dt([[document.querySelector(t)]],[document.documentElement]):new dt([[t]],pt)}function gt(t,e){if(t=function(t){let e;for(;e=t.sourceEvent;)t=e;return t}(t),void 0===e&&(e=t.currentTarget),e){var n=e.ownerSVGElement||e;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=t.clientX,r.y=t.clientY,[(r=r.matrixTransform(e.getScreenCTM().inverse())).x,r.y]}if(e.getBoundingClientRect){var i=e.getBoundingClientRect();return[t.clientX-i.left-e.clientLeft,t.clientY-i.top-e.clientTop]}}return[t.pageX,t.pageY]}function mt(t){return"string"==typeof t?new dt([document.querySelectorAll(t)],[document.documentElement]):new dt([o(t)],pt)}dt.prototype=function(){return new dt([[document.documentElement]],pt)}.prototype={constructor:dt,select:function(t){"function"!=typeof t&&(t=i(t));for(var e=this._groups,n=e.length,r=new Array(n),o=0;o<n;++o)for(var a,s,l=e[o],u=l.length,c=r[o]=new Array(u),h=0;h<u;++h)(a=l[h])&&(s=t.call(a,a.__data__,h,l))&&("__data__"in a&&(s.__data__=a.__data__),c[h]=s);return new dt(r,this._parents)},selectAll:function(t){t="function"==typeof t?function(t){return function(){return o(t.apply(this,arguments))}}(t):function(t){return null==t?a:function(){return this.querySelectorAll(t)}}(t);for(var e=this._groups,n=e.length,r=[],i=[],s=0;s<n;++s)for(var l,u=e[s],c=u.length,h=0;h<c;++h)(l=u[h])&&(r.push(t.call(l,l.__data__,h,u)),i.push(l));return new dt(r,i)},selectChild:function(t){return this.select(null==t?u:function(t){return function(){return l.call(this.children,t)}}("function"==typeof t?t:s(t)))},selectChildren:function(t){return this.selectAll(null==t?h:function(t){return function(){return c.call(this.children,t)}}("function"==typeof t?t:s(t)))},filter:function(t){"function"!=typeof t&&(t=function(t){return function(){return this.matches(t)}}(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o,a=e[i],s=a.length,l=r[i]=[],u=0;u<s;++u)(o=a[u])&&t.call(o,o.__data__,u,a)&&l.push(o);return new dt(r,this._parents)},data:function(t,e){if(!arguments.length)return Array.from(this,y);var n=e?m:g,r=this._parents,i=this._groups;"function"!=typeof t&&(t=f(t));for(var o=i.length,a=new Array(o),s=new Array(o),l=new Array(o),u=0;u<o;++u){var c=r[u],h=i[u],p=h.length,d=v(t.call(c,c&&c.__data__,u,r)),_=d.length,b=s[u]=new Array(_),w=a[u]=new Array(_),x=l[u]=new Array(p);n(c,h,b,w,x,d,e);for(var S,C,E=0,k=0;E<_;++E)if(S=b[E]){for(E>=k&&(k=E+1);!(C=w[k])&&++k<_;);S._next=C||null}}return(a=new dt(a,r))._enter=s,a._exit=l,a},enter:function(){return new dt(this._enter||this._groups.map(p),this._parents)},exit:function(){return new dt(this._exit||this._groups.map(p),this._parents)},join:function(t,e,n){var r=this.enter(),i=this,o=this.exit();return"function"==typeof t?(r=t(r))&&(r=r.selection()):r=r.append(t+""),null!=e&&(i=e(i))&&(i=i.selection()),null==n?o.remove():n(o),r&&i?r.merge(i).order():i},merge:function(t){for(var e=t.selection?t.selection():t,n=this._groups,r=e._groups,i=n.length,o=r.length,a=Math.min(i,o),s=new Array(i),l=0;l<a;++l)for(var u,c=n[l],h=r[l],p=c.length,d=s[l]=new Array(p),f=0;f<p;++f)(u=c[f]||h[f])&&(d[f]=u);for(;l<i;++l)s[l]=n[l];return new dt(s,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r,i=t[e],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(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=_);for(var n=this._groups,r=n.length,i=new Array(r),o=0;o<r;++o){for(var a,s=n[o],l=s.length,u=i[o]=new Array(l),c=0;c<l;++c)(a=s[c])&&(u[c]=a);u.sort(e)}return new dt(i,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,o=r.length;i<o;++i){var a=r[i];if(a)return a}return null},size:function(){let t=0;for(const e of this)++t;return t},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var i,o=e[n],a=0,s=o.length;a<s;++a)(i=o[a])&&t.call(i,i.__data__,a,o);return this},attr:function(t,e){var n=x(t);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==e?n.local?C:S:"function"==typeof e?n.local?P:A:n.local?k:E)(n,e))},style:function(t,e,n){return arguments.length>1?this.each((null==e?M:"function"==typeof e?R:O)(t,e,null==n?"":n)):I(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?L:"function"==typeof e?N:F)(t,e)):this.node()[t]},classed:function(t,e){var n=D(t+"");if(arguments.length<2){for(var r=z(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"==typeof e?V:e?B:U)(n,e))},text:function(t){return arguments.length?this.each(null==t?q:("function"==typeof t?H:W)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?X:("function"==typeof t?Y:K)(t)):this.node().innerHTML},raise:function(){return this.each(Q)},lower:function(){return this.each($)},append:function(t){var e="function"==typeof t?t:et(t);return this.select((function(){return this.appendChild(e.apply(this,arguments))}))},insert:function(t,e){var n="function"==typeof t?t:et(t),r=null==e?nt:"function"==typeof e?e:i(e);return this.select((function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)}))},remove:function(){return this.each(rt)},clone:function(t){return this.select(t?ot:it)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,n){var r,i,o=at(t+""),a=o.length;if(!(arguments.length<2)){for(s=e?lt:st,r=0;r<a;++r)this.each(s(o[r],e,n));return this}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},dispatch:function(t,e){return this.each(("function"==typeof e?ht:ct)(t,e))},[Symbol.iterator]:function*(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r,i=t[e],o=0,a=i.length;o<a;++o)(r=i[o])&&(yield r)}};class yt extends Map{constructor(t,e=xt){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=t)for(const[e,n]of t)this.set(e,n)}get(t){return super.get(_t(this,t))}has(t){return super.has(_t(this,t))}set(t,e){return super.set(bt(this,t),e)}delete(t){return super.delete(wt(this,t))}}class vt extends Set{constructor(t,e=xt){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=t)for(const e of t)this.add(e)}has(t){return super.has(_t(this,t))}add(t){return super.add(bt(this,t))}delete(t){return super.delete(wt(this,t))}}function _t({_intern:t,_key:e},n){const r=e(n);return t.has(r)?t.get(r):n}function bt({_intern:t,_key:e},n){const r=e(n);return t.has(r)?t.get(r):(t.set(r,n),n)}function wt({_intern:t,_key:e},n){const r=e(n);return t.has(r)&&(n=t.get(r),t.delete(r)),n}function xt(t){return null!==t&&"object"==typeof t?t.valueOf():t}function St(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}const Ct=Symbol("implicit");function Et(){var t=new yt,e=[],n=[],r=Ct;function i(i){let o=t.get(i);if(void 0===o){if(r!==Ct)return r;t.set(i,o=e.push(i)-1)}return n[o%n.length]}return i.domain=function(n){if(!arguments.length)return e.slice();e=[],t=new yt;for(const r of n)t.has(r)||t.set(r,e.push(r)-1);return i},i.range=function(t){return arguments.length?(n=Array.from(t),i):n.slice()},i.unknown=function(t){return arguments.length?(r=t,i):r},i.copy=function(){return Et(e,n).unknown(r)},St.apply(i,arguments),i}var kt=Math.sqrt(50),At=Math.sqrt(10),Pt=Math.sqrt(2);function Tt(t,e,n){var r=(e-t)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),o=r/Math.pow(10,i);return i>=0?(o>=kt?10:o>=At?5:o>=Pt?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=kt?10:o>=At?5:o>=Pt?2:1)}function Mt(t,e){return null==t||null==e?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Ot(t,e){return null==t||null==e?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Rt(t){let e,n,r;function i(t,r,i=0,o=t.length){if(i<o){if(0!==e(r,r))return o;do{const e=i+o>>>1;n(t[e],r)<0?i=e+1:o=e}while(i<o)}return i}return 2!==t.length?(e=Mt,n=(e,n)=>Mt(t(e),n),r=(e,n)=>t(e)-n):(e=t===Mt||t===Ot?t:It,n=t,r=t),{left:i,center:function(t,e,n=0,o=t.length){const a=i(t,e,n,o-1);return a>n&&r(t[a-1],e)>-r(t[a],e)?a-1:a},right:function(t,r,i=0,o=t.length){if(i<o){if(0!==e(r,r))return o;do{const e=i+o>>>1;n(t[e],r)<=0?i=e+1:o=e}while(i<o)}return i}}}function It(){return 0}const Lt=Rt(Mt),Ft=Lt.right,Nt=(Lt.left,Rt((function(t){return null===t?NaN:+t})).center,Ft);function Dt(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function zt(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function Zt(){}var jt=.7,Gt=1/jt,Bt="\\s*([+-]?\\d+)\\s*",Ut="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Vt="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",qt=/^#([0-9a-f]{3,8})$/,Wt=new RegExp(`^rgb\\(${Bt},${Bt},${Bt}\\)$`),Ht=new RegExp(`^rgb\\(${Vt},${Vt},${Vt}\\)$`),Xt=new RegExp(`^rgba\\(${Bt},${Bt},${Bt},${Ut}\\)$`),Kt=new RegExp(`^rgba\\(${Vt},${Vt},${Vt},${Ut}\\)$`),Yt=new RegExp(`^hsl\\(${Ut},${Vt},${Vt}\\)$`),Qt=new RegExp(`^hsla\\(${Ut},${Vt},${Vt},${Ut}\\)$`),$t={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 Jt(){return this.rgb().formatHex()}function te(){return this.rgb().formatRgb()}function ee(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=qt.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?ne(e):3===n?new ae(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?re(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?re(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=Wt.exec(t))?new ae(e[1],e[2],e[3],1):(e=Ht.exec(t))?new ae(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Xt.exec(t))?re(e[1],e[2],e[3],e[4]):(e=Kt.exec(t))?re(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Yt.exec(t))?pe(e[1],e[2]/100,e[3]/100,1):(e=Qt.exec(t))?pe(e[1],e[2]/100,e[3]/100,e[4]):$t.hasOwnProperty(t)?ne($t[t]):"transparent"===t?new ae(NaN,NaN,NaN,0):null}function ne(t){return new ae(t>>16&255,t>>8&255,255&t,1)}function re(t,e,n,r){return r<=0&&(t=e=n=NaN),new ae(t,e,n,r)}function ie(t){return t instanceof Zt||(t=ee(t)),t?new ae((t=t.rgb()).r,t.g,t.b,t.opacity):new ae}function oe(t,e,n,r){return 1===arguments.length?ie(t):new ae(t,e,n,null==r?1:r)}function ae(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function se(){return`#${he(this.r)}${he(this.g)}${he(this.b)}`}function le(){const t=ue(this.opacity);return`${1===t?"rgb(":"rgba("}${ce(this.r)}, ${ce(this.g)}, ${ce(this.b)}${1===t?")":`, ${t})`}`}function ue(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function ce(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function he(t){return((t=ce(t))<16?"0":"")+t.toString(16)}function pe(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new fe(t,e,n,r)}function de(t){if(t instanceof fe)return new fe(t.h,t.s,t.l,t.opacity);if(t instanceof Zt||(t=ee(t)),!t)return new fe;if(t instanceof fe)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),o=Math.max(e,n,r),a=NaN,s=o-i,l=(o+i)/2;return s?(a=e===o?(n-r)/s+6*(n<r):n===o?(r-e)/s+2:(e-n)/s+4,s/=l<.5?o+i:2-o-i,a*=60):s=l>0&&l<1?0:a,new fe(a,s,l,t.opacity)}function fe(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function ge(t){return(t=(t||0)%360)<0?t+360:t}function me(t){return Math.max(0,Math.min(1,t||0))}function ye(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function ve(t,e,n,r,i){var o=t*t,a=o*t;return((1-3*t+3*o-a)*e+(4-6*o+3*a)*n+(1+3*t+3*o-3*a)*r+a*i)/6}Dt(Zt,ee,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:Jt,formatHex:Jt,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return de(this).formatHsl()},formatRgb:te,toString:te}),Dt(ae,oe,zt(Zt,{brighter(t){return t=null==t?Gt:Math.pow(Gt,t),new ae(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?jt:Math.pow(jt,t),new ae(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new ae(ce(this.r),ce(this.g),ce(this.b),ue(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:se,formatHex:se,formatHex8:function(){return`#${he(this.r)}${he(this.g)}${he(this.b)}${he(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:le,toString:le})),Dt(fe,(function(t,e,n,r){return 1===arguments.length?de(t):new fe(t,e,n,null==r?1:r)}),zt(Zt,{brighter(t){return t=null==t?Gt:Math.pow(Gt,t),new fe(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?jt:Math.pow(jt,t),new fe(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new ae(ye(t>=240?t-240:t+120,i,r),ye(t,i,r),ye(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new fe(ge(this.h),me(this.s),me(this.l),ue(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=ue(this.opacity);return`${1===t?"hsl(":"hsla("}${ge(this.h)}, ${100*me(this.s)}%, ${100*me(this.l)}%${1===t?")":`, ${t})`}`}}));const _e=t=>()=>t;function be(t,e){var n=e-t;return n?function(t,e){return function(n){return t+n*e}}(t,n):_e(isNaN(t)?e:t)}const we=function t(e){var n=function(t){return 1==(t=+t)?be:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):_e(isNaN(e)?n:e)}}(e);function r(t,e){var r=n((t=oe(t)).r,(e=oe(e)).r),i=n(t.g,e.g),o=n(t.b,e.b),a=be(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=o(e),t.opacity=a(e),t+""}}return r.gamma=t,r}(1);function xe(t){return function(e){var n,r,i=e.length,o=new Array(i),a=new Array(i),s=new Array(i);for(n=0;n<i;++n)r=oe(e[n]),o[n]=r.r||0,a[n]=r.g||0,s[n]=r.b||0;return o=t(o),a=t(a),s=t(s),r.opacity=1,function(t){return r.r=o(t),r.g=a(t),r.b=s(t),r+""}}}function Se(t,e){var n,r=e?e.length:0,i=t?Math.min(r,t.length):0,o=new Array(i),a=new Array(r);for(n=0;n<i;++n)o[n]=Oe(t[n],e[n]);for(;n<r;++n)a[n]=e[n];return function(t){for(n=0;n<i;++n)a[n]=o[n](t);return a}}function Ce(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}}function Ee(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function ke(t,e){var n,r={},i={};for(n in null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={}),e)n in t?r[n]=Oe(t[n],e[n]):i[n]=e[n];return function(t){for(n in r)i[n]=r[n](t);return i}}xe((function(t){var e=t.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),i=t[r],o=t[r+1],a=r>0?t[r-1]:2*i-o,s=r<e-1?t[r+2]:2*o-i;return ve((n-r/e)*e,a,i,o,s)}})),xe((function(t){var e=t.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*e),i=t[(r+e-1)%e],o=t[r%e],a=t[(r+1)%e],s=t[(r+2)%e];return ve((n-r/e)*e,i,o,a,s)}}));var Ae=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Pe=new RegExp(Ae.source,"g");function Te(t,e){var n,r,i,o=Ae.lastIndex=Pe.lastIndex=0,a=-1,s=[],l=[];for(t+="",e+="";(n=Ae.exec(t))&&(r=Pe.exec(e));)(i=r.index)>o&&(i=e.slice(o,i),s[a]?s[a]+=i:s[++a]=i),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,l.push({i:a,x:Ee(n,r)})),o=Pe.lastIndex;return o<e.length&&(i=e.slice(o),s[a]?s[a]+=i:s[++a]=i),s.length<2?l[0]?function(t){return function(e){return t(e)+""}}(l[0].x):function(t){return function(){return t}}(e):(e=l.length,function(t){for(var n,r=0;r<e;++r)s[(n=l[r]).i]=n.x(t);return s.join("")})}function Me(t,e){e||(e=[]);var n,r=t?Math.min(e.length,t.length):0,i=e.slice();return function(o){for(n=0;n<r;++n)i[n]=t[n]*(1-o)+e[n]*o;return i}}function Oe(t,e){var n,r,i=typeof e;return null==e||"boolean"===i?_e(e):("number"===i?Ee:"string"===i?(n=ee(e))?(e=n,we):Te:e instanceof ee?we:e instanceof Date?Ce:(r=e,!ArrayBuffer.isView(r)||r instanceof DataView?Array.isArray(e)?Se:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?ke:Ee:Me))(t,e)}function Re(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}function Ie(t){return+t}var Le=[0,1];function Fe(t){return t}function Ne(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:(n=isNaN(e)?NaN:.5,function(){return n});var n}function De(t,e,n){var r=t[0],i=t[1],o=e[0],a=e[1];return i<r?(r=Ne(i,r),o=n(a,o)):(r=Ne(r,i),o=n(o,a)),function(t){return o(r(t))}}function ze(t,e,n){var r=Math.min(t.length,e.length)-1,i=new Array(r),o=new Array(r),a=-1;for(t[r]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++a<r;)i[a]=Ne(t[a],t[a+1]),o[a]=n(e[a],e[a+1]);return function(e){var n=Nt(t,e,1,r)-1;return o[n](i[n](e))}}function Ze(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function je(){return function(){var t,e,n,r,i,o,a=Le,s=Le,l=Oe,u=Fe;function c(){var t,e,n,l=Math.min(a.length,s.length);return u!==Fe&&(t=a[0],e=a[l-1],t>e&&(n=t,t=e,e=n),u=function(n){return Math.max(t,Math.min(e,n))}),r=l>2?ze:De,i=o=null,h}function h(e){return null==e||isNaN(e=+e)?n:(i||(i=r(a.map(t),s,l)))(t(u(e)))}return h.invert=function(n){return u(e((o||(o=r(s,a.map(t),Ee)))(n)))},h.domain=function(t){return arguments.length?(a=Array.from(t,Ie),c()):a.slice()},h.range=function(t){return arguments.length?(s=Array.from(t),c()):s.slice()},h.rangeRound=function(t){return s=Array.from(t),l=Re,c()},h.clamp=function(t){return arguments.length?(u=!!t||Fe,c()):u!==Fe},h.interpolate=function(t){return arguments.length?(l=t,c()):l},h.unknown=function(t){return arguments.length?(n=t,h):n},function(n,r){return t=n,e=r,c()}}()(Fe,Fe)}var Ge,Be=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Ue(t){if(!(e=Be.exec(t)))throw new Error("invalid format: "+t);var e;return new Ve({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function Ve(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function qe(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]}function We(t){return(t=qe(Math.abs(t)))?t[1]:NaN}function He(t,e){var n=qe(t,e);if(!n)return t+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}Ue.prototype=Ve.prototype,Ve.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};const Xe={"%":(t,e)=>(100*t).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>He(100*t,e),r:He,s:function(t,e){var n=qe(t,e);if(!n)return t+"";var r=n[0],i=n[1],o=i-(Ge=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+qe(t,Math.max(0,e+o-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function Ke(t){return t}var Ye,Qe,$e,Je=Array.prototype.map,tn=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function en(t){var e=t.domain;return t.ticks=function(t){var n=e();return function(t,e,n){var r,i,o,a,s=-1;if(n=+n,(t=+t)==(e=+e)&&n>0)return[t];if((r=e<t)&&(i=t,t=e,e=i),0===(a=Tt(t,e,n))||!isFinite(a))return[];if(a>0){let n=Math.round(t/a),r=Math.round(e/a);for(n*a<t&&++n,r*a>e&&--r,o=new Array(i=r-n+1);++s<i;)o[s]=(n+s)*a}else{a=-a;let n=Math.round(t*a),r=Math.round(e*a);for(n/a<t&&++n,r/a>e&&--r,o=new Array(i=r-n+1);++s<i;)o[s]=(n+s)/a}return r&&o.reverse(),o}(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){var r=e();return function(t,e,n,r){var i,o=function(t,e,n){var r=Math.abs(e-t)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=kt?i*=10:o>=At?i*=5:o>=Pt&&(i*=2),e<t?-i:i}(t,e,n);switch((r=Ue(null==r?",f":r)).type){case"s":var a=Math.max(Math.abs(t),Math.abs(e));return null!=r.precision||isNaN(i=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(We(e)/3)))-We(Math.abs(t)))}(o,a))||(r.precision=i),$e(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,We(e)-We(t))+1}(o,Math.max(Math.abs(t),Math.abs(e))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=function(t){return Math.max(0,-We(Math.abs(t)))}(o))||(r.precision=i-2*("%"===r.type))}return Qe(r)}(r[0],r[r.length-1],null==t?10:t,n)},t.nice=function(n){null==n&&(n=10);var r,i,o=e(),a=0,s=o.length-1,l=o[a],u=o[s],c=10;for(u<l&&(i=l,l=u,u=i,i=a,a=s,s=i);c-- >0;){if((i=Tt(l,u,n))===r)return o[a]=l,o[s]=u,e(o);if(i>0)l=Math.floor(l/i)*i,u=Math.ceil(u/i)*i;else{if(!(i<0))break;l=Math.ceil(l*i)/i,u=Math.floor(u*i)/i}r=i}return t},t}function nn(){var t=je();return t.copy=function(){return Ze(t,nn())},St.apply(t,arguments),en(t)}function rn(t,e){let n;if(void 0===e)for(const e of t)null!=e&&(n<e||void 0===n&&e>=e)&&(n=e);else{let r=-1;for(let i of t)null!=(i=e(i,++r,t))&&(n<i||void 0===n&&i>=i)&&(n=i)}return n}Ye=function(t){var e,n,r=void 0===t.grouping||void 0===t.thousands?Ke:(e=Je.call(t.grouping,Number),n=t.thousands+"",function(t,r){for(var i=t.length,o=[],a=0,s=e[0],l=0;i>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),o.push(t.substring(i-=s,i+s)),!((l+=s+1)>r));)s=e[a=(a+1)%e.length];return o.reverse().join(n)}),i=void 0===t.currency?"":t.currency[0]+"",o=void 0===t.currency?"":t.currency[1]+"",a=void 0===t.decimal?".":t.decimal+"",s=void 0===t.numerals?Ke:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(Je.call(t.numerals,String)),l=void 0===t.percent?"%":t.percent+"",u=void 0===t.minus?"−":t.minus+"",c=void 0===t.nan?"NaN":t.nan+"";function h(t){var e=(t=Ue(t)).fill,n=t.align,h=t.sign,p=t.symbol,d=t.zero,f=t.width,g=t.comma,m=t.precision,y=t.trim,v=t.type;"n"===v?(g=!0,v="g"):Xe[v]||(void 0===m&&(m=12),y=!0,v="g"),(d||"0"===e&&"="===n)&&(d=!0,e="0",n="=");var _="$"===p?i:"#"===p&&/[boxX]/.test(v)?"0"+v.toLowerCase():"",b="$"===p?o:/[%p]/.test(v)?l:"",w=Xe[v],x=/[defgprs%]/.test(v);function S(t){var i,o,l,p=_,S=b;if("c"===v)S=w(t)+S,t="";else{var C=(t=+t)<0||1/t<0;if(t=isNaN(t)?c:w(Math.abs(t),m),y&&(t=function(t){t:for(var e,n=t.length,r=1,i=-1;r<n;++r)switch(t[r]){case".":i=e=r;break;case"0":0===i&&(i=r),e=r;break;default:if(!+t[r])break t;i>0&&(i=0)}return i>0?t.slice(0,i)+t.slice(e+1):t}(t)),C&&0==+t&&"+"!==h&&(C=!1),p=(C?"("===h?h:u:"-"===h||"("===h?"":h)+p,S=("s"===v?tn[8+Ge/3]:"")+S+(C&&"("===h?")":""),x)for(i=-1,o=t.length;++i<o;)if(48>(l=t.charCodeAt(i))||l>57){S=(46===l?a+t.slice(i+1):t.slice(i))+S,t=t.slice(0,i);break}}g&&!d&&(t=r(t,1/0));var E=p.length+t.length+S.length,k=E<f?new Array(f-E+1).join(e):"";switch(g&&d&&(t=r(k+t,k.length?f-S.length:1/0),k=""),n){case"<":t=p+t+S+k;break;case"=":t=p+k+t+S;break;case"^":t=k.slice(0,E=k.length>>1)+p+t+S+k.slice(E);break;default:t=k+p+t+S}return s(t)}return m=void 0===m?6:/[gprs]/.test(v)?Math.max(1,Math.min(21,m)):Math.max(0,Math.min(20,m)),S.toString=function(){return t+""},S}return{format:h,formatPrefix:function(t,e){var n=h(((t=Ue(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(We(e)/3))),i=Math.pow(10,-r),o=tn[8+r/3];return function(t){return n(i*t)+o}}}}({thousands:",",grouping:[3],currency:["$",""]}),Qe=Ye.format,$e=Ye.formatPrefix;var on={value:()=>{}};function an(){for(var t,e=0,n=arguments.length,r={};e<n;++e){if(!(t=arguments[e]+"")||t in r||/[\s.]/.test(t))throw new Error("illegal type: "+t);r[t]=[]}return new sn(r)}function sn(t){this._=t}function ln(t,e){return t.trim().split(/^|\s+/).map((function(t){var n="",r=t.indexOf(".");if(r>=0&&(n=t.slice(r+1),t=t.slice(0,r)),t&&!e.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}}))}function un(t,e){for(var n,r=0,i=t.length;r<i;++r)if((n=t[r]).name===e)return n.value}function cn(t,e,n){for(var r=0,i=t.length;r<i;++r)if(t[r].name===e){t[r]=on,t=t.slice(0,r).concat(t.slice(r+1));break}return null!=n&&t.push({name:e,value:n}),t}sn.prototype=an.prototype={constructor:sn,on:function(t,e){var n,r=this._,i=ln(t+"",r),o=-1,a=i.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++o<a;)if(n=(t=i[o]).type)r[n]=cn(r[n],t.name,e);else if(null==e)for(n in r)r[n]=cn(r[n],t.name,null);return this}for(;++o<a;)if((n=(t=i[o]).type)&&(n=un(r[n],t.name)))return n},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new sn(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var n,r,i=new Array(n),o=0;o<n;++o)i[o]=arguments[o+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(o=0,n=(r=this._[t]).length;o<n;++o)r[o].value.apply(e,i)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],i=0,o=r.length;i<o;++i)r[i].value.apply(e,n)}};const hn=an,pn={passive:!1},dn={capture:!0,passive:!1};function fn(t){t.stopImmediatePropagation()}function gn(t){t.preventDefault(),t.stopImmediatePropagation()}const mn=t=>()=>t;function yn(t,{sourceEvent:e,subject:n,target:r,identifier:i,active:o,x:a,y:s,dx:l,dy:u,dispatch:c}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,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 vn(t){return!t.ctrlKey&&!t.button}function _n(){return this.parentNode}function bn(t,e){return null==e?{x:t.x,y:t.y}:e}function wn(){return navigator.maxTouchPoints||"ontouchstart"in this}function xn(t){return t}yn.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};var Sn=1e-6;function Cn(t){return"translate("+t+",0)"}function En(t){return"translate(0,"+t+")"}function kn(t){return e=>+t(e)}function An(t,e){return e=Math.max(0,t.bandwidth()-2*e)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function Pn(){return!this.__axis}function Tn(t,e){var n=[],r=null,i=null,o=6,a=6,s=3,l="undefined"!=typeof window&&window.devicePixelRatio>1?0:.5,u=1===t||4===t?-1:1,c=4===t||2===t?"x":"y",h=1===t||3===t?Cn:En;function p(p){var d=null==r?e.ticks?e.ticks.apply(e,n):e.domain():r,f=null==i?e.tickFormat?e.tickFormat.apply(e,n):xn:i,g=Math.max(o,0)+s,m=e.range(),y=+m[0]+l,v=+m[m.length-1]+l,_=(e.bandwidth?An:kn)(e.copy(),l),b=p.selection?p.selection():p,w=b.selectAll(".domain").data([null]),x=b.selectAll(".tick").data(d,e).order(),S=x.exit(),C=x.enter().append("g").attr("class","tick"),E=x.select("line"),k=x.select("text");w=w.merge(w.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),x=x.merge(C),E=E.merge(C.append("line").attr("stroke","currentColor").attr(c+"2",u*o)),k=k.merge(C.append("text").attr("fill","currentColor").attr(c,u*g).attr("dy",1===t?"0em":3===t?"0.71em":"0.32em")),p!==b&&(w=w.transition(p),x=x.transition(p),E=E.transition(p),k=k.transition(p),S=S.transition(p).attr("opacity",Sn).attr("transform",(function(t){return isFinite(t=_(t))?h(t+l):this.getAttribute("transform")})),C.attr("opacity",Sn).attr("transform",(function(t){var e=this.parentNode.__axis;return h((e&&isFinite(e=e(t))?e:_(t))+l)}))),S.remove(),w.attr("d",4===t||2===t?a?"M"+u*a+","+y+"H"+l+"V"+v+"H"+u*a:"M"+l+","+y+"V"+v:a?"M"+y+","+u*a+"V"+l+"H"+v+"V"+u*a:"M"+y+","+l+"H"+v),x.attr("opacity",1).attr("transform",(function(t){return h(_(t)+l)})),E.attr(c+"2",u*o),k.attr(c,u*g).text(f),b.filter(Pn).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",2===t?"start":4===t?"end":"middle"),b.each((function(){this.__axis=_}))}return p.scale=function(t){return arguments.length?(e=t,p):e},p.ticks=function(){return n=Array.from(arguments),p},p.tickArguments=function(t){return arguments.length?(n=null==t?[]:Array.from(t),p):n.slice()},p.tickValues=function(t){return arguments.length?(r=null==t?null:Array.from(t),p):r&&r.slice()},p.tickFormat=function(t){return arguments.length?(i=t,p):i},p.tickSize=function(t){return arguments.length?(o=a=+t,p):o},p.tickSizeInner=function(t){return arguments.length?(o=+t,p):o},p.tickSizeOuter=function(t){return arguments.length?(a=+t,p):a},p.tickPadding=function(t){return arguments.length?(s=+t,p):s},p.offset=function(t){return arguments.length?(l=+t,p):l},p}function Mn(t){return Tn(3,t)}function On(t){return Tn(4,t)}Math.abs,Math.atan2;const Rn=Math.cos,In=(Math.max,Math.min,Math.sin),Ln=Math.sqrt,Fn=Math.PI,Nn=2*Fn,Dn=Ln(3),zn={draw(t,e){const n=-Ln(e/(3*Dn));t.moveTo(0,2*n),t.lineTo(-Dn*n,-n),t.lineTo(Dn*n,-n),t.closePath()}},Zn=Math.PI,jn=2*Zn,Gn=1e-6,Bn=jn-Gn;function Un(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function Vn(){return new Un}Un.prototype=Vn.prototype={constructor:Un,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,n,r){this._+="Q"+ +t+","+ +e+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(t,e,n,r,i,o){this._+="C"+ +t+","+ +e+","+ +n+","+ +r+","+(this._x1=+i)+","+(this._y1=+o)},arcTo:function(t,e,n,r,i){t=+t,e=+e,n=+n,r=+r,i=+i;var o=this._x1,a=this._y1,s=n-t,l=r-e,u=o-t,c=a-e,h=u*u+c*c;if(i<0)throw new Error("negative radius: "+i);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(h>Gn)if(Math.abs(c*s-l*u)>Gn&&i){var p=n-o,d=r-a,f=s*s+l*l,g=p*p+d*d,m=Math.sqrt(f),y=Math.sqrt(h),v=i*Math.tan((Zn-Math.acos((f+h-g)/(2*m*y)))/2),_=v/y,b=v/m;Math.abs(_-1)>Gn&&(this._+="L"+(t+_*u)+","+(e+_*c)),this._+="A"+i+","+i+",0,0,"+ +(c*p>u*d)+","+(this._x1=t+b*s)+","+(this._y1=e+b*l)}else this._+="L"+(this._x1=t)+","+(this._y1=e)},arc:function(t,e,n,r,i,o){t=+t,e=+e,o=!!o;var a=(n=+n)*Math.cos(r),s=n*Math.sin(r),l=t+a,u=e+s,c=1^o,h=o?r-i:i-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+l+","+u:(Math.abs(this._x1-l)>Gn||Math.abs(this._y1-u)>Gn)&&(this._+="L"+l+","+u),n&&(h<0&&(h=h%jn+jn),h>Bn?this._+="A"+n+","+n+",0,1,"+c+","+(t-a)+","+(e-s)+"A"+n+","+n+",0,1,"+c+","+(this._x1=l)+","+(this._y1=u):h>Gn&&(this._+="A"+n+","+n+",0,"+ +(h>=Zn)+","+c+","+(this._x1=t+n*Math.cos(i))+","+(this._y1=e+n*Math.sin(i))))},rect:function(t,e,n,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};const qn=Vn;function Wn(t){return function(){return t}}Ln(3);const Hn={draw(t,e){const n=Ln(e/Fn);t.moveTo(n,0),t.arc(0,0,n,0,Nn)}};Ln(1/3),In(Fn/10),In(7*Fn/10);function Xn(t,e){let n=null;function r(){let r;if(n||(n=r=qn()),t.apply(this,arguments).draw(n,+e.apply(this,arguments)),r)return n=null,r+""||null}return t="function"==typeof t?t:Wn(t||Hn),e="function"==typeof e?e:Wn(void 0===e?64:+e),r.type=function(e){return arguments.length?(t="function"==typeof e?e:Wn(e),r):t},r.size=function(t){return arguments.length?(e="function"==typeof t?t:Wn(+t),r):e},r.context=function(t){return arguments.length?(n=null==t?null:t,r):n},r}function Kn(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function Yn(t){this._context=t}function Qn(t){return new Yn(t)}function $n(t){return t[0]}function Jn(t){return t[1]}function tr(t,e){var n=Wn(!0),r=null,i=Qn,o=null;function a(a){var s,l,u,c=(a=Kn(a)).length,h=!1;for(null==r&&(o=i(u=qn())),s=0;s<=c;++s)!(s<c&&n(l=a[s],s,a))===h&&((h=!h)?o.lineStart():o.lineEnd()),h&&o.point(+t(l,s,a),+e(l,s,a));if(u)return o=null,u+""||null}return t="function"==typeof t?t:void 0===t?$n:Wn(t),e="function"==typeof e?e:void 0===e?Jn:Wn(e),a.x=function(e){return arguments.length?(t="function"==typeof e?e:Wn(+e),a):t},a.y=function(t){return arguments.length?(e="function"==typeof t?t:Wn(+t),a):e},a.defined=function(t){return arguments.length?(n="function"==typeof t?t:Wn(!!t),a):n},a.curve=function(t){return arguments.length?(i=t,null!=r&&(o=i(r)),a):i},a.context=function(t){return arguments.length?(null==t?r=o=null:o=i(r=t),a):r},a}function er(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function nr(t){this._context=t}function rr(t){return new nr(t)}function ir(t){for(var e=t.length/6|0,n=new Array(e),r=0;r<e;)n[r]="#"+t.slice(6*r,6*++r);return n}In(Nn/10),Rn(Nn/10),Ln(3),Ln(3),Ln(12),Array.prototype.slice,Yn.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}},nr.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:er(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:er(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};const or=ir("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),ar=ir("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),sr=ir("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),lr=ir("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),ur=ir("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"),cr=ir("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),hr={width:800,height:280,margins:{top:10,right:30,bottom:55,left:50},imperial:!1,expand:!0,expandControls:!0,translation:{}};class pr{constructor(t,e={},n={}){this._container=t,e=Object.assign(hr,e),this._margin=e.margins,this._width=e.width,this._height=e.height,this._graphStyle=e.graphStyle||{},this._xTicks=e.xTicks,this._yTicks=e.yTicks,this._translation=e.translation,this._imperial=e.imperial,this._expand=e.expand,this._expandControls=e.expandControls,this._expandCallback=e.expandCallback,this._pointSelected=n.pointSelectedCallback||Function(),this._areaSelected=n.areaSelectedCallback||Function(),this._routeSegmentsSelected=n.routeSegmentsSelectedCallback||Function(),this._chooseSelectionCallback=e.chooseSelectionCallback,this._defaultTranslation={distance:"Distance",elevation:"Elevation",segment_length:"Segment length",type:"Type",legend:"Legend"},this._d3ColorCategorical=[or,ar,sr,lr,ur,cr],this._containerMouseUpHandler=()=>this._mouseUpHandler(),this._svgWidth=this._width-this._margin.left-this._margin.right,this._svgHeight=this._height-this._margin.top-this._margin.bottom,this._expandControls&&(this._button=this._createDOMElement("div","heightgraph-toggle",this._container),this._createDOMElement("a","heightgraph-toggle-icon",this._button),this._button.addEventListener("click",(()=>this._expandContainer())),this._closeButton=this._createDOMElement("a","heightgraph-close-icon",this._container),this._closeButton.addEventListener("click",(()=>this._expandContainer()))),this._showState=!1,this._stopPropagation(),this._svg=ft(this._container).append("svg").attr("class","heightgraph-container").attr("width",this._width).attr("height",this._height).append("g").attr("transform","translate("+this._margin.left+","+this._margin.top+")"),this._expand&&this._expandContainer()}resize(t){t.width&&(this._width=t.width),t.height&&(this._height=t.height),ft(this._container).selectAll("svg").attr("width",this._width).attr("height",this._height),this._svgWidth=this._width-this._margin.left-this._margin.right,this._svgHeight=this._height-this._margin.top-this._margin.bottom,this.redraw()}redraw(){this.setData(this._data,this._mappings,this._currentSelection)}setData(t,e,n){void 0!==n&&(this._currentSelection=n),(void 0===this._currentSelection||this._currentSelection>=t.length)&&(this._currentSelection=0),this._mappings=e,this._routeSegmentsSelected([]),void 0!==this._svg&&this._svg.selectAll("*").remove(),this._removeDragRectangle(),this._rectangle=null,this._data=t,this._prepareData(),this._calculateElevationBounds(),this._appendScales(),this._appendGrid(),0!==Object.keys(t).length&&this._createChart(this._currentSelection),this._createSelectionBox()}_stopPropagation(){this._container.addEventListener("click mousedown touchstart dblclick",(t=>{t.stopPropagation?t.stopPropagation():t.originalEvent?t.originalEvent._stopped=!0:t.cancelBubble=!0}))}_dragHandler(t){if(void 0!==t&&(t.preventDefault(),t.stopPropagation()),this._gotDragged=!0,this._dragStartCoords){const e=this._dragCurrentCoords=gt(t,this._background.node()),n=Math.min(this._dragStartCoords[0],e[0]),r=Math.max(this._dragStartCoords[0],e[0]);this._drawDragRectangle(n,r)}}_drawDragRectangle(t,e){if(this._rectangle=[t,e],this._dragRectangle||this._dragRectangleG)this._dragRectangle.attr("width",e-t).attr("x",t);else{const n=ft(this._container).select("svg").select("g");this._dragRectangleG=n.append("g"),this._dragRectangle=this._dragRectangleG.append("rect").attr("width",e-t).attr("height",this._svgHeight).attr("x",t).attr("class","mouse-drag").style("fill","grey").style("opacity",.5).style("pointer-events","none")}}_removeDragRectangle(){this._dragRectangleG&&(this._dragRectangleG.remove(),this._dragRectangleG=null,this._dragRectangle=null)}getBounds(){return this._calculateFullExtent(this._areasFlattended)}isImperial(){return this._imperial}setImperial(t){this._imperial=t}_mouseUpHandler(){if(this._arrowClick)return void(this._arrowClick=!1);if(!this._dragStartCoords||!this._gotDragged)return this._dragStartCoords=null,this._gotDragged=!1,void(this._dragRectangleG&&(this._removeDragRectangle(),this._rectangle=null,this._areaSelected(null)));const t=this._findItemForX(this._dragStartCoords[0]),e=this._findItemForX(this._dragCurrentCoords[0]);this._fitSection(t,e),this._dragStartCoords=null,this._gotDragged=!1}_dragStartHandler(t){t.preventDefault(),t.stopPropagation(),this._gotDragged=!1,this._dragStartCoords=gt(t,this._background.node())}_calculateFullExtent(t){if(!t||t.length<1)return null;let e=t[0].latlng.lat,n=t[0].latlng.lng,r=t[0].latlng.lat,i=t[0].latlng.lng;return t.forEach((t=>{n=Math.min(n,t.latlng.lng),e=Math.min(e,t.latlng.lat),i=Math.max(i,t.latlng.lng),r=Math.max(r,t.latlng.lat)})),{sw:this._createCoordinate(n,e),ne:this._createCoordinate(i,r)}}_fitSection(t,e){const n=Math.min(t,e),r=Math.max(t,e);let i;n!==r?i=this._calculateFullExtent(this._areasFlattended.slice(n,r+1)):this._areasFlattended.length>0&&(i=[this._areasFlattended[n].latlng,this._areasFlattended[r].latlng]),i&&this._areaSelected(i)}_expandContainer(){!0!==this._expandControls&&(this._showState=!1),this._showState?(ft(this._button).style("display","block"),ft(this._container).selectAll("svg").style("display","none"),ft(this._closeButton).style("display","none")):(ft(this._button).style("display","none"),ft(this._container).selectAll("svg").style("display","block"),ft(this._closeButton).style("display","block")),this._showState=!this._showState,"function"==typeof this._expandCallback&&this._expandCallback(this._showState)}_removeChart(){void 0!==this._svg&&(this._svg.selectAll("path.area").remove(),this._svg.selectAll("path.border-top").remove(),this._svg.selectAll(".legend").remove(),this._svg.selectAll(".lineSelection").remove(),this._svg.selectAll(".horizontalLine").remove(),this._svg.selectAll(".horizontalLineText").remove())}_randomNumber(t){return Math.round(Math.random()*(t-0))}_prepareData(){this._coordinates=[],this._elevations=[],this._cumulatedDistances=[],this._cumulatedDistances.push(0),this._categories=[];const t=this._data;let e;if(void 0===this._mappings){const t=this._randomNumber(this._d3ColorCategorical.length-1);e=Et(this._d3ColorCategorical[t])}for(let n=0;n<t.length;n++){let r=0;this._categories[n]={info:{id:n,text:t[n].properties.label||t[n].properties.summary},distances:[],attributes:[],geometries:[],legend:{}};let i,o=0;const a={},s=void 0!==this._mappings&&"function"==typeof this._mappings[t[n].properties.summary];for(i=0;i<t[n].features.length;i++){let l,u,c,h;const p=[],d=t[n].features[i].geometry.coordinates.length,f=t[n].features[i].properties.attributeType;let g,m;if(void 0===this._mappings)f in a?(g=f,m=a[f]):(g=f,m=e(i),a[f]=m);else if(s){const e=this._mappings[t[n].properties.summary](f);g=e.text,m=e.color}else g=this._mappings[t[n].properties.summary][f].text,m=this._mappings[t[n].properties.summary][f].color;const y={type:f,text:g,color:m};this._categories[n].attributes.push(y),f in this._categories[n].legend||(this._categories[n].legend[f]=y);for(let e=0;e<d;e++){let a;u=this._createCoordinate(t[n].features[i].geometry.coordinates[e][0],t[n].features[i].geometry.coordinates[e][1]),l=t[n].features[i].geometry.coordinates[e][2],e<d-1?(c=this._createCoordinate(t[n].features[i].geometry.coordinates[e+1][0],t[n].features[i].geometry.coordinates[e+1][1]),h=this._calcDistance(u,c)/1e3,r+=h,0===n&&(this._elevations.push(l),this._coordinates.push(u),this._cumulatedDistances.push(r)),o+=1):e===d-1&&i===t[n].features.length-1&&(0===n&&(this._elevations.push(l),this._coordinates.push(c)),o+=1),a=e===d-1&&i<t[n].features.length-1?this._cumulatedDistances[o]:this._cumulatedDistances[o-1],p.push({altitude:l,position:a,x:u.lng,y:u.lat,latlng:u,type:g,areaIdx:i})}this._categories[n].distances.push(r),this._categories[n].geometries.push(p)}n===t.length-1&&(this._totalDistance=r)}}_calculateElevationBounds(){if(0===this._elevations.length)return void(this._elevationBounds={min:0,max:0});const t=rn(this._elevations),e=function(t,e){let n;for(const e of t)null!=e&&(n>e||void 0===n&&e>=e)&&(n=e);return n}(this._elevations),n=t-e;this._elevationBounds={min:n<10?e-10:e-.1*n,max:n<10?t+10:t+.1*n}}_createChart(t){let e=0===this._categories.length?[]:this._categories[t].geometries;this._areasFlattended=[].concat.apply([],e);for(let n=0;n<e.length;n++)this._appendAreas(e[n],t,n);this._createFocus(),this._appendBackground(),this._createBorderTopLine(),this._createLegend(),this._createHorizontalLine()}_createFocus(){const t=this._elevationBounds.min;this._focus&&(this._focus.remove(),this._focusLineGroup.remove()),this._focus=this._svg.append("g").attr("class","focusbox"),this._focusRect=this._focus.append("rect").attr("x",3).attr("y",-this._y(t)).attr("display","none"),this._focusDistance=this._focus.append("text").attr("x",7).attr("y",15-this._y(t)).attr("id","heightgraph.distance").text(this._getTranslation("distance")+":"),this._focusHeight=this._focus.append("text").attr("x",7).attr("y",30-this._y(t)).attr("id","heightgraph.height").text(this._getTranslation("elevation")+":"),this._focusBlockDistance=this._focus.append("text").attr("x",7).attr("y",45-this._y(t)).attr("id","heightgraph.blockdistance").text(this._getTranslation("segment_length")+":"),this._focusType=this._focus.append("text").attr("x",7).attr("y",60-this._y(t)).attr("id","heightgraph.type").text(this._getTranslation("type")+":"),this._areaTspan=this._focusBlockDistance.append("tspan").attr("class","tspan"),this._typeTspan=this._focusType.append("tspan").attr("class","tspan");const e=mt(".focusbox text").size();mt(".focusbox rect").attr("height",15*e+7.5).attr("display","block"),this._focusLineGroup=this._svg.append("g").attr("class","focusLine"),this._focusLine=this._focusLineGroup.append("line").attr("y1",0).attr("y2",this._y(this._elevationBounds.min)),this._distTspan=this._focusDistance.append("tspan").attr("class","tspan"),this._altTspan=this._focusHeight.append("tspan").attr("class","tspan")}_createHorizontalLine(){this._horizontalLine=this._svg.append("line").attr("class","horizontalLine").attr("x1",0).attr("x2",this._width-this._margin.left-this._margin.right).attr("y1",this._y(this._elevationBounds.min)).attr("y2",this._y(this._elevationBounds.min)).style("stroke","black"),this._elevationValueText=this._svg.append("text").attr("class","horizontalLineText").attr("x",this._width-this._margin.left-this._margin.right-20).attr("y",this._y(this._elevationBounds.min)-10).attr("fill","black");const t=[{x:this._width-this._margin.left-this._margin.right+7,y:this._y(this._elevationBounds.min),color:"black",type:zn,angle:-90,size:100}],e=(t,e)=>{const n=this._svgHeight,r=gt(e,this._container)[1]-10,i=Math.max(0,Math.min(r,n));ft(t).attr("transform",(t=>"translate("+t.x+","+i+") rotate("+t.angle+")")),ft(".horizontalLine").attr("y1",i).attr("y2",i),this._highlightedCoords=r>=n?[]:this._findCoordsForY(r),ft(".horizontalLineText").attr("y",i<10?0:i-10).text(gr(this._y.invert(i),this._imperial,!0)),this._routeSegmentsSelected(this._highlightedCoords)},n=t=>{ft(t).classed("active",!1),ft(".horizontalLine").classed("active",!1),this._routeSegmentsSelected(this._highlightedCoords)};this._svg.selectAll(".horizontal-symbol").data(t).enter().append("path").attr("class","lineSelection").attr("d",Xn().type((t=>t.type)).size((t=>t.size))).attr("transform",(t=>"translate("+t.x+","+t.y+") rotate("+t.angle+")")).attr("id",(t=>t.id)).style("fill",(t=>t.color)).call(function(){var t,e,n,r,i=vn,o=_n,a=bn,s=wn,l={},u=hn("start","drag","end"),c=0,h=0;function p(t){t.on("mousedown.drag",d).filter(s).on("touchstart.drag",m).on("touchmove.drag",y,pn).on("touchend.drag touchcancel.drag",v).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function d(a,s){if(!r&&i.call(this,a,s)){var l=_(this,o.call(this,a,s),a,s,"mouse");l&&(ft(a.view).on("mousemove.drag",f,dn).on("mouseup.drag",g,dn),function(t){var e=t.document.documentElement,n=ft(t).on("dragstart.drag",gn,dn);"onselectstart"in e?n.on("selectstart.drag",gn,dn):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")}(a.view),fn(a),n=!1,t=a.clientX,e=a.clientY,l("start",a))}}function f(r){if(gn(r),!n){var i=r.clientX-t,o=r.clientY-e;n=i*i+o*o>h}l.mouse("drag",r)}function g(t){ft(t.view).on("mousemove.drag mouseup.drag",null),function(t,e){var n=t.document.documentElement,r=ft(t).on("dragstart.drag",null);e&&(r.on("click.drag",gn,dn),setTimeout((function(){r.on("click.drag",null)}),0)),"onselectstart"in n?r.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}(t.view,n),gn(t),l.mouse("end",t)}function m(t,e){if(i.call(this,t,e)){var n,r,a=t.changedTouches,s=o.call(this,t,e),l=a.length;for(n=0;n<l;++n)(r=_(this,s,t,e,a[n].identifier,a[n]))&&(fn(t),r("start",t,a[n]))}}function y(t){var e,n,r=t.changedTouches,i=r.length;for(e=0;e<i;++e)(n=l[r[e].identifier])&&(gn(t),n("drag",t,r[e]))}function v(t){var e,n,i=t.changedTouches,o=i.length;for(r&&clearTimeout(r),r=setTimeout((function(){r=null}),500),e=0;e<o;++e)(n=l[i[e].identifier])&&(fn(t),n("end",t,i[e]))}function _(t,e,n,r,i,o){var s,h,d,f=u.copy(),g=gt(o||n,e);if(null!=(d=a.call(t,new yn("beforestart",{sourceEvent:n,target:p,identifier:i,active:c,x:g[0],y:g[1],dx:0,dy:0,dispatch:f}),r)))return s=d.x-g[0]||0,h=d.y-g[1]||0,function n(o,a,u){var m,y=g;switch(o){case"start":l[i]=n,m=c++;break;case"end":delete l[i],--c;case"drag":g=gt(u||a,e),m=c}f.call(o,t,new yn(o,{sourceEvent:a,subject:d,target:p,identifier:i,active:m,x:g[0]+s,y:g[1]+h,dx:g[0]-y[0],dy:g[1]-y[1],dispatch:f}),r)}}return p.filter=function(t){return arguments.length?(i="function"==typeof t?t:mn(!!t),p):i},p.container=function(t){return arguments.length?(o="function"==typeof t?t:mn(t),p):o},p.subject=function(t){return arguments.length?(a="function"==typeof t?t:mn(t),p):a},p.touchable=function(t){return arguments.length?(s="function"==typeof t?t:mn(!!t),p):s},p.on=function(){var t=u.on.apply(u,arguments);return t===u?p:t},p.clickDistance=function(t){return arguments.length?(h=(t=+t)*t,p):Math.sqrt(h)},p}().on("start",(function(t,e){ft(this).raise().classed("active",!0),ft(".horizontalLine").raise().classed("active",!0)})).on("drag",(function(t,n){e(this,t)})).on("end",(function(t,e){n(this)})))}_appendScales(){this._x=nn().range([0,this._svgWidth]),this._y=nn().range([this._svgHeight,0]),this._x.domain([0,this._totalDistance]),this._y.domain([this._elevationBounds.min,this._elevationBounds.max]),this._xAxis=Mn().scale(this._x),this._xAxis.tickFormat((t=>fr(1e3*t,this._totalDistance,this._imperial,!1))),this._xAxis.ticks(this._xTicks?Math.pow(2,this._xTicks):Math.round(this._svgWidth/75),"s"),this._yAxis=On().scale(this._y).tickFormat((t=>gr(t,this._imperial,!1))),this._yAxis.ticks(this._yTicks?Math.pow(2,this._yTicks):Math.round(this._svgHeight/30),"s")}_appendBackground(){const t=this._background=ft(this._container).select("svg").select("g").append("rect").attr("width",this._svgWidth).attr("height",this._svgHeight).style("fill","none").style("stroke","none").style("pointer-events","all").on("mousemove.focusbox",((t,e)=>this._mousemoveHandler(t))).on("mouseout.focusbox",((t,e)=>this._mouseoutHandler()));this._isMobile()?(t.on("touchstart.drag",((t,e)=>this._dragHandler(t))).on("touchstart.drag",((t,e)=>this._dragStartHandler(t))).on("touchstart.focusbox",((t,e)=>this._mousemoveHandler(t,e))),this._container.addEventListener("touchend",this._containerMouseUpHandler)):(t.on("mousemove.focusbox",((t,e)=>this._mousemoveHandler(t))).on("mouseout.focusbox",((t,e)=>this._mouseoutHandler())).on("mousedown.drag",((t,e)=>this._dragStartHandler(t))).on("mousemove.drag",((t,e)=>this._dragHandler(t))),this._container.addEventListener("mouseup",this._containerMouseUpHandler))}_appendGrid(){this._svg.append("g").attr("class","grid").attr("transform","translate(0,"+this._svgHeight+")").call(this._make_x_axis().tickSize(-this._svgHeight,0,0).ticks(Math.round(this._svgWidth/75)).tickFormat("")),this._svg.append("g").attr("class","grid").call(this._make_y_axis().tickSize(-this._svgWidth,0,0).ticks(Math.round(this._svgHeight/30)).tickFormat("")),this._svg.append("g").attr("transform","translate(0,"+this._svgHeight+")").attr("class","x axis").call(this._xAxis),this._svg.append("g").attr("transform","translate(-2,0)").attr("class","y axis").call(this._yAxis)}_appendAreas(t,e,n){const r=this._categories[e].attributes[n].color;this._area=function(t,e,n){var r=null,i=Wn(!0),o=null,a=Qn,s=null;function l(l){var u,c,h,p,d,f=(l=Kn(l)).length,g=!1,m=new Array(f),y=new Array(f);for(null==o&&(s=a(d=qn())),u=0;u<=f;++u){if(!(u<f&&i(p=l[u],u,l))===g)if(g=!g)c=u,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),h=u-1;h>=c;--h)s.point(m[h],y[h]);s.lineEnd(),s.areaEnd()}g&&(m[u]=+t(p,u,l),y[u]=+e(p,u,l),s.point(r?+r(p,u,l):m[u],n?+n(p,u,l):y[u]))}if(d)return s=null,d+""||null}function u(){return tr().defined(i).curve(a).context(o)}return t="function"==typeof t?t:void 0===t?$n:Wn(+t),e="function"==typeof e?e:Wn(void 0===e?0:+e),n="function"==typeof n?n:void 0===n?Jn:Wn(+n),l.x=function(e){return arguments.length?(t="function"==typeof e?e:Wn(+e),r=null,l):t},l.x0=function(e){return arguments.length?(t="function"==typeof e?e:Wn(+e),l):t},l.x1=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:Wn(+t),l):r},l.y=function(t){return arguments.length?(e="function"==typeof t?t:Wn(+t),n=null,l):e},l.y0=function(t){return arguments.length?(e="function"==typeof t?t:Wn(+t),l):e},l.y1=function(t){return arguments.length?(n=null==t?null:"function"==typeof t?t:Wn(+t),l):n},l.lineX0=l.lineY0=function(){return u().x(t).y(e)},l.lineY1=function(){return u().x(t).y(n)},l.lineX1=function(){return u().x(r).y(e)},l.defined=function(t){return arguments.length?(i="function"==typeof t?t:Wn(!!t),l):i},l.curve=function(t){return arguments.length?(a=t,null!=o&&(s=a(o)),l):a},l.context=function(t){return arguments.length?(null==t?o=s=null:s=a(o=t),l):o},l}().x((t=>{const e=this._x(t.position);return t.xDiagonalCoordinate=e,e})).y0(this._svgHeight).y1((t=>this._y(t.altitude))).curve(Qn),this._areapath=this._svg.append("path").attr("class","area"),this._areapath.datum(t).attr("d",this._area).attr("stroke",r),Object.entries(this._graphStyle).forEach((([t,e])=>{this._areapath.style(t,e)})),this._areapath.style("fill",r).style("pointer-events","none")}_make_x_axis(){return Mn().scale(this._x)}_make_y_axis(){return On().scale(this._y)}_createSelectionBox(){const t=ft(this._container).select("svg"),e=this._width-this._margin.right,n=this._height-this._margin.bottom+this._margin.bottom/2+6,r=[{x:e-25,y:n+3,color:"#000",type:zn,id:"leftArrowSelection",angle:0},{x:e-10,y:n,color:"#000",type:zn,id:"rightArrowSelection",angle:180}];let i=t.selectAll(".select-symbol").data(r);i.remove(),i=t.selectAll(".select-symbol").data(r),this._data.length>1&&i.enter().append("path").merge(i).attr("class","select-symbol").attr("d",Xn().type((t=>t.type))).attr("transform",(t=>"translate("+t.x+","+t.y+") rotate("+t.angle+")")).attr("id",(t=>t.id)).style("fill",(t=>t.color)).on("mousedown",((t,e)=>{this._arrowClick=!0,"rightArrowSelection"===e.id&&a(),"leftArrowSelection"===e.id&&s()}));const o=r=>{if(this._selectionText&&this._selectionText.remove(),0===this._categories.length)return;const i=this._categories[r].info;"function"==typeof this._chooseSelectionCallback&&this._chooseSelectionCallback(r,i);const o=[{selection:i.text}];this._selectionText=t.selectAll("selection_text").data(o).enter().append("text").attr("x",e-35).attr("y",n+4).text((t=>t.selection)).attr("class","select-info").attr("id","selectionText").attr("text-anchor","end")};o(this._currentSelection);let a=()=>{let t=this._currentSelection+=1;t===this._categories.length&&(this._currentSelection=t=0),o(t),this._routeSegmentsSelected([]),this._removeChart(),this._createChart(t),this._removeDragRectangle(),this._rectangle&&this._drawDragRectangle(this._rectangle[0],this._rectangle[1])},s=()=>{let t=this._currentSelection-=1;-1===t&&(this._currentSelection=t=this._categories.length-1),o(t),this._routeSegmentsSelected([]),this._removeChart(),this._createChart(t),this._removeDragRectangle(),this._rectangle&&this._drawDragRectangle(this._rectangle[0],this._rectangle[1])}}_createLegend(){const t=[];if(this._categories.length>0)for(let e in this._categories[this._currentSelection].legend)t.push(this._categories[this._currentSelection].legend[e]);const e=this._height-this._margin.bottom,n=e+this._margin.bottom/2,r=[{text:this._getTranslation("legend")}],i=this._svg.selectAll(".hlegend-hover").data(t).enter().append("g").attr("class","legend").style("display","none").attr("transform",((t,e)=>"translate(-8,"+(14*e-28)+")")),o=i.append("rect").attr("class","legend-rect").attr("x",15).attr("y",36).attr("width",6).attr("height",6);0!==Object.keys(this._graphStyle).length?(Object.entries(this._graphStyle).forEach((([t,e])=>o.style(t,e))),o.style("stroke",((t,e)=>t.color)).style("fill",((t,e)=>t.color))):o.style("stroke","black").style("fill",((t,e)=>t.color)),i.append("text").attr("class","legend-text").attr("x",30).attr("y",42).text(((t,n)=>{const r=t.text;return this._boxBoundY=(e-2*e/3+7)*n,r}));let a=this._svg.selectAll(".legend-hover").data(r).enter().append("g").attr("class","legend-hover");this._showLegend=!1,a.append("text").attr("x",15).attr("y",n).attr("text-anchor","start").text(((t,e)=>t.text)).on("mouseover",(()=>{mt(".legend").style("display","block")})).on("mouseleave",(()=>{this._showLegend||mt(".legend").style("display","none")})).on("click",(()=>{this._showLegend=!this._showLegend}))}_createBorderTopLine(){const t=this._areasFlattended,e=tr().x((t=>(0,this._x)(t.position))).y((t=>(0,this._y)(t.altitude))).curve(rr);this._svg.append("svg:path").attr("d",e(t)).attr("class","border-top")}_mouseoutHandler(){for(let t of["_focusLine","_focus","_pointG","_mouseHeightFocus","_mouseHeightFocusLabel"])this[t]&&this[t].style("display","none");this._pointSelected(null)}_mousemoveHandler(t){const e=gt(t,this._svg.node()),n=this._areasFlattended[this._findItemForX(e[0])];n&&this._internalMousemoveHandler(n)}_internalMousemoveHandler(t,e=!0){let n;const r=t.altitude,i=t.position,o=t.latlng,a=t.areaIdx,s=t.type,l=vr(".focusbox text").width+10;n=0===a?this._categories[this._currentSelection].distances[a]:this._categories[this._currentSelection].distances[a]-this._categories[this._currentSelection].distances[a-1],e&&this._pointSelected(o,r,s),this._distTspan.text(" "+fr(1e3*i,this._totalDistance,this._imperial,!0)),this._altTspan.text(" "+gr(r,this._imperial,!0)),this._areaTspan.text(" "+fr(1e3*n,this._totalDistance,this._imperial,!0)),this._typeTspan.text(" "+s),this._focusRect.attr("width",l),this._focusLine.style("display","block").attr("x1",this._x(i)).attr("x2",this._x(i));const u=this._x(i)-(l+5),c=this._width-this._margin.left-this._margin.right;this._x(i)+l<c&&this._focus.style("display","initial").attr("transform","translate("+this._x(i)+","+this._y(this._elevationBounds.min)+")"),this._x(i)+l>c&&this._focus.style("display","initial").attr("transform","translate("+u+","+this._y(this._elevationBounds.min)+")")}_findItemForX(t){const e=Rt((t=>t.position)).left,n=this._x.invert(t);return e(this._areasFlattended,n)}_findCoordsForY(t){const e=this._y.invert(t);return((t,e)=>{const n=[];for(let r=0;r<t.length;r++)t[r].altitude>=e&&n.push(r);const r=[];let i=0;for(let t=0;t<n.length-1;t++)n[t+1]!==n[t]+1&&(r.push(n.slice(i,t+1)),i=t+1);r.push(n.slice(i,n.length));for(let e=0;e<r.length;e++)for(let n=0;n<r[e].length;n++)r[e][n]=t[r[e][n]].latlng;return r})(this._areasFlattended,e)}_getTranslation(t){return this._translation[t]?this._translation[t]:this._defaultTranslation[t]?this._defaultTranslation[t]:(console.error("Unexpected error when looking up the translation for "+t),"No translation found")}_createCoordinate(t,e){return{lat:e,lng:t}}_calcDistance(t,e){const n=Math.PI/180,r=Math.sin((e.lat-t.lat)*n/2),i=Math.sin((e.lng-t.lng)*n/2),o=r*r+Math.cos(t.lat*n)*Math.cos(e.lat*n)*i*i;return 12742e3*Math.atan2(Math.sqrt(o),Math.sqrt(1-o))}_createDOMElement(t,e,n){const r=document.createElement(t);return r.className=e||"",n&&n.appendChild(r),r}_isMobile(){return/Android|webOS|iPhone|iPad|Mac|Macintosh|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}}const dr=(t,e,n)=>{const r=ft("body").append("svg");r.append("circle").attr("class","height-focus circle").attr("r",5).attr("cx",5).attr("cy",75).style("display","block"),r.append("line").attr("class","height-focus line").attr("x1",5).attr("x2",5).attr("y1",0).attr("y2",80).style("display","block");const i=r.append("g").attr("class","height-focus label").style("display","block");i.append("rect").attr("x",8).attr("y",0).attr("class","bBox"),i.append("text").attr("x",10).attr("y",12).text(gr(t,n,!0)).attr("class","tspan mouse-height-box-text"),i.append("text").attr("x",10).attr("y",24).text(e).attr("class","tspan mouse-height-box-text");const o=vr("text.tspan"),a=""===e?22:34;return mt(".bBox").attr("width",o.width+10).attr("height",a),r.attr("width",o.width+40).attr("height",80),r.remove(),r.node()};function fr(t,e,n,r){return n?mr(1e3*e)<.1?yr(t).toFixed(r?1:0)+" ft":mr(1e3*e)<10?mr(t).toFixed(r?3:1)+" mi":mr(t).toFixed(r?3:0)+" mi":e<1?t.toFixed(r?2:0)+" m":e<10?(t/1e3).toFixed(r?3:1)+" km":(t/1e3).toFixed(r?3:0)+" km"}function gr(t,e,n){return e?yr(t).toFixed(n?1:0)+" ft":t.toFixed(n?2:0)+" m"}function mr(t){return t/1609.34}function yr(t){return t/.3048}const vr=t=>{const e=[],n=[];return mt(t).nodes().map((t=>t.getBBox())).forEach((t=>{e.push(t.width),n.push(t.height)})),{width:rn(e),height:rn(n)}}},4525:(t,e)=>{e.read=function(t,e,n,r,i){var o,a,s=8*i-r-1,l=(1<<s)-1,u=l>>1,c=-7,h=n?i-1:0,p=n?-1:1,d=t[e+h];for(h+=p,o=d&(1<<-c)-1,d>>=-c,c+=s;c>0;o=256*o+t[e+h],h+=p,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=r;c>0;a=256*a+t[e+h],h+=p,c-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,r),o-=u}return(d?-1:1)*a*Math.pow(2,o-r)},e.write=function(t,e,n,r,i,o){var a,s,l,u=8*o-i-1,c=(1<<u)-1,h=c>>1,p=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:o-1,f=r?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=c):(a=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-a))<1&&(a--,l*=2),(e+=a+h>=1?p/l:p*Math.pow(2,1-h))*l>=2&&(a++,l/=2),a+h>=c?(s=0,a=c):a+h>=1?(s=(e*l-1)*Math.pow(2,i),a+=h):(s=e*Math.pow(2,h-1)*Math.pow(2,i),a=0));i>=8;t[n+d]=255&s,d+=f,s/=256,i-=8);for(a=a<<i|s,u+=i;u>0;t[n+d]=255&a,d+=f,a/=256,u-=8);t[n+d-f]|=128*g}},3666:(t,e,n)=>{"use strict";const r=n(1123),i=Symbol("max"),o=Symbol("length"),a=Symbol("lengthCalculator"),s=Symbol("allowStale"),l=Symbol("maxAge"),u=Symbol("dispose"),c=Symbol("noDisposeOnSet"),h=Symbol("lruList"),p=Symbol("cache"),d=Symbol("updateAgeOnGet"),f=()=>1,g=(t,e,n)=>{const r=t[p].get(e);if(r){const e=r.value;if(m(t,e)){if(v(t,r),!t[s])return}else n&&(t[d]&&(r.value.now=Date.now()),t[h].unshiftNode(r));return e.value}},m=(t,e)=>{if(!e||!e.maxAge&&!t[l])return!1;const n=Date.now()-e.now;return e.maxAge?n>e.maxAge:t[l]&&n>t[l]},y=t=>{if(t[o]>t[i])for(let e=t[h].tail;t[o]>t[i]&&null!==e;){const n=e.prev;v(t,e),e=n}},v=(t,e)=>{if(e){const n=e.value;t[u]&&t[u](n.key,n.value),t[o]-=n.length,t[p].delete(n.key),t[h].removeNode(e)}};class _{constructor(t,e,n,r,i){this.key=t,this.value=e,this.length=n,this.now=r,this.maxAge=i||0}}const b=(t,e,n,r)=>{let i=n.value;m(t,i)&&(v(t,n),t[s]||(i=void 0)),i&&e.call(r,i.value,i.key,t)};t.exports=class{constructor(t){if("number"==typeof t&&(t={max:t}),t||(t={}),t.max&&("number"!=typeof t.max||t.max<0))throw new TypeError("max must be a non-negative number");this[i]=t.max||1/0;const e=t.length||f;if(this[a]="function"!=typeof e?f:e,this[s]=t.stale||!1,t.maxAge&&"number"!=typeof t.maxAge)throw new TypeError("maxAge must be a number");this[l]=t.maxAge||0,this[u]=t.dispose,this[c]=t.noDisposeOnSet||!1,this[d]=t.updateAgeOnGet||!1,this.reset()}set max(t){if("number"!=typeof t||t<0)throw new TypeError("max must be a non-negative number");this[i]=t||1/0,y(this)}get max(){return this[i]}set allowStale(t){this[s]=!!t}get allowStale(){return this[s]}set maxAge(t){if("number"!=typeof t)throw new TypeError("maxAge must be a non-negative number");this[l]=t,y(this)}get maxAge(){return this[l]}set lengthCalculator(t){"function"!=typeof t&&(t=f),t!==this[a]&&(this[a]=t,this[o]=0,this[h].forEach((t=>{t.length=this[a](t.value,t.key),this[o]+=t.length}))),y(this)}get lengthCalculator(){return this[a]}get length(){return this[o]}get itemCount(){return this[h].length}rforEach(t,e){e=e||this;for(let n=this[h].tail;null!==n;){const r=n.prev;b(this,t,n,e),n=r}}forEach(t,e){e=e||this;for(let n=this[h].head;null!==n;){const r=n.next;b(this,t,n,e),n=r}}keys(){return this[h].toArray().map((t=>t.key))}values(){return this[h].toArray().map((t=>t.value))}reset(){this[u]&&this[h]&&this[h].length&&this[h].forEach((t=>this[u](t.key,t.value))),this[p]=new Map,this[h]=new r,this[o]=0}dump(){return this[h].map((t=>!m(this,t)&&{k:t.key,v:t.value,e:t.now+(t.maxAge||0)})).toArray().filter((t=>t))}dumpLru(){return this[h]}set(t,e,n){if((n=n||this[l])&&"number"!=typeof n)throw new TypeError("maxAge must be a number");const r=n?Date.now():0,s=this[a](e,t);if(this[p].has(t)){if(s>this[i])return v(this,this[p].get(t)),!1;const a=this[p].get(t).value;return this[u]&&(this[c]||this[u](t,a.value)),a.now=r,a.maxAge=n,a.value=e,this[o]+=s-a.length,a.length=s,this.get(t),y(this),!0}const d=new _(t,e,s,r,n);return d.length>this[i]?(this[u]&&this[u](t,e),!1):(this[o]+=d.length,this[h].unshift(d),this[p].set(t,this[h].head),y(this),!0)}has(t){if(!this[p].has(t))return!1;const e=this[p].get(t).value;return!m(this,e)}get(t){return g(this,t,!0)}peek(t){return g(this,t,!1)}pop(){const t=this[h].tail;return t?(v(this,t),t.value):null}del(t){v(this,this[p].get(t))}load(t){this.reset();const e=Date.now();for(let n=t.length-1;n>=0;n--){const r=t[n],i=r.e||0;if(0===i)this.set(r.k,r.v);else{const t=i-e;t>0&&this.set(r.k,r.v,t)}}}prune(){this[p].forEach(((t,e)=>g(this,e,!1)))}}},4459:(t,e,n)=>{"use strict";t.exports=i;var r=n(4525);function i(t){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(t)?t:new Uint8Array(t||0),this.pos=0,this.type=0,this.length=this.buf.length}i.Varint=0,i.Fixed64=1,i.Bytes=2,i.Fixed32=5;var o=4294967296,a=1/o,s="undefined"==typeof TextDecoder?null:new TextDecoder("utf8");function l(t){return t.type===i.Bytes?t.readVarint()+t.pos:t.pos+1}function u(t,e,n){return n?4294967296*e+(t>>>0):4294967296*(e>>>0)+(t>>>0)}function c(t,e,n){var r=e<=16383?1:e<=2097151?2:e<=268435455?3:Math.floor(Math.log(e)/(7*Math.LN2));n.realloc(r);for(var i=n.pos-1;i>=t;i--)n.buf[i+r]=n.buf[i]}function h(t,e){for(var n=0;n<t.length;n++)e.writeVarint(t[n])}function p(t,e){for(var n=0;n<t.length;n++)e.writeSVarint(t[n])}function d(t,e){for(var n=0;n<t.length;n++)e.writeFloat(t[n])}function f(t,e){for(var n=0;n<t.length;n++)e.writeDouble(t[n])}function g(t,e){for(var n=0;n<t.length;n++)e.writeBoolean(t[n])}function m(t,e){for(var n=0;n<t.length;n++)e.writeFixed32(t[n])}function y(t,e){for(var n=0;n<t.length;n++)e.writeSFixed32(t[n])}function v(t,e){for(var n=0;n<t.length;n++)e.writeFixed64(t[n])}function _(t,e){for(var n=0;n<t.length;n++)e.writeSFixed64(t[n])}function b(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16)+16777216*t[e+3]}function w(t,e,n){t[n]=e,t[n+1]=e>>>8,t[n+2]=e>>>16,t[n+3]=e>>>24}function x(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16)+(t[e+3]<<24)}i.prototype={destroy:function(){this.buf=null},readFields:function(t,e,n){for(n=n||this.length;this.pos<n;){var r=this.readVarint(),i=r>>3,o=this.pos;this.type=7&r,t(i,e,this),this.pos===o&&this.skip(r)}return e},readMessage:function(t,e){return this.readFields(t,e,this.readVarint()+this.pos)},readFixed32:function(){var t=b(this.buf,this.pos);return this.pos+=4,t},readSFixed32:function(){var t=x(this.buf,this.pos);return this.pos+=4,t},readFixed64:function(){var t=b(this.buf,this.pos)+b(this.buf,this.pos+4)*o;return this.pos+=8,t},readSFixed64:function(){var t=b(this.buf,this.pos)+x(this.buf,this.pos+4)*o;return this.pos+=8,t},readFloat:function(){var t=r.read(this.buf,this.pos,!0,23,4);return this.pos+=4,t},readDouble:function(){var t=r.read(this.buf,this.pos,!0,52,8);return this.pos+=8,t},readVarint:function(t){var e,n,r=this.buf;return e=127&(n=r[this.pos++]),n<128?e:(e|=(127&(n=r[this.pos++]))<<7,n<128?e:(e|=(127&(n=r[this.pos++]))<<14,n<128?e:(e|=(127&(n=r[this.pos++]))<<21,n<128?e:function(t,e,n){var r,i,o=n.buf;if(r=(112&(i=o[n.pos++]))>>4,i<128)return u(t,r,e);if(r|=(127&(i=o[n.pos++]))<<3,i<128)return u(t,r,e);if(r|=(127&(i=o[n.pos++]))<<10,i<128)return u(t,r,e);if(r|=(127&(i=o[n.pos++]))<<17,i<128)return u(t,r,e);if(r|=(127&(i=o[n.pos++]))<<24,i<128)return u(t,r,e);if(r|=(1&(i=o[n.pos++]))<<31,i<128)return u(t,r,e);throw new Error("Expected varint not more than 10 bytes")}(e|=(15&(n=r[this.pos]))<<28,t,this))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var t=this.readVarint();return t%2==1?(t+1)/-2:t/2},readBoolean:function(){return Boolean(this.readVarint())},readString:function(){var t=this.readVarint()+this.pos,e=this.pos;return this.pos=t,t-e>=12&&s?function(t,e,n){return s.decode(t.subarray(e,n))}(this.buf,e,t):function(t,e,n){for(var r="",i=e;i<n;){var o,a,s,l=t[i],u=null,c=l>239?4:l>223?3:l>191?2:1;if(i+c>n)break;1===c?l<128&&(u=l):2===c?128==(192&(o=t[i+1]))&&(u=(31&l)<<6|63&o)<=127&&(u=null):3===c?(o=t[i+1],a=t[i+2],128==(192&o)&&128==(192&a)&&((u=(15&l)<<12|(63&o)<<6|63&a)<=2047||u>=55296&&u<=57343)&&(u=null)):4===c&&(o=t[i+1],a=t[i+2],s=t[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&((u=(15&l)<<18|(63&o)<<12|(63&a)<<6|63&s)<=65535||u>=1114112)&&(u=null)),null===u?(u=65533,c=1):u>65535&&(u-=65536,r+=String.fromCharCode(u>>>10&1023|55296),u=56320|1023&u),r+=String.fromCharCode(u),i+=c}return r}(this.buf,e,t)},readBytes:function(){var t=this.readVarint()+this.pos,e=this.buf.subarray(this.pos,t);return this.pos=t,e},readPackedVarint:function(t,e){if(this.type!==i.Bytes)return t.push(this.readVarint(e));var n=l(this);for(t=t||[];this.pos<n;)t.push(this.readVarint(e));return t},readPackedSVarint:function(t){if(this.type!==i.Bytes)return t.push(this.readSVarint());var e=l(this);for(t=t||[];this.pos<e;)t.push(this.readSVarint());return t},readPackedBoolean:function(t){if(this.type!==i.Bytes)return t.push(this.readBoolean());var e=l(this);for(t=t||[];this.pos<e;)t.push(this.readBoolean());return t},readPackedFloat:function(t){if(this.type!==i.Bytes)return t.push(this.readFloat());var e=l(this);for(t=t||[];this.pos<e;)t.push(this.readFloat());return t},readPackedDouble:function(t){if(this.type!==i.Bytes)return t.push(this.readDouble());var e=l(this);for(t=t||[];this.pos<e;)t.push(this.readDouble());return t},readPackedFixed32:function(t){if(this.type!==i.Bytes)return t.push(this.readFixed32());var e=l(this);for(t=t||[];this.pos<e;)t.push(this.readFixed32());return t},readPackedSFixed32:function(t){if(this.type!==i.Bytes)return t.push(this.readSFixed32());var e=l(this);for(t=t||[];this.pos<e;)t.push(this.readSFixed32());return t},readPackedFixed64:function(t){if(this.type!==i.Bytes)return t.push(this.readFixed64());var e=l(this);for(t=t||[];this.pos<e;)t.push(this.readFixed64());return t},readPackedSFixed64:function(t){if(this.type!==i.Bytes)return t.push(this.readSFixed64());var e=l(this);for(t=t||[];this.pos<e;)t.push(this.readSFixed64());return t},skip:function(t){var e=7&t;if(e===i.Varint)for(;this.buf[this.pos++]>127;);else if(e===i.Bytes)this.pos=this.readVarint()+this.pos;else if(e===i.Fixed32)this.pos+=4;else{if(e!==i.Fixed64)throw new Error("Unimplemented type: "+e);this.pos+=8}},writeTag:function(t,e){this.writeVarint(t<<3|e)},realloc:function(t){for(var e=this.length||16;e<this.pos+t;)e*=2;if(e!==this.length){var n=new Uint8Array(e);n.set(this.buf),this.buf=n,this.length=e}},finish:function(){return this.length=this.pos,this.pos=0,this.buf.subarray(0,this.length)},writeFixed32:function(t){this.realloc(4),w(this.buf,t,this.pos),this.pos+=4},writeSFixed32:function(t){this.realloc(4),w(this.buf,t,this.pos),this.pos+=4},writeFixed64:function(t){this.realloc(8),w(this.buf,-1&t,this.pos),w(this.buf,Math.floor(t*a),this.pos+4),this.pos+=8},writeSFixed64:function(t){this.realloc(8),w(this.buf,-1&t,this.pos),w(this.buf,Math.floor(t*a),this.pos+4),this.pos+=8},writeVarint:function(t){(t=+t||0)>268435455||t<0?function(t,e){var n,r;if(t>=0?(n=t%4294967296|0,r=t/4294967296|0):(r=~(-t/4294967296),4294967295^(n=~(-t%4294967296))?n=n+1|0:(n=0,r=r+1|0)),t>=0x10000000000000000||t<-0x10000000000000000)throw new Error("Given varint doesn't fit into 10 bytes");e.realloc(10),function(t,e,n){n.buf[n.pos++]=127&t|128,t>>>=7,n.buf[n.pos++]=127&t|128,t>>>=7,n.buf[n.pos++]=127&t|128,t>>>=7,n.buf[n.pos++]=127&t|128,t>>>=7,n.buf[n.pos]=127&t}(n,0,e),function(t,e){var n=(7&t)<<4;e.buf[e.pos++]|=n|((t>>>=3)?128:0),t&&(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=127&t)))))}(r,e)}(t,this):(this.realloc(4),this.buf[this.pos++]=127&t|(t>127?128:0),t<=127||(this.buf[this.pos++]=127&(t>>>=7)|(t>127?128:0),t<=127||(this.buf[this.pos++]=127&(t>>>=7)|(t>127?128:0),t<=127||(this.buf[this.pos++]=t>>>7&127))))},writeSVarint:function(t){this.writeVarint(t<0?2*-t-1:2*t)},writeBoolean:function(t){this.writeVarint(Boolean(t))},writeString:function(t){t=String(t),this.realloc(4*t.length),this.pos++;var e=this.pos;this.pos=function(t,e,n){for(var r,i,o=0;o<e.length;o++){if((r=e.charCodeAt(o))>55295&&r<57344){if(!i){r>56319||o+1===e.length?(t[n++]=239,t[n++]=191,t[n++]=189):i=r;continue}if(r<56320){t[n++]=239,t[n++]=191,t[n++]=189,i=r;continue}r=i-55296<<10|r-56320|65536,i=null}else i&&(t[n++]=239,t[n++]=191,t[n++]=189,i=null);r<128?t[n++]=r:(r<2048?t[n++]=r>>6|192:(r<65536?t[n++]=r>>12|224:(t[n++]=r>>18|240,t[n++]=r>>12&63|128),t[n++]=r>>6&63|128),t[n++]=63&r|128)}return n}(this.buf,t,this.pos);var n=this.pos-e;n>=128&&c(e,n,this),this.pos=e-1,this.writeVarint(n),this.pos+=n},writeFloat:function(t){this.realloc(4),r.write(this.buf,t,this.pos,!0,23,4),this.pos+=4},writeDouble:function(t){this.realloc(8),r.write(this.buf,t,this.pos,!0,52,8),this.pos+=8},writeBytes:function(t){var e=t.length;this.writeVarint(e),this.realloc(e);for(var n=0;n<e;n++)this.buf[this.pos++]=t[n]},writeRawMessage:function(t,e){this.pos++;var n=this.pos;t(e,this);var r=this.pos-n;r>=128&&c(n,r,this),this.pos=n-1,this.writeVarint(r),this.pos+=r},writeMessage:function(t,e,n){this.writeTag(t,i.Bytes),this.writeRawMessage(e,n)},writePackedVarint:function(t,e){e.length&&this.writeMessage(t,h,e)},writePackedSVarint:function(t,e){e.length&&this.writeMessage(t,p,e)},writePackedBoolean:function(t,e){e.length&&this.writeMessage(t,g,e)},writePackedFloat:function(t,e){e.length&&this.writeMessage(t,d,e)},writePackedDouble:function(t,e){e.length&&this.writeMessage(t,f,e)},writePackedFixed32:function(t,e){e.length&&this.writeMessage(t,m,e)},writePackedSFixed32:function(t,e){e.length&&this.writeMessage(t,y,e)},writePackedFixed64:function(t,e){e.length&&this.writeMessage(t,v,e)},writePackedSFixed64:function(t,e){e.length&&this.writeMessage(t,_,e)},writeBytesField:function(t,e){this.writeTag(t,i.Bytes),this.writeBytes(e)},writeFixed32Field:function(t,e){this.writeTag(t,i.Fixed32),this.writeFixed32(e)},writeSFixed32Field:function(t,e){this.writeTag(t,i.Fixed32),this.writeSFixed32(e)},writeFixed64Field:function(t,e){this.writeTag(t,i.Fixed64),this.writeFixed64(e)},writeSFixed64Field:function(t,e){this.writeTag(t,i.Fixed64),this.writeSFixed64(e)},writeVarintField:function(t,e){this.writeTag(t,i.Varint),this.writeVarint(e)},writeSVarintField:function(t,e){this.writeTag(t,i.Varint),this.writeSVarint(e)},writeStringField:function(t,e){this.writeTag(t,i.Bytes),this.writeString(e)},writeFloatField:function(t,e){this.writeTag(t,i.Fixed32),this.writeFloat(e)},writeDoubleField:function(t,e){this.writeTag(t,i.Fixed64),this.writeDouble(e)},writeBooleanField:function(t,e){this.writeVarintField(t,Boolean(e))}}},6656:function(t){t.exports=function(){"use strict";function t(t,r,i,o,a){!function t(n,r,i,o,a){for(;o>i;){if(o-i>600){var s=o-i+1,l=r-i+1,u=Math.log(s),c=.5*Math.exp(2*u/3),h=.5*Math.sqrt(u*c*(s-c)/s)*(l-s/2<0?-1:1);t(n,r,Math.max(i,Math.floor(r-l*c/s+h)),Math.min(o,Math.floor(r+(s-l)*c/s+h)),a)}var p=n[r],d=i,f=o;for(e(n,i,r),a(n[o],p)>0&&e(n,i,o);d<f;){for(e(n,d,f),d++,f--;a(n[d],p)<0;)d++;for(;a(n[f],p)>0;)f--}0===a(n[i],p)?e(n,i,f):e(n,++f,o),f<=r&&(i=f+1),r<=f&&(o=f-1)}}(t,r,i||0,o||t.length-1,a||n)}function e(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function n(t,e){return t<e?-1:t>e?1:0}var r=function(t){void 0===t&&(t=9),this._maxEntries=Math.max(4,t),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()};function i(t,e,n){if(!n)return e.indexOf(t);for(var r=0;r<e.length;r++)if(n(t,e[r]))return r;return-1}function o(t,e){a(t,0,t.children.length,e,t)}function a(t,e,n,r,i){i||(i=f(null)),i.minX=1/0,i.minY=1/0,i.maxX=-1/0,i.maxY=-1/0;for(var o=e;o<n;o++){var a=t.children[o];s(i,t.leaf?r(a):a)}return i}function s(t,e){return t.minX=Math.min(t.minX,e.minX),t.minY=Math.min(t.minY,e.minY),t.maxX=Math.max(t.maxX,e.maxX),t.maxY=Math.max(t.maxY,e.maxY),t}function l(t,e){return t.minX-e.minX}function u(t,e){return t.minY-e.minY}function c(t){return(t.maxX-t.minX)*(t.maxY-t.minY)}function h(t){return t.maxX-t.minX+(t.maxY-t.minY)}function p(t,e){return t.minX<=e.minX&&t.minY<=e.minY&&e.maxX<=t.maxX&&e.maxY<=t.maxY}function d(t,e){return e.minX<=t.maxX&&e.minY<=t.maxY&&e.maxX>=t.minX&&e.maxY>=t.minY}function f(t){return{children:t,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function g(e,n,r,i,o){for(var a=[n,r];a.length;)if(!((r=a.pop())-(n=a.pop())<=i)){var s=n+Math.ceil((r-n)/i/2)*i;t(e,s,n,r,o),a.push(n,s,s,r)}}return r.prototype.all=function(){return this._all(this.data,[])},r.prototype.search=function(t){var e=this.data,n=[];if(!d(t,e))return n;for(var r=this.toBBox,i=[];e;){for(var o=0;o<e.children.length;o++){var a=e.children[o],s=e.leaf?r(a):a;d(t,s)&&(e.leaf?n.push(a):p(t,s)?this._all(a,n):i.push(a))}e=i.pop()}return n},r.prototype.collides=function(t){var e=this.data;if(!d(t,e))return!1;for(var n=[];e;){for(var r=0;r<e.children.length;r++){var i=e.children[r],o=e.leaf?this.toBBox(i):i;if(d(t,o)){if(e.leaf||p(t,o))return!0;n.push(i)}}e=n.pop()}return!1},r.prototype.load=function(t){if(!t||!t.length)return this;if(t.length<this._minEntries){for(var e=0;e<t.length;e++)this.insert(t[e]);return this}var n=this._build(t.slice(),0,t.length-1,0);if(this.data.children.length)if(this.data.height===n.height)this._splitRoot(this.data,n);else{if(this.data.height<n.height){var r=this.data;this.data=n,n=r}this._insert(n,this.data.height-n.height-1,!0)}else this.data=n;return this},r.prototype.insert=function(t){return t&&this._insert(t,this.data.height-1),this},r.prototype.clear=function(){return this.data=f([]),this},r.prototype.remove=function(t,e){if(!t)return this;for(var n,r,o,a=this.data,s=this.toBBox(t),l=[],u=[];a||l.length;){if(a||(a=l.pop(),r=l[l.length-1],n=u.pop(),o=!0),a.leaf){var c=i(t,a.children,e);if(-1!==c)return a.children.splice(c,1),l.push(a),this._condense(l),this}o||a.leaf||!p(a,s)?r?(n++,a=r.children[n],o=!1):a=null:(l.push(a),u.push(n),n=0,r=a,a=a.children[0])}return this},r.prototype.toBBox=function(t){return t},r.prototype.compareMinX=function(t,e){return t.minX-e.minX},r.prototype.compareMinY=function(t,e){return t.minY-e.minY},r.prototype.toJSON=function(){return this.data},r.prototype.fromJSON=function(t){return this.data=t,this},r.prototype._all=function(t,e){for(var n=[];t;)t.leaf?e.push.apply(e,t.children):n.push.apply(n,t.children),t=n.pop();return e},r.prototype._build=function(t,e,n,r){var i,a=n-e+1,s=this._maxEntries;if(a<=s)return o(i=f(t.slice(e,n+1)),this.toBBox),i;r||(r=Math.ceil(Math.log(a)/Math.log(s)),s=Math.ceil(a/Math.pow(s,r-1))),(i=f([])).leaf=!1,i.height=r;var l=Math.ceil(a/s),u=l*Math.ceil(Math.sqrt(s));g(t,e,n,u,this.compareMinX);for(var c=e;c<=n;c+=u){var h=Math.min(c+u-1,n);g(t,c,h,l,this.compareMinY);for(var p=c;p<=h;p+=l){var d=Math.min(p+l-1,h);i.children.push(this._build(t,p,d,r-1))}}return o(i,this.toBBox),i},r.prototype._chooseSubtree=function(t,e,n,r){for(;r.push(e),!e.leaf&&r.length-1!==n;){for(var i=1/0,o=1/0,a=void 0,s=0;s<e.children.length;s++){var l=e.children[s],u=c(l),h=(p=t,d=l,(Math.max(d.maxX,p.maxX)-Math.min(d.minX,p.minX))*(Math.max(d.maxY,p.maxY)-Math.min(d.minY,p.minY))-u);h<o?(o=h,i=u<i?u:i,a=l):h===o&&u<i&&(i=u,a=l)}e=a||e.children[0]}var p,d;return e},r.prototype._insert=function(t,e,n){var r=n?t:this.toBBox(t),i=[],o=this._chooseSubtree(r,this.data,e,i);for(o.children.push(t),s(o,r);e>=0&&i[e].children.length>this._maxEntries;)this._split(i,e),e--;this._adjustParentBBoxes(r,i,e)},r.prototype._split=function(t,e){var n=t[e],r=n.children.length,i=this._minEntries;this._chooseSplitAxis(n,i,r);var a=this._chooseSplitIndex(n,i,r),s=f(n.children.splice(a,n.children.length-a));s.height=n.height,s.leaf=n.leaf,o(n,this.toBBox),o(s,this.toBBox),e?t[e-1].children.push(s):this._splitRoot(n,s)},r.prototype._splitRoot=function(t,e){this.data=f([t,e]),this.data.height=t.height+1,this.data.leaf=!1,o(this.data,this.toBBox)},r.prototype._chooseSplitIndex=function(t,e,n){for(var r,i,o,s,l,u,h,p=1/0,d=1/0,f=e;f<=n-e;f++){var g=a(t,0,f,this.toBBox),m=a(t,f,n,this.toBBox),y=(i=g,o=m,void 0,void 0,void 0,void 0,s=Math.max(i.minX,o.minX),l=Math.max(i.minY,o.minY),u=Math.min(i.maxX,o.maxX),h=Math.min(i.maxY,o.maxY),Math.max(0,u-s)*Math.max(0,h-l)),v=c(g)+c(m);y<p?(p=y,r=f,d=v<d?v:d):y===p&&v<d&&(d=v,r=f)}return r||n-e},r.prototype._chooseSplitAxis=function(t,e,n){var r=t.leaf?this.compareMinX:l,i=t.leaf?this.compareMinY:u;this._allDistMargin(t,e,n,r)<this._allDistMargin(t,e,n,i)&&t.children.sort(r)},r.prototype._allDistMargin=function(t,e,n,r){t.children.sort(r);for(var i=this.toBBox,o=a(t,0,e,i),l=a(t,n-e,n,i),u=h(o)+h(l),c=e;c<n-e;c++){var p=t.children[c];s(o,t.leaf?i(p):p),u+=h(o)}for(var d=n-e-1;d>=e;d--){var f=t.children[d];s(l,t.leaf?i(f):f),u+=h(l)}return u},r.prototype._adjustParentBBoxes=function(t,e,n){for(var r=n;r>=0;r--)s(e[r],t)},r.prototype._condense=function(t){for(var e=t.length-1,n=void 0;e>=0;e--)0===t[e].children.length?e>0?(n=t[e-1].children).splice(n.indexOf(t[e]),1):this.clear():o(t[e],this.toBBox)},r}()},7799:(t,e,n)=>{"use strict";var r=n(9526),i=n(2851);function o(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=new Set,s={};function l(t,e){u(t,e),u(t+"Capture",e)}function u(t,e){for(s[t]=e,t=0;t<e.length;t++)a.add(e[t])}var c=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),h=Object.prototype.hasOwnProperty,p=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,d={},f={};function g(t,e,n,r,i,o,a){this.acceptsBooleans=2===e||3===e||4===e,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=t,this.type=e,this.sanitizeURL=o,this.removeEmptyString=a}var m={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(t){m[t]=new g(t,0,!1,t,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(t){var e=t[0];m[e]=new g(e,1,!1,t[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(t){m[t]=new g(t,2,!1,t.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(t){m[t]=new g(t,2,!1,t,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(t){m[t]=new g(t,3,!1,t.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(t){m[t]=new g(t,3,!0,t,null,!1,!1)})),["capture","download"].forEach((function(t){m[t]=new g(t,4,!1,t,null,!1,!1)})),["cols","rows","size","span"].forEach((function(t){m[t]=new g(t,6,!1,t,null,!1,!1)})),["rowSpan","start"].forEach((function(t){m[t]=new g(t,5,!1,t.toLowerCase(),null,!1,!1)}));var y=/[\-:]([a-z])/g;function v(t){return t[1].toUpperCase()}function _(t,e,n,r){var i=m.hasOwnProperty(e)?m[e]:null;(null!==i?0!==i.type:r||!(2<e.length)||"o"!==e[0]&&"O"!==e[0]||"n"!==e[1]&&"N"!==e[1])&&(function(t,e,n,r){if(null==e||function(t,e,n,r){if(null!==n&&0===n.type)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(t=t.toLowerCase().slice(0,5))&&"aria-"!==t);default:return!1}}(t,e,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!e;case 4:return!1===e;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}(e,n,i,r)&&(n=null),r||null===i?function(t){return!!h.call(f,t)||!h.call(d,t)&&(p.test(t)?f[t]=!0:(d[t]=!0,!1))}(e)&&(null===n?t.removeAttribute(e):t.setAttribute(e,""+n)):i.mustUseProperty?t[i.propertyName]=null===n?3!==i.type&&"":n:(e=i.attributeName,r=i.attributeNamespace,null===n?t.removeAttribute(e):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?t.setAttributeNS(r,e,n):t.setAttribute(e,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(t){var e=t.replace(y,v);m[e]=new g(e,1,!1,t,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(t){var e=t.replace(y,v);m[e]=new g(e,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(t){var e=t.replace(y,v);m[e]=new g(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(t){m[t]=new g(t,1,!1,t.toLowerCase(),null,!1,!1)})),m.xlinkHref=new g("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(t){m[t]=new g(t,1,!1,t.toLowerCase(),null,!0,!0)}));var b=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,w=Symbol.for("react.element"),x=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),k=Symbol.for("react.provider"),A=Symbol.for("react.context"),P=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),M=Symbol.for("react.suspense_list"),O=Symbol.for("react.memo"),R=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var I=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var L=Symbol.iterator;function F(t){return null===t||"object"!=typeof t?null:"function"==typeof(t=L&&t[L]||t["@@iterator"])?t:null}var N,D=Object.assign;function z(t){if(void 0===N)try{throw Error()}catch(t){var e=t.stack.trim().match(/\n( *(at )?)/);N=e&&e[1]||""}return"\n"+N+t}var Z=!1;function j(t,e){if(!t||Z)return"";Z=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(e)if(e=function(){throw Error()},Object.defineProperty(e.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(e,[])}catch(t){var r=t}Reflect.construct(t,[],e)}else{try{e.call()}catch(t){r=t}t.call(e.prototype)}else{try{throw Error()}catch(t){r=t}t()}}catch(e){if(e&&r&&"string"==typeof e.stack){for(var i=e.stack.split("\n"),o=r.stack.split("\n"),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(1!==a||1!==s)do{if(a--,0>--s||i[a]!==o[s]){var l="\n"+i[a].replace(" at new "," at ");return t.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",t.displayName)),l}}while(1<=a&&0<=s);break}}}finally{Z=!1,Error.prepareStackTrace=n}return(t=t?t.displayName||t.name:"")?z(t):""}function G(t){switch(t.tag){case 5:return z(t.type);case 16:return z("Lazy");case 13:return z("Suspense");case 19:return z("SuspenseList");case 0:case 2:case 15:return j(t.type,!1);case 11:return j(t.type.render,!1);case 1:return j(t.type,!0);default:return""}}function B(t){if(null==t)return null;if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t;switch(t){case S:return"Fragment";case x:return"Portal";case E:return"Profiler";case C:return"StrictMode";case T:return"Suspense";case M:return"SuspenseList"}if("object"==typeof t)switch(t.$$typeof){case A:return(t.displayName||"Context")+".Consumer";case k:return(t._context.displayName||"Context")+".Provider";case P:var e=t.render;return(t=t.displayName)||(t=""!==(t=e.displayName||e.name||"")?"ForwardRef("+t+")":"ForwardRef"),t;case O:return null!==(e=t.displayName||null)?e:B(t.type)||"Memo";case R:e=t._payload,t=t._init;try{return B(t(e))}catch(t){}}return null}function U(t){var e=t.type;switch(t.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=(t=e.render).displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return B(e);case 8:return e===C?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e}return null}function V(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":case"object":return t;default:return""}}function q(t){var e=t.type;return(t=t.nodeName)&&"input"===t.toLowerCase()&&("checkbox"===e||"radio"===e)}function W(t){t._valueTracker||(t._valueTracker=function(t){var e=q(t)?"checked":"value",n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),r=""+t[e];if(!t.hasOwnProperty(e)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return i.call(this)},set:function(t){r=""+t,o.call(this,t)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(t){r=""+t},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}(t))}function H(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),r="";return t&&(r=q(t)?t.checked?"true":"false":t.value),(t=r)!==n&&(e.setValue(t),!0)}function X(t){if(void 0===(t=t||("undefined"!=typeof document?document:void 0)))return null;try{return t.activeElement||t.body}catch(e){return t.body}}function K(t,e){var n=e.checked;return D({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:t._wrapperState.initialChecked})}function Y(t,e){var n=null==e.defaultValue?"":e.defaultValue,r=null!=e.checked?e.checked:e.defaultChecked;n=V(null!=e.value?e.value:n),t._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===e.type||"radio"===e.type?null!=e.checked:null!=e.value}}function Q(t,e){null!=(e=e.checked)&&_(t,"checked",e,!1)}function $(t,e){Q(t,e);var n=V(e.value),r=e.type;if(null!=n)"number"===r?(0===n&&""===t.value||t.value!=n)&&(t.value=""+n):t.value!==""+n&&(t.value=""+n);else if("submit"===r||"reset"===r)return void t.removeAttribute("value");e.hasOwnProperty("value")?tt(t,e.type,n):e.hasOwnProperty("defaultValue")&&tt(t,e.type,V(e.defaultValue)),null==e.checked&&null!=e.defaultChecked&&(t.defaultChecked=!!e.defaultChecked)}function J(t,e,n){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var r=e.type;if(!("submit"!==r&&"reset"!==r||void 0!==e.value&&null!==e.value))return;e=""+t._wrapperState.initialValue,n||e===t.value||(t.value=e),t.defaultValue=e}""!==(n=t.name)&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,""!==n&&(t.name=n)}function tt(t,e,n){"number"===e&&X(t.ownerDocument)===t||(null==n?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+n&&(t.defaultValue=""+n))}var et=Array.isArray;function nt(t,e,n,r){if(t=t.options,e){e={};for(var i=0;i<n.length;i++)e["$"+n[i]]=!0;for(n=0;n<t.length;n++)i=e.hasOwnProperty("$"+t[n].value),t[n].selected!==i&&(t[n].selected=i),i&&r&&(t[n].defaultSelected=!0)}else{for(n=""+V(n),e=null,i=0;i<t.length;i++){if(t[i].value===n)return t[i].selected=!0,void(r&&(t[i].defaultSelected=!0));null!==e||t[i].disabled||(e=t[i])}null!==e&&(e.selected=!0)}}function rt(t,e){if(null!=e.dangerouslySetInnerHTML)throw Error(o(91));return D({},e,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function it(t,e){var n=e.value;if(null==n){if(n=e.children,e=e.defaultValue,null!=n){if(null!=e)throw Error(o(92));if(et(n)){if(1<n.length)throw Error(o(93));n=n[0]}e=n}null==e&&(e=""),n=e}t._wrapperState={initialValue:V(n)}}function ot(t,e){var n=V(e.value),r=V(e.defaultValue);null!=n&&((n=""+n)!==t.value&&(t.value=n),null==e.defaultValue&&t.defaultValue!==n&&(t.defaultValue=n)),null!=r&&(t.defaultValue=""+r)}function at(t){var e=t.textContent;e===t._wrapperState.initialValue&&""!==e&&null!==e&&(t.value=e)}function st(t){switch(t){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function lt(t,e){return null==t||"http://www.w3.org/1999/xhtml"===t?st(e):"http://www.w3.org/2000/svg"===t&&"foreignObject"===e?"http://www.w3.org/1999/xhtml":t}var ut,ct,ht=(ct=function(t,e){if("http://www.w3.org/2000/svg"!==t.namespaceURI||"innerHTML"in t)t.innerHTML=e;else{for((ut=ut||document.createElement("div")).innerHTML="<svg>"+e.valueOf().toString()+"</svg>",e=ut.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,e,n,r){MSApp.execUnsafeLocalFunction((function(){return ct(t,e)}))}:ct);function pt(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&3===n.nodeType)return void(n.nodeValue=e)}t.textContent=e}var dt={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ft=["Webkit","ms","Moz","O"];function gt(t,e,n){return null==e||"boolean"==typeof e||""===e?"":n||"number"!=typeof e||0===e||dt.hasOwnProperty(t)&&dt[t]?(""+e).trim():e+"px"}function mt(t,e){for(var n in t=t.style,e)if(e.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=gt(n,e[n],r);"float"===n&&(n="cssFloat"),r?t.setProperty(n,i):t[n]=i}}Object.keys(dt).forEach((function(t){ft.forEach((function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),dt[e]=dt[t]}))}));var yt=D({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function vt(t,e){if(e){if(yt[t]&&(null!=e.children||null!=e.dangerouslySetInnerHTML))throw Error(o(137,t));if(null!=e.dangerouslySetInnerHTML){if(null!=e.children)throw Error(o(60));if("object"!=typeof e.dangerouslySetInnerHTML||!("__html"in e.dangerouslySetInnerHTML))throw Error(o(61))}if(null!=e.style&&"object"!=typeof e.style)throw Error(o(62))}}function _t(t,e){if(-1===t.indexOf("-"))return"string"==typeof e.is;switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var bt=null;function wt(t){return(t=t.target||t.srcElement||window).correspondingUseElement&&(t=t.correspondingUseElement),3===t.nodeType?t.parentNode:t}var xt=null,St=null,Ct=null;function Et(t){if(t=_i(t)){if("function"!=typeof xt)throw Error(o(280));var e=t.stateNode;e&&(e=wi(e),xt(t.stateNode,t.type,e))}}function kt(t){St?Ct?Ct.push(t):Ct=[t]:St=t}function At(){if(St){var t=St,e=Ct;if(Ct=St=null,Et(t),e)for(t=0;t<e.length;t++)Et(e[t])}}function Pt(t,e){return t(e)}function Tt(){}var Mt=!1;function Ot(t,e,n){if(Mt)return t(e,n);Mt=!0;try{return Pt(t,e,n)}finally{Mt=!1,(null!==St||null!==Ct)&&(Tt(),At())}}function Rt(t,e){var n=t.stateNode;if(null===n)return null;var r=wi(n);if(null===r)return null;n=r[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(t=t.type)||"input"===t||"select"===t||"textarea"===t)),t=!r;break t;default:t=!1}if(t)return null;if(n&&"function"!=typeof n)throw Error(o(231,e,typeof n));return n}var It=!1;if(c)try{var Lt={};Object.defineProperty(Lt,"passive",{get:function(){It=!0}}),window.addEventListener("test",Lt,Lt),window.removeEventListener("test",Lt,Lt)}catch(ct){It=!1}function Ft(t,e,n,r,i,o,a,s,l){var u=Array.prototype.slice.call(arguments,3);try{e.apply(n,u)}catch(t){this.onError(t)}}var Nt=!1,Dt=null,zt=!1,Zt=null,jt={onError:function(t){Nt=!0,Dt=t}};function Gt(t,e,n,r,i,o,a,s,l){Nt=!1,Dt=null,Ft.apply(jt,arguments)}function Bt(t){var e=t,n=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do{0!=(4098&(e=t).flags)&&(n=e.return),t=e.return}while(t)}return 3===e.tag?n:null}function Ut(t){if(13===t.tag){var e=t.memoizedState;if(null===e&&null!==(t=t.alternate)&&(e=t.memoizedState),null!==e)return e.dehydrated}return null}function Vt(t){if(Bt(t)!==t)throw Error(o(188))}function qt(t){return null!==(t=function(t){var e=t.alternate;if(!e){if(null===(e=Bt(t)))throw Error(o(188));return e!==t?null:t}for(var n=t,r=e;;){var i=n.return;if(null===i)break;var a=i.alternate;if(null===a){if(null!==(r=i.return)){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return Vt(i),t;if(a===r)return Vt(i),e;a=a.sibling}throw Error(o(188))}if(n.return!==r.return)n=i,r=a;else{for(var s=!1,l=i.child;l;){if(l===n){s=!0,n=i,r=a;break}if(l===r){s=!0,r=i,n=a;break}l=l.sibling}if(!s){for(l=a.child;l;){if(l===n){s=!0,n=a,r=i;break}if(l===r){s=!0,r=a,n=i;break}l=l.sibling}if(!s)throw Error(o(189))}}if(n.alternate!==r)throw Error(o(190))}if(3!==n.tag)throw Error(o(188));return n.stateNode.current===n?t:e}(t))?Wt(t):null}function Wt(t){if(5===t.tag||6===t.tag)return t;for(t=t.child;null!==t;){var e=Wt(t);if(null!==e)return e;t=t.sibling}return null}var Ht=i.unstable_scheduleCallback,Xt=i.unstable_cancelCallback,Kt=i.unstable_shouldYield,Yt=i.unstable_requestPaint,Qt=i.unstable_now,$t=i.unstable_getCurrentPriorityLevel,Jt=i.unstable_ImmediatePriority,te=i.unstable_UserBlockingPriority,ee=i.unstable_NormalPriority,ne=i.unstable_LowPriority,re=i.unstable_IdlePriority,ie=null,oe=null,ae=Math.clz32?Math.clz32:function(t){return 0==(t>>>=0)?32:31-(se(t)/le|0)|0},se=Math.log,le=Math.LN2,ue=64,ce=4194304;function he(t){switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&t;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&t;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function pe(t,e){var n=t.pendingLanes;if(0===n)return 0;var r=0,i=t.suspendedLanes,o=t.pingedLanes,a=268435455&n;if(0!==a){var s=a&~i;0!==s?r=he(s):0!=(o&=a)&&(r=he(o))}else 0!=(a=n&~i)?r=he(a):0!==o&&(r=he(o));if(0===r)return 0;if(0!==e&&e!==r&&0==(e&i)&&((i=r&-r)>=(o=e&-e)||16===i&&0!=(4194240&o)))return e;if(0!=(4&r)&&(r|=16&n),0!==(e=t.entangledLanes))for(t=t.entanglements,e&=r;0<e;)i=1<<(n=31-ae(e)),r|=t[n],e&=~i;return r}function de(t,e){switch(t){case 1:case 2:case 4:return e+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e+5e3;default:return-1}}function fe(t){return 0!=(t=-1073741825&t.pendingLanes)?t:1073741824&t?1073741824:0}function ge(){var t=ue;return 0==(4194240&(ue<<=1))&&(ue=64),t}function me(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function ye(t,e,n){t.pendingLanes|=e,536870912!==e&&(t.suspendedLanes=0,t.pingedLanes=0),(t=t.eventTimes)[e=31-ae(e)]=n}function ve(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var r=31-ae(n),i=1<<r;i&e|t[r]&e&&(t[r]|=e),n&=~i}}var _e=0;function be(t){return 1<(t&=-t)?4<t?0!=(268435455&t)?16:536870912:4:1}var we,xe,Se,Ce,Ee,ke=!1,Ae=[],Pe=null,Te=null,Me=null,Oe=new Map,Re=new Map,Ie=[],Le="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Fe(t,e){switch(t){case"focusin":case"focusout":Pe=null;break;case"dragenter":case"dragleave":Te=null;break;case"mouseover":case"mouseout":Me=null;break;case"pointerover":case"pointerout":Oe.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Re.delete(e.pointerId)}}function Ne(t,e,n,r,i,o){return null===t||t.nativeEvent!==o?(t={blockedOn:e,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},null!==e&&null!==(e=_i(e))&&xe(e),t):(t.eventSystemFlags|=r,e=t.targetContainers,null!==i&&-1===e.indexOf(i)&&e.push(i),t)}function De(t){var e=vi(t.target);if(null!==e){var n=Bt(e);if(null!==n)if(13===(e=n.tag)){if(null!==(e=Ut(n)))return t.blockedOn=e,void Ee(t.priority,(function(){Se(n)}))}else if(3===e&&n.stateNode.current.memoizedState.isDehydrated)return void(t.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}t.blockedOn=null}function ze(t){if(null!==t.blockedOn)return!1;for(var e=t.targetContainers;0<e.length;){var n=Ke(t.domEventName,t.eventSystemFlags,e[0],t.nativeEvent);if(null!==n)return null!==(e=_i(n))&&xe(e),t.blockedOn=n,!1;var r=new(n=t.nativeEvent).constructor(n.type,n);bt=r,n.target.dispatchEvent(r),bt=null,e.shift()}return!0}function Ze(t,e,n){ze(t)&&n.delete(e)}function je(){ke=!1,null!==Pe&&ze(Pe)&&(Pe=null),null!==Te&&ze(Te)&&(Te=null),null!==Me&&ze(Me)&&(Me=null),Oe.forEach(Ze),Re.forEach(Ze)}function Ge(t,e){t.blockedOn===e&&(t.blockedOn=null,ke||(ke=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,je)))}function Be(t){function e(e){return Ge(e,t)}if(0<Ae.length){Ge(Ae[0],t);for(var n=1;n<Ae.length;n++){var r=Ae[n];r.blockedOn===t&&(r.blockedOn=null)}}for(null!==Pe&&Ge(Pe,t),null!==Te&&Ge(Te,t),null!==Me&&Ge(Me,t),Oe.forEach(e),Re.forEach(e),n=0;n<Ie.length;n++)(r=Ie[n]).blockedOn===t&&(r.blockedOn=null);for(;0<Ie.length&&null===(n=Ie[0]).blockedOn;)De(n),null===n.blockedOn&&Ie.shift()}var Ue=b.ReactCurrentBatchConfig,Ve=!0;function qe(t,e,n,r){var i=_e,o=Ue.transition;Ue.transition=null;try{_e=1,He(t,e,n,r)}finally{_e=i,Ue.transition=o}}function We(t,e,n,r){var i=_e,o=Ue.transition;Ue.transition=null;try{_e=4,He(t,e,n,r)}finally{_e=i,Ue.transition=o}}function He(t,e,n,r){if(Ve){var i=Ke(t,e,n,r);if(null===i)Vr(t,e,r,Xe,n),Fe(t,r);else if(function(t,e,n,r,i){switch(e){case"focusin":return Pe=Ne(Pe,t,e,n,r,i),!0;case"dragenter":return Te=Ne(Te,t,e,n,r,i),!0;case"mouseover":return Me=Ne(Me,t,e,n,r,i),!0;case"pointerover":var o=i.pointerId;return Oe.set(o,Ne(Oe.get(o)||null,t,e,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,Re.set(o,Ne(Re.get(o)||null,t,e,n,r,i)),!0}return!1}(i,t,e,n,r))r.stopPropagation();else if(Fe(t,r),4&e&&-1<Le.indexOf(t)){for(;null!==i;){var o=_i(i);if(null!==o&&we(o),null===(o=Ke(t,e,n,r))&&Vr(t,e,r,Xe,n),o===i)break;i=o}null!==i&&r.stopPropagation()}else Vr(t,e,r,null,n)}}var Xe=null;function Ke(t,e,n,r){if(Xe=null,null!==(t=vi(t=wt(r))))if(null===(e=Bt(t)))t=null;else if(13===(n=e.tag)){if(null!==(t=Ut(e)))return t;t=null}else if(3===n){if(e.stateNode.current.memoizedState.isDehydrated)return 3===e.tag?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null);return Xe=t,null}function Ye(t){switch(t){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch($t()){case Jt:return 1;case te:return 4;case ee:case ne:return 16;case re:return 536870912;default:return 16}default:return 16}}var Qe=null,$e=null,Je=null;function tn(){if(Je)return Je;var t,e,n=$e,r=n.length,i="value"in Qe?Qe.value:Qe.textContent,o=i.length;for(t=0;t<r&&n[t]===i[t];t++);var a=r-t;for(e=1;e<=a&&n[r-e]===i[o-e];e++);return Je=i.slice(t,1<e?1-e:void 0)}function en(t){var e=t.keyCode;return"charCode"in t?0===(t=t.charCode)&&13===e&&(t=13):t=e,10===t&&(t=13),32<=t||13===t?t:0}function nn(){return!0}function rn(){return!1}function on(t){function e(e,n,r,i,o){for(var a in this._reactName=e,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null,t)t.hasOwnProperty(a)&&(e=t[a],this[a]=e?e(i):i[a]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return D(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var t=this.nativeEvent;t&&(t.preventDefault?t.preventDefault():"unknown"!=typeof t.returnValue&&(t.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var t=this.nativeEvent;t&&(t.stopPropagation?t.stopPropagation():"unknown"!=typeof t.cancelBubble&&(t.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),e}var an,sn,ln,un={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cn=on(un),hn=D({},un,{view:0,detail:0}),pn=on(hn),dn=D({},hn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:En,button:0,buttons:0,relatedTarget:function(t){return void 0===t.relatedTarget?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==ln&&(ln&&"mousemove"===t.type?(an=t.screenX-ln.screenX,sn=t.screenY-ln.screenY):sn=an=0,ln=t),an)},movementY:function(t){return"movementY"in t?t.movementY:sn}}),fn=on(dn),gn=on(D({},dn,{dataTransfer:0})),mn=on(D({},hn,{relatedTarget:0})),yn=on(D({},un,{animationName:0,elapsedTime:0,pseudoElement:0})),vn=D({},un,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),_n=on(vn),bn=on(D({},un,{data:0})),wn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},xn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Sn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Cn(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):!!(t=Sn[t])&&!!e[t]}function En(){return Cn}var kn=D({},hn,{key:function(t){if(t.key){var e=wn[t.key]||t.key;if("Unidentified"!==e)return e}return"keypress"===t.type?13===(t=en(t))?"Enter":String.fromCharCode(t):"keydown"===t.type||"keyup"===t.type?xn[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:En,charCode:function(t){return"keypress"===t.type?en(t):0},keyCode:function(t){return"keydown"===t.type||"keyup"===t.type?t.keyCode:0},which:function(t){return"keypress"===t.type?en(t):"keydown"===t.type||"keyup"===t.type?t.keyCode:0}}),An=on(kn),Pn=on(D({},dn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Tn=on(D({},hn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:En})),Mn=on(D({},un,{propertyName:0,elapsedTime:0,pseudoElement:0})),On=D({},dn,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),Rn=on(On),In=[9,13,27,32],Ln=c&&"CompositionEvent"in window,Fn=null;c&&"documentMode"in document&&(Fn=document.documentMode);var Nn=c&&"TextEvent"in window&&!Fn,Dn=c&&(!Ln||Fn&&8<Fn&&11>=Fn),zn=String.fromCharCode(32),Zn=!1;function jn(t,e){switch(t){case"keyup":return-1!==In.indexOf(e.keyCode);case"keydown":return 229!==e.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Gn(t){return"object"==typeof(t=t.detail)&&"data"in t?t.data:null}var Bn=!1,Un={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Vn(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return"input"===e?!!Un[t.type]:"textarea"===e}function qn(t,e,n,r){kt(r),0<(e=Wr(e,"onChange")).length&&(n=new cn("onChange","change",null,n,r),t.push({event:n,listeners:e}))}var Wn=null,Hn=null;function Xn(t){zr(t,0)}function Kn(t){if(H(bi(t)))return t}function Yn(t,e){if("change"===t)return e}var Qn=!1;if(c){var $n;if(c){var Jn="oninput"in document;if(!Jn){var tr=document.createElement("div");tr.setAttribute("oninput","return;"),Jn="function"==typeof tr.oninput}$n=Jn}else $n=!1;Qn=$n&&(!document.documentMode||9<document.documentMode)}function er(){Wn&&(Wn.detachEvent("onpropertychange",nr),Hn=Wn=null)}function nr(t){if("value"===t.propertyName&&Kn(Hn)){var e=[];qn(e,Hn,t,wt(t)),Ot(Xn,e)}}function rr(t,e,n){"focusin"===t?(er(),Hn=n,(Wn=e).attachEvent("onpropertychange",nr)):"focusout"===t&&er()}function ir(t){if("selectionchange"===t||"keyup"===t||"keydown"===t)return Kn(Hn)}function or(t,e){if("click"===t)return Kn(e)}function ar(t,e){if("input"===t||"change"===t)return Kn(e)}var sr="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e};function lr(t,e){if(sr(t,e))return!0;if("object"!=typeof t||null===t||"object"!=typeof e||null===e)return!1;var n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!h.call(e,i)||!sr(t[i],e[i]))return!1}return!0}function ur(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function cr(t,e){var n,r=ur(t);for(t=0;r;){if(3===r.nodeType){if(n=t+r.textContent.length,t<=e&&n>=e)return{node:r,offset:e-t};t=n}t:{for(;r;){if(r.nextSibling){r=r.nextSibling;break t}r=r.parentNode}r=void 0}r=ur(r)}}function hr(t,e){return!(!t||!e)&&(t===e||(!t||3!==t.nodeType)&&(e&&3===e.nodeType?hr(t,e.parentNode):"contains"in t?t.contains(e):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(e))))}function pr(){for(var t=window,e=X();e instanceof t.HTMLIFrameElement;){try{var n="string"==typeof e.contentWindow.location.href}catch(t){n=!1}if(!n)break;e=X((t=e.contentWindow).document)}return e}function dr(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&("input"===e&&("text"===t.type||"search"===t.type||"tel"===t.type||"url"===t.type||"password"===t.type)||"textarea"===e||"true"===t.contentEditable)}function fr(t){var e=pr(),n=t.focusedElem,r=t.selectionRange;if(e!==n&&n&&n.ownerDocument&&hr(n.ownerDocument.documentElement,n)){if(null!==r&&dr(n))if(e=r.start,void 0===(t=r.end)&&(t=e),"selectionStart"in n)n.selectionStart=e,n.selectionEnd=Math.min(t,n.value.length);else if((t=(e=n.ownerDocument||document)&&e.defaultView||window).getSelection){t=t.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=void 0===r.end?o:Math.min(r.end,i),!t.extend&&o>r&&(i=r,r=o,o=i),i=cr(n,o);var a=cr(n,r);i&&a&&(1!==t.rangeCount||t.anchorNode!==i.node||t.anchorOffset!==i.offset||t.focusNode!==a.node||t.focusOffset!==a.offset)&&((e=e.createRange()).setStart(i.node,i.offset),t.removeAllRanges(),o>r?(t.addRange(e),t.extend(a.node,a.offset)):(e.setEnd(a.node,a.offset),t.addRange(e)))}for(e=[],t=n;t=t.parentNode;)1===t.nodeType&&e.push({element:t,left:t.scrollLeft,top:t.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<e.length;n++)(t=e[n]).element.scrollLeft=t.left,t.element.scrollTop=t.top}}var gr=c&&"documentMode"in document&&11>=document.documentMode,mr=null,yr=null,vr=null,_r=!1;function br(t,e,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;_r||null==mr||mr!==X(r)||(r="selectionStart"in(r=mr)&&dr(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},vr&&lr(vr,r)||(vr=r,0<(r=Wr(yr,"onSelect")).length&&(e=new cn("onSelect","select",null,e,n),t.push({event:e,listeners:r}),e.target=mr)))}function wr(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var xr={animationend:wr("Animation","AnimationEnd"),animationiteration:wr("Animation","AnimationIteration"),animationstart:wr("Animation","AnimationStart"),transitionend:wr("Transition","TransitionEnd")},Sr={},Cr={};function Er(t){if(Sr[t])return Sr[t];if(!xr[t])return t;var e,n=xr[t];for(e in n)if(n.hasOwnProperty(e)&&e in Cr)return Sr[t]=n[e];return t}c&&(Cr=document.createElement("div").style,"AnimationEvent"in window||(delete xr.animationend.animation,delete xr.animationiteration.animation,delete xr.animationstart.animation),"TransitionEvent"in window||delete xr.transitionend.transition);var kr=Er("animationend"),Ar=Er("animationiteration"),Pr=Er("animationstart"),Tr=Er("transitionend"),Mr=new Map,Or="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Rr(t,e){Mr.set(t,e),l(e,[t])}for(var Ir=0;Ir<Or.length;Ir++){var Lr=Or[Ir];Rr(Lr.toLowerCase(),"on"+(Lr[0].toUpperCase()+Lr.slice(1)))}Rr(kr,"onAnimationEnd"),Rr(Ar,"onAnimationIteration"),Rr(Pr,"onAnimationStart"),Rr("dblclick","onDoubleClick"),Rr("focusin","onFocus"),Rr("focusout","onBlur"),Rr(Tr,"onTransitionEnd"),u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Fr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Nr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Fr));function Dr(t,e,n){var r=t.type||"unknown-event";t.currentTarget=n,function(t,e,n,r,i,a,s,l,u){if(Gt.apply(this,arguments),Nt){if(!Nt)throw Error(o(198));var c=Dt;Nt=!1,Dt=null,zt||(zt=!0,Zt=c)}}(r,e,void 0,t),t.currentTarget=null}function zr(t,e){e=0!=(4&e);for(var n=0;n<t.length;n++){var r=t[n],i=r.event;r=r.listeners;t:{var o=void 0;if(e)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==o&&i.isPropagationStopped())break t;Dr(i,s,u),o=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,u=s.currentTarget,s=s.listener,l!==o&&i.isPropagationStopped())break t;Dr(i,s,u),o=l}}}if(zt)throw t=Zt,zt=!1,Zt=null,t}function Zr(t,e){var n=e[gi];void 0===n&&(n=e[gi]=new Set);var r=t+"__bubble";n.has(r)||(Ur(e,t,2,!1),n.add(r))}function jr(t,e,n){var r=0;e&&(r|=4),Ur(n,t,r,e)}var Gr="_reactListening"+Math.random().toString(36).slice(2);function Br(t){if(!t[Gr]){t[Gr]=!0,a.forEach((function(e){"selectionchange"!==e&&(Nr.has(e)||jr(e,!1,t),jr(e,!0,t))}));var e=9===t.nodeType?t:t.ownerDocument;null===e||e[Gr]||(e[Gr]=!0,jr("selectionchange",!1,e))}}function Ur(t,e,n,r){switch(Ye(e)){case 1:var i=qe;break;case 4:i=We;break;default:i=He}n=i.bind(null,e,n,t),i=void 0,!It||"touchstart"!==e&&"touchmove"!==e&&"wheel"!==e||(i=!0),r?void 0!==i?t.addEventListener(e,n,{capture:!0,passive:i}):t.addEventListener(e,n,!0):void 0!==i?t.addEventListener(e,n,{passive:i}):t.addEventListener(e,n,!1)}function Vr(t,e,n,r,i){var o=r;if(0==(1&e)&&0==(2&e)&&null!==r)t:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===i||8===s.nodeType&&s.parentNode===i)break;if(4===a)for(a=r.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===i||8===l.nodeType&&l.parentNode===i))return;a=a.return}for(;null!==s;){if(null===(a=vi(s)))return;if(5===(l=a.tag)||6===l){r=o=a;continue t}s=s.parentNode}}r=r.return}Ot((function(){var r=o,i=wt(n),a=[];t:{var s=Mr.get(t);if(void 0!==s){var l=cn,u=t;switch(t){case"keypress":if(0===en(n))break t;case"keydown":case"keyup":l=An;break;case"focusin":u="focus",l=mn;break;case"focusout":u="blur",l=mn;break;case"beforeblur":case"afterblur":l=mn;break;case"click":if(2===n.button)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=fn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=gn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Tn;break;case kr:case Ar:case Pr:l=yn;break;case Tr:l=Mn;break;case"scroll":l=pn;break;case"wheel":l=Rn;break;case"copy":case"cut":case"paste":l=_n;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Pn}var c=0!=(4&e),h=!c&&"scroll"===t,p=c?null!==s?s+"Capture":null:s;c=[];for(var d,f=r;null!==f;){var g=(d=f).stateNode;if(5===d.tag&&null!==g&&(d=g,null!==p&&null!=(g=Rt(f,p))&&c.push(qr(f,g,d))),h)break;f=f.return}0<c.length&&(s=new l(s,u,null,n,i),a.push({event:s,listeners:c}))}}if(0==(7&e)){if(l="mouseout"===t||"pointerout"===t,(!(s="mouseover"===t||"pointerover"===t)||n===bt||!(u=n.relatedTarget||n.fromElement)||!vi(u)&&!u[fi])&&(l||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(u=(u=n.relatedTarget||n.toElement)?vi(u):null)&&(u!==(h=Bt(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(l=null,u=r),l!==u)){if(c=fn,g="onMouseLeave",p="onMouseEnter",f="mouse","pointerout"!==t&&"pointerover"!==t||(c=Pn,g="onPointerLeave",p="onPointerEnter",f="pointer"),h=null==l?s:bi(l),d=null==u?s:bi(u),(s=new c(g,f+"leave",l,n,i)).target=h,s.relatedTarget=d,g=null,vi(i)===r&&((c=new c(p,f+"enter",u,n,i)).target=d,c.relatedTarget=h,g=c),h=g,l&&u)t:{for(p=u,f=0,d=c=l;d;d=Hr(d))f++;for(d=0,g=p;g;g=Hr(g))d++;for(;0<f-d;)c=Hr(c),f--;for(;0<d-f;)p=Hr(p),d--;for(;f--;){if(c===p||null!==p&&c===p.alternate)break t;c=Hr(c),p=Hr(p)}c=null}else c=null;null!==l&&Xr(a,s,l,c,!1),null!==u&&null!==h&&Xr(a,h,u,c,!0)}if("select"===(l=(s=r?bi(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var m=Yn;else if(Vn(s))if(Qn)m=ar;else{m=ir;var y=rr}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(m=or);switch(m&&(m=m(t,r))?qn(a,m,n,i):(y&&y(t,s,r),"focusout"===t&&(y=s._wrapperState)&&y.controlled&&"number"===s.type&&tt(s,"number",s.value)),y=r?bi(r):window,t){case"focusin":(Vn(y)||"true"===y.contentEditable)&&(mr=y,yr=r,vr=null);break;case"focusout":vr=yr=mr=null;break;case"mousedown":_r=!0;break;case"contextmenu":case"mouseup":case"dragend":_r=!1,br(a,n,i);break;case"selectionchange":if(gr)break;case"keydown":case"keyup":br(a,n,i)}var v;if(Ln)t:{switch(t){case"compositionstart":var _="onCompositionStart";break t;case"compositionend":_="onCompositionEnd";break t;case"compositionupdate":_="onCompositionUpdate";break t}_=void 0}else Bn?jn(t,n)&&(_="onCompositionEnd"):"keydown"===t&&229===n.keyCode&&(_="onCompositionStart");_&&(Dn&&"ko"!==n.locale&&(Bn||"onCompositionStart"!==_?"onCompositionEnd"===_&&Bn&&(v=tn()):($e="value"in(Qe=i)?Qe.value:Qe.textContent,Bn=!0)),0<(y=Wr(r,_)).length&&(_=new bn(_,t,null,n,i),a.push({event:_,listeners:y}),(v||null!==(v=Gn(n)))&&(_.data=v))),(v=Nn?function(t,e){switch(t){case"compositionend":return Gn(e);case"keypress":return 32!==e.which?null:(Zn=!0,zn);case"textInput":return(t=e.data)===zn&&Zn?null:t;default:return null}}(t,n):function(t,e){if(Bn)return"compositionend"===t||!Ln&&jn(t,e)?(t=tn(),Je=$e=Qe=null,Bn=!1,t):null;switch(t){case"paste":default:return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return Dn&&"ko"!==e.locale?null:e.data}}(t,n))&&0<(r=Wr(r,"onBeforeInput")).length&&(i=new bn("onBeforeInput","beforeinput",null,n,i),a.push({event:i,listeners:r}),i.data=v)}zr(a,e)}))}function qr(t,e,n){return{instance:t,listener:e,currentTarget:n}}function Wr(t,e){for(var n=e+"Capture",r=[];null!==t;){var i=t,o=i.stateNode;5===i.tag&&null!==o&&(i=o,null!=(o=Rt(t,n))&&r.unshift(qr(t,o,i)),null!=(o=Rt(t,e))&&r.push(qr(t,o,i))),t=t.return}return r}function Hr(t){if(null===t)return null;do{t=t.return}while(t&&5!==t.tag);return t||null}function Xr(t,e,n,r,i){for(var o=e._reactName,a=[];null!==n&&n!==r;){var s=n,l=s.alternate,u=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==u&&(s=u,i?null!=(l=Rt(n,o))&&a.unshift(qr(n,l,s)):i||null!=(l=Rt(n,o))&&a.push(qr(n,l,s))),n=n.return}0!==a.length&&t.push({event:e,listeners:a})}var Kr=/\r\n?/g,Yr=/\u0000|\uFFFD/g;function Qr(t){return("string"==typeof t?t:""+t).replace(Kr,"\n").replace(Yr,"")}function $r(t,e,n){if(e=Qr(e),Qr(t)!==e&&n)throw Error(o(425))}function Jr(){}var ti=null,ei=null;function ni(t,e){return"textarea"===t||"noscript"===t||"string"==typeof e.children||"number"==typeof e.children||"object"==typeof e.dangerouslySetInnerHTML&&null!==e.dangerouslySetInnerHTML&&null!=e.dangerouslySetInnerHTML.__html}var ri="function"==typeof setTimeout?setTimeout:void 0,ii="function"==typeof clearTimeout?clearTimeout:void 0,oi="function"==typeof Promise?Promise:void 0,ai="function"==typeof queueMicrotask?queueMicrotask:void 0!==oi?function(t){return oi.resolve(null).then(t).catch(si)}:ri;function si(t){setTimeout((function(){throw t}))}function li(t,e){var n=e,r=0;do{var i=n.nextSibling;if(t.removeChild(n),i&&8===i.nodeType)if("/$"===(n=i.data)){if(0===r)return t.removeChild(i),void Be(e);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=i}while(n);Be(e)}function ui(t){for(;null!=t;t=t.nextSibling){var e=t.nodeType;if(1===e||3===e)break;if(8===e){if("$"===(e=t.data)||"$!"===e||"$?"===e)break;if("/$"===e)return null}}return t}function ci(t){t=t.previousSibling;for(var e=0;t;){if(8===t.nodeType){var n=t.data;if("$"===n||"$!"===n||"$?"===n){if(0===e)return t;e--}else"/$"===n&&e++}t=t.previousSibling}return null}var hi=Math.random().toString(36).slice(2),pi="__reactFiber$"+hi,di="__reactProps$"+hi,fi="__reactContainer$"+hi,gi="__reactEvents$"+hi,mi="__reactListeners$"+hi,yi="__reactHandles$"+hi;function vi(t){var e=t[pi];if(e)return e;for(var n=t.parentNode;n;){if(e=n[fi]||n[pi]){if(n=e.alternate,null!==e.child||null!==n&&null!==n.child)for(t=ci(t);null!==t;){if(n=t[pi])return n;t=ci(t)}return e}n=(t=n).parentNode}return null}function _i(t){return!(t=t[pi]||t[fi])||5!==t.tag&&6!==t.tag&&13!==t.tag&&3!==t.tag?null:t}function bi(t){if(5===t.tag||6===t.tag)return t.stateNode;throw Error(o(33))}function wi(t){return t[di]||null}var xi=[],Si=-1;function Ci(t){return{current:t}}function Ei(t){0>Si||(t.current=xi[Si],xi[Si]=null,Si--)}function ki(t,e){Si++,xi[Si]=t.current,t.current=e}var Ai={},Pi=Ci(Ai),Ti=Ci(!1),Mi=Ai;function Oi(t,e){var n=t.type.contextTypes;if(!n)return Ai;var r=t.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===e)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=e[i];return r&&((t=t.stateNode).__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=o),o}function Ri(t){return null!=t.childContextTypes}function Ii(){Ei(Ti),Ei(Pi)}function Li(t,e,n){if(Pi.current!==Ai)throw Error(o(168));ki(Pi,e),ki(Ti,n)}function Fi(t,e,n){var r=t.stateNode;if(e=e.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in e))throw Error(o(108,U(t)||"Unknown",i));return D({},n,r)}function Ni(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||Ai,Mi=Pi.current,ki(Pi,t),ki(Ti,Ti.current),!0}function Di(t,e,n){var r=t.stateNode;if(!r)throw Error(o(169));n?(t=Fi(t,e,Mi),r.__reactInternalMemoizedMergedChildContext=t,Ei(Ti),Ei(Pi),ki(Pi,t)):Ei(Ti),ki(Ti,n)}var zi=null,Zi=!1,ji=!1;function Gi(t){null===zi?zi=[t]:zi.push(t)}function Bi(){if(!ji&&null!==zi){ji=!0;var t=0,e=_e;try{var n=zi;for(_e=1;t<n.length;t++){var r=n[t];do{r=r(!0)}while(null!==r)}zi=null,Zi=!1}catch(e){throw null!==zi&&(zi=zi.slice(t+1)),Ht(Jt,Bi),e}finally{_e=e,ji=!1}}return null}var Ui=[],Vi=0,qi=null,Wi=0,Hi=[],Xi=0,Ki=null,Yi=1,Qi="";function $i(t,e){Ui[Vi++]=Wi,Ui[Vi++]=qi,qi=t,Wi=e}function Ji(t,e,n){Hi[Xi++]=Yi,Hi[Xi++]=Qi,Hi[Xi++]=Ki,Ki=t;var r=Yi;t=Qi;var i=32-ae(r)-1;r&=~(1<<i),n+=1;var o=32-ae(e)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,Yi=1<<32-ae(e)+i|n<<i|r,Qi=o+t}else Yi=1<<o|n<<i|r,Qi=t}function to(t){null!==t.return&&($i(t,1),Ji(t,1,0))}function eo(t){for(;t===qi;)qi=Ui[--Vi],Ui[Vi]=null,Wi=Ui[--Vi],Ui[Vi]=null;for(;t===Ki;)Ki=Hi[--Xi],Hi[Xi]=null,Qi=Hi[--Xi],Hi[Xi]=null,Yi=Hi[--Xi],Hi[Xi]=null}var no=null,ro=null,io=!1,oo=null;function ao(t,e){var n=Ou(5,null,null,0);n.elementType="DELETED",n.stateNode=e,n.return=t,null===(e=t.deletions)?(t.deletions=[n],t.flags|=16):e.push(n)}function so(t,e){switch(t.tag){case 5:var n=t.type;return null!==(e=1!==e.nodeType||n.toLowerCase()!==e.nodeName.toLowerCase()?null:e)&&(t.stateNode=e,no=t,ro=ui(e.firstChild),!0);case 6:return null!==(e=""===t.pendingProps||3!==e.nodeType?null:e)&&(t.stateNode=e,no=t,ro=null,!0);case 13:return null!==(e=8!==e.nodeType?null:e)&&(n=null!==Ki?{id:Yi,overflow:Qi}:null,t.memoizedState={dehydrated:e,treeContext:n,retryLane:1073741824},(n=Ou(18,null,null,0)).stateNode=e,n.return=t,t.child=n,no=t,ro=null,!0);default:return!1}}function lo(t){return 0!=(1&t.mode)&&0==(128&t.flags)}function uo(t){if(io){var e=ro;if(e){var n=e;if(!so(t,e)){if(lo(t))throw Error(o(418));e=ui(n.nextSibling);var r=no;e&&so(t,e)?ao(r,n):(t.flags=-4097&t.flags|2,io=!1,no=t)}}else{if(lo(t))throw Error(o(418));t.flags=-4097&t.flags|2,io=!1,no=t}}}function co(t){for(t=t.return;null!==t&&5!==t.tag&&3!==t.tag&&13!==t.tag;)t=t.return;no=t}function ho(t){if(t!==no)return!1;if(!io)return co(t),io=!0,!1;var e;if((e=3!==t.tag)&&!(e=5!==t.tag)&&(e="head"!==(e=t.type)&&"body"!==e&&!ni(t.type,t.memoizedProps)),e&&(e=ro)){if(lo(t))throw po(),Error(o(418));for(;e;)ao(t,e),e=ui(e.nextSibling)}if(co(t),13===t.tag){if(!(t=null!==(t=t.memoizedState)?t.dehydrated:null))throw Error(o(317));t:{for(t=t.nextSibling,e=0;t;){if(8===t.nodeType){var n=t.data;if("/$"===n){if(0===e){ro=ui(t.nextSibling);break t}e--}else"$"!==n&&"$!"!==n&&"$?"!==n||e++}t=t.nextSibling}ro=null}}else ro=no?ui(t.stateNode.nextSibling):null;return!0}function po(){for(var t=ro;t;)t=ui(t.nextSibling)}function fo(){ro=no=null,io=!1}function go(t){null===oo?oo=[t]:oo.push(t)}var mo=b.ReactCurrentBatchConfig;function yo(t,e){if(t&&t.defaultProps){for(var n in e=D({},e),t=t.defaultProps)void 0===e[n]&&(e[n]=t[n]);return e}return e}var vo=Ci(null),_o=null,bo=null,wo=null;function xo(){wo=bo=_o=null}function So(t){var e=vo.current;Ei(vo),t._currentValue=e}function Co(t,e,n){for(;null!==t;){var r=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,null!==r&&(r.childLanes|=e)):null!==r&&(r.childLanes&e)!==e&&(r.childLanes|=e),t===n)break;t=t.return}}function Eo(t,e){_o=t,wo=bo=null,null!==(t=t.dependencies)&&null!==t.firstContext&&(0!=(t.lanes&e)&&(bs=!0),t.firstContext=null)}function ko(t){var e=t._currentValue;if(wo!==t)if(t={context:t,memoizedValue:e,next:null},null===bo){if(null===_o)throw Error(o(308));bo=t,_o.dependencies={lanes:0,firstContext:t}}else bo=bo.next=t;return e}var Ao=null;function Po(t){null===Ao?Ao=[t]:Ao.push(t)}function To(t,e,n,r){var i=e.interleaved;return null===i?(n.next=n,Po(e)):(n.next=i.next,i.next=n),e.interleaved=n,Mo(t,r)}function Mo(t,e){t.lanes|=e;var n=t.alternate;for(null!==n&&(n.lanes|=e),n=t,t=t.return;null!==t;)t.childLanes|=e,null!==(n=t.alternate)&&(n.childLanes|=e),n=t,t=t.return;return 3===n.tag?n.stateNode:null}var Oo=!1;function Ro(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Io(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,effects:t.effects})}function Lo(t,e){return{eventTime:t,lane:e,tag:0,payload:null,callback:null,next:null}}function Fo(t,e,n){var r=t.updateQueue;if(null===r)return null;if(r=r.shared,0!=(2&Pl)){var i=r.pending;return null===i?e.next=e:(e.next=i.next,i.next=e),r.pending=e,Mo(t,n)}return null===(i=r.interleaved)?(e.next=e,Po(r)):(e.next=i.next,i.next=e),r.interleaved=e,Mo(t,n)}function No(t,e,n){if(null!==(e=e.updateQueue)&&(e=e.shared,0!=(4194240&n))){var r=e.lanes;n|=r&=t.pendingLanes,e.lanes=n,ve(t,n)}}function Do(t,e){var n=t.updateQueue,r=t.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?i=o=a:o=o.next=a,n=n.next}while(null!==n);null===o?i=o=e:o=o.next=e}else i=o=e;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},void(t.updateQueue=n)}null===(t=n.lastBaseUpdate)?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}function zo(t,e,n,r){var i=t.updateQueue;Oo=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(null!==s){i.shared.pending=null;var l=s,u=l.next;l.next=null,null===a?o=u:a.next=u,a=l;var c=t.alternate;null!==c&&(s=(c=c.updateQueue).lastBaseUpdate)!==a&&(null===s?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=l)}if(null!==o){var h=i.baseState;for(a=0,c=u=l=null,s=o;;){var p=s.lane,d=s.eventTime;if((r&p)===p){null!==c&&(c=c.next={eventTime:d,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});t:{var f=t,g=s;switch(p=e,d=n,g.tag){case 1:if("function"==typeof(f=g.payload)){h=f.call(d,h,p);break t}h=f;break t;case 3:f.flags=-65537&f.flags|128;case 0:if(null==(p="function"==typeof(f=g.payload)?f.call(d,h,p):f))break t;h=D({},h,p);break t;case 2:Oo=!0}}null!==s.callback&&0!==s.lane&&(t.flags|=64,null===(p=i.effects)?i.effects=[s]:p.push(s))}else d={eventTime:d,lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===c?(u=c=d,l=h):c=c.next=d,a|=p;if(null===(s=s.next)){if(null===(s=i.shared.pending))break;s=(p=s).next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}if(null===c&&(l=h),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=c,null!==(e=i.shared.interleaved)){i=e;do{a|=i.lane,i=i.next}while(i!==e)}else null===o&&(i.shared.lanes=0);Nl|=a,t.lanes=a,t.memoizedState=h}}function Zo(t,e,n){if(t=e.effects,e.effects=null,null!==t)for(e=0;e<t.length;e++){var r=t[e],i=r.callback;if(null!==i){if(r.callback=null,r=n,"function"!=typeof i)throw Error(o(191,i));i.call(r)}}}var jo=(new r.Component).refs;function Go(t,e,n,r){n=null==(n=n(r,e=t.memoizedState))?e:D({},e,n),t.memoizedState=n,0===t.lanes&&(t.updateQueue.baseState=n)}var Bo={isMounted:function(t){return!!(t=t._reactInternals)&&Bt(t)===t},enqueueSetState:function(t,e,n){t=t._reactInternals;var r=tu(),i=eu(t),o=Lo(r,i);o.payload=e,null!=n&&(o.callback=n),null!==(e=Fo(t,o,i))&&(nu(e,t,i,r),No(e,t,i))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var r=tu(),i=eu(t),o=Lo(r,i);o.tag=1,o.payload=e,null!=n&&(o.callback=n),null!==(e=Fo(t,o,i))&&(nu(e,t,i,r),No(e,t,i))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=tu(),r=eu(t),i=Lo(n,r);i.tag=2,null!=e&&(i.callback=e),null!==(e=Fo(t,i,r))&&(nu(e,t,r,n),No(e,t,r))}};function Uo(t,e,n,r,i,o,a){return"function"==typeof(t=t.stateNode).shouldComponentUpdate?t.shouldComponentUpdate(r,o,a):!(e.prototype&&e.prototype.isPureReactComponent&&lr(n,r)&&lr(i,o))}function Vo(t,e,n){var r=!1,i=Ai,o=e.contextType;return"object"==typeof o&&null!==o?o=ko(o):(i=Ri(e)?Mi:Pi.current,o=(r=null!=(r=e.contextTypes))?Oi(t,i):Ai),e=new e(n,o),t.memoizedState=null!==e.state&&void 0!==e.state?e.state:null,e.updater=Bo,t.stateNode=e,e._reactInternals=t,r&&((t=t.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,t.__reactInternalMemoizedMaskedChildContext=o),e}function qo(t,e,n,r){t=e.state,"function"==typeof e.componentWillReceiveProps&&e.componentWillReceiveProps(n,r),"function"==typeof e.UNSAFE_componentWillReceiveProps&&e.UNSAFE_componentWillReceiveProps(n,r),e.state!==t&&Bo.enqueueReplaceState(e,e.state,null)}function Wo(t,e,n,r){var i=t.stateNode;i.props=n,i.state=t.memoizedState,i.refs=jo,Ro(t);var o=e.contextType;"object"==typeof o&&null!==o?i.context=ko(o):(o=Ri(e)?Mi:Pi.current,i.context=Oi(t,o)),i.state=t.memoizedState,"function"==typeof(o=e.getDerivedStateFromProps)&&(Go(t,e,o,n),i.state=t.memoizedState),"function"==typeof e.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(e=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),e!==i.state&&Bo.enqueueReplaceState(i,i.state,null),zo(t,n,i,r),i.state=t.memoizedState),"function"==typeof i.componentDidMount&&(t.flags|=4194308)}function Ho(t,e,n){if(null!==(t=n.ref)&&"function"!=typeof t&&"object"!=typeof t){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(o(309));var r=n.stateNode}if(!r)throw Error(o(147,t));var i=r,a=""+t;return null!==e&&null!==e.ref&&"function"==typeof e.ref&&e.ref._stringRef===a?e.ref:(e=function(t){var e=i.refs;e===jo&&(e=i.refs={}),null===t?delete e[a]:e[a]=t},e._stringRef=a,e)}if("string"!=typeof t)throw Error(o(284));if(!n._owner)throw Error(o(290,t))}return t}function Xo(t,e){throw t=Object.prototype.toString.call(e),Error(o(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t))}function Ko(t){return(0,t._init)(t._payload)}function Yo(t){function e(e,n){if(t){var r=e.deletions;null===r?(e.deletions=[n],e.flags|=16):r.push(n)}}function n(n,r){if(!t)return null;for(;null!==r;)e(n,r),r=r.sibling;return null}function r(t,e){for(t=new Map;null!==e;)null!==e.key?t.set(e.key,e):t.set(e.index,e),e=e.sibling;return t}function i(t,e){return(t=Iu(t,e)).index=0,t.sibling=null,t}function a(e,n,r){return e.index=r,t?null!==(r=e.alternate)?(r=r.index)<n?(e.flags|=2,n):r:(e.flags|=2,n):(e.flags|=1048576,n)}function s(e){return t&&null===e.alternate&&(e.flags|=2),e}function l(t,e,n,r){return null===e||6!==e.tag?((e=Du(n,t.mode,r)).return=t,e):((e=i(e,n)).return=t,e)}function u(t,e,n,r){var o=n.type;return o===S?h(t,e,n.props.children,r,n.key):null!==e&&(e.elementType===o||"object"==typeof o&&null!==o&&o.$$typeof===R&&Ko(o)===e.type)?((r=i(e,n.props)).ref=Ho(t,e,n),r.return=t,r):((r=Lu(n.type,n.key,n.props,null,t.mode,r)).ref=Ho(t,e,n),r.return=t,r)}function c(t,e,n,r){return null===e||4!==e.tag||e.stateNode.containerInfo!==n.containerInfo||e.stateNode.implementation!==n.implementation?((e=zu(n,t.mode,r)).return=t,e):((e=i(e,n.children||[])).return=t,e)}function h(t,e,n,r,o){return null===e||7!==e.tag?((e=Fu(n,t.mode,r,o)).return=t,e):((e=i(e,n)).return=t,e)}function p(t,e,n){if("string"==typeof e&&""!==e||"number"==typeof e)return(e=Du(""+e,t.mode,n)).return=t,e;if("object"==typeof e&&null!==e){switch(e.$$typeof){case w:return(n=Lu(e.type,e.key,e.props,null,t.mode,n)).ref=Ho(t,null,e),n.return=t,n;case x:return(e=zu(e,t.mode,n)).return=t,e;case R:return p(t,(0,e._init)(e._payload),n)}if(et(e)||F(e))return(e=Fu(e,t.mode,n,null)).return=t,e;Xo(t,e)}return null}function d(t,e,n,r){var i=null!==e?e.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==i?null:l(t,e,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case w:return n.key===i?u(t,e,n,r):null;case x:return n.key===i?c(t,e,n,r):null;case R:return d(t,e,(i=n._init)(n._payload),r)}if(et(n)||F(n))return null!==i?null:h(t,e,n,r,null);Xo(t,n)}return null}function f(t,e,n,r,i){if("string"==typeof r&&""!==r||"number"==typeof r)return l(e,t=t.get(n)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case w:return u(e,t=t.get(null===r.key?n:r.key)||null,r,i);case x:return c(e,t=t.get(null===r.key?n:r.key)||null,r,i);case R:return f(t,e,n,(0,r._init)(r._payload),i)}if(et(r)||F(r))return h(e,t=t.get(n)||null,r,i,null);Xo(e,r)}return null}function g(i,o,s,l){for(var u=null,c=null,h=o,g=o=0,m=null;null!==h&&g<s.length;g++){h.index>g?(m=h,h=null):m=h.sibling;var y=d(i,h,s[g],l);if(null===y){null===h&&(h=m);break}t&&h&&null===y.alternate&&e(i,h),o=a(y,o,g),null===c?u=y:c.sibling=y,c=y,h=m}if(g===s.length)return n(i,h),io&&$i(i,g),u;if(null===h){for(;g<s.length;g++)null!==(h=p(i,s[g],l))&&(o=a(h,o,g),null===c?u=h:c.sibling=h,c=h);return io&&$i(i,g),u}for(h=r(i,h);g<s.length;g++)null!==(m=f(h,i,g,s[g],l))&&(t&&null!==m.alternate&&h.delete(null===m.key?g:m.key),o=a(m,o,g),null===c?u=m:c.sibling=m,c=m);return t&&h.forEach((function(t){return e(i,t)})),io&&$i(i,g),u}function m(i,s,l,u){var c=F(l);if("function"!=typeof c)throw Error(o(150));if(null==(l=c.call(l)))throw Error(o(151));for(var h=c=null,g=s,m=s=0,y=null,v=l.next();null!==g&&!v.done;m++,v=l.next()){g.index>m?(y=g,g=null):y=g.sibling;var _=d(i,g,v.value,u);if(null===_){null===g&&(g=y);break}t&&g&&null===_.alternate&&e(i,g),s=a(_,s,m),null===h?c=_:h.sibling=_,h=_,g=y}if(v.done)return n(i,g),io&&$i(i,m),c;if(null===g){for(;!v.done;m++,v=l.next())null!==(v=p(i,v.value,u))&&(s=a(v,s,m),null===h?c=v:h.sibling=v,h=v);return io&&$i(i,m),c}for(g=r(i,g);!v.done;m++,v=l.next())null!==(v=f(g,i,m,v.value,u))&&(t&&null!==v.alternate&&g.delete(null===v.key?m:v.key),s=a(v,s,m),null===h?c=v:h.sibling=v,h=v);return t&&g.forEach((function(t){return e(i,t)})),io&&$i(i,m),c}return function t(r,o,a,l){if("object"==typeof a&&null!==a&&a.type===S&&null===a.key&&(a=a.props.children),"object"==typeof a&&null!==a){switch(a.$$typeof){case w:t:{for(var u=a.key,c=o;null!==c;){if(c.key===u){if((u=a.type)===S){if(7===c.tag){n(r,c.sibling),(o=i(c,a.props.children)).return=r,r=o;break t}}else if(c.elementType===u||"object"==typeof u&&null!==u&&u.$$typeof===R&&Ko(u)===c.type){n(r,c.sibling),(o=i(c,a.props)).ref=Ho(r,c,a),o.return=r,r=o;break t}n(r,c);break}e(r,c),c=c.sibling}a.type===S?((o=Fu(a.props.children,r.mode,l,a.key)).return=r,r=o):((l=Lu(a.type,a.key,a.props,null,r.mode,l)).ref=Ho(r,o,a),l.return=r,r=l)}return s(r);case x:t:{for(c=a.key;null!==o;){if(o.key===c){if(4===o.tag&&o.stateNode.containerInfo===a.containerInfo&&o.stateNode.implementation===a.implementation){n(r,o.sibling),(o=i(o,a.children||[])).return=r,r=o;break t}n(r,o);break}e(r,o),o=o.sibling}(o=zu(a,r.mode,l)).return=r,r=o}return s(r);case R:return t(r,o,(c=a._init)(a._payload),l)}if(et(a))return g(r,o,a,l);if(F(a))return m(r,o,a,l);Xo(r,a)}return"string"==typeof a&&""!==a||"number"==typeof a?(a=""+a,null!==o&&6===o.tag?(n(r,o.sibling),(o=i(o,a)).return=r,r=o):(n(r,o),(o=Du(a,r.mode,l)).return=r,r=o),s(r)):n(r,o)}}var Qo=Yo(!0),$o=Yo(!1),Jo={},ta=Ci(Jo),ea=Ci(Jo),na=Ci(Jo);function ra(t){if(t===Jo)throw Error(o(174));return t}function ia(t,e){switch(ki(na,e),ki(ea,t),ki(ta,Jo),t=e.nodeType){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:lt(null,"");break;default:e=lt(e=(t=8===t?e.parentNode:e).namespaceURI||null,t=t.tagName)}Ei(ta),ki(ta,e)}function oa(){Ei(ta),Ei(ea),Ei(na)}function aa(t){ra(na.current);var e=ra(ta.current),n=lt(e,t.type);e!==n&&(ki(ea,t),ki(ta,n))}function sa(t){ea.current===t&&(Ei(ta),Ei(ea))}var la=Ci(0);function ua(t){for(var e=t;null!==e;){if(13===e.tag){var n=e.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return e}else if(19===e.tag&&void 0!==e.memoizedProps.revealOrder){if(0!=(128&e.flags))return e}else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break;for(;null===e.sibling;){if(null===e.return||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var ca=[];function ha(){for(var t=0;t<ca.length;t++)ca[t]._workInProgressVersionPrimary=null;ca.length=0}var pa=b.ReactCurrentDispatcher,da=b.ReactCurrentBatchConfig,fa=0,ga=null,ma=null,ya=null,va=!1,_a=!1,ba=0,wa=0;function xa(){throw Error(o(321))}function Sa(t,e){if(null===e)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!sr(t[n],e[n]))return!1;return!0}function Ca(t,e,n,r,i,a){if(fa=a,ga=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,pa.current=null===t||null===t.memoizedState?ss:ls,t=n(r,i),_a){a=0;do{if(_a=!1,ba=0,25<=a)throw Error(o(301));a+=1,ya=ma=null,e.updateQueue=null,pa.current=us,t=n(r,i)}while(_a)}if(pa.current=as,e=null!==ma&&null!==ma.next,fa=0,ya=ma=ga=null,va=!1,e)throw Error(o(300));return t}function Ea(){var t=0!==ba;return ba=0,t}function ka(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ya?ga.memoizedState=ya=t:ya=ya.next=t,ya}function Aa(){if(null===ma){var t=ga.alternate;t=null!==t?t.memoizedState:null}else t=ma.next;var e=null===ya?ga.memoizedState:ya.next;if(null!==e)ya=e,ma=t;else{if(null===t)throw Error(o(310));t={memoizedState:(ma=t).memoizedState,baseState:ma.baseState,baseQueue:ma.baseQueue,queue:ma.queue,next:null},null===ya?ga.memoizedState=ya=t:ya=ya.next=t}return ya}function Pa(t,e){return"function"==typeof e?e(t):e}function Ta(t){var e=Aa(),n=e.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=t;var r=ma,i=r.baseQueue,a=n.pending;if(null!==a){if(null!==i){var s=i.next;i.next=a.next,a.next=s}r.baseQueue=i=a,n.pending=null}if(null!==i){a=i.next,r=r.baseState;var l=s=null,u=null,c=a;do{var h=c.lane;if((fa&h)===h)null!==u&&(u=u.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:t(r,c.action);else{var p={lane:h,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===u?(l=u=p,s=r):u=u.next=p,ga.lanes|=h,Nl|=h}c=c.next}while(null!==c&&c!==a);null===u?s=r:u.next=l,sr(r,e.memoizedState)||(bs=!0),e.memoizedState=r,e.baseState=s,e.baseQueue=u,n.lastRenderedState=r}if(null!==(t=n.interleaved)){i=t;do{a=i.lane,ga.lanes|=a,Nl|=a,i=i.next}while(i!==t)}else null===i&&(n.lanes=0);return[e.memoizedState,n.dispatch]}function Ma(t){var e=Aa(),n=e.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=t;var r=n.dispatch,i=n.pending,a=e.memoizedState;if(null!==i){n.pending=null;var s=i=i.next;do{a=t(a,s.action),s=s.next}while(s!==i);sr(a,e.memoizedState)||(bs=!0),e.memoizedState=a,null===e.baseQueue&&(e.baseState=a),n.lastRenderedState=a}return[a,r]}function Oa(){}function Ra(t,e){var n=ga,r=Aa(),i=e(),a=!sr(r.memoizedState,i);if(a&&(r.memoizedState=i,bs=!0),r=r.queue,Va(Fa.bind(null,n,r,t),[t]),r.getSnapshot!==e||a||null!==ya&&1&ya.memoizedState.tag){if(n.flags|=2048,Za(9,La.bind(null,n,r,i,e),void 0,null),null===Tl)throw Error(o(349));0!=(30&fa)||Ia(n,e,i)}return i}function Ia(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},null===(e=ga.updateQueue)?(e={lastEffect:null,stores:null},ga.updateQueue=e,e.stores=[t]):null===(n=e.stores)?e.stores=[t]:n.push(t)}function La(t,e,n,r){e.value=n,e.getSnapshot=r,Na(e)&&Da(t)}function Fa(t,e,n){return n((function(){Na(e)&&Da(t)}))}function Na(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!sr(t,n)}catch(t){return!0}}function Da(t){var e=Mo(t,1);null!==e&&nu(e,t,1,-1)}function za(t){var e=ka();return"function"==typeof t&&(t=t()),e.memoizedState=e.baseState=t,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Pa,lastRenderedState:t},e.queue=t,t=t.dispatch=ns.bind(null,ga,t),[e.memoizedState,t]}function Za(t,e,n,r){return t={tag:t,create:e,destroy:n,deps:r,next:null},null===(e=ga.updateQueue)?(e={lastEffect:null,stores:null},ga.updateQueue=e,e.lastEffect=t.next=t):null===(n=e.lastEffect)?e.lastEffect=t.next=t:(r=n.next,n.next=t,t.next=r,e.lastEffect=t),t}function ja(){return Aa().memoizedState}function Ga(t,e,n,r){var i=ka();ga.flags|=t,i.memoizedState=Za(1|e,n,void 0,void 0===r?null:r)}function Ba(t,e,n,r){var i=Aa();r=void 0===r?null:r;var o=void 0;if(null!==ma){var a=ma.memoizedState;if(o=a.destroy,null!==r&&Sa(r,a.deps))return void(i.memoizedState=Za(e,n,o,r))}ga.flags|=t,i.memoizedState=Za(1|e,n,o,r)}function Ua(t,e){return Ga(8390656,8,t,e)}function Va(t,e){return Ba(2048,8,t,e)}function qa(t,e){return Ba(4,2,t,e)}function Wa(t,e){return Ba(4,4,t,e)}function Ha(t,e){return"function"==typeof e?(t=t(),e(t),function(){e(null)}):null!=e?(t=t(),e.current=t,function(){e.current=null}):void 0}function Xa(t,e,n){return n=null!=n?n.concat([t]):null,Ba(4,4,Ha.bind(null,e,t),n)}function Ka(){}function Ya(t,e){var n=Aa();e=void 0===e?null:e;var r=n.memoizedState;return null!==r&&null!==e&&Sa(e,r[1])?r[0]:(n.memoizedState=[t,e],t)}function Qa(t,e){var n=Aa();e=void 0===e?null:e;var r=n.memoizedState;return null!==r&&null!==e&&Sa(e,r[1])?r[0]:(t=t(),n.memoizedState=[t,e],t)}function $a(t,e,n){return 0==(21&fa)?(t.baseState&&(t.baseState=!1,bs=!0),t.memoizedState=n):(sr(n,e)||(n=ge(),ga.lanes|=n,Nl|=n,t.baseState=!0),e)}function Ja(t,e){var n=_e;_e=0!==n&&4>n?n:4,t(!0);var r=da.transition;da.transition={};try{t(!1),e()}finally{_e=n,da.transition=r}}function ts(){return Aa().memoizedState}function es(t,e,n){var r=eu(t);n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},rs(t)?is(e,n):null!==(n=To(t,e,n,r))&&(nu(n,t,r,tu()),os(n,e,r))}function ns(t,e,n){var r=eu(t),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(rs(t))is(e,i);else{var o=t.alternate;if(0===t.lanes&&(null===o||0===o.lanes)&&null!==(o=e.lastRenderedReducer))try{var a=e.lastRenderedState,s=o(a,n);if(i.hasEagerState=!0,i.eagerState=s,sr(s,a)){var l=e.interleaved;return null===l?(i.next=i,Po(e)):(i.next=l.next,l.next=i),void(e.interleaved=i)}}catch(t){}null!==(n=To(t,e,i,r))&&(nu(n,t,r,i=tu()),os(n,e,r))}}function rs(t){var e=t.alternate;return t===ga||null!==e&&e===ga}function is(t,e){_a=va=!0;var n=t.pending;null===n?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function os(t,e,n){if(0!=(4194240&n)){var r=e.lanes;n|=r&=t.pendingLanes,e.lanes=n,ve(t,n)}}var as={readContext:ko,useCallback:xa,useContext:xa,useEffect:xa,useImperativeHandle:xa,useInsertionEffect:xa,useLayoutEffect:xa,useMemo:xa,useReducer:xa,useRef:xa,useState:xa,useDebugValue:xa,useDeferredValue:xa,useTransition:xa,useMutableSource:xa,useSyncExternalStore:xa,useId:xa,unstable_isNewReconciler:!1},ss={readContext:ko,useCallback:function(t,e){return ka().memoizedState=[t,void 0===e?null:e],t},useContext:ko,useEffect:Ua,useImperativeHandle:function(t,e,n){return n=null!=n?n.concat([t]):null,Ga(4194308,4,Ha.bind(null,e,t),n)},useLayoutEffect:function(t,e){return Ga(4194308,4,t,e)},useInsertionEffect:function(t,e){return Ga(4,2,t,e)},useMemo:function(t,e){var n=ka();return e=void 0===e?null:e,t=t(),n.memoizedState=[t,e],t},useReducer:function(t,e,n){var r=ka();return e=void 0!==n?n(e):e,r.memoizedState=r.baseState=e,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:e},r.queue=t,t=t.dispatch=es.bind(null,ga,t),[r.memoizedState,t]},useRef:function(t){return t={current:t},ka().memoizedState=t},useState:za,useDebugValue:Ka,useDeferredValue:function(t){return ka().memoizedState=t},useTransition:function(){var t=za(!1),e=t[0];return t=Ja.bind(null,t[1]),ka().memoizedState=t,[e,t]},useMutableSource:function(){},useSyncExternalStore:function(t,e,n){var r=ga,i=ka();if(io){if(void 0===n)throw Error(o(407));n=n()}else{if(n=e(),null===Tl)throw Error(o(349));0!=(30&fa)||Ia(r,e,n)}i.memoizedState=n;var a={value:n,getSnapshot:e};return i.queue=a,Ua(Fa.bind(null,r,a,t),[t]),r.flags|=2048,Za(9,La.bind(null,r,a,n,e),void 0,null),n},useId:function(){var t=ka(),e=Tl.identifierPrefix;if(io){var n=Qi;e=":"+e+"R"+(n=(Yi&~(1<<32-ae(Yi)-1)).toString(32)+n),0<(n=ba++)&&(e+="H"+n.toString(32)),e+=":"}else e=":"+e+"r"+(n=wa++).toString(32)+":";return t.memoizedState=e},unstable_isNewReconciler:!1},ls={readContext:ko,useCallback:Ya,useContext:ko,useEffect:Va,useImperativeHandle:Xa,useInsertionEffect:qa,useLayoutEffect:Wa,useMemo:Qa,useReducer:Ta,useRef:ja,useState:function(){return Ta(Pa)},useDebugValue:Ka,useDeferredValue:function(t){return $a(Aa(),ma.memoizedState,t)},useTransition:function(){return[Ta(Pa)[0],Aa().memoizedState]},useMutableSource:Oa,useSyncExternalStore:Ra,useId:ts,unstable_isNewReconciler:!1},us={readContext:ko,useCallback:Ya,useContext:ko,useEffect:Va,useImperativeHandle:Xa,useInsertionEffect:qa,useLayoutEffect:Wa,useMemo:Qa,useReducer:Ma,useRef:ja,useState:function(){return Ma(Pa)},useDebugValue:Ka,useDeferredValue:function(t){var e=Aa();return null===ma?e.memoizedState=t:$a(e,ma.memoizedState,t)},useTransition:function(){return[Ma(Pa)[0],Aa().memoizedState]},useMutableSource:Oa,useSyncExternalStore:Ra,useId:ts,unstable_isNewReconciler:!1};function cs(t,e){try{var n="",r=e;do{n+=G(r),r=r.return}while(r);var i=n}catch(t){i="\nError generating stack: "+t.message+"\n"+t.stack}return{value:t,source:e,stack:i,digest:null}}function hs(t,e,n){return{value:t,source:null,stack:null!=n?n:null,digest:null!=e?e:null}}function ps(t,e){try{console.error(e.value)}catch(t){setTimeout((function(){throw t}))}}var ds="function"==typeof WeakMap?WeakMap:Map;function fs(t,e,n){(n=Lo(-1,n)).tag=3,n.payload={element:null};var r=e.value;return n.callback=function(){Vl||(Vl=!0,ql=r),ps(0,e)},n}function gs(t,e,n){(n=Lo(-1,n)).tag=3;var r=t.type.getDerivedStateFromError;if("function"==typeof r){var i=e.value;n.payload=function(){return r(i)},n.callback=function(){ps(0,e)}}var o=t.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){ps(0,e),"function"!=typeof r&&(null===Wl?Wl=new Set([this]):Wl.add(this));var t=e.stack;this.componentDidCatch(e.value,{componentStack:null!==t?t:""})}),n}function ms(t,e,n){var r=t.pingCache;if(null===r){r=t.pingCache=new ds;var i=new Set;r.set(e,i)}else void 0===(i=r.get(e))&&(i=new Set,r.set(e,i));i.has(n)||(i.add(n),t=Eu.bind(null,t,e,n),e.then(t,t))}function ys(t){do{var e;if((e=13===t.tag)&&(e=null===(e=t.memoizedState)||null!==e.dehydrated),e)return t;t=t.return}while(null!==t);return null}function vs(t,e,n,r,i){return 0==(1&t.mode)?(t===e?t.flags|=65536:(t.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((e=Lo(-1,1)).tag=2,Fo(n,e,1))),n.lanes|=1),t):(t.flags|=65536,t.lanes=i,t)}var _s=b.ReactCurrentOwner,bs=!1;function ws(t,e,n,r){e.child=null===t?$o(e,null,n,r):Qo(e,t.child,n,r)}function xs(t,e,n,r,i){n=n.render;var o=e.ref;return Eo(e,i),r=Ca(t,e,n,r,o,i),n=Ea(),null===t||bs?(io&&n&&to(e),e.flags|=1,ws(t,e,r,i),e.child):(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~i,Vs(t,e,i))}function Ss(t,e,n,r,i){if(null===t){var o=n.type;return"function"!=typeof o||Ru(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((t=Lu(n.type,null,r,e,e.mode,i)).ref=e.ref,t.return=e,e.child=t):(e.tag=15,e.type=o,Cs(t,e,o,r,i))}if(o=t.child,0==(t.lanes&i)){var a=o.memoizedProps;if((n=null!==(n=n.compare)?n:lr)(a,r)&&t.ref===e.ref)return Vs(t,e,i)}return e.flags|=1,(t=Iu(o,r)).ref=e.ref,t.return=e,e.child=t}function Cs(t,e,n,r,i){if(null!==t){var o=t.memoizedProps;if(lr(o,r)&&t.ref===e.ref){if(bs=!1,e.pendingProps=r=o,0==(t.lanes&i))return e.lanes=t.lanes,Vs(t,e,i);0!=(131072&t.flags)&&(bs=!0)}}return As(t,e,n,r,i)}function Es(t,e,n){var r=e.pendingProps,i=r.children,o=null!==t?t.memoizedState:null;if("hidden"===r.mode)if(0==(1&e.mode))e.memoizedState={baseLanes:0,cachePool:null,transitions:null},ki(Il,Rl),Rl|=n;else{if(0==(1073741824&n))return t=null!==o?o.baseLanes|n:n,e.lanes=e.childLanes=1073741824,e.memoizedState={baseLanes:t,cachePool:null,transitions:null},e.updateQueue=null,ki(Il,Rl),Rl|=t,null;e.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==o?o.baseLanes:n,ki(Il,Rl),Rl|=r}else null!==o?(r=o.baseLanes|n,e.memoizedState=null):r=n,ki(Il,Rl),Rl|=r;return ws(t,e,i,n),e.child}function ks(t,e){var n=e.ref;(null===t&&null!==n||null!==t&&t.ref!==n)&&(e.flags|=512,e.flags|=2097152)}function As(t,e,n,r,i){var o=Ri(n)?Mi:Pi.current;return o=Oi(e,o),Eo(e,i),n=Ca(t,e,n,r,o,i),r=Ea(),null===t||bs?(io&&r&&to(e),e.flags|=1,ws(t,e,n,i),e.child):(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~i,Vs(t,e,i))}function Ps(t,e,n,r,i){if(Ri(n)){var o=!0;Ni(e)}else o=!1;if(Eo(e,i),null===e.stateNode)Us(t,e),Vo(e,n,r),Wo(e,n,r,i),r=!0;else if(null===t){var a=e.stateNode,s=e.memoizedProps;a.props=s;var l=a.context,u=n.contextType;u="object"==typeof u&&null!==u?ko(u):Oi(e,u=Ri(n)?Mi:Pi.current);var c=n.getDerivedStateFromProps,h="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;h||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==u)&&qo(e,a,r,u),Oo=!1;var p=e.memoizedState;a.state=p,zo(e,r,a,i),l=e.memoizedState,s!==r||p!==l||Ti.current||Oo?("function"==typeof c&&(Go(e,n,c,r),l=e.memoizedState),(s=Oo||Uo(e,n,s,r,p,l,u))?(h||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(e.flags|=4194308)):("function"==typeof a.componentDidMount&&(e.flags|=4194308),e.memoizedProps=r,e.memoizedState=l),a.props=r,a.state=l,a.context=u,r=s):("function"==typeof a.componentDidMount&&(e.flags|=4194308),r=!1)}else{a=e.stateNode,Io(t,e),s=e.memoizedProps,u=e.type===e.elementType?s:yo(e.type,s),a.props=u,h=e.pendingProps,p=a.context,l="object"==typeof(l=n.contextType)&&null!==l?ko(l):Oi(e,l=Ri(n)?Mi:Pi.current);var d=n.getDerivedStateFromProps;(c="function"==typeof d||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==h||p!==l)&&qo(e,a,r,l),Oo=!1,p=e.memoizedState,a.state=p,zo(e,r,a,i);var f=e.memoizedState;s!==h||p!==f||Ti.current||Oo?("function"==typeof d&&(Go(e,n,d,r),f=e.memoizedState),(u=Oo||Uo(e,n,u,r,p,f,l)||!1)?(c||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,f,l),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,f,l)),"function"==typeof a.componentDidUpdate&&(e.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(e.flags|=1024)):("function"!=typeof a.componentDidUpdate||s===t.memoizedProps&&p===t.memoizedState||(e.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===t.memoizedProps&&p===t.memoizedState||(e.flags|=1024),e.memoizedProps=r,e.memoizedState=f),a.props=r,a.state=f,a.context=l,r=u):("function"!=typeof a.componentDidUpdate||s===t.memoizedProps&&p===t.memoizedState||(e.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===t.memoizedProps&&p===t.memoizedState||(e.flags|=1024),r=!1)}return Ts(t,e,n,r,o,i)}function Ts(t,e,n,r,i,o){ks(t,e);var a=0!=(128&e.flags);if(!r&&!a)return i&&Di(e,n,!1),Vs(t,e,o);r=e.stateNode,_s.current=e;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return e.flags|=1,null!==t&&a?(e.child=Qo(e,t.child,null,o),e.child=Qo(e,null,s,o)):ws(t,e,s,o),e.memoizedState=r.state,i&&Di(e,n,!0),e.child}function Ms(t){var e=t.stateNode;e.pendingContext?Li(0,e.pendingContext,e.pendingContext!==e.context):e.context&&Li(0,e.context,!1),ia(t,e.containerInfo)}function Os(t,e,n,r,i){return fo(),go(i),e.flags|=256,ws(t,e,n,r),e.child}var Rs,Is,Ls,Fs={dehydrated:null,treeContext:null,retryLane:0};function Ns(t){return{baseLanes:t,cachePool:null,transitions:null}}function Ds(t,e,n){var r,i=e.pendingProps,a=la.current,s=!1,l=0!=(128&e.flags);if((r=l)||(r=(null===t||null!==t.memoizedState)&&0!=(2&a)),r?(s=!0,e.flags&=-129):null!==t&&null===t.memoizedState||(a|=1),ki(la,1&a),null===t)return uo(e),null!==(t=e.memoizedState)&&null!==(t=t.dehydrated)?(0==(1&e.mode)?e.lanes=1:"$!"===t.data?e.lanes=8:e.lanes=1073741824,null):(l=i.children,t=i.fallback,s?(i=e.mode,s=e.child,l={mode:"hidden",children:l},0==(1&i)&&null!==s?(s.childLanes=0,s.pendingProps=l):s=Nu(l,i,0,null),t=Fu(t,i,n,null),s.return=e,t.return=e,s.sibling=t,e.child=s,e.child.memoizedState=Ns(n),e.memoizedState=Fs,t):zs(e,l));if(null!==(a=t.memoizedState)&&null!==(r=a.dehydrated))return function(t,e,n,r,i,a,s){if(n)return 256&e.flags?(e.flags&=-257,Zs(t,e,s,r=hs(Error(o(422))))):null!==e.memoizedState?(e.child=t.child,e.flags|=128,null):(a=r.fallback,i=e.mode,r=Nu({mode:"visible",children:r.children},i,0,null),(a=Fu(a,i,s,null)).flags|=2,r.return=e,a.return=e,r.sibling=a,e.child=r,0!=(1&e.mode)&&Qo(e,t.child,null,s),e.child.memoizedState=Ns(s),e.memoizedState=Fs,a);if(0==(1&e.mode))return Zs(t,e,s,null);if("$!"===i.data){if(r=i.nextSibling&&i.nextSibling.dataset)var l=r.dgst;return r=l,Zs(t,e,s,r=hs(a=Error(o(419)),r,void 0))}if(l=0!=(s&t.childLanes),bs||l){if(null!==(r=Tl)){switch(s&-s){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}0!==(i=0!=(i&(r.suspendedLanes|s))?0:i)&&i!==a.retryLane&&(a.retryLane=i,Mo(t,i),nu(r,t,i,-1))}return gu(),Zs(t,e,s,r=hs(Error(o(421))))}return"$?"===i.data?(e.flags|=128,e.child=t.child,e=Au.bind(null,t),i._reactRetry=e,null):(t=a.treeContext,ro=ui(i.nextSibling),no=e,io=!0,oo=null,null!==t&&(Hi[Xi++]=Yi,Hi[Xi++]=Qi,Hi[Xi++]=Ki,Yi=t.id,Qi=t.overflow,Ki=e),(e=zs(e,r.children)).flags|=4096,e)}(t,e,l,i,r,a,n);if(s){s=i.fallback,l=e.mode,r=(a=t.child).sibling;var u={mode:"hidden",children:i.children};return 0==(1&l)&&e.child!==a?((i=e.child).childLanes=0,i.pendingProps=u,e.deletions=null):(i=Iu(a,u)).subtreeFlags=14680064&a.subtreeFlags,null!==r?s=Iu(r,s):(s=Fu(s,l,n,null)).flags|=2,s.return=e,i.return=e,i.sibling=s,e.child=i,i=s,s=e.child,l=null===(l=t.child.memoizedState)?Ns(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=t.childLanes&~n,e.memoizedState=Fs,i}return t=(s=t.child).sibling,i=Iu(s,{mode:"visible",children:i.children}),0==(1&e.mode)&&(i.lanes=n),i.return=e,i.sibling=null,null!==t&&(null===(n=e.deletions)?(e.deletions=[t],e.flags|=16):n.push(t)),e.child=i,e.memoizedState=null,i}function zs(t,e){return(e=Nu({mode:"visible",children:e},t.mode,0,null)).return=t,t.child=e}function Zs(t,e,n,r){return null!==r&&go(r),Qo(e,t.child,null,n),(t=zs(e,e.pendingProps.children)).flags|=2,e.memoizedState=null,t}function js(t,e,n){t.lanes|=e;var r=t.alternate;null!==r&&(r.lanes|=e),Co(t.return,e,n)}function Gs(t,e,n,r,i){var o=t.memoizedState;null===o?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=e,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function Bs(t,e,n){var r=e.pendingProps,i=r.revealOrder,o=r.tail;if(ws(t,e,r.children,n),0!=(2&(r=la.current)))r=1&r|2,e.flags|=128;else{if(null!==t&&0!=(128&t.flags))t:for(t=e.child;null!==t;){if(13===t.tag)null!==t.memoizedState&&js(t,n,e);else if(19===t.tag)js(t,n,e);else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;null===t.sibling;){if(null===t.return||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}r&=1}if(ki(la,r),0==(1&e.mode))e.memoizedState=null;else switch(i){case"forwards":for(n=e.child,i=null;null!==n;)null!==(t=n.alternate)&&null===ua(t)&&(i=n),n=n.sibling;null===(n=i)?(i=e.child,e.child=null):(i=n.sibling,n.sibling=null),Gs(e,!1,i,n,o);break;case"backwards":for(n=null,i=e.child,e.child=null;null!==i;){if(null!==(t=i.alternate)&&null===ua(t)){e.child=i;break}t=i.sibling,i.sibling=n,n=i,i=t}Gs(e,!0,n,null,o);break;case"together":Gs(e,!1,null,null,void 0);break;default:e.memoizedState=null}return e.child}function Us(t,e){0==(1&e.mode)&&null!==t&&(t.alternate=null,e.alternate=null,e.flags|=2)}function Vs(t,e,n){if(null!==t&&(e.dependencies=t.dependencies),Nl|=e.lanes,0==(n&e.childLanes))return null;if(null!==t&&e.child!==t.child)throw Error(o(153));if(null!==e.child){for(n=Iu(t=e.child,t.pendingProps),e.child=n,n.return=e;null!==t.sibling;)t=t.sibling,(n=n.sibling=Iu(t,t.pendingProps)).return=e;n.sibling=null}return e.child}function qs(t,e){if(!io)switch(t.tailMode){case"hidden":e=t.tail;for(var n=null;null!==e;)null!==e.alternate&&(n=e),e=e.sibling;null===n?t.tail=null:n.sibling=null;break;case"collapsed":n=t.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?e||null===t.tail?t.tail=null:t.tail.sibling=null:r.sibling=null}}function Ws(t){var e=null!==t.alternate&&t.alternate.child===t.child,n=0,r=0;if(e)for(var i=t.child;null!==i;)n|=i.lanes|i.childLanes,r|=14680064&i.subtreeFlags,r|=14680064&i.flags,i.return=t,i=i.sibling;else for(i=t.child;null!==i;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=t,i=i.sibling;return t.subtreeFlags|=r,t.childLanes=n,e}function Hs(t,e,n){var r=e.pendingProps;switch(eo(e),e.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ws(e),null;case 1:case 17:return Ri(e.type)&&Ii(),Ws(e),null;case 3:return r=e.stateNode,oa(),Ei(Ti),Ei(Pi),ha(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==t&&null!==t.child||(ho(e)?e.flags|=4:null===t||t.memoizedState.isDehydrated&&0==(256&e.flags)||(e.flags|=1024,null!==oo&&(au(oo),oo=null))),Ws(e),null;case 5:sa(e);var i=ra(na.current);if(n=e.type,null!==t&&null!=e.stateNode)Is(t,e,n,r),t.ref!==e.ref&&(e.flags|=512,e.flags|=2097152);else{if(!r){if(null===e.stateNode)throw Error(o(166));return Ws(e),null}if(t=ra(ta.current),ho(e)){r=e.stateNode,n=e.type;var a=e.memoizedProps;switch(r[pi]=e,r[di]=a,t=0!=(1&e.mode),n){case"dialog":Zr("cancel",r),Zr("close",r);break;case"iframe":case"object":case"embed":Zr("load",r);break;case"video":case"audio":for(i=0;i<Fr.length;i++)Zr(Fr[i],r);break;case"source":Zr("error",r);break;case"img":case"image":case"link":Zr("error",r),Zr("load",r);break;case"details":Zr("toggle",r);break;case"input":Y(r,a),Zr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},Zr("invalid",r);break;case"textarea":it(r,a),Zr("invalid",r)}for(var l in vt(n,a),i=null,a)if(a.hasOwnProperty(l)){var u=a[l];"children"===l?"string"==typeof u?r.textContent!==u&&(!0!==a.suppressHydrationWarning&&$r(r.textContent,u,t),i=["children",u]):"number"==typeof u&&r.textContent!==""+u&&(!0!==a.suppressHydrationWarning&&$r(r.textContent,u,t),i=["children",""+u]):s.hasOwnProperty(l)&&null!=u&&"onScroll"===l&&Zr("scroll",r)}switch(n){case"input":W(r),J(r,a,!0);break;case"textarea":W(r),at(r);break;case"select":case"option":break;default:"function"==typeof a.onClick&&(r.onclick=Jr)}r=i,e.updateQueue=r,null!==r&&(e.flags|=4)}else{l=9===i.nodeType?i:i.ownerDocument,"http://www.w3.org/1999/xhtml"===t&&(t=st(n)),"http://www.w3.org/1999/xhtml"===t?"script"===n?((t=l.createElement("div")).innerHTML="<script><\/script>",t=t.removeChild(t.firstChild)):"string"==typeof r.is?t=l.createElement(n,{is:r.is}):(t=l.createElement(n),"select"===n&&(l=t,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):t=l.createElementNS(t,n),t[pi]=e,t[di]=r,Rs(t,e),e.stateNode=t;t:{switch(l=_t(n,r),n){case"dialog":Zr("cancel",t),Zr("close",t),i=r;break;case"iframe":case"object":case"embed":Zr("load",t),i=r;break;case"video":case"audio":for(i=0;i<Fr.length;i++)Zr(Fr[i],t);i=r;break;case"source":Zr("error",t),i=r;break;case"img":case"image":case"link":Zr("error",t),Zr("load",t),i=r;break;case"details":Zr("toggle",t),i=r;break;case"input":Y(t,r),i=K(t,r),Zr("invalid",t);break;case"option":default:i=r;break;case"select":t._wrapperState={wasMultiple:!!r.multiple},i=D({},r,{value:void 0}),Zr("invalid",t);break;case"textarea":it(t,r),i=rt(t,r),Zr("invalid",t)}for(a in vt(n,i),u=i)if(u.hasOwnProperty(a)){var c=u[a];"style"===a?mt(t,c):"dangerouslySetInnerHTML"===a?null!=(c=c?c.__html:void 0)&&ht(t,c):"children"===a?"string"==typeof c?("textarea"!==n||""!==c)&&pt(t,c):"number"==typeof c&&pt(t,""+c):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(s.hasOwnProperty(a)?null!=c&&"onScroll"===a&&Zr("scroll",t):null!=c&&_(t,a,c,l))}switch(n){case"input":W(t),J(t,r,!1);break;case"textarea":W(t),at(t);break;case"option":null!=r.value&&t.setAttribute("value",""+V(r.value));break;case"select":t.multiple=!!r.multiple,null!=(a=r.value)?nt(t,!!r.multiple,a,!1):null!=r.defaultValue&&nt(t,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof i.onClick&&(t.onclick=Jr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break t;case"img":r=!0;break t;default:r=!1}}r&&(e.flags|=4)}null!==e.ref&&(e.flags|=512,e.flags|=2097152)}return Ws(e),null;case 6:if(t&&null!=e.stateNode)Ls(0,e,t.memoizedProps,r);else{if("string"!=typeof r&&null===e.stateNode)throw Error(o(166));if(n=ra(na.current),ra(ta.current),ho(e)){if(r=e.stateNode,n=e.memoizedProps,r[pi]=e,(a=r.nodeValue!==n)&&null!==(t=no))switch(t.tag){case 3:$r(r.nodeValue,n,0!=(1&t.mode));break;case 5:!0!==t.memoizedProps.suppressHydrationWarning&&$r(r.nodeValue,n,0!=(1&t.mode))}a&&(e.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[pi]=e,e.stateNode=r}return Ws(e),null;case 13:if(Ei(la),r=e.memoizedState,null===t||null!==t.memoizedState&&null!==t.memoizedState.dehydrated){if(io&&null!==ro&&0!=(1&e.mode)&&0==(128&e.flags))po(),fo(),e.flags|=98560,a=!1;else if(a=ho(e),null!==r&&null!==r.dehydrated){if(null===t){if(!a)throw Error(o(318));if(!(a=null!==(a=e.memoizedState)?a.dehydrated:null))throw Error(o(317));a[pi]=e}else fo(),0==(128&e.flags)&&(e.memoizedState=null),e.flags|=4;Ws(e),a=!1}else null!==oo&&(au(oo),oo=null),a=!0;if(!a)return 65536&e.flags?e:null}return 0!=(128&e.flags)?(e.lanes=n,e):((r=null!==r)!=(null!==t&&null!==t.memoizedState)&&r&&(e.child.flags|=8192,0!=(1&e.mode)&&(null===t||0!=(1&la.current)?0===Ll&&(Ll=3):gu())),null!==e.updateQueue&&(e.flags|=4),Ws(e),null);case 4:return oa(),null===t&&Br(e.stateNode.containerInfo),Ws(e),null;case 10:return So(e.type._context),Ws(e),null;case 19:if(Ei(la),null===(a=e.memoizedState))return Ws(e),null;if(r=0!=(128&e.flags),null===(l=a.rendering))if(r)qs(a,!1);else{if(0!==Ll||null!==t&&0!=(128&t.flags))for(t=e.child;null!==t;){if(null!==(l=ua(t))){for(e.flags|=128,qs(a,!1),null!==(r=l.updateQueue)&&(e.updateQueue=r,e.flags|=4),e.subtreeFlags=0,r=n,n=e.child;null!==n;)t=r,(a=n).flags&=14680066,null===(l=a.alternate)?(a.childLanes=0,a.lanes=t,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=l.childLanes,a.lanes=l.lanes,a.child=l.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=l.memoizedProps,a.memoizedState=l.memoizedState,a.updateQueue=l.updateQueue,a.type=l.type,t=l.dependencies,a.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext}),n=n.sibling;return ki(la,1&la.current|2),e.child}t=t.sibling}null!==a.tail&&Qt()>Bl&&(e.flags|=128,r=!0,qs(a,!1),e.lanes=4194304)}else{if(!r)if(null!==(t=ua(l))){if(e.flags|=128,r=!0,null!==(n=t.updateQueue)&&(e.updateQueue=n,e.flags|=4),qs(a,!0),null===a.tail&&"hidden"===a.tailMode&&!l.alternate&&!io)return Ws(e),null}else 2*Qt()-a.renderingStartTime>Bl&&1073741824!==n&&(e.flags|=128,r=!0,qs(a,!1),e.lanes=4194304);a.isBackwards?(l.sibling=e.child,e.child=l):(null!==(n=a.last)?n.sibling=l:e.child=l,a.last=l)}return null!==a.tail?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=Qt(),e.sibling=null,n=la.current,ki(la,r?1&n|2:1&n),e):(Ws(e),null);case 22:case 23:return hu(),r=null!==e.memoizedState,null!==t&&null!==t.memoizedState!==r&&(e.flags|=8192),r&&0!=(1&e.mode)?0!=(1073741824&Rl)&&(Ws(e),6&e.subtreeFlags&&(e.flags|=8192)):Ws(e),null;case 24:case 25:return null}throw Error(o(156,e.tag))}function Xs(t,e){switch(eo(e),e.tag){case 1:return Ri(e.type)&&Ii(),65536&(t=e.flags)?(e.flags=-65537&t|128,e):null;case 3:return oa(),Ei(Ti),Ei(Pi),ha(),0!=(65536&(t=e.flags))&&0==(128&t)?(e.flags=-65537&t|128,e):null;case 5:return sa(e),null;case 13:if(Ei(la),null!==(t=e.memoizedState)&&null!==t.dehydrated){if(null===e.alternate)throw Error(o(340));fo()}return 65536&(t=e.flags)?(e.flags=-65537&t|128,e):null;case 19:return Ei(la),null;case 4:return oa(),null;case 10:return So(e.type._context),null;case 22:case 23:return hu(),null;default:return null}}Rs=function(t,e){for(var n=e.child;null!==n;){if(5===n.tag||6===n.tag)t.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Is=function(t,e,n,r){var i=t.memoizedProps;if(i!==r){t=e.stateNode,ra(ta.current);var o,a=null;switch(n){case"input":i=K(t,i),r=K(t,r),a=[];break;case"select":i=D({},i,{value:void 0}),r=D({},r,{value:void 0}),a=[];break;case"textarea":i=rt(t,i),r=rt(t,r),a=[];break;default:"function"!=typeof i.onClick&&"function"==typeof r.onClick&&(t.onclick=Jr)}for(c in vt(n,r),n=null,i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&null!=i[c])if("style"===c){var l=i[c];for(o in l)l.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(s.hasOwnProperty(c)?a||(a=[]):(a=a||[]).push(c,null));for(c in r){var u=r[c];if(l=null!=i?i[c]:void 0,r.hasOwnProperty(c)&&u!==l&&(null!=u||null!=l))if("style"===c)if(l){for(o in l)!l.hasOwnProperty(o)||u&&u.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in u)u.hasOwnProperty(o)&&l[o]!==u[o]&&(n||(n={}),n[o]=u[o])}else n||(a||(a=[]),a.push(c,n)),n=u;else"dangerouslySetInnerHTML"===c?(u=u?u.__html:void 0,l=l?l.__html:void 0,null!=u&&l!==u&&(a=a||[]).push(c,u)):"children"===c?"string"!=typeof u&&"number"!=typeof u||(a=a||[]).push(c,""+u):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(s.hasOwnProperty(c)?(null!=u&&"onScroll"===c&&Zr("scroll",t),a||l===u||(a=[])):(a=a||[]).push(c,u))}n&&(a=a||[]).push("style",n);var c=a;(e.updateQueue=c)&&(e.flags|=4)}},Ls=function(t,e,n,r){n!==r&&(e.flags|=4)};var Ks=!1,Ys=!1,Qs="function"==typeof WeakSet?WeakSet:Set,$s=null;function Js(t,e){var n=t.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){Cu(t,e,n)}else n.current=null}function tl(t,e,n){try{n()}catch(n){Cu(t,e,n)}}var el=!1;function nl(t,e,n){var r=e.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var i=r=r.next;do{if((i.tag&t)===t){var o=i.destroy;i.destroy=void 0,void 0!==o&&tl(e,n,o)}i=i.next}while(i!==r)}}function rl(t,e){if(null!==(e=null!==(e=e.updateQueue)?e.lastEffect:null)){var n=e=e.next;do{if((n.tag&t)===t){var r=n.create;n.destroy=r()}n=n.next}while(n!==e)}}function il(t){var e=t.ref;if(null!==e){var n=t.stateNode;t.tag,t=n,"function"==typeof e?e(t):e.current=t}}function ol(t){var e=t.alternate;null!==e&&(t.alternate=null,ol(e)),t.child=null,t.deletions=null,t.sibling=null,5===t.tag&&null!==(e=t.stateNode)&&(delete e[pi],delete e[di],delete e[gi],delete e[mi],delete e[yi]),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function al(t){return 5===t.tag||3===t.tag||4===t.tag}function sl(t){t:for(;;){for(;null===t.sibling;){if(null===t.return||al(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;5!==t.tag&&6!==t.tag&&18!==t.tag;){if(2&t.flags)continue t;if(null===t.child||4===t.tag)continue t;t.child.return=t,t=t.child}if(!(2&t.flags))return t.stateNode}}function ll(t,e,n){var r=t.tag;if(5===r||6===r)t=t.stateNode,e?8===n.nodeType?n.parentNode.insertBefore(t,e):n.insertBefore(t,e):(8===n.nodeType?(e=n.parentNode).insertBefore(t,n):(e=n).appendChild(t),null!=(n=n._reactRootContainer)||null!==e.onclick||(e.onclick=Jr));else if(4!==r&&null!==(t=t.child))for(ll(t,e,n),t=t.sibling;null!==t;)ll(t,e,n),t=t.sibling}function ul(t,e,n){var r=t.tag;if(5===r||6===r)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(4!==r&&null!==(t=t.child))for(ul(t,e,n),t=t.sibling;null!==t;)ul(t,e,n),t=t.sibling}var cl=null,hl=!1;function pl(t,e,n){for(n=n.child;null!==n;)dl(t,e,n),n=n.sibling}function dl(t,e,n){if(oe&&"function"==typeof oe.onCommitFiberUnmount)try{oe.onCommitFiberUnmount(ie,n)}catch(t){}switch(n.tag){case 5:Ys||Js(n,e);case 6:var r=cl,i=hl;cl=null,pl(t,e,n),hl=i,null!==(cl=r)&&(hl?(t=cl,n=n.stateNode,8===t.nodeType?t.parentNode.removeChild(n):t.removeChild(n)):cl.removeChild(n.stateNode));break;case 18:null!==cl&&(hl?(t=cl,n=n.stateNode,8===t.nodeType?li(t.parentNode,n):1===t.nodeType&&li(t,n),Be(t)):li(cl,n.stateNode));break;case 4:r=cl,i=hl,cl=n.stateNode.containerInfo,hl=!0,pl(t,e,n),cl=r,hl=i;break;case 0:case 11:case 14:case 15:if(!Ys&&null!==(r=n.updateQueue)&&null!==(r=r.lastEffect)){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,void 0!==a&&(0!=(2&o)||0!=(4&o))&&tl(n,e,a),i=i.next}while(i!==r)}pl(t,e,n);break;case 1:if(!Ys&&(Js(n,e),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(t){Cu(n,e,t)}pl(t,e,n);break;case 21:pl(t,e,n);break;case 22:1&n.mode?(Ys=(r=Ys)||null!==n.memoizedState,pl(t,e,n),Ys=r):pl(t,e,n);break;default:pl(t,e,n)}}function fl(t){var e=t.updateQueue;if(null!==e){t.updateQueue=null;var n=t.stateNode;null===n&&(n=t.stateNode=new Qs),e.forEach((function(e){var r=Pu.bind(null,t,e);n.has(e)||(n.add(e),e.then(r,r))}))}}function gl(t,e){var n=e.deletions;if(null!==n)for(var r=0;r<n.length;r++){var i=n[r];try{var a=t,s=e,l=s;t:for(;null!==l;){switch(l.tag){case 5:cl=l.stateNode,hl=!1;break t;case 3:case 4:cl=l.stateNode.containerInfo,hl=!0;break t}l=l.return}if(null===cl)throw Error(o(160));dl(a,s,i),cl=null,hl=!1;var u=i.alternate;null!==u&&(u.return=null),i.return=null}catch(t){Cu(i,e,t)}}if(12854&e.subtreeFlags)for(e=e.child;null!==e;)ml(e,t),e=e.sibling}function ml(t,e){var n=t.alternate,r=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:if(gl(e,t),yl(t),4&r){try{nl(3,t,t.return),rl(3,t)}catch(e){Cu(t,t.return,e)}try{nl(5,t,t.return)}catch(e){Cu(t,t.return,e)}}break;case 1:gl(e,t),yl(t),512&r&&null!==n&&Js(n,n.return);break;case 5:if(gl(e,t),yl(t),512&r&&null!==n&&Js(n,n.return),32&t.flags){var i=t.stateNode;try{pt(i,"")}catch(e){Cu(t,t.return,e)}}if(4&r&&null!=(i=t.stateNode)){var a=t.memoizedProps,s=null!==n?n.memoizedProps:a,l=t.type,u=t.updateQueue;if(t.updateQueue=null,null!==u)try{"input"===l&&"radio"===a.type&&null!=a.name&&Q(i,a),_t(l,s);var c=_t(l,a);for(s=0;s<u.length;s+=2){var h=u[s],p=u[s+1];"style"===h?mt(i,p):"dangerouslySetInnerHTML"===h?ht(i,p):"children"===h?pt(i,p):_(i,h,p,c)}switch(l){case"input":$(i,a);break;case"textarea":ot(i,a);break;case"select":var d=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!a.multiple;var f=a.value;null!=f?nt(i,!!a.multiple,f,!1):d!==!!a.multiple&&(null!=a.defaultValue?nt(i,!!a.multiple,a.defaultValue,!0):nt(i,!!a.multiple,a.multiple?[]:"",!1))}i[di]=a}catch(e){Cu(t,t.return,e)}}break;case 6:if(gl(e,t),yl(t),4&r){if(null===t.stateNode)throw Error(o(162));i=t.stateNode,a=t.memoizedProps;try{i.nodeValue=a}catch(e){Cu(t,t.return,e)}}break;case 3:if(gl(e,t),yl(t),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Be(e.containerInfo)}catch(e){Cu(t,t.return,e)}break;case 4:default:gl(e,t),yl(t);break;case 13:gl(e,t),yl(t),8192&(i=t.child).flags&&(a=null!==i.memoizedState,i.stateNode.isHidden=a,!a||null!==i.alternate&&null!==i.alternate.memoizedState||(Gl=Qt())),4&r&&fl(t);break;case 22:if(h=null!==n&&null!==n.memoizedState,1&t.mode?(Ys=(c=Ys)||h,gl(e,t),Ys=c):gl(e,t),yl(t),8192&r){if(c=null!==t.memoizedState,(t.stateNode.isHidden=c)&&!h&&0!=(1&t.mode))for($s=t,h=t.child;null!==h;){for(p=$s=h;null!==$s;){switch(f=(d=$s).child,d.tag){case 0:case 11:case 14:case 15:nl(4,d,d.return);break;case 1:Js(d,d.return);var g=d.stateNode;if("function"==typeof g.componentWillUnmount){r=d,n=d.return;try{e=r,g.props=e.memoizedProps,g.state=e.memoizedState,g.componentWillUnmount()}catch(t){Cu(r,n,t)}}break;case 5:Js(d,d.return);break;case 22:if(null!==d.memoizedState){wl(p);continue}}null!==f?(f.return=d,$s=f):wl(p)}h=h.sibling}t:for(h=null,p=t;;){if(5===p.tag){if(null===h){h=p;try{i=p.stateNode,c?"function"==typeof(a=i.style).setProperty?a.setProperty("display","none","important"):a.display="none":(l=p.stateNode,s=null!=(u=p.memoizedProps.style)&&u.hasOwnProperty("display")?u.display:null,l.style.display=gt("display",s))}catch(e){Cu(t,t.return,e)}}}else if(6===p.tag){if(null===h)try{p.stateNode.nodeValue=c?"":p.memoizedProps}catch(e){Cu(t,t.return,e)}}else if((22!==p.tag&&23!==p.tag||null===p.memoizedState||p===t)&&null!==p.child){p.child.return=p,p=p.child;continue}if(p===t)break t;for(;null===p.sibling;){if(null===p.return||p.return===t)break t;h===p&&(h=null),p=p.return}h===p&&(h=null),p.sibling.return=p.return,p=p.sibling}}break;case 19:gl(e,t),yl(t),4&r&&fl(t);case 21:}}function yl(t){var e=t.flags;if(2&e){try{t:{for(var n=t.return;null!==n;){if(al(n)){var r=n;break t}n=n.return}throw Error(o(160))}switch(r.tag){case 5:var i=r.stateNode;32&r.flags&&(pt(i,""),r.flags&=-33),ul(t,sl(t),i);break;case 3:case 4:var a=r.stateNode.containerInfo;ll(t,sl(t),a);break;default:throw Error(o(161))}}catch(e){Cu(t,t.return,e)}t.flags&=-3}4096&e&&(t.flags&=-4097)}function vl(t,e,n){$s=t,_l(t,e,n)}function _l(t,e,n){for(var r=0!=(1&t.mode);null!==$s;){var i=$s,o=i.child;if(22===i.tag&&r){var a=null!==i.memoizedState||Ks;if(!a){var s=i.alternate,l=null!==s&&null!==s.memoizedState||Ys;s=Ks;var u=Ys;if(Ks=a,(Ys=l)&&!u)for($s=i;null!==$s;)l=(a=$s).child,22===a.tag&&null!==a.memoizedState?xl(i):null!==l?(l.return=a,$s=l):xl(i);for(;null!==o;)$s=o,_l(o,e,n),o=o.sibling;$s=i,Ks=s,Ys=u}bl(t)}else 0!=(8772&i.subtreeFlags)&&null!==o?(o.return=i,$s=o):bl(t)}}function bl(t){for(;null!==$s;){var e=$s;if(0!=(8772&e.flags)){var n=e.alternate;try{if(0!=(8772&e.flags))switch(e.tag){case 0:case 11:case 15:Ys||rl(5,e);break;case 1:var r=e.stateNode;if(4&e.flags&&!Ys)if(null===n)r.componentDidMount();else{var i=e.elementType===e.type?n.memoizedProps:yo(e.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=e.updateQueue;null!==a&&Zo(e,a,r);break;case 3:var s=e.updateQueue;if(null!==s){if(n=null,null!==e.child)switch(e.child.tag){case 5:case 1:n=e.child.stateNode}Zo(e,s,n)}break;case 5:var l=e.stateNode;if(null===n&&4&e.flags){n=l;var u=e.memoizedProps;switch(e.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&n.focus();break;case"img":u.src&&(n.src=u.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===e.memoizedState){var c=e.alternate;if(null!==c){var h=c.memoizedState;if(null!==h){var p=h.dehydrated;null!==p&&Be(p)}}}break;default:throw Error(o(163))}Ys||512&e.flags&&il(e)}catch(t){Cu(e,e.return,t)}}if(e===t){$s=null;break}if(null!==(n=e.sibling)){n.return=e.return,$s=n;break}$s=e.return}}function wl(t){for(;null!==$s;){var e=$s;if(e===t){$s=null;break}var n=e.sibling;if(null!==n){n.return=e.return,$s=n;break}$s=e.return}}function xl(t){for(;null!==$s;){var e=$s;try{switch(e.tag){case 0:case 11:case 15:var n=e.return;try{rl(4,e)}catch(t){Cu(e,n,t)}break;case 1:var r=e.stateNode;if("function"==typeof r.componentDidMount){var i=e.return;try{r.componentDidMount()}catch(t){Cu(e,i,t)}}var o=e.return;try{il(e)}catch(t){Cu(e,o,t)}break;case 5:var a=e.return;try{il(e)}catch(t){Cu(e,a,t)}}}catch(t){Cu(e,e.return,t)}if(e===t){$s=null;break}var s=e.sibling;if(null!==s){s.return=e.return,$s=s;break}$s=e.return}}var Sl,Cl=Math.ceil,El=b.ReactCurrentDispatcher,kl=b.ReactCurrentOwner,Al=b.ReactCurrentBatchConfig,Pl=0,Tl=null,Ml=null,Ol=0,Rl=0,Il=Ci(0),Ll=0,Fl=null,Nl=0,Dl=0,zl=0,Zl=null,jl=null,Gl=0,Bl=1/0,Ul=null,Vl=!1,ql=null,Wl=null,Hl=!1,Xl=null,Kl=0,Yl=0,Ql=null,$l=-1,Jl=0;function tu(){return 0!=(6&Pl)?Qt():-1!==$l?$l:$l=Qt()}function eu(t){return 0==(1&t.mode)?1:0!=(2&Pl)&&0!==Ol?Ol&-Ol:null!==mo.transition?(0===Jl&&(Jl=ge()),Jl):0!==(t=_e)?t:t=void 0===(t=window.event)?16:Ye(t.type)}function nu(t,e,n,r){if(50<Yl)throw Yl=0,Ql=null,Error(o(185));ye(t,n,r),0!=(2&Pl)&&t===Tl||(t===Tl&&(0==(2&Pl)&&(Dl|=n),4===Ll&&su(t,Ol)),ru(t,r),1===n&&0===Pl&&0==(1&e.mode)&&(Bl=Qt()+500,Zi&&Bi()))}function ru(t,e){var n=t.callbackNode;!function(t,e){for(var n=t.suspendedLanes,r=t.pingedLanes,i=t.expirationTimes,o=t.pendingLanes;0<o;){var a=31-ae(o),s=1<<a,l=i[a];-1===l?0!=(s&n)&&0==(s&r)||(i[a]=de(s,e)):l<=e&&(t.expiredLanes|=s),o&=~s}}(t,e);var r=pe(t,t===Tl?Ol:0);if(0===r)null!==n&&Xt(n),t.callbackNode=null,t.callbackPriority=0;else if(e=r&-r,t.callbackPriority!==e){if(null!=n&&Xt(n),1===e)0===t.tag?function(t){Zi=!0,Gi(t)}(lu.bind(null,t)):Gi(lu.bind(null,t)),ai((function(){0==(6&Pl)&&Bi()})),n=null;else{switch(be(r)){case 1:n=Jt;break;case 4:n=te;break;case 16:default:n=ee;break;case 536870912:n=re}n=Tu(n,iu.bind(null,t))}t.callbackPriority=e,t.callbackNode=n}}function iu(t,e){if($l=-1,Jl=0,0!=(6&Pl))throw Error(o(327));var n=t.callbackNode;if(xu()&&t.callbackNode!==n)return null;var r=pe(t,t===Tl?Ol:0);if(0===r)return null;if(0!=(30&r)||0!=(r&t.expiredLanes)||e)e=mu(t,r);else{e=r;var i=Pl;Pl|=2;var a=fu();for(Tl===t&&Ol===e||(Ul=null,Bl=Qt()+500,pu(t,e));;)try{vu();break}catch(e){du(t,e)}xo(),El.current=a,Pl=i,null!==Ml?e=0:(Tl=null,Ol=0,e=Ll)}if(0!==e){if(2===e&&0!==(i=fe(t))&&(r=i,e=ou(t,i)),1===e)throw n=Fl,pu(t,0),su(t,r),ru(t,Qt()),n;if(6===e)su(t,r);else{if(i=t.current.alternate,0==(30&r)&&!function(t){for(var e=t;;){if(16384&e.flags){var n=e.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!sr(o(),i))return!1}catch(t){return!1}}}if(n=e.child,16384&e.subtreeFlags&&null!==n)n.return=e,e=n;else{if(e===t)break;for(;null===e.sibling;){if(null===e.return||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}(i)&&(2===(e=mu(t,r))&&0!==(a=fe(t))&&(r=a,e=ou(t,a)),1===e))throw n=Fl,pu(t,0),su(t,r),ru(t,Qt()),n;switch(t.finishedWork=i,t.finishedLanes=r,e){case 0:case 1:throw Error(o(345));case 2:case 5:wu(t,jl,Ul);break;case 3:if(su(t,r),(130023424&r)===r&&10<(e=Gl+500-Qt())){if(0!==pe(t,0))break;if(((i=t.suspendedLanes)&r)!==r){tu(),t.pingedLanes|=t.suspendedLanes&i;break}t.timeoutHandle=ri(wu.bind(null,t,jl,Ul),e);break}wu(t,jl,Ul);break;case 4:if(su(t,r),(4194240&r)===r)break;for(e=t.eventTimes,i=-1;0<r;){var s=31-ae(r);a=1<<s,(s=e[s])>i&&(i=s),r&=~a}if(r=i,10<(r=(120>(r=Qt()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Cl(r/1960))-r)){t.timeoutHandle=ri(wu.bind(null,t,jl,Ul),r);break}wu(t,jl,Ul);break;default:throw Error(o(329))}}}return ru(t,Qt()),t.callbackNode===n?iu.bind(null,t):null}function ou(t,e){var n=Zl;return t.current.memoizedState.isDehydrated&&(pu(t,e).flags|=256),2!==(t=mu(t,e))&&(e=jl,jl=n,null!==e&&au(e)),t}function au(t){null===jl?jl=t:jl.push.apply(jl,t)}function su(t,e){for(e&=~zl,e&=~Dl,t.suspendedLanes|=e,t.pingedLanes&=~e,t=t.expirationTimes;0<e;){var n=31-ae(e),r=1<<n;t[n]=-1,e&=~r}}function lu(t){if(0!=(6&Pl))throw Error(o(327));xu();var e=pe(t,0);if(0==(1&e))return ru(t,Qt()),null;var n=mu(t,e);if(0!==t.tag&&2===n){var r=fe(t);0!==r&&(e=r,n=ou(t,r))}if(1===n)throw n=Fl,pu(t,0),su(t,e),ru(t,Qt()),n;if(6===n)throw Error(o(345));return t.finishedWork=t.current.alternate,t.finishedLanes=e,wu(t,jl,Ul),ru(t,Qt()),null}function uu(t,e){var n=Pl;Pl|=1;try{return t(e)}finally{0===(Pl=n)&&(Bl=Qt()+500,Zi&&Bi())}}function cu(t){null!==Xl&&0===Xl.tag&&0==(6&Pl)&&xu();var e=Pl;Pl|=1;var n=Al.transition,r=_e;try{if(Al.transition=null,_e=1,t)return t()}finally{_e=r,Al.transition=n,0==(6&(Pl=e))&&Bi()}}function hu(){Rl=Il.current,Ei(Il)}function pu(t,e){t.finishedWork=null,t.finishedLanes=0;var n=t.timeoutHandle;if(-1!==n&&(t.timeoutHandle=-1,ii(n)),null!==Ml)for(n=Ml.return;null!==n;){var r=n;switch(eo(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Ii();break;case 3:oa(),Ei(Ti),Ei(Pi),ha();break;case 5:sa(r);break;case 4:oa();break;case 13:case 19:Ei(la);break;case 10:So(r.type._context);break;case 22:case 23:hu()}n=n.return}if(Tl=t,Ml=t=Iu(t.current,null),Ol=Rl=e,Ll=0,Fl=null,zl=Dl=Nl=0,jl=Zl=null,null!==Ao){for(e=0;e<Ao.length;e++)if(null!==(r=(n=Ao[e]).interleaved)){n.interleaved=null;var i=r.next,o=n.pending;if(null!==o){var a=o.next;o.next=i,r.next=a}n.pending=r}Ao=null}return t}function du(t,e){for(;;){var n=Ml;try{if(xo(),pa.current=as,va){for(var r=ga.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}va=!1}if(fa=0,ya=ma=ga=null,_a=!1,ba=0,kl.current=null,null===n||null===n.return){Ll=1,Fl=e,Ml=null;break}t:{var a=t,s=n.return,l=n,u=e;if(e=Ol,l.flags|=32768,null!==u&&"object"==typeof u&&"function"==typeof u.then){var c=u,h=l,p=h.tag;if(0==(1&h.mode)&&(0===p||11===p||15===p)){var d=h.alternate;d?(h.updateQueue=d.updateQueue,h.memoizedState=d.memoizedState,h.lanes=d.lanes):(h.updateQueue=null,h.memoizedState=null)}var f=ys(s);if(null!==f){f.flags&=-257,vs(f,s,l,0,e),1&f.mode&&ms(a,c,e),u=c;var g=(e=f).updateQueue;if(null===g){var m=new Set;m.add(u),e.updateQueue=m}else g.add(u);break t}if(0==(1&e)){ms(a,c,e),gu();break t}u=Error(o(426))}else if(io&&1&l.mode){var y=ys(s);if(null!==y){0==(65536&y.flags)&&(y.flags|=256),vs(y,s,l,0,e),go(cs(u,l));break t}}a=u=cs(u,l),4!==Ll&&(Ll=2),null===Zl?Zl=[a]:Zl.push(a),a=s;do{switch(a.tag){case 3:a.flags|=65536,e&=-e,a.lanes|=e,Do(a,fs(0,u,e));break t;case 1:l=u;var v=a.type,_=a.stateNode;if(0==(128&a.flags)&&("function"==typeof v.getDerivedStateFromError||null!==_&&"function"==typeof _.componentDidCatch&&(null===Wl||!Wl.has(_)))){a.flags|=65536,e&=-e,a.lanes|=e,Do(a,gs(a,l,e));break t}}a=a.return}while(null!==a)}bu(n)}catch(t){e=t,Ml===n&&null!==n&&(Ml=n=n.return);continue}break}}function fu(){var t=El.current;return El.current=as,null===t?as:t}function gu(){0!==Ll&&3!==Ll&&2!==Ll||(Ll=4),null===Tl||0==(268435455&Nl)&&0==(268435455&Dl)||su(Tl,Ol)}function mu(t,e){var n=Pl;Pl|=2;var r=fu();for(Tl===t&&Ol===e||(Ul=null,pu(t,e));;)try{yu();break}catch(e){du(t,e)}if(xo(),Pl=n,El.current=r,null!==Ml)throw Error(o(261));return Tl=null,Ol=0,Ll}function yu(){for(;null!==Ml;)_u(Ml)}function vu(){for(;null!==Ml&&!Kt();)_u(Ml)}function _u(t){var e=Sl(t.alternate,t,Rl);t.memoizedProps=t.pendingProps,null===e?bu(t):Ml=e,kl.current=null}function bu(t){var e=t;do{var n=e.alternate;if(t=e.return,0==(32768&e.flags)){if(null!==(n=Hs(n,e,Rl)))return void(Ml=n)}else{if(null!==(n=Xs(n,e)))return n.flags&=32767,void(Ml=n);if(null===t)return Ll=6,void(Ml=null);t.flags|=32768,t.subtreeFlags=0,t.deletions=null}if(null!==(e=e.sibling))return void(Ml=e);Ml=e=t}while(null!==e);0===Ll&&(Ll=5)}function wu(t,e,n){var r=_e,i=Al.transition;try{Al.transition=null,_e=1,function(t,e,n,r){do{xu()}while(null!==Xl);if(0!=(6&Pl))throw Error(o(327));n=t.finishedWork;var i=t.finishedLanes;if(null===n)return null;if(t.finishedWork=null,t.finishedLanes=0,n===t.current)throw Error(o(177));t.callbackNode=null,t.callbackPriority=0;var a=n.lanes|n.childLanes;if(function(t,e){var n=t.pendingLanes&~e;t.pendingLanes=e,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=e,t.mutableReadLanes&=e,t.entangledLanes&=e,e=t.entanglements;var r=t.eventTimes;for(t=t.expirationTimes;0<n;){var i=31-ae(n),o=1<<i;e[i]=0,r[i]=-1,t[i]=-1,n&=~o}}(t,a),t===Tl&&(Ml=Tl=null,Ol=0),0==(2064&n.subtreeFlags)&&0==(2064&n.flags)||Hl||(Hl=!0,Tu(ee,(function(){return xu(),null}))),a=0!=(15990&n.flags),0!=(15990&n.subtreeFlags)||a){a=Al.transition,Al.transition=null;var s=_e;_e=1;var l=Pl;Pl|=4,kl.current=null,function(t,e){if(ti=Ve,dr(t=pr())){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else t:{var r=(n=(n=t.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch(t){n=null;break t}var s=0,l=-1,u=-1,c=0,h=0,p=t,d=null;e:for(;;){for(var f;p!==n||0!==i&&3!==p.nodeType||(l=s+i),p!==a||0!==r&&3!==p.nodeType||(u=s+r),3===p.nodeType&&(s+=p.nodeValue.length),null!==(f=p.firstChild);)d=p,p=f;for(;;){if(p===t)break e;if(d===n&&++c===i&&(l=s),d===a&&++h===r&&(u=s),null!==(f=p.nextSibling))break;d=(p=d).parentNode}p=f}n=-1===l||-1===u?null:{start:l,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(ei={focusedElem:t,selectionRange:n},Ve=!1,$s=e;null!==$s;)if(t=(e=$s).child,0!=(1028&e.subtreeFlags)&&null!==t)t.return=e,$s=t;else for(;null!==$s;){e=$s;try{var g=e.alternate;if(0!=(1024&e.flags))switch(e.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==g){var m=g.memoizedProps,y=g.memoizedState,v=e.stateNode,_=v.getSnapshotBeforeUpdate(e.elementType===e.type?m:yo(e.type,m),y);v.__reactInternalSnapshotBeforeUpdate=_}break;case 3:var b=e.stateNode.containerInfo;1===b.nodeType?b.textContent="":9===b.nodeType&&b.documentElement&&b.removeChild(b.documentElement);break;default:throw Error(o(163))}}catch(t){Cu(e,e.return,t)}if(null!==(t=e.sibling)){t.return=e.return,$s=t;break}$s=e.return}g=el,el=!1}(t,n),ml(n,t),fr(ei),Ve=!!ti,ei=ti=null,t.current=n,vl(n,t,i),Yt(),Pl=l,_e=s,Al.transition=a}else t.current=n;if(Hl&&(Hl=!1,Xl=t,Kl=i),0===(a=t.pendingLanes)&&(Wl=null),function(t){if(oe&&"function"==typeof oe.onCommitFiberRoot)try{oe.onCommitFiberRoot(ie,t,void 0,128==(128&t.current.flags))}catch(t){}}(n.stateNode),ru(t,Qt()),null!==e)for(r=t.onRecoverableError,n=0;n<e.length;n++)r((i=e[n]).value,{componentStack:i.stack,digest:i.digest});if(Vl)throw Vl=!1,t=ql,ql=null,t;0!=(1&Kl)&&0!==t.tag&&xu(),0!=(1&(a=t.pendingLanes))?t===Ql?Yl++:(Yl=0,Ql=t):Yl=0,Bi()}(t,e,n,r)}finally{Al.transition=i,_e=r}return null}function xu(){if(null!==Xl){var t=be(Kl),e=Al.transition,n=_e;try{if(Al.transition=null,_e=16>t?16:t,null===Xl)var r=!1;else{if(t=Xl,Xl=null,Kl=0,0!=(6&Pl))throw Error(o(331));var i=Pl;for(Pl|=4,$s=t.current;null!==$s;){var a=$s,s=a.child;if(0!=(16&$s.flags)){var l=a.deletions;if(null!==l){for(var u=0;u<l.length;u++){var c=l[u];for($s=c;null!==$s;){var h=$s;switch(h.tag){case 0:case 11:case 15:nl(8,h,a)}var p=h.child;if(null!==p)p.return=h,$s=p;else for(;null!==$s;){var d=(h=$s).sibling,f=h.return;if(ol(h),h===c){$s=null;break}if(null!==d){d.return=f,$s=d;break}$s=f}}}var g=a.alternate;if(null!==g){var m=g.child;if(null!==m){g.child=null;do{var y=m.sibling;m.sibling=null,m=y}while(null!==m)}}$s=a}}if(0!=(2064&a.subtreeFlags)&&null!==s)s.return=a,$s=s;else t:for(;null!==$s;){if(0!=(2048&(a=$s).flags))switch(a.tag){case 0:case 11:case 15:nl(9,a,a.return)}var v=a.sibling;if(null!==v){v.return=a.return,$s=v;break t}$s=a.return}}var _=t.current;for($s=_;null!==$s;){var b=(s=$s).child;if(0!=(2064&s.subtreeFlags)&&null!==b)b.return=s,$s=b;else t:for(s=_;null!==$s;){if(0!=(2048&(l=$s).flags))try{switch(l.tag){case 0:case 11:case 15:rl(9,l)}}catch(t){Cu(l,l.return,t)}if(l===s){$s=null;break t}var w=l.sibling;if(null!==w){w.return=l.return,$s=w;break t}$s=l.return}}if(Pl=i,Bi(),oe&&"function"==typeof oe.onPostCommitFiberRoot)try{oe.onPostCommitFiberRoot(ie,t)}catch(t){}r=!0}return r}finally{_e=n,Al.transition=e}}return!1}function Su(t,e,n){t=Fo(t,e=fs(0,e=cs(n,e),1),1),e=tu(),null!==t&&(ye(t,1,e),ru(t,e))}function Cu(t,e,n){if(3===t.tag)Su(t,t,n);else for(;null!==e;){if(3===e.tag){Su(e,t,n);break}if(1===e.tag){var r=e.stateNode;if("function"==typeof e.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Wl||!Wl.has(r))){e=Fo(e,t=gs(e,t=cs(n,t),1),1),t=tu(),null!==e&&(ye(e,1,t),ru(e,t));break}}e=e.return}}function Eu(t,e,n){var r=t.pingCache;null!==r&&r.delete(e),e=tu(),t.pingedLanes|=t.suspendedLanes&n,Tl===t&&(Ol&n)===n&&(4===Ll||3===Ll&&(130023424&Ol)===Ol&&500>Qt()-Gl?pu(t,0):zl|=n),ru(t,e)}function ku(t,e){0===e&&(0==(1&t.mode)?e=1:(e=ce,0==(130023424&(ce<<=1))&&(ce=4194304)));var n=tu();null!==(t=Mo(t,e))&&(ye(t,e,n),ru(t,n))}function Au(t){var e=t.memoizedState,n=0;null!==e&&(n=e.retryLane),ku(t,n)}function Pu(t,e){var n=0;switch(t.tag){case 13:var r=t.stateNode,i=t.memoizedState;null!==i&&(n=i.retryLane);break;case 19:r=t.stateNode;break;default:throw Error(o(314))}null!==r&&r.delete(e),ku(t,n)}function Tu(t,e){return Ht(t,e)}function Mu(t,e,n,r){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ou(t,e,n,r){return new Mu(t,e,n,r)}function Ru(t){return!(!(t=t.prototype)||!t.isReactComponent)}function Iu(t,e){var n=t.alternate;return null===n?((n=Ou(t.tag,e,t.key,t.mode)).elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&t.flags,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n}function Lu(t,e,n,r,i,a){var s=2;if(r=t,"function"==typeof t)Ru(t)&&(s=1);else if("string"==typeof t)s=5;else t:switch(t){case S:return Fu(n.children,i,a,e);case C:s=8,i|=8;break;case E:return(t=Ou(12,n,e,2|i)).elementType=E,t.lanes=a,t;case T:return(t=Ou(13,n,e,i)).elementType=T,t.lanes=a,t;case M:return(t=Ou(19,n,e,i)).elementType=M,t.lanes=a,t;case I:return Nu(n,i,a,e);default:if("object"==typeof t&&null!==t)switch(t.$$typeof){case k:s=10;break t;case A:s=9;break t;case P:s=11;break t;case O:s=14;break t;case R:s=16,r=null;break t}throw Error(o(130,null==t?t:typeof t,""))}return(e=Ou(s,n,e,i)).elementType=t,e.type=r,e.lanes=a,e}function Fu(t,e,n,r){return(t=Ou(7,t,r,e)).lanes=n,t}function Nu(t,e,n,r){return(t=Ou(22,t,r,e)).elementType=I,t.lanes=n,t.stateNode={isHidden:!1},t}function Du(t,e,n){return(t=Ou(6,t,null,e)).lanes=n,t}function zu(t,e,n){return(e=Ou(4,null!==t.children?t.children:[],t.key,e)).lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function Zu(t,e,n,r,i){this.tag=e,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=me(0),this.expirationTimes=me(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=me(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function ju(t,e,n,r,i,o,a,s,l){return t=new Zu(t,e,n,s,l),1===e?(e=1,!0===o&&(e|=8)):e=0,o=Ou(3,null,null,e),t.current=o,o.stateNode=t,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ro(o),t}function Gu(t,e,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:x,key:null==r?null:""+r,children:t,containerInfo:e,implementation:n}}function Bu(t){if(!t)return Ai;t:{if(Bt(t=t._reactInternals)!==t||1!==t.tag)throw Error(o(170));var e=t;do{switch(e.tag){case 3:e=e.stateNode.context;break t;case 1:if(Ri(e.type)){e=e.stateNode.__reactInternalMemoizedMergedChildContext;break t}}e=e.return}while(null!==e);throw Error(o(171))}if(1===t.tag){var n=t.type;if(Ri(n))return Fi(t,n,e)}return e}function Uu(t,e,n,r,i,o,a,s,l){return(t=ju(n,r,!0,t,0,o,0,s,l)).context=Bu(null),n=t.current,(o=Lo(r=tu(),i=eu(n))).callback=null!=e?e:null,Fo(n,o,i),t.current.lanes=i,ye(t,i,r),ru(t,r),t}function Vu(t,e,n,r){var i=e.current,o=tu(),a=eu(i);return n=Bu(n),null===e.context?e.context=n:e.pendingContext=n,(e=Lo(o,a)).payload={element:t},null!==(r=void 0===r?null:r)&&(e.callback=r),null!==(t=Fo(i,e,a))&&(nu(t,i,a,o),No(t,i,a)),a}function qu(t){return(t=t.current).child?(t.child.tag,t.child.stateNode):null}function Wu(t,e){if(null!==(t=t.memoizedState)&&null!==t.dehydrated){var n=t.retryLane;t.retryLane=0!==n&&n<e?n:e}}function Hu(t,e){Wu(t,e),(t=t.alternate)&&Wu(t,e)}Sl=function(t,e,n){if(null!==t)if(t.memoizedProps!==e.pendingProps||Ti.current)bs=!0;else{if(0==(t.lanes&n)&&0==(128&e.flags))return bs=!1,function(t,e,n){switch(e.tag){case 3:Ms(e),fo();break;case 5:aa(e);break;case 1:Ri(e.type)&&Ni(e);break;case 4:ia(e,e.stateNode.containerInfo);break;case 10:var r=e.type._context,i=e.memoizedProps.value;ki(vo,r._currentValue),r._currentValue=i;break;case 13:if(null!==(r=e.memoizedState))return null!==r.dehydrated?(ki(la,1&la.current),e.flags|=128,null):0!=(n&e.child.childLanes)?Ds(t,e,n):(ki(la,1&la.current),null!==(t=Vs(t,e,n))?t.sibling:null);ki(la,1&la.current);break;case 19:if(r=0!=(n&e.childLanes),0!=(128&t.flags)){if(r)return Bs(t,e,n);e.flags|=128}if(null!==(i=e.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),ki(la,la.current),r)break;return null;case 22:case 23:return e.lanes=0,Es(t,e,n)}return Vs(t,e,n)}(t,e,n);bs=0!=(131072&t.flags)}else bs=!1,io&&0!=(1048576&e.flags)&&Ji(e,Wi,e.index);switch(e.lanes=0,e.tag){case 2:var r=e.type;Us(t,e),t=e.pendingProps;var i=Oi(e,Pi.current);Eo(e,n),i=Ca(null,e,r,t,i,n);var a=Ea();return e.flags|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof?(e.tag=1,e.memoizedState=null,e.updateQueue=null,Ri(r)?(a=!0,Ni(e)):a=!1,e.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,Ro(e),i.updater=Bo,e.stateNode=i,i._reactInternals=e,Wo(e,r,t,n),e=Ts(null,e,r,!0,a,n)):(e.tag=0,io&&a&&to(e),ws(null,e,i,n),e=e.child),e;case 16:r=e.elementType;t:{switch(Us(t,e),t=e.pendingProps,r=(i=r._init)(r._payload),e.type=r,i=e.tag=function(t){if("function"==typeof t)return Ru(t)?1:0;if(null!=t){if((t=t.$$typeof)===P)return 11;if(t===O)return 14}return 2}(r),t=yo(r,t),i){case 0:e=As(null,e,r,t,n);break t;case 1:e=Ps(null,e,r,t,n);break t;case 11:e=xs(null,e,r,t,n);break t;case 14:e=Ss(null,e,r,yo(r.type,t),n);break t}throw Error(o(306,r,""))}return e;case 0:return r=e.type,i=e.pendingProps,As(t,e,r,i=e.elementType===r?i:yo(r,i),n);case 1:return r=e.type,i=e.pendingProps,Ps(t,e,r,i=e.elementType===r?i:yo(r,i),n);case 3:t:{if(Ms(e),null===t)throw Error(o(387));r=e.pendingProps,i=(a=e.memoizedState).element,Io(t,e),zo(e,r,null,n);var s=e.memoizedState;if(r=s.element,a.isDehydrated){if(a={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},e.updateQueue.baseState=a,e.memoizedState=a,256&e.flags){e=Os(t,e,r,n,i=cs(Error(o(423)),e));break t}if(r!==i){e=Os(t,e,r,n,i=cs(Error(o(424)),e));break t}for(ro=ui(e.stateNode.containerInfo.firstChild),no=e,io=!0,oo=null,n=$o(e,null,r,n),e.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(fo(),r===i){e=Vs(t,e,n);break t}ws(t,e,r,n)}e=e.child}return e;case 5:return aa(e),null===t&&uo(e),r=e.type,i=e.pendingProps,a=null!==t?t.memoizedProps:null,s=i.children,ni(r,i)?s=null:null!==a&&ni(r,a)&&(e.flags|=32),ks(t,e),ws(t,e,s,n),e.child;case 6:return null===t&&uo(e),null;case 13:return Ds(t,e,n);case 4:return ia(e,e.stateNode.containerInfo),r=e.pendingProps,null===t?e.child=Qo(e,null,r,n):ws(t,e,r,n),e.child;case 11:return r=e.type,i=e.pendingProps,xs(t,e,r,i=e.elementType===r?i:yo(r,i),n);case 7:return ws(t,e,e.pendingProps,n),e.child;case 8:case 12:return ws(t,e,e.pendingProps.children,n),e.child;case 10:t:{if(r=e.type._context,i=e.pendingProps,a=e.memoizedProps,s=i.value,ki(vo,r._currentValue),r._currentValue=s,null!==a)if(sr(a.value,s)){if(a.children===i.children&&!Ti.current){e=Vs(t,e,n);break t}}else for(null!==(a=e.child)&&(a.return=e);null!==a;){var l=a.dependencies;if(null!==l){s=a.child;for(var u=l.firstContext;null!==u;){if(u.context===r){if(1===a.tag){(u=Lo(-1,n&-n)).tag=2;var c=a.updateQueue;if(null!==c){var h=(c=c.shared).pending;null===h?u.next=u:(u.next=h.next,h.next=u),c.pending=u}}a.lanes|=n,null!==(u=a.alternate)&&(u.lanes|=n),Co(a.return,n,e),l.lanes|=n;break}u=u.next}}else if(10===a.tag)s=a.type===e.type?null:a.child;else if(18===a.tag){if(null===(s=a.return))throw Error(o(341));s.lanes|=n,null!==(l=s.alternate)&&(l.lanes|=n),Co(s,n,e),s=a.sibling}else s=a.child;if(null!==s)s.return=a;else for(s=a;null!==s;){if(s===e){s=null;break}if(null!==(a=s.sibling)){a.return=s.return,s=a;break}s=s.return}a=s}ws(t,e,i.children,n),e=e.child}return e;case 9:return i=e.type,r=e.pendingProps.children,Eo(e,n),r=r(i=ko(i)),e.flags|=1,ws(t,e,r,n),e.child;case 14:return i=yo(r=e.type,e.pendingProps),Ss(t,e,r,i=yo(r.type,i),n);case 15:return Cs(t,e,e.type,e.pendingProps,n);case 17:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:yo(r,i),Us(t,e),e.tag=1,Ri(r)?(t=!0,Ni(e)):t=!1,Eo(e,n),Vo(e,r,i),Wo(e,r,i,n),Ts(null,e,r,!0,t,n);case 19:return Bs(t,e,n);case 22:return Es(t,e,n)}throw Error(o(156,e.tag))};var Xu="function"==typeof reportError?reportError:function(t){console.error(t)};function Ku(t){this._internalRoot=t}function Yu(t){this._internalRoot=t}function Qu(t){return!(!t||1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType)}function $u(t){return!(!t||1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType&&(8!==t.nodeType||" react-mount-point-unstable "!==t.nodeValue))}function Ju(){}function tc(t,e,n,r,i){var o=n._reactRootContainer;if(o){var a=o;if("function"==typeof i){var s=i;i=function(){var t=qu(a);s.call(t)}}Vu(e,a,t,i)}else a=function(t,e,n,r,i){if(i){if("function"==typeof r){var o=r;r=function(){var t=qu(a);o.call(t)}}var a=Uu(e,r,t,0,null,!1,0,"",Ju);return t._reactRootContainer=a,t[fi]=a.current,Br(8===t.nodeType?t.parentNode:t),cu(),a}for(;i=t.lastChild;)t.removeChild(i);if("function"==typeof r){var s=r;r=function(){var t=qu(l);s.call(t)}}var l=ju(t,0,!1,null,0,!1,0,"",Ju);return t._reactRootContainer=l,t[fi]=l.current,Br(8===t.nodeType?t.parentNode:t),cu((function(){Vu(e,l,n,r)})),l}(n,e,t,i,r);return qu(a)}Yu.prototype.render=Ku.prototype.render=function(t){var e=this._internalRoot;if(null===e)throw Error(o(409));Vu(t,e,null,null)},Yu.prototype.unmount=Ku.prototype.unmount=function(){var t=this._internalRoot;if(null!==t){this._internalRoot=null;var e=t.containerInfo;cu((function(){Vu(null,t,null,null)})),e[fi]=null}},Yu.prototype.unstable_scheduleHydration=function(t){if(t){var e=Ce();t={blockedOn:null,target:t,priority:e};for(var n=0;n<Ie.length&&0!==e&&e<Ie[n].priority;n++);Ie.splice(n,0,t),0===n&&De(t)}},we=function(t){switch(t.tag){case 3:var e=t.stateNode;if(e.current.memoizedState.isDehydrated){var n=he(e.pendingLanes);0!==n&&(ve(e,1|n),ru(e,Qt()),0==(6&Pl)&&(Bl=Qt()+500,Bi()))}break;case 13:cu((function(){var e=Mo(t,1);if(null!==e){var n=tu();nu(e,t,1,n)}})),Hu(t,1)}},xe=function(t){if(13===t.tag){var e=Mo(t,134217728);null!==e&&nu(e,t,134217728,tu()),Hu(t,134217728)}},Se=function(t){if(13===t.tag){var e=eu(t),n=Mo(t,e);null!==n&&nu(n,t,e,tu()),Hu(t,e)}},Ce=function(){return _e},Ee=function(t,e){var n=_e;try{return _e=t,e()}finally{_e=n}},xt=function(t,e,n){switch(e){case"input":if($(t,n),e=n.name,"radio"===n.type&&null!=e){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+e)+'][type="radio"]'),e=0;e<n.length;e++){var r=n[e];if(r!==t&&r.form===t.form){var i=wi(r);if(!i)throw Error(o(90));H(r),$(r,i)}}}break;case"textarea":ot(t,n);break;case"select":null!=(e=n.value)&&nt(t,!!n.multiple,e,!1)}},Pt=uu,Tt=cu;var ec={usingClientEntryPoint:!1,Events:[_i,bi,wi,kt,At,uu]},nc={findFiberByHostInstance:vi,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},rc={bundleType:nc.bundleType,version:nc.version,rendererPackageName:nc.rendererPackageName,rendererConfig:nc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:b.ReactCurrentDispatcher,findHostInstanceByFiber:function(t){return null===(t=qt(t))?null:t.stateNode},findFiberByHostInstance:nc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var ic=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ic.isDisabled&&ic.supportsFiber)try{ie=ic.inject(rc),oe=ic}catch(ct){}}e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ec,e.createPortal=function(t,e){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Qu(e))throw Error(o(200));return Gu(t,e,null,n)},e.createRoot=function(t,e){if(!Qu(t))throw Error(o(299));var n=!1,r="",i=Xu;return null!=e&&(!0===e.unstable_strictMode&&(n=!0),void 0!==e.identifierPrefix&&(r=e.identifierPrefix),void 0!==e.onRecoverableError&&(i=e.onRecoverableError)),e=ju(t,1,!1,null,0,n,0,r,i),t[fi]=e.current,Br(8===t.nodeType?t.parentNode:t),new Ku(e)},e.findDOMNode=function(t){if(null==t)return null;if(1===t.nodeType)return t;var e=t._reactInternals;if(void 0===e){if("function"==typeof t.render)throw Error(o(188));throw t=Object.keys(t).join(","),Error(o(268,t))}return null===(t=qt(e))?null:t.stateNode},e.flushSync=function(t){return cu(t)},e.hydrate=function(t,e,n){if(!$u(e))throw Error(o(200));return tc(null,t,e,!0,n)},e.hydrateRoot=function(t,e,n){if(!Qu(t))throw Error(o(405));var r=null!=n&&n.hydratedSources||null,i=!1,a="",s=Xu;if(null!=n&&(!0===n.unstable_strictMode&&(i=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onRecoverableError&&(s=n.onRecoverableError)),e=Uu(e,null,t,1,null!=n?n:null,i,0,a,s),t[fi]=e.current,Br(t),r)for(t=0;t<r.length;t++)i=(i=(n=r[t])._getVersion)(n._source),null==e.mutableSourceEagerHydrationData?e.mutableSourceEagerHydrationData=[n,i]:e.mutableSourceEagerHydrationData.push(n,i);return new Yu(e)},e.render=function(t,e,n){if(!$u(e))throw Error(o(200));return tc(null,t,e,!1,n)},e.unmountComponentAtNode=function(t){if(!$u(t))throw Error(o(40));return!!t._reactRootContainer&&(cu((function(){tc(null,null,t,!1,(function(){t._reactRootContainer=null,t[fi]=null}))})),!0)},e.unstable_batchedUpdates=uu,e.unstable_renderSubtreeIntoContainer=function(t,e,n,r){if(!$u(n))throw Error(o(200));if(null==t||void 0===t._reactInternals)throw Error(o(38));return tc(t,e,n,!1,r)},e.version="18.2.0-next-9e3b772b8-20220608"},4470:(t,e,n)=>{"use strict";var r=n(3961);e.createRoot=r.createRoot,e.hydrateRoot=r.hydrateRoot},3961:(t,e,n)=>{"use strict";!function t(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(t){console.error(t)}}(),t.exports=n(7799)},3218:(t,e)=>{"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),d=Symbol.iterator,f={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,m={};function y(t,e,n){this.props=t,this.context=e,this.refs=m,this.updater=n||f}function v(){}function _(t,e,n){this.props=t,this.context=e,this.refs=m,this.updater=n||f}y.prototype.isReactComponent={},y.prototype.setState=function(t,e){if("object"!=typeof t&&"function"!=typeof t&&null!=t)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")},y.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")},v.prototype=y.prototype;var b=_.prototype=new v;b.constructor=_,g(b,y.prototype),b.isPureReactComponent=!0;var w=Array.isArray,x=Object.prototype.hasOwnProperty,S={current:null},C={key:!0,ref:!0,__self:!0,__source:!0};function E(t,e,r){var i,o={},a=null,s=null;if(null!=e)for(i in void 0!==e.ref&&(s=e.ref),void 0!==e.key&&(a=""+e.key),e)x.call(e,i)&&!C.hasOwnProperty(i)&&(o[i]=e[i]);var l=arguments.length-2;if(1===l)o.children=r;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];o.children=u}if(t&&t.defaultProps)for(i in l=t.defaultProps)void 0===o[i]&&(o[i]=l[i]);return{$$typeof:n,type:t,key:a,ref:s,props:o,_owner:S.current}}function k(t){return"object"==typeof t&&null!==t&&t.$$typeof===n}var A=/\/+/g;function P(t,e){return"object"==typeof t&&null!==t&&null!=t.key?function(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,(function(t){return e[t]}))}(""+t.key):e.toString(36)}function T(t,e,i,o,a){var s=typeof t;"undefined"!==s&&"boolean"!==s||(t=null);var l=!1;if(null===t)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(t.$$typeof){case n:case r:l=!0}}if(l)return a=a(l=t),t=""===o?"."+P(l,0):o,w(a)?(i="",null!=t&&(i=t.replace(A,"$&/")+"/"),T(a,e,i,"",(function(t){return t}))):null!=a&&(k(a)&&(a=function(t,e){return{$$typeof:n,type:t.type,key:e,ref:t.ref,props:t.props,_owner:t._owner}}(a,i+(!a.key||l&&l.key===a.key?"":(""+a.key).replace(A,"$&/")+"/")+t)),e.push(a)),1;if(l=0,o=""===o?".":o+":",w(t))for(var u=0;u<t.length;u++){var c=o+P(s=t[u],u);l+=T(s,e,i,c,a)}else if(c=function(t){return null===t||"object"!=typeof t?null:"function"==typeof(t=d&&t[d]||t["@@iterator"])?t:null}(t),"function"==typeof c)for(t=c.call(t),u=0;!(s=t.next()).done;)l+=T(s=s.value,e,i,c=o+P(s,u++),a);else if("object"===s)throw e=String(t),Error("Objects are not valid as a React child (found: "+("[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.");return l}function M(t,e,n){if(null==t)return t;var r=[],i=0;return T(t,r,"","",(function(t){return e.call(n,t,i++)})),r}function O(t){if(-1===t._status){var e=t._result;(e=e()).then((function(e){0!==t._status&&-1!==t._status||(t._status=1,t._result=e)}),(function(e){0!==t._status&&-1!==t._status||(t._status=2,t._result=e)})),-1===t._status&&(t._status=0,t._result=e)}if(1===t._status)return t._result.default;throw t._result}var R={current:null},I={transition:null},L={ReactCurrentDispatcher:R,ReactCurrentBatchConfig:I,ReactCurrentOwner:S};e.Children={map:M,forEach:function(t,e,n){M(t,(function(){e.apply(this,arguments)}),n)},count:function(t){var e=0;return M(t,(function(){e++})),e},toArray:function(t){return M(t,(function(t){return t}))||[]},only:function(t){if(!k(t))throw Error("React.Children.only expected to receive a single React element child.");return t}},e.Component=y,e.Fragment=i,e.Profiler=a,e.PureComponent=_,e.StrictMode=o,e.Suspense=c,e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=L,e.cloneElement=function(t,e,r){if(null==t)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var i=g({},t.props),o=t.key,a=t.ref,s=t._owner;if(null!=e){if(void 0!==e.ref&&(a=e.ref,s=S.current),void 0!==e.key&&(o=""+e.key),t.type&&t.type.defaultProps)var l=t.type.defaultProps;for(u in e)x.call(e,u)&&!C.hasOwnProperty(u)&&(i[u]=void 0===e[u]&&void 0!==l?l[u]:e[u])}var u=arguments.length-2;if(1===u)i.children=r;else if(1<u){l=Array(u);for(var c=0;c<u;c++)l[c]=arguments[c+2];i.children=l}return{$$typeof:n,type:t.type,key:o,ref:a,props:i,_owner:s}},e.createContext=function(t){return(t={$$typeof:l,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:t},t.Consumer=t},e.createElement=E,e.createFactory=function(t){var e=E.bind(null,t);return e.type=t,e},e.createRef=function(){return{current:null}},e.forwardRef=function(t){return{$$typeof:u,render:t}},e.isValidElement=k,e.lazy=function(t){return{$$typeof:p,_payload:{_status:-1,_result:t},_init:O}},e.memo=function(t,e){return{$$typeof:h,type:t,compare:void 0===e?null:e}},e.startTransition=function(t){var e=I.transition;I.transition={};try{t()}finally{I.transition=e}},e.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},e.useCallback=function(t,e){return R.current.useCallback(t,e)},e.useContext=function(t){return R.current.useContext(t)},e.useDebugValue=function(){},e.useDeferredValue=function(t){return R.current.useDeferredValue(t)},e.useEffect=function(t,e){return R.current.useEffect(t,e)},e.useId=function(){return R.current.useId()},e.useImperativeHandle=function(t,e,n){return R.current.useImperativeHandle(t,e,n)},e.useInsertionEffect=function(t,e){return R.current.useInsertionEffect(t,e)},e.useLayoutEffect=function(t,e){return R.current.useLayoutEffect(t,e)},e.useMemo=function(t,e){return R.current.useMemo(t,e)},e.useReducer=function(t,e,n){return R.current.useReducer(t,e,n)},e.useRef=function(t){return R.current.useRef(t)},e.useState=function(t){return R.current.useState(t)},e.useSyncExternalStore=function(t,e,n){return R.current.useSyncExternalStore(t,e,n)},e.useTransition=function(){return R.current.useTransition()},e.version="18.2.0"},9526:(t,e,n)=>{"use strict";t.exports=n(3218)},1196:(t,e)=>{"use strict";function n(t,e){var n=t.length;t.push(e);t:for(;0<n;){var r=n-1>>>1,i=t[r];if(!(0<o(i,e)))break t;t[r]=e,t[n]=i,n=r}}function r(t){return 0===t.length?null:t[0]}function i(t){if(0===t.length)return null;var e=t[0],n=t.pop();if(n!==e){t[0]=n;t:for(var r=0,i=t.length,a=i>>>1;r<a;){var s=2*(r+1)-1,l=t[s],u=s+1,c=t[u];if(0>o(l,n))u<i&&0>o(c,l)?(t[r]=c,t[u]=n,r=u):(t[r]=l,t[s]=n,r=s);else{if(!(u<i&&0>o(c,n)))break t;t[r]=c,t[u]=n,r=u}}}return e}function o(t,e){var n=t.sortIndex-e.sortIndex;return 0!==n?n:t.id-e.id}if("object"==typeof performance&&"function"==typeof performance.now){var a=performance;e.unstable_now=function(){return a.now()}}else{var s=Date,l=s.now();e.unstable_now=function(){return s.now()-l}}var u=[],c=[],h=1,p=null,d=3,f=!1,g=!1,m=!1,y="function"==typeof setTimeout?setTimeout:null,v="function"==typeof clearTimeout?clearTimeout:null,_="undefined"!=typeof setImmediate?setImmediate:null;function b(t){for(var e=r(c);null!==e;){if(null===e.callback)i(c);else{if(!(e.startTime<=t))break;i(c),e.sortIndex=e.expirationTime,n(u,e)}e=r(c)}}function w(t){if(m=!1,b(t),!g)if(null!==r(u))g=!0,I(x);else{var e=r(c);null!==e&&L(w,e.startTime-t)}}function x(t,n){g=!1,m&&(m=!1,v(k),k=-1),f=!0;var o=d;try{for(b(n),p=r(u);null!==p&&(!(p.expirationTime>n)||t&&!T());){var a=p.callback;if("function"==typeof a){p.callback=null,d=p.priorityLevel;var s=a(p.expirationTime<=n);n=e.unstable_now(),"function"==typeof s?p.callback=s:p===r(u)&&i(u),b(n)}else i(u);p=r(u)}if(null!==p)var l=!0;else{var h=r(c);null!==h&&L(w,h.startTime-n),l=!1}return l}finally{p=null,d=o,f=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var S,C=!1,E=null,k=-1,A=5,P=-1;function T(){return!(e.unstable_now()-P<A)}function M(){if(null!==E){var t=e.unstable_now();P=t;var n=!0;try{n=E(!0,t)}finally{n?S():(C=!1,E=null)}}else C=!1}if("function"==typeof _)S=function(){_(M)};else if("undefined"!=typeof MessageChannel){var O=new MessageChannel,R=O.port2;O.port1.onmessage=M,S=function(){R.postMessage(null)}}else S=function(){y(M,0)};function I(t){E=t,C||(C=!0,S())}function L(t,n){k=y((function(){t(e.unstable_now())}),n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(t){t.callback=null},e.unstable_continueExecution=function(){g||f||(g=!0,I(x))},e.unstable_forceFrameRate=function(t){0>t||125<t?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):A=0<t?Math.floor(1e3/t):5},e.unstable_getCurrentPriorityLevel=function(){return d},e.unstable_getFirstCallbackNode=function(){return r(u)},e.unstable_next=function(t){switch(d){case 1:case 2:case 3:var e=3;break;default:e=d}var n=d;d=e;try{return t()}finally{d=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(t,e){switch(t){case 1:case 2:case 3:case 4:case 5:break;default:t=3}var n=d;d=t;try{return e()}finally{d=n}},e.unstable_scheduleCallback=function(t,i,o){var a=e.unstable_now();switch(o="object"==typeof o&&null!==o&&"number"==typeof(o=o.delay)&&0<o?a+o:a,t){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return t={id:h++,callback:i,priorityLevel:t,startTime:o,expirationTime:s=o+s,sortIndex:-1},o>a?(t.sortIndex=o,n(c,t),null===r(u)&&t===r(c)&&(m?(v(k),k=-1):m=!0,L(w,o-a))):(t.sortIndex=s,n(u,t),g||f||(g=!0,I(x))),t},e.unstable_shouldYield=T,e.unstable_wrapCallback=function(t){var e=d;return function(){var n=d;d=e;try{return t.apply(this,arguments)}finally{d=n}}}},2851:(t,e,n)=>{"use strict";t.exports=n(1196)},5701:t=>{"use strict";var e=[];function n(t){for(var n=-1,r=0;r<e.length;r++)if(e[r].identifier===t){n=r;break}return n}function r(t,r){for(var o={},a=[],s=0;s<t.length;s++){var l=t[s],u=r.base?l[0]+r.base:l[0],c=o[u]||0,h="".concat(u," ").concat(c);o[u]=c+1;var p=n(h),d={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==p)e[p].references++,e[p].updater(d);else{var f=i(d,r);r.byIndex=s,e.splice(s,0,{identifier:h,updater:f,references:1})}a.push(h)}return a}function i(t,e){var n=e.domAPI(e);return n.update(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;n.update(t=e)}else n.remove()}}t.exports=function(t,i){var o=r(t=t||[],i=i||{});return function(t){t=t||[];for(var a=0;a<o.length;a++){var s=n(o[a]);e[s].references--}for(var l=r(t,i),u=0;u<o.length;u++){var c=n(o[u]);0===e[c].references&&(e[c].updater(),e.splice(c,1))}o=l}}},6080:t=>{"use strict";var e={};t.exports=function(t,n){var r=function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}e[t]=n}return e[t]}(t);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},7182:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},6850:(t,e,n)=>{"use strict";t.exports=function(t){var e=n.nc;e&&t.setAttribute("nonce",e)}},8236:t=>{"use strict";t.exports=function(t){var e=t.insertStyleElement(t);return{update:function(n){!function(t,e,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var i=void 0!==n.layer;i&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,i&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var o=n.sourceMap;o&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),e.styleTagTransform(r,t,e.options)}(e,t,n)},remove:function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(e)}}}},9213:t=>{"use strict";t.exports=function(t,e){if(e.styleSheet)e.styleSheet.cssText=t;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(t))}}},3940:(t,e,n)=>{"use strict";n.r(e),n.d(e,{__assign:()=>o,__asyncDelegator:()=>w,__asyncGenerator:()=>b,__asyncValues:()=>x,__await:()=>_,__awaiter:()=>c,__classPrivateFieldGet:()=>A,__classPrivateFieldIn:()=>T,__classPrivateFieldSet:()=>P,__createBinding:()=>p,__decorate:()=>s,__exportStar:()=>d,__extends:()=>i,__generator:()=>h,__importDefault:()=>k,__importStar:()=>E,__makeTemplateObject:()=>S,__metadata:()=>u,__param:()=>l,__read:()=>g,__rest:()=>a,__spread:()=>m,__spreadArray:()=>v,__spreadArrays:()=>y,__values:()=>f});var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)};function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var o=function(){return o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},o.apply(this,arguments)};function a(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}function s(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a}function l(t,e){return function(n,r){e(n,r,t)}}function u(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function c(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{l(r.next(t))}catch(t){o(t)}}function s(t){try{l(r.throw(t))}catch(t){o(t)}}function l(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((r=r.apply(t,e||[])).next())}))}function h(t,e){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(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(t){o=[6,t],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}var p=Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]};function d(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||p(e,t,n)}function f(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function g(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function m(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(g(arguments[e]));return t}function y(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}function v(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))}function _(t){return this instanceof _?(this.v=t,this):new _(t)}function b(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(t,e||[]),o=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(t){i[t]&&(r[t]=function(e){return new Promise((function(n,r){o.push([t,e,n,r])>1||s(t,e)}))})}function s(t,e){try{(n=i[t](e)).value instanceof _?Promise.resolve(n.value.v).then(l,u):c(o[0][2],n)}catch(t){c(o[0][3],t)}var n}function l(t){s("next",t)}function u(t){s("throw",t)}function c(t,e){t(e),o.shift(),o.length&&s(o[0][0],o[0][1])}}function w(t){var e,n;return e={},r("next"),r("throw",(function(t){throw t})),r("return"),e[Symbol.iterator]=function(){return this},e;function r(r,i){e[r]=t[r]?function(e){return(n=!n)?{value:_(t[r](e)),done:"return"===r}:i?i(e):e}:i}}function x(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=f(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(n){e[n]=t[n]&&function(e){return new Promise((function(r,i){!function(t,e,n,r){Promise.resolve(r).then((function(e){t({value:e,done:n})}),e)}(r,i,(e=t[n](e)).done,e.value)}))}}}function S(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}var C=Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e};function E(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&p(e,t,n);return C(e,t),e}function k(t){return t&&t.__esModule?t:{default:t}}function A(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)}function P(t,e,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(t,n):i?i.value=n:e.set(t,n),n}function T(t,e){if(null===e||"object"!=typeof e&&"function"!=typeof e)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof t?e===t:t.has(e)}},3428:t=>{function e(t,e){const n=new RegExp(e,"g"),r=t.match(n);return r?r.length:0}t.exports=e,t.exports.default=e},1063:(t,e,n)=>{const r=n(9946),i=n(2273),o=n(3428);function a(t,e,n){const a=n&&n.debug||!1,s=!(n&&!1===typeof n.nested),l=n&&n.startIndex||0;a&&console.log("[xml-utils] starting findTagByName with",e," and ",n);const u=r(t,`<${e}[ >/]`,l);if(a&&console.log("[xml-utils] start:",u),-1===u)return;const c=t.slice(u+e.length);let h=i(c,"^[^<]*[ /]>",0);const p=-1!==h&&"/"===c[h-1];if(a&&console.log("[xml-utils] selfClosing:",p),!1===p)if(s){let t=0,n=1,r=0;for(;-1!==(h=i(c,"[ /]"+e+">",t));){const i=c.substring(t,h+1);if(n+=o(i,"<"+e),r+=o(i,"/"+e+">"),r>=n)break;t=h}}else h=i(c,"[ /]"+e+">",0);const d=u+e.length+h+1;if(a&&console.log("[xml-utils] end:",d),-1===d)return;const f=t.slice(u,d);let g;return g=p?null:f.slice(f.indexOf(">")+1,f.lastIndexOf("<")),{inner:g,outer:f,start:u,end:d}}t.exports=a,t.exports.default=a},6054:(t,e,n)=>{const r=n(1063);function i(t,e,n){const i=[],o=n&&n.debug||!1,a=!n||"boolean"!=typeof n.nested||n.nested;let s,l=n&&n.startIndex||0;for(;s=r(t,e,{debug:o,startIndex:l});)l=a?s.start+1+e.length:s.end,i.push(s);return o&&console.log("findTagsByName found",i.length,"tags"),i}t.exports=i,t.exports.default=i},7166:t=>{function e(t,e,n){const r=n&&n.debug||!1;r&&console.log("getting "+e+" in "+t);const i="object"==typeof t?t.outer:t,o=`${e}\\="([^"]*)"`;r&&console.log("pattern:",o);const a=new RegExp(o).exec(i);if(r&&console.log("match:",a),a)return a[1]}t.exports=e,t.exports.default=e},2273:t=>{function e(t,e,n){const r=new RegExp(e).exec(t.slice(n));return r?n+r.index+r[0].length-1:-1}t.exports=e,t.exports.default=e},9946:t=>{function e(t,e,n){const r=new RegExp(e).exec(t.slice(n));return r?n+r.index:-1}t.exports=e,t.exports.default=e},7876:t=>{"use strict";t.exports=function(t){t.prototype[Symbol.iterator]=function*(){for(let t=this.head;t;t=t.next)yield t.value}}},1123:(t,e,n)=>{"use strict";function r(t){var e=this;if(e instanceof r||(e=new r),e.tail=null,e.head=null,e.length=0,t&&"function"==typeof t.forEach)t.forEach((function(t){e.push(t)}));else if(arguments.length>0)for(var n=0,i=arguments.length;n<i;n++)e.push(arguments[n]);return e}function i(t,e,n){var r=e===t.head?new s(n,null,e,t):new s(n,e,e.next,t);return null===r.next&&(t.tail=r),null===r.prev&&(t.head=r),t.length++,r}function o(t,e){t.tail=new s(e,t.tail,null,t),t.head||(t.head=t.tail),t.length++}function a(t,e){t.head=new s(e,null,t.head,t),t.tail||(t.tail=t.head),t.length++}function s(t,e,n,r){if(!(this instanceof s))return new s(t,e,n,r);this.list=r,this.value=t,e?(e.next=this,this.prev=e):this.prev=null,n?(n.prev=this,this.next=n):this.next=null}t.exports=r,r.Node=s,r.create=r,r.prototype.removeNode=function(t){if(t.list!==this)throw new Error("removing node which does not belong to this list");var e=t.next,n=t.prev;return e&&(e.prev=n),n&&(n.next=e),t===this.head&&(this.head=e),t===this.tail&&(this.tail=n),t.list.length--,t.next=null,t.prev=null,t.list=null,e},r.prototype.unshiftNode=function(t){if(t!==this.head){t.list&&t.list.removeNode(t);var e=this.head;t.list=this,t.next=e,e&&(e.prev=t),this.head=t,this.tail||(this.tail=t),this.length++}},r.prototype.pushNode=function(t){if(t!==this.tail){t.list&&t.list.removeNode(t);var e=this.tail;t.list=this,t.prev=e,e&&(e.next=t),this.tail=t,this.head||(this.head=t),this.length++}},r.prototype.push=function(){for(var t=0,e=arguments.length;t<e;t++)o(this,arguments[t]);return this.length},r.prototype.unshift=function(){for(var t=0,e=arguments.length;t<e;t++)a(this,arguments[t]);return this.length},r.prototype.pop=function(){if(this.tail){var t=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,t}},r.prototype.shift=function(){if(this.head){var t=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,t}},r.prototype.forEach=function(t,e){e=e||this;for(var n=this.head,r=0;null!==n;r++)t.call(e,n.value,r,this),n=n.next},r.prototype.forEachReverse=function(t,e){e=e||this;for(var n=this.tail,r=this.length-1;null!==n;r--)t.call(e,n.value,r,this),n=n.prev},r.prototype.get=function(t){for(var e=0,n=this.head;null!==n&&e<t;e++)n=n.next;if(e===t&&null!==n)return n.value},r.prototype.getReverse=function(t){for(var e=0,n=this.tail;null!==n&&e<t;e++)n=n.prev;if(e===t&&null!==n)return n.value},r.prototype.map=function(t,e){e=e||this;for(var n=new r,i=this.head;null!==i;)n.push(t.call(e,i.value,this)),i=i.next;return n},r.prototype.mapReverse=function(t,e){e=e||this;for(var n=new r,i=this.tail;null!==i;)n.push(t.call(e,i.value,this)),i=i.prev;return n},r.prototype.reduce=function(t,e){var n,r=this.head;if(arguments.length>1)n=e;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");r=this.head.next,n=this.head.value}for(var i=0;null!==r;i++)n=t(n,r.value,i),r=r.next;return n},r.prototype.reduceReverse=function(t,e){var n,r=this.tail;if(arguments.length>1)n=e;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");r=this.tail.prev,n=this.tail.value}for(var i=this.length-1;null!==r;i--)n=t(n,r.value,i),r=r.prev;return n},r.prototype.toArray=function(){for(var t=new Array(this.length),e=0,n=this.head;null!==n;e++)t[e]=n.value,n=n.next;return t},r.prototype.toArrayReverse=function(){for(var t=new Array(this.length),e=0,n=this.tail;null!==n;e++)t[e]=n.value,n=n.prev;return t},r.prototype.slice=function(t,e){(e=e||this.length)<0&&(e+=this.length),(t=t||0)<0&&(t+=this.length);var n=new r;if(e<t||e<0)return n;t<0&&(t=0),e>this.length&&(e=this.length);for(var i=0,o=this.head;null!==o&&i<t;i++)o=o.next;for(;null!==o&&i<e;i++,o=o.next)n.push(o.value);return n},r.prototype.sliceReverse=function(t,e){(e=e||this.length)<0&&(e+=this.length),(t=t||0)<0&&(t+=this.length);var n=new r;if(e<t||e<0)return n;t<0&&(t=0),e>this.length&&(e=this.length);for(var i=this.length,o=this.tail;null!==o&&i>e;i--)o=o.prev;for(;null!==o&&i>t;i--,o=o.prev)n.push(o.value);return n},r.prototype.splice=function(t,e,...n){t>this.length&&(t=this.length-1),t<0&&(t=this.length+t);for(var r=0,o=this.head;null!==o&&r<t;r++)o=o.next;var a=[];for(r=0;o&&r<e;r++)a.push(o.value),o=this.removeNode(o);for(null===o&&(o=this.tail),o!==this.head&&o!==this.tail&&(o=o.prev),r=0;r<n.length;r++)o=i(this,o,n[r]);return a},r.prototype.reverse=function(){for(var t=this.head,e=this.tail,n=t;null!==n;n=n.prev){var r=n.prev;n.prev=n.next,n.next=r}return this.head=e,this.tail=t,this};try{n(7876)(r)}catch(t){}},2535:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>y});var r=n(5701),i=n.n(r),o=n(8236),a=n.n(o),s=n(6080),l=n.n(s),u=n(6850),c=n.n(u),h=n(7182),p=n.n(h),d=n(9213),f=n.n(d),g=n(5734),m={};m.styleTagTransform=f(),m.setAttributes=c(),m.insert=l().bind(null,"head"),m.domAPI=a(),m.insertStyleElement=p(),i()(g.Z,m);const y=g.Z&&g.Z.locals?g.Z.locals:void 0},6226:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>y});var r=n(5701),i=n.n(r),o=n(8236),a=n.n(o),s=n(6080),l=n.n(s),u=n(6850),c=n.n(u),h=n(7182),p=n.n(h),d=n(9213),f=n.n(d),g=n(9735),m={};m.styleTagTransform=f(),m.setAttributes=c(),m.insert=l().bind(null,"head"),m.domAPI=a(),m.insertStyleElement=p(),i()(g.Z,m);const y=g.Z&&g.Z.locals?g.Z.locals:void 0},1380:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>y});var r=n(5701),i=n.n(r),o=n(8236),a=n.n(o),s=n(6080),l=n.n(s),u=n(6850),c=n.n(u),h=n(7182),p=n.n(h),d=n(9213),f=n.n(d),g=n(1240),m={};m.styleTagTransform=f(),m.setAttributes=c(),m.insert=l().bind(null,"head"),m.domAPI=a(),m.insertStyleElement=p(),i()(g.Z,m);const y=g.Z&&g.Z.locals?g.Z.locals:void 0},9908:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>y});var r=n(5701),i=n.n(r),o=n(8236),a=n.n(o),s=n(6080),l=n.n(s),u=n(6850),c=n.n(u),h=n(7182),p=n.n(h),d=n(9213),f=n.n(d),g=n(1055),m={};m.styleTagTransform=f(),m.setAttributes=c(),m.insert=l().bind(null,"head"),m.domAPI=a(),m.insertStyleElement=p(),i()(g.Z,m);const y=g.Z&&g.Z.locals?g.Z.locals:void 0},4815:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>y});var r=n(5701),i=n.n(r),o=n(8236),a=n.n(o),s=n(6080),l=n.n(s),u=n(6850),c=n.n(u),h=n(7182),p=n.n(h),d=n(9213),f=n.n(d),g=n(6431),m={};m.styleTagTransform=f(),m.setAttributes=c(),m.insert=l().bind(null,"head"),m.domAPI=a(),m.insertStyleElement=p(),i()(g.Z,m);const y=g.Z&&g.Z.locals?g.Z.locals:void 0},2031:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>y});var r=n(5701),i=n.n(r),o=n(8236),a=n.n(o),s=n(6080),l=n.n(s),u=n(6850),c=n.n(u),h=n(7182),p=n.n(h),d=n(9213),f=n.n(d),g=n(1788),m={};m.styleTagTransform=f(),m.setAttributes=c(),m.insert=l().bind(null,"head"),m.domAPI=a(),m.insertStyleElement=p(),i()(g.Z,m);const y=g.Z&&g.Z.locals?g.Z.locals:void 0},655:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>y});var r=n(5701),i=n.n(r),o=n(8236),a=n.n(o),s=n(6080),l=n.n(s),u=n(6850),c=n.n(u),h=n(7182),p=n.n(h),d=n(9213),f=n.n(d),g=n(6718),m={};m.styleTagTransform=f(),m.setAttributes=c(),m.insert=l().bind(null,"head"),m.domAPI=a(),m.insertStyleElement=p(),i()(g.Z,m);const y=g.Z&&g.Z.locals?g.Z.locals:void 0},1831:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>y});var r=n(5701),i=n.n(r),o=n(8236),a=n.n(o),s=n(6080),l=n.n(s),u=n(6850),c=n.n(u),h=n(7182),p=n.n(h),d=n(9213),f=n.n(d),g=n(4245),m={};m.styleTagTransform=f(),m.setAttributes=c(),m.insert=l().bind(null,"head"),m.domAPI=a(),m.insertStyleElement=p(),i()(g.Z,m);const y=g.Z&&g.Z.locals?g.Z.locals:void 0},23:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>y});var r=n(5701),i=n.n(r),o=n(8236),a=n.n(o),s=n(6080),l=n.n(s),u=n(6850),c=n.n(u),h=n(7182),p=n.n(h),d=n(9213),f=n.n(d),g=n(7406),m={};m.styleTagTransform=f(),m.setAttributes=c(),m.insert=l().bind(null,"head"),m.domAPI=a(),m.insertStyleElement=p(),i()(g.Z,m);const y=g.Z&&g.Z.locals?g.Z.locals:void 0},8356:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>y});var r=n(5701),i=n.n(r),o=n(8236),a=n.n(o),s=n(6080),l=n.n(s),u=n(6850),c=n.n(u),h=n(7182),p=n.n(h),d=n(9213),f=n.n(d),g=n(4601),m={};m.styleTagTransform=f(),m.setAttributes=c(),m.insert=l().bind(null,"head"),m.domAPI=a(),m.insertStyleElement=p(),i()(g.Z,m);const y=g.Z&&g.Z.locals?g.Z.locals:void 0},7585:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>y});var r=n(5701),i=n.n(r),o=n(8236),a=n.n(o),s=n(6080),l=n.n(s),u=n(6850),c=n.n(u),h=n(7182),p=n.n(h),d=n(9213),f=n.n(d),g=n(8737),m={};m.styleTagTransform=f(),m.setAttributes=c(),m.insert=l().bind(null,"head"),m.domAPI=a(),m.insertStyleElement=p(),i()(g.Z,m);const y=g.Z&&g.Z.locals?g.Z.locals:void 0},1402:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>y});var r=n(5701),i=n.n(r),o=n(8236),a=n.n(o),s=n(6080),l=n.n(s),u=n(6850),c=n.n(u),h=n(7182),p=n.n(h),d=n(9213),f=n.n(d),g=n(5639),m={};m.styleTagTransform=f(),m.setAttributes=c(),m.insert=l().bind(null,"head"),m.domAPI=a(),m.insertStyleElement=p(),i()(g.Z,m);const y=g.Z&&g.Z.locals?g.Z.locals:void 0},8116:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>y});var r=n(5701),i=n.n(r),o=n(8236),a=n.n(o),s=n(6080),l=n.n(s),u=n(6850),c=n.n(u),h=n(7182),p=n.n(h),d=n(9213),f=n.n(d),g=n(7092),m={};m.styleTagTransform=f(),m.setAttributes=c(),m.insert=l().bind(null,"head"),m.domAPI=a(),m.insertStyleElement=p(),i()(g.Z,m);const y=g.Z&&g.Z.locals?g.Z.locals:void 0},6437:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>y});var r=n(5701),i=n.n(r),o=n(8236),a=n.n(o),s=n(6080),l=n.n(s),u=n(6850),c=n.n(u),h=n(7182),p=n.n(h),d=n(9213),f=n.n(d),g=n(3675),m={};m.styleTagTransform=f(),m.setAttributes=c(),m.insert=l().bind(null,"head"),m.domAPI=a(),m.insertStyleElement=p(),i()(g.Z,m);const y=g.Z&&g.Z.locals?g.Z.locals:void 0},99:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>y});var r=n(5701),i=n.n(r),o=n(8236),a=n.n(o),s=n(6080),l=n.n(s),u=n(6850),c=n.n(u),h=n(7182),p=n.n(h),d=n(9213),f=n.n(d),g=n(1428),m={};m.styleTagTransform=f(),m.setAttributes=c(),m.insert=l().bind(null,"head"),m.domAPI=a(),m.insertStyleElement=p(),i()(g.Z,m);const y=g.Z&&g.Z.locals?g.Z.locals:void 0},736:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>y});var r=n(5701),i=n.n(r),o=n(8236),a=n.n(o),s=n(6080),l=n.n(s),u=n(6850),c=n.n(u),h=n(7182),p=n.n(h),d=n(9213),f=n.n(d),g=n(6218),m={};m.styleTagTransform=f(),m.setAttributes=c(),m.insert=l().bind(null,"head"),m.domAPI=a(),m.insertStyleElement=p(),i()(g.Z,m);const y=g.Z&&g.Z.locals?g.Z.locals:void 0},618:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>y});var r=n(5701),i=n.n(r),o=n(8236),a=n.n(o),s=n(6080),l=n.n(s),u=n(6850),c=n.n(u),h=n(7182),p=n.n(h),d=n(9213),f=n.n(d),g=n(7984),m={};m.styleTagTransform=f(),m.setAttributes=c(),m.insert=l().bind(null,"head"),m.domAPI=a(),m.insertStyleElement=p(),i()(g.Z,m);const y=g.Z&&g.Z.locals?g.Z.locals:void 0},4632:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>y});var r=n(5701),i=n.n(r),o=n(8236),a=n.n(o),s=n(6080),l=n.n(s),u=n(6850),c=n.n(u),h=n(7182),p=n.n(h),d=n(9213),f=n.n(d),g=n(6820),m={};m.styleTagTransform=f(),m.setAttributes=c(),m.insert=l().bind(null,"head"),m.domAPI=a(),m.insertStyleElement=p(),i()(g.Z,m);const y=g.Z&&g.Z.locals?g.Z.locals:void 0},1665:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>y});var r=n(5701),i=n.n(r),o=n(8236),a=n.n(o),s=n(6080),l=n.n(s),u=n(6850),c=n.n(u),h=n(7182),p=n.n(h),d=n(9213),f=n.n(d),g=n(3861),m={};m.styleTagTransform=f(),m.setAttributes=c(),m.insert=l().bind(null,"head"),m.domAPI=a(),m.insertStyleElement=p(),i()(g.Z,m);const y=g.Z&&g.Z.locals?g.Z.locals:void 0},1090:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>y});var r=n(5701),i=n.n(r),o=n(8236),a=n.n(o),s=n(6080),l=n.n(s),u=n(6850),c=n.n(u),h=n(7182),p=n.n(h),d=n(9213),f=n.n(d),g=n(7049),m={};m.styleTagTransform=f(),m.setAttributes=c(),m.insert=l().bind(null,"head"),m.domAPI=a(),m.insertStyleElement=p(),i()(g.Z,m);const y=g.Z&&g.Z.locals?g.Z.locals:void 0},1755:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>y});var r=n(5701),i=n.n(r),o=n(8236),a=n.n(o),s=n(6080),l=n.n(s),u=n(6850),c=n.n(u),h=n(7182),p=n.n(h),d=n(9213),f=n.n(d),g=n(3266),m={};m.styleTagTransform=f(),m.setAttributes=c(),m.insert=l().bind(null,"head"),m.domAPI=a(),m.insertStyleElement=p(),i()(g.Z,m);const y=g.Z&&g.Z.locals?g.Z.locals:void 0},2787:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>y});var r=n(5701),i=n.n(r),o=n(8236),a=n.n(o),s=n(6080),l=n.n(s),u=n(6850),c=n.n(u),h=n(7182),p=n.n(h),d=n(9213),f=n.n(d),g=n(557),m={};m.styleTagTransform=f(),m.setAttributes=c(),m.insert=l().bind(null,"head"),m.domAPI=a(),m.insertStyleElement=p(),i()(g.Z,m);const y=g.Z&&g.Z.locals?g.Z.locals:void 0},5092:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>y});var r=n(5701),i=n.n(r),o=n(8236),a=n.n(o),s=n(6080),l=n.n(s),u=n(6850),c=n.n(u),h=n(7182),p=n.n(h),d=n(9213),f=n.n(d),g=n(1248),m={};m.styleTagTransform=f(),m.setAttributes=c(),m.insert=l().bind(null,"head"),m.domAPI=a(),m.insertStyleElement=p(),i()(g.Z,m);const y=g.Z&&g.Z.locals?g.Z.locals:void 0},3658:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>y});var r=n(5701),i=n.n(r),o=n(8236),a=n.n(o),s=n(6080),l=n.n(s),u=n(6850),c=n.n(u),h=n(7182),p=n.n(h),d=n(9213),f=n.n(d),g=n(9292),m={};m.styleTagTransform=f(),m.setAttributes=c(),m.insert=l().bind(null,"head"),m.domAPI=a(),m.insertStyleElement=p(),i()(g.Z,m);const y=g.Z&&g.Z.locals?g.Z.locals:void 0},7762:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>y});var r=n(5701),i=n.n(r),o=n(8236),a=n.n(o),s=n(6080),l=n.n(s),u=n(6850),c=n.n(u),h=n(7182),p=n.n(h),d=n(9213),f=n.n(d),g=n(6042),m={};m.styleTagTransform=f(),m.setAttributes=c(),m.insert=l().bind(null,"head"),m.domAPI=a(),m.insertStyleElement=p(),i()(g.Z,m);const y=g.Z&&g.Z.locals?g.Z.locals:void 0},8099:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>y});var r=n(5701),i=n.n(r),o=n(8236),a=n.n(o),s=n(6080),l=n.n(s),u=n(6850),c=n.n(u),h=n(7182),p=n.n(h),d=n(9213),f=n.n(d),g=n(9558),m={};m.styleTagTransform=f(),m.setAttributes=c(),m.insert=l().bind(null,"head"),m.domAPI=a(),m.insertStyleElement=p(),i()(g.Z,m);const y=g.Z&&g.Z.locals?g.Z.locals:void 0},8957:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SIDEBAR_CONTENT_ID=e.POPUP_CONTAINER_ID=void 0;const r=n(3940),i=r.__importStar(n(9526)),o=r.__importDefault(n(9139)),a=r.__importDefault(n(655)),s=n(1018),l=r.__importDefault(n(8699)),u=r.__importDefault(n(1525)),c=r.__importDefault(n(8449)),h=n(1852),p=r.__importDefault(n(9769)),d=r.__importDefault(n(206)),f=n(8512),g=r.__importDefault(n(5926)),m=r.__importDefault(n(4683)),y=r.__importDefault(n(9351)),v=r.__importDefault(n(3766)),_=r.__importDefault(n(1527)),b=r.__importDefault(n(8959)),w=r.__importDefault(n(8858)),x=r.__importDefault(n(9597)),S=n(6019),C=r.__importDefault(n(5851)),E=r.__importDefault(n(1413)),k=r.__importDefault(n(7328)),A=r.__importDefault(n(578)),P=r.__importDefault(n(4836)),T=n(3401),M=r.__importDefault(n(2872));function O({query:t,route:n,map:r,error:s,mapOptions:c,info:h}){var y;return i.default.createElement(i.default.Fragment,null,i.default.createElement("div",{className:a.default.sidebar},i.default.createElement("div",{className:a.default.sidebarContent,id:e.SIDEBAR_CONTENT_ID},i.default.createElement(M.default,{routingProfiles:h.profiles,selectedProfile:t.routingProfile,customModelAllowed:!0,customModelEnabled:t.customModelEnabled}),i.default.createElement(C.default,{enabled:t.customModelEnabled,encodedValues:h.encoded_values,initialCustomModelStr:t.initialCustomModelStr,queryOngoing:(null===(y=t.currentRequest.subRequests[0])||void 0===y?void 0:y.state)===f.RequestState.SENT}),i.default.createElement(g.default,{points:t.queryPoints}),i.default.createElement("div",null,!s.isDismissed&&i.default.createElement(m.default,{error:s})),i.default.createElement(p.default,{paths:n.routingResult.paths,selectedPath:n.selectedPath,currentRequest:t.currentRequest,profile:t.routingProfile.name}),i.default.createElement("div",null,i.default.createElement(d.default,null)))),i.default.createElement("div",{className:a.default.popupContainer,id:e.POPUP_CONTAINER_ID}),i.default.createElement("div",{className:a.default.map},i.default.createElement(l.default,{map:r})),i.default.createElement("div",{className:a.default.mapOptions},i.default.createElement(u.default,{...c})),i.default.createElement("div",{className:a.default.pathDetails},i.default.createElement(o.default,{selectedPath:n.selectedPath})))}function R({query:t,route:e,map:n,error:r,mapOptions:o,info:s}){return i.default.createElement(i.default.Fragment,null,i.default.createElement("div",{className:a.default.smallScreenSidebar},i.default.createElement(c.default,{info:s,query:t,route:e,error:r})),i.default.createElement("div",{className:a.default.smallScreenMap},i.default.createElement(l.default,{map:n})),i.default.createElement("div",{className:a.default.smallScreenMapOptions},i.default.createElement("div",{className:a.default.smallScreenMapOptionsContent},i.default.createElement(u.default,{...o}))),i.default.createElement("div",{className:a.default.smallScreenRoutingResult},i.default.createElement(p.default,{paths:e.routingResult.paths,selectedPath:e.selectedPath,currentRequest:t.currentRequest,profile:t.routingProfile.name})),i.default.createElement("div",{className:a.default.smallScreenPoweredBy},i.default.createElement(d.default,null)))}e.POPUP_CONTAINER_ID="popup-container",e.SIDEBAR_CONTENT_ID="sidebar-content",e.default=function(){const[t,e]=(0,i.useState)((0,s.getSettingsStore)().state),[n,r]=(0,i.useState)((0,s.getQueryStore)().state),[o,l]=(0,i.useState)((0,s.getApiInfoStore)().state),[u,c]=(0,i.useState)((0,s.getRouteStore)().state),[p,d]=(0,i.useState)((0,s.getErrorStore)().state),[f,g]=(0,i.useState)((0,s.getMapOptionsStore)().state),[m,C]=(0,i.useState)((0,s.getPathDetailsStore)().state),[M,I]=(0,i.useState)((0,s.getMapFeatureStore)().state),L=(0,S.getMap)();(0,i.useEffect)((()=>{const t=()=>e((0,s.getSettingsStore)().state),n=()=>r((0,s.getQueryStore)().state),i=()=>l((0,s.getApiInfoStore)().state),o=()=>c((0,s.getRouteStore)().state),a=()=>d((0,s.getErrorStore)().state),u=()=>g((0,s.getMapOptionsStore)().state),h=()=>C((0,s.getPathDetailsStore)().state),p=()=>I((0,s.getMapFeatureStore)().state);return(0,s.getSettingsStore)().register(t),(0,s.getQueryStore)().register(n),(0,s.getApiInfoStore)().register(i),(0,s.getRouteStore)().register(o),(0,s.getErrorStore)().register(a),(0,s.getMapOptionsStore)().register(u),(0,s.getPathDetailsStore)().register(h),(0,s.getMapFeatureStore)().register(p),n(),i(),o(),a(),u(),h(),p(),()=>{(0,s.getSettingsStore)().register(t),(0,s.getQueryStore)().deregister(n),(0,s.getApiInfoStore)().deregister(i),(0,s.getRouteStore)().deregister(o),(0,s.getErrorStore)().deregister(a),(0,s.getMapOptionsStore)().deregister(u),(0,s.getPathDetailsStore)().deregister(h),(0,s.getMapFeatureStore)().deregister(p)}}),[]),(0,y.default)(L,f.selectedStyle),(0,P.default)(L,o.bbox),(0,E.default)(L,f.routingGraphEnabled),(0,A.default)(L,f.urbanDensityEnabled),(0,_.default)(L,u.routingResult.paths,u.selectedPath),(0,v.default)(L,n.queryPoints),(0,w.default)(L,m);const F=(0,h.useMediaQuery)({query:"(max-width: 44rem)"});return i.default.createElement(T.ShowDistanceInMilesContext.Provider,{value:t.showDistanceInMiles},i.default.createElement("div",{className:a.default.appWrapper},i.default.createElement(x.default,{map:L,pathDetails:m}),i.default.createElement(b.default,{map:L,route:u,queryPoints:n.queryPoints}),i.default.createElement(k.default,{map:L,point:M.point,properties:M.properties}),F?i.default.createElement(R,{query:n,route:u,map:L,mapOptions:f,error:p,info:o}):i.default.createElement(O,{query:n,route:u,map:L,mapOptions:f,error:p,info:o})))}},1908:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.textToCoordinate=e.coordinateToText=e.nominatimHitToItem=e.hitToItem=e.metersToText=e.milliSecondsToText=void 0,e.milliSecondsToText=function(t){const e=Math.floor(t/36e5),n=Math.floor(t%36e5/6e4),r=e>0?e+" h":"";return 0==n&&r.length>0?r:r+" "+n+" min"};const n=new Intl.NumberFormat(navigator.language,{maximumFractionDigits:1});function r(t,e){let n=t.street&&e.indexOf(t.street)<0?t.street+(t.housenumber?" "+t.housenumber:"")+", ":"";return n+=function(t){return t.city&&t.postcode?t.postcode+" "+t.city:t.city?t.city:t.postcode?t.postcode:""}(t),t.country&&(n+=(n?", ":"")+t.country),n}e.metersToText=function(t,e,r=!1){return e?t<160.934||r?Math.floor(t/.3048)+" ft":n.format(t/1609.34)+" mi":t<1e3||r?Math.floor(t)+" m":n.format(t/1e3)+" km"},e.hitToItem=function(t){const e=t.street&&t.name.indexOf(t.street)>=0?t.street+(t.housenumber?" "+t.housenumber:""):t.name;return{mainText:e,secondText:r(t,e)}},e.nominatimHitToItem=function(t){const e=t.name?t.name:t.country,n=t.street?t.street+(t.housenumber?" "+t.housenumber:""):"",r=t.street&&0==e.indexOf(t.street)?n:e.split(",")[0];return{mainText:r,secondText:(r.indexOf(n)>=0?"":n.length>0?n+", ":"")+(r.indexOf(t.postcode)>=0?"":t.postcode?t.postcode+" ":"")+(r.indexOf(t.city)>=0?"":t.city?t.city+", ":"")+t.country}},e.coordinateToText=function(t){return Math.round(1e6*t.lat)/1e6+","+Math.round(1e6*t.lng)/1e6},e.textToCoordinate=function(t){const e=t.split(/[,| s]/).filter((t=>t));if(2!==e.length)return null;const n={lat:Number.parseFloat(e[0]),lng:Number.parseFloat(e[1])};return isNaN(n.lng)||isNaN(n.lat)?null:n}},4123:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(3940),i=n(1908),o=r.__importDefault(n(4395)),a=n(5777),s=n(2874),l=n(8512),u=n(858);class c{constructor(t,e){this.isIgnoreQueryStoreUpdates=!1,this.queryStore=t,this.queryStore.register((()=>this.onQueryStateChanged())),this.mapStore=e,this.mapStore.register((()=>this.onQueryStateChanged())),s.window.addEventListener("popstate",(()=>this.parseUrlAndReplaceQuery()))}static createUrl(t,e,n){const r=new URL(t);return e.queryPoints.filter((t=>t.isInitialized)).map((t=>this.pointToParam(t))).forEach((t=>r.searchParams.append("point",t))),r.searchParams.append("profile",e.routingProfile.name),r.searchParams.append("layer",n.selectedStyle.name),e.customModelEnabled&&e.customModel&&e.customModelValid&&r.searchParams.append("custom_model",JSON.stringify(e.customModel)),r}static pointToParam(t){const e=(0,i.coordinateToText)(t.coordinate);return e===t.queryText?e:e+"_"+t.queryText}parsePoints(t,e){const n=t.searchParams.getAll("point").map(((t,e)=>{const n=t.split("_"),r={coordinate:{lat:0,lng:0},isInitialized:!1,id:e,queryText:t,color:"",type:l.QueryPointType.Via};if(n.length>=1)try{r.coordinate=c.parseCoordinate(n[0]),Number.isNaN(r.coordinate.lat)||Number.isNaN(r.coordinate.lng)||(r.queryText=n.length>=2?n[1]:(0,i.coordinateToText)(r.coordinate),r.isInitialized=!0)}catch(t){}return r}));if(n.some((t=>!t.isInitialized&&t.queryText.length>0))){e.name||(e={name:"car"});let t=Array.from({length:n.length});return n.forEach(((n,r)=>{n.isInitialized?t[r]=n:(0,u.getApi)().geocode(n.queryText,"nominatim").then((i=>{i.hits.length<=0||(t[r]={...n,queryText:i.hits[0].name,coordinate:{lat:i.hits[0].point.lat,lng:i.hits[0].point.lng},isInitialized:!0},t.every((t=>t.isInitialized))&&(t.length<=2&&this.fillPoints(t),o.default.dispatch(new a.SetRoutingParametersAtOnce(t,e))))}))})),[]}return n.length>2?n:this.fillPoints(n)}static parseCoordinate(t){const e=t.split(",");if(2!==e.length)throw Error('Could not parse coordinate with value: "'+t[0]+'"');return{lat:Number.parseFloat(e[0]),lng:Number.parseFloat(e[1])}}static parseProfile(t){return t.searchParams.has("profile")?t.searchParams.get("profile"):t.searchParams.has("vehicle")?t.searchParams.get("vehicle"):""}parseLayer(t){let e=t.searchParams.get("layer");return this.mapStore.state.styleOptions.find((t=>t.name===e))||this.mapStore.state.selectedStyle}parseUrlAndReplaceQuery(){this.isIgnoreQueryStoreUpdates=!0,o.default.dispatch(new a.ClearPoints);const t=new URL(s.window.location.href),e=c.parseProfile(t),n=e?{name:e}:this.queryStore.state.routingProfile,r=this.parsePoints(t,n),i=this.getBBoxFromUrlPoints(r.map((t=>t.coordinate)));i&&o.default.dispatch(new a.SetInitialBBox(i)),r.length>0&&o.default.dispatch(new a.SetRoutingParametersAtOnce(r,n));const l=this.parseLayer(t);o.default.dispatch(new a.SelectMapStyle(l)),this.isIgnoreQueryStoreUpdates=!1}fillPoints(t){const e=this.queryStore.state.queryPoints;for(let n=0;n<e.length&&n<t.length;n++)e[n]=t[n];return e}onQueryStateChanged(){if(this.isIgnoreQueryStoreUpdates)return;const t=c.createUrl(s.window.location.origin+s.window.location.pathname,this.queryStore.state,this.mapStore.state).toString();t!==s.window.location.href&&s.window.history.pushState("last state","",t)}getBBoxFromUrlPoints(t){const e=t.reduce(((t,e)=>[Math.min(t[0],e.lng),Math.min(t[1],e.lat),Math.max(t[2],e.lng),Math.max(t[3],e.lat)]),[180,90,-180,-90]);return e[0]<e[2]&&e[1]<e[3]?e:null}}e.default=c},9739:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(3940),i=r.__importDefault(n(9526)),o=r.__importDefault(n(1831));e.default=function(t){const e=o.default.button+" "+t.className;return i.default.createElement("button",{...t,className:e},t.children)}},3401:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ShowDistanceInMilesContext=void 0;const r=n(3940).__importDefault(n(9526));e.ShowDistanceInMilesContext=r.default.createContext(!1)},2874:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.window=void 0;const n=window;e.window=n},5777:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ToggleDistanceUnits=e.RoutingGraphHover=e.PathDetailsElevationSelected=e.PathDetailsRangeSelected=e.PathDetailsHover=e.SetInitialBBox=e.QueryOSM=e.ZoomMapToPoint=e.MapIsLoaded=e.ToggleUrbanDensityLayer=e.ToggleRoutingGraph=e.SelectMapStyle=e.DismissLastError=e.SetSelectedPath=e.ClearRoute=e.RouteRequestFailed=e.ErrorAction=e.RouteRequestSuccess=e.SetCustomModel=e.SetCustomModelBoxEnabled=e.InvalidatePoint=e.MovePoint=e.RemovePoint=e.ClearPoints=e.SetRoutingParametersAtOnce=e.AddPoint=e.SetVehicleProfile=e.SetPoint=e.InfoReceived=void 0,e.InfoReceived=class{constructor(t){this.result=t}},e.SetPoint=class{constructor(t,e){this.point=t,this.zoom=e}},e.SetVehicleProfile=class{constructor(t){this.profile=t}},e.AddPoint=class{constructor(t,e,n){this.atIndex=t,this.coordinate=e,this.isInitialized=n}},e.SetRoutingParametersAtOnce=class{constructor(t,e){this.queryPoints=t,this.routingProfile=e}},e.ClearPoints=class{},e.RemovePoint=class{constructor(t){this.point=t}},e.MovePoint=class{constructor(t,e){this.point=t,this.newIndex=e}},e.InvalidatePoint=class{constructor(t){this.point=t}},e.SetCustomModelBoxEnabled=class{constructor(t){this.enabled=t}},e.SetCustomModel=class{constructor(t,e,n=!1){this.customModel=t,this.valid=e,this.issueRouteRequest=n}},e.RouteRequestSuccess=class{constructor(t,e){this.result=e,this.request=t}};class n{constructor(t){this.message=t}}e.ErrorAction=n,e.RouteRequestFailed=class extends n{constructor(t,e){super(e),this.request=t}},e.ClearRoute=class{},e.SetSelectedPath=class{constructor(t){this.path=t}},e.DismissLastError=class{},e.SelectMapStyle=class{constructor(t){this.styleOption=t}},e.ToggleRoutingGraph=class{constructor(t){this.routingGraphEnabled=t}},e.ToggleUrbanDensityLayer=class{constructor(t){this.urbanDensityEnabled=t}},e.MapIsLoaded=class{},e.ZoomMapToPoint=class{constructor(t,e){this.coordinate=t,this.zoom=e}},e.QueryOSM=class{constructor(t){this.coordinate=t}},e.SetInitialBBox=class{constructor(t){this.bbox=t}},e.PathDetailsHover=class{constructor(t){this.pathDetailsPoint=t}},e.PathDetailsRangeSelected=class{constructor(t){this.bbox=t}},e.PathDetailsElevationSelected=class{constructor(t){this.segments=t}},e.RoutingGraphHover=class{constructor(t,e){this.point=t,this.properties=e}},e.ToggleDistanceUnits=class{}},858:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ApiImpl=e.getApi=e.setApi=void 0;const r=n(3940),i=r.__importDefault(n(4395)),o=n(5777),a=n(6645),s=r.__importStar(n(5746));let l;e.setApi=function(t,e){l=new u(t,e)},e.getApi=function(){if(!l)throw Error('Api must be initialized before it can be used. Use "setApi" when starting the app');return l};class u{constructor(t,e){this.apiAddress=t,this.apiKey=e}async info(){const t=await fetch(this.getURLWithKey("info").toString(),{headers:{Accept:"application/json"}});if(t.ok){const e=await t.json();return u.convertToApiInfo(e)}throw new Error("Could not connect to the Service. Try to reload!")}infoWithDispatch(){this.info().then((t=>i.default.dispatch(new o.InfoReceived(t)))).catch((t=>i.default.dispatch(new o.ErrorAction(t.message))))}async geocode(t,e){const n=this.getURLWithKey("geocode");n.searchParams.append("q",t),n.searchParams.append("provider",e);const r=(0,a.getTranslation)().getLang().split("_");n.searchParams.append("locale",r.length>0?r[0]:"en");const i=await fetch(n.toString(),{headers:{Accept:"application/json"}});if(i.ok)return await i.json();throw new Error("Geocoding went wrong "+i.status)}async route(t){const e=u.createRequest(t),n=await fetch(this.getURLWithKey("route").toString(),{method:"POST",mode:"cors",body:JSON.stringify(e),headers:{Accept:"application/json","Content-Type":"application/json"}});if(n.ok){const t=await n.json();return{...t,paths:u.decodeResult(t,e.elevation)}}if(500===n.status)throw new Error((0,a.tr)("route_timed_out"));if(400===n.status){const t=await n.json();let e=t.message;if(t.hints&&t.hints.length>0){let n="";t.hints.forEach((t=>{t.message.includes(e)||(n+=(n?" and ":"")+n,n+=t.message)})),n&&(e+=(e?" and ":"")+n)}throw new Error(e)}throw new Error((0,a.tr)("route_request_failed"))}routeWithDispatch(t){this.route(t).then((e=>i.default.dispatch(new o.RouteRequestSuccess(t,e)))).catch((e=>(console.warn("error when performing /route request: ",e),i.default.dispatch(new o.RouteRequestFailed(t,e.message)))))}getURLWithKey(t){const e=new URL(this.apiAddress+t);return e.searchParams.append("key",this.apiKey),e}static createRequest(t){var e,n;const r={points:t.points,profile:t.profile,elevation:!0,debug:!1,instructions:!0,locale:(0,a.getTranslation)().getLang(),optimize:"false",points_encoded:!0,snap_preventions:(null===(e=s.request)||void 0===e?void 0:e.snapPreventions)?s.request.snapPreventions:[],details:(null===(n=s.request)||void 0===n?void 0:n.details)?s.request.details:[],...s.extraProfiles?s.extraProfiles[t.profile]:{}};return t.customModel&&(r.custom_model=t.customModel,r["ch.disable"]=!0),t.points.length<=2&&t.maxAlternativeRoutes>1?{...r,"alternative_route.max_paths":t.maxAlternativeRoutes,algorithm:"alternative_route"}:r}static convertToApiInfo(t){let e=[0,0,0,0],n="",r="";const i=[];for(const e in t.profiles){const n={name:t.profiles[e].name};i.push(n)}let o=["car","truck","scooter","foot","hike","bike"];i.sort(((t,e)=>{let n=o.findIndex((e=>t.name.indexOf(e)>=0)),r=o.findIndex((t=>e.name.indexOf(t)>=0));return n<0&&(n=o.length),r<0&&(r=o.length),n-r}));for(const i in t)"bbox"===i?e=t[i]:"version"===i?n=t[i]:"import_date"===i&&(r=t[i]);return{profiles:i,elevation:t.elevation,bbox:e,version:n,import_date:r,encoded_values:t.encoded_values}}static decodeResult(t,e){return t.paths.map((t=>({...t,points:u.decodePoints(t,e),snapped_waypoints:u.decodeWaypoints(t,e)}))).map((t=>({...t,instructions:u.setPointsOnInstructions(t)})))}static decodePoints(t,e){return t.points_encoded?{type:"LineString",coordinates:u.decodePath(t.points,e)}:t.points}static decodeWaypoints(t,e){return t.points_encoded?{type:"LineString",coordinates:u.decodePath(t.snapped_waypoints,e)}:t.snapped_waypoints}static setPointsOnInstructions(t){return t.instructions?t.instructions.map((e=>({...e,points:t.points.coordinates.slice(e.interval[0],e.interval[1]+1)}))):t.instructions}static decodePath(t,e){const n=t.length;let r=0;const i=[];let o=0,a=0,s=0;for(;r<n;){let n,l=0,u=0;do{n=t.charCodeAt(r++)-63,u|=(31&n)<<l,l+=5}while(n>=32);o+=1&u?~(u>>1):u>>1,l=0,u=0;do{n=t.charCodeAt(r++)-63,u|=(31&n)<<l,l+=5}while(n>=32);if(a+=1&u?~(u>>1):u>>1,e){l=0,u=0;do{n=t.charCodeAt(r++)-63,u|=(31&n)<<l,l+=5}while(n>=32);s+=1&u?~(u>>1):u>>1,i.push([1e-5*a,1e-5*o,s/100])}else i.push([1e-5*a,1e-5*o])}return i}static isBikeLike(t){return t.includes("mtb")||t.includes("bike")}static isMotorVehicle(t){return t.includes("car")||t.includes("truck")||t.includes("scooter")}}e.ApiImpl=u},3384:(t,e)=>{"use strict";function n(t){return.017453292519943295*t}Object.defineProperty(e,"__esModule",{value:!0}),e.toRad=e.calcDist=void 0,e.calcDist=function(t,e){const r=t.lat,i=e.lat,o=t.lng,a=e.lng,s=Math.sin(n(i-r)/2),l=Math.sin(n(a-o)/2);return 12742e3*Math.asin(Math.sqrt(s*s+l*l*Math.cos(n(r))*Math.cos(n(i))))},e.toRad=n},8959:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(3940),i=n(7243),o=n(7178),a=r.__importStar(n(9526)),s=n(6162),l=r.__importDefault(n(23)),u=new i.Overlay({autoPan:!0});e.default=function({map:t,route:e,queryPoints:n}){const[r,i]=(0,a.useState)(null),h=(0,a.useRef)(),p=()=>{i(null)};return(0,a.useEffect)((()=>{function e(e){e.preventDefault();const n=t.getEventCoordinate(e),r=(0,s.toLonLat)(n);i({lng:r[0],lat:r[1]})}u.setElement(h.current),t.addOverlay(u);const n=new c((t=>e(t)));return t.once("change:target",(()=>{t.getTargetElement().addEventListener("contextmenu",e),t.getTargetElement().addEventListener("touchstart",(t=>n.onTouchStart(t))),t.getTargetElement().addEventListener("touchmove",(()=>n.onTouchEnd())),t.getTargetElement().addEventListener("touchend",(()=>n.onTouchEnd())),t.getTargetElement().addEventListener("click",p)})),()=>{t.getTargetElement().removeEventListener("contextmenu",e),t.getTargetElement().removeEventListener("click",p),t.removeOverlay(u)}}),[t]),(0,a.useEffect)((()=>{u.setPosition(r?(0,s.fromLonLat)([r.lng,r.lat]):void 0)}),[r]),a.default.createElement("div",{className:l.default.popup,ref:h},r&&a.default.createElement(o.PopupComponent,{coordinate:r,queryPoints:n,route:e,onSelect:p}))};class c{constructor(t){this.currentTimeout=0,this.callback=t}onTouchStart(t){this.currentEvent=t,this.currentTimeout=window.setTimeout((()=>{console.log("long touch"),this.currentEvent&&this.callback(this.currentEvent)}),500)}onTouchEnd(){console.log("touch end"),window.clearTimeout(this.currentTimeout),this.currentEvent=void 0}}},7328:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(3940),i=n(7243),o=r.__importStar(n(9526)),a=r.__importDefault(n(8356)),s=n(6162);e.default=function({map:t,point:e,properties:n}){const[r,l]=(0,o.useState)(),u=(0,o.useRef)();return(0,o.useEffect)((()=>{const e=new i.Overlay({element:u.current,autoPan:!1});l(e),t.addOverlay(e)}),[t]),(0,o.useEffect)((()=>{null==r||r.setPosition(e?(0,s.fromLonLat)([e.lng,e.lat]):void 0)}),[e]),o.default.createElement("div",{className:a.default.popup,ref:u},o.default.createElement("ul",null,Object.entries(n).map((([t,e],n)=>o.default.createElement("li",{key:n},`${t}=${e}`)))))}},9597:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(3940),i=n(7243),o=r.__importStar(n(9526)),a=r.__importDefault(n(7585)),s=n(6162),l=n(1908),u=n(3401);e.default=function({map:t,pathDetails:e}){const[n,r]=(0,o.useState)(),c=(0,o.useRef)();(0,o.useEffect)((()=>{const e=new i.Overlay({element:c.current,autoPan:!1});r(e),t.addOverlay(e)}),[t]),(0,o.useEffect)((()=>{const t=e.pathDetailsPoint?(0,s.fromLonLat)([e.pathDetailsPoint.point.lng,e.pathDetailsPoint.point.lat]):void 0;null==n||n.setPosition(t)}),[e.pathDetailsPoint]);const h=(0,o.useContext)(u.ShowDistanceInMilesContext);return o.default.createElement("div",{className:a.default.popup,ref:c},e.pathDetailsPoint&&o.default.createElement("p",null,(0,l.metersToText)(Math.round(e.pathDetailsPoint.elevation),h,!0),o.default.createElement("br",null),e.pathDetailsPoint.description))}},9351:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(3940),i=n(7243),o=n(9526),a=r.__importDefault(n(5952)),s=n(6993),l=n(3813);function u(t){t.getLayers().getArray().filter((t=>t.get("mapbox-source")||t.get("background-raster-layer"))).forEach((e=>t.removeLayer(e)))}e.default=function(t,e){(0,o.useEffect)((()=>(u(t),function(t,e){if("vector"===e.type)(0,l.apply)(t,e.url);else{const n=e,r=new a.default({source:new s.XYZ({urls:n.url,maxZoom:n.maxZoom,attributions:[n.attribution],tilePixelRatio:n.tilePixelRatio})});r.set("background-raster-layer",!0),t.addLayer(r)}}(t,e),function(t){t.on("pointermove",(function(e){const n=t.getFeaturesAtPixel(e.pixel).some((t=>t instanceof i.Feature));t.getTargetElement().style.cursor=n?"pointer":"default"}))}(t),()=>{u(t)})),[t,e])}},4836:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(3940),i=n(9526),o=r.__importDefault(n(7325)),a=r.__importDefault(n(5792)),s=n(303),l=n(5100),u=n(6162),c="borderLayer";function h(t){t.getLayers().getArray().filter((t=>t.get(c))).forEach((e=>t.removeLayer(e)))}e.default=function(t,e){(0,i.useEffect)((()=>(h(t),"[-180,-90,180,90]"!==JSON.stringify(e)&&function(t,e){const n=new o.default({source:new a.default({features:(new s.GeoJSON).readFeatures({type:"Feature",geometry:{type:"LineString",coordinates:[[e[0],e[1]],[e[0],e[3]],[e[2],e[3]],[e[2],e[1]],[e[0],e[1]]].map((t=>(0,u.fromLonLat)(t)))}})}),style:new l.Style({stroke:new l.Stroke({color:"#AAAAAA",width:2})})});n.set(c,!0),n.setZIndex(.1),t.addLayer(n)}(t,e),()=>{h(t)})),[t,e])}},8858:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(3940),i=n(9526),o=r.__importDefault(n(7325)),a=r.__importDefault(n(5792)),s=n(5100),l=n(303),u=n(6162),c="highlightedPathSegmentLayer";function h(t){t.getLayers().getArray().filter((t=>t.get(c))).forEach((e=>t.removeLayer(e)))}e.default=function(t,e){(0,i.useEffect)((()=>(h(t),function(t,e){const n=new o.default({source:new a.default({features:(new l.GeoJSON).readFeatures((r=e.pathDetailsHighlightedSegments,{type:"FeatureCollection",features:[{type:"Feature",geometry:{type:"MultiLineString",coordinates:r.map((t=>t.map((t=>(0,u.fromLonLat)([t.lng,t.lat])))))},properties:{}}]}))}),style:()=>new s.Style({stroke:new s.Stroke({color:"red",width:4,lineCap:"round",lineJoin:"round"})})});var r;n.set(c,!0),n.setZIndex(3),t.addLayer(n)}(t,e),()=>{h(t)})),[t,e])}},1527:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(3940),i=n(9526),o=r.__importDefault(n(7325)),a=r.__importDefault(n(5792)),s=n(303),l=n(5100),u=n(6162),c=n(8298),h=n(122),p=r.__importDefault(n(4395)),d=n(5777),f="pathsLayer",g="selectedPathLayer";function m(t){t.getLayers().getArray().filter((t=>t.get(f)||t.get(g))).forEach((e=>t.removeLayer(e)))}function y(t){return{type:"FeatureCollection",features:t.map(((t,e)=>({type:"Feature",properties:{index:e},geometry:{...t.points,coordinates:t.points.coordinates.map((t=>(0,u.fromLonLat)(t)))}})))}}e.default=function(t,e,n){(0,i.useEffect)((()=>(m(t),function(t,e){const n=new o.default({source:new a.default({features:(new s.GeoJSON).readFeatures(y(e))}),style:()=>new l.Style({stroke:new l.Stroke({color:"#5B616A",width:5,lineCap:"round",lineJoin:"round"})}),opacity:.8});n.set(f,!0),n.setZIndex(1),t.addLayer(n),function(t){t.getInteractions().getArray().filter((t=>t.get("gh:select_path_interaction"))).forEach((e=>t.removeInteraction(e)))}(t);const r=new c.Select({condition:h.click,layers:[n],style:null,hitTolerance:5});r.on("select",(t=>{const n=t.selected[0].getProperties().index;p.default.dispatch(new d.SetSelectedPath(e[n]))})),r.set("gh:select_path_interaction",!0),t.addInteraction(r)}(t,e.filter((t=>t!=n))),function(t,e){const n=new o.default({source:new a.default({features:(new s.GeoJSON).readFeatures((r=e,{type:"FeatureCollection",features:[{type:"Feature",properties:{},geometry:{...r.points,coordinates:r.points.coordinates.map((t=>(0,u.fromLonLat)(t)))}}]}))}),style:()=>new l.Style({stroke:new l.Stroke({color:"#275DAD",width:6,lineCap:"round",lineJoin:"round"})}),opacity:.8});var r;n.set(g,!0),n.setZIndex(2),t.addLayer(n)}(t,n),()=>{m(t)})),[t,e,n])}},3766:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(3940),i=n(7243),o=n(8512),a=n(9526),s=r.__importDefault(n(7325)),l=r.__importDefault(n(5792)),u=n(319),c=n(6162),h=n(8298),p=r.__importDefault(n(4395)),d=n(5777),f=n(1908),g=n(5100),m=n(1756);e.default=function(t,e){(0,a.useEffect)((()=>{!function(t){t.getLayers().getArray().filter((t=>t.get("gh:query_points"))).forEach((e=>t.removeLayer(e)))}(t);const n=function(t,e){const n=e.map(((t,e)=>({index:e,point:t}))).filter((t=>t.point.isInitialized)).map(((t,e)=>{const n=new i.Feature({geometry:new u.Point((0,c.fromLonLat)([t.point.coordinate.lng,t.point.coordinate.lat]))});return n.set("gh:query_point",t.point),n.set("gh:marker_props",{color:t.point.color,number:t.point.type==o.QueryPointType.Via?e:void 0,size:35}),n})),r=new s.default({source:new l.default({features:n})});return r.set("gh:query_points",!0),r.setZIndex(3),r.setStyle((t=>new g.Style({image:new g.Icon({src:"data:image/svg+xml;utf8,"+(0,m.createSvg)(t.get("gh:marker_props")),displacement:[0,17.5]})}))),t.addLayer(r),r}(t,e);!function(t){t.getInteractions().getArray().filter((t=>t.get("gh:drag_query_point"))).forEach((e=>t.removeInteraction(e)))}(t),function(t,e){const n=new h.Modify({hitDetection:e,source:e.getSource(),style:[]});n.on("modifystart",(e=>{t.getViewport().style.cursor="grabbing"})),n.on("modifyend",(e=>{t.getViewport().style.cursor="default";const n=e.features.getArray()[0],r=n.get("gh:query_point"),i=(0,c.toLonLat)(n.getGeometry().getCoordinates()),o={lng:i[0],lat:i[1]};p.default.dispatch(new d.SetPoint({...r,coordinate:o,queryText:(0,f.coordinateToText)(o)},!1))})),n.set("gh:drag_query_point",!0),t.addInteraction(n)}(t,n)}),[t,e])}},1413:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(3940),i=n(9526),o=r.__importDefault(n(2405)),a=r.__importDefault(n(3936)),s=n(303),l=r.__importStar(n(5746)),u=n(5100),c=n(8298),h=n(122),p=r.__importDefault(n(4395)),d=n(5777),f=n(6162),g="routingGraphLayer";function m(t){t.getLayers().getArray().filter((t=>t.get(g))).forEach((e=>t.removeLayer(e)))}e.default=function(t,e){(0,i.useEffect)((()=>(m(t),e&&function(t){const e=new a.default({declutter:!0,source:new o.default({attributions:"",format:new s.MVT,url:`${l.api}mvt/{z}/{x}/{y}.mvt`}),style:(e,n)=>function(t,e){if("roads"===t.get("layer")){const n=t.get("road_class");let r="#aaa5a7",i=1;return"motorway"===n?(r="#dd504b",i=3):"primary"===n||"trunk"===n?(r="#e2a012",i=2):"secondary"===n&&(r="#f7c913",i=2),e>16?i+=3:e>15?i+=2:e>13&&(i+=1),new u.Style({stroke:new u.Stroke({color:r,width:i})})}}(e,t.getView().getZoomForResolution(n))});e.set(g,!0),e.setZIndex(.5),t.addLayer(e);const n=new c.Select({condition:h.pointerMove,layers:[e],hitTolerance:5,style:null});n.on("select",(t=>{if(t.selected.length>0){const e=(0,f.toLonLat)(t.mapBrowserEvent.coordinate),n=t.selected[0].getProperties();p.default.dispatch(new d.RoutingGraphHover({lat:e[1],lng:e[0]},n))}else p.default.dispatch(new d.RoutingGraphHover(null,{}))})),t.addInteraction(n)}(t),()=>{m(t)})),[t,e])}},578:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(3940),i=n(9526),o=r.__importDefault(n(2405)),a=r.__importDefault(n(3936)),s=n(303),l=r.__importStar(n(5746)),u=n(5100),c="urbanDensityLayer";function h(t){t.getLayers().getArray().filter((t=>t.get(c))).forEach((e=>t.removeLayer(e)))}e.default=function(t,e){(0,i.useEffect)((()=>(h(t),e&&function(t){const e=new a.default({declutter:!0,source:new o.default({attributions:"",format:new s.MVT,url:`${l.api}mvt/{z}/{x}/{y}.mvt?render_all=true`}),style:t=>function(t){if("roads"===t.get("layer")){const e=t.get("urban_density");let n="#0aaff1";return"residential"===e?n="#fd084a":"city"===e&&(n="#edf259"),new u.Style({stroke:new u.Stroke({color:n,width:2})})}}(t)});e.set(c,!0),e.setZIndex(.6),t.addLayer(e)}(t),()=>{h(t)})),[t,e])}},1756:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createSvg=void 0,e.createSvg=function({color:t,number:e,size:n=0}){return`<svg aria-hidden="true" focusable="false" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 658" width="${n}" height="${n}" style="stroke: none; fill: ${function(t){const e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);if(!e)throw new Error("invalid hex color: "+t);return`rgb(${parseInt(e[1],16)}, ${parseInt(e[2],16)}, ${parseInt(e[3],16)})`}(t)};">\n <path d="M 172.968 632.025 C 26.97 291.031 0 269.413 0 192 C 0 85.961 85.961 0 192 0 S 384 85.961 384 192 C 384 269.413 357.03 291.031 213 632 C 193.781 667.361 192.57 667.361 172.968 632.025 Z"/>${void 0===e?'<path d="M192 272c44.183 0 80-35.817 80-80s-35.817-80-80-80-80 35.817-80 80 35.817 80 80 80z" fill="white" />':'<circle cx="192" cy="190" r="120" fill="white" />'}<text x="50%" y="40%" text-anchor="middle" style="font-size: 180px" fill="black">${void 0!==e?e:""}</text></svg>`}},8699:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(3940);n(2031);const i=r.__importDefault(n(1402)),o=r.__importStar(n(9526));e.default=function({map:t}){const e=(0,o.useRef)(null);return(0,o.useEffect)((()=>{t.setTarget(e.current)}),[t]),o.default.createElement("div",{ref:e,className:i.default.mapContainer})}},1525:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(3940),i=r.__importStar(n(9526)),o=r.__importDefault(n(8116)),a=r.__importDefault(n(4395)),s=n(5777),l=r.__importDefault(n(9739)),u=r.__importDefault(n(3200)),c=r.__importStar(n(5746));e.default=function(t){const[e,n]=(0,i.useState)(!1);return i.default.createElement("div",{className:o.default.mapOptionsContainer,onMouseEnter:()=>n(!0),onMouseLeave:()=>n(!1)},e?i.default.createElement(h,{storeState:t,notifyChanged:()=>n(!1)}):i.default.createElement(l.default,{className:o.default.layerButton,onClick:()=>n(!0)},i.default.createElement(u.default,null)))};const h=function({storeState:t,notifyChanged:e}){return i.default.createElement("div",{className:o.default.options},i.default.createElement("div",{onChange:n=>{e(),function(t,e){const n=e.find((e=>e.name===t.value));n&&a.default.dispatch(new s.SelectMapStyle(n))}(n.target,t.styleOptions)}},t.styleOptions.map((e=>i.default.createElement("div",{className:o.default.option,key:e.name},i.default.createElement("input",{type:"radio",id:e.name,name:"layer",value:e.name,defaultChecked:e===t.selectedStyle,disabled:!t.isMapLoaded}),i.default.createElement("label",{htmlFor:e.name},e.name+("vector"===e.type?" (Vector)":"")))))),c.routingGraphLayerAllowed&&i.default.createElement(i.default.Fragment,null,i.default.createElement("div",{className:o.default.option},i.default.createElement("input",{type:"checkbox",id:"routing-graph-checkbox",checked:t.routingGraphEnabled,onChange:t=>{e(),a.default.dispatch(new s.ToggleRoutingGraph(t.target.checked))}}),i.default.createElement("label",{htmlFor:"routing-graph-checkbox"},"Show Routing Graph")),i.default.createElement("div",{className:o.default.option},i.default.createElement("input",{type:"checkbox",id:"urban-density-checkbox",checked:t.urbanDensityEnabled,onChange:t=>{e(),a.default.dispatch(new s.ToggleUrbanDensityLayer(t.target.checked))}}),i.default.createElement("label",{htmlFor:"urban-density-checkbox"},"Show Urban Density"))))}},6657:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MarkerComponent=void 0;const r=n(3940).__importDefault(n(9526)),i={cursor:"pointer",stroke:"none"};e.MarkerComponent=function({color:t,number:e,size:n=0,cursor:o}){return r.default.createElement("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",height:n,style:{...i,fill:t,cursor:o||i.cursor}},r.default.createElement("path",{d:"M172.268 501.67C26.97 291.031 0 269.413 0 192 0 85.961 85.961 0 192 0s192 85.961 192 192c0 77.413-26.97 99.031-172.268 309.67-9.535 13.774-29.93 13.773-39.464 0z"}),void 0===e?r.default.createElement("path",{d:"M192 272c44.183 0 80-35.817 80-80s-35.817-80-80-80-80 35.817-80 80 35.817 80 80 80z",fill:"white"}):r.default.createElement("circle",{cx:"192",cy:"190",r:"150",fill:"white"}),r.default.createElement("text",{x:"50%",y:"55%",textAnchor:"middle",style:{fontSize:210},fill:"black"},void 0!==e?e:""))}},7178:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PopupComponent=void 0;const r=n(3940),i=r.__importDefault(n(9526)),o=n(1908),a=r.__importDefault(n(6437)),s=r.__importStar(n(8512)),l=r.__importDefault(n(4395)),u=n(5777),c=n(2854),h=n(6645),p=n(6657);e.PopupComponent=function({coordinate:t,queryPoints:e,route:n,onSelect:r}){const d=function(t,e){r(),l.default.dispatch(new u.SetPoint({...t,coordinate:e,queryText:(0,o.coordinateToText)(e),isInitialized:!0},!0))};return i.default.createElement("div",{className:a.default.wrapper,onMouseUp:t=>{const e=new MouseEvent("click",{bubbles:!0});e.stopPropagation=()=>{},t.target.dispatchEvent(e)}},i.default.createElement("button",{className:a.default.entry,onClick:()=>d(e[0],t)},i.default.createElement("div",null,i.default.createElement(p.MarkerComponent,{size:16,color:s.default.getMarkerColor(s.QueryPointType.From)})),i.default.createElement("span",null,(0,h.tr)("set_start"))),i.default.createElement("button",{className:a.default.entry,disabled:function(t){const e=t.filter((t=>t.type===s.QueryPointType.Via));return 0!==e.length&&e.every((t=>!t.isInitialized))}(e),onClick:()=>function(e,n){const i=e.filter((t=>t.type===s.QueryPointType.Via)),o=i.find((t=>!t.isInitialized));if(r(),o)d(o,t);else{const e=n.routingResult.paths.map((t=>({coordinates:t.points.coordinates.map((t=>({lat:t[1],lng:t[0]}))),wayPoints:t.snapped_waypoints.coordinates.map((t=>({lat:t[1],lng:t[0]})))}))),r=(0,c.findNextWayPoint)(e,t).nextWayPoint;l.default.dispatch(new u.AddPoint(r,t,!0))}}(e,n)},i.default.createElement("div",null,i.default.createElement(p.MarkerComponent,{size:16,color:s.default.getMarkerColor(s.QueryPointType.Via)})),i.default.createElement("span",null,(0,h.tr)("set_intermediate"))),i.default.createElement("button",{style:{paddingBottom:"10px"},className:a.default.entry,onClick:()=>d(e[e.length-1],t)},i.default.createElement("div",null,i.default.createElement(p.MarkerComponent,{size:16,color:s.default.getMarkerColor(s.QueryPointType.To)})),i.default.createElement("span",null,(0,h.tr)("set_end"))),i.default.createElement("button",{style:{borderTop:"1px solid lightgray",paddingTop:"10px"},className:a.default.entry,onClick:()=>{r(),l.default.dispatch(new u.ZoomMapToPoint(t,8))}},(0,h.tr)("center_map")),i.default.createElement("button",{className:a.default.entry,onClick:()=>{r(),l.default.dispatch(new u.QueryOSM(t))}},(0,h.tr)("query_osm")))}},2854:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.findNextWayPoint=void 0;const r=n(3384);e.findNextWayPoint=function(t,e){if(t.length<1||t.some((t=>t.coordinates.length<2||t.wayPoints.length<2||t.wayPoints.length>t.coordinates.length)))throw new Error("Invalid input when trying to find the next way point");let n=Number.MAX_VALUE,i=0,o=0;return t.forEach(((t,a)=>{let s=0;t.coordinates.forEach((l=>{(0,r.calcDist)(l,t.wayPoints[s])<1&&(s=Math.min(t.wayPoints.length-1,s+1));const u=(0,r.calcDist)(l,e);u<n&&(n=u,i=a,o=s==t.wayPoints.length?s-1:s)}))})),{closestRoute:i,nextWayPoint:o,distance:n}}},6019:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getMap=e.setMap=e.createMap=void 0;const r=n(3940).__importDefault(n(4395)),i=n(7243),o=n(6162),a=n(5777),s=n(7350);let l;e.createMap=function(){return l=new i.Map({view:new i.View({enableRotation:!1,multiWorld:!1,constrainResolution:!0,center:(0,o.fromLonLat)([10,10]),zoom:2}),controls:(0,s.defaults)({zoom:!1,attribution:!0,attributionOptions:{collapsible:!1}})}),l.once("postrender",(()=>{r.default.dispatch(new a.MapIsLoaded)})),l},e.setMap=function(t){l=t},e.getMap=function(){if(!l)throw Error('Map must be initialized before it can be used. Use "createMap" when starting the app');return l}},9139:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(3940),i=r.__importStar(n(9526)),o=r.__importDefault(n(99)),a=n(4064);n(4815);const s=r.__importDefault(n(4395)),l=n(5777),u=r.__importStar(n(8512)),c=n(3384),h=n(3401);function p(t){return Math.min(t,1e3)}function d(t,e,n){s.default.dispatch(new l.PathDetailsHover(t?{point:t,elevation:e,description:n}:null))}function f(t){s.default.dispatch(new l.PathDetailsRangeSelected(t?[t.sw.lng,t.sw.lat,t.ne.lng,t.ne.lat]:null))}function g(t){s.default.dispatch(new l.PathDetailsElevationSelected(t))}function m(t){const e=[0,153,247],n=[241,23,18],r=Math.min(25,Math.abs(t))/25,i=[0,1,2].map((t=>e[t]+r*(n[t]-e[t])));return{text:t.toFixed(2),color:"rgb("+i[0]+", "+i[1]+", "+i[2]+")"}}function y(t,e){return{type:"Feature",geometry:{type:"LineString",coordinates:t},properties:{attributeType:e}}}function v(t,e){return{type:"FeatureCollection",features:e,properties:{summary:t,records:e.length}}}function _(t,e){return(0,c.calcDist)({lat:t[1],lng:t[0]},{lat:e[1],lng:e[0]})}e.default=function({selectedPath:t}){const e=(0,i.useRef)(null),n=(0,i.useRef)(null),[r,s]=(0,i.useState)(null);(0,i.useEffect)((()=>{const t={width:p(e.current.clientWidth),height:224,expandControls:!0},r={pointSelectedCallback:d,areaSelectedCallback:f,routeSegmentsSelectedCallback:g};s(new a.HeightGraph(n.current,t,r))}),[n]);const l=()=>{null==r||r.resize({width:p(e.current.clientWidth)})};(0,i.useEffect)((()=>(window.addEventListener("resize",l),()=>window.removeEventListener("resize",l)))),(0,i.useEffect)((()=>{const e=function(t){const e=t.points.coordinates.map((t=>2==t.length?[...t,0]:t)),n={data:[],mappings:{}},r=v("Elevation",[y(e,"elevation")]);n.data.push(r),n.mappings.Elevation=function(){return{text:"Elevation",color:u.default.getMarkerColor(u.QueryPointType.From)}};const i=[];for(let t=0;t<e.length-1;t++){const n=e[t],r=e[t+1],o=_(n,r),a=100*(r[2]-n[2])/o;i.push(y([n,r],a))}const o=v("Slope",i);if(n.data.push(o),n.mappings.Slope=m,t.details.edge_id){const r=t.details.edge_id,i=[];for(let t=0;t<r.length;t++){const n=e.slice(r[t][0],r[t][1]+1),o=n[0],a=n[n.length-1],s=_(o,a),l=100*(a[2]-o[2])/s;let u=0;for(let t=0;t<n.length;t++){const e=u/s;let r=o[2]+e*(a[2]-o[2]);t===n.length-1&&(r=a[2]),n[t]=[n[t][0],n[t][1],r],t<n.length-1&&(u+=_(n[t],n[t+1]))}i.push(y(n,l))}const o=v("Towerslope",i);n.data.push(o),n.mappings.Towerslope=m}return Object.entries(t.details).map((([t,r])=>{const i=r.map((([t,n,r="Undefined"])=>y(e.slice(t,n+1),r)));n.data.push(v(t,i)),n.mappings[t]=function(t){const e=function(t){const e=new Set;let n,r,i=0;for(let o=0;o<t.length;o++){const a=t[o][2];"number"==typeof a&&(n||(n=a),r||(r=a),e.add(a),i++,n=Math.min(a,n),r=Math.max(a,r))}return{numeric:i===t.length,minVal:n,maxVal:r}}(t);if(!0===e.numeric&&e.minVal!==e.maxVal){const t=[0,153,247],n=[241,23,18];return function(r){const i=(r-e.minVal)/(e.maxVal-e.minVal),o=[];for(let e=0;e<3;e++)o.push(t[e]+i*(n[e]-t[e]));return{text:""+r,color:"rgb("+o[0]+", "+o[1]+", "+o[2]+")"}}}{const e=t.map((t=>t[2]));return function(t){const n=["#332288","#88ccee","#44aa99","#117733","#999933","#ddcc77","#cc6677","#882255","#aa4499"],r=e.indexOf(t)%n.length;return{text:t,color:"missing"===t||"unclassified"===t||"Undefined"===t?"#dddddd":n[r]}}}}(r)})),n}(t);null==r||r.setData(e.data,e.mappings)}),[t,r]);const c=(0,i.useContext)(h.ShowDistanceInMilesContext);(0,i.useEffect)((()=>{null==r||r.setImperial(c),null==r||r.redraw()}),[r,c]);const b={display:0!==t.points.coordinates.length?null:"none"};return i.default.createElement("div",{className:o.default.heightgraphContainer,ref:e},i.default.createElement("div",{className:o.default.innerDiv,style:b,ref:n}))}},5851:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(3940);n(1380),n(2535),n(6226),n(9908);const i=r.__importDefault(n(736)),o=r.__importStar(n(9526)),a=n(1910),s=r.__importDefault(n(4395)),l=n(5777),u=n(6645),c=r.__importDefault(n(9739)),h={empty:{distance_influence:15,speed:[],priority:[],areas:{}},exclude_motorway:{priority:[{if:"road_class == MOTORWAY",multiply_by:"0.0"}]},limit_speed:{speed:[{if:"true",limit_to:"100"},{if:"road_class == TERTIARY",limit_to:"80"}]},exclude_area:{priority:[{if:"in_berlin_bbox",multiply_by:"0"}],areas:{berlin_bbox:{type:"Feature",properties:{},geometry:{type:"Polygon",coordinates:[[[13.253,52.608],[13.228,52.437],[13.579,52.447],[13.563,52.609],[13.253,52.608]]]}}}},combined:{distance_influence:100,speed:[{if:"road_class == STEPS || road_environment == FERRY",multiply_by:"0"}],priority:[{if:"road_environment == TUNNEL",multiply_by:"0.5"},{if:"max_weight < 3 || max_height < 2.5",multiply_by:"0.0"}]}};function p(t,e,n){try{const r=JSON.parse(t);e&&s.default.dispatch(new l.DismissLastError),s.default.dispatch(new l.SetCustomModel(r,e,n))}catch(t){s.default.dispatch(new l.SetCustomModel(null,!1,n))}}function d(t){return JSON.stringify(t,null,2)}e.default=function({enabled:t,encodedValues:e,initialCustomModelStr:n,queryOngoing:r}){const[s,l]=(0,o.useState)(),[f,g]=(0,o.useState)(!1),m=(0,o.useRef)(null);(0,o.useEffect)((()=>{const e=(0,a.create)({},(t=>{var e;return null===(e=m.current)||void 0===e?void 0:e.appendChild(t)}));if(l(e),e.cm.setSize("100%","100%"),null!=n)try{n=d(JSON.parse(n))}catch(t){}e.value=null==n?d(h.empty):n,t&&p(e.value,!0,!0),e.validListener=t=>{p(e.value,t,!1),g(t)}}),[]),(0,o.useEffect)((()=>{t&&(null==s||s.cm.focus())}),[t]),(0,o.useEffect)((()=>{if(!s)return;const t={};Object.keys(e).forEach((n=>{const r=e[n];2===r.length&&"true"===r[0]&&"false"===r[1]?t[n]={type:"boolean"}:2===r.length&&">number"===r[0]&&"<number"===r[1]?t[n]={type:"numeric"}:t[n]={type:"enum",values:r.sort()}})),s.categories=t}),[e]);const y=(0,o.useCallback)((t=>{if(t.ctrlKey&&"Enter"===t.key){const t=!0;p(s.value,t,!0)}}),[s,f]);return o.default.createElement(o.default.Fragment,null,o.default.createElement("div",{ref:m,className:i.default.customModelBox,style:{display:t?"block":"none"},onKeyUp:y}),t&&o.default.createElement("div",{className:i.default.customModelBoxBottomBar},o.default.createElement("select",{className:i.default.examples,onChange:t=>{s.value=d(h[t.target.value]),p(JSON.stringify(h[t.target.value]),!0,!0)}},o.default.createElement("option",{value:"empty"},(0,u.tr)("examples_custom_model")),o.default.createElement("option",{value:"exclude_motorway"},(0,u.tr)("exclude_motorway_example")),o.default.createElement("option",{value:"limit_speed"},(0,u.tr)("limit_speed_example")),o.default.createElement("option",{value:"exclude_area"},(0,u.tr)("exclude_area_example")),o.default.createElement("option",{value:"combined"},(0,u.tr)("combined_example"))),o.default.createElement("a",{target:"_blank",className:i.default.helpLink,href:"https://github.com/graphhopper/graphhopper/blob/master/docs/core/custom-models.md"},(0,u.tr)("help_custom_model")),o.default.createElement("div",{className:`${i.default.applyButton} ${f?"":i.default.applyButtonInvalid} ${r?i.default.applyButtonProgress:""}`},o.default.createElement(c.default,{title:(0,u.tr)("Apply custom model of text box to routing request"),disabled:!f||r,onClick:()=>p(s.value,!0,!0)},(0,u.tr)("apply_custom_model")),r&&o.default.createElement("div",{className:i.default.infiniteProgressBar}))))}},4683:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(3940),i=r.__importDefault(n(618)),o=r.__importDefault(n(9739)),a=r.__importDefault(n(4395)),s=n(5777),l=r.__importDefault(n(9968)),u=r.__importDefault(n(9526));e.default=function({error:t}){return u.default.createElement("div",{className:i.default.errorMessageContainer},u.default.createElement("span",{className:i.default.errorMessage},t.lastError),u.default.createElement(o.default,{className:i.default.errorMessageCloseBtn,onClick:()=>a.default.dispatch(new s.DismissLastError)},u.default.createElement(l.default,null)))}},8449:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(3940),i=r.__importStar(n(9526)),o=n(8512),a=r.__importDefault(n(4632)),s=r.__importDefault(n(5926)),l=r.__importDefault(n(4683)),u=n(1852),c=n(6657),h=r.__importDefault(n(2872));function p(t){return t.routingResult.paths.length>0}function d(t){const e=t.points[0],n=t.points[t.points.length-1];return i.default.createElement("div",{className:a.default.mapView,onClick:t.onClick},i.default.createElement(f,{text:e.queryText,color:e.color,position:e.type}),i.default.createElement(m,{points:t.points}),i.default.createElement(f,{text:n.queryText,color:n.color,position:n.type}))}function f({text:t,color:e,position:n}){return i.default.createElement("div",{className:a.default.mapViewPoint},i.default.createElement("div",{className:a.default.markerContainer},i.default.createElement(c.MarkerComponent,{color:e})),i.default.createElement("span",{className:g(n)},t))}function g(t){switch(t){case o.QueryPointType.To:return a.default.queryPointText+" "+a.default.queryPointTextTo;case o.QueryPointType.Via:return a.default.queryPointText+" "+a.default.queryPointTextVia;default:return a.default.queryPointText}}function m({points:t}){return 3===t.length?i.default.createElement(f,{text:t[1].queryText,color:t[1].color,position:o.QueryPointType.Via}):t.length>3?i.default.createElement(f,{text:t.length-2+" via points",color:"#76D0F7",position:o.QueryPointType.Via}):i.default.createElement("div",null)}e.default=function({query:t,route:e,info:n,error:r}){const o=(0,u.useMediaQuery)({query:"(max-height: 55rem)"}),[c,f]=(0,i.useState)(o&&p(e)),g=(0,i.useRef)(null),m=(0,i.useCallback)((t=>{var n;!(t.target instanceof Node&&(null===(n=g.current)||void 0===n?void 0:n.contains(t.target)))&&o&&p(e)&&f(!0)}),[o,e]);return(0,i.useEffect)((()=>(window.addEventListener("mousedown",m),window.addEventListener("touchstart",m),()=>{window.removeEventListener("mousedown",m),window.removeEventListener("touchstart",m)}))),i.default.createElement("div",{className:a.default.sidebar},i.default.createElement("div",{className:a.default.background,ref:g},c?i.default.createElement(d,{points:t.queryPoints,onClick:()=>f(!1)}):i.default.createElement("div",{className:a.default.btnCloseContainer},i.default.createElement(h.default,{routingProfiles:n.profiles,selectedProfile:t.routingProfile,customModelAllowed:!1,customModelEnabled:t.customModelEnabled}),i.default.createElement(s.default,{points:t.queryPoints})),!r.isDismissed&&i.default.createElement(l.default,{error:r})))}},206:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(3940),i=r.__importDefault(n(9526)),o=r.__importDefault(n(1665)),a=r.__importDefault(n(3874)),s=n(6645);e.default=function(){return i.default.createElement("div",{className:o.default.poweredByContainer},i.default.createElement("span",null,(0,s.tr)("powered_by")),i.default.createElement("a",{className:o.default.logoContainer,href:"https://www.graphhopper.com",target:"_blank"},i.default.createElement(a.default,null)))}},9769:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(3940),i=n(8512),o=r.__importDefault(n(1090)),a=r.__importStar(n(9526)),s=r.__importDefault(n(4395)),l=n(5777),u=n(1908),c=r.__importDefault(n(9739)),h=r.__importDefault(n(7666)),p=r.__importDefault(n(5106)),d=r.__importDefault(n(2967)),f=n(1852),g=n(6645),m=n(3401),y=n(858);function v({path:t,isSelected:e,profile:n}){const[r,i]=(0,a.useState)(!1),f=e?o.default.resultSummary+" "+o.default.selectedResultSummary:o.default.resultSummary;(0,a.useEffect)((()=>i(e&&r)),[e]);const v=_(t.details.road_environment,"ford"),w=_(t.details.toll,"all"),x=_(t.details.road_environment,"ferry"),S=y.ApiImpl.isMotorVehicle(n)&&function(t){if(!t)return!1;for(let e in t){if("grade2"==t[e][2])return!0;if("grade3"==t[e][2])return!0;if("grade4"==t[e][2])return!0;if("grade5"==t[e][2])return!0}return!1}(t.details.track_type),C=y.ApiImpl.isBikeLike(n)&&_(t.details.road_class,"steps"),E=function(t){if(!t||0==t.length)return!1;const e=t[0][2];for(let n in t)if(t[n][2]!=e)return!0;return!1}(t.details.country),k=(0,a.useContext)(m.ShowDistanceInMilesContext);return a.default.createElement("div",{className:o.default.resultRow},a.default.createElement("div",{className:o.default.resultSelectableArea,onClick:()=>s.default.dispatch(new l.SetSelectedPath(t))},a.default.createElement("div",{className:f},a.default.createElement("div",{className:o.default.resultValues},a.default.createElement("span",{className:o.default.resultMainText},(0,u.milliSecondsToText)(t.time)),a.default.createElement("span",{className:o.default.resultSecondaryText},(0,u.metersToText)(t.distance,k)),e&&!y.ApiImpl.isMotorVehicle(n)&&a.default.createElement("div",{className:o.default.elevationHint},a.default.createElement("span",{title:(0,g.tr)("total_ascend",[Math.round(t.ascend)+"m"])},"↗",(0,u.metersToText)(t.ascend,k)," "),a.default.createElement("span",{title:(0,g.tr)("total_descend",[Math.round(t.descend)+"m"])},"↘",(0,u.metersToText)(t.descend,k))),t.description&&a.default.createElement("span",{className:o.default.resultTertiaryText},(0,g.tr)("Via")," ",t.description)),e&&a.default.createElement(c.default,{className:o.default.exportButton,onClick:()=>function(t,e){let n='<?xml version="1.0" encoding="UTF-8" standalone="no" ?><gpx xmlns="http://www.topografix.com/GPX/1/1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" creator="GraphHopper" version="1.1" xmlns:gh="https://graphhopper.com/public/schema/gpx/1.1">\n';n+=`<metadata><copyright author="OpenStreetMap contributors"/><link href="http://graphhopper.com"><text>GraphHopper GPX</text></link><time>${(new Date).toISOString()}</time></metadata>\n`,n+=t.snapped_waypoints.coordinates.reduce(((t,e)=>t+`<wpt lat="${e[1]}" lon="${e[0]}"></wpt>\n`),""),n+="<rte>\n",n+=t.instructions.reduce(((t,e)=>{let n=`<rtept lat="${e.points[0][1].toFixed(6)}" lon="${e.points[0][0].toFixed(6)}">`;return n+=`<desc>${e.text}</desc><extensions><gh:distance>${e.distance}</gh:distance>`,n+=`<gh:time>${e.time}</gh:time><gh:sign>${e.sign}</gh:sign>`,n+="</extensions></rtept>\n",t+n}),""),n+="</rte>\n",n+="<trk>\n<name>GraphHopper Track</name><desc></desc>\n<trkseg>",n+=t.points.coordinates.reduce(((t,e)=>{let n="<trkpt ";return n+=`lat="${e[1].toFixed(6)}" lon="${e[0].toFixed(6)}">`,e.length>2&&(n+=`<ele>${e[2].toFixed(1)}</ele>`),n+="</trkpt>\n",t+n}),""),n+="</trkseg></trk>\n</gpx>";const r=document.createElement("a"),i=new Blob([n],{type:"application/gpx+xml"});r.href=URL.createObjectURL(i);const o=new Date;r.download=`GraphHopper-Route-${(0,u.metersToText)(t.distance,e)}-${o.getUTCFullYear()}-${b(o.getUTCMonth()+1)}-${b(o.getUTCDate())}.gpx`,r.click()}(t,k)},a.default.createElement(p.default,null),a.default.createElement("div",null,(0,g.tr)("gpx_button"))),e&&a.default.createElement(c.default,{className:r?o.default.detailsButtonExpanded:o.default.detailsButton,onClick:()=>i(!r)},a.default.createElement(h.default,null),a.default.createElement("div",null,r?(0,g.tr)("hide_button"):(0,g.tr)("details_button"))))),e&&!r&&a.default.createElement("div",{className:o.default.routeHints},v&&a.default.createElement("div",null,(0,g.tr)("way_contains_ford")),x&&a.default.createElement("div",null,(0,g.tr)("way_contains_ferry")),E&&a.default.createElement("div",null,(0,g.tr)("way_crosses_border")),w&&a.default.createElement("div",null,(0,g.tr)("way_contains_toll")),C&&a.default.createElement("div",null,(0,g.tr)("way_contains",[(0,g.tr)("steps")])),S&&a.default.createElement("div",null,(0,g.tr)("way_contains",[(0,g.tr)("tracks")]))),r&&a.default.createElement(d.default,{instructions:t.instructions}))}function _(t,e){if(!t)return!1;for(let n in t)if(t[n][2]==e)return!0;return!1}function b(t){return t<10?"0"+t:""+t}function w(){return a.default.createElement("div",{className:o.default.resultRow},a.default.createElement("div",{className:o.default.placeholderContainer},a.default.createElement("div",{className:o.default.placeholderMain}),a.default.createElement("div",{className:o.default.placeholderMain+" "+o.default.placeholderSecondary})))}function x(t){return t.some((t=>t.state===i.RequestState.SENT))}e.default=function(t){const e=(0,f.useMediaQuery)({query:"(max-height: 45rem) and (orientation: landscape), (max-height: 70rem) and (orientation: portrait)"});return a.default.createElement("ul",null,e?function(t){return t.paths.length>0?a.default.createElement(v,{path:t.selectedPath,isSelected:!0,profile:t.profile}):x(t.currentRequest.subRequests)?a.default.createElement(w,{key:1}):""}(t):function({paths:t,currentRequest:e,selectedPath:n,profile:r}){const i=function(t,e){return e.length>0&&x(e)?Math.max(e[e.length-1].args.maxAlternativeRoutes,t.length):t.length}(t,e.subRequests),o=[];for(let e=0;e<i;e++)e<t.length?o.push(a.default.createElement(v,{key:e,path:t[e],isSelected:t[e]===n,profile:r})):o.push(a.default.createElement(w,{key:e}));return o}(t))}},2967:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(3940),i=r.__importDefault(n(1755)),o=r.__importStar(n(9526)),a=r.__importDefault(n(1607)),s=r.__importDefault(n(1938)),l=r.__importDefault(n(2430)),u=r.__importDefault(n(871)),c=r.__importDefault(n(4360)),h=r.__importDefault(n(4113)),p=r.__importDefault(n(6094)),d=r.__importDefault(n(112)),f=r.__importDefault(n(818)),g=r.__importDefault(n(6602)),m=r.__importDefault(n(4115)),y=r.__importDefault(n(9425)),v=r.__importDefault(n(3845)),_=r.__importDefault(n(1799)),b=r.__importDefault(n(6910)),w=r.__importDefault(n(8893)),x=n(1908),S=n(6657),C=r.__importStar(n(8512)),E=n(3401);e.default=function(t){return o.default.createElement("ul",{className:i.default.instructionsList},t.instructions.map(((t,e)=>o.default.createElement(k,{key:e,instruction:t,index:e}))))};const k=function({instruction:t,index:e}){const n=(0,o.useContext)(E.ShowDistanceInMilesContext);return o.default.createElement("li",{className:i.default.instruction},function(t,e){if(0===e||4===t||5===t){let n;return n=0===e?C.default.getMarkerColor(C.QueryPointType.From):4===t?C.default.getMarkerColor(C.QueryPointType.To):C.default.getMarkerColor(C.QueryPointType.Via),o.default.createElement("div",{className:i.default.sign},o.default.createElement(S.MarkerComponent,{color:n}))}return o.default.createElement("img",{className:i.default.sign,src:A(t),alt:"turn instruction"})}(t.sign,e),o.default.createElement("span",{className:i.default.mainText},t.text),o.default.createElement("span",{className:i.default.distance},(0,x.metersToText)(t.distance,n)))};function A(t){switch(t){case-98:return a.default;case-8:return s.default;case-7:return l.default;case-3:return u.default;case-2:return c.default;case-1:return h.default;case 0:return p.default;case 1:return d.default;case 2:return f.default;case 3:return g.default;case 6:return m.default;case 7:return y.default;case 8:return v.default;case 101:return _.default;case 102:return b.default;case 103:return w.default;default:return"unknown"}}},3783:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(3940),i=r.__importStar(n(9526)),o=n(8512),a=n(5777),s=r.__importStar(n(5563)),l=r.__importDefault(n(4395)),u=r.__importDefault(n(2787)),c=n(858),h=n(6645),p=n(1908),d=n(1852),f=r.__importDefault(n(6843)),g=r.__importDefault(n(9739));function m({inputRef:t,children:e}){const n=(0,d.useMediaQuery)({query:"(max-width: 44rem)"});return i.default.createElement(i.default.Fragment,null,n?e:i.default.createElement(f.default,{inputElement:t,keepClearAtBottom:270},e))}function y(t,e,n){const r=e+n;return r>=t?0:r<0?t-1:r}e.default=function(t){const[e,n]=(0,i.useState)(t.point.queryText);(0,i.useEffect)((()=>n(t.point.queryText)),[t.point.queryText]);const[r,d]=(0,i.useState)(!1),[f,_]=(0,i.useState)([]),[b]=(0,i.useState)(new v((0,c.getApi)(),((t,e,n)=>{const r=n.map((t=>{const n="nominatim"===e?(0,p.nominatimHitToItem)(t):(0,p.hitToItem)(t);return new s.GeocodingItem(n.mainText,n.secondText,t.point)}));"nominatim"!==e?(r.push(new s.MoreResultsItem(t)),_(r)):_(r)})));(0,i.useEffect)((()=>_([])),[t.point]),(0,i.useEffect)((()=>{r&&0==e.length&&0===f.length&&_([new s.SelectCurrentLocationItem])}),[f,r]);const[w,x]=(0,i.useState)(-1);(0,i.useEffect)((()=>x(-1)),[f]);const S=(0,i.useRef)(null),C=(0,i.useCallback)((n=>{if("Escape"!==n.key)switch(n.key){case"ArrowUp":x((t=>y(f.length,t,-1)));break;case"ArrowDown":x((t=>y(f.length,t,1)));break;case"Enter":case"Tab":const n=(0,p.textToCoordinate)(e);if(n)t.onAddressSelected(e,n);else if(f.length>0){const e=f[w>=0?w:0];e instanceof s.GeocodingItem&&t.onAddressSelected(e.toText(),e.point)}S.current.blur()}else S.current.blur()}),[f,w]),E=r?u.default.container+" "+u.default.fullscreen:u.default.container,k=t.point.type;return i.default.createElement("div",{className:E},i.default.createElement("div",{className:[u.default.inputContainer,t.dropPreviewIndex==t.index?t.dropPreviewIndex<t.moveStartIndex?u.default.topBorder:u.default.bottomBorder:{}].join(" ")},i.default.createElement("input",{style:t.moveStartIndex==t.index?{borderWidth:"2px",margin:"-1px"}:{},className:u.default.input,type:"text",ref:S,onChange:e=>{n(e.target.value),(0,p.textToCoordinate)(e.target.value)||b.request(e.target.value,"default"),t.onChange(e.target.value)},onKeyDown:C,onFocus:e=>{t.clearSelectedInput(),d(!0),e.target.select()},onBlur:()=>{b.cancel(),d(!1),_([])},value:e,placeholder:(0,h.tr)(k==o.QueryPointType.From?"from_hint":k==o.QueryPointType.To?"to_hint":"via_hint")}),i.default.createElement(g.default,{className:u.default.btnClose,onClick:()=>d(!1)},(0,h.tr)("back_to_map"))),f.length>0&&i.default.createElement(m,{inputRef:S.current},i.default.createElement(s.default,{items:f,highlightedItem:f[w],onSelect:e=>{var n;e instanceof s.GeocodingItem?(S.current.blur(),t.onAddressSelected(e.toText(),e.point)):e instanceof s.SelectCurrentLocationItem?(S.current.blur(),n=t.onAddressSelected,navigator.geolocation?(n((0,h.tr)("searching_location")+" ...",void 0),navigator.geolocation.getCurrentPosition((t=>{n((0,h.tr)("current_location"),{lat:t.coords.latitude,lng:t.coords.longitude})}),(t=>{l.default.dispatch(new a.ErrorAction((0,h.tr)("searching_location_failed")+": "+t.message)),n("",void 0)}),{timeout:3e5})):l.default.dispatch(new a.ErrorAction("Geolocation is not supported in this browser"))):e instanceof s.MoreResultsItem&&((0,p.textToCoordinate)(e.search)||b.request(e.search,"nominatim"))}})))};class v{constructor(t,e){this.requestId=0,this.timeout=new _(200),this.api=t,this.onSuccess=e}request(t,e){this.requestAsync(t,e).then((()=>{}))}cancel(){this.getNextId()}async requestAsync(t,e){const n=this.getNextId();if(this.timeout.cancel(),t&&!(t.length<2)){await this.timeout.wait();try{const r=await this.api.geocode(t,e),i=v.filterDuplicates(r.hits);n===this.requestId&&this.onSuccess(t,e,i)}catch(t){throw Error("Could not get geocoding results because: "+t)}}}getNextId(){return this.requestId++,this.requestId}static filterDuplicates(t){const e=new Set;return t.filter((t=>!e.has(t.osm_id)&&(e.add(t.osm_id),!0)))}}class _{constructor(t){this.handle=0,this.delay=t}wait(){return new Promise((t=>{this.handle=window.setTimeout(t,this.delay)}))}cancel(){clearTimeout(this.handle)}}},5563:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SelectCurrentLocation=e.MoreResultsEntry=e.MoreResultsItem=e.SelectCurrentLocationItem=e.GeocodingItem=void 0;const r=n(3940),i=r.__importDefault(n(5092)),o=r.__importStar(n(9526)),a=r.__importDefault(n(5601)),s=n(6645);class l{constructor(t,e,n){this.mainText=t,this.secondText=e,this.point=n}toText(){return this.mainText+", "+this.secondText}}e.GeocodingItem=l;class u{}e.SelectCurrentLocationItem=u;class c{constructor(t){this.search=t}}function h({item:t,isHighlighted:e,onSelect:n}){return o.default.createElement(f,{isHighlighted:e,onSelect:()=>n(t)},o.default.createElement("div",{className:i.default.moreResultsEntry},o.default.createElement("span",{className:i.default.moreResultsText},(0,s.tr)("search_with_nominatim"))))}function p({item:t,isHighlighted:e,onSelect:n}){return o.default.createElement(f,{isHighlighted:e,onSelect:()=>n(t)},o.default.createElement("div",{className:i.default.currentLocationEntry},o.default.createElement("div",{className:i.default.currentLocationIcon},o.default.createElement(a.default,null)),o.default.createElement("span",{className:i.default.mainText},(0,s.tr)("current_location"))))}function d({item:t,isHighlighted:e,onSelect:n}){return o.default.createElement(f,{isHighlighted:e,onSelect:()=>n(t)},o.default.createElement("div",{className:i.default.geocodingEntry,title:t.toText()},o.default.createElement("span",{className:i.default.mainText},t.mainText),o.default.createElement("span",{className:i.default.secondaryText},t.secondText)))}function f({isHighlighted:t,children:e,onSelect:n}){const[r,a]=(0,o.useState)(!1),s=t?i.default.selectableItem+" "+i.default.highlightedItem:i.default.selectableItem;return o.default.createElement("button",{className:s,onClick:()=>n(),onTouchEnd:t=>{t.preventDefault(),r||n()},onPointerCancel:()=>a(!0),onPointerDown:t=>{a(!1),t.preventDefault()}},e)}e.MoreResultsItem=c,e.default=function({items:t,highlightedItem:e,onSelect:n}){return o.default.createElement("ul",null,t.map(((t,r)=>o.default.createElement("li",{key:r,className:i.default.autocompleteItem},function(t,e,n){if(t instanceof l)return o.default.createElement(d,{item:t,isHighlighted:e,onSelect:n});if(t instanceof u)return o.default.createElement(p,{item:t,isHighlighted:e,onSelect:n});if(t instanceof c)return o.default.createElement(h,{item:t,isHighlighted:e,onSelect:n});throw Error("Unsupported item type: "+typeof t)}(t,e===t,n)))))},e.MoreResultsEntry=h,e.SelectCurrentLocation=p},6843:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.useRect=void 0;const r=n(3940),i=n(9526),o=n(3961),a=r.__importDefault(n(3658)),s=n(8957);function l(t,e){const[n,r]=(0,i.useState)(DOMRect.fromRect());return(0,i.useEffect)((()=>{e&&r(e.getBoundingClientRect())}),[e]),(0,i.useEffect)((()=>{const n=()=>{r(e.getBoundingClientRect())},i=document.getElementById(t);return i&&i.addEventListener("scroll",n,{passive:!0}),()=>{i&&i.removeEventListener("scroll",n)}}),[e]),n}e.default=function({children:t,inputElement:e,keepClearAtBottom:n}){const r=(0,i.useRef)(document.createElement("div")),u=(0,i.useRef)(document.getElementById(s.POPUP_CONTAINER_ID)),c=l(s.SIDEBAR_CONTENT_ID,e);return(0,i.useEffect)((()=>(r.current.className=a.default.popup,u.current.appendChild(r.current),()=>{u.current.removeChild(r.current)})),[r]),(0,i.useEffect)((()=>{const t=u.current.getBoundingClientRect();t.bottom-c.bottom>n?function(t,e,n){const r=t.bottom-e.top,i=t.left-e.left;n.style.top=r+"px",n.style.bottom="",n.style.left=i+"px",n.style.width=t.width+"px"}(c,t,r.current):function(t,e,n){const r=e.bottom-t.bottom+t.height,i=t.left-e.left;n.style.bottom=r+"px",n.style.top="",n.style.left=i+"px",n.style.width=t.width+"px"}(c,t,r.current)}),[c]),(0,o.createPortal)(t,r.current)},e.useRect=l},5926:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(3940),i=r.__importStar(n(9526)),o=r.__importDefault(n(4395)),a=r.__importDefault(n(7762)),s=n(5777),l=r.__importDefault(n(7244)),u=r.__importDefault(n(7245)),c=r.__importDefault(n(2010)),h=r.__importDefault(n(9739)),p=r.__importDefault(n(3783)),d=n(6657),f=n(6645),g=n(3401);e.default=function({points:t}){let[e,n]=(0,i.useState)(!0),[r,l]=(0,i.useState)(-1),[c,p]=(0,i.useState)(-1);const d=(0,i.useContext)(g.ShowDistanceInMilesContext);return i.default.createElement("div",{className:a.default.searchBoxParent},i.default.createElement("div",{className:a.default.searchBox},t.map(((a,u)=>i.default.createElement(m,{key:a.id,index:u,points:t,deletable:t.length>2,onChange:()=>{o.default.dispatch(new s.ClearRoute),o.default.dispatch(new s.InvalidatePoint(a))},showTargetIcons:e,moveStartIndex:r,onMoveStartSelect:(t,e)=>{l(t),n(e)},dropPreviewIndex:c,onDropPreviewSelect:p})))),i.default.createElement("div",{className:a.default.lastSearchLine},i.default.createElement(h.default,{style:e&&r>=0&&r+1<t.length?{paddingTop:"2rem"}:{},onClick:()=>o.default.dispatch(new s.AddPoint(t.length,{lat:0,lng:0},!1)),className:a.default.addSearchBox},i.default.createElement(u.default,null),i.default.createElement("div",null,(0,f.tr)("add_to_route"))),i.default.createElement(h.default,{className:a.default.mikm,title:(0,f.tr)("distance_unit",[d?"mi":"km"]),onClick:()=>o.default.dispatch(new s.ToggleDistanceUnits)},d?"mi":"km")))};const m=({index:t,points:e,onChange:n,deletable:r,moveStartIndex:u,showTargetIcons:g,onMoveStartSelect:m,dropPreviewIndex:y,onDropPreviewSelect:v})=>{let _=e[t];const b=(0,i.useRef)(null);function w(){v(-1);let n=u<t?t+1:t;o.default.dispatch(new s.MovePoint(e[u],n)),m(t,!1),setTimeout((()=>{m(-1,!0)}),1e3)}return(0,i.useEffect)((()=>{var e;0==t&&(null===(e=b.current)||void 0===e||e.focus())}),[]),i.default.createElement(i.default.Fragment,null,(u<0||u==t)&&i.default.createElement("div",{ref:b,tabIndex:-1,title:(0,f.tr)("drag_to_reorder"),className:a.default.markerContainer,draggable:!0,onDragStart:()=>{u!=t&&(m(t,!0),v(-1))},onDragEnd:()=>{m(-1,!0),v(-1)},onClick:()=>{u==t?(m(-1,!0),v(-1)):m(t,!0)}},i.default.createElement(d.MarkerComponent,{number:t>0&&t+1<e.length?t:void 0,cursor:"ns-resize",color:u>=0?"gray":_.color})),u>=0&&u!=t&&i.default.createElement(h.default,{title:(0,f.tr)("click to move selected input here"),className:[g?"":a.default.hide,a.default.markerTarget,y>=0&&y==t?a.default.dropPreview:""].join(" "),style:u>t?{marginTop:"-2.4rem"}:{marginBottom:"-2.4rem"},onDragOver:e=>{e.preventDefault(),v(t)},onDragLeave:()=>v(-1),onDrop:w,onClick:w},i.default.createElement(c.default,null)),i.default.createElement("div",{className:a.default.searchBoxInput},i.default.createElement(p.default,{moveStartIndex:u,dropPreviewIndex:y,index:t,point:_,onCancel:()=>console.log("cancel"),onAddressSelected:(t,e)=>o.default.dispatch(new s.SetPoint({..._,isInitialized:!!e,queryText:t,coordinate:e||_.coordinate},!0)),clearSelectedInput:()=>{m(-1,!0),v(-1)},onChange:n})),r&&i.default.createElement(h.default,{title:(0,f.tr)("delete_from_route"),onClick:()=>{o.default.dispatch(new s.RemovePoint(_)),m(-1,!0)},className:a.default.removeSearchBox},i.default.createElement(l.default,null)))}},2872:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(3940),i=r.__importDefault(n(9526)),o=r.__importDefault(n(8099)),a=r.__importDefault(n(4395)),s=n(5777),l=r.__importStar(n(5746)),u=r.__importDefault(n(9739)),c=r.__importDefault(n(8355)),h=r.__importDefault(n(2738)),p=r.__importDefault(n(7925)),d=r.__importDefault(n(1)),f=r.__importDefault(n(7839)),g=r.__importDefault(n(1218)),m=r.__importDefault(n(1179)),y=r.__importDefault(n(9234)),v=r.__importDefault(n(3368)),_=r.__importDefault(n(9326)),b=r.__importDefault(n(2326)),w=n(6645),x=r.__importDefault(n(91));e.default=function({routingProfiles:t,selectedProfile:e,customModelAllowed:n,customModelEnabled:r}){const S=l.extraProfiles?Object.keys(l.extraProfiles).map((t=>({name:t}))):[],C=t.concat(S);return i.default.createElement("div",{className:o.default.profilesParent},n&&i.default.createElement(u.default,{title:(0,w.tr)("open_custom_model_box"),className:r?o.default.enabledSettings:o.default.settings,onClick:()=>{r&&a.default.dispatch(new s.DismissLastError),a.default.dispatch(new s.ClearRoute),a.default.dispatch(new s.SetCustomModelBoxEnabled(!r))}},i.default.createElement(x.default,null)),i.default.createElement("ul",{className:o.default.profiles},C.map((t=>{const n=t.name===e.name?o.default.selectedProfile+" "+o.default.profileBtn:o.default.profileBtn;return i.default.createElement("li",{key:t.name},i.default.createElement(u.default,{title:(0,w.tr)(t.name),onClick:()=>a.default.dispatch(new s.SetVehicleProfile(t)),className:n},function(t){switch(t.name){case"car":return i.default.createElement(h.default,null);case"small_truck":return i.default.createElement(v.default,null);case"truck":return i.default.createElement(_.default,null);case"scooter":return i.default.createElement(y.default,null);case"foot":return i.default.createElement(p.default,null);case"hike":return i.default.createElement(d.default,null);case"bike":return i.default.createElement(c.default,null);case"mtb":return i.default.createElement(g.default,null);case"racingbike":return i.default.createElement(m.default,null);case"motorcycle":return i.default.createElement(f.default,null);case"wheelchair":return i.default.createElement(b.default,null);default:return t.name}}(t)))}))))}},5655:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(3940).__importDefault(n(4112)),i=n(5777);class o extends r.default{constructor(){super(o.getInitialState())}static getInitialState(){return{version:"",bbox:[0,0,0,0],profiles:[],elevation:!1,import_date:"",encoded_values:[]}}reduce(t,e){return e instanceof i.InfoReceived?e.result:t}}e.default=o},4395:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=new class{constructor(){this.receivers=[],this.isDispatching=!1}dispatch(t){this.isDispatching&&console.error("No calls to 'dispatch' allowed while another dispatch is ongoing."),this.isDispatching=!0,this.receivers.forEach((e=>e.receive(t))),this.isDispatching=!1}register(t){this.receivers.push(t)}clear(){this.receivers=[]}}},5546:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(3940).__importDefault(n(4112)),i=n(5777);class o extends r.default{constructor(){super(o.getInitialState())}static getInitialState(){return{isDismissed:!0,lastError:""}}reduce(t,e){return e instanceof i.ErrorAction?{lastError:e.message,isDismissed:!1}:e instanceof i.DismissLastError||e instanceof i.RouteRequestSuccess?{...t,isDismissed:!0}:t}}e.default=o},2707:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(6162),i=n(5777);function o(t,e,n,i){const o=(0,r.fromLonLat)([e[0],e[1]]),a=(0,r.fromLonLat)([e[2],e[3]]);t.getView().fit([o[0],o[1],a[0],a[1]],{size:i||t.getSize(),padding:n?[200,16,32,16]:[100,100,300,500]})}e.default=class{constructor(t,e,n){this.map=t,this.routeStore=e,this.isSmallScreenQuery=n}receive(t){const e=this.isSmallScreenQuery();if(t instanceof i.SetInitialBBox)o(this.map,t.bbox,e,[window.innerWidth,window.innerHeight]);else if(t instanceof i.QueryOSM)window.open(`https://www.openstreetmap.org/query?lat=${t.coordinate.lat}&lon=${t.coordinate.lng}`,"_blank","noopener,noreferrer");else if(t instanceof i.ZoomMapToPoint)this.map.getView().animate({zoom:t.zoom,center:(0,r.fromLonLat)([t.coordinate.lng,t.coordinate.lat]),duration:400});else if(t instanceof i.RouteRequestSuccess){const n=t.result.paths[0].bbox,r=[n[0],n[1],n[2],n[3]];t.request.points.forEach((t=>{r[0]=Math.min(t[0],r[0]),r[1]=Math.min(t[1],r[1]),r[2]=Math.max(t[0],r[2]),r[3]=Math.max(t[1],r[3])})),r[2]-r[0]<.001&&(r[0]-=5e-4,r[2]+=5e-4),r[3]-r[1]<.001&&(r[1]-=5e-4,r[3]+=5e-4),t.request.zoom&&o(this.map,r,e)}else if(t instanceof i.SetSelectedPath)o(this.map,t.path.bbox,e);else if(t instanceof i.PathDetailsRangeSelected){const n=t.bbox?t.bbox:this.routeStore.state.selectedPath.bbox;n&&o(this.map,n,e)}else t instanceof i.InfoReceived&&("[-180,-90,180,90]"===JSON.stringify(t.result.bbox)||o(this.map,t.result.bbox,e))}}},4732:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(3940).__importDefault(n(4112)),i=n(5777);class o extends r.default{constructor(){super({point:null,properties:{}})}reduce(t,e){return e instanceof i.RoutingGraphHover?{...t,point:e.point,properties:e.properties}:t}}e.default=o},9931:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(3940),i=r.__importDefault(n(4112)),o=n(5777),a=r.__importDefault(n(5746)),s=a.default.keys.omniscale,l=a.default.keys.maptiler,u=a.default.keys.thunderforest,c=a.default.keys.kurviger,h='&copy; <a href="http://www.openstreetmap.org/copyright" target="_blank">OpenStreetMap</a> contributors',p=window.devicePixelRatio>1||window.matchMedia&&window.matchMedia("(-webkit-min-device-pixel-ratio: 1.5),(min--moz-device-pixel-ratio: 1.5),(-o-min-device-pixel-ratio: 3/2),(min-resolution: 1.5dppx)").matches,d=p?2:1,f=p?"@2x":"",g={name:"Omniscale",type:"raster",url:["https://maps.omniscale.net/v2/"+s+"/style.default/{z}/{x}/{y}.png"+(p?"?hq=true":"")],attribution:h+', &copy; <a href="https://maps.omniscale.com/" target="_blank">Omniscale</a>',tilePixelRatio:d},m="/raster/styles/kurviger-liberty/{z}/{x}/{y}"+f+".png?key="+c,y=[g,{name:"OpenStreetMap",type:"raster",url:["https://a.tile.openstreetmap.org/{z}/{x}/{y}.png","https://b.tile.openstreetmap.org/{z}/{x}/{y}.png","https://c.tile.openstreetmap.org/{z}/{x}/{y}.png"],attribution:h,maxZoom:19},{name:"Esri Satellite",type:"raster",url:["https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}"],attribution:'&copy; <a href="http://www.esri.com/" target="_blank">Esri</a> i-cubed, USDA, USGS, AEX, GeoEye, Getmapping, Aerogrid, IGN, IGP, UPR-EGP, and the GIS User Community',maxZoom:18},{name:"MapTiler Satellite",type:"vector",url:"https://api.maptiler.com/maps/hybrid/style.json?key="+l,attribution:h+', &copy; <a href="https://www.maptiler.com/copyright/" target="_blank">MapTiler</a>'},{name:"MapTiler",type:"vector",url:"https://api.maptiler.com/maps/1f566542-c726-4cc5-8f2d-2309b90083db/style.json?key="+l,attribution:h+', &copy; <a href="https://www.maptiler.com/copyright/" target="_blank">MapTiler</a>'},{name:"TF Transport",type:"raster",url:["https://a.tile.thunderforest.com/transport/{z}/{x}/{y}"+f+".png?apikey="+u,"https://b.tile.thunderforest.com/transport/{z}/{x}/{y}"+f+".png?apikey="+u,"https://c.tile.thunderforest.com/transport/{z}/{x}/{y}"+f+".png?apikey="+u],attribution:h+', <a href="https://www.thunderforest.com/maps/transport/" target="_blank">Thunderforest Transport</a>',tilePixelRatio:d},{name:"TF Cycle",type:"raster",url:["https://a.tile.thunderforest.com/cycle/{z}/{x}/{y}"+f+".png?apikey="+u,"https://b.tile.thunderforest.com/cycle/{z}/{x}/{y}"+f+".png?apikey="+u,"https://c.tile.thunderforest.com/cycle/{z}/{x}/{y}"+f+".png?apikey="+u],attribution:h+', <a href="https://www.thunderforest.com/maps/opencyclemap/" target="_blank">Thunderforest Cycle</a>',tilePixelRatio:d},{name:"TF Outdoors",type:"raster",url:["https://a.tile.thunderforest.com/outdoors/{z}/{x}/{y}"+f+".png?apikey="+u,"https://b.tile.thunderforest.com/outdoors/{z}/{x}/{y}"+f+".png?apikey="+u,"https://c.tile.thunderforest.com/outdoors/{z}/{x}/{y}"+f+".png?apikey="+u],attribution:h+', <a href="https://www.thunderforest.com/maps/outdoors/" target="_blank">Thunderforest Outdoors</a>',tilePixelRatio:d},{name:"TF Atlas",type:"raster",url:["https://a.tile.thunderforest.com/atlas/{z}/{x}/{y}"+f+".png?apikey="+u,"https://b.tile.thunderforest.com/atlas/{z}/{x}/{y}"+f+".png?apikey="+u,"https://c.tile.thunderforest.com/atlas/{z}/{x}/{y}"+f+".png?apikey="+u],attribution:h+', <a href="https://thunderforest.com/maps/atlas/" target="_blank">Thunderforest Atlas</a>',tilePixelRatio:d},{name:"Kurviger Liberty",type:"raster",url:["https://a-tiles.mapilion.com"+m,"https://b-tiles.mapilion.com"+m,"https://c-tiles.mapilion.com"+m,"https://d-tiles.mapilion.com"+m,"https://e-tiles.mapilion.com"+m],attribution:h+',&copy; <a href="https://kurviger.de/" target="_blank">Kurviger</a> &copy; <a href="https://mapilion.com/attribution" target="_blank">Mapilion</a> <a href="http://www.openmaptiles.org/" target="_blank">&copy; OpenMapTiles</a>',maxZoom:22,tilePixelRatio:d},{name:"Mapilion",type:"vector",url:"https://tiles.mapilion.com/assets/osm-bright/style.json?key="+c,attribution:h+', &copy; <a href="https://mapilion.com/attribution" target="_blank">Mapilion</a> <a href="http://www.openmaptiles.org/" target="_blank">&copy; OpenMapTiles</a>'},{name:"OpenStreetmap.de",type:"raster",url:["https://a.tile.openstreetmap.de/{z}/{x}/{y}.png","https://b.tile.openstreetmap.de/{z}/{x}/{y}.png","https://c.tile.openstreetmap.de/{z}/{x}/{y}.png"],attribution:h,maxZoom:18},{name:"Lyrk",type:"raster",url:["https://tiles.lyrk.org/lr/{z}/{x}/{y}?apikey=6e8cfef737a140e2a58c8122aaa26077"],attribution:h+', <a href="https://geodienste.lyrk.de/">Lyrk</a>',maxZoom:15},{name:"WanderReitKarte",type:"raster",url:["https://topo.wanderreitkarte.de/topo/{z}/{x}/{y}.png","https://topo2.wanderreitkarte.de/topo/{z}/{x}/{y}.png","https://topo3.wanderreitkarte.de/topo/{z}/{x}/{y}.png","https://topo4.wanderreitkarte.de/topo/{z}/{x}/{y}.png"],attribution:h+', <a href="https://wanderreitkarte.de" target="_blank">WanderReitKarte</a>',maxZoom:18}];class v extends i.default{constructor(){super(v.getInitialState())}static getInitialState(){const t=y.find((t=>t.name===a.default.defaultTiles));return t||console.warn(`Could not find tile layer specified in config: '${a.default.defaultTiles}', using default instead`),{selectedStyle:t||g,styleOptions:y,routingGraphEnabled:!1,urbanDensityEnabled:!1,isMapLoaded:!1}}reduce(t,e){return e instanceof o.SelectMapStyle?{...t,selectedStyle:e.styleOption}:e instanceof o.ToggleRoutingGraph?{...t,routingGraphEnabled:e.routingGraphEnabled}:e instanceof o.ToggleUrbanDensityLayer?{...t,urbanDensityEnabled:e.urbanDensityEnabled}:e instanceof o.MapIsLoaded?{...t,isMapLoaded:!0}:t}}e.default=v},8545:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(3940).__importDefault(n(4112)),i=n(5777);class o extends r.default{constructor(){super(o.getInitialState())}static getInitialState(){return{pathDetailsPoint:null,pathDetailBbox:void 0,pathDetailsHighlightedSegments:[]}}reduce(t,e){return e instanceof i.PathDetailsHover?{...t,pathDetailsPoint:e.pathDetailsPoint}:e instanceof i.PathDetailsRangeSelected?{...t,pathDetailBbox:e.bbox?e.bbox:void 0}:e instanceof i.PathDetailsElevationSelected?{...t,pathDetailsHighlightedSegments:e.segments}:t}}e.default=o},8512:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RequestState=e.QueryPointType=void 0;const r=n(3940),i=n(1908),o=n(858),a=r.__importDefault(n(4112)),s=r.__importDefault(n(4395)),l=n(5777),u=n(3384);var c,h;!function(t){t[t.From=0]="From",t[t.To=1]="To",t[t.Via=2]="Via"}(c=e.QueryPointType||(e.QueryPointType={})),function(t){t[t.SENT=0]="SENT",t[t.SUCCESS=1]="SUCCESS",t[t.FAILED=2]="FAILED"}(h=e.RequestState||(e.RequestState={}));class p extends a.default{constructor(t,e=null){super(p.getInitialState(e)),this.api=t}static getInitialState(t){return{queryPoints:[p.getEmptyPoint(0,c.From),p.getEmptyPoint(1,c.To)],nextQueryPointId:2,currentRequest:{subRequests:[]},maxAlternativeRoutes:3,routingProfile:{name:""},customModelEnabled:null!=t,customModelValid:!1,customModel:null,zoom:!0,initialCustomModelStr:t}}reduce(t,e){if(e instanceof l.InvalidatePoint){const n=p.replacePoint(t.queryPoints,{...e.point,isInitialized:!1});return{...t,queryPoints:n}}if(e instanceof l.ClearPoints){const e=t.queryPoints.map((t=>({...t,queryText:"",point:{lat:0,lng:0},isInitialized:!1})));return{...t,queryPoints:e}}if(e instanceof l.SetPoint){const n={...t,queryPoints:p.replacePoint(t.queryPoints,e.point),zoom:e.zoom};return this.routeIfReady(n)}if(e instanceof l.MovePoint){const n=p.movePoint(t.queryPoints,e.point,e.newIndex).map(((e,n)=>{const r=p.getPointType(n,t.queryPoints.length);return{...e,color:p.getMarkerColor(r),type:r,id:this.state.nextQueryPointId+n}})),r={...t,nextQueryPointId:t.nextQueryPointId+t.queryPoints.length,queryPoints:n};return this.routeIfReady(r)}if(e instanceof l.AddPoint){const n=t.queryPoints.slice(),r=e.isInitialized?(0,i.coordinateToText)(e.coordinate):"";n.splice(e.atIndex,0,{coordinate:e.coordinate,id:t.nextQueryPointId,queryText:r,color:"",isInitialized:e.isInitialized,type:c.Via});const o=n.map(((t,e)=>{const r=p.getPointType(e,n.length);return{...t,color:p.getMarkerColor(r),type:r}})),a={...t,nextQueryPointId:t.nextQueryPointId+1,queryPoints:o};return this.routeIfReady(a)}if(e instanceof l.SetRoutingParametersAtOnce){const n=e.queryPoints.map(((n,r)=>{const o=p.getPointType(r,e.queryPoints.length),a=n.isInitialized&&!n.queryText?(0,i.coordinateToText)(n.coordinate):n.queryText;return{...n,id:t.nextQueryPointId+r,type:o,color:p.getMarkerColor(o),queryText:a}})),r=t.nextQueryPointId+n.length;return this.routeIfReady({...t,queryPoints:n,nextQueryPointId:r,routingProfile:e.routingProfile})}if(e instanceof l.RemovePoint){const n=t.queryPoints.filter((t=>t.id!==e.point.id)).map(((e,n)=>{const r=p.getPointType(n,t.queryPoints.length-1);return{...e,color:p.getMarkerColor(r),type:r}})),r={...t,queryPoints:n};return this.routeIfReady(r)}if(e instanceof l.InfoReceived){if(t.routingProfile.name||e.result.profiles.length<=0)return t;const n=e.result.profiles[0];return this.routeIfReady({...t,routingProfile:n})}if(e instanceof l.SetVehicleProfile){const n={...t,routingProfile:e.profile};return this.routeIfReady(n)}if(e instanceof l.SetCustomModel){const n={...t,customModel:e.customModel,customModelValid:e.valid};return e.issueRouteRequest?this.routeIfReady(n):n}if(e instanceof l.RouteRequestSuccess||e instanceof l.RouteRequestFailed)return p.handleFinishedRequest(t,e);if(e instanceof l.SetCustomModelBoxEnabled){const n={...t,customModelEnabled:e.enabled};return this.routeIfReady(n)}return t}static handleFinishedRequest(t,e){const n=e instanceof l.RouteRequestSuccess?h.SUCCESS:h.FAILED,r=p.replaceSubRequest(t.currentRequest.subRequests,e.request,n);return{...t,currentRequest:{subRequests:r}}}routeIfReady(t){if(p.isReadyToRoute(t)){let e;const n=function(t){let e=0;for(let n=1;n<t.length;n++){const r=(0,u.calcDist)(t[n-1].coordinate,t[n].coordinate);e=Math.max(r,e)}return e}(t.queryPoints);if(t.customModelEnabled)if(n<2e5)e=[p.buildRouteRequest(t)];else{if(!(n<5e5))return s.default.dispatch(new l.ErrorAction("Using the custom model feature is unfortunately not possible when the request points are further than "+(0,i.metersToText)(5e5,!1)+" apart.")),t;e=[p.buildRouteRequest({...t,maxAlternativeRoutes:1})]}else e=[p.buildRouteRequest({...t,maxAlternativeRoutes:1})],2===t.queryPoints.length&&t.maxAlternativeRoutes>1&&(o.ApiImpl.isMotorVehicle(t.routingProfile.name)||n<5e5)&&e.push(p.buildRouteRequest(t));return{...t,currentRequest:{subRequests:this.send(e)}}}return t}send(t){const e=t.map((t=>({args:t,state:h.SENT})));return e.forEach((t=>this.api.routeWithDispatch(t.args))),e}static isReadyToRoute(t){return!(t.customModelEnabled&&!t.customModel||t.customModelEnabled&&t.customModel&&!t.customModelValid||t.queryPoints.length<=1||!t.queryPoints.every((t=>t.isInitialized))||!t.routingProfile.name)}static movePoint(t,e,n){if(n<0)return t;let r=t.filter(((t,r)=>t.id!=e.id||(r<n&&n--,!1)));return n>=t.length?t:(r.splice(n,0,e),r)}static replacePoint(t,e){return d(t,(t=>t.id===e.id),(()=>e))}static replaceSubRequest(t,e,n){return d(t,(t=>t.args===e),(t=>({...t,state:n})))}static getMarkerColor(t){switch(t){case c.From:return"#7cb342";case c.To:return"#F97777";default:return"#76D0F7"}}static getPointType(t,e){return 0===t?c.From:t===e-1?c.To:c.Via}static buildRouteRequest(t){return{points:t.queryPoints.map((t=>[t.coordinate.lng,t.coordinate.lat])),profile:t.routingProfile.name,maxAlternativeRoutes:t.maxAlternativeRoutes,customModel:t.customModelEnabled?t.customModel:null,zoom:t.zoom}}static getEmptyPoint(t,e){return{isInitialized:!1,queryText:"",coordinate:{lat:0,lng:0},id:t,color:p.getMarkerColor(e),type:e}}}function d(t,e,n){const r=[];for(const i of t)e(i)?r.push(n(i)):r.push(i);return r}e.default=p},8334:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(3940).__importDefault(n(4112)),i=n(5777),o=n(8512);class a extends r.default{constructor(t){super(a.getInitialState()),this.queryStore=t}static getEmptyPath(){return{bbox:void 0,instructions:[],points:{coordinates:[],type:"LineString"},points_encoded:!1,snapped_waypoints:{type:"LineString",coordinates:[]},ascend:0,descend:0,details:{max_speed:[],street_name:[],toll:[],road_environment:[],road_class:[],track_type:[],country:[]},distance:0,points_order:[],time:0,description:""}}reduce(t,e){return e instanceof i.RouteRequestSuccess?this.reduceRouteReceived(t,e):e instanceof i.SetSelectedPath?{...t,selectedPath:e.path}:e instanceof i.SetPoint||e instanceof i.ClearRoute||e instanceof i.ClearPoints||e instanceof i.RemovePoint?a.getInitialState():t}static getInitialState(){return{routingResult:{paths:[],info:{copyright:[],took:0}},selectedPath:a.getEmptyPath()}}reduceRouteReceived(t,e){return this.isStaleRequest(e.request)?t:a.containsPaths(e.result.paths)?{routingResult:e.result,selectedPath:e.result.paths[0]}:a.getInitialState()}isStaleRequest(t){const e=this.queryStore.state.currentRequest.subRequests;let n=-1,r=-1;for(let i=0;i<e.length;i++){const a=e[i];a.args===t&&(n=i),a.state===o.RequestState.SUCCESS&&(r=i)}return n<0&&n<r}static containsPaths(t){return t.length>0}}e.default=a},500:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(3940).__importDefault(n(4112)),i=n(5777);class o extends r.default{constructor(){super({showDistanceInMiles:!1})}reduce(t,e){return e instanceof i.ToggleDistanceUnits?{...t,showDistanceInMiles:!t.showDistanceInMiles}:t}}e.default=o},4112:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=class{constructor(t){this._subscriptions=[],this._state=t}get state(){return this._state}receive(t){const e=this.reduce(this._state,t);e!==this._state&&this.setState(e)}register(t){this._subscriptions.push(t)}deregister(t){this._subscriptions=this._subscriptions.filter((e=>e!==t))}setState(t){this._state=t,this.notifyChanged()}notifyChanged(){this._subscriptions.forEach((t=>t()))}}},1018:(t,e)=>{"use strict";let n,r,i,o,a,s,l,u;Object.defineProperty(e,"__esModule",{value:!0}),e.getMapFeatureStore=e.getPathDetailsStore=e.getMapOptionsStore=e.getErrorStore=e.getApiInfoStore=e.getRouteStore=e.getQueryStore=e.getSettingsStore=e.setStores=void 0,e.setStores=function(t){n=t.settingsStore,r=t.queryStore,i=t.routeStore,o=t.infoStore,a=t.errorStore,s=t.mapOptionsStore,l=t.pathDetailsStore,u=t.mapFeatureStore},e.getSettingsStore=()=>n,e.getQueryStore=()=>r,e.getRouteStore=()=>i,e.getApiInfoStore=()=>o,e.getErrorStore=()=>a,e.getMapOptionsStore=()=>s,e.getPathDetailsStore=()=>l,e.getMapFeatureStore=()=>u},6645:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.tr=e.getTranslation=e.setTranslation=e.Translation=void 0;const r=n(3940).__importDefault(n(4238));class i{constructor(t,e,n){if(!e)throw Error("Translation is undefined");if(!n)throw Error("Translation fallback is undefined");this.lang=t,this.data=e,this.fallback=n}get(t,e){let n=this.data[t];if(!n&&(n=this.fallback[t],!n))return t;if(e)for(let t=0;t<e.length;t++)n=n.replace("%"+(t+1)+"$s",e[t]);return n||""}getLang(){return this.lang}}let o;function a(){if(!o)throw new Error("init translation via setTranslation before using getTranslation");return o}e.Translation=i,e.setTranslation=function(t,e=!1){if(o&&!e)throw new Error("translation already initialized");t=t.replace("-","_");let n=r.default,a=Object.keys(n).find((e=>t==e||e.indexOf("_")>0&&t==e.substring(0,e.indexOf("_"))));if(!a){let e=t.length>2?t.substring(0,2):t;a=Object.keys(n).find((t=>t.startsWith(e))),a||(a="en_US",console.warn("cannot find language "+t+" fallback to "+a))}return o=new i(a,n[a],n.en_US)},e.getTranslation=a,e.tr=function(t,e){return a().get(t,e)}},6089:t=>{"use strict";t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAADCAYAAAC09K7GAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9sJDw4cOCW1/KIAAAAZdEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVBXgQ4XAAAAHElEQVQI12NggIL/DAz/GdA5/xkY/qPKMDAwAADLZwf5rvm+LQAAAABJRU5ErkJggg=="},7735:t=>{"use strict";t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAADCAYAAAC09K7GAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9sJFhQXEbhTg7YAAAAZdEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVBXgQ4XAAAAMklEQVQI12NkgIIvJ3QXMjAwdDN+OaEbysDA4MPAwNDNwMCwiOHLCd1zX07o6kBVGQEAKBANtobskNMAAAAASUVORK5CYII="},6192:t=>{"use strict";t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHCAMAAADzjKfhAAAACVBMVEUAAAAAAAC/v7914kyHAAAAAXRSTlMAQObYZgAAACNJREFUeNo1ioEJAAAIwmz/H90iFFSGJgFMe3gaLZ0od+9/AQZ0ADosbYraAAAAAElFTkSuQmCC"},4562:t=>{"use strict";t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAHlBMVEW7AAC7AACxAAC7AAC7AAAAAAC4AAC5AAD///+7AAAUdclpAAAABnRSTlMXnORSiwCK0ZKSAAAATUlEQVR42mWPOQ7AQAgDuQLx/z8csYRmPRIFIwRGnosRrpamvkKi0FTIiMASR3hhKW+hAN6/tIWhu9PDWiTGNEkTtIOucA5Oyr9ckPgAWm0GPBog6v4AAAAASUVORK5CYII="},6050:t=>{"use strict";t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAANlBMVEX/uwDvrwD/uwD/uwD/uwD/uwD/uwD/uwD/uwD6twD/uwAAAADurwD2tQD7uAD+ugAAAAD/uwDhmeTRAAAADHRSTlMJ8mN1EYcbmiixgACm7WbuAAAAVklEQVR42n3PUQqAIBBFUU1LLc3u/jdbOJoW1P08DA9Gba8+YWJ6gNJoNYIBzAA2chBth5kLmG9YUoG0NHAUwFXwO9LuBQL1giCQb8gC9Oro2vp5rncCIY8L8uEx5ZkAAAAASUVORK5CYII="},9994:t=>{"use strict";t.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTc5MiIgaGVpZ2h0PSIxNzkyIiB2aWV3Qm94PSIwIDAgMTc5MiAxNzkyIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxwYXRoIGQ9Ik0xOTIwIDE1MzZ2MTI4aC0yMDQ4di0xNTM2aDEyOHYxNDA4aDE5MjB6bS0zODQtMTAyNGwyNTYgODk2aC0xNjY0di01NzZsNDQ4LTU3NiA1NzYgNTc2eiIvPjwvc3ZnPg=="},8633:t=>{"use strict";t.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTc5MiIgaGVpZ2h0PSIxNzkyIiB2aWV3Qm94PSIwIDAgMTc5MiAxNzkyIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxwYXRoIGQ9Ik0xNDkwIDEzMjJxMCA0MC0yOCA2OGwtMTM2IDEzNnEtMjggMjgtNjggMjh0LTY4LTI4bC0yOTQtMjk0LTI5NCAyOTRxLTI4IDI4LTY4IDI4dC02OC0yOGwtMTM2LTEzNnEtMjgtMjgtMjgtNjh0MjgtNjhsMjk0LTI5NC0yOTQtMjk0cS0yOC0yOC0yOC02OHQyOC02OGwxMzYtMTM2cTI4LTI4IDY4LTI4dDY4IDI4bDI5NCAyOTQgMjk0LTI5NHEyOC0yOCA2OC0yOHQ2OCAyOGwxMzYgMTM2cTI4IDI4IDI4IDY4dC0yOCA2OGwtMjk0IDI5NCAyOTQgMjk0cTI4IDI4IDI4IDY4eiIvPjwvc3ZnPg=="},6094:t=>{"use strict";t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACEAAABACAYAAACUTB6QAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAARtwAAEbcBmmNTKwAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAKkSURBVGiB7Zg/aBNhGId/71EJ0lQdCmL9MzgoCg5ChdKpGWwwbZPJKi6CICiKDhZRWv90Lbq4iLi4uXTpdwm2IBQnESy4KChYwVUQHIRo6fdzMG+4prnc1cudy/dAIHf3cu+TJ5clIIkkr7GxsRujo6O9Se7hIQHlcrlfRO7ncrnLSe6TSALAFIA8yanJycntmUuUy+V+klcah7vr9frFzCXQqKAHJG+WSqVcZhItFZS9nuddyEwCLRUUEbk1ODi4LXWJkArKgYGBgfOpSyCkgkLydqFQ6ElNIqKCcjCfz59LTQIRFQJMz87Oxr537MGYFZRDKysrZ7ougfgVAADW2hkRkTizQjJyqFHhy1YkGpz2fX8+aihuiS1VCBCrRmSJBBUAACQr1WrVdJqJU+JfK/xd4Hl3omY6lkhaoblEpGSMeRF2PapEogoKyY41Qkt0q0JA5GS1Wn3Z7lqnEl2p0FzU4dloW6LbFZrLREaMMa82CYbMd7WCEvZsbCqRVoUAw77vvw6eaFcilQqKiNzddC5YIoMKAABr7YlarfZWj1tLpFqhubTll9IskVUFxVp7vFarvQM2lsikguJ53oy+F5KRFUTkB8kPAH4BGImx45uIrJI8AmBHyAxF5Jgx5r2W2FBBRD4DmBORIoB9xphdvu8Pk3wSQwAismqMGfJ9f+f6+vp+a+0pEXkI4FNwjOQMAMjExIRW+E3yMcl5/a5aGR8fPysiz2NIvDHGDLW7VqlUDltrKwCuAdjjed7RHpLXATxbW1u7t7i4+D3OJ03CwsLCRwBzhULhUV9f31WSl3pE5Kkx5mvay1tZXl6uA3hQLBZ7vf8hEGRpaeln0j9JuoKTUJyE4iQUJ6E4CcVJKE5CcRKKk1CchOIkFCehOAnFSSh/ABGodcE7J4gvAAAAAElFTkSuQmCC"},2430:t=>{"use strict";t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC0AAABACAYAAACOcP4eAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAPMQAADzEBHgryygAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAcZSURBVGiB7ZltjFxVGcd/z53Zpdt2tzubGECb0nQXE6Hxg01NNrvqpHPv3I5lP2CyIK0bBIxNKOGlJoJR6RI0WBIIqKGtBtEYX3CiEetmd+69sx1pt8FQoTUQ4ku1ppIqCGzB9G3v3McPO0Om0zs7d6YzLiT9f5p7zv+c85szz3nOOXewLGunbdt9vI9kAH2q+rJlWZ9ebJioMkQkr6pXAL81TXPPyMjI0sWGqicDmAYUEBH54pkzZw7Ztv2xReZaUAKQTqePqOpHK8p9EfnmihUrHsxms8VFYqspAyAIgnxVeVxVd8zOzh6wbXvg/wk0ODjYVc8TA1izZk1cRDaH1K8MguCWgYGBN44ePfqHlhNWKZlMxru6ug709/evTSQS+RMnTgRhPgNg6dKlzwJzYQYR6VbVPaZpehs3blzdPmSIx+M7gPXAnX19fa5t21eGMpU/WJZ1ABiq0+8p4CbXdX/TMtKSbNv+eBAEM8DbwFFgvYj8S0Q253K5fZXeWPlDf3//VcCn6vTdAdzU39/fv2rVKvfYsWPnWgGcTCaXGIYxAVyhql/wfX97LBa7DNioqp8bGBgwxsbGni0UCgql8AAQkerFuJDGOjo6/mia5nAroDs6OnYC14rIM57n/bRQKPiu694nItcD76jqjpmZGTeVSl0OFeExOjraOTs7+yawrIHxfOCR3t7e+7PZbFOzbppmsjRh/4nH42snJydfr6xPpVIfjsVi2VJKPh4EwY1SabAsaz/QzOw9H4vFxqampv7USKNMJtPj+/4RYLWIXO84zq/DfIODg13d3d3PlcDzRmWliLzSBDDA+mKx+KJlWXdR8evVk+/7jwKrgR/XAgbo7u4eVtW1wJsicst50EEQ7GoSGqALeMyyrKkNGzZ8qJ45nU5fB9wGvNrZ2XlXLV8mk/mAqv6I+XPS7Y7jHD8Penh4+AjwxkWAA6RjsdhLpmmGbVZlkB5V3QOoqt42MTHxVg2rzM3N/QC4UlW/5zjO01CRPQDGx8cDYF9Y6wbVKyI/sSzrF5s2bUpUVxaLxQeADwI/9DwvV6sT0zS3ich1wCtdXV33lMuNEG8jqa+eRs+dO/eiaZrJckE6nV6rqtuAt+Lx+L21Gtq2fa2IPAycBTbv3bv3VE1owzC8FgGfAZ4DjojIzalU6hpAVHUX85vUV6rTW1mDg4NdQRD8nPl1cq/ruocr6+PVDXK53F8ty/oHcFWjlCLyT+CJIAj2JRKJF6pzdzqdvlFVh4Hnh4aGvu+6bmg/y5cv/xawFphwXffb1fUXQAOoal5Ebm0UWlXp7OzcHbaw1q1b16Gq3yj5tpfWzwWybfsTQRDcAbxeYtBqT1hMYxjGdKPAJa08e/bsd8IqEonEVmCgtFUfCPOUwuLJEtc2x3FeC+ULKywWix4h3zCKRGRLOp3+bGXZyMjIUhH5GlAUka/Warts2bIHgKuBX7mum63lC4XO5/P/Bl5uBhpAVXeZprmq/Hz69OlbgcuBn+VyudB+U6nUNSJyNzAbBMHtC/UfCl1SsyEC0GsYxpOAJJPJuIh8CVAR2VkTxDAeBTpU9eulSauphaDD8vXjwJ+jUKuqaVnWnfF4/Abmzxd7Hcd5KcxrmuZnABs4nEgk6h4lakKr6u+YP3qWn/cPDQ1tB7ZQ42oWop0ish1ARB4JM4yOjsZEpJxV7oly+68J7XneSeBQ6fEssHV8fDxwXfcQ8FBE6MuAdcBfHMfZH2Y4efLkzcBHRGTK87xClE4XCo93bzOq+pDnee8eW+fm5h4Efh8RHOBVQrLR+Pi4oar3MR/vNbNKtaJAn1LV71aWFwoFv1gsbgH+G2UQEflk5fmjrIMHD24CrhaRfC6Xe6El0D09PTPArnw+f8FxdXp6+qiqfjnKIKpqiMhTmUymp6r8DoAgCB6LCgx1oLPZ7LklS5bcX6ve87zdwETEsVb7vv94+aF0SU0Bx4eHhycj9gHUgQaoPBKGSEvngwXzaoU+b5rmDQAiMgrEROTpWueQWqoLXU+O47ymqluj+kVkdyaTWSkiGwGCIPhlo2NeNDSA53nPAE9FtCd8338CGFbVd3zfP1S3RZVaAg0Qj8fvBv4e0T4CrBCRg4VCwa/rrlLLoCcnJ98GxoBG3mcfrm+5UC2DBnBddwZ4uIEmTZ0kWwoN0NvbOw6cjGj/WzNjtBy6dC+M9F5PVU80M0bLoUuK1beA7/uh16l6agu0iER6n5dMJhfauGqqLdCqWhdaRIJGd8Ky2hUedftV1ab/6lvM8GhqlmERw4PGNqHz1K7wiALd1HsVaB9000BR1K7wiAId+W+OarVrIdZdZBHjPlSLFh4R959QtQs6Sjp7z830+w86SkxfjBYzezStdoVHW7VoM/1ezB5tVbsWYt2ZvpiwvzTTFbqUPap1aabLirIQuYgv9j8F7ZPhIGK1QgAAAABJRU5ErkJggg=="},9425:t=>{"use strict";t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC0AAABACAYAAACOcP4eAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAPMQAADzEBHgryygAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAbzSURBVGiB7ZlvjFxVGYef99y5dXGprGJSKhjq7kajEkkaY1h3G8a9c2dc0YbUjh/EaFGsYqQVsWJQyUQtqSRVIaDSmkUsKLqRD9aw3Xvv1IW0Wmg26Nb/cUtME4zVdraubRaYva8fZraZbu/M3LnTSZfE36e557znnGfe857/witImUzmMmPM7eZig8SV67qOiBwB3pC62DDNlE6nu2zbLgDbAAMU5eIiNVY2m71GVR8Frq0maRiGq62LCVVPhULB2La9BRgDrqzJmg6CYGfTmB4YGLikY3QRGh4evvrgwYP7ge8Ar1qSXYRKjEQqn89b2Wy20N3dfSCfz6/oIOdZua6btyzrt8D1dUyKAJEDMZfLrZ6dnf0JcL2IMDs7+xXg7s6gwsjIyFXlcvn7wA0NzMqpVOoAwHkDMZfLvUdVf6yqVwCHgX5gZRiG7y4Wi4cvNLDrulngCaC7iekB3/fXwbnhIa7rbg3D0FPVK1R1V09Pz5CI3AakjDE/upDxPTAwcInruvcB+2IAIyLFxd8pAMdxLjfG7AFGVHXOGLPZ9/3HqzaPua57I7Cxu7t7O/D5doFzudy7wjDcA7w5bplaaOM4zoAx5jlgRESmVfWdnuc9XlsglUp9BjguIltd1603SJoqnU6nXNe9MwzDA60AA2eMMc+ehTbGfB14o4hMz83NXVcsFv+6tMT4+Pi/VPVWKuH08Pr161e2CpzJZHpt254EdgB2K2VF5Lnx8fEXz0KLyM1ASVWvWbly5VC9gkEQPKGqjwFvmp+f39ki8EdF5HfAYCvlFqWqf679Np7nHVPVWwCjqnscx1lVr3C5XP4scExVP+m67vuaNeY4zirXdX8hIo8AlyYBruqBc6Ch4kUR2Q2sMsbsJmIqBJicnJwVkU8BCuxqFCaZTGaDMeb3wAfagAU4OTg4OF2bcHbv0dfXtx/YAAz29/cfn5mZiZyTZ2Zm/tbf398LrCuXyyuOHj3q1eaPjIy8Zs2aNfeLyL3Aq9sEBvjl6Ojoz2oTzs7TnuedVtUPAfOqutNxnHc0qGgbUAK21to5jjNQLpenRGTzBYBdVHFpwjl7jyAIjojIXUCXMebRdDrdFVWL53nHga9SWXTuB8RxnLcZYzYDfwQOAfMXgtgYcx50VOxKNpt9UlXfC+z0ff8LUZXl83mrVCo9KyJrVXVjEAQ/X5K/olQqrRWRYeBW4KoEzH/3fX/NeX8kwlAXFhY2ASeBrblcbm1UbWNjYwvAHdXP7el0OrUk/6UgCA6p6oPAQgJgVPU8L9eDplgs/lNEvgikwjAcXQq0qCAIJoEnReQttm3fEtmAMd8Frk4CTUQ8Q4P9tOd5o8AkcG31FBEpVf0SEAJ3Lx0DmUzmg6r64US4oJZl/Soqo9HJRS3L+jTwIvC14eHhSG8FQXAE+Cmw2rbtTYvpw8PDV4rIroTAAH+YmJj4R1RGw+PWvn37/gLcA3RblvW9enZhGO6gsuBsq4aSWJa1G3hdcubo0IAm0AA9PT07qExjI9ls9sbI2ovFaSr74t5UKrUhk8lsBUZiwh0FHlyaWLsVbRl6bGzsJWALgKp+I5/PR57gVfVb1cZuF5F7YgKXVfWmwcHBLcDB2vQwDJ9ODA3g+36RSne9/dSpUx+JsgmCoAg8r6rXAbFOOCKyPQiCQ4VCIbQs6xNUFyQRORwEwam2oKsVfRlAVe8kelFS4JhI7PufqRMnTmxf/KiOn3urn/sbFYwN7XneM8BTwFsdx8ktzXddd5D4++UzlmXdNDU19fI5MMbcB5wOwzBoVLilC0hV/Xa18ttq09Pp9KXAD6nZNTbRHVXPnqOJiYmTwA9s2/5No8ItQQ8NDe0FXgCy6XT69Yvptm0/QOWqIY483/cfqpfZ1dV1V+3RKkotQRcKhZDK/VrKtu2NANVp8GMxq/i3MWYTlfiP1N69e880q6TlC8je3t7/isjHgbCvr+9pYJz4m/1N1bHRllq+VC+VSs8Ap4F1qvoQcHnMog/7vj/WantRahm6OuJ/DbxWRN4fs9jzqVTqc622VU+Jni+q1wFxFQI3j4+P/ydJW1FK+ubypxZsv+n7/lMJ24lUIugwDI/GND3V09NTSNJGIyWCVtUXYprOVzdcF1SJoBcWFo7HNO3I61ki6Lm5udMxTTvyepYIempq6mVVrbuqLUpa2PK1osQvtiISNrNR1WUHHecuY3lBq2pTT4tIR97e26m0KXQYhsvL08ToemNM08GaRO2ERxybpr2RRO0MxDhdv7w8TbyZYXl5Oqb+7+lFddrTyws6zhIdZ3+SRImhOzUHx2q7k5WLyPLydId6PpbaWVzimC0vT8dRp3qj0+HxyvN0p9QOdJwzYhvV11enoTsSHv8DYKFg2UAoHpgAAAAASUVORK5CYII="},4360:t=>{"use strict";t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAAA/CAYAAABQHc7KAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAVrAAAFawBqQLmJgAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAASTSURBVGiB7VtBaBxVGP6+2Z2tIg0xAVtLCVispVUk0SCWFXV1ZjZZKGk9RFsVtaC2ik2sMSAeovWu4kGveg09pAeHnbdJ0yqGXhRLQTwoepLqydRDWLMzv4dsQrrsNjO7k7fr7n4w7OzM//738e/3/v+9ebMUEbQSbNvOknxcKfW+jv6SOjrZCplMJplKpZ4FME3yQZJpXX03NQDZbPaOIAheNU3zbREZKF8+73neki4OTQlANpu9C8AZEXmD5J2bbolhGO/p5KI1AI7j7AfwDoCXANxWxWQpn8//opOTlgCMjIw8IiLTAI4BMGrZkZzVwWczti0AJGnb9iiAaQBPhGgiInJ+u/jUAuMug8PDw2Z/f/8JEZkC8ECEpt8ppR6LlUwIxKaAsbGxnSsrK6/19fVNisjeOlxciYtLFDQcgEwmszuVSk2IyCkAvfX6IXmtUS71oO4AjI6OHvB9f8o0zRdFZEejRJoVgMg5wLKswySnSY4BYEw8hOTXIkKSCRExACTKR9VzkoaIbFwvt9uwqfBjAPgdwPeGYXyRz+d/WO84VADKGf0IgHcBaE9UMaME4COl1DlgiwCMj4+nlpeXXyhn9IOaCGoByTc9z/u8agByuVxPqVQ6BWACwB7t7PRgheT9NyVBx3H2iMgkydcB9DSJmC7cLiK5JABYlnXIMIwpAM+TTDWZmDaIyOHE0tLSWZJzAIawljE7BiSvG0qpjwE8BOArAMUmc9IN3pQELcvalUgkTpdndbuax0sbFmpVgR2lUuk41qrAoHZa+nBxy4mQbdtPGoYxKSJHcIu1/P8Ul0JPhW3b3kfyjIicJLkzbiYi8jfJEoAAgF8+AgA+yUBENq6R9Mvf1+/7IrLe7lEAYSvZ5chrgVwu17O6unqS5FsA9kVqfAuQfNrzvIuN+nEc5w8Ad4exFZFvI0vadd0bhULh03Q6vZ/kMQCXo/qoQSauXBP6FyVp1L0cnpmZCQDMAZhzHGcQwCSA4wgvv0oM1culAkEEW8aS1JRSPyqlXg6CYIDkhwD+qsPNw3FwQQQFADBizerz8/N/ep73QTKZHADwCoCrEZoftCzrUAw09CugEq7rFpVSXyqlBkUkQ/JCGGKJROJEDN1HCUC8CqiGQqFwyfO8o77v3wfgMxH5p5atiMQRgChDYHsUUA0LCwu/KqUmTNPcS/IsgN+qmN3jOE6jG6OhFSAi26+ASriue8PzvE/S6fS9AJ4B8E2FybkGu4hSBhn7xkg9sG17qDzdfg5ASkSOFgqFC3X6+pnkgZDmV1siAOvIZDK7TdM8DcDq7e3NzM7O/hvVh+M4PyH888trLbW4WVxcvK6Umkkmk08Vi8V69xoiJcGWeEOkEq7rFlH/w5nWKoNNQGuWQY1o7TKoAaEDQLL9FCDRylr7KYBkZysAEZJgx+cAtOMQQLcMdhXQ/CdCzUS3DHbLYLcMdnYSjDIE0E2CbagAdHoZJNnZCii/JxDWtv0UECUAJNtPARGHQPspIGIZbD8FBEHQ2Umw4ydC6PSpMNpha6wRiEhQrgSCNTVs/tw4l7X/5/j/AZzOwmKqcltsAAAAAElFTkSuQmCC"},8893:t=>{"use strict";t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC0AAAAwCAYAAACFUvPfAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAArEAAAKxAFmbYLUAAAAB3RJTUUH4QQHDzoKt7uMpAAABf5JREFUaN7VWV1sU2UYft7vrBtswrIfcDhkQpsxI/I/yDKI23raw1wKkkCIAYZRSfxL/CMheuMuiBdcaCReGBMhSEQSNIB/6U4PWsgWiMlQicZM3dkuSJCpY4SxFtt+rxecztq1Xc/aMfdeNef7vvd9znven+f9SgBqAQxh5kh5gQX4z2kEQQDYzgEx3W7zer0LW1tbF84o0A6HYyQWiz0+o0APDQ2Fmbl9RoGeN29eAYBlmqatzvZMQS4GW1tb50YikY1CCCczzyKia8z8UyQS+T4YDEaz0RGJRGYBgJSyHcClbDO30m71UFW1lIgOAHgKwOwUW24AOE1Eh3VdP59Jl9vtXi6E+AHAH0NDQ9U9PT2RCcxX2g4Pj8ezkoguA3ghDWAAKAWwh5nPeTyei5qmbUynT1GU6nikVFRUbMp7THs8nkZmPg9gkY1j66WU51RVPaGq6rhzzLw84Xd7XkF7vd5lAL4kojmTaSBEtIOIflZVdW/S2sqE3762trayvMT05s2b54RCoW8B1OWpaJwSQjzd0NAw3N3dfRXA/IS1ZwOBwHu5xjSFw+FjeQQMAFullD3d3d07kwCDiNpz9rTX632Zmd+aojL9N4DCFMlZ5/f7eyflaVVVlzDzgSnsLYWpHkaj0V2TTUQiovcBFE9g+Csi2i6lXApgFRHtIqLjAG5NmvYR7e7o6BC2w8Pj8ewG8GEG3WEATwYCgY9TLWqaVi6lfAnAvgz1PK0wc7NhGMFU4aFYnhxNiuMSAKcBzE2vk7cbhvFJOqN9fX0h0zS/cblcx4noAbuJTERsmuaZFEvFIg2i/QCqMyh81zCMM9kY13W9X9f1x5h5D4ARG57e5vP5irOKaU3TFgB4NYO+X27evLnf7ucuKys7QURdNjw95/bt21uzAs3Mr2VKPiJ648KFCyGb08n9w8PDXzPzJptx3T4h6JaWlmpm3ptBSW9paelJG9S1SFXVfcz8I4DGSRQSd0tLS3VGPq0oyisAZmVQ8s7JkydjWXi2Tkq5IxaLPUNEVTnUcUVRlJ0ADqYErWlaeSwW20tEaUtcUVHRieSHHR0doqura50QopmZHyaidczsJCIwM/Ig7cmgx0pebW2tBFACoCFN0znl9/uPJT8MBoNsmuaV2tray7FYbJCIhokoCuC+XCcjS+a7XK4v+vr6rsZL3rjm4vV610spjxLR0qQE3KXr+kfZWmpqaiooLCxcwcwbrHhutmxNRg4FAoEX480lZUf0+XzF4XD4IIDnrK4ppZTzz549+1cuLlNVdQmADQAaiWgDgAct/RNJ4ihWmZHlqaqqEtFhIrqu6/qKfLMlt9t9r6Io65i50XqZtQCK0mzfEggEPpsQdHyIFUI067p+eqqvE3w+X3EoFFpNRGuskGoBUGGF56e6rm/LCvR0ilWZHop/hWg0+nwwGLwHOSTHdEnltCuYjBQktV1EIhFYDWYtgEet64JbzNwD4IxhGDemCozH40mmDQAAwzDGDQHx+gwpJRRFWSClPAJAS3VfyMz7DMM4kuDpnPNB0zRIKTMRp/8AVxIBR6PRKiHERQBr0pyfTURbnE5n2DTN7lQDhF1pamqCEGIimgqn0wnTNO+wvMrKyrG3dDgcHwCoycLWm263uz4fIeFwOOzU9Tug6+rGpqBVVgxndTNFRK/nClhVVbsD7x3j8TclolabCrSSkhIlF9AZGGXa/SUlJRAJFHKRTZuza2pq7nrJq6mpgUjgvLbvKUZHR2/dbdCjo6MQ0ejYhf13Ns//NjAwMHK3QQ8MDEAMDg7Ga+HnAK7biK+juQKwO9mMJWJvb29cwQ3rviMbY70A3s4VtGEYWQNP3KcAQH9/PxYvXgwp5SVFUQjAIxnI+a+KorTpun4tH83FNE24XK5sJlzouv4v6DjwqqoqAAgqihIkooVWRYm3qyvMfMjhcDzh9/vH5rVcQVtXaHA6nSlLIDPD4XDA7/eP5x7JUlVVhfr6+uJwOFwthBjp7Oz8HeP/w847F/f5fAiHwxBCoLOz8//JbSdLTXMxXG7T03n5Mv8AYvZC/w+MjzcAAAAASUVORK5CYII="},1799:t=>{"use strict";t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC0AAAAwCAYAAACFUvPfAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAArEAAAKxAFmbYLUAAAAB3RJTUUH4AsWFQQSVQpdpwAABhBJREFUaN7VmWtoFFcUx//nTjbRRA0x0cbGRzVLTGnqu0pQaczO7pjKagVFihpLW6Ev6EuQ9kvzQfrBDy2VfiiFKlZqBVvUvlhnR7uKQSnEttIS0iYbEfHVNiYkmjU7c08/dFY2m93NTjJRcmDY4c6dc3979tzzuEsAqgB0YfzI1Dwb+J+HCEEA2MkL4mGbLRAIzGxoaJg5rqA9Hk+fZVnPjSvorq6uGDM3jivoadOm5QGo0TRtSa7v5I1mwYaGhinxeHy1EKKSmScQ0U1m/iMej/8aiUTMXHTE4/EJACClbARwMdedW+Y0eqiqWkxEewC8CGBimik9AI4T0X5d189m0+Xz+RYIIX4D8HdXV1dFS0tLfJjlyxy7h9/vX0RElwC8ngEYAIoB7GDmM36//4Kmaasz6VMUpSLhKaWlpWtd92m/37+Smc8CmO3gtRVSyjOqqh5RVXXIe8y8IOm+0VXoQCBQA+AHIpo8kgRCRFuIqFVV1Z0pzxYl3QfXrVtX4opPr1+/fnJ/f//PAKpdChrHhBAv1dbWdjc3N18HMD3p2SvhcPjT0fo0xWKxQy4CA8BGKWVLc3Pz1hRgEFHjqC0dCATeYuYPxyhMDwDIT7M5q0OhUNuILK2q6jxm3jOGuSU/3aBpmttGuhGJiD4DUDjMwj8S0WYp5XwAi4loGxEdBnBnxGUf0fampibh2D38fv92AF9k0R0D8EI4HP4q3UNN06ZKKd8EsCtLPM8ozLzGMIxIOvdQbEveTfHjIgDHAUzJrJM3G4bxdaZFOzo6+qPR6E9er/cwET3mdCMTEUej0RNpHhWKDES7AVRkUfiJYRgncllc1/VOXdefZeYdAPocWHpTMBgszMmnNU2bAeCdLPr+7O3t3e305y4pKTlCROccWHryvXv3NuYEzczvZtt8RPT++fPn+x12J7O6u7tPM/Nah37dOCx0fX19BTPvzKKkrbi4+KiD0rVAVdVdzPw7gJUjCCS++vr6iqz1tKIobwOYkEXJx0ePHrVysGy1lHKLZVkvE1H5KOK4oijKVgB700JrmjbVsqydRJQxxBUUFBxJHWxqahLnzp1bLoRYw8xPEtFyZq4kIjAzXJDGVOj7Ia+qqkoCKAJQmyHpHAuFQodSByORCEej0atVVVWXLMu6RUTdRGQCeHS0nZEt071e7/cdHR3XEyFvSHIJBAIrpJQHiWh+ygbcpuv6l7muVFdXl5efn7+QmVfZ/rzGXmsksi8cDr+RSC5pM2IwGCyMxWJ7AbxqZ00ppZx+6tSpf0djMlVV5wFYBWAlEa0C8LitfzhJbsXKslZ5qqqqRLSfiG7rur7Q7WrJ5/M9oijKcmZeaX+ZZQAKMkzfEA6Hvx0WOtHECiHW6Lp+fKyPE4LBYGF/f/8SIlpqu1Q9gFLbPb/RdX1TTtAPU+zI9ETiVzBN87VIJDIJo9gcD0vGG+//0HkpaRfxeBypicE0TUQikTGn8fv9ywA8Yx9R3GHmFgAnDMPoSW0CEvEZUsrkOiO17sDp06fHBFbTtBlSygMAtHRnlMy8yzCMA8lNwCDgZFhmvn8BwKxZs3DlyhVXgevq6sqFEBcALM0wZSIRbaisrIxFo9FmAIWirKxsCDAzQ0o56LIsC0II1NTUuArt8Xg+BzAnh6kf+Hy+pwBAVFdXZwS2LGvINWnSJNeAVVVdbPtwTqdhRPQeAOR5PJ5B7pBq4WT3sI9kXYMmogaH87WioiIlLxEpUq9s4C7KbIfzJ86ZM6csj5mRqKGTgdNZPV1UGaU4Phu5e/fuHWGaZqbWahB44n5gYMBN6F8czm+/fPlyn7h165aTRhM9PT2uETPzdwBuO/DpgwAg2traEgP3P9NdABCPx3Ht2jXXoA3D6LHPWHL5gm0APkq0W+js7MTcuXPTZsNk4Pb2dliW5epOjEajF71eLwF4OktD8JeiKOt0Xb8JoFBJjHZ2dqK8vByKogyCNU0Tvb29aG1tdR046QgtUllZGSGimXZESfSoV5l5n8fjeT4UCg3qEdNKeXk5bty48cBLOLvVqxBC9J08efIGhv5vPj5LU3rQC7qgY+p/raHc/dLH+CUAAAAASUVORK5CYII="},6910:t=>{"use strict";t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC0AAAAwCAYAAACFUvPfAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAKxAAACsQBZm2C1AAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAZUSURBVGiB1ZlbbBRlFMf//5luC61QKQuKqCV0rRBviIpBIJTuXFzJFk28xIiYeEm8JSqSGI2JfTA+SKLR+ECINyQgSTXglWZ2qouhQkzqLRqCuiMPJl7Q2sqli7s7x4ddcdnO7M6UkuL/YTP7fd8557czZ77LWQJoBzCI/49a6lAE/n0CIQhAwhgopwgksAzDODeRSJwbxmbCoSORyOFCoXBrGJsJhx4cHMyKyJowNhMOPWPGjDoAF5umuTCoTd3JBEwkElNzudwyRVHaRGQSyV9F5NtcLvdlOp3OB/GRy+UmAYDrumsAfB7EhgCiCDl7aJrWTPJpAHcBmOwxZBjADpKvWpb1STVf8Xj8UkVRvgJwcHBwcPbAwECuRvho6PTQdX0Bya8BPOgDDADNAO4QkV26ru81TXOZnz9VVWeXLmdMnz792iAMoaB1XV8iIp8AOD+E2dWu6+7SNG2bpmmj7ETk0rLrQC9kYGjDMC4G8AHJKUFtykSSt5Dcp2naPRV9C8qukytXrpxW0xkC5HRXV9eUkZGRzwDMC43rre2Koty9ePHiof7+/p8BzCzruy+VSm2oYhsop5nNZjdj/IAB4AbXdQf6+/tvw4nAIFkzRWreacMwHhGR504a01t/A6ivbFRVdV5vb+9+H5vqd1rTtLki8vR40PloFDAA5PP51dWMqkGT5EYAjTUCf0jyJtd1LwRwOcnVJLcCOFLDrlrg27u7u33ZfNND1/XbAbxRxXcWwJ2pVOpNr07TNFtc130YwDr4z+e+EpEVtm2nPbqiKop38mh5q2EYTQB2AJjq71Nusm37Lb+gmUxmxHGcj2Ox2FaScxDyRSYpjuO849HV6PkIROQxALO9+koOX7Jt28vhKFmW9aNlWdeLyB0ADgciLjLcmEwmPVNzFLRpmrMAPFrF33eHDh16LGjwfzVt2rRtJHcHHU9yyrFjx27w6hsFLSKPo8rLR/KpPXv2jAQNDgCGYZw3NDT0kYgE2luUsXjO2SdAd3Z2zhaRymW23Mn+5ubmnqBBE4lEg6Zp60TkGwBLAtP+p3hnZ+eoND1hP62q6loAk6o4eaGnp6dQK5JhGPNc172lUCjcS/Ls8KzlSOptAJ4tbzwObZpmS6FQuIekn4NsQ0PDtsrG7u5uZffu3YsURVkhIpeQXCQibSQhEuqQ7ac1ldDHp7z29nYXQBOAxfBedLb39vZurmxMp9PiOM5P7e3tXxcKhd9IDpHMAzgHJ3kyKmlmLBZ7P5PJ/Fz63jhqcTEM42rXdTeRvLDckuRqy7K2BI3U0dFRV19ff5mILEUxn1eUYo1FL6ZSqYdK11HPFTGZTDZms9lnAdyP4qrpuq47s6+v748xBgVQ3MsAWApgCcmlAOaX/NdS+VHMG7osiEbyVZJ/WpZ12ckAeykej5+lquoiEVmC4o+5EkCDz/BVqVTq3ZrQJfBmRVFWWJa1Y7yhK5VMJhtHRkYWkrwCxZTqBDAdAEi+bVnWjYGgJ1KlmekilJ5CPp9/IJ1OnwGM/eWYKIUvIZwOOmEeTSQSDfl8/maSmojMAjBM8lMAWyzL+u1Uw+i6fiWA61AsURwRkQEA79i2PVw+7nhOG4ZxjYhsBdDq4e8wyUcty9p4KmBN05zluu5rAEyP7kERWWfb9mul78VDgGEYC0SkD/75XQ8gOXfu3GHHcfaOJ3BHR8fZiqLsBXCFz5DJJFe1tbVlHcfpB9CoRKPRehHZguobJQAAyfWGYYxnKQGRSOQVeD/dSj0Tj8evAgBl/vz5XQDmBIxRB2Dt2PBGS9O0y1HM4SBSSD4BAEokElkeJpCIaGHh/EQyEXK82dTUpCokzwoZy/fsOAaFKWQCwOTW1taoIiKHQhoO1x4SWKFrI0ePHj2i5PP5QNX3Mo3n7PFFyPE/HDhw4LBy8ODBt1FR96ihl0MG8pWIvAfgz6DjSW4CAGXfvn2/kHwyoN320vZwXGTb9nCpxlJTIrIfwPNA6biVyWQ+isViBLAc/pvyd0muzmQytf4TCSXHcT4PEPt7VVVXWpb1KyqPW/F4/CpFUdYBMACcCSArInsAbLBtuwch/w4OI13Xl5N8UkQ68N+e6CcReT0SiazfuXPnX6W26PGPSvmVpE61kslko67rF5QqXV533h/6NFa0DkDLRFOEVMs/dfMzpJFEFmAAAAAASUVORK5CYII="},818:t=>{"use strict";t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAAA/CAYAAABQHc7KAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAViAAAFYgBxNdAoAAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAARSSURBVGiB7ZvfayNVFMe/38nEHw/apU+y+OCCIC4+qAuC7YO0JHdSfeiL9GH/AdFXf+CLFhZErBVjF+3CYlUQd62+xIVIZlLiLiv6UHD9haLYlVXEXSjCFqlJO3N8yKTW0IS5M+lNdprPS2bmzL33zOGc+517h1BEYAKl1EsicsHzvIqRASNCUwFwHGdMRD4n+Q2AuUaj8WGtVts2MngXjAUAAJRSHwF4PDy9IiKvW5Z1ulKp/G3MiTaMBqBQKNwdBMFPALjr8l8k3wKwUKlUrhlzJsRoAABAKXURwPgepn8AvAfgNdd1fzblj2VqoBYklzuYbgHwBIAfHcf5uFAoPGTEnz5kwGEAv+P/ZdCJ8wDmPM/7VPbJUeMBALqWQSe+Izm/vr7+werq6lYvfTFeAiFfat5/n4i8Ozo6uqaUenp6evq2XjnSlwCQ/DZm0zsBzG9ubl5xHOfliYmJO5L6cqMFoMUhEXk+m83+qpQ6PTU1dU9sX3bPAYVC4cEgCJ4EcAzAXQACAD7JQER8AD6AgKQfnrfsvogEoX3nevtxqx+SIiKPIdpEGAURkZKIzFWr1S90Gu4EQCn1IoAXANg9cqpfXATwqud556IoB0UEjuM8JSJvGnDOJD+QnB8ZGXl/eXm50ekmKqWOiMj3AG416JxJ/gDwhm3bp8rl8vV2oyUijyK9Dw8AhwG8sr29/Vs+n58LX8R2sETk4T45ZprbST4L4LJSaimXyx0FAObz+QoA1V/f+oIAeMZG76ToRqEO4CyAouu6l2z073XYNFdJnvJ9f7FarV5tXTwIGXAJTRU4Uy6X6+3GtGZAQPJcEARFz/M+63ajbgY00FzJZUhaIpIBkAFgkcyE51Zoz4iI1bKHvxk0lccmeUj/ubojIhskl0RkwXXdtShtbBGxyMgxWHdd95H4LjZxHGdSRFaS9rOLNRE5mc1ml/Z62emGTVKnBHqyeyIi9/eiHwDnSRbHxsY+mZ2dDeJ0oFsCsQbZgwcStG0AOINQxpI6ojsJ9mr/7FiMNtdILrbLWFKMZ0AulztqWda9Gk2+BlDsJGNJ0c2AxAHIZDLHIyzTI8tYUnQzIHEJiMjxLrYNku/4vr+wsrLyS9KxoqArg4kyQCk1DuDIHqbLJE/atv22rowlxabG0yN5BpxoO78AoDg+Pl6KK2NJ0ZoDwo3PWOTz+WmSkwAaJM+G9f1V3P56hVYASMYKwMzMzE0knwNwYmtra7FWq/0Zp5/9wMgkWK/Xb7Zte3I/ZCwpRmSwVCptxGlnAguGZXDQsMIla1T6MlPvJ5amDKYvANCTwfSVgE4GxJXBQUZ3DkhfBsDwanDQGMoghhnQlz3BgWEog0MZHMrgcBI82CWAgz4JYiiDWnuC6csAEYmcAUl2hQcVS+fzeCoDAD0VSF8JwMB3gUFGKwBBEKQyA4YvQhr3pzIAB3pHyAZwXUQy4bKY+C8ou48tNP9ckboM+Bfnbd377tn9YQAAAABJRU5ErkJggg=="},4115:t=>{"use strict";t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAPHgAADx4B+ux9RAAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAVTSURBVHic7ZtdiFVVFMd/czJjMpMCy2myjxcNNBBKDE2DpKSmccrSkNVLFKMPQg9ak0I+2INp9iCR1JD4UAspy5rRTNEJnEqTqQhSMF8KTUcNCjP7spwe9rrjzDjXe886+9wZ0x8cuHPOXWv995p97tn77LWrurq6yBMRuRN4ELgFqLXjBuCaPl/9BTgCHLbjB2CLqn6Zp76q2AkQkSHANOBhO0ZndHkI+NCOdlX9J6O/XkRLgIjUAi8As4Frozg9l5+BDcCLqno4hsPMCRCRq4DngIXAlTFElcHvwCvASlX9LYsjdwJE5DLgKWAZcH0WERk4BiwF1qrqvx4HrgSIyDjgHWCcJ2gO7AMeV9V9aQ2TtAYiUgfsZvA0HoKW3aYtFakSICILgVZgeNpAFWA40Coii9IYlXULiMhQ4HXgSZ+2irMOmK+qf5f6YskE2HN9MzAjjraKsQ14qNS4oZxbYDUXXuMhaF5d6kvn7QEi0gi8EVHUQDBPVZuLXSyaABGZCrQBl+ckrFKcBqar6qf9Xew3ASIyGvgKGBlRyClgK7AdOEiY+BwBqoAb7bgZmA7cR9xR5U/AHap6qO+FIUUMXiNe41uAtcB2Vf2zyHeOA1/b51dFpBq4n/DUaYigYSShTTP7XjinB1jXb48QdBfwrKruyuJERCYDLwOTI2i6W1U/73mivx6wImOQP4BGVX07ox8ALIFTROQJoBmozuDuJWBqzxO9eoCIPAJszBCgE2hQ1Y4MPooiIhMJt1RNBjf1qrq58Ed3Amx2txe4zen4O8KvbZR5ejHsvUMbMNbp4ltggqqegd4DoTn4G38CmJl34wEsxkyL6eF2wksboHcCHnM6PAPMVdUDTvvUWKy5FtvDnMKHBEBErsA/3F2hqh87bd1YTO8P9gxrc3cPmA4Mczg6Dix3iojBctOQlmGENncnwDvYWKaqJ522mbHYy5zmDQCJiFQB9Q4HBwnP5YGmmaAlLfUiUpUAE/E9Vzeq6mmHXVRMg2fsUgNMSIBbnbE3Oe3ywKtlTILvv3+COPOFWLTjGxfUeBOwJ/YSVRZMyx6HqTsBuY/4HHg0uRPQ6bDJG4+mmgQYVaFgeePRNCr1ytD/jQQ46rDLMh/PC4+mownOe8dhkzeu3zJvAmodNnnj0eROwCRbMhsUmJZJDlN3AkYQ6oAGC9MImtLSmQDfO4N6ZpB54dVyIAE68PWCWSIy4MtmpmGWw7QT+CZR1S58s6mbgEaHXWwaCVrSsklVuwoDoRZn8KUiMmDVIhZ7qdO8Bc6+EmsjLF6m5TpgsVNADBabhrScIrQ5JEBV/yJUVHhoEpEHnLZuLGaT03ybtbnXusB7TmcJsF5ExjjtU2Ox1uOocjPeLXxI+pzc73Q4glChlfsI0WK04nvuQ1ga21D4ozsBVmm5JIO2sUCHLWDmgvnuwL8uCLCksC4IfbqQqn5AKIL0UgPstKXsqJjPnWSbiH3Wc2UY+q8PaCLbC89q4C0RmQ8sUtUvMvhCRO4CVgFTsvgxnu97oliNUCvxhrrvA28Cn5RTuGjxhwL3Ak8Dj0bSsUlVS5fImIA8iqR+BbYQuvGPdhReZNZytlDqHsIOk6sjxi5aJHXRl8kVfY6awYK8VFWQBcUaDyUGElZhuSa6pMqx5nxVolDeSOoZYEccPRVlB0H7eSmZAFt2qiOUoF8orAPqylm+S7VlxjZMrMQ/Bs+bM0CTqq4q1yD1niHblrKewbdr5CShWOujNEbeTVPjCRMKb1ldbPYDs1V1b1pDV1e2QOOBeYStawPFMdMw3tN4uLRx8tLW2Uubpy/27fP/AamW7NQNtbA8AAAAAElFTkSuQmCC"},871:t=>{"use strict";t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAAA+CAYAAACbQR1vAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAYVQAAGFUBN+4GkAAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAATaSURBVGiB7VtdiBtVFP6+u5mxVltqUCtI/QGlIOIfVUQpMpq5d9KuLYgPrYqi0ILVaiviH4hdRUWEWuuDiC9WaCmLhSrKNklroA/VF8G/F6H40ifpwxRaSEky9/jQBpaa3c3cmWTdZD9YSGbOOffeM+ec79w7G4oI5hPGmK3NZvNAvV4/l5fNNWvWeMVicRzAIyTXish5kr9Za4/WarXJ6bKcTwdorV8G8Fa1Wl2Zh70oiopJkmwl+SKA67vJkDwCYGulUjkFzKMDwjB8g+SHJH+qVCoPZLFVLpdXJ0myA8DTAJb2oHKq1WrdUa/XzxSyDOwKrfW7JN8GABE56WonDMMSyZ0AygCYQnWV53mfA9g8cAcYYz4G8GrnO8l/0ugHQbDE9/0nRWQHydszTGWTMeb9gTmAJMMw/AzAC9Ovi4jfi36pVFqplNrmed7zInJNHnMSkQcH4oCJiQlVKpW+BPBcl0ksmU03iqI7rbU7lVKbAfTkrBS4t+8OCIKg4Pv+PpJPdLtP8rJLr01MTKgTJ06st9buJBn0cXrL+uqAi3x8UEQem0VseeeDMeYKa+2zJF8CcCuZpq45gX2jwSAIlnie9w2A9XOIniT5sLV2O8ktAFb0ZUJdQPJQXyJgw4YNS33f/1ZESj2I3yIif5McOCOJiMp90I0bNy5rNBo/kFybQm1e+hERydfr4+PjVzWbzSMk78vTbr9AMr8ICILgas/zagDuysvmAJBPBARBcJ3neccA3JaHvQFCqawWjDGrPM87joW3eCCrA4wxN4vIcQC35jShLIjTKpCkswPK5fJqEfkZwE2uNnJAk+TXAO4GsCetsoi4RUCpVIqSJPkdwLUu+jngNID3Wq3WjZVK5ZlqtforAJeOLn0RjKLoHqXUfuS/MekFf5Lc02w299fr9fPTb4iIdWid09FgGIb3k5zCANtVXHiyUyLySa1WOzqTEMnUEZCqE9RaP0TyewBXph3IBSLSUEp9pZT6dGpq6q8e5FNHAHvtv7XWGsBhAJenGiEbjlUqlW29CpO0DmPMXQSNMY8C+A6DXTxIjodh+E4KeZcUmJ0GjTGPi8ghAP85tBgESO7SWn/Qi6yIpI4AkjNHgNb6KRE5CMBLazhnvGmM2cu5Ezx1BMzogDAMtwDYB2AsrdF+QES2h2F4YN26dctnkUkdAV1TIAzD7SS/AJB5n5AzNrXb7T+iKOp6RqiUyl4Etdavk9yLdC8ZBokbrLWHtdavXHrDWputEzTG7ALQc9XNAhE5SzLGhQ1MDCAWkZhkLCKxUioWkdhaG4+NjcVJksS+78eNRiOu1+vtritxpMECAGitPwLwWpo1ADh7yeTPkVwB4BcROd1ZSGcR1tq41WrFAM7MtIgsIClpD3hFhIWL4RQC+LHzBKY/hc41a21cKBTidrsdF4vFM5OTk0nei8gCVxosVKvV3QB292FOAwVJmzYCZu0DFhpciuCcneBCQi40uMDhRIND4wCXIohhioCRd4DLdhjDlAIuneAiDS7S4BDVALjR4PA4wJEFhicFRp4GMeqdoEsRXKRB17fD/0c40uDwpIC1drSL4MjvBRYjYNQjwKUIDhUL5P52eKFh5FNgsQiOegSM/IHIYgo4psC8/FKjH7DWdv5P0OLC2cD0v5mu2X8Bfk0MprjEg5cAAAAASUVORK5CYII="},6602:t=>{"use strict";t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAAA/CAYAAABQHc7KAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAYlAAAGJQBP7stjgAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAU9SURBVGiB7ZpdaBxVFMf/5+5M0jSKma0f1dJiq5haULEEoaWCQ+feSULYgJWIoiD4IEL1QZD64FftgyloRYtfoC+iWGJFiIiZWU2yDw1+VCn0RawPShErkTZKG9NNdo4P2W3T7W6yc2emdTf7g2F3Zu459+7lnPO/c2eJmbEQx3G2CCH6AHQx8y9EdFQI8ePIyMh3iBHbtleYpvmo7/tvxuk3LFSagEwms3JmZuY9AA9UaXsEwL6TJ08eOHz48GwcnSulThDRXs/zXovDnw7EzKUfPwHgjhpsfgewf3Z29t2xsbGpKJ0rpb4FcBeAZ3zf3xvFly4CAGZmZl5GbT8eANYAGDRN87hS6nXXdddH6P+34ueg67rPRvCjjZBS3gpgp4btFQCeZOZjSqlPHMfZouHjz9IXZt6jlHpJw0ckBIBtxU9dUgDuE0JMuK47IaXcsXv37lr9mWXnzymlBiOMJTSCiDbH5YyZtxDRwUOHDh2TUj7hum77EiatFa7tUkq9GteYlkIASCfgdwMRvcHMx5VSg0qpG6q0W1Hl+lNKqf1ERAmM7QIEgCQ7sQDsAvCrUuqD7u7u8kK7chHbnVLKt5OeBEFEUfK/VkwADwdBcEQp9ZXruj1ERMzcuYTdY1LK90PUlNCQlPJTAPcm1cEi/ASgE7VF4IcdHR2PDA0NFeIehGDmSxEBldiI2tPvoVOnTn1k27YR9yCEECLxQhMHRHR/S0vLga6urnLpjMTljIDQMPOOdDp9cGBgoCUunwLRFkGXg8zU1NRntm1Xk9BQJC2DSdFrmubw1q1b26I6ulQymASyvb39ixpWm4simDl0BDDzWwD2APgrSudRISI7CIIv+/v7r9T1oVUDiOiE7/vPnz59eh2AxwH8rDuAqBDR3dPT09/39fVZOvZCZ6lJRAwAExMT//q+/042m91IRBkAOZ1BRIWIOvP5fE5nErRkkJmDsnP2PO9z3/fvIaIuAB8DmAvrNyK35fP5rx3HWRXGSDcFuNo9z/N+8H3/QSLaQESvAPg7rP8I3JlKpUZ7e3uvqdVASwbLI6ASnucd9zzv6ba2trWYj4hLAjPfPjc3N27b9upa2mulABEtOQElzp49uw5Af9g+IrLJMIzxRfYhzqFVBIMgqJoCC3EcZ1MQBFks/tyfCETUCSDnuu7axdrp1oAlI6C7u3uzECIH4Pqw/mPkZmbO9fT03FitQSQZrIaUclsQBKMArg7rOwHWFwqF3Pbt22+qdDMWGSxh27bhuu6LRDQG4KqwfhNkXSqVyjmOc0v5jdhk0HGcTaZpfsPMLwCIfeMiBtakUqlc8T3IOQxoyGAQBBdFgGEY1xUKhX0A0kRkMbNFRBYRWUEQpInIwvwmqYXLUBQBgJlXE9G4lNLJZrNHAcBgZhG2DAghLpqAkZGRsVrtBwYGWiYnJ9OGYVhCCCsIAqs0aShO4IJzC/Nb96uKR9ToupaIxpRSju/7R4wkZbAaQ0NDeQAnikcobNvuaG1tbQOQLhQKF0wgFkQfzkdbesH30k7SKgCjSillICEZTIriG+kpAH+Etc1kMivPnDljCSHSQgiLmduN4v58KEdLyeD/leHh4WkA05h/xQ8gZhmsR7Qehuo1AiqhtQ6oJIP1ilYKVJLBeiXRp8F6ILGnwXohkafBeqIpg2jK4DKXQWhMQEPJIPT2A5Z3CjRlsJGKYFMGmzLYlMFY3w7XG7oyuLwjoKEWQjp/kmqoFND5m1xTBhspAtCUwaYMhk6BhlIBNFNgeRdBA8A/OB8JVHZUvNZIEfAf4JbpKskQ/HUAAAAASUVORK5CYII="},4113:t=>{"use strict";t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB8AAABACAYAAADidqwbAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAARIQAAESEBdkeL6QAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAPaSURBVFiF7ZhPaBx1FMc/77c7odKYaEAQvXiogh6k1OAhFx2d+c1iDgGVvajkqmLpQQ8VD6VUBfGg1Is9qbRF3KPG4EyyWSjNUmhMQYuI6CFI8RLq1hDWZrPzPGQ3hGT/zG52k1D7hWGY33u//fzevDdv5zf4vv/B+Pj4/arKXh9GRB5YW1v7OQgCnz2WAfLAw6oaBkFwdmxs7J49g6dSqTlAAVHV44ODg4vW2tG9gIuqYq29BhzdMr4OnKlUKh8WCoX1fsFN7ZzfNp4GTjuOM+953mN9hcdxPNvE/rQx5loQBG/2Ay6qShAEh1X1JjDQwndORE6EYXi9V3ADEIbhKnClje9zqrro+362p/Catue9kRwR+cb3/Quu697XM7iINMv7DonIK47j/GStfX43cFFVAFzXTafT6Zsicm8H8xU4W6lUThYKhX87hW9GXigU1kVkscP5ApxwHGcxk8kc6xoOICJXO/2Bmh6P4/iK7/vvZbPZVFdw4Ksu4bBRjO+XSqXLmUzmSJIJmzmvKwiCv1T1wV0sAmAVeDuKonOtnLZHDjC3SzDAYeBza+33rus2DWQHvEWr7UYvOI5z3ff9lxLBSdZskqoKrIjIG77vP7vduCPnANba34BHu4CVgU9U9VIqlfpjeXl5aWFhodLMOd1oUERmVbUbuIjI+SiKfk3i3Oi2E8dxt7f+UBzHF0dHR52u4alUqgDE3dBF5NjIyMjpRL6Ncg5grV0AnupmAUCsqs/MzMxcbuXUMPKadvPIGRE5PzEx0fJPqilcVXfAReQHoGU0W/RIuVz+rCv46urqPHB7y9CNlZWVF6vV6qvArYQLmAyC4OWO4cVisQzM169F5FSxWCzn8/kl4K2EcFT1nLX2oY7gNdUfuV+Gh4e/rA9GUXQByCXkjwBfiIh0BDfGzAKIyMlcLlfdahsYGHgduJFwAdZae7wj+NDQ0I/At2EYfrfdNjU19TcwycarVFup6kee5z2RGJ7L5arpdPq1ZvYoivKq+mkSOHDIGHMxm81u7g3a5Zzp6el/Wtkdx3kXSLqROFoqlc7UL5p2uE7ked6TxpirtN7x1BWLiBuG4aWewAF8339HRD5O6L5UqVSO9AwuIuJ5Xl5E3IRTgrY5TypVVWPMJFBKOCXbMzhAGIZ/Akm306M9hQNEUfQ1sKMvNJDpORxAVX/fN7gxptreq3+RJ3kFk77ARSQJfF8jvwPhdwuuje7AnB/4ghOR/uQ8SeSq2p/I/9cFt39Nxhizf03mwBeciNwtuN7qwBcc/Yo8aYdr+Plzt6pFrmx8SKyf64eqaiwi8X/xCNwLBu+YEwAAAABJRU5ErkJggg=="},112:t=>{"use strict";t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB8AAABACAYAAADidqwbAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAARHwAAER8BCfL2SQAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAPHSURBVFiF7ZhPiFtFHMc/v7dJDFrYjaGKFxGpuniUUKQLyoP3MkGXPekelF4silSooB5KUUQvBSl40wpSKutB4i0KkpeU58GFwtKKf1hkD3qV4mFxZVmSZn4empTsbjZvkn3ZhaW/U2bezPvMd35/Zl5EVTlom5+fL7Rarfe8gwaXy+Vyq9X6TUSOZw4KurCwcP/W1tYnwFlArLVNOYhtr1QqJ621S8CT3S5tt9sPTVS57/uZbDb7AXAB6Gf9EsfxPxODG2Nms9nsElDa+UxEmgCpB5yIiDHmnKreHAQG6HQ61wBS9bkxZhb4TFX9IcNa+Xy+UKvVNlPbdmPMq6p6BcglDL1eq9U2YXsQjGWVSuVBa+1l4GXHKc3ej33BgyCoeJ53BXjEdY61dn9wY8wDqnrJ87w3R5z6b6fTWRkbHobhsyKyBJwYda6q3ojj+PbI8FKplC0Wix+KyHlgalQwgIis9red4EEQPF0oFJZU9ZlxoD3zPO/zbYsZluciIkEQvC0iF4H8fsCq+nej0dgWmHsqD8Pw0SAIrorIsILhbL2S2m8Dy2u5XD4tIr+mBe7atUR4GIYvAq8BG0BqtTeTyexSPtTnvu/np6amHvc87wTwPPAWcN8Y7LUoip7ataBhM+I43gJWgdUwDH8H3hCRkeGqukt1Irxni4uLU93CcmxUMAwONnA8z9fX1y8Ap8YBAzaXy/04cFFJ53n3/rXM+IfQShRFJwc9GPrC7gHy9T7A0HeE7rSkbf8UeMIRcgP4bkD/rvxOhJfL5QVVfd0RvGmtfWVmZuYl4M++/q12u708EjwIgoeBLx3BAO82m821arXaAt7vdYrIT910dYd3byfHXaiq+n0URZd77Uaj8Q3wM4C1ds8tHwg3xpwFXnABA7c8zzuzYzEKnIe983sg3Bgzq6qXHMGIyJl6vX5rZ38URRHw7dzc3M2h83t5XiqVsoVC4bqIuF4YvoiiaM87nO/7x+I4/m/YC+4qLxaLH48AXsvn8+8MG5AEhq5yY8xzqhrjVm5vW2tPNZvNleShw83zfT+jql85ghGRj9IAA3i5XM4HHnMcvzw9PX0xDTDcUev0maOqGyJyulqtdlKDq+rAE2enici5er3+V1pguKPcxdc/RFF0NU2wM1xV/0gb7AwXETspuCQNUtWJwQ9VuUvAHU3liT631k7kb8pDV+6S50fT54enXEQSA87zvMnAVfWez/e0I6v88CqcS8BNLNpFJBFurT08n09MuQt8ktGeGHD38jxtywAbqtqLeulb0N32pJT/D6Ytcj4BbQBBAAAAAElFTkSuQmCC"},1607:t=>{"use strict";t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC0AAAAwCAYAAACFUvPfAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAKxAAACsQBZm2C1AAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAUySURBVGiB7ZldiFRlGMf/z+s5Izuru7PSBwRqoRcZiBWR7IY40JxZF9ToYwMhAqUuFKIb9SIKRsgotMQSWvqkCMqmC1mSac67wqFYtsK9yNQ+yFWiwtRpN7dtd77epwtnt1l3znvec8aNLvxfnbPP128f3jnzzHOA6/pvRPORNJlM3mDb9hpmvoOIFgNoA9BCRKPMfBHABSHEmWKxeMLzvErY/NcMOpVKrSaiLQB6Aaw0DJsgos8AfNDV1dWfyWSUSVDT0Ol0+nZm3gvgwSbz/Qhgl5SyP8ixKehUKvU4EfUBaGkmT72Y+Y2Ojo6nstlsyc8nKjSlUqlDRLQjYrxWzPyFbdsbc7nc5UZ2ESWp4zjPzxcwABDRumq1ejiZTFqN7KGh0+n0RgDPNE0WIGbeEIvF9jWyhToeyWQyYdv2KQC3hAgbA3AewASAm2qxCwxjlRCiM5/Pf13/x1CdtizraRgAE9EZADuJaJWUcomUcpWU8h4p5bJyuZwA8CSA7w1KCqXUa5lMZhancac3b968eHJy8hyAJRo3JqIXCoXCnuHh4bIuX2dnZ0tra+shItpmUP6B+kdhw4PeSFNTU73QAwPADtd1+0zyDQ0NTQJ4wnGcFgBbdL5EtB3ADLTx8VBKPRbg8p6U0gi4Tlwul7cB+EnrxJxOp9O3Td8bQXd3dy8hovUal78ty9plxjlbnudNAdgd4CaY+aGZG5PESqn1Ab7v53K5iya5GklKeYSZf9D5ENGG6WvT46HrMoQQHxvm8RMLId7WOjCv27RpUxwwhGbmuzXmcltb22AIQD99EmBfWCwW7wTMoImIVmuM3+mGG1O5rnsWwIjOh5nvAgygk8nkzQASmkQnwgJq9LnOSERrAAPoWCy2PMDlZAgorZj5G51dKbUSMDseS3VGIor81GiQ61udXQixDDCAVkrdGGAvhEPzFxH9qrMz89JMJiNMOt0eUGgsFJlGpVLpfIBLbGhoKCEAIJ1Ot149SdVBtemyCCGuGbTneWMApnQ+1Wp1kTV9MTg4eNxxnKMAPpJSHq/z69AlqVQqM9NcT0/Pwkqlcj8zPyyEOOm67oEI7OcB3Kqxt86Mpo7jvIR/Z4CfmflTIjpKRFuZ+RG/DEqpHiHEcgDdzJyq7TkuMfPKgYGBP8MSO47zJYC1mnr3zoym5XJ5n2VZ22tFl9V+A+5gZm0RIURu+proSg+YeW8U4JomdEbLshbNnGPP8y4JIV6NWKhe52zbfr2JeO3GiZlbZ334SqXSfgCjTRQEET2by+WKUeOZOWgkWDQL2vO8MWY+GLUgEZ3o6ur6MGp8TUGdpjmPOdu2DwD4I0o1pdRu032cn4hI22lmrs6Brm11Xo5QzxsYGMhHiLta2n9aCKH8vlAOArgQohAT0c4wZBrFdEalVGNo13UniGh/iEKHXdcdDoXmLzvAPvd4TGt8fPwQgN8MipSFEM+FwtJL22nf4wFc2Uswc8NdWr2IqC+fz2tXACGl7XTDD2K9KpVKH4BfNC5/VavVvVHINNJ2mojKWujaTuJFPzsz7z927NjvEeH8pO00EVUC5+lEIvEmgLMNTBfi8fgrUck00na6Wq3qOw0A2Wy2RERzuk1Ee/r7+8ebofORttNCiGBoACgUCu9i9s/7kfb29reaIfMTMwc98irGq95UKrWViN6p3T4qpcxGR/OX4zj3MbPvi6d4PP6VMXRvb++C0dHRU0R0WUq5FoB+0J5Hmb5GwOnTp3nFihVjAI6MjIxoN0H/N83La+nr+r/qHxuK3rF5mZJHAAAAAElFTkSuQmCC"},1938:t=>{"use strict";t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC0AAAAwCAYAAACFUvPfAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAKxAAACsQBZm2C1AAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAUySURBVGiB7ZldiFRlGMf/z+s5Izuru7PSBwRqoRcZiBWR7IY40JxZF9ToYwMhAqUuFKIb9SIKRsgotMQSWvqkCMqmC1mSac67wqFYtsK9yNQ+yFWiwtRpN7dtd77epwtnt1l3znvec8aNLvxfnbPP128f3jnzzHOA6/pvRPORNJlM3mDb9hpmvoOIFgNoA9BCRKPMfBHABSHEmWKxeMLzvErY/NcMOpVKrSaiLQB6Aaw0DJsgos8AfNDV1dWfyWSUSVDT0Ol0+nZm3gvgwSbz/Qhgl5SyP8ixKehUKvU4EfUBaGkmT72Y+Y2Ojo6nstlsyc8nKjSlUqlDRLQjYrxWzPyFbdsbc7nc5UZ2ESWp4zjPzxcwABDRumq1ejiZTFqN7KGh0+n0RgDPNE0WIGbeEIvF9jWyhToeyWQyYdv2KQC3hAgbA3AewASAm2qxCwxjlRCiM5/Pf13/x1CdtizraRgAE9EZADuJaJWUcomUcpWU8h4p5bJyuZwA8CSA7w1KCqXUa5lMZhancac3b968eHJy8hyAJRo3JqIXCoXCnuHh4bIuX2dnZ0tra+shItpmUP6B+kdhw4PeSFNTU73QAwPADtd1+0zyDQ0NTQJ4wnGcFgBbdL5EtB3ADLTx8VBKPRbg8p6U0gi4Tlwul7cB+EnrxJxOp9O3Td8bQXd3dy8hovUal78ty9plxjlbnudNAdgd4CaY+aGZG5PESqn1Ab7v53K5iya5GklKeYSZf9D5ENGG6WvT46HrMoQQHxvm8RMLId7WOjCv27RpUxwwhGbmuzXmcltb22AIQD99EmBfWCwW7wTMoImIVmuM3+mGG1O5rnsWwIjOh5nvAgygk8nkzQASmkQnwgJq9LnOSERrAAPoWCy2PMDlZAgorZj5G51dKbUSMDseS3VGIor81GiQ61udXQixDDCAVkrdGGAvhEPzFxH9qrMz89JMJiNMOt0eUGgsFJlGpVLpfIBLbGhoKCEAIJ1Ot149SdVBtemyCCGuGbTneWMApnQ+1Wp1kTV9MTg4eNxxnKMAPpJSHq/z69AlqVQqM9NcT0/Pwkqlcj8zPyyEOOm67oEI7OcB3Kqxt86Mpo7jvIR/Z4CfmflTIjpKRFuZ+RG/DEqpHiHEcgDdzJyq7TkuMfPKgYGBP8MSO47zJYC1mnr3zoym5XJ5n2VZ22tFl9V+A+5gZm0RIURu+proSg+YeW8U4JomdEbLshbNnGPP8y4JIV6NWKhe52zbfr2JeO3GiZlbZ334SqXSfgCjTRQEET2by+WKUeOZOWgkWDQL2vO8MWY+GLUgEZ3o6ur6MGp8TUGdpjmPOdu2DwD4I0o1pdRu032cn4hI22lmrs6Brm11Xo5QzxsYGMhHiLta2n9aCKH8vlAOArgQohAT0c4wZBrFdEalVGNo13UniGh/iEKHXdcdDoXmLzvAPvd4TGt8fPwQgN8MipSFEM+FwtJL22nf4wFc2Uswc8NdWr2IqC+fz2tXACGl7XTDD2K9KpVKH4BfNC5/VavVvVHINNJ2mojKWujaTuJFPzsz7z927NjvEeH8pO00EVUC5+lEIvEmgLMNTBfi8fgrUck00na6Wq3qOw0A2Wy2RERzuk1Ee/r7+8ebofORttNCiGBoACgUCu9i9s/7kfb29reaIfMTMwc98irGq95UKrWViN6p3T4qpcxGR/OX4zj3MbPvi6d4PP6VMXRvb++C0dHRU0R0WUq5FoB+0J5Hmb5GwOnTp3nFihVjAI6MjIxoN0H/N83La+nr+r/qHxuK3rF5mZJHAAAAAElFTkSuQmCC"},3845:t=>{"use strict";t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC0AAAAwCAYAAACFUvPfAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAKxAAACsQBZm2C1AAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAVFSURBVGiB7ZlbiBtVGMf/3zeT0G0X3XStiNTbRhQsqBBEsIJTcmmxBakYiuJb8aEvilBpxQpRVtAqra1asF5AFC8EL2zFpJkNDGrdp0opdqG0xqIrbW3dTbuX0sxmPh+6kWw2c87kwupDf2+Z73J+O3tO5swJcJXFgdopisViof7+/rtFZADA9US0QkQiAC4R0QXP86aY+VilUjnqOM757iq3IJ1Op42JiYlHiOhJAGsBLA1YegJAlog+KxQKv7Qj2Ugg6WQyuRHATgC3dzCWAPjSMIwd+Xz+eAd91NKWZZmhUGgQwLZOBmngMoBttm3vabeB4RewLKsvFAoVADzebnMfTADrotHo8lKplG+nQVPpWCwW6u3t/QaA1YGcjvuj0SiXSiWn1UJudjESibwJINmpVQBejMfj61otWjCnE4nEg0T0fbOYD1UAfwI4B2AZgBsA9LXgMGaa5qpcLncxaIFZ/yGdThvlcnkvggmPEtEuAJ8XCoXpuuuUSqXu9DxvAxFtATCg6bOyWq0+DWAwqPQ8uVQq9ZiIZLVFRO9NTk4+MzIyckmVl06nw+VyOQNge+NYDfztuu6tjuNMBZGetxAHBgbeAnCbpuZj27Y3j42Nubrmo6Oj1VKpVIxGo+cBPKxIXcrMJ0ul0hG9ct1CjMfjdwBYo8k/YZrmU7jyoAiMbdvvAPhEKcL8RNB+/0oT0aPQz+WtuVzuctDm9XietxWA73QSkTWJROLaIL3qpddqckdt2x4KpriQYrF4lohUd9sgooeC9GIAsCyrF8ADqkQiej+4YnNE5AtNSnDpUCgUAxBWJjJ/HUzNH9M0fwSgWsD3BulTmx7KZBE5ns/nTwVT82duPah2ePcE6RNImoh+COilhYiOKsL9lmVdp+tRk1buk0VENVBLiMgxVTwcDt+i61GTvlmVZBhGV944AEBEzqninufppS3LMgHcqGk01pqaknGlELN+eoTD4eVo2Dg1Yprm2RbFVFITmhTtA4Y9z+vV5Ey3sm3UQURlTUpT6Uwmw6lUahkAmCLSS6R8ep9uRy6VSj0rIqsAfNXX1zeczWYrADA7OzvL3PTdAwAgIvOk4/H4fcy86dChQ+s9z7MATJu4snFX8Vc70p7nfUhEJwFsLpfLF5PJZJGI8gD+EPHfbxHRikQisZ6Z14vIBgA3zYV2FovFswDARKSTntbEmzI8PHxBRF6Z+3gNgI0i8q6IfKeqE5FNRPStiGypCYvIpOu6r9dymJl1c1q7b/YjEonsI6Jf262vY0/9SRVDMz2IqG3pbDZbEZFMu/VzXDAMY3f9BRYR/1UBQETalgaA1atXfyoiP3fQYtfBgwfnfbeziFRVFURU6WBAZDIZT0ReaLO87Lru3saLzMxKac/zWnq1akaxWMwT0XCrdUS003GcBd/rLCKeplC5zw6KiDwHQDlWA+eXLFnydrOAVlpEQq3I+WHb9pEgxxN14742NDQ02SzGRLQodxoAmPl5ANo1QkRnenp69vn2IaJZTYOuSRcKhd8A7NflicirBw4cmPGLMwCldLemRw3TNF8GoNqAnZ6amlL+YSwiyn9XN+80AORyuXNEtNsvTkSDuuM21j3xRKSr0gBQqVTeIKIzTUK/G4bxga6eq9WqUpqIujo9AMBxnCkRWXBKKiKDQU6wmJkX/U4DwPj4+H5c+eWrxqlIJPJRkFqzp6fn+MzMjO+pPzP7ruJOOHz4sJtIJHYQUe3U6aXai4KOtn787CKUTCZ/AtDvuu5djuMov8lqKF9oFwEBsJ2IVgYV/j/xX//Hr9KUfwAe1OfnoChuNgAAAABJRU5ErkJggg=="},5746:t=>{"use strict";t.exports=config},3752:()=>{},3640:()=>{},2630:()=>{},9659:(t,e,n)=>{"use strict";n.d(e,{Ie:()=>l,It:()=>o,L:()=>r,L5:()=>c,P1:()=>p,Qb:()=>h,pd:()=>u,sf:()=>s});const r={315:"Artist",258:"BitsPerSample",265:"CellLength",264:"CellWidth",320:"ColorMap",259:"Compression",33432:"Copyright",306:"DateTime",338:"ExtraSamples",266:"FillOrder",289:"FreeByteCounts",288:"FreeOffsets",291:"GrayResponseCurve",290:"GrayResponseUnit",316:"HostComputer",270:"ImageDescription",257:"ImageLength",256:"ImageWidth",271:"Make",281:"MaxSampleValue",280:"MinSampleValue",272:"Model",254:"NewSubfileType",274:"Orientation",262:"PhotometricInterpretation",284:"PlanarConfiguration",296:"ResolutionUnit",278:"RowsPerStrip",277:"SamplesPerPixel",305:"Software",279:"StripByteCounts",273:"StripOffsets",255:"SubfileType",263:"Threshholding",282:"XResolution",283:"YResolution",326:"BadFaxLines",327:"CleanFaxData",343:"ClipPath",328:"ConsecutiveBadFaxLines",433:"Decode",434:"DefaultImageColor",269:"DocumentName",336:"DotRange",321:"HalftoneHints",346:"Indexed",347:"JPEGTables",285:"PageName",297:"PageNumber",317:"Predictor",319:"PrimaryChromaticities",532:"ReferenceBlackWhite",339:"SampleFormat",340:"SMinSampleValue",341:"SMaxSampleValue",559:"StripRowCounts",330:"SubIFDs",292:"T4Options",293:"T6Options",325:"TileByteCounts",323:"TileLength",324:"TileOffsets",322:"TileWidth",301:"TransferFunction",318:"WhitePoint",344:"XClipPathUnits",286:"XPosition",529:"YCbCrCoefficients",531:"YCbCrPositioning",530:"YCbCrSubSampling",345:"YClipPathUnits",287:"YPosition",37378:"ApertureValue",40961:"ColorSpace",36868:"DateTimeDigitized",36867:"DateTimeOriginal",34665:"Exif IFD",36864:"ExifVersion",33434:"ExposureTime",41728:"FileSource",37385:"Flash",40960:"FlashpixVersion",33437:"FNumber",42016:"ImageUniqueID",37384:"LightSource",37500:"MakerNote",37377:"ShutterSpeedValue",37510:"UserComment",33723:"IPTC",34675:"ICC Profile",700:"XMP",42112:"GDAL_METADATA",42113:"GDAL_NODATA",34377:"Photoshop",33550:"ModelPixelScale",33922:"ModelTiepoint",34264:"ModelTransformation",34735:"GeoKeyDirectory",34736:"GeoDoubleParams",34737:"GeoAsciiParams",50674:"LercParameters"},i={};for(const t in r)r.hasOwnProperty(t)&&(i[r[t]]=parseInt(t,10));const o=[i.BitsPerSample,i.ExtraSamples,i.SampleFormat,i.StripByteCounts,i.StripOffsets,i.StripRowCounts,i.TileByteCounts,i.TileOffsets,i.SubIFDs],a={1:"BYTE",2:"ASCII",3:"SHORT",4:"LONG",5:"RATIONAL",6:"SBYTE",7:"UNDEFINED",8:"SSHORT",9:"SLONG",10:"SRATIONAL",11:"FLOAT",12:"DOUBLE",13:"IFD",16:"LONG8",17:"SLONG8",18:"IFD8"},s={};for(const t in a)a.hasOwnProperty(t)&&(s[a[t]]=parseInt(t,10));const l={WhiteIsZero:0,BlackIsZero:1,RGB:2,Palette:3,TransparencyMask:4,CMYK:5,YCbCr:6,CIELab:8,ICCLab:9},u={Unspecified:0,Assocalpha:1,Unassalpha:2},c={Version:0,AddCompression:1},h={None:0,Deflate:1},p={1024:"GTModelTypeGeoKey",1025:"GTRasterTypeGeoKey",1026:"GTCitationGeoKey",2048:"GeographicTypeGeoKey",2049:"GeogCitationGeoKey",2050:"GeogGeodeticDatumGeoKey",2051:"GeogPrimeMeridianGeoKey",2052:"GeogLinearUnitsGeoKey",2053:"GeogLinearUnitSizeGeoKey",2054:"GeogAngularUnitsGeoKey",2055:"GeogAngularUnitSizeGeoKey",2056:"GeogEllipsoidGeoKey",2057:"GeogSemiMajorAxisGeoKey",2058:"GeogSemiMinorAxisGeoKey",2059:"GeogInvFlatteningGeoKey",2060:"GeogAzimuthUnitsGeoKey",2061:"GeogPrimeMeridianLongGeoKey",2062:"GeogTOWGS84GeoKey",3072:"ProjectedCSTypeGeoKey",3073:"PCSCitationGeoKey",3074:"ProjectionGeoKey",3075:"ProjCoordTransGeoKey",3076:"ProjLinearUnitsGeoKey",3077:"ProjLinearUnitSizeGeoKey",3078:"ProjStdParallel1GeoKey",3079:"ProjStdParallel2GeoKey",3080:"ProjNatOriginLongGeoKey",3081:"ProjNatOriginLatGeoKey",3082:"ProjFalseEastingGeoKey",3083:"ProjFalseNorthingGeoKey",3084:"ProjFalseOriginLongGeoKey",3085:"ProjFalseOriginLatGeoKey",3086:"ProjFalseOriginEastingGeoKey",3087:"ProjFalseOriginNorthingGeoKey",3088:"ProjCenterLongGeoKey",3089:"ProjCenterLatGeoKey",3090:"ProjCenterEastingGeoKey",3091:"ProjCenterNorthingGeoKey",3092:"ProjScaleAtNatOriginGeoKey",3093:"ProjScaleAtCenterGeoKey",3094:"ProjAzimuthAngleGeoKey",3095:"ProjStraightVertPoleLongGeoKey",3096:"ProjRectifiedGridAngleGeoKey",4096:"VerticalCSTypeGeoKey",4097:"VerticalCitationGeoKey",4098:"VerticalDatumGeoKey",4099:"VerticalUnitsGeoKey"},d={};for(const t in p)p.hasOwnProperty(t)&&(d[p[t]]=parseInt(t,10))},3813:(t,e,n)=>{"use strict";n.r(e),n.d(e,{apply:()=>A,applyBackground:()=>P,applyStyle:()=>T,default:()=>M,getFeatureState:()=>O,getLayer:()=>R,getLayers:()=>I,getSource:()=>L,recordStyleLayer:()=>F,renderTransparent:()=>N,setFeatureState:()=>D,stylefunction:()=>z});var r=n(3787),i=n(3856),o=n(5218),a=n(3514),s=n(2795),l=n(1457),u=n(1545),c=n(6534),h=n(5347),p=n(9216),d=n(456),f=n(8948),g=n(789),m=n(5952),y=n(7325),v=n(5792),_=n(3936),b=n(2405),w=n(6087),x=n(5035),S=n(6162),C={338:t=>{function e(t,e){this.x=t,this.y=e}t.exports=e,e.prototype={clone:function(){return new e(this.x,this.y)},add:function(t){return this.clone()._add(t)},sub:function(t){return this.clone()._sub(t)},multByPoint:function(t){return this.clone()._multByPoint(t)},divByPoint:function(t){return this.clone()._divByPoint(t)},mult:function(t){return this.clone()._mult(t)},div:function(t){return this.clone()._div(t)},rotate:function(t){return this.clone()._rotate(t)},rotateAround:function(t,e){return this.clone()._rotateAround(t,e)},matMult:function(t){return this.clone()._matMult(t)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(t){return this.x===t.x&&this.y===t.y},dist:function(t){return Math.sqrt(this.distSqr(t))},distSqr:function(t){var e=t.x-this.x,n=t.y-this.y;return e*e+n*n},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(t){return Math.atan2(this.y-t.y,this.x-t.x)},angleWith:function(t){return this.angleWithSep(t.x,t.y)},angleWithSep:function(t,e){return Math.atan2(this.x*e-this.y*t,this.x*t+this.y*e)},_matMult:function(t){var e=t[0]*this.x+t[1]*this.y,n=t[2]*this.x+t[3]*this.y;return this.x=e,this.y=n,this},_add:function(t){return this.x+=t.x,this.y+=t.y,this},_sub:function(t){return this.x-=t.x,this.y-=t.y,this},_mult:function(t){return this.x*=t,this.y*=t,this},_div:function(t){return this.x/=t,this.y/=t,this},_multByPoint:function(t){return this.x*=t.x,this.y*=t.y,this},_divByPoint:function(t){return this.x/=t.x,this.y/=t.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var t=this.y;return this.y=this.x,this.x=-t,this},_rotate:function(t){var e=Math.cos(t),n=Math.sin(t),r=e*this.x-n*this.y,i=n*this.x+e*this.y;return this.x=r,this.y=i,this},_rotateAround:function(t,e){var n=Math.cos(t),r=Math.sin(t),i=e.x+n*(this.x-e.x)-r*(this.y-e.y),o=e.y+r*(this.x-e.x)+n*(this.y-e.y);return this.x=i,this.y=o,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},e.convert=function(t){return t instanceof e?t:Array.isArray(t)?new e(t[0],t[1]):t}},946:t=>{function e(t,e,n,r){this.cx=3*t,this.bx=3*(n-t)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*e,this.by=3*(r-e)-this.cy,this.ay=1-this.cy-this.by,this.p1x=t,this.p1y=r,this.p2x=n,this.p2y=r}t.exports=e,e.prototype.sampleCurveX=function(t){return((this.ax*t+this.bx)*t+this.cx)*t},e.prototype.sampleCurveY=function(t){return((this.ay*t+this.by)*t+this.cy)*t},e.prototype.sampleCurveDerivativeX=function(t){return(3*this.ax*t+2*this.bx)*t+this.cx},e.prototype.solveCurveX=function(t,e){var n,r,i,o,a;for(void 0===e&&(e=1e-6),i=t,a=0;a<8;a++){if(o=this.sampleCurveX(i)-t,Math.abs(o)<e)return i;var s=this.sampleCurveDerivativeX(i);if(Math.abs(s)<1e-6)break;i-=o/s}if((i=t)<(n=0))return n;if(i>(r=1))return r;for(;n<r;){if(o=this.sampleCurveX(i),Math.abs(o-t)<e)return i;t>o?n=i:r=i,i=.5*(r-n)+n}return i},e.prototype.solve=function(t,e){return this.sampleCurveY(this.solveCurveX(t,e))}},872:(t,e)=>{var n={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],rebeccapurple:[102,51,153,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function r(t){return(t=Math.round(t))<0?0:t>255?255:t}function i(t){return t<0?0:t>1?1:t}function o(t){return"%"===t[t.length-1]?r(parseFloat(t)/100*255):r(parseInt(t))}function a(t){return"%"===t[t.length-1]?i(parseFloat(t)/100):i(parseFloat(t))}function s(t,e,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?t+(e-t)*n*6:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}try{e.G=function(t){var e,i=t.replace(/ /g,"").toLowerCase();if(i in n)return n[i].slice();if("#"===i[0])return 4===i.length?(e=parseInt(i.substr(1),16))>=0&&e<=4095?[(3840&e)>>4|(3840&e)>>8,240&e|(240&e)>>4,15&e|(15&e)<<4,1]:null:7===i.length&&(e=parseInt(i.substr(1),16))>=0&&e<=16777215?[(16711680&e)>>16,(65280&e)>>8,255&e,1]:null;var l=i.indexOf("("),u=i.indexOf(")");if(-1!==l&&u+1===i.length){var c=i.substr(0,l),h=i.substr(l+1,u-(l+1)).split(","),p=1;switch(c){case"rgba":if(4!==h.length)return null;p=a(h.pop());case"rgb":return 3!==h.length?null:[o(h[0]),o(h[1]),o(h[2]),p];case"hsla":if(4!==h.length)return null;p=a(h.pop());case"hsl":if(3!==h.length)return null;var d=(parseFloat(h[0])%360+360)%360/360,f=a(h[1]),g=a(h[2]),m=g<=.5?g*(f+1):g+f-g*f,y=2*g-m;return[r(255*s(y,m,d+1/3)),r(255*s(y,m,d)),r(255*s(y,m,d-1/3)),p];default:return null}}return null}}catch(t){}},523:t=>{var e={thin:100,hairline:100,"ultra-light":100,"extra-light":100,light:200,book:300,regular:400,normal:400,plain:400,roman:400,standard:400,medium:500,"semi-bold":600,"demi-bold":600,bold:700,heavy:800,black:800,"extra-bold":800,"ultra-black":900,"extra-black":900,"ultra-bold":900,"heavy-black":900,fat:900,poster:900},n=" ",r=/(italic|oblique)$/i,i={};t.exports=function(t,o,a){var s=i[t];if(!s){Array.isArray(t)||(t=[t]);for(var l=400,u="normal",c=[],h=0,p=t.length;h<p;++h){var d=t[h].split(" "),f=d[d.length-1].toLowerCase();for(var g in"normal"==f||"italic"==f||"oblique"==f?(u=f,d.pop(),f=d[d.length-1].toLowerCase()):r.test(f)&&(f=f.replace(r,""),u=d[d.length-1].replace(f,"")),e){var m=d.length>1?d[d.length-2].toLowerCase():"";if(f==g||f==g.replace("-","")||m+"-"+f==g){l=e[g],d.pop(),m&&g.startsWith(m)&&d.pop();break}}"number"==typeof f&&(l=f);var y=d.join(n).replace("Klokantech Noto Sans","Noto Sans");-1!==y.indexOf(n)&&(y='"'+y+'"'),c.push(y)}s=i[t]=[u,l,c]}return s[0]+n+s[1]+n+o+"px"+(a?"/"+a:"")+n+s[2]}},619:t=>{t.exports=function t(n,r){if(!n){var i=new e(r);throw Error.captureStackTrace&&Error.captureStackTrace(i,t),i}};var e=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(Error);e.prototype.name="AssertionError"},422:function(t){(function(){var e;t.exports={icon:"icons/google.svg",name:"google",title:"Google Fonts",link:"google.com/fonts",getNames:function(){return e},getLink:function(t){return"https://fonts.google.com/specimen/"+t.replace(/( )/g,"+")},normalizeName:function(t){return t}},e=["ABeeZee","Abel","Abril Fatface","Aclonica","Acme","Actor","Adamina","Advent Pro","Aguafina Script","Akronim","Aladin","Aldrich","Alef","Alegreya","Alegreya SC","Alegreya Sans","Alegreya Sans SC","Alex Brush","Alfa Slab One","Alice","Alike","Alike Angular","Allan","Allerta","Allerta Stencil","Allura","Almendra","Almendra Display","Almendra SC","Amarante","Amaranth","Amatic SC","Amethysta","Amiri","Amita","Anaheim","Andada","Andika","Angkor","Annie Use Your Telescope","Anonymous Pro","Antic","Antic Didone","Antic Slab","Anton","Arapey","Arbutus","Arbutus Slab","Architects Daughter","Archivo Black","Archivo Narrow","Arimo","Arizonia","Armata","Artifika","Arvo","Arya","Asap","Asar","Asset","Astloch","Asul","Atomic Age","Aubrey","Audiowide","Autour One","Average","Average Sans","Averia Gruesa Libre","Averia Libre","Averia Sans Libre","Averia Serif Libre","Bad Script","Balthazar","Bangers","Basic","Battambang","Baumans","Bayon","Belgrano","Belleza","BenchNine","Bentham","Berkshire Swash","Bevan","Bigelow Rules","Bigshot One","Bilbo","Bilbo Swash Caps","Biryani","Bitter","Black Ops One","Bokor","Bonbon","Boogaloo","Bowlby One","Bowlby One SC","Brawler","Bree Serif","Bubblegum Sans","Bubbler One","Buda","Buenard","Butcherman","Butterfly Kids","Cabin","Cabin Condensed","Cabin Sketch","Caesar Dressing","Cagliostro","Calligraffitti","Cambay","Cambo","Candal","Cantarell","Cantata One","Cantora One","Capriola","Cardo","Carme","Carrois Gothic","Carrois Gothic SC","Carter One","Catamaran","Caudex","Caveat","Caveat Brush","Cedarville Cursive","Ceviche One","Changa One","Chango","Chau Philomene One","Chela One","Chelsea Market","Chenla","Cherry Cream Soda","Cherry Swash","Chewy","Chicle","Chivo","Chonburi","Cinzel","Cinzel Decorative","Clicker Script","Coda","Coda Caption","Codystar","Combo","Comfortaa","Coming Soon","Concert One","Condiment","Content","Contrail One","Convergence","Cookie","Copse","Corben","Courgette","Cousine","Coustard","Covered By Your Grace","Crafty Girls","Creepster","Crete Round","Crimson Text","Croissant One","Crushed","Cuprum","Cutive","Cutive Mono","Damion","Dancing Script","Dangrek","Dawning of a New Day","Days One","Dekko","Delius","Delius Swash Caps","Delius Unicase","Della Respira","Denk One","Devonshire","Dhurjati","Didact Gothic","Diplomata","Diplomata SC","Domine","Donegal One","Doppio One","Dorsa","Dosis","Dr Sugiyama","Droid Sans","Droid Sans Mono","Droid Serif","Duru Sans","Dynalight","EB Garamond","Eagle Lake","Eater","Economica","Eczar","Ek Mukta","Electrolize","Elsie","Elsie Swash Caps","Emblema One","Emilys Candy","Engagement","Englebert","Enriqueta","Erica One","Esteban","Euphoria Script","Ewert","Exo","Exo 2","Expletus Sans","Fanwood Text","Fascinate","Fascinate Inline","Faster One","Fasthand","Fauna One","Federant","Federo","Felipa","Fenix","Finger Paint","Fira Mono","Fira Sans","Fjalla One","Fjord One","Flamenco","Flavors","Fondamento","Fontdiner Swanky","Forum","Francois One","Freckle Face","Fredericka the Great","Fredoka One","Freehand","Fresca","Frijole","Fruktur","Fugaz One","GFS Didot","GFS Neohellenic","Gabriela","Gafata","Galdeano","Galindo","Gentium Basic","Gentium Book Basic","Geo","Geostar","Geostar Fill","Germania One","Gidugu","Gilda Display","Give You Glory","Glass Antiqua","Glegoo","Gloria Hallelujah","Goblin One","Gochi Hand","Gorditas","Goudy Bookletter 1911","Graduate","Grand Hotel","Gravitas One","Great Vibes","Griffy","Gruppo","Gudea","Gurajada","Habibi","Halant","Hammersmith One","Hanalei","Hanalei Fill","Handlee","Hanuman","Happy Monkey","Headland One","Henny Penny","Herr Von Muellerhoff","Hind","Hind Siliguri","Hind Vadodara","Holtwood One SC","Homemade Apple","Homenaje","IM Fell DW Pica","IM Fell DW Pica SC","IM Fell Double Pica","IM Fell Double Pica SC","IM Fell English","IM Fell English SC","IM Fell French Canon","IM Fell French Canon SC","IM Fell Great Primer","IM Fell Great Primer SC","Iceberg","Iceland","Imprima","Inconsolata","Inder","Indie Flower","Inika","Inknut Antiqua","Irish Grover","Istok Web","Italiana","Italianno","Itim","Jacques Francois","Jacques Francois Shadow","Jaldi","Jim Nightshade","Jockey One","Jolly Lodger","Josefin Sans","Josefin Slab","Joti One","Judson","Julee","Julius Sans One","Junge","Jura","Just Another Hand","Just Me Again Down Here","Kadwa","Kalam","Kameron","Kantumruy","Karla","Karma","Kaushan Script","Kavoon","Kdam Thmor","Keania One","Kelly Slab","Kenia","Khand","Khmer","Khula","Kite One","Knewave","Kotta One","Koulen","Kranky","Kreon","Kristi","Krona One","Kurale","La Belle Aurore","Laila","Lakki Reddy","Lancelot","Lateef","Lato","League Script","Leckerli One","Ledger","Lekton","Lemon","Libre Baskerville","Life Savers","Lilita One","Lily Script One","Limelight","Linden Hill","Lobster","Lobster Two","Londrina Outline","Londrina Shadow","Londrina Sketch","Londrina Solid","Lora","Love Ya Like A Sister","Loved by the King","Lovers Quarrel","Luckiest Guy","Lusitana","Lustria","Macondo","Macondo Swash Caps","Magra","Maiden Orange","Mako","Mallanna","Mandali","Marcellus","Marcellus SC","Marck Script","Margarine","Marko One","Marmelad","Martel","Martel Sans","Marvel","Mate","Mate SC","Maven Pro","McLaren","Meddon","MedievalSharp","Medula One","Megrim","Meie Script","Merienda","Merienda One","Merriweather","Merriweather Sans","Metal","Metal Mania","Metamorphous","Metrophobic","Michroma","Milonga","Miltonian","Miltonian Tattoo","Miniver","Miss Fajardose","Modak","Modern Antiqua","Molengo","Molle","Monda","Monofett","Monoton","Monsieur La Doulaise","Montaga","Montez","Montserrat","Montserrat Alternates","Montserrat Subrayada","Moul","Moulpali","Mountains of Christmas","Mouse Memoirs","Mr Bedfort","Mr Dafoe","Mr De Haviland","Mrs Saint Delafield","Mrs Sheppards","Muli","Mystery Quest","NTR","Neucha","Neuton","New Rocker","News Cycle","Niconne","Nixie One","Nobile","Nokora","Norican","Nosifer","Nothing You Could Do","Noticia Text","Noto Sans","Noto Serif","Nova Cut","Nova Flat","Nova Mono","Nova Oval","Nova Round","Nova Script","Nova Slim","Nova Square","Numans","Nunito","Odor Mean Chey","Offside","Old Standard TT","Oldenburg","Oleo Script","Oleo Script Swash Caps","Open Sans","Open Sans Condensed","Oranienbaum","Orbitron","Oregano","Orienta","Original Surfer","Oswald","Over the Rainbow","Overlock","Overlock SC","Ovo","Oxygen","Oxygen Mono","PT Mono","PT Sans","PT Sans Caption","PT Sans Narrow","PT Serif","PT Serif Caption","Pacifico","Palanquin","Palanquin Dark","Paprika","Parisienne","Passero One","Passion One","Pathway Gothic One","Patrick Hand","Patrick Hand SC","Patua One","Paytone One","Peddana","Peralta","Permanent Marker","Petit Formal Script","Petrona","Philosopher","Piedra","Pinyon Script","Pirata One","Plaster","Play","Playball","Playfair Display","Playfair Display SC","Podkova","Poiret One","Poller One","Poly","Pompiere","Pontano Sans","Poppins","Port Lligat Sans","Port Lligat Slab","Pragati Narrow","Prata","Preahvihear","Press Start 2P","Princess Sofia","Prociono","Prosto One","Puritan","Purple Purse","Quando","Quantico","Quattrocento","Quattrocento Sans","Questrial","Quicksand","Quintessential","Qwigley","Racing Sans One","Radley","Rajdhani","Raleway","Raleway Dots","Ramabhadra","Ramaraja","Rambla","Rammetto One","Ranchers","Rancho","Ranga","Rationale","Ravi Prakash","Redressed","Reenie Beanie","Revalia","Rhodium Libre","Ribeye","Ribeye Marrow","Righteous","Risque","Roboto","Roboto Condensed","Roboto Mono","Roboto Slab","Rochester","Rock Salt","Rokkitt","Romanesco","Ropa Sans","Rosario","Rosarivo","Rouge Script","Rozha One","Rubik","Rubik Mono One","Rubik One","Ruda","Rufina","Ruge Boogie","Ruluko","Rum Raisin","Ruslan Display","Russo One","Ruthie","Rye","Sacramento","Sahitya","Sail","Salsa","Sanchez","Sancreek","Sansita One","Sarala","Sarina","Sarpanch","Satisfy","Scada","Scheherazade","Schoolbell","Seaweed Script","Sevillana","Seymour One","Shadows Into Light","Shadows Into Light Two","Shanti","Share","Share Tech","Share Tech Mono","Shojumaru","Short Stack","Siemreap","Sigmar One","Signika","Signika Negative","Simonetta","Sintony","Sirin Stencil","Six Caps","Skranji","Slabo 13px","Slabo 27px","Slackey","Smokum","Smythe","Sniglet","Snippet","Snowburst One","Sofadi One","Sofia","Sonsie One","Sorts Mill Goudy","Source Code Pro","Source Sans Pro","Source Serif Pro","Special Elite","Spicy Rice","Spinnaker","Spirax","Squada One","Sree Krushnadevaraya","Stalemate","Stalinist One","Stardos Stencil","Stint Ultra Condensed","Stint Ultra Expanded","Stoke","Strait","Sue Ellen Francisco","Sumana","Sunshiney","Supermercado One","Sura","Suranna","Suravaram","Suwannaphum","Swanky and Moo Moo","Syncopate","Tangerine","Taprom","Tauri","Teko","Telex","Tenali Ramakrishna","Tenor Sans","Text Me One","The Girl Next Door","Tienne","Tillana","Timmana","Tinos","Titan One","Titillium Web","Trade Winds","Trocchi","Trochut","Trykker","Tulpen One","Ubuntu","Ubuntu Condensed","Ubuntu Mono","Ultra","Uncial Antiqua","Underdog","Unica One","UnifrakturCook","UnifrakturMaguntia","Unkempt","Unlock","Unna","VT323","Vampiro One","Varela","Varela Round","Vast Shadow","Vesper Libre","Vibur","Vidaloka","Viga","Voces","Volkhov","Vollkorn","Voltaire","Waiting for the Sunrise","Wallpoet","Walter Turncoat","Warnes","Wellfleet","Wendy One","Wire One","Work Sans","Yanone Kaffeesatz","Yantramanav","Yellowtail","Yeseva One","Yesteryear","Zeyada"]}).call(this)},840:t=>{t.exports={$version:8,$root:{version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},light:{type:"light"},terrain:{type:"terrain"},fog:{type:"fog"},sources:{required:!0,type:"sources"},sprite:{type:"string"},glyphs:{type:"string"},transition:{type:"transition"},projection:{type:"projection"},layers:{required:!0,type:"array",value:"layer"}},sources:{"*":{type:"source"}},source:["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],source_vector:{type:{required:!0,type:"enum",values:{vector:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},attribution:{type:"string"},promoteId:{type:"promoteId"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster:{type:{required:!0,type:"enum",values:{raster:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},attribution:{type:"string"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster_dem:{type:{required:!0,type:"enum",values:{"raster-dem":{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},attribution:{type:"string"},encoding:{type:"enum",values:{terrarium:{},mapbox:{}},default:"mapbox"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_geojson:{type:{required:!0,type:"enum",values:{geojson:{}}},data:{type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},filter:{type:"*"},tolerance:{type:"number",default:.375},cluster:{type:"boolean",default:!1},clusterRadius:{type:"number",default:50,minimum:0},clusterMaxZoom:{type:"number"},clusterMinPoints:{type:"number"},clusterProperties:{type:"*"},lineMetrics:{type:"boolean",default:!1},generateId:{type:"boolean",default:!1},promoteId:{type:"promoteId"}},source_video:{type:{required:!0,type:"enum",values:{video:{}}},urls:{required:!0,type:"array",value:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},source_image:{type:{required:!0,type:"enum",values:{image:{}}},url:{required:!0,type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},layer:{id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},background:{},sky:{}},required:!0},metadata:{type:"*"},source:{type:"string"},"source-layer":{type:"string"},minzoom:{type:"number",minimum:0,maximum:24},maxzoom:{type:"number",minimum:0,maximum:24},filter:{type:"filter"},layout:{type:"layout"},paint:{type:"paint"}},layout:["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background","layout_sky"],layout_background:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_sky:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_fill:{"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_circle:{"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_heatmap:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_line:{"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-join":{type:"enum",values:{bevel:{},round:{},miter:{}},default:"miter",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,requires:[{"line-join":"miter"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_symbol:{"symbol-placement":{type:"enum",values:{point:{},line:{},"line-center":{}},default:"point",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-spacing":{type:"number",default:250,minimum:1,units:"pixels",requires:[{"symbol-placement":"line"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{type:"boolean",default:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{type:"enum",values:{auto:{},"viewport-y":{},source:{}},default:"auto",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-optional":{type:"boolean",default:!1,requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{},width:{},height:{},both:{}},default:"none",requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{type:"array",value:"number",length:4,default:[0,0,0,0],units:"pixels",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"resolvedImage",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-keep-upright":{type:"boolean",default:!1,requires:["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-offset":{type:"array",value:"number",length:2,default:[0,0],requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-field":{type:"formatted",default:"",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"],requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-size":{type:"number",default:16,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{type:"number",default:10,minimum:0,units:"ems",requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{type:"number",default:1.2,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-letter-spacing":{type:"number",default:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-justify":{type:"enum",values:{auto:{},left:{},center:{},right:{}},default:"center",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{type:"number",units:"ems",default:0,requires:["text-field"],"property-type":"data-driven",expression:{interpolated:!0,parameters:["zoom","feature"]}},"text-variable-anchor":{type:"array",value:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["text-field",{"!":"text-variable-anchor"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{type:"number",default:45,units:"degrees",requires:["text-field",{"symbol-placement":["line","line-center"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-writing-mode":{type:"array",value:"enum",values:{horizontal:{},vertical:{}},requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-keep-upright":{type:"boolean",default:!0,requires:["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-transform":{type:"enum",values:{none:{},uppercase:{},lowercase:{}},default:"none",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-offset":{type:"array",value:"number",units:"ems",length:2,default:[0,0],requires:["text-field",{"!":"text-radial-offset"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-optional":{type:"boolean",default:!1,requires:["text-field","icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_raster:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_hillshade:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},filter:{type:"array",value:"*"},filter_symbol:{type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature","pitch","distance-from-center"]}},filter_fill:{type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}},filter_line:{type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}},filter_circle:{type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}},"filter_fill-extrusion":{type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}},filter_heatmap:{type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}},filter_operator:{type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{},within:{}}},geometry_type:{type:"enum",values:{Point:{},LineString:{},Polygon:{}}},function:{expression:{type:"expression"},stops:{type:"array",value:"function_stop"},base:{type:"number",default:1,minimum:0},property:{type:"string",default:"$zoom"},type:{type:"enum",values:{identity:{},exponential:{},interval:{},categorical:{}},default:"exponential"},colorSpace:{type:"enum",values:{rgb:{},lab:{},hcl:{}},default:"rgb"},default:{type:"*",required:!1}},function_stop:{type:"array",minimum:0,maximum:24,value:["number","color"],length:2},expression:{type:"array",value:"*",minimum:1},expression_name:{type:"enum",values:{let:{group:"Variable binding"},var:{group:"Variable binding"},literal:{group:"Types"},array:{group:"Types"},at:{group:"Lookup"},in:{group:"Lookup"},"index-of":{group:"Lookup"},slice:{group:"Lookup"},case:{group:"Decision"},match:{group:"Decision"},coalesce:{group:"Decision"},step:{group:"Ramps, scales, curves"},interpolate:{group:"Ramps, scales, curves"},"interpolate-hcl":{group:"Ramps, scales, curves"},"interpolate-lab":{group:"Ramps, scales, curves"},ln2:{group:"Math"},pi:{group:"Math"},e:{group:"Math"},typeof:{group:"Types"},string:{group:"Types"},number:{group:"Types"},boolean:{group:"Types"},object:{group:"Types"},collator:{group:"Types"},format:{group:"Types"},image:{group:"Types"},"number-format":{group:"Types"},"to-string":{group:"Types"},"to-number":{group:"Types"},"to-boolean":{group:"Types"},"to-rgba":{group:"Color"},"to-color":{group:"Types"},rgb:{group:"Color"},rgba:{group:"Color"},get:{group:"Lookup"},has:{group:"Lookup"},length:{group:"Lookup"},properties:{group:"Feature data"},"feature-state":{group:"Feature data"},"geometry-type":{group:"Feature data"},id:{group:"Feature data"},zoom:{group:"Camera"},pitch:{group:"Camera"},"distance-from-center":{group:"Camera"},"heatmap-density":{group:"Heatmap"},"line-progress":{group:"Feature data"},"sky-radial-progress":{group:"sky"},accumulated:{group:"Feature data"},"+":{group:"Math"},"*":{group:"Math"},"-":{group:"Math"},"/":{group:"Math"},"%":{group:"Math"},"^":{group:"Math"},sqrt:{group:"Math"},log10:{group:"Math"},ln:{group:"Math"},log2:{group:"Math"},sin:{group:"Math"},cos:{group:"Math"},tan:{group:"Math"},asin:{group:"Math"},acos:{group:"Math"},atan:{group:"Math"},min:{group:"Math"},max:{group:"Math"},round:{group:"Math"},abs:{group:"Math"},ceil:{group:"Math"},floor:{group:"Math"},distance:{group:"Math"},"==":{group:"Decision"},"!=":{group:"Decision"},">":{group:"Decision"},"<":{group:"Decision"},">=":{group:"Decision"},"<=":{group:"Decision"},all:{group:"Decision"},any:{group:"Decision"},"!":{group:"Decision"},within:{group:"Decision"},"is-supported-script":{group:"String"},upcase:{group:"String"},downcase:{group:"String"},concat:{group:"String"},"resolved-locale":{group:"String"}}},fog:{range:{type:"array",default:[.5,10],minimum:-20,maximum:20,length:2,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"horizon-blend":{type:"number","property-type":"data-constant",default:.1,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},light:{anchor:{type:"enum",default:"viewport",values:{map:{},viewport:{}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},projection:{name:{type:"enum",values:{albers:{},equalEarth:{},equirectangular:{},lambertConformalConic:{},mercator:{},naturalEarth:{},winkelTripel:{}},default:"mercator",required:!0},center:{type:"array",length:2,value:"number","property-type":"data-constant",transition:!1,requires:[{name:["albers","lambertConformalConic"]}]},parallels:{type:"array",length:2,value:"number","property-type":"data-constant",transition:!1,requires:[{name:["albers","lambertConformalConic"]}]}},terrain:{source:{type:"string",required:!0},exaggeration:{type:"number","property-type":"data-constant",default:1,minimum:0,maximum:1e3,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},paint:["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background","paint_sky"],paint_fill:{"fill-antialias":{type:"boolean",default:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-extrusion-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",transition:!0,requires:["fill-extrusion-height"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:{"line-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["line-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",minimum:0,transition:!0,units:"line widths",requires:[{"!":"line-pattern"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-gradient":{type:"color",transition:!1,requires:[{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"}},paint_circle:{"circle-radius":{type:"number",default:5,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{type:"number",default:0,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["circle-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{type:"enum",values:{map:{},viewport:{}},default:"map",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}},paint_heatmap:{"heatmap-radius":{type:"number",default:30,minimum:1,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{type:"number",default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{type:"number",default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"heatmap-color":{type:"color",default:["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",.1,"royalblue",.3,"cyan",.5,"lime",.7,"yellow",1,"red"],transition:!1,expression:{interpolated:!0,parameters:["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_symbol:{"icon-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{type:"color",default:"#000000",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["icon-image","icon-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{type:"color",default:"#000000",transition:!0,overridable:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["text-field","text-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_raster:{"raster-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_hillshade:{"hillshade-illumination-direction":{type:"number",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"color",default:"#FFFFFF",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_background:{"background-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"background-pattern"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_sky:{"sky-type":{type:"enum",values:{gradient:{},atmosphere:{}},default:"atmosphere",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"sky-atmosphere-sun":{type:"array",value:"number",length:2,units:"degrees",minimum:[0,0],maximum:[360,180],transition:!1,requires:[{"sky-type":"atmosphere"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"sky-atmosphere-sun-intensity":{type:"number",requires:[{"sky-type":"atmosphere"}],default:10,minimum:0,maximum:100,transition:!1,"property-type":"data-constant"},"sky-gradient-center":{type:"array",requires:[{"sky-type":"gradient"}],value:"number",default:[0,0],length:2,units:"degrees",minimum:[0,0],maximum:[360,180],transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"sky-gradient-radius":{type:"number",requires:[{"sky-type":"gradient"}],default:90,minimum:0,maximum:180,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"sky-gradient":{type:"color",default:["interpolate",["linear"],["sky-radial-progress"],.8,"#87ceeb",1,"white"],transition:!1,requires:[{"sky-type":"gradient"}],expression:{interpolated:!0,parameters:["sky-radial-progress"]},"property-type":"color-ramp"},"sky-atmosphere-halo-color":{type:"color",default:"white",transition:!1,requires:[{"sky-type":"atmosphere"}],"property-type":"data-constant"},"sky-atmosphere-color":{type:"color",default:"white",transition:!1,requires:[{"sky-type":"atmosphere"}],"property-type":"data-constant"},"sky-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},transition:{duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},"property-type":{"data-driven":{type:"property-type"},"cross-faded":{type:"property-type"},"cross-faded-data-driven":{type:"property-type"},"color-ramp":{type:"property-type"},"data-constant":{type:"property-type"},constant:{type:"property-type"}},promoteId:{"*":{type:"string"}}}}},E={};function k(t){var e=E[t];if(void 0!==e)return e.exports;var n=E[t]={exports:{}};return C[t].call(n.exports,n,n.exports,k),n.exports}k.d=(t,e)=>{for(var n in e)k.o(e,n)&&!k.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},k.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),k.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e={},(()=>{k.d(e,{nn:()=>ki,h0:()=>gi,bg:()=>hi,ZP:()=>ki,gG:()=>Ri,Hs:()=>Pi,xb:()=>Ti,b5:()=>Mi,YU:()=>Kr,iC:()=>Vr,LN:()=>Oi,uX:()=>Yr});var t={};k.r(t),k.d(t,{array:()=>xe,color:()=>we,number:()=>be});var n={};k.r(n),k.d(n,{hcl:()=>ze,lab:()=>De});const C=(E={default:()=>r.Z},A={},k.d(A,E),A);var E,A;const P=(t=>{var e={};return k.d(e,t),e})({default:()=>i.Z}),T=(t=>{var e={};return k.d(e,t),e})({default:()=>o.Z}),M=(t=>{var e={};return k.d(e,t),e})({default:()=>a.ZP}),O=(t=>{var e={};return k.d(e,t),e})({default:()=>s.Z}),R=(t=>{var e={};return k.d(e,t),e})({default:()=>l.ZP}),I=(t=>{var e={};return k.d(e,t),e})({default:()=>u.Z});var L=k(872),F=function(t,e,n,r){void 0===r&&(r=1),this.r=t,this.g=e,this.b=n,this.a=r};F.parse=function(t){if(t){if(t instanceof F)return t;if("string"==typeof t){var e=(0,L.G)(t);if(e)return new F(e[0]/255*e[3],e[1]/255*e[3],e[2]/255*e[3],e[3])}}},F.prototype.toString=function(){var t=this.toArray(),e=t[0],n=t[1],r=t[2],i=t[3];return"rgba("+Math.round(e)+","+Math.round(n)+","+Math.round(r)+","+i+")"},F.prototype.toArray=function(){var t=this,e=t.r,n=t.g,r=t.b,i=t.a;return 0===i?[0,0,0,0]:[255*e/i,255*n/i,255*r/i,i]},F.black=new F(0,0,0,1),F.white=new F(1,1,1,1),F.transparent=new F(0,0,0,0),F.red=new F(1,0,0,1),F.blue=new F(0,0,1,1);const N=F;var D=k(619);function z(t){return"object"==typeof t?["literal",t]:t}function Z(t){switch(t.colorSpace){case"hcl":return"interpolate-hcl";case"lab":return"interpolate-lab";default:return"interpolate"}}function j(t,e){var n,r,i=z((n=t.default,r=e.default,void 0!==n?n:void 0!==r?r:void 0));return void 0===i&&"resolvedImage"===e.type?"":i}function G(t,e,n){var r=V(t,e),i=["get",t.property];if("categorical"===r&&"boolean"==typeof n[0][0]){D(t.stops.length>0&&t.stops.length<=2);for(var o=["case"],a=0,s=n;a<s.length;a+=1){var l=s[a];o.push(["==",i,l[0]],l[1])}return o.push(j(t,e)),o}if("categorical"===r){for(var u=["match",i],c=0,h=n;c<h.length;c+=1){var p=h[c];U(u,p[0],p[1],!1)}return u.push(j(t,e)),u}if("interval"===r){for(var d=["step",["number",i]],f=0,g=n;f<g.length;f+=1){var m=g[f];U(d,m[0],m[1],!0)}return B(d),void 0===t.default?d:["case",["==",["typeof",i],"number"],d,z(t.default)]}if("exponential"===r){for(var y=void 0!==t.base?t.base:1,v=[Z(t),1===y?["linear"]:["exponential",y],["number",i]],_=0,b=n;_<b.length;_+=1){var w=b[_];U(v,w[0],w[1],!1)}return void 0===t.default?v:["case",["==",["typeof",i],"number"],v,z(t.default)]}throw new Error("Unknown property function type "+r)}function B(t){"step"===t[0]&&3===t.length&&(t.push(0),t.push(t[3]))}function U(t,e,n,r){t.length>3&&e===t[t.length-2]||(r&&2===t.length||t.push(e),t.push(n))}function V(t,e){return t.type?t.type:(D(e.expression),e.expression.interpolated?"exponential":"interval")}function q(t){for(var e=["concat"],n=/{([^{}]+)}/g,r=0,i=n.exec(t);null!==i;i=n.exec(t)){var o=t.slice(r,n.lastIndex-i[0].length);r=n.lastIndex,o.length>0&&e.push(o),e.push(["get",i[1]])}if(1===e.length)return t;if(r<t.length)e.push(t.slice(r));else if(2===e.length)return["to-string",e[1]];return e}function W(t){for(var e=[],n=arguments.length-1;n-- >0;)e[n]=arguments[n+1];for(var r=0,i=e;r<i.length;r+=1){var o=i[r];for(var a in o)t[a]=o[a]}return t}const H=function(t){function e(e,n){t.call(this,n),this.message=n,this.key=e}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(Error);var X=function(t,e){void 0===e&&(e=[]),this.parent=t,this.bindings={};for(var n=0,r=e;n<r.length;n+=1){var i=r[n],o=i[0],a=i[1];this.bindings[o]=a}};X.prototype.concat=function(t){return new X(this,t)},X.prototype.get=function(t){if(this.bindings[t])return this.bindings[t];if(this.parent)return this.parent.get(t);throw new Error(t+" not found in scope.")},X.prototype.has=function(t){return!!this.bindings[t]||!!this.parent&&this.parent.has(t)};const K=X;var Y={kind:"null"},Q={kind:"number"},$={kind:"string"},J={kind:"boolean"},tt={kind:"color"},et={kind:"object"},nt={kind:"value"},rt={kind:"collator"},it={kind:"formatted"},ot={kind:"resolvedImage"};function at(t,e){return{kind:"array",itemType:t,N:e}}function st(t){if("array"===t.kind){var e=st(t.itemType);return"number"==typeof t.N?"array<"+e+", "+t.N+">":"value"===t.itemType.kind?"array":"array<"+e+">"}return t.kind}var lt=[Y,Q,$,J,tt,it,et,at(nt),ot];function ut(t,e){if("error"===e.kind)return null;if("array"===t.kind){if("array"===e.kind&&(0===e.N&&"value"===e.itemType.kind||!ut(t.itemType,e.itemType))&&("number"!=typeof t.N||t.N===e.N))return null}else{if(t.kind===e.kind)return null;if("value"===t.kind)for(var n=0,r=lt;n<r.length;n+=1)if(!ut(r[n],e))return null}return"Expected "+st(t)+" but found "+st(e)+" instead."}function ct(t,e){return e.some((function(e){return e.kind===t.kind}))}function ht(t,e){return e.some((function(e){return"null"===e?null===t:"array"===e?Array.isArray(t):"object"===e?t&&!Array.isArray(t)&&"object"==typeof t:e===typeof t}))}var pt=function(t,e,n){this.sensitivity=t?e?"variant":"case":e?"accent":"base",this.locale=n,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})};pt.prototype.compare=function(t,e){return this.collator.compare(t,e)},pt.prototype.resolvedLocale=function(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale};const dt=pt;var ft=function(t,e,n,r,i){this.text=t.normalize?t.normalize():t,this.image=e,this.scale=n,this.fontStack=r,this.textColor=i},gt=function(t){this.sections=t};gt.fromString=function(t){return new gt([new ft(t,null,null,null,null)])},gt.prototype.isEmpty=function(){return 0===this.sections.length||!this.sections.some((function(t){return 0!==t.text.length||t.image&&0!==t.image.name.length}))},gt.factory=function(t){return t instanceof gt?t:gt.fromString(t)},gt.prototype.toString=function(){return 0===this.sections.length?"":this.sections.map((function(t){return t.text})).join("")},gt.prototype.serialize=function(){for(var t=["format"],e=0,n=this.sections;e<n.length;e+=1){var r=n[e];if(r.image)t.push(["image",r.image.name]);else{t.push(r.text);var i={};r.fontStack&&(i["text-font"]=["literal",r.fontStack.split(",")]),r.scale&&(i["font-scale"]=r.scale),r.textColor&&(i["text-color"]=["rgba"].concat(r.textColor.toArray())),t.push(i)}}return t};const mt=gt;var yt=function(t){this.name=t.name,this.available=t.available};yt.prototype.toString=function(){return this.name},yt.fromString=function(t){return t?new yt({name:t,available:!1}):null},yt.prototype.serialize=function(){return["image",this.name]};const vt=yt;function _t(t,e,n,r){return"number"==typeof t&&t>=0&&t<=255&&"number"==typeof e&&e>=0&&e<=255&&"number"==typeof n&&n>=0&&n<=255?void 0===r||"number"==typeof r&&r>=0&&r<=1?null:"Invalid rgba value ["+[t,e,n,r].join(", ")+"]: 'a' must be between 0 and 1.":"Invalid rgba value ["+("number"==typeof r?[t,e,n,r]:[t,e,n]).join(", ")+"]: 'r', 'g', and 'b' must be between 0 and 255."}function bt(t){if(null===t)return!0;if("string"==typeof t)return!0;if("boolean"==typeof t)return!0;if("number"==typeof t)return!0;if(t instanceof N)return!0;if(t instanceof dt)return!0;if(t instanceof mt)return!0;if(t instanceof vt)return!0;if(Array.isArray(t)){for(var e=0,n=t;e<n.length;e+=1)if(!bt(n[e]))return!1;return!0}if("object"==typeof t){for(var r in t)if(!bt(t[r]))return!1;return!0}return!1}function wt(t){if(null===t)return Y;if("string"==typeof t)return $;if("boolean"==typeof t)return J;if("number"==typeof t)return Q;if(t instanceof N)return tt;if(t instanceof dt)return rt;if(t instanceof mt)return it;if(t instanceof vt)return ot;if(Array.isArray(t)){for(var e,n=t.length,r=0,i=t;r<i.length;r+=1){var o=wt(i[r]);if(e){if(e===o)continue;e=nt;break}e=o}return at(e||nt,n)}return D("object"==typeof t),et}function xt(t){var e=typeof t;return null===t?"":"string"===e||"number"===e||"boolean"===e?String(t):t instanceof N||t instanceof mt||t instanceof vt?t.toString():JSON.stringify(t)}var St=function(t,e){this.type=t,this.value=e};St.parse=function(t,e){if(2!==t.length)return e.error("'literal' expression requires exactly one argument, but found "+(t.length-1)+" instead.");if(!bt(t[1]))return e.error("invalid value");var n=t[1],r=wt(n),i=e.expectedType;return"array"!==r.kind||0!==r.N||!i||"array"!==i.kind||"number"==typeof i.N&&0!==i.N||(r=i),new St(r,n)},St.prototype.evaluate=function(){return this.value},St.prototype.eachChild=function(){},St.prototype.outputDefined=function(){return!0},St.prototype.serialize=function(){return"array"===this.type.kind||"object"===this.type.kind?["literal",this.value]:this.value instanceof N?["rgba"].concat(this.value.toArray()):this.value instanceof mt?this.value.serialize():(D(null===this.value||"string"==typeof this.value||"number"==typeof this.value||"boolean"==typeof this.value),this.value)};const Ct=St;var Et=function(t){this.name="ExpressionEvaluationError",this.message=t};Et.prototype.toJSON=function(){return this.message};const kt=Et;var At={string:$,number:Q,boolean:J,object:et},Pt=function(t,e){this.type=t,this.args=e};Pt.parse=function(t,e){if(t.length<2)return e.error("Expected at least one argument.");var n,r=1,i=t[0];if("array"===i){var o,a;if(t.length>2){var s=t[1];if("string"!=typeof s||!(s in At)||"object"===s)return e.error('The item type argument of "array" must be one of string, number, boolean',1);o=At[s],r++}else o=nt;if(t.length>3){if(null!==t[2]&&("number"!=typeof t[2]||t[2]<0||t[2]!==Math.floor(t[2])))return e.error('The length argument to "array" must be a positive integer literal',2);a=t[2],r++}n=at(o,a)}else D(At[i],i),n=At[i];for(var l=[];r<t.length;r++){var u=e.parse(t[r],r,nt);if(!u)return null;l.push(u)}return new Pt(n,l)},Pt.prototype.evaluate=function(t){for(var e=0;e<this.args.length;e++){var n=this.args[e].evaluate(t);if(!ut(this.type,wt(n)))return n;if(e===this.args.length-1)throw new kt("Expected value to be of type "+st(this.type)+", but found "+st(wt(n))+" instead.")}return D(!1),null},Pt.prototype.eachChild=function(t){this.args.forEach(t)},Pt.prototype.outputDefined=function(){return this.args.every((function(t){return t.outputDefined()}))},Pt.prototype.serialize=function(){var t=this.type,e=[t.kind];if("array"===t.kind){var n=t.itemType;if("string"===n.kind||"number"===n.kind||"boolean"===n.kind){e.push(n.kind);var r=t.N;("number"==typeof r||this.args.length>1)&&e.push(r)}}return e.concat(this.args.map((function(t){return t.serialize()})))};const Tt=Pt;var Mt=function(t){this.type=it,this.sections=t};Mt.parse=function(t,e){if(t.length<2)return e.error("Expected at least one argument.");var n=t[1];if(!Array.isArray(n)&&"object"==typeof n)return e.error("First argument must be an image or text section.");for(var r=[],i=!1,o=1;o<=t.length-1;++o){var a=t[o];if(i&&"object"==typeof a&&!Array.isArray(a)){i=!1;var s=null;if(a["font-scale"]&&!(s=e.parse(a["font-scale"],1,Q)))return null;var l=null;if(a["text-font"]&&!(l=e.parse(a["text-font"],1,at($))))return null;var u=null;if(a["text-color"]&&!(u=e.parse(a["text-color"],1,tt)))return null;var c=r[r.length-1];c.scale=s,c.font=l,c.textColor=u}else{var h=e.parse(t[o],1,nt);if(!h)return null;var p=h.type.kind;if("string"!==p&&"value"!==p&&"null"!==p&&"resolvedImage"!==p)return e.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");i=!0,r.push({content:h,scale:null,font:null,textColor:null})}}return new Mt(r)},Mt.prototype.evaluate=function(t){return new mt(this.sections.map((function(e){var n=e.content.evaluate(t);return wt(n)===ot?new ft("",n,null,null,null):new ft(xt(n),null,e.scale?e.scale.evaluate(t):null,e.font?e.font.evaluate(t).join(","):null,e.textColor?e.textColor.evaluate(t):null)})))},Mt.prototype.eachChild=function(t){for(var e=0,n=this.sections;e<n.length;e+=1){var r=n[e];t(r.content),r.scale&&t(r.scale),r.font&&t(r.font),r.textColor&&t(r.textColor)}},Mt.prototype.outputDefined=function(){return!1},Mt.prototype.serialize=function(){for(var t=["format"],e=0,n=this.sections;e<n.length;e+=1){var r=n[e];t.push(r.content.serialize());var i={};r.scale&&(i["font-scale"]=r.scale.serialize()),r.font&&(i["text-font"]=r.font.serialize()),r.textColor&&(i["text-color"]=r.textColor.serialize()),t.push(i)}return t};const Ot=Mt;var Rt=function(t){this.type=ot,this.input=t};Rt.parse=function(t,e){if(2!==t.length)return e.error("Expected two arguments.");var n=e.parse(t[1],1,$);return n?new Rt(n):e.error("No image name provided.")},Rt.prototype.evaluate=function(t){var e=this.input.evaluate(t),n=vt.fromString(e);return n&&t.availableImages&&(n.available=t.availableImages.indexOf(e)>-1),n},Rt.prototype.eachChild=function(t){t(this.input)},Rt.prototype.outputDefined=function(){return!1},Rt.prototype.serialize=function(){return["image",this.input.serialize()]};const It=Rt;var Lt={"to-boolean":J,"to-color":tt,"to-number":Q,"to-string":$},Ft=function(t,e){this.type=t,this.args=e};Ft.parse=function(t,e){if(t.length<2)return e.error("Expected at least one argument.");var n=t[0];if(D(Lt[n],n),("to-boolean"===n||"to-string"===n)&&2!==t.length)return e.error("Expected one argument.");for(var r=Lt[n],i=[],o=1;o<t.length;o++){var a=e.parse(t[o],o,nt);if(!a)return null;i.push(a)}return new Ft(r,i)},Ft.prototype.evaluate=function(t){if("boolean"===this.type.kind)return Boolean(this.args[0].evaluate(t));if("color"===this.type.kind){for(var e,n,r=0,i=this.args;r<i.length;r+=1){if(n=null,(e=i[r].evaluate(t))instanceof N)return e;if("string"==typeof e){var o=t.parseColor(e);if(o)return o}else if(Array.isArray(e)&&!(n=e.length<3||e.length>4?"Invalid rbga value "+JSON.stringify(e)+": expected an array containing either three or four numeric values.":_t(e[0],e[1],e[2],e[3])))return new N(e[0]/255,e[1]/255,e[2]/255,e[3])}throw new kt(n||"Could not parse color from value '"+("string"==typeof e?e:String(JSON.stringify(e)))+"'")}if("number"===this.type.kind){for(var a=null,s=0,l=this.args;s<l.length;s+=1){if(null===(a=l[s].evaluate(t)))return 0;var u=Number(a);if(!isNaN(u))return u}throw new kt("Could not convert "+JSON.stringify(a)+" to number.")}return"formatted"===this.type.kind?mt.fromString(xt(this.args[0].evaluate(t))):"resolvedImage"===this.type.kind?vt.fromString(xt(this.args[0].evaluate(t))):xt(this.args[0].evaluate(t))},Ft.prototype.eachChild=function(t){this.args.forEach(t)},Ft.prototype.outputDefined=function(){return this.args.every((function(t){return t.outputDefined()}))},Ft.prototype.serialize=function(){if("formatted"===this.type.kind)return new Ot([{content:this.args[0],scale:null,font:null,textColor:null}]).serialize();if("resolvedImage"===this.type.kind)return new It(this.args[0]).serialize();var t=["to-"+this.type.kind];return this.eachChild((function(e){t.push(e.serialize())})),t};const Nt=Ft;var Dt=["Unknown","Point","LineString","Polygon"],zt=function(){this.globals=null,this.feature=null,this.featureState=null,this.formattedSection=null,this._parseColorCache={},this.availableImages=null,this.canonical=null,this.featureTileCoord=null,this.featureDistanceData=null};zt.prototype.id=function(){return this.feature&&"id"in this.feature?this.feature.id:null},zt.prototype.geometryType=function(){return this.feature?"number"==typeof this.feature.type?Dt[this.feature.type]:this.feature.type:null},zt.prototype.geometry=function(){return this.feature&&"geometry"in this.feature?this.feature.geometry:null},zt.prototype.canonicalID=function(){return this.canonical},zt.prototype.properties=function(){return this.feature&&this.feature.properties||{}},zt.prototype.distanceFromCenter=function(){if(this.featureTileCoord&&this.featureDistanceData){var t=this.featureDistanceData.center,e=this.featureDistanceData.scale,n=this.featureTileCoord,r=n.x,i=n.y,o=r*e-t[0],a=i*e-t[1];return this.featureDistanceData.bearing[0]*o+this.featureDistanceData.bearing[1]*a}return 0},zt.prototype.parseColor=function(t){var e=this._parseColorCache[t];return e||(e=this._parseColorCache[t]=N.parse(t)),e};const Zt=zt;var jt=function(t,e,n,r){this.name=t,this.type=e,this._evaluate=n,this.args=r};jt.prototype.evaluate=function(t){return this._evaluate(t,this.args)},jt.prototype.eachChild=function(t){this.args.forEach(t)},jt.prototype.outputDefined=function(){return!1},jt.prototype.serialize=function(){return[this.name].concat(this.args.map((function(t){return t.serialize()})))},jt.parse=function(t,e){var n,r=t[0],i=jt.definitions[r];if(!i)return e.error('Unknown expression "'+r+'". If you wanted a literal array, use ["literal", [...]].',0);for(var o=Array.isArray(i)?i[0]:i.type,a=Array.isArray(i)?[[i[1],i[2]]]:i.overloads,s=a.filter((function(e){var n=e[0];return!Array.isArray(n)||n.length===t.length-1})),l=null,u=0,c=s;u<c.length;u+=1){var h=c[u],p=h[0],d=h[1];l=new fe(e.registry,e.path,null,e.scope);for(var f=[],g=!1,m=1;m<t.length;m++){var y=t[m],v=Array.isArray(p)?p[m-1]:p.type,_=l.parse(y,1+f.length,v);if(!_){g=!0;break}f.push(_)}if(!g)if(Array.isArray(p)&&p.length!==f.length)l.error("Expected "+p.length+" arguments, but found "+f.length+" instead.");else{for(var b=0;b<f.length;b++){var w=Array.isArray(p)?p[b]:p.type,x=f[b];l.concat(b+1).checkSubtype(w,x.type)}if(0===l.errors.length)return new jt(r,o,d,f)}}if(D(!l||l.errors.length>0),1===s.length)(n=e.errors).push.apply(n,l.errors);else{for(var S=(s.length?s:a).map((function(t){var e;return e=t[0],Array.isArray(e)?"("+e.map(st).join(", ")+")":"("+st(e.type)+"...)"})).join(" | "),C=[],E=1;E<t.length;E++){var k=e.parse(t[E],1+C.length);if(!k)return null;C.push(st(k.type))}e.error("Expected arguments of type "+S+", but found ("+C.join(", ")+") instead.")}return null},jt.register=function(t,e){for(var n in D(!jt.definitions),jt.definitions=e,e)t[n]=jt};const Gt=jt;var Bt=function(t,e,n){this.type=rt,this.locale=n,this.caseSensitive=t,this.diacriticSensitive=e};Bt.parse=function(t,e){if(2!==t.length)return e.error("Expected one argument.");var n=t[1];if("object"!=typeof n||Array.isArray(n))return e.error("Collator options argument must be an object.");var r=e.parse(void 0!==n["case-sensitive"]&&n["case-sensitive"],1,J);if(!r)return null;var i=e.parse(void 0!==n["diacritic-sensitive"]&&n["diacritic-sensitive"],1,J);if(!i)return null;var o=null;return n.locale&&!(o=e.parse(n.locale,1,$))?null:new Bt(r,i,o)},Bt.prototype.evaluate=function(t){return new dt(this.caseSensitive.evaluate(t),this.diacriticSensitive.evaluate(t),this.locale?this.locale.evaluate(t):null)},Bt.prototype.eachChild=function(t){t(this.caseSensitive),t(this.diacriticSensitive),this.locale&&t(this.locale)},Bt.prototype.outputDefined=function(){return!1},Bt.prototype.serialize=function(){var t={};return t["case-sensitive"]=this.caseSensitive.serialize(),t["diacritic-sensitive"]=this.diacriticSensitive.serialize(),this.locale&&(t.locale=this.locale.serialize()),["collator",t]};const Ut=Bt;k(338);var Vt=8192;function qt(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.max(t[2],e[0]),t[3]=Math.max(t[3],e[1])}function Wt(t,e){return!(t[0]<=e[0]||t[2]>=e[2]||t[1]<=e[1]||t[3]>=e[3])}function Ht(t,e){var n,r=(180+t[0])/360,i=(n=t[1],(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+n*Math.PI/360)))/360),o=Math.pow(2,e.z);return[Math.round(r*o*Vt),Math.round(i*o*Vt)]}function Xt(t,e,n){return e[1]>t[1]!=n[1]>t[1]&&t[0]<(n[0]-e[0])*(t[1]-e[1])/(n[1]-e[1])+e[0]}function Kt(t,e){for(var n,r,i,o,a,s,l,u=!1,c=0,h=e.length;c<h;c++)for(var p=e[c],d=0,f=p.length;d<f-1;d++){if(n=t,r=p[d],i=p[d+1],void 0,void 0,void 0,void 0,o=n[0]-r[0],a=n[1]-r[1],s=n[0]-i[0],o*(l=n[1]-i[1])-s*a==0&&o*s<=0&&a*l<=0)return!1;Xt(t,p[d],p[d+1])&&(u=!u)}return u}function Yt(t,e){for(var n=0;n<e.length;n++)if(Kt(t,e[n]))return!0;return!1}function Qt(t,e,n,r){var i=t[0]-n[0],o=t[1]-n[1],a=e[0]-n[0],s=e[1]-n[1],l=r[0]-n[0],u=r[1]-n[1],c=i*u-l*o,h=a*u-l*s;return c>0&&h<0||c<0&&h>0}function $t(t,e,n){for(var r=0,i=n;r<i.length;r+=1)for(var o=i[r],a=0;a<o.length-1;++a)if(s=t,l=e,u=o[a],c=o[a+1],void 0,void 0,void 0,void 0,d=[l[0]-s[0],l[1]-s[1]],0!=(h=[c[0]-u[0],c[1]-u[1]])[0]*(p=d)[1]-h[1]*p[0]&&Qt(s,l,u,c)&&Qt(u,c,s,l))return!0;var s,l,u,c,h,p,d;return!1}function Jt(t,e){for(var n=0;n<t.length;++n)if(!Kt(t[n],e))return!1;for(var r=0;r<t.length-1;++r)if($t(t[r],t[r+1],e))return!1;return!0}function te(t,e){for(var n=0;n<e.length;n++)if(Jt(t,e[n]))return!0;return!1}function ee(t,e,n){for(var r=[],i=0;i<t.length;i++){for(var o=[],a=0;a<t[i].length;a++){var s=Ht(t[i][a],n);qt(e,s),o.push(s)}r.push(o)}return r}function ne(t,e,n){for(var r=[],i=0;i<t.length;i++){var o=ee(t[i],e,n);r.push(o)}return r}function re(t,e,n,r){if(t[0]<n[0]||t[0]>n[2]){var i=.5*r,o=t[0]-n[0]>i?-r:n[0]-t[0]>i?r:0;0===o&&(o=t[0]-n[2]>i?-r:n[2]-t[0]>i?r:0),t[0]+=o}qt(e,t)}function ie(t,e,n,r){for(var i=Math.pow(2,r.z)*Vt,o=[r.x*Vt,r.y*Vt],a=[],s=0,l=t;s<l.length;s+=1)for(var u=0,c=l[s];u<c.length;u+=1){var h=c[u],p=[h.x+o[0],h.y+o[1]];re(p,e,n,i),a.push(p)}return a}function oe(t,e,n,r){for(var i,o=Math.pow(2,r.z)*Vt,a=[r.x*Vt,r.y*Vt],s=[],l=0,u=t;l<u.length;l+=1){for(var c=[],h=0,p=u[l];h<p.length;h+=1){var d=p[h],f=[d.x+a[0],d.y+a[1]];qt(e,f),c.push(f)}s.push(c)}if(e[2]-e[0]<=o/2){(i=e)[0]=i[1]=1/0,i[2]=i[3]=-1/0;for(var g=0,m=s;g<m.length;g+=1)for(var y=0,v=m[g];y<v.length;y+=1)re(v[y],e,n,o)}return s}var ae=function(t,e){this.type=J,this.geojson=t,this.geometries=e};ae.parse=function(t,e){if(2!==t.length)return e.error("'within' expression requires exactly one argument, but found "+(t.length-1)+" instead.");if(bt(t[1])){var n=t[1];if("FeatureCollection"===n.type)for(var r=0;r<n.features.length;++r){var i=n.features[r].geometry.type;if("Polygon"===i||"MultiPolygon"===i)return new ae(n,n.features[r].geometry)}else if("Feature"===n.type){var o=n.geometry.type;if("Polygon"===o||"MultiPolygon"===o)return new ae(n,n.geometry)}else if("Polygon"===n.type||"MultiPolygon"===n.type)return new ae(n,n)}return e.error("'within' expression requires valid geojson object that contains polygon geometry type.")},ae.prototype.evaluate=function(t){if(null!=t.geometry()&&null!=t.canonicalID()){if("Point"===t.geometryType())return function(t,e){var n=[1/0,1/0,-1/0,-1/0],r=[1/0,1/0,-1/0,-1/0],i=t.canonicalID();if("Polygon"===e.type){var o=ee(e.coordinates,r,i),a=ie(t.geometry(),n,r,i);if(!Wt(n,r))return!1;for(var s=0,l=a;s<l.length;s+=1)if(!Kt(l[s],o))return!1}if("MultiPolygon"===e.type){var u=ne(e.coordinates,r,i),c=ie(t.geometry(),n,r,i);if(!Wt(n,r))return!1;for(var h=0,p=c;h<p.length;h+=1)if(!Yt(p[h],u))return!1}return!0}(t,this.geometries);if("LineString"===t.geometryType())return function(t,e){var n=[1/0,1/0,-1/0,-1/0],r=[1/0,1/0,-1/0,-1/0],i=t.canonicalID();if("Polygon"===e.type){var o=ee(e.coordinates,r,i),a=oe(t.geometry(),n,r,i);if(!Wt(n,r))return!1;for(var s=0,l=a;s<l.length;s+=1)if(!Jt(l[s],o))return!1}if("MultiPolygon"===e.type){var u=ne(e.coordinates,r,i),c=oe(t.geometry(),n,r,i);if(!Wt(n,r))return!1;for(var h=0,p=c;h<p.length;h+=1)if(!te(p[h],u))return!1}return!0}(t,this.geometries)}return!1},ae.prototype.eachChild=function(){},ae.prototype.outputDefined=function(){return!0},ae.prototype.serialize=function(){return["within",this.geojson]};const se=ae;function le(t){if(t instanceof Gt){if("get"===t.name&&1===t.args.length)return!1;if("feature-state"===t.name)return!1;if("has"===t.name&&1===t.args.length)return!1;if("properties"===t.name||"geometry-type"===t.name||"id"===t.name)return!1;if(/^filter-/.test(t.name))return!1}if(t instanceof se)return!1;var e=!0;return t.eachChild((function(t){e&&!le(t)&&(e=!1)})),e}function ue(t){if(t instanceof Gt&&"feature-state"===t.name)return!1;var e=!0;return t.eachChild((function(t){e&&!ue(t)&&(e=!1)})),e}function ce(t,e){if(t instanceof Gt&&e.indexOf(t.name)>=0)return!1;var n=!0;return t.eachChild((function(t){n&&!ce(t,e)&&(n=!1)})),n}var he=function(t,e){this.type=e.type,this.name=t,this.boundExpression=e};he.parse=function(t,e){if(2!==t.length||"string"!=typeof t[1])return e.error("'var' expression requires exactly one string literal argument.");var n=t[1];return e.scope.has(n)?new he(n,e.scope.get(n)):e.error('Unknown variable "'+n+'". Make sure "'+n+'" has been bound in an enclosing "let" expression before using it.',1)},he.prototype.evaluate=function(t){return this.boundExpression.evaluate(t)},he.prototype.eachChild=function(){},he.prototype.outputDefined=function(){return!1},he.prototype.serialize=function(){return["var",this.name]};const pe=he;var de=function(t,e,n,r,i){void 0===e&&(e=[]),void 0===r&&(r=new K),void 0===i&&(i=[]),this.registry=t,this.path=e,this.key=e.map((function(t){return"["+t+"]"})).join(""),this.scope=r,this.errors=i,this.expectedType=n};de.prototype.parse=function(t,e,n,r,i){return void 0===i&&(i={}),e?this.concat(e,n,r)._parse(t,i):this._parse(t,i)},de.prototype._parse=function(t,e){function n(t,e,n){return"assert"===n?new Tt(e,[t]):"coerce"===n?new Nt(e,[t]):t}if(null!==t&&"string"!=typeof t&&"boolean"!=typeof t&&"number"!=typeof t||(t=["literal",t]),Array.isArray(t)){if(0===t.length)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');var r=t[0];if("string"!=typeof r)return this.error("Expression name must be a string, but found "+typeof r+' instead. If you wanted a literal array, use ["literal", [...]].',0),null;var i=this.registry[r];if(i){var o=i.parse(t,this);if(!o)return null;if(this.expectedType){var a=this.expectedType,s=o.type;if("string"!==a.kind&&"number"!==a.kind&&"boolean"!==a.kind&&"object"!==a.kind&&"array"!==a.kind||"value"!==s.kind)if("color"!==a.kind&&"formatted"!==a.kind&&"resolvedImage"!==a.kind||"value"!==s.kind&&"string"!==s.kind){if(this.checkSubtype(a,s))return null}else o=n(o,a,e.typeAnnotation||"coerce");else o=n(o,a,e.typeAnnotation||"assert")}if(!(o instanceof Ct)&&"resolvedImage"!==o.type.kind&&ge(o)){var l=new Zt;try{o=new Ct(o.type,o.evaluate(l))}catch(t){return this.error(t.message),null}}return o}return this.error('Unknown expression "'+r+'". If you wanted a literal array, use ["literal", [...]].',0)}return void 0===t?this.error("'undefined' value invalid. Use null instead."):"object"==typeof t?this.error('Bare objects invalid. Use ["literal", {...}] instead.'):this.error("Expected an array, but found "+typeof t+" instead.")},de.prototype.concat=function(t,e,n){var r="number"==typeof t?this.path.concat(t):this.path,i=n?this.scope.concat(n):this.scope;return new de(this.registry,r,e||null,i,this.errors)},de.prototype.error=function(t){for(var e=[],n=arguments.length-1;n-- >0;)e[n]=arguments[n+1];var r=""+this.key+e.map((function(t){return"["+t+"]"})).join("");this.errors.push(new H(r,t))},de.prototype.checkSubtype=function(t,e){var n=ut(t,e);return n&&this.error(n),n};const fe=de;function ge(t){if(t instanceof pe)return ge(t.boundExpression);if(t instanceof Gt&&"error"===t.name)return!1;if(t instanceof Ut)return!1;if(t instanceof se)return!1;var e=t instanceof Nt||t instanceof Tt,n=!0;return t.eachChild((function(t){n=e?n&&ge(t):n&&t instanceof Ct})),!!n&&le(t)&&ce(t,["zoom","heatmap-density","line-progress","sky-radial-progress","accumulated","is-supported-script","pitch","distance-from-center"])}function me(t,e){for(var n,r,i=t.length-1,o=0,a=i,s=0;o<=a;)if(n=t[s=Math.floor((o+a)/2)],r=t[s+1],n<=e){if(s===i||e<r)return s;o=s+1}else{if(!(n>e))throw new kt("Input is not a number.");a=s-1}return 0}var ye=function(t,e,n){this.type=t,this.input=e,this.labels=[],this.outputs=[];for(var r=0,i=n;r<i.length;r+=1){var o=i[r],a=o[0],s=o[1];this.labels.push(a),this.outputs.push(s)}};ye.parse=function(t,e){if(t.length-1<4)return e.error("Expected at least 4 arguments, but found only "+(t.length-1)+".");if((t.length-1)%2!=0)return e.error("Expected an even number of arguments.");var n=e.parse(t[1],1,Q);if(!n)return null;var r=[],i=null;e.expectedType&&"value"!==e.expectedType.kind&&(i=e.expectedType);for(var o=1;o<t.length;o+=2){var a=1===o?-1/0:t[o],s=t[o+1],l=o,u=o+1;if("number"!=typeof a)return e.error('Input/output pairs for "step" expressions must be defined using literal numeric values (not computed expressions) for the input values.',l);if(r.length&&r[r.length-1][0]>=a)return e.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',l);var c=e.parse(s,u,i);if(!c)return null;i=i||c.type,r.push([a,c])}return new ye(i,n,r)},ye.prototype.evaluate=function(t){var e=this.labels,n=this.outputs;if(1===e.length)return n[0].evaluate(t);var r=this.input.evaluate(t);if(r<=e[0])return n[0].evaluate(t);var i=e.length;return r>=e[i-1]?n[i-1].evaluate(t):n[me(e,r)].evaluate(t)},ye.prototype.eachChild=function(t){t(this.input);for(var e=0,n=this.outputs;e<n.length;e+=1)t(n[e])},ye.prototype.outputDefined=function(){return this.outputs.every((function(t){return t.outputDefined()}))},ye.prototype.serialize=function(){for(var t=["step",this.input.serialize()],e=0;e<this.labels.length;e++)e>0&&t.push(this.labels[e]),t.push(this.outputs[e].serialize());return t};const ve=ye;var _e=k(946);function be(t,e,n){return t*(1-n)+e*n}function we(t,e,n){return new N(be(t.r,e.r,n),be(t.g,e.g,n),be(t.b,e.b,n),be(t.a,e.a,n))}function xe(t,e,n){return t.map((function(t,r){return be(t,e[r],n)}))}var Se=.95047,Ce=1.08883,Ee=4/29,ke=6/29,Ae=3*ke*ke,Pe=Math.PI/180,Te=180/Math.PI;function Me(t){return t>.008856451679035631?Math.pow(t,1/3):t/Ae+Ee}function Oe(t){return t>ke?t*t*t:Ae*(t-Ee)}function Re(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function Ie(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Le(t){var e=Ie(t.r),n=Ie(t.g),r=Ie(t.b),i=Me((.4124564*e+.3575761*n+.1804375*r)/Se),o=Me((.2126729*e+.7151522*n+.072175*r)/1);return{l:116*o-16,a:500*(i-o),b:200*(o-Me((.0193339*e+.119192*n+.9503041*r)/Ce)),alpha:t.a}}function Fe(t){var e=(t.l+16)/116,n=isNaN(t.a)?e:e+t.a/500,r=isNaN(t.b)?e:e-t.b/200;return e=1*Oe(e),n=Se*Oe(n),r=Ce*Oe(r),new N(Re(3.2404542*n-1.5371385*e-.4985314*r),Re(-.969266*n+1.8760108*e+.041556*r),Re(.0556434*n-.2040259*e+1.0572252*r),t.alpha)}function Ne(t,e,n){var r=e-t;return t+n*(r>180||r<-180?r-360*Math.round(r/360):r)}var De={forward:Le,reverse:Fe,interpolate:function(t,e,n){return{l:be(t.l,e.l,n),a:be(t.a,e.a,n),b:be(t.b,e.b,n),alpha:be(t.alpha,e.alpha,n)}}},ze={forward:function(t){var e=Le(t),n=e.l,r=e.a,i=e.b,o=Math.atan2(i,r)*Te;return{h:o<0?o+360:o,c:Math.sqrt(r*r+i*i),l:n,alpha:t.a}},reverse:function(t){var e=t.h*Pe,n=t.c;return Fe({l:t.l,a:Math.cos(e)*n,b:Math.sin(e)*n,alpha:t.alpha})},interpolate:function(t,e,n){return{h:Ne(t.h,e.h,n),c:be(t.c,e.c,n),l:be(t.l,e.l,n),alpha:be(t.alpha,e.alpha,n)}}},Ze=function(t,e,n,r,i){this.type=t,this.operator=e,this.interpolation=n,this.input=r,this.labels=[],this.outputs=[];for(var o=0,a=i;o<a.length;o+=1){var s=a[o],l=s[0],u=s[1];this.labels.push(l),this.outputs.push(u)}};function je(t,e,n,r){var i=r-n,o=t-n;return 0===i?0:1===e?o/i:(Math.pow(e,o)-1)/(Math.pow(e,i)-1)}Ze.interpolationFactor=function(t,e,n,r){var i=0;if("exponential"===t.name)i=je(e,t.base,n,r);else if("linear"===t.name)i=je(e,1,n,r);else if("cubic-bezier"===t.name){var o=t.controlPoints;i=new _e(o[0],o[1],o[2],o[3]).solve(je(e,1,n,r))}return i},Ze.parse=function(t,e){var n=t[0],r=t[1],i=t[2],o=t.slice(3);if(!Array.isArray(r)||0===r.length)return e.error("Expected an interpolation type expression.",1);if("linear"===r[0])r={name:"linear"};else if("exponential"===r[0]){var a=r[1];if("number"!=typeof a)return e.error("Exponential interpolation requires a numeric base.",1,1);r={name:"exponential",base:a}}else{if("cubic-bezier"!==r[0])return e.error("Unknown interpolation type "+String(r[0]),1,0);var s=r.slice(1);if(4!==s.length||s.some((function(t){return"number"!=typeof t||t<0||t>1})))return e.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);r={name:"cubic-bezier",controlPoints:s}}if(t.length-1<4)return e.error("Expected at least 4 arguments, but found only "+(t.length-1)+".");if((t.length-1)%2!=0)return e.error("Expected an even number of arguments.");if(!(i=e.parse(i,2,Q)))return null;var l=[],u=null;"interpolate-hcl"===n||"interpolate-lab"===n?u=tt:e.expectedType&&"value"!==e.expectedType.kind&&(u=e.expectedType);for(var c=0;c<o.length;c+=2){var h=o[c],p=o[c+1],d=c+3,f=c+4;if("number"!=typeof h)return e.error('Input/output pairs for "interpolate" expressions must be defined using literal numeric values (not computed expressions) for the input values.',d);if(l.length&&l[l.length-1][0]>=h)return e.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',d);var g=e.parse(p,f,u);if(!g)return null;u=u||g.type,l.push([h,g])}return"number"===u.kind||"color"===u.kind||"array"===u.kind&&"number"===u.itemType.kind&&"number"==typeof u.N?new Ze(u,n,r,i,l):e.error("Type "+st(u)+" is not interpolatable.")},Ze.prototype.evaluate=function(e){var n=this.labels,r=this.outputs;if(1===n.length)return r[0].evaluate(e);var i=this.input.evaluate(e);if(i<=n[0])return r[0].evaluate(e);var o=n.length;if(i>=n[o-1])return r[o-1].evaluate(e);var a=me(n,i),s=n[a],l=n[a+1],u=Ze.interpolationFactor(this.interpolation,i,s,l),c=r[a].evaluate(e),h=r[a+1].evaluate(e);return"interpolate"===this.operator?t[this.type.kind.toLowerCase()](c,h,u):"interpolate-hcl"===this.operator?ze.reverse(ze.interpolate(ze.forward(c),ze.forward(h),u)):De.reverse(De.interpolate(De.forward(c),De.forward(h),u))},Ze.prototype.eachChild=function(t){t(this.input);for(var e=0,n=this.outputs;e<n.length;e+=1)t(n[e])},Ze.prototype.outputDefined=function(){return this.outputs.every((function(t){return t.outputDefined()}))},Ze.prototype.serialize=function(){var t;t="linear"===this.interpolation.name?["linear"]:"exponential"===this.interpolation.name?1===this.interpolation.base?["linear"]:["exponential",this.interpolation.base]:["cubic-bezier"].concat(this.interpolation.controlPoints);for(var e=[this.operator,t,this.input.serialize()],n=0;n<this.labels.length;n++)e.push(this.labels[n],this.outputs[n].serialize());return e};const Ge=Ze;var Be=function(t,e){this.type=t,this.args=e};Be.parse=function(t,e){if(t.length<2)return e.error("Expectected at least one argument.");var n=null,r=e.expectedType;r&&"value"!==r.kind&&(n=r);for(var i=[],o=0,a=t.slice(1);o<a.length;o+=1){var s=a[o],l=e.parse(s,1+i.length,n,void 0,{typeAnnotation:"omit"});if(!l)return null;n=n||l.type,i.push(l)}D(n);var u=r&&i.some((function(t){return ut(r,t.type)}));return new Be(u?nt:n,i)},Be.prototype.evaluate=function(t){for(var e,n=null,r=0,i=0,o=this.args;i<o.length;i+=1){if(r++,(n=o[i].evaluate(t))&&n instanceof vt&&!n.available&&(e||(e=n),n=null,r===this.args.length))return e;if(null!==n)break}return n},Be.prototype.eachChild=function(t){this.args.forEach(t)},Be.prototype.outputDefined=function(){return this.args.every((function(t){return t.outputDefined()}))},Be.prototype.serialize=function(){var t=["coalesce"];return this.eachChild((function(e){t.push(e.serialize())})),t};const Ue=Be;var Ve=function(t,e){this.type=e.type,this.bindings=[].concat(t),this.result=e};Ve.prototype.evaluate=function(t){return this.result.evaluate(t)},Ve.prototype.eachChild=function(t){for(var e=0,n=this.bindings;e<n.length;e+=1)t(n[e][1]);t(this.result)},Ve.parse=function(t,e){if(t.length<4)return e.error("Expected at least 3 arguments, but found "+(t.length-1)+" instead.");for(var n=[],r=1;r<t.length-1;r+=2){var i=t[r];if("string"!=typeof i)return e.error("Expected string, but found "+typeof i+" instead.",r);if(/[^a-zA-Z0-9_]/.test(i))return e.error("Variable names must contain only alphanumeric characters or '_'.",r);var o=e.parse(t[r+1],r+1);if(!o)return null;n.push([i,o])}var a=e.parse(t[t.length-1],t.length-1,e.expectedType,n);return a?new Ve(n,a):null},Ve.prototype.outputDefined=function(){return this.result.outputDefined()},Ve.prototype.serialize=function(){for(var t=["let"],e=0,n=this.bindings;e<n.length;e+=1){var r=n[e],i=r[0],o=r[1];t.push(i,o.serialize())}return t.push(this.result.serialize()),t};const qe=Ve;var We=function(t,e,n){this.type=t,this.index=e,this.input=n};We.parse=function(t,e){if(3!==t.length)return e.error("Expected 2 arguments, but found "+(t.length-1)+" instead.");var n=e.parse(t[1],1,Q),r=e.parse(t[2],2,at(e.expectedType||nt));if(!n||!r)return null;var i=r.type;return new We(i.itemType,n,r)},We.prototype.evaluate=function(t){var e=this.index.evaluate(t),n=this.input.evaluate(t);if(e<0)throw new kt("Array index out of bounds: "+e+" < 0.");if(e>=n.length)throw new kt("Array index out of bounds: "+e+" > "+(n.length-1)+".");if(e!==Math.floor(e))throw new kt("Array index must be an integer, but found "+e+" instead.");return n[e]},We.prototype.eachChild=function(t){t(this.index),t(this.input)},We.prototype.outputDefined=function(){return!1},We.prototype.serialize=function(){return["at",this.index.serialize(),this.input.serialize()]};const He=We;var Xe=function(t,e){this.type=J,this.needle=t,this.haystack=e};Xe.parse=function(t,e){if(3!==t.length)return e.error("Expected 2 arguments, but found "+(t.length-1)+" instead.");var n=e.parse(t[1],1,nt),r=e.parse(t[2],2,nt);return n&&r?ct(n.type,[J,$,Q,Y,nt])?new Xe(n,r):e.error("Expected first argument to be of type boolean, string, number or null, but found "+st(n.type)+" instead"):null},Xe.prototype.evaluate=function(t){var e=this.needle.evaluate(t),n=this.haystack.evaluate(t);if(!n)return!1;if(!ht(e,["boolean","string","number","null"]))throw new kt("Expected first argument to be of type boolean, string, number or null, but found "+st(wt(e))+" instead.");if(!ht(n,["string","array"]))throw new kt("Expected second argument to be of type array or string, but found "+st(wt(n))+" instead.");return n.indexOf(e)>=0},Xe.prototype.eachChild=function(t){t(this.needle),t(this.haystack)},Xe.prototype.outputDefined=function(){return!0},Xe.prototype.serialize=function(){return["in",this.needle.serialize(),this.haystack.serialize()]};const Ke=Xe;var Ye=function(t,e,n){this.type=Q,this.needle=t,this.haystack=e,this.fromIndex=n};Ye.parse=function(t,e){if(t.length<=2||t.length>=5)return e.error("Expected 3 or 4 arguments, but found "+(t.length-1)+" instead.");var n=e.parse(t[1],1,nt),r=e.parse(t[2],2,nt);if(!n||!r)return null;if(!ct(n.type,[J,$,Q,Y,nt]))return e.error("Expected first argument to be of type boolean, string, number or null, but found "+st(n.type)+" instead");if(4===t.length){var i=e.parse(t[3],3,Q);return i?new Ye(n,r,i):null}return new Ye(n,r)},Ye.prototype.evaluate=function(t){var e=this.needle.evaluate(t),n=this.haystack.evaluate(t);if(!ht(e,["boolean","string","number","null"]))throw new kt("Expected first argument to be of type boolean, string, number or null, but found "+st(wt(e))+" instead.");if(!ht(n,["string","array"]))throw new kt("Expected second argument to be of type array or string, but found "+st(wt(n))+" instead.");if(this.fromIndex){var r=this.fromIndex.evaluate(t);return n.indexOf(e,r)}return n.indexOf(e)},Ye.prototype.eachChild=function(t){t(this.needle),t(this.haystack),this.fromIndex&&t(this.fromIndex)},Ye.prototype.outputDefined=function(){return!1},Ye.prototype.serialize=function(){if(null!=this.fromIndex&&void 0!==this.fromIndex){var t=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),t]}return["index-of",this.needle.serialize(),this.haystack.serialize()]};const Qe=Ye;var $e=function(t,e,n,r,i,o){this.inputType=t,this.type=e,this.input=n,this.cases=r,this.outputs=i,this.otherwise=o};$e.parse=function(t,e){if(t.length<5)return e.error("Expected at least 4 arguments, but found only "+(t.length-1)+".");if(t.length%2!=1)return e.error("Expected an even number of arguments.");var n,r;e.expectedType&&"value"!==e.expectedType.kind&&(r=e.expectedType);for(var i={},o=[],a=2;a<t.length-1;a+=2){var s=t[a],l=t[a+1];Array.isArray(s)||(s=[s]);var u=e.concat(a);if(0===s.length)return u.error("Expected at least one branch label.");for(var c=0,h=s;c<h.length;c+=1){var p=h[c];if("number"!=typeof p&&"string"!=typeof p)return u.error("Branch labels must be numbers or strings.");if("number"==typeof p&&Math.abs(p)>Number.MAX_SAFE_INTEGER)return u.error("Branch labels must be integers no larger than "+Number.MAX_SAFE_INTEGER+".");if("number"==typeof p&&Math.floor(p)!==p)return u.error("Numeric branch labels must be integer values.");if(n){if(u.checkSubtype(n,wt(p)))return null}else n=wt(p);if(void 0!==i[String(p)])return u.error("Branch labels must be unique.");i[String(p)]=o.length}var d=e.parse(l,a,r);if(!d)return null;r=r||d.type,o.push(d)}var f=e.parse(t[1],1,nt);if(!f)return null;var g=e.parse(t[t.length-1],t.length-1,r);return g?(D(n&&r),"value"!==f.type.kind&&e.concat(1).checkSubtype(n,f.type)?null:new $e(n,r,f,i,o,g)):null},$e.prototype.evaluate=function(t){var e=this.input.evaluate(t);return(wt(e)===this.inputType&&this.outputs[this.cases[e]]||this.otherwise).evaluate(t)},$e.prototype.eachChild=function(t){t(this.input),this.outputs.forEach(t),t(this.otherwise)},$e.prototype.outputDefined=function(){return this.outputs.every((function(t){return t.outputDefined()}))&&this.otherwise.outputDefined()},$e.prototype.serialize=function(){for(var t=this,e=["match",this.input.serialize()],n=[],r={},i=0,o=Object.keys(this.cases).sort();i<o.length;i+=1){var a=o[i];void 0===(h=r[this.cases[a]])?(r[this.cases[a]]=n.length,n.push([this.cases[a],[a]])):n[h][1].push(a)}for(var s=function(e){return"number"===t.inputType.kind?Number(e):e},l=0,u=n;l<u.length;l+=1){var c=u[l],h=c[0],p=c[1];1===p.length?e.push(s(p[0])):e.push(p.map(s)),e.push(this.outputs[outputIndex$1].serialize())}return e.push(this.otherwise.serialize()),e};const Je=$e;var tn=function(t,e,n){this.type=t,this.branches=e,this.otherwise=n};tn.parse=function(t,e){if(t.length<4)return e.error("Expected at least 3 arguments, but found only "+(t.length-1)+".");if(t.length%2!=0)return e.error("Expected an odd number of arguments.");var n;e.expectedType&&"value"!==e.expectedType.kind&&(n=e.expectedType);for(var r=[],i=1;i<t.length-1;i+=2){var o=e.parse(t[i],i,J);if(!o)return null;var a=e.parse(t[i+1],i+1,n);if(!a)return null;r.push([o,a]),n=n||a.type}var s=e.parse(t[t.length-1],t.length-1,n);return s?(D(n),new tn(n,r,s)):null},tn.prototype.evaluate=function(t){for(var e=0,n=this.branches;e<n.length;e+=1){var r=n[e],i=r[0],o=r[1];if(i.evaluate(t))return o.evaluate(t)}return this.otherwise.evaluate(t)},tn.prototype.eachChild=function(t){for(var e=0,n=this.branches;e<n.length;e+=1){var r=n[e],i=r[0],o=r[1];t(i),t(o)}t(this.otherwise)},tn.prototype.outputDefined=function(){return this.branches.every((function(t){return t[0],t[1].outputDefined()}))&&this.otherwise.outputDefined()},tn.prototype.serialize=function(){var t=["case"];return this.eachChild((function(e){t.push(e.serialize())})),t};const en=tn;var nn=function(t,e,n,r){this.type=t,this.input=e,this.beginIndex=n,this.endIndex=r};nn.parse=function(t,e){if(t.length<=2||t.length>=5)return e.error("Expected 3 or 4 arguments, but found "+(t.length-1)+" instead.");var n=e.parse(t[1],1,nt),r=e.parse(t[2],2,Q);if(!n||!r)return null;if(!ct(n.type,[at(nt),$,nt]))return e.error("Expected first argument to be of type array or string, but found "+st(n.type)+" instead");if(4===t.length){var i=e.parse(t[3],3,Q);return i?new nn(n.type,n,r,i):null}return new nn(n.type,n,r)},nn.prototype.evaluate=function(t){var e=this.input.evaluate(t),n=this.beginIndex.evaluate(t);if(!ht(e,["string","array"]))throw new kt("Expected first argument to be of type array or string, but found "+st(wt(e))+" instead.");if(this.endIndex){var r=this.endIndex.evaluate(t);return e.slice(n,r)}return e.slice(n)},nn.prototype.eachChild=function(t){t(this.input),t(this.beginIndex),this.endIndex&&t(this.endIndex)},nn.prototype.outputDefined=function(){return!1},nn.prototype.serialize=function(){if(null!=this.endIndex&&void 0!==this.endIndex){var t=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),t]}return["slice",this.input.serialize(),this.beginIndex.serialize()]};const rn=nn;function on(t,e){return"=="===t||"!="===t?"boolean"===e.kind||"string"===e.kind||"number"===e.kind||"null"===e.kind||"value"===e.kind:"string"===e.kind||"number"===e.kind||"value"===e.kind}function an(t,e,n,r){return 0===r.compare(e,n)}function sn(t,e,n){var r="=="!==t&&"!="!==t;return function(){function i(t,e,n){this.type=J,this.lhs=t,this.rhs=e,this.collator=n,this.hasUntypedArgument="value"===t.type.kind||"value"===e.type.kind}return i.parse=function(t,e){if(3!==t.length&&4!==t.length)return e.error("Expected two or three arguments.");var n=t[0],o=e.parse(t[1],1,nt);if(!o)return null;if(!on(n,o.type))return e.concat(1).error('"'+n+"\" comparisons are not supported for type '"+st(o.type)+"'.");var a=e.parse(t[2],2,nt);if(!a)return null;if(!on(n,a.type))return e.concat(2).error('"'+n+"\" comparisons are not supported for type '"+st(a.type)+"'.");if(o.type.kind!==a.type.kind&&"value"!==o.type.kind&&"value"!==a.type.kind)return e.error("Cannot compare types '"+st(o.type)+"' and '"+st(a.type)+"'.");r&&("value"===o.type.kind&&"value"!==a.type.kind?o=new Tt(a.type,[o]):"value"!==o.type.kind&&"value"===a.type.kind&&(a=new Tt(o.type,[a])));var s=null;if(4===t.length){if("string"!==o.type.kind&&"string"!==a.type.kind&&"value"!==o.type.kind&&"value"!==a.type.kind)return e.error("Cannot use collator to compare non-string types.");if(!(s=e.parse(t[3],3,rt)))return null}return new i(o,a,s)},i.prototype.evaluate=function(i){var o=this.lhs.evaluate(i),a=this.rhs.evaluate(i);if(r&&this.hasUntypedArgument){var s=wt(o),l=wt(a);if(s.kind!==l.kind||"string"!==s.kind&&"number"!==s.kind)throw new kt('Expected arguments for "'+t+'" to be (string, string) or (number, number), but found ('+s.kind+", "+l.kind+") instead.")}if(this.collator&&!r&&this.hasUntypedArgument){var u=wt(o),c=wt(a);if("string"!==u.kind||"string"!==c.kind)return e(i,o,a)}return this.collator?n(i,o,a,this.collator.evaluate(i)):e(i,o,a)},i.prototype.eachChild=function(t){t(this.lhs),t(this.rhs),this.collator&&t(this.collator)},i.prototype.outputDefined=function(){return!0},i.prototype.serialize=function(){var e=[t];return this.eachChild((function(t){e.push(t.serialize())})),e},i}()}var ln=sn("==",(function(t,e,n){return e===n}),an),un=sn("!=",(function(t,e,n){return e!==n}),(function(t,e,n,r){return!an(0,e,n,r)})),cn=sn("<",(function(t,e,n){return e<n}),(function(t,e,n,r){return r.compare(e,n)<0})),hn=sn(">",(function(t,e,n){return e>n}),(function(t,e,n,r){return r.compare(e,n)>0})),pn=sn("<=",(function(t,e,n){return e<=n}),(function(t,e,n,r){return r.compare(e,n)<=0})),dn=sn(">=",(function(t,e,n){return e>=n}),(function(t,e,n,r){return r.compare(e,n)>=0})),fn=function(t,e,n,r,i){this.type=$,this.number=t,this.locale=e,this.currency=n,this.minFractionDigits=r,this.maxFractionDigits=i};fn.parse=function(t,e){if(3!==t.length)return e.error("Expected two arguments.");var n=e.parse(t[1],1,Q);if(!n)return null;var r=t[2];if("object"!=typeof r||Array.isArray(r))return e.error("NumberFormat options argument must be an object.");var i=null;if(r.locale&&!(i=e.parse(r.locale,1,$)))return null;var o=null;if(r.currency&&!(o=e.parse(r.currency,1,$)))return null;var a=null;if(r["min-fraction-digits"]&&!(a=e.parse(r["min-fraction-digits"],1,Q)))return null;var s=null;return r["max-fraction-digits"]&&!(s=e.parse(r["max-fraction-digits"],1,Q))?null:new fn(n,i,o,a,s)},fn.prototype.evaluate=function(t){return new Intl.NumberFormat(this.locale?this.locale.evaluate(t):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(t):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(t):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(t):void 0}).format(this.number.evaluate(t))},fn.prototype.eachChild=function(t){t(this.number),this.locale&&t(this.locale),this.currency&&t(this.currency),this.minFractionDigits&&t(this.minFractionDigits),this.maxFractionDigits&&t(this.maxFractionDigits)},fn.prototype.outputDefined=function(){return!1},fn.prototype.serialize=function(){var t={};return this.locale&&(t.locale=this.locale.serialize()),this.currency&&(t.currency=this.currency.serialize()),this.minFractionDigits&&(t["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(t["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),t]};const gn=fn;var mn=function(t){this.type=Q,this.input=t};mn.parse=function(t,e){if(2!==t.length)return e.error("Expected 1 argument, but found "+(t.length-1)+" instead.");var n=e.parse(t[1],1);return n?"array"!==n.type.kind&&"string"!==n.type.kind&&"value"!==n.type.kind?e.error("Expected argument of type string or array, but found "+st(n.type)+" instead."):new mn(n):null},mn.prototype.evaluate=function(t){var e=this.input.evaluate(t);if("string"==typeof e)return e.length;if(Array.isArray(e))return e.length;throw new kt("Expected value to be of type string or array, but found "+st(wt(e))+" instead.")},mn.prototype.eachChild=function(t){t(this.input)},mn.prototype.outputDefined=function(){return!1},mn.prototype.serialize=function(){var t=["length"];return this.eachChild((function(e){t.push(e.serialize())})),t};var yn={"==":ln,"!=":un,">":hn,"<":cn,">=":dn,"<=":pn,array:Tt,at:He,boolean:Tt,case:en,coalesce:Ue,collator:Ut,format:Ot,image:It,in:Ke,"index-of":Qe,interpolate:Ge,"interpolate-hcl":Ge,"interpolate-lab":Ge,length:mn,let:qe,literal:Ct,match:Je,number:Tt,"number-format":gn,object:Tt,slice:rn,step:ve,string:Tt,"to-boolean":Nt,"to-color":Nt,"to-number":Nt,"to-string":Nt,var:pe,within:se};function vn(t,e){var n=e[0],r=e[1],i=e[2],o=e[3];n=n.evaluate(t),r=r.evaluate(t),i=i.evaluate(t);var a=o?o.evaluate(t):1,s=_t(n,r,i,a);if(s)throw new kt(s);return new N(n/255*a,r/255*a,i/255*a,a)}function _n(t,e){return t in e}function bn(t,e){var n=e[t];return void 0===n?null:n}function wn(t){return{type:t}}Gt.register(yn,{error:[{kind:"error"},[$],function(t,e){var n=e[0];throw new kt(n.evaluate(t))}],typeof:[$,[nt],function(t,e){return st(wt(e[0].evaluate(t)))}],"to-rgba":[at(Q,4),[tt],function(t,e){return e[0].evaluate(t).toArray()}],rgb:[tt,[Q,Q,Q],vn],rgba:[tt,[Q,Q,Q,Q],vn],has:{type:J,overloads:[[[$],function(t,e){return _n(e[0].evaluate(t),t.properties())}],[[$,et],function(t,e){var n=e[0],r=e[1];return _n(n.evaluate(t),r.evaluate(t))}]]},get:{type:nt,overloads:[[[$],function(t,e){return bn(e[0].evaluate(t),t.properties())}],[[$,et],function(t,e){var n=e[0],r=e[1];return bn(n.evaluate(t),r.evaluate(t))}]]},"feature-state":[nt,[$],function(t,e){return bn(e[0].evaluate(t),t.featureState||{})}],properties:[et,[],function(t){return t.properties()}],"geometry-type":[$,[],function(t){return t.geometryType()}],id:[nt,[],function(t){return t.id()}],zoom:[Q,[],function(t){return t.globals.zoom}],pitch:[Q,[],function(t){return t.globals.pitch||0}],"distance-from-center":[Q,[],function(t){return t.distanceFromCenter()}],"heatmap-density":[Q,[],function(t){return t.globals.heatmapDensity||0}],"line-progress":[Q,[],function(t){return t.globals.lineProgress||0}],"sky-radial-progress":[Q,[],function(t){return t.globals.skyRadialProgress||0}],accumulated:[nt,[],function(t){return void 0===t.globals.accumulated?null:t.globals.accumulated}],"+":[Q,wn(Q),function(t,e){for(var n=0,r=0,i=e;r<i.length;r+=1)n+=i[r].evaluate(t);return n}],"*":[Q,wn(Q),function(t,e){for(var n=1,r=0,i=e;r<i.length;r+=1)n*=i[r].evaluate(t);return n}],"-":{type:Q,overloads:[[[Q,Q],function(t,e){var n=e[0],r=e[1];return n.evaluate(t)-r.evaluate(t)}],[[Q],function(t,e){return-e[0].evaluate(t)}]]},"/":[Q,[Q,Q],function(t,e){var n=e[0],r=e[1];return n.evaluate(t)/r.evaluate(t)}],"%":[Q,[Q,Q],function(t,e){var n=e[0],r=e[1];return n.evaluate(t)%r.evaluate(t)}],ln2:[Q,[],function(){return Math.LN2}],pi:[Q,[],function(){return Math.PI}],e:[Q,[],function(){return Math.E}],"^":[Q,[Q,Q],function(t,e){var n=e[0],r=e[1];return Math.pow(n.evaluate(t),r.evaluate(t))}],sqrt:[Q,[Q],function(t,e){var n=e[0];return Math.sqrt(n.evaluate(t))}],log10:[Q,[Q],function(t,e){var n=e[0];return Math.log(n.evaluate(t))/Math.LN10}],ln:[Q,[Q],function(t,e){var n=e[0];return Math.log(n.evaluate(t))}],log2:[Q,[Q],function(t,e){var n=e[0];return Math.log(n.evaluate(t))/Math.LN2}],sin:[Q,[Q],function(t,e){var n=e[0];return Math.sin(n.evaluate(t))}],cos:[Q,[Q],function(t,e){var n=e[0];return Math.cos(n.evaluate(t))}],tan:[Q,[Q],function(t,e){var n=e[0];return Math.tan(n.evaluate(t))}],asin:[Q,[Q],function(t,e){var n=e[0];return Math.asin(n.evaluate(t))}],acos:[Q,[Q],function(t,e){var n=e[0];return Math.acos(n.evaluate(t))}],atan:[Q,[Q],function(t,e){var n=e[0];return Math.atan(n.evaluate(t))}],min:[Q,wn(Q),function(t,e){return Math.min.apply(Math,e.map((function(e){return e.evaluate(t)})))}],max:[Q,wn(Q),function(t,e){return Math.max.apply(Math,e.map((function(e){return e.evaluate(t)})))}],abs:[Q,[Q],function(t,e){var n=e[0];return Math.abs(n.evaluate(t))}],round:[Q,[Q],function(t,e){var n=e[0].evaluate(t);return n<0?-Math.round(-n):Math.round(n)}],floor:[Q,[Q],function(t,e){var n=e[0];return Math.floor(n.evaluate(t))}],ceil:[Q,[Q],function(t,e){var n=e[0];return Math.ceil(n.evaluate(t))}],"filter-==":[J,[$,nt],function(t,e){var n=e[0],r=e[1];return t.properties()[n.value]===r.value}],"filter-id-==":[J,[nt],function(t,e){var n=e[0];return t.id()===n.value}],"filter-type-==":[J,[$],function(t,e){var n=e[0];return t.geometryType()===n.value}],"filter-<":[J,[$,nt],function(t,e){var n=e[0],r=e[1],i=t.properties()[n.value],o=r.value;return typeof i==typeof o&&i<o}],"filter-id-<":[J,[nt],function(t,e){var n=e[0],r=t.id(),i=n.value;return typeof r==typeof i&&r<i}],"filter->":[J,[$,nt],function(t,e){var n=e[0],r=e[1],i=t.properties()[n.value],o=r.value;return typeof i==typeof o&&i>o}],"filter-id->":[J,[nt],function(t,e){var n=e[0],r=t.id(),i=n.value;return typeof r==typeof i&&r>i}],"filter-<=":[J,[$,nt],function(t,e){var n=e[0],r=e[1],i=t.properties()[n.value],o=r.value;return typeof i==typeof o&&i<=o}],"filter-id-<=":[J,[nt],function(t,e){var n=e[0],r=t.id(),i=n.value;return typeof r==typeof i&&r<=i}],"filter->=":[J,[$,nt],function(t,e){var n=e[0],r=e[1],i=t.properties()[n.value],o=r.value;return typeof i==typeof o&&i>=o}],"filter-id->=":[J,[nt],function(t,e){var n=e[0],r=t.id(),i=n.value;return typeof r==typeof i&&r>=i}],"filter-has":[J,[nt],function(t,e){return e[0].value in t.properties()}],"filter-has-id":[J,[],function(t){return null!==t.id()&&void 0!==t.id()}],"filter-type-in":[J,[at($)],function(t,e){return e[0].value.indexOf(t.geometryType())>=0}],"filter-id-in":[J,[at(nt)],function(t,e){return e[0].value.indexOf(t.id())>=0}],"filter-in-small":[J,[$,at(nt)],function(t,e){var n=e[0];return e[1].value.indexOf(t.properties()[n.value])>=0}],"filter-in-large":[J,[$,at(nt)],function(t,e){var n=e[0],r=e[1];return function(t,e,n,r){for(;n<=r;){var i=n+r>>1;if(e[i]===t)return!0;e[i]>t?r=i-1:n=i+1}return!1}(t.properties()[n.value],r.value,0,r.value.length-1)}],all:{type:J,overloads:[[[J,J],function(t,e){var n=e[0],r=e[1];return n.evaluate(t)&&r.evaluate(t)}],[wn(J),function(t,e){for(var n=0,r=e;n<r.length;n+=1)if(!r[n].evaluate(t))return!1;return!0}]]},any:{type:J,overloads:[[[J,J],function(t,e){var n=e[0],r=e[1];return n.evaluate(t)||r.evaluate(t)}],[wn(J),function(t,e){for(var n=0,r=e;n<r.length;n+=1)if(r[n].evaluate(t))return!0;return!1}]]},"!":[J,[J],function(t,e){return!e[0].evaluate(t)}],"is-supported-script":[J,[$],function(t,e){var n=e[0],r=t.globals&&t.globals.isSupportedScript;return!r||r(n.evaluate(t))}],upcase:[$,[$],function(t,e){return e[0].evaluate(t).toUpperCase()}],downcase:[$,[$],function(t,e){return e[0].evaluate(t).toLowerCase()}],concat:[$,wn(nt),function(t,e){return e.map((function(e){return xt(e.evaluate(t))})).join("")}],"resolved-locale":[$,[rt],function(t,e){return e[0].evaluate(t).resolvedLocale()}]});const xn=yn;function Sn(t){return{result:"success",value:t}}function Cn(t){return{result:"error",value:t}}function En(t){return!!t.expression&&t.expression.interpolated}function kn(t){return t instanceof Number?"number":t instanceof String?"string":t instanceof Boolean?"boolean":Array.isArray(t)?"array":null===t?"null":typeof t}function An(t){return"object"==typeof t&&null!==t&&!Array.isArray(t)}function Pn(t){return t}function Tn(t,e){var r,i,o,a="color"===e.type,s=t.stops&&"object"==typeof t.stops[0][0],l=s||void 0!==t.property,u=s||!l,c=t.type||(En(e)?"exponential":"interval");if(a&&((t=W({},t)).stops&&(t.stops=t.stops.map((function(t){return[t[0],N.parse(t[1])]}))),t.default?t.default=N.parse(t.default):t.default=N.parse(e.default)),t.colorSpace&&"rgb"!==t.colorSpace&&!n[t.colorSpace])throw new Error("Unknown color space: "+t.colorSpace);if("exponential"===c)r=In;else if("interval"===c)r=Rn;else if("categorical"===c){r=On,i=Object.create(null);for(var h=0,p=t.stops;h<p.length;h+=1){var d=p[h];i[d[0]]=d[1]}o=typeof t.stops[0][0]}else{if("identity"!==c)throw new Error('Unknown function type "'+c+'"');r=Ln}if(s){for(var f={},g=[],m=0;m<t.stops.length;m++){var y=t.stops[m],v=y[0].zoom;void 0===f[v]&&(f[v]={zoom:v,type:t.type,property:t.property,default:t.default,stops:[]},g.push(v)),f[v].stops.push([y[0].value,y[1]])}for(var _=[],b=0,w=g;b<w.length;b+=1){var x=w[b];_.push([f[x].zoom,Tn(f[x],e)])}var S={name:"linear"};return{kind:"composite",interpolationType:S,interpolationFactor:Ge.interpolationFactor.bind(void 0,S),zoomStops:_.map((function(t){return t[0]})),evaluate:function(n,r){var i=n.zoom;return In({stops:_,base:t.base},e,i).evaluate(i,r)}}}if(u){var C="exponential"===c?{name:"exponential",base:void 0!==t.base?t.base:1}:null;return{kind:"camera",interpolationType:C,interpolationFactor:Ge.interpolationFactor.bind(void 0,C),zoomStops:t.stops.map((function(t){return t[0]})),evaluate:function(n){var a=n.zoom;return r(t,e,a,i,o)}}}return{kind:"source",evaluate:function(n,a){var s=a&&a.properties?a.properties[t.property]:void 0;return void 0===s?Mn(t.default,e.default):r(t,e,s,i,o)}}}function Mn(t,e,n){return void 0!==t?t:void 0!==e?e:void 0!==n?n:void 0}function On(t,e,n,r,i){return Mn(typeof n===i?r[n]:void 0,t.default,e.default)}function Rn(t,e,n){if("number"!==kn(n))return Mn(t.default,e.default);var r=t.stops.length;if(1===r)return t.stops[0][1];if(n<=t.stops[0][0])return t.stops[0][1];if(n>=t.stops[r-1][0])return t.stops[r-1][1];var i=me(t.stops.map((function(t){return t[0]})),n);return t.stops[i][1]}function In(e,r,i){var o=void 0!==e.base?e.base:1;if("number"!==kn(i))return Mn(e.default,r.default);var a=e.stops.length;if(1===a)return e.stops[0][1];if(i<=e.stops[0][0])return e.stops[0][1];if(i>=e.stops[a-1][0])return e.stops[a-1][1];var s=me(e.stops.map((function(t){return t[0]})),i),l=function(t,e,n,r){var i=r-n,o=t-n;return 0===i?0:1===e?o/i:(Math.pow(e,o)-1)/(Math.pow(e,i)-1)}(i,o,e.stops[s][0],e.stops[s+1][0]),u=e.stops[s][1],c=e.stops[s+1][1],h=t[r.type]||Pn;if(e.colorSpace&&"rgb"!==e.colorSpace){var p=n[e.colorSpace];h=function(t,e){return p.reverse(p.interpolate(p.forward(t),p.forward(e),l))}}return"function"==typeof u.evaluate?{evaluate:function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n=u.evaluate.apply(void 0,t),r=c.evaluate.apply(void 0,t);if(void 0!==n&&void 0!==r)return h(n,r,l)}}:h(u,c,l)}function Ln(t,e,n){return"color"===e.type?n=N.parse(n):"formatted"===e.type?n=mt.fromString(n.toString()):"resolvedImage"===e.type?n=vt.fromString(n.toString()):kn(n)===e.type||"enum"===e.type&&e.values[n]||(n=void 0),Mn(n,t.default,e.default)}var Fn=function(t,e){var n;this.expression=t,this._warningHistory={},this._evaluator=new Zt,this._defaultValue=e?"color"===(n=e).type&&An(n.default)?new N(0,0,0,0):"color"===n.type?N.parse(n.default)||null:void 0===n.default?null:n.default:null,this._enumValues=e&&"enum"===e.type?e.values:null};function Nn(t,e){var n=new fe(xn,[],e?function(t){var e={color:tt,string:$,number:Q,enum:$,boolean:J,formatted:it,resolvedImage:ot};return"array"===t.type?at(e[t.value]||nt,t.length):e[t.type]}(e):void 0),r=n.parse(t,void 0,void 0,void 0,e&&"string"===e.type?{typeAnnotation:"coerce"}:void 0);return r?Sn(new Fn(r,e)):(D(n.errors.length>0),Cn(n.errors))}Fn.prototype.evaluateWithoutErrorHandling=function(t,e,n,r,i,o,a,s){return this._evaluator.globals=t,this._evaluator.feature=e,this._evaluator.featureState=n,this._evaluator.canonical=r,this._evaluator.availableImages=i||null,this._evaluator.formattedSection=o,this._evaluator.featureTileCoord=a||null,this._evaluator.featureDistanceData=s||null,this.expression.evaluate(this._evaluator)},Fn.prototype.evaluate=function(t,e,n,r,i,o,a,s){this._evaluator.globals=t,this._evaluator.feature=e||null,this._evaluator.featureState=n||null,this._evaluator.canonical=r,this._evaluator.availableImages=i||null,this._evaluator.formattedSection=o||null,this._evaluator.featureTileCoord=a||null,this._evaluator.featureDistanceData=s||null;try{var l=this.expression.evaluate(this._evaluator);if(null==l||"number"==typeof l&&l!=l)return this._defaultValue;if(this._enumValues&&!(l in this._enumValues))throw new kt("Expected value to be one of "+Object.keys(this._enumValues).map((function(t){return JSON.stringify(t)})).join(", ")+", but found "+JSON.stringify(l)+" instead.");return l}catch(t){return this._warningHistory[t.message]||(this._warningHistory[t.message]=!0,"undefined"!=typeof console&&console.warn(t.message)),this._defaultValue}};var Dn=function(t,e){this.kind=t,this._styleExpression=e,this.isStateDependent="constant"!==t&&!ue(e.expression)};Dn.prototype.evaluateWithoutErrorHandling=function(t,e,n,r,i,o){return this._styleExpression.evaluateWithoutErrorHandling(t,e,n,r,i,o)},Dn.prototype.evaluate=function(t,e,n,r,i,o){return this._styleExpression.evaluate(t,e,n,r,i,o)};var zn=function(t,e,n,r){this.kind=t,this.zoomStops=n,this._styleExpression=e,this.isStateDependent="camera"!==t&&!ue(e.expression),this.interpolationType=r};function Zn(t,e){if("error"===(t=Nn(t,e)).result)return t;var n,r=t.value.expression,i=le(r);if(!i&&"data-driven"!==(n=e)["property-type"]&&"cross-faded-data-driven"!==n["property-type"])return Cn([new H("","data expressions not supported")]);var o=ce(r,["zoom","pitch","distance-from-center"]);if(!o&&!function(t){return!!t.expression&&t.expression.parameters.indexOf("zoom")>-1}(e))return Cn([new H("","zoom expressions not supported")]);var a=Gn(r);if(!a&&!o)return Cn([new H("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')]);if(a instanceof H)return Cn([a]);if(a instanceof Ge&&!En(e))return Cn([new H("",'"interpolate" expressions cannot be used with this property')]);if(!a)return Sn(new Dn(i?"constant":"source",t.value));var s=a instanceof Ge?a.interpolation:void 0;return Sn(new zn(i?"camera":"composite",t.value,a.labels,s))}zn.prototype.evaluateWithoutErrorHandling=function(t,e,n,r,i,o){return this._styleExpression.evaluateWithoutErrorHandling(t,e,n,r,i,o)},zn.prototype.evaluate=function(t,e,n,r,i,o){return this._styleExpression.evaluate(t,e,n,r,i,o)},zn.prototype.interpolationFactor=function(t,e,n){return this.interpolationType?Ge.interpolationFactor(this.interpolationType,t,e,n):0};var jn=function(t,e){this._parameters=t,this._specification=e,W(this,Tn(this._parameters,this._specification))};function Gn(t){var e=null;if(t instanceof qe)e=Gn(t.result);else if(t instanceof Ue)for(var n=0,r=t.args;n<r.length;n+=1){var i=r[n];if(e=Gn(i))break}else(t instanceof ve||t instanceof Ge)&&t.input instanceof Gt&&"zoom"===t.input.name&&(e=t);return e instanceof H||t.eachChild((function(t){var n=Gn(t);n instanceof H?e=n:!e&&n?e=new H("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.'):e&&n&&e!==n&&(e=new H("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))})),e}function Bn(t){if(Array.isArray(t))return t.map(Bn);if(t instanceof Object&&!(t instanceof Number||t instanceof String||t instanceof Boolean)){var e={};for(var n in t)e[n]=Bn(t[n]);return e}return function(t){return t instanceof Number||t instanceof String||t instanceof Boolean?t.valueOf():t}(t)}jn.deserialize=function(t){return new jn(t._parameters,t._specification)},jn.serialize=function(t){return{_parameters:t._parameters,_specification:t._specification}};var Un=k(840);const Vn=Un,qn=function(t,e){if(void 0===e&&(e="fill"),null==t)return{filter:function(){return!0},needGeometry:!1,needFeature:!1};Wn(t)||(t=Jn(t));var n=t,r=!0;try{r=function(t){if(!Kn(t))return t;var e=Bn(t);return Xn(e),Hn(e)}(n)}catch(t){console.warn("Failed to extract static filter. Filter will continue working, but at higher memory usage and slower framerate.\nThis is most likely a bug, please report this via https://github.com/mapbox/mapbox-gl-js/issues/new?assignees=&labels=&template=Bug_report.md\nand paste the contents of this message in the report.\nThank you!\nFilter Expression:\n"+JSON.stringify(n,null,2)+"\n ")}var i,o=Vn["filter_"+e],a=Nn(r,o);if("error"===a.result)throw new Error(a.value.map((function(t){return t.key+": "+t.message})).join(", "));i=function(t,e,n){return a.value.evaluate(t,e,{},n)};var s=null,l=null;if(r!==n){var u=Nn(n,o);if("error"===u.result)throw new Error(u.value.map((function(t){return t.key+": "+t.message})).join(", "));s=function(t,e,n,r,i){return u.value.evaluate(t,e,{},n,void 0,void 0,r,i)},l=!le(u.value.expression)}return{filter:i,dynamicFilter:s||void 0,needGeometry:$n(r),needFeature:!!l}};function Wn(t){if(!0===t||!1===t)return!0;if(!Array.isArray(t)||0===t.length)return!1;switch(t[0]){case"has":return t.length>=2&&"$id"!==t[1]&&"$type"!==t[1];case"in":return t.length>=3&&("string"!=typeof t[1]||Array.isArray(t[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return 3!==t.length||Array.isArray(t[1])||Array.isArray(t[2]);case"any":case"all":for(var e=0,n=t.slice(1);e<n.length;e+=1){var r=n[e];if(!Wn(r)&&"boolean"!=typeof r)return!1}return!0;default:return!0}}function Hn(t){if(!Array.isArray(t))return t;var e=function(t){if(Yn.has(t[0]))for(var e=1;e<t.length;e++)if(Kn(t[e]))return!0;return t}(t);return!0===e?e:e.map((function(t){return Hn(t)}))}function Xn(t){var e=!1,n=[];if("case"===t[0]){for(var r=1;r<t.length-1;r+=2)e=e||Kn(t[r]),n.push(t[r+1]);n.push(t[t.length-1])}else if("match"===t[0]){e=e||Kn(t[1]);for(var i=2;i<t.length-1;i+=2)n.push(t[i+1]);n.push(t[t.length-1])}else if("step"===t[0]){e=e||Kn(t[1]);for(var o=1;o<t.length-1;o+=2)n.push(t[o+1])}e&&(t.length=0,t.push.apply(t,["any"].concat(n)));for(var a=1;a<t.length;a++)Xn(t[a])}function Kn(t){if(!Array.isArray(t))return!1;if("pitch"===(e=t[0])||"distance-from-center"===e)return!0;for(var e,n=1;n<t.length;n++)if(Kn(t[n]))return!0;return!1}var Yn=new Set(["in","==","!=",">",">=","<","<=","to-boolean"]);function Qn(t,e){return t<e?-1:t>e?1:0}function $n(t){if(!Array.isArray(t))return!1;if("within"===t[0])return!0;for(var e=1;e<t.length;e++)if($n(t[e]))return!0;return!1}function Jn(t){if(!t)return!0;var e,n=t[0];return t.length<=1?"any"!==n:"=="===n?tr(t[1],t[2],"=="):"!="===n?rr(tr(t[1],t[2],"==")):"<"===n||">"===n||"<="===n||">="===n?tr(t[1],t[2],n):"any"===n?(e=t.slice(1),["any"].concat(e.map(Jn))):"all"===n?["all"].concat(t.slice(1).map(Jn)):"none"===n?["all"].concat(t.slice(1).map(Jn).map(rr)):"in"===n?er(t[1],t.slice(2)):"!in"===n?rr(er(t[1],t.slice(2))):"has"===n?nr(t[1]):"!has"===n?rr(nr(t[1])):"within"!==n||t}function tr(t,e,n){switch(t){case"$type":return["filter-type-"+n,e];case"$id":return["filter-id-"+n,e];default:return["filter-"+n,t,e]}}function er(t,e){if(0===e.length)return!1;switch(t){case"$type":return["filter-type-in",["literal",e]];case"$id":return["filter-id-in",["literal",e]];default:return e.length>200&&!e.some((function(t){return typeof t!=typeof e[0]}))?["filter-in-large",t,["literal",e.sort(Qn)]]:["filter-in-small",t,["literal",e]]}}function nr(t){switch(t){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",t]}}function rr(t){return["!",t]}const ir=["type","source","source-layer","minzoom","maxzoom","filter","layout"];function or(t,e){var n={};for(var r in t)"ref"!==r&&(n[r]=t[r]);return ir.forEach((function(t){t in e&&(n[t]=e[t])})),n}var ar=k(523),sr=k(422);const lr=(t=>{var e={};return k.d(e,t),e})({assign:()=>c.f0});var ur="https://api.mapbox.com";function cr(t){var e="mapbox://";return 0!==t.indexOf(e)?"":t.slice(e.length)}function hr(t,e){var n=cr(t);if(!n)return decodeURI(new URL(t,location.href).href);var r="styles/";if(0!==n.indexOf(r))throw new Error("unexpected style url: "+t);var i=n.slice(r.length);return ur+"/styles/v1/"+i+"?&access_token="+e}function pr(t,e,n,r){var i=new URL(t,r),o=cr(t);return o?"https://{a-d}.tiles.mapbox.com/v4/"+o+"/{z}/{x}/{y}.vector.pbf?access_token="+e:e?(i.searchParams.set(n,e),decodeURI(i.href)):decodeURI(i.href)}function dr(t){return t*Math.PI/180}var fr=function(){for(var t=[],e=78271.51696402048;t.length<=24;e/=2)t.push(e);return t}();function gr(t,e){if("undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"undefined"!=typeof OffscreenCanvas)return new OffscreenCanvas(t,e);var n=document.createElement("canvas");return n.width=t,n.height=e,n}var mr={};function yr(t,e,n){if(void 0===n&&(n={}),e in mr)return mr[e];var r=n.transformRequest&&n.transformRequest(e,t)||new Request(e);r.headers.get("Accept")||r.headers.set("Accept","application/json");var i=fetch(r).then((function(t){return delete mr[e],t.ok?t.json():Promise.reject(new Error("Error fetching source "+e))})).catch((function(t){return delete mr[e],Promise.reject(new Error("Error fetching source "+e))}));return mr[e]=i,i}function vr(t,e){if("string"!=typeof t)return Promise.resolve(t);if(!t.trim().startsWith("{"))return yr("Style",t=hr(t,e.accessToken),e);try{var n=JSON.parse(t);return Promise.resolve(n)}catch(t){return Promise.reject(t)}}var _r={};function br(t,e,n){void 0===n&&(n={});var r=[e,JSON.stringify(t)].toString(),i=_r[r];if(!i||n.transformRequest){var o=t.url;if(o){var a=pr(o,n.accessToken,n.accessTokenParam||"access_token",e||location.href);i=o.startsWith("mapbox://")?Promise.resolve((0,lr.assign)({},t,{url:void 0,tiles:a})):yr("Source",a,n).then((function(t){for(var e=0,r=t.tiles.length;e<r;++e){var i=pr(t.tiles[e],n.accessToken,n.accessTokenParam||"access_token",a||location.href);if(n.transformRequest){var o=n.transformRequest(i,"Tiles");o instanceof Request&&(i=decodeURI(o.url))}t.tiles[e]=i}return Promise.resolve(t)}))}else t=(0,lr.assign)({},t,{tiles:t.tiles.map((function(t){return pr(t,n.accessToken,n.accessTokenParam||"access_token",e||location.href)}))}),i=Promise.resolve((0,lr.assign)({},t));n.transformRequest||(_r[r]=i)}return i}var wr,xr=Array(256).join(" ");function Sr(t,e){if(e>=.05){for(var n="",r=t.split("\n"),i=xr.slice(0,Math.round(e/.1)),o=0,a=r.length;o<a;++o)o>0&&(n+="\n"),n+=r[o].split("").join(i);return n}return t}function Cr(){return wr||(wr=gr(1,1).getContext("2d")),wr}function Er(t,e){return Cr().measureText(t).width+(t.length-1)*e}var kr={};function Ar(t,e,n,r){if(-1!==t.indexOf("\n")){for(var i=t.split("\n"),o=[],a=0,s=i.length;a<s;++a)o.push(Ar(i[a],e,n,r));return o.join("\n")}var l=n+","+e+","+t+","+r,u=kr[l];if(!u){var c=t.split(" ");if(c.length>1){var h=Cr();h.font=e;for(var p=h.measureText("M").width*n,d="",f=[],g=0,m=c.length;g<m;++g){var y=c[g],v=d+(d?" ":"")+y;Er(v,r)<=p?d=v:(d&&f.push(d),d=y)}d&&f.push(d);for(var _=0,b=f.length;_<b&&b>1;++_){var w=f[_];if(Er(w,r)<.35*p){var x=_>0?Er(f[_-1],r):1/0,S=_<b-1?Er(f[_+1],r):1/0;f.splice(_,1),b-=1,x<S?(f[_-1]+=" "+w,_-=1):f[_]=w+" "+f[_]}}for(var C=0,E=f.length-1;C<E;++C){var k=f[C],A=f[C+1];if(Er(k,r)>.7*p&&Er(A,r)<.6*p){var P=k.split(" "),T=P.pop();Er(T,r)<.2*p&&(f[C]=P.join(" "),f[C+1]=T+" "+A),E-=1}}u=f.join("\n")}else u=t;u=Sr(u,r),kr[l]=u}return u}var Pr,Tr=/font-family: ?([^;]*);/,Mr=/("|')/g;function Or(t){if(!Pr){Pr={};for(var e=document.styleSheets,n=0,r=e.length;n<r;++n){var i=e[n];try{var o=i.rules||i.cssRules;if(o)for(var a=0,s=o.length;a<s;++a){var l=o[a];if(5==l.type){var u=l.cssText.match(Tr);Pr[u[1].replace(Mr,"")]=!0}}}catch(t){}}}return t in Pr}var Rr={},Ir=sr.getNames();function Lr(t){var e=t.toString();if(e in Rr)return t;for(var n=t.map((function(t){var e=ar(t,1).split(" ");return[e.slice(3).join(" ").replace(/"/g,""),e[1]+e[0]]})),r=0,i=n.length;r<i;++r){var o=n[r],a=o[0];if(!Or(a)&&-1!==Ir.indexOf(a)){var s="https://fonts.googleapis.com/css?family="+a.replace(/ /g,"+")+":"+o[1];if(!document.querySelector('link[href="'+s+'"]')){var l=document.createElement("link");l.href=s,l.rel="stylesheet",document.head.appendChild(l)}}}return Rr[e]=!0,t}var Fr,Nr,Dr={Point:1,MultiPoint:1,LineString:2,MultiLineString:2,Polygon:3,MultiPolygon:3},zr={center:[.5,.5],left:[0,.5],right:[1,.5],top:[.5,0],bottom:[.5,1],"top-left":[0,0],"top-right":[1,0],"bottom-left":[0,1],"bottom-right":[1,1]},Zr={},jr={zoom:0};function Gr(t,e,n,r,i,o,a){var s=t.id;o||(o={},console.warn("No functionCache provided to getValue()")),o[s]||(o[s]={});var l,u=o[s];if(!u[n]){var c=(t[e]||Zr)[n],h=Un[e+"_"+t.type][n];void 0===c&&(c=h.default);var p=(l=c,Array.isArray(l)&&l.length>0&&"string"==typeof l[0]&&l[0]in xn);if(!p&&An(c)&&(c=function(t,e){var n=t.stops;if(!n)return function(t,e){var n=["get",t.property];if(void 0===t.default)return"string"===e.type?["string",n]:n;if("enum"===e.type)return["match",n,Object.keys(e.values),n,t.default];var r=["color"===e.type?"to-color":e.type,n,z(t.default)];return"array"===e.type&&r.splice(1,0,e.value,e.length||null),r}(t,e);var r=n&&"object"==typeof n[0][0],i=r||void 0!==t.property,o=r||!i;return n=n.map((function(t){return!i&&e.tokens&&"string"==typeof t[1]?[t[0],q(t[1])]:[t[0],z(t[1])]})),r?function(t,e,n){for(var r={},i={},o=[],a=0;a<n.length;a++){var s=n[a],l=s[0].zoom;void 0===r[l]&&(r[l]={zoom:l,type:t.type,property:t.property,default:t.default},i[l]=[],o.push(l)),i[l].push([s[0].value,s[1]])}if("exponential"===V({},e)){for(var u=[Z(t),["linear"],["zoom"]],c=0,h=o;c<h.length;c+=1){var p=h[c];U(u,p,G(r[p],e,i[p]),!1)}return u}for(var d=["step",["zoom"]],f=0,g=o;f<g.length;f+=1){var m=g[f];U(d,m,G(r[m],e,i[m]),!0)}return B(d),d}(t,e,n):o?function(t,e,n,r){void 0===r&&(r=["zoom"]);var i,o=V(t,e),a=!1;if("interval"===o)i=["step",r],a=!0;else{if("exponential"!==o)throw new Error('Unknown zoom function type "'+o+'"');var s=void 0!==t.base?t.base:1;i=[Z(t),1===s?["linear"]:["exponential",s],r]}for(var l=0,u=n;l<u.length;l+=1){var c=u[l];U(i,c[0],c[1],a)}return B(i),i}(t,e,n):G(t,e,n)}(c,h),p=!0),p){var d=function(t,e){var n=Zn(t,e);if("error"===n.result)throw new Error(n.value.map((function(t){return t.key+": "+t.message})).join(", "));return n.value}(c,h);u[n]=d.evaluate.bind(d)}else"color"==h.type&&(c=N.parse(c)),u[n]=function(){return c}}return jr.zoom=r,u[n](jr,i,a)}function Br(t,e,n,r,i){return i||console.warn("No filterCache provided to evaluateFilter()"),t in i||(i[t]=qn(e).filter),jr.zoom=r,i[t](jr,n)}var Ur=!1;function Vr(t){Ur=t}function qr(t,e){if(t){if(!Ur&&(0===t.a||0===e))return;var n=t.a;return e=void 0===e?1:e,0===n?"transparent":"rgba("+Math.round(255*t.r/n)+","+Math.round(255*t.g/n)+","+Math.round(255*t.b/n)+","+n*e+")"}return t}var Wr=/^([^]*)\{(.*)\}([^]*)$/;function Hr(t,e){var n;do{if(n=t.match(Wr)){var r=e[n[2]]||"";t=n[1]+r+n[3]}}while(n);return t}var Xr=!1;function Kr(t){void 0===t&&(t=!1),Xr=t}function Yr(t,e,n,r,i,o,a){if(void 0===r&&(r=fr),void 0===i&&(i=void 0),void 0===o&&(o=void 0),void 0===a&&(a=void 0),"string"==typeof e&&(e=JSON.parse(e)),8!=e.version)throw new Error("glStyle version 8 required.");var s,l;if(o)if("undefined"!=typeof Image){var u=new Image;u.crossOrigin="anonymous",u.onload=function(){s=u,l=[u.width,u.height],t.changed(),u.onload=null},u.src=o}else if("undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope){var c=self;c.postMessage({action:"loadImage",src:o}),c.addEventListener("message",(function(t){"imageLoaded"===t.data.action&&t.data.src===o&&(s=t.data.image,l=[s.width,s.height])}))}for(var h,p=function(t){t=t.slice();for(var e=Object.create(null),n=0;n<t.length;n++)e[t[n].id]=t[n];for(var r=0;r<t.length;r++)"ref"in t[r]&&(t[r]=or(t[r],e[t[r].ref]));return t}(e.layers),d={},f=[],g={},m={},y={},v={},_=0,b=p.length;_<b;++_){var w=p[_],x=w.id;if("string"==typeof n&&w.source==n||-1!==n.indexOf(x)){var S=w["source-layer"];if(h){if(w.source!==h)throw new Error('Layer "'+x+'" does not use source "'+h)}else{h=w.source;var E=e.sources[h];if(!E)throw new Error('Source "'+h+'" is not defined');var k=E.type;if("vector"!==k&&"geojson"!==k)throw new Error('Source "'+h+'" is not of type "vector" or "geojson", but "'+k+'"')}var A=d[S];A||(A=[],d[S]=A),A.push({layer:w,index:_}),f.push(x)}}var L=new O.default,F=new P.default,N=[],D=function(e,n){var o=e.getProperties(),u=d[o.layer];if(u){var c=r.indexOf(n);-1==c&&(c=function(t,e){for(var n=0,r=e.length;n<r;++n)if(e[n]<t&&n+1<r){var i=e[n]/e[n+1];return n+Math.log(e[n]/t)/Math.log(i)}return r-1}(n,r));for(var h,p=Dr[e.getGeometry().getType()],f={properties:o,type:p},_=t.get("mapbox-featurestate")[e.getId()],b=-1,w=0,x=u.length;w<x;++w){var S=u[w],E=S.layer,k=E.id,A=E.layout||Zr,D=E.paint||Zr;if(!("none"===A.visibility||"minzoom"in E&&c<E.minzoom||"maxzoom"in E&&c>=E.maxzoom)){var z=E.filter;if(!z||Br(k,z,f,c,v)){h=E;var Z=void 0,j=void 0,G=void 0,B=void 0,U=void 0,V=void 0,q=S.index;if(3==p&&("fill"==E.type||"fill-extrusion"==E.type))if(j=Gr(E,"paint",E.type+"-opacity",c,f,y,_),E.type+"-pattern"in D){var W=Gr(E,"paint",E.type+"-pattern",c,f,y,_);if(W){var H="string"==typeof W?Hr(W,o):W.toString();if(s&&i&&i[H]){++b,(V=N[b])&&V.getFill()&&!V.getStroke()&&!V.getText()||(V=new R.default({fill:new P.default}),N[b]=V),G=V.getFill(),V.setZIndex(q);var X=H+"."+j,K=m[X];if(!K){var Y=i[H],Q=gr(Y.width,Y.height),$=Q.getContext("2d");$.globalAlpha=j,$.drawImage(s,Y.x,Y.y,Y.width,Y.height,0,0,Y.width,Y.height),K=$.createPattern(Q,"repeat"),m[X]=K}G.setColor(K)}}}else Z=qr(Gr(E,"paint",E.type+"-color",c,f,y,_),j),E.type+"-outline-color"in D&&(U=qr(Gr(E,"paint",E.type+"-outline-color",c,f,y,_),j)),U||(U=Z),(Z||U)&&(++b,(!(V=N[b])||Z&&!V.getFill()||!Z&&V.getFill()||U&&!V.getStroke()||!U&&V.getStroke()||V.getText())&&(V=new R.default({fill:Z?new P.default:void 0,stroke:U?new O.default:void 0}),N[b]=V),Z&&(G=V.getFill()).setColor(Z),U&&((B=V.getStroke()).setColor(U),B.setWidth(.5)),V.setZIndex(q));if(1!=p&&"line"==E.type){Z=!("line-pattern"in D)&&"line-color"in D?qr(Gr(E,"paint","line-color",c,f,y,_),Gr(E,"paint","line-opacity",c,f,y,_)):void 0;var J=Gr(E,"paint","line-width",c,f,y,_);Z&&J>0&&(++b,(V=N[b])&&V.getStroke()&&!V.getFill()&&!V.getText()||(V=new R.default({stroke:new O.default}),N[b]=V),(B=V.getStroke()).setLineCap(Gr(E,"layout","line-cap",c,f,y,_)),B.setLineJoin(Gr(E,"layout","line-join",c,f,y,_)),B.setMiterLimit(Gr(E,"layout","line-miter-limit",c,f,y,_)),B.setColor(Z),B.setWidth(J),B.setLineDash(D["line-dasharray"]?Gr(E,"paint","line-dasharray",c,f,y,_).map((function(t){return t*J})):null),V.setZIndex(q))}var tt=!1,et=null,nt=0,rt=void 0,it=void 0,ot=void 0;if((1==p||2==p)&&"icon-image"in A){var at=Gr(E,"layout","icon-image",c,f,y,_);if(at){rt="string"==typeof at?Hr(at,o):at.toString();var st=void 0;if(s&&i&&i[rt]){var lt=Gr(E,"layout","icon-rotation-alignment",c,f,y,_);if(2==p){var ut=e.getGeometry();if(ut.getFlatMidpoint||ut.getFlatMidpoints){var ct=ut.getExtent();if(Math.sqrt(Math.max(Math.pow((ct[2]-ct[0])/n,2),Math.pow((ct[3]-ct[1])/n,2)))>150){var ht="MultiLineString"===ut.getType()?ut.getFlatMidpoints():ut.getFlatMidpoint();if(Nr||(Fr=[NaN,NaN],Nr=new M.default("Point",Fr,[],{},null)),st=Nr,Fr[0]=ht[0],Fr[1]=ht[1],"line"===Gr(E,"layout","symbol-placement",c,f,y,_)&&"map"===lt)for(var pt=ut.getStride(),dt=ut.getFlatCoordinates(),ft=0,gt=dt.length-pt;ft<gt;ft+=pt){var mt=dt[ft],yt=dt[ft+1],vt=dt[ft+pt],_t=dt[ft+pt+1],bt=Math.min(mt,vt),wt=Math.min(yt,_t),xt=Math.max(mt,vt),St=Math.max(yt,_t);if(ht[0]>=bt&&ht[0]<=xt&&ht[1]>=wt&&ht[1]<=St){nt=Math.atan2(yt-_t,vt-mt);break}}}}}if(2!==p||st){var Ct=Gr(E,"layout","icon-size",c,f,y,_),Et=void 0!==D["icon-color"]?Gr(E,"paint","icon-color",c,f,y,_):null;if(!Et||0!==Et.a){var kt=rt+"."+Ct;if(null!==Et&&(kt+="."+Et),!(it=g[kt])){var At=i[rt];it=new T.default({color:Et?[255*Et.r,255*Et.g,255*Et.b,Et.a]:void 0,img:s,imgSize:l,size:[At.width,At.height],offset:[At.x,At.y],rotateWithView:"map"===lt,scale:Ct/At.pixelRatio,displacement:"icon-offset"in A?Gr(E,"layout","icon-offset",c,f,y,_).map((function(t){return-t*At.pixelRatio})):void 0}),g[kt]=it}}it&&(++b,(V=N[b])&&V.getImage()&&!V.getFill()&&!V.getStroke()||(V=new R.default,N[b]=V),V.setGeometry(st),it.setRotation(nt+dr(Gr(E,"layout","icon-rotate",c,f,y,_))),it.setOpacity(Gr(E,"paint","icon-opacity",c,f,y,_)),it.setAnchor(zr[Gr(E,"layout","icon-anchor",c,f,y,_)]),V.setImage(it),et=V.getText(),V.setText(void 0),V.setZIndex(q),tt=!0,ot=!1)}else ot=!0}}}if(1==p&&"circle"===E.type){++b,(V=N[b])&&V.getImage()&&!V.getFill()&&!V.getStroke()||(V=new R.default,N[b]=V);var Pt="circle-radius"in D?Gr(E,"paint","circle-radius",c,f,y,_):5,Tt=qr(Gr(E,"paint","circle-stroke-color",c,f,y,_),Gr(E,"paint","circle-stroke-opacity",c,f,y,_)),Mt=qr(Gr(E,"paint","circle-color",c,f,y,_),Gr(E,"paint","circle-opacity",c,f,y,_)),Ot=Gr(E,"paint","circle-stroke-width",c,f,y,_),Rt=Pt+"."+Tt+"."+Mt+"."+Ot;(it=g[Rt])||(it=new C.default({radius:Pt,stroke:Tt&&Ot>0?new O.default({width:Ot,color:Tt}):void 0,fill:Mt?new P.default({color:Mt}):void 0}),g[Rt]=it),V.setImage(it),et=V.getText(),V.setText(void 0),V.setGeometry(void 0),V.setZIndex(q),tt=!0}var It=void 0,Lt=void 0,Ft=void 0,Nt=void 0,Dt=void 0,zt=void 0;if("text-field"in A){Nt=Math.round(Gr(E,"layout","text-size",c,f,y,_));var Zt=Gr(E,"layout","text-font",c,f,y,_);Ft=Gr(E,"layout","text-line-height",c,f,y,_),Lt=ar(a?a(Zt):Zt,Nt,Ft),Dt=Gr(E,"layout","text-letter-spacing",c,f,y,_),zt=Gr(E,"layout","text-max-width",c,f,y,_);var jt=Gr(E,"layout","text-field",c,f,y,_);It="object"==typeof jt&&jt.sections?1===jt.sections.length?jt.toString():jt.sections.reduce((function(t,e,n){var r=e.fontStack?e.fontStack.split(","):Zt,i=ar(a?a(r):r,Nt*(e.scale||1),Ft),o=e.text;if("\n"===o)return t.push("\n",""),t;if(2!=p){for(var s=0,l=(o=Ar(o,i,zt,Dt).split("\n")).length;s<l;++s)s>0&&t.push("\n",""),t.push(o[s],i);return t}t.push(Sr(o,Dt),i)}),[]):Hr(jt,o).trim(),j=Gr(E,"paint","text-opacity",c,f,y,_)}if(It&&j&&!ot){tt||(++b,(V=N[b])&&V.getText()&&!V.getFill()&&!V.getStroke()||(V=new R.default,N[b]=V),V.setImage(void 0),V.setGeometry(void 0)),V.getText()||V.setText(et||new I.default({padding:[2,2,2,2]})),et=V.getText();var Gt=A["text-transform"];"uppercase"==Gt?It=Array.isArray(It)?It.map((function(t,e){return e%2?t:t.toUpperCase()})):It.toUpperCase():"lowercase"==Gt&&(It=Array.isArray(It)?It.map((function(t,e){return e%2?t:t.toLowerCase()})):It.toLowerCase());var Bt=Array.isArray(It)?It:2==p?Sr(It,Dt):Ar(It,Lt,zt,Dt);et.setText(Bt),et.setFont(Lt),et.setRotation(dr(Gr(E,"layout","text-rotate",c,f,y,_)));var Ut=Gr(E,"layout","text-anchor",c,f,y,_),Vt=tt||1==p?"point":Gr(E,"layout","symbol-placement",c,f,y,_);et.setPlacement(Vt),et.setOverflow("point"===Vt);var qt=Gr(E,"paint","text-halo-width",c,f,y,_),Wt=Gr(E,"layout","text-offset",c,f,y,_),Ht=Gr(E,"paint","text-translate",c,f,y,_),Xt=0,Kt=0;if("point"==Vt){var Yt="center";-1!==Ut.indexOf("left")?(Yt="left",Kt=qt):-1!==Ut.indexOf("right")&&(Yt="right",Kt=-qt),et.setTextAlign(Yt);var Qt=Gr(E,"layout","text-rotation-alignment",c,f,y,_);et.setRotateWithView("map"==Qt)}else et.setMaxAngle(dr(Gr(E,"layout","text-max-angle",c,f,y,_))*It.length/Bt.length),et.setTextAlign(),et.setRotateWithView(!1);var $t="middle";0==Ut.indexOf("bottom")?($t="bottom",Xt=-qt-.5*(Ft-1)*Nt):0==Ut.indexOf("top")&&($t="top",Xt=qt+.5*(Ft-1)*Nt),et.setTextBaseline($t),et.setOffsetX(Wt[0]*Nt+Kt+Ht[0]),et.setOffsetY(Wt[1]*Nt+Xt+Ht[1]),F.setColor(qr(Gr(E,"paint","text-color",c,f,y,_),j)),et.setFill(F);var Jt=qr(Gr(E,"paint","text-halo-color",c,f,y,_),j);if(Jt){L.setColor(Jt),qt*=2;var te=.5*Nt;L.setWidth(qt<=te?qt:te),et.setStroke(L)}else et.setStroke(void 0);var ee=Gr(E,"layout","text-padding",c,f,y,_),ne=et.getPadding();ee!==ne[0]&&(ne[0]=ee,ne[1]=ee,ne[2]=ee,ne[3]=ee),V.setZIndex(q)}}}}return b>-1?(N.length=b+1,Xr&&("function"==typeof e.set?e.set("mapbox-layer",h):e.getProperties()["mapbox-layer"]=h),N):void 0}};return t.setStyle(D),t.set("mapbox-source",h),t.set("mapbox-layers",f),t.set("mapbox-featurestate",{}),D}const Qr=(t=>{var e={};return k.d(e,t),e})({default:()=>h.Z}),$r=(t=>{var e={};return k.d(e,t),e})({default:()=>p.Z}),Jr=(t=>{var e={};return k.d(e,t),e})({default:()=>d.Z}),ti=(t=>{var e={};return k.d(e,t),e})({default:()=>f.Z}),ei=(t=>{var e={};return k.d(e,t),e})({default:()=>g.Z}),ni=(t=>{var e={};return k.d(e,t),e})({default:()=>m.default}),ri=(t=>{var e={};return k.d(e,t),e})({default:()=>y.default}),ii=(t=>{var e={};return k.d(e,t),e})({default:()=>v.default}),oi=(t=>{var e={};return k.d(e,t),e})({default:()=>_.default}),ai=(t=>{var e={};return k.d(e,t),e})({default:()=>b.default,defaultLoadFunction:()=>b.defaultLoadFunction}),si=(t=>{var e={};return k.d(e,t),e})({default:()=>w.ZP}),li=(t=>{var e={};return k.d(e,t),e})({createXYZ:()=>x.dl}),ui=(t=>{var e={};return k.d(e,t),e})({equivalent:()=>S.equivalent,fromLonLat:()=>S.fromLonLat,getUserProjection:()=>S.getUserProjection});function ci(t,e){return e.accessToken||(e=(0,lr.assign)({},e),new URL(t).searchParams.forEach((function(t,n){e.accessToken=t,e.accessTokenParam=n}))),e}function hi(t,e,n,r,i){var o,a,s;return void 0===n&&(n=""),void 0===r&&(r={}),void 0===i&&(i=void 0),"string"==typeof r?(o=r,s={}):(o=r.styleUrl,s=r),i||(i=s.resolutions),o||"string"!=typeof e||e.trim().startsWith("{")||(o=e),o&&(o=o.startsWith("data:")?location.href:hr(o,s.accessToken),s=ci(o,s)),new Promise((function(r,l){vr(e,s).then((function(e){if(8!=e.version)return l(new Error("glStyle version 8 required."));if(!(t instanceof ri.default||t instanceof oi.default))return l(new Error("Can only apply to VectorLayer or VectorTileLayer"));var u,c,h,p=t instanceof oi.default?"vector":"geojson";if(n?a=Array.isArray(n)?e.layers.find((function(t){return t.id===n[0]})).source:n:(a=Object.keys(e.sources).find((function(t){return e.sources[t].type===p})),n=a),!a)return l(new Error("No "+p+" source found in the glStyle."));function d(){if(t instanceof oi.default)return vi(e.sources[a],o,s).then((function(e){var n=t.getSource();if(n?e!==n&&(n.setTileUrlFunction(e.getTileUrlFunction()),n.format_||(n.format_=e.format_),n.getAttributions()||n.setAttributions(e.getAttributions()),n.getTileLoadFunction()===ai.defaultLoadFunction&&n.setTileLoadFunction(e.getTileLoadFunction()),(0,ui.equivalent)(n.getProjection(),e.getProjection())&&(n.tileGrid=e.getTileGrid())):t.setSource(e),!isFinite(t.getMaxResolution())&&!isFinite(t.getMinZoom())){var r=t.getSource().getTileGrid();t.setMaxResolution(r.getResolution(r.getMinZoom()))}}));var n=xi(e.sources[a],o,s),r=t.getSource();return r?n!==r&&(r.getAttributions()||r.setAttributions(n.getAttributions()),r.format_||(r.format_=n.getFormat()),r.url_=n.getUrl()):t.setSource(n),Promise.resolve()}function f(){h||e.sprite&&!u?h?(t.setStyle(h),d().then(r).catch(l)):l(new Error("Something went wrong trying to apply style.")):(h=Yr(t,e,n,i,u,c,Lr),t.getStyle()?d().then(r).catch(l):l(new Error("Nothing to show for source ["+a+"]")))}if(e.sprite){var g=new URL(function(t,e,n){var r=cr(t);if(!r)return decodeURI(new URL(t,n).href);var i="sprites/";if(0!==r.indexOf(i))throw new Error("unexpected sprites url: "+t);var o=r.slice(i.length);return ur+"/styles/v1/"+o+"/sprite?access_token="+e}(e.sprite,s.accessToken,o||location.href)),m=.5==(window.devicePixelRatio>=1.5?.5:1)?"@2x":"",y=g.origin+g.pathname+m+".json"+g.search;new Promise((function(t,e){yr("Sprite",y,s).then(t).catch((function(n){yr("Sprite",y=g.origin+g.pathname+".json"+g.search,s).then(t).catch(e)}))})).then((function(t){void 0===t&&l(new Error("No sprites found.")),u=t,c=g.origin+g.pathname+m+".png"+g.search,f()})).catch((function(t){l(new Error("Sprites cannot be loaded: "+y+": "+t.message))}))}else f()})).catch(l)}))}var pi={};function di(t,e){var n={id:e.id,type:e.type},r={};function i(i){var o=e.layout||{},a=e.paint||{};n.paint=a;var s,l,u="function"==typeof t.getSource?t.getSource().getTileGrid().getZForResolution(i):t.getView().getZoom(),c="function"==typeof t.getTargetElement?t.getTargetElement():void 0;if(void 0!==a["background-color"]&&(s=Gr(n,"paint","background-color",u,pi,r),c&&(c.style.background=N.parse(s).toString())),void 0!==a["background-opacity"]&&(l=Gr(n,"paint","background-opacity",u,pi,r),c&&(c.style.opacity=l)),"none"!=o.visibility)return qr(s,l);c&&(c.style.backgroundColor="",c.style.opacity="")}if("function"==typeof t.getTargetElement)t.getTargetElement()&&i(),t.on(["change:resolution","change:target"],i);else{if("function"!=typeof t.setBackground)throw new Error("Unable to apply background.");t.setBackground(i)}}function fi(t,e){e.layers.some((function(e){if("background"===e.type)return di(t,e),!0}))}function gi(t,e,n){return void 0===n&&(n={}),"object"==typeof e?(fi(t,e),Promise.resolve()):vr(e,n).then((function(e){fi(t,e)}))}function mi(t,e){var n;return t.some((function(t){if(t.id==e)return n=t.source,!0})),n}function yi(t){var e=t.bounds;if(e){var n=(0,ui.fromLonLat)([e[0],e[1]]),r=(0,ui.fromLonLat)([e[2],e[3]]);return[n[0],n[1],r[0],r[1]]}}function vi(t,e,n){return new Promise((function(r,i){br(t,e,n).then((function(t){var e=new ei.default({tileJSON:t}),n=e.getTileJSON(),i=e.getTileGrid(),o=yi(n),a=n.minzoom||0,s=n.maxzoom||22,l=e.get("ol-source");if(void 0===l){var u={attributions:e.getAttributions(),format:new $r.default,tileGrid:new ti.default({origin:i.getOrigin(0),extent:o||i.getExtent(),minZoom:a,resolutions:fr.slice(0,s+1),tileSize:512})};Array.isArray(n.tiles)?u.urls=n.tiles:u.url=n.tiles,t.olSourceOptions&&Object.assign(u,t.olSourceOptions),l=new ai.default(u),e.set("ol-source",l)}r(l)})).catch(i)}))}function _i(t,e,n){var r=new oi.default({declutter:!0,visible:!1});return vi(t,e,n).then((function(t){r.setSource(t)})).catch((function(t){r.setSource(void 0)})),r}function bi(t,e,n){var r=new ni.default;return br(t,e,n).then((function(e){var n=new ei.default({transition:0,crossOrigin:"anonymous",tileJSON:e}),i=yi(e),o=n.getTileGrid(),a=t.tileSize||e.tileSize||512,s=e.minzoom||0,l=e.maxzoom||22;n.tileGrid=new ti.default({origin:o.getOrigin(0),extent:i||o.getExtent(),minZoom:s,resolutions:(0,li.createXYZ)({maxZoom:l,tileSize:a}).getResolutions(),tileSize:a});var u=n.getTileUrlFunction();n.setTileUrlFunction((function(t,e,r){var i=u(t,e,r);if(-1!=i.indexOf("{bbox-epsg-3857}")){var o=n.getTileGrid().getTileCoordExtent(t);i=i.replace("{bbox-epsg-3857}",o.toString())}return i})),r.setSource(n)})).catch((function(t){r.setSource(void 0)})),r}var wi=new Qr.default;function xi(t,e,n){var r=t.data,i={};if("string"==typeof r){var o=pr(r,n.accessToken,n.accessTokenParam||"access_token",e||location.href);if(n.transformRequest){var a=n.transformRequest(o,"GeoJSON");a instanceof Request&&(o=encodeURI(a.url))}i.url=o}else i.features=wi.readFeatures(r,{featureProjection:(0,ui.getUserProjection)()||"EPSG:3857"});return new ii.default((0,lr.assign)({attributions:t.attribution,format:wi},i))}function Si(t,e,n){return new ri.default({declutter:!0,source:xi(t,e,n),visible:!1})}function Ci(t,e,n,r){var i=Gr(t,"paint","raster-opacity",n.getZoom(),pi,r);e.setOpacity(i)}function Ei(t,e,n,r){var i=[],o=e.getView();o.isDef()||o.getRotation()||o.getResolutions()||(o=new si.default((0,lr.assign)(o.getProperties(),{maxResolution:fr[0]})),e.setView(o)),"center"in t&&!o.getCenter()&&o.setCenter((0,ui.fromLonLat)(t.center)),"zoom"in t&&void 0===o.getZoom()&&o.setResolution(fr[0]/Math.pow(2,t.zoom)),o.getCenter()&&void 0!==o.getZoom()||o.fit(o.getProjection().getExtent(),{nearest:!0,size:e.getSize()});for(var a,s,l,u,c,h=t.layers,p=[],d=0,f=h.length;d<f;++d){var g=(a=h[d]).type;if("heatmap"==g||"hillshade"==g)throw new Error(g+" layers are not supported");if("background"==g)di(e,a);else{if((u=a.source||mi(h,a.ref))!=l){if(p.length&&(i.push(Ai(c,p,t,n,e,r)),p=[]),"vector"==(s=t.sources[u]).type)c=_i(s,n,r);else if("raster"==s.type){(c=bi(s,n,r)).setVisible(!a.layout||"none"!==a.layout.visibility);var m={};o.on("change:resolution",Ci.bind(this,a,c,o,m)),Ci(a,c,o,m)}else"geojson"==s.type&&(c=Si(s,n,r));l=u,c&&c.set("mapbox-source",l)}p.push(a.id)}}return i.push(Ai(c,p,t,n,e,r)),e.set("mapbox-style",t),Promise.all(i)}function ki(t,e,n){var r;if(void 0===n&&(n={}),("string"==typeof t||t instanceof HTMLElement)&&(t=new Jr.default({target:t})),"string"==typeof e){var i=e.startsWith("data:")?location.href:hr(e,n.accessToken);n=ci(i,n),r=new Promise((function(r,o){vr(e,n).then((function(e){Ei(e,t,i,n).then((function(){r(t)})).catch(o)})).catch((function(t){o(new Error("Could not load "+e+": "+t.message))}))}))}else r=new Promise((function(r,i){Ei(e,t,"",n).then((function(){r(t)})).catch(i)}));return r}function Ai(t,e,n,r,i,o){void 0===o&&(o={});for(var a=24,s=0,l=n.layers,u=0,c=l.length;u<c;++u){var h=l[u];-1!==e.indexOf(h.id)&&(a=Math.min("minzoom"in h?h.minzoom:0,a),s=Math.max("maxzoom"in h?h.maxzoom:24,s))}return new Promise((function(l,u){var c=function(){var i=t.getSource();if(i&&"error"!==i.getState()){if("getTileGrid"in i){var c=i.getTileGrid();if(c){var h=c.getMinZoom();(a>0||h>0)&&t.setMaxResolution(Math.min(fr[a],c.getResolution(h))+1e-9),s<24&&t.setMinResolution(fr[s]+1e-9)}}i instanceof ii.default||i instanceof ai.default?hi(t,n,e,(0,lr.assign)({styleUrl:r},o)).then((function(){t.setVisible(!0),l()})).catch(u):l()}else u(new Error("Error accessing data for source "+t.get("mapbox-source")))};t.set("mapbox-layers",e),-1===i.getLayers().getArray().indexOf(t)&&i.addLayer(t),t.getSource()?c():t.once("change:source",c)}))}function Pi(t,e){for(var n=t.getLayers().getArray(),r=0,i=n.length;r<i;++r){var o=n[r].get("mapbox-layers");if(o&&-1!==o.indexOf(e))return n[r]}}function Ti(t,e){for(var n=[],r=t.getAllLayers(),i=0,o=r.length;i<o;++i)r[i].get("mapbox-source")===e&&n.push(r[i]);return n}function Mi(t,e){for(var n=t.getLayers().getArray(),r=0,i=n.length;r<i;++r){var o=n[r].getSource();if(n[r].get("mapbox-source")===e)return o}}function Oi(t,e,n){for(var r=("getLayers"in t?Ti(t,e.source):[t]),i=0,o=r.length;i<o;++i){var a=r[i].get("mapbox-featurestate");if(!a)throw new Error('Map or layer for source "'+e.source+'" not found.');n?a[e.id]=n:delete a[e.id],r[i].changed()}}function Ri(t,e){for(var n=("getLayers"in t?Ti(t,e.source):[t]),r=0,i=n.length;r<i;++r){var o=n[r].get("mapbox-featurestate");if(o&&o[e.id])return o[e.id]}return null}})();var A=e.nn,P=e.h0,T=e.bg,M=e.ZP,O=e.gG,R=e.Hs,I=e.xb,L=e.b5,F=e.YU,N=e.iC,D=e.LN,z=e.uX},7906:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var r,i=n(2637),o=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});const a=function(t){function e(e){var n=this,r="Assertion failed. See https://openlayers.org/en/"+("latest"===i.q4?i.q4:"v"+i.q4.split("-")[0])+"/doc/errors/#"+e+" for details.";return(n=t.call(this,r)||this).code=e,n.name="AssertionError",n.message=r,n}return o(e,t),e}(Error)},3537:(t,e,n)=>{"use strict";n.d(e,{Z:()=>h});var r,i=n(7906),o=n(6414),a=n(8523),s=n(9025),l=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),u="length",c=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.element=n,i.index=r,i}return l(e,t),e}(s.ZP);const h=function(t){function e(e,n){var r=t.call(this)||this;r.on,r.once,r.un;var i=n||{};if(r.unique_=!!i.unique,r.array_=e||[],r.unique_)for(var o=0,a=r.array_.length;o<a;++o)r.assertUnique_(r.array_[o],o);return r.updateLength_(),r}return l(e,t),e.prototype.clear=function(){for(;this.getLength()>0;)this.pop()},e.prototype.extend=function(t){for(var e=0,n=t.length;e<n;++e)this.push(t[e]);return this},e.prototype.forEach=function(t){for(var e=this.array_,n=0,r=e.length;n<r;++n)t(e[n],n,e)},e.prototype.getArray=function(){return this.array_},e.prototype.item=function(t){return this.array_[t]},e.prototype.getLength=function(){return this.get(u)},e.prototype.insertAt=function(t,e){this.unique_&&this.assertUnique_(e),this.array_.splice(t,0,e),this.updateLength_(),this.dispatchEvent(new c(a.Z.ADD,e,t))},e.prototype.pop=function(){return this.removeAt(this.getLength()-1)},e.prototype.push=function(t){this.unique_&&this.assertUnique_(t);var e=this.getLength();return this.insertAt(e,t),this.getLength()},e.prototype.remove=function(t){for(var e=this.array_,n=0,r=e.length;n<r;++n)if(e[n]===t)return this.removeAt(n)},e.prototype.removeAt=function(t){var e=this.array_[t];return this.array_.splice(t,1),this.updateLength_(),this.dispatchEvent(new c(a.Z.REMOVE,e,t)),e},e.prototype.setAt=function(t,e){var n=this.getLength();if(t<n){this.unique_&&this.assertUnique_(e,t);var r=this.array_[t];this.array_[t]=e,this.dispatchEvent(new c(a.Z.REMOVE,r,t)),this.dispatchEvent(new c(a.Z.ADD,e,t))}else{for(var i=n;i<t;++i)this.insertAt(i,void 0);this.insertAt(t,e)}},e.prototype.updateLength_=function(){this.set(u,this.array_.length)},e.prototype.assertUnique_=function(t,e){for(var n=0,r=this.array_.length;n<r;++n)if(this.array_[n]===t&&n!==e)throw new i.Z(58)},e}(o.Z)},8523:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});const r={ADD:"add",REMOVE:"remove"}},5466:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});const r=function(){function t(){this.disposed=!1}return t.prototype.dispose=function(){this.disposed||(this.disposed=!0,this.disposeInternal())},t.prototype.disposeInternal=function(){},t}()},2540:(t,e,n)=>{"use strict";n.d(e,{Z:()=>u});var r,i=n(6414),o=n(2001),a=n(9162),s=n(8196),l=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});const u=function(t){function e(e){var n=t.call(this)||this;if(n.on,n.once,n.un,n.id_=void 0,n.geometryName_="geometry",n.style_=null,n.styleFunction_=void 0,n.geometryChangeKey_=null,n.addChangeListener(n.geometryName_,n.handleGeometryChanged_),e)if("function"==typeof e.getSimplifiedGeometry){var r=e;n.setGeometry(r)}else{var i=e;n.setProperties(i)}return n}return l(e,t),e.prototype.clone=function(){var t=new e(this.hasProperties()?this.getProperties():null);t.setGeometryName(this.getGeometryName());var n=this.getGeometry();n&&t.setGeometry(n.clone());var r=this.getStyle();return r&&t.setStyle(r),t},e.prototype.getGeometry=function(){return this.get(this.geometryName_)},e.prototype.getId=function(){return this.id_},e.prototype.getGeometryName=function(){return this.geometryName_},e.prototype.getStyle=function(){return this.style_},e.prototype.getStyleFunction=function(){return this.styleFunction_},e.prototype.handleGeometryChange_=function(){this.changed()},e.prototype.handleGeometryChanged_=function(){this.geometryChangeKey_&&((0,s.bN)(this.geometryChangeKey_),this.geometryChangeKey_=null);var t=this.getGeometry();t&&(this.geometryChangeKey_=(0,s.oL)(t,o.Z.CHANGE,this.handleGeometryChange_,this)),this.changed()},e.prototype.setGeometry=function(t){this.set(this.geometryName_,t)},e.prototype.setStyle=function(t){var e,n;this.style_=t,this.styleFunction_=t?"function"==typeof(e=t)?e:(Array.isArray(e)?n=e:((0,a.h)("function"==typeof e.getZIndex,41),n=[e]),function(){return n}):void 0,this.changed()},e.prototype.setId=function(t){this.id_=t,this.changed()},e.prototype.setGeometryName=function(t){this.removeChangeListener(this.geometryName_,this.handleGeometryChanged_),this.geometryName_=t,this.addChangeListener(this.geometryName_,this.handleGeometryChanged_),this.handleGeometryChanged_()},e}(i.Z)},1667:(t,e,n)=>{"use strict";n.d(e,{K:()=>h,Z:()=>p});var r,i=n(2001),o=n(5078),a=n(6637),s=n(7119),l=n(6596),u=n(8196),c=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});function h(t,e,n){var r=t,o=!0,a=!1,l=!1,c=[(0,u.Vx)(r,i.Z.LOAD,(function(){l=!0,a||e()}))];return r.src&&s.Tp?(a=!0,r.decode().then((function(){o&&e()})).catch((function(t){o&&(l?e():n())}))):c.push((0,u.Vx)(r,i.Z.ERROR,n)),function(){o=!1,c.forEach(u.bN)}}const p=function(t){function e(e,n,r,i,o,s){var l=t.call(this,e,n,r,a.Z.IDLE)||this;return l.src_=i,l.image_=new Image,null!==o&&(l.image_.crossOrigin=o),l.unlisten_=null,l.state=a.Z.IDLE,l.imageLoadFunction_=s,l}return c(e,t),e.prototype.getImage=function(){return this.image_},e.prototype.handleImageError_=function(){this.state=a.Z.ERROR,this.unlistenImage_(),this.changed()},e.prototype.handleImageLoad_=function(){void 0===this.resolution&&(this.resolution=(0,l.Cr)(this.extent)/this.image_.height),this.state=a.Z.LOADED,this.unlistenImage_(),this.changed()},e.prototype.load=function(){this.state!=a.Z.IDLE&&this.state!=a.Z.ERROR||(this.state=a.Z.LOADING,this.changed(),this.imageLoadFunction_(this,this.src_),this.unlisten_=h(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))},e.prototype.setImage=function(t){this.image_=t,this.resolution=(0,l.Cr)(this.extent)/this.image_.height},e.prototype.unlistenImage_=function(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)},e}(o.Z)},5078:(t,e,n)=>{"use strict";n.d(e,{Z:()=>l});var r,i=n(952),o=n(2001),a=n(2637),s=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});const l=function(t){function e(e,n,r,i){var o=t.call(this)||this;return o.extent=e,o.pixelRatio_=r,o.resolution=n,o.state=i,o}return s(e,t),e.prototype.changed=function(){this.dispatchEvent(o.Z.CHANGE)},e.prototype.getExtent=function(){return this.extent},e.prototype.getImage=function(){return(0,a.O3)()},e.prototype.getPixelRatio=function(){return this.pixelRatio_},e.prototype.getResolution=function(){return this.resolution},e.prototype.getState=function(){return this.state},e.prototype.load=function(){(0,a.O3)()},e}(i.Z)},4271:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r,i=n(5078),o=n(6637),a=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});const s=function(t){function e(e,n,r,i,a){var s=this,l=void 0!==a?o.Z.IDLE:o.Z.LOADED;return(s=t.call(this,e,n,r,l)||this).loader_=void 0!==a?a:null,s.canvas_=i,s.error_=null,s}return a(e,t),e.prototype.getError=function(){return this.error_},e.prototype.handleLoad_=function(t){t?(this.error_=t,this.state=o.Z.ERROR):this.state=o.Z.LOADED,this.changed()},e.prototype.load=function(){this.state==o.Z.IDLE&&(this.state=o.Z.LOADING,this.changed(),this.loader_(this.handleLoad_.bind(this)))},e.prototype.getImage=function(){return this.canvas_},e}(i.Z)},6637:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});const r={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4}},6487:(t,e,n)=>{"use strict";n.d(e,{Z:()=>u});var r,i=n(5069),o=n(3584),a=n(9220),s=n(1667),l=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});const u=function(t){function e(e,n,r,i,o,a){var s=t.call(this,e,n,a)||this;return s.crossOrigin_=i,s.src_=r,s.key=r,s.image_=new Image,null!==i&&(s.image_.crossOrigin=i),s.unlisten_=null,s.tileLoadFunction_=o,s}return l(e,t),e.prototype.getImage=function(){return this.image_},e.prototype.setImage=function(t){this.image_=t,this.state=o.Z.LOADED,this.unlistenImage_(),this.changed()},e.prototype.handleImageError_=function(){var t;this.state=o.Z.ERROR,this.unlistenImage_(),this.image_=((t=(0,a.E4)(1,1)).fillStyle="rgba(0,0,0,0)",t.fillRect(0,0,1,1),t.canvas),this.changed()},e.prototype.handleImageLoad_=function(){var t=this.image_;t.naturalWidth&&t.naturalHeight?this.state=o.Z.LOADED:this.state=o.Z.EMPTY,this.unlistenImage_(),this.changed()},e.prototype.load=function(){this.state==o.Z.ERROR&&(this.state=o.Z.IDLE,this.image_=new Image,null!==this.crossOrigin_&&(this.image_.crossOrigin=this.crossOrigin_)),this.state==o.Z.IDLE&&(this.state=o.Z.LOADING,this.changed(),this.tileLoadFunction_(this,this.src_),this.unlisten_=(0,s.K)(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))},e.prototype.unlistenImage_=function(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)},e}(i.Z)},9767:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});const r=function(){function t(t,e,n){this.decay_=t,this.minVelocity_=e,this.delay_=n,this.points_=[],this.angle_=0,this.initialVelocity_=0}return t.prototype.begin=function(){this.points_.length=0,this.angle_=0,this.initialVelocity_=0},t.prototype.update=function(t,e){this.points_.push(t,e,Date.now())},t.prototype.end=function(){if(this.points_.length<6)return!1;var t=Date.now()-this.delay_,e=this.points_.length-3;if(this.points_[e+2]<t)return!1;for(var n=e-3;n>0&&this.points_[n+2]>t;)n-=3;var r=this.points_[e+2]-this.points_[n+2];if(r<1e3/60)return!1;var i=this.points_[e]-this.points_[n],o=this.points_[e+1]-this.points_[n+1];return this.angle_=Math.atan2(o,i),this.initialVelocity_=Math.sqrt(i*i+o*o)/r,this.initialVelocity_>this.minVelocity_},t.prototype.getDistance=function(){return(this.minVelocity_-this.initialVelocity_)/this.decay_},t.prototype.getAngle=function(){return this.angle_},t}()},456:(t,e,n)=>{"use strict";n.d(e,{Z:()=>c});var r,i=n(1972),o=n(2353),a=n(6534),s=n(7350),l=n(8298),u=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});const c=function(t){function e(e){return(e=(0,a.f0)({},e)).controls||(e.controls=(0,s.defaults)()),e.interactions||(e.interactions=(0,l.defaults)({onFocusOnly:!0})),t.call(this,e)||this}return u(e,t),e.prototype.createRenderer=function(){return new i.Z(this)},e}(o.Z)},7727:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var r,i=n(2865),o=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});const a=function(t){function e(e,n,r,i,o,a){var s=t.call(this,e,n,o)||this;return s.originalEvent=r,s.pixel_=null,s.coordinate_=null,s.dragging=void 0!==i&&i,s.activePointers=a,s}return o(e,t),Object.defineProperty(e.prototype,"pixel",{get:function(){return this.pixel_||(this.pixel_=this.map.getEventPixel(this.originalEvent)),this.pixel_},set:function(t){this.pixel_=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"coordinate",{get:function(){return this.coordinate_||(this.coordinate_=this.map.getCoordinateFromPixel(this.pixel)),this.coordinate_},set:function(t){this.coordinate_=t},enumerable:!1,configurable:!0}),e.prototype.preventDefault=function(){t.prototype.preventDefault.call(this),"preventDefault"in this.originalEvent&&this.originalEvent.preventDefault()},e.prototype.stopPropagation=function(){t.prototype.stopPropagation.call(this),"stopPropagation"in this.originalEvent&&this.originalEvent.stopPropagation()},e}(i.Z)},7146:(t,e,n)=>{"use strict";n.d(e,{Z:()=>f});var r,i=n(2001),o=n(7727),a=n(4161),s=n(1856),l=n(952),u=n(7119),c=n(6764),h=n(6534),p=n(8196),d=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});const f=function(t){function e(e,n){var r=t.call(this,e)||this;r.map_=e,r.clickTimeoutId_,r.emulateClicks_=!1,r.dragging_=!1,r.dragListenerKeys_=[],r.moveTolerance_=void 0===n?1:n,r.down_=null;var o=r.map_.getViewport();return r.activePointers_=[],r.trackedTouches_={},r.element_=o,r.pointerdownListenerKey_=(0,p.oL)(o,s.Z.POINTERDOWN,r.handlePointerDown_,r),r.originalPointerMoveEvent_,r.relayedListenerKey_=(0,p.oL)(o,s.Z.POINTERMOVE,r.relayMoveEvent_,r),r.boundHandleTouchMove_=r.handleTouchMove_.bind(r),r.element_.addEventListener(i.Z.TOUCHMOVE,r.boundHandleTouchMove_,!!u.bM&&{passive:!1}),r}return d(e,t),e.prototype.emulateClick_=function(t){var e=new o.Z(a.Z.CLICK,this.map_,t);this.dispatchEvent(e),void 0!==this.clickTimeoutId_?(clearTimeout(this.clickTimeoutId_),this.clickTimeoutId_=void 0,e=new o.Z(a.Z.DBLCLICK,this.map_,t),this.dispatchEvent(e)):this.clickTimeoutId_=setTimeout(function(){this.clickTimeoutId_=void 0;var e=new o.Z(a.Z.SINGLECLICK,this.map_,t);this.dispatchEvent(e)}.bind(this),250)},e.prototype.updateActivePointers_=function(t){var e=t,n=e.pointerId;if(e.type==a.Z.POINTERUP||e.type==a.Z.POINTERCANCEL){for(var r in delete this.trackedTouches_[n],this.trackedTouches_)if(this.trackedTouches_[r].target!==e.target){delete this.trackedTouches_[r];break}}else e.type!=a.Z.POINTERDOWN&&e.type!=a.Z.POINTERMOVE||(this.trackedTouches_[n]=e);this.activePointers_=(0,h.KX)(this.trackedTouches_)},e.prototype.handlePointerUp_=function(t){this.updateActivePointers_(t);var e=new o.Z(a.Z.POINTERUP,this.map_,t,void 0,void 0,this.activePointers_);this.dispatchEvent(e),this.emulateClicks_&&!e.defaultPrevented&&!this.dragging_&&this.isMouseActionButton_(t)&&this.emulateClick_(this.down_),0===this.activePointers_.length&&(this.dragListenerKeys_.forEach(p.bN),this.dragListenerKeys_.length=0,this.dragging_=!1,this.down_=null)},e.prototype.isMouseActionButton_=function(t){return 0===t.button},e.prototype.handlePointerDown_=function(t){this.emulateClicks_=0===this.activePointers_.length,this.updateActivePointers_(t);var e=new o.Z(a.Z.POINTERDOWN,this.map_,t,void 0,void 0,this.activePointers_);for(var n in this.dispatchEvent(e),this.down_={},t){var r=t[n];this.down_[n]="function"==typeof r?c.Zn:r}if(0===this.dragListenerKeys_.length){var i=this.map_.getOwnerDocument();this.dragListenerKeys_.push((0,p.oL)(i,a.Z.POINTERMOVE,this.handlePointerMove_,this),(0,p.oL)(i,a.Z.POINTERUP,this.handlePointerUp_,this),(0,p.oL)(this.element_,a.Z.POINTERCANCEL,this.handlePointerUp_,this)),this.element_.getRootNode&&this.element_.getRootNode()!==i&&this.dragListenerKeys_.push((0,p.oL)(this.element_.getRootNode(),a.Z.POINTERUP,this.handlePointerUp_,this))}},e.prototype.handlePointerMove_=function(t){if(this.isMoving_(t)){this.updateActivePointers_(t),this.dragging_=!0;var e=new o.Z(a.Z.POINTERDRAG,this.map_,t,this.dragging_,void 0,this.activePointers_);this.dispatchEvent(e)}},e.prototype.relayMoveEvent_=function(t){this.originalPointerMoveEvent_=t;var e=!(!this.down_||!this.isMoving_(t));this.dispatchEvent(new o.Z(a.Z.POINTERMOVE,this.map_,t,e))},e.prototype.handleTouchMove_=function(t){var e=this.originalPointerMoveEvent_;e&&!e.defaultPrevented||"boolean"==typeof t.cancelable&&!0!==t.cancelable||t.preventDefault()},e.prototype.isMoving_=function(t){return this.dragging_||Math.abs(t.clientX-this.down_.clientX)>this.moveTolerance_||Math.abs(t.clientY-this.down_.clientY)>this.moveTolerance_},e.prototype.disposeInternal=function(){this.relayedListenerKey_&&((0,p.bN)(this.relayedListenerKey_),this.relayedListenerKey_=null),this.element_.removeEventListener(i.Z.TOUCHMOVE,this.boundHandleTouchMove_),this.pointerdownListenerKey_&&((0,p.bN)(this.pointerdownListenerKey_),this.pointerdownListenerKey_=null),this.dragListenerKeys_.forEach(p.bN),this.dragListenerKeys_.length=0,this.element_=null,t.prototype.disposeInternal.call(this)},e}(l.Z)},4161:(t,e,n)=>{"use strict";n.d(e,{Z:()=>i});var r=n(2001);const i={SINGLECLICK:"singleclick",CLICK:r.Z.CLICK,DBLCLICK:r.Z.DBLCLICK,POINTERDRAG:"pointerdrag",POINTERMOVE:"pointermove",POINTERDOWN:"pointerdown",POINTERUP:"pointerup",POINTEROVER:"pointerover",POINTEROUT:"pointerout",POINTERENTER:"pointerenter",POINTERLEAVE:"pointerleave",POINTERCANCEL:"pointercancel"}},2865:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var r,i=n(9025),o=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});const a=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.map=n,i.frameState=void 0!==r?r:null,i}return o(e,t),e}(i.ZP)},2830:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});const r={POSTRENDER:"postrender",MOVESTART:"movestart",MOVEEND:"moveend",LOADSTART:"loadstart",LOADEND:"loadend"}},4179:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});const r={LAYERGROUP:"layergroup",SIZE:"size",TARGET:"target",VIEW:"view"}},6414:(t,e,n)=>{"use strict";n.d(e,{Z:()=>h});var r,i=n(9025),o=n(3606),a=n(7093),s=n(6534),l=n(2637),u=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),c=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.key=n,i.oldValue=r,i}return u(e,t),e}(i.ZP);const h=function(t){function e(e){var n=t.call(this)||this;return n.on,n.once,n.un,(0,l.sq)(n),n.values_=null,void 0!==e&&n.setProperties(e),n}return u(e,t),e.prototype.get=function(t){var e;return this.values_&&this.values_.hasOwnProperty(t)&&(e=this.values_[t]),e},e.prototype.getKeys=function(){return this.values_&&Object.keys(this.values_)||[]},e.prototype.getProperties=function(){return this.values_&&(0,s.f0)({},this.values_)||{}},e.prototype.hasProperties=function(){return!!this.values_},e.prototype.notify=function(t,e){var n;n="change:".concat(t),this.hasListener(n)&&this.dispatchEvent(new c(n,t,e)),n=o.Z.PROPERTYCHANGE,this.hasListener(n)&&this.dispatchEvent(new c(n,t,e))},e.prototype.addChangeListener=function(t,e){this.addEventListener("change:".concat(t),e)},e.prototype.removeChangeListener=function(t,e){this.removeEventListener("change:".concat(t),e)},e.prototype.set=function(t,e,n){var r=this.values_||(this.values_={});if(n)r[t]=e;else{var i=r[t];r[t]=e,i!==e&&this.notify(t,i)}},e.prototype.setProperties=function(t,e){for(var n in t)this.set(n,t[n],e)},e.prototype.applyProperties=function(t){t.values_&&(0,s.f0)(this.values_||(this.values_={}),t.values_)},e.prototype.unset=function(t,e){if(this.values_&&t in this.values_){var n=this.values_[t];delete this.values_[t],(0,s.xb)(this.values_)&&(this.values_=null),e||this.notify(t,n)}},e}(a.Z)},3606:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});const r={PROPERTYCHANGE:"propertychange"}},7093:(t,e,n)=>{"use strict";n.d(e,{Z:()=>u});var r,i=n(952),o=n(2001),a=n(8196),s=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),l=function(t){function e(){var e=t.call(this)||this;return e.on=e.onInternal,e.once=e.onceInternal,e.un=e.unInternal,e.revision_=0,e}return s(e,t),e.prototype.changed=function(){++this.revision_,this.dispatchEvent(o.Z.CHANGE)},e.prototype.getRevision=function(){return this.revision_},e.prototype.onInternal=function(t,e){if(Array.isArray(t)){for(var n=t.length,r=new Array(n),i=0;i<n;++i)r[i]=(0,a.oL)(this,t[i],e);return r}return(0,a.oL)(this,t,e)},e.prototype.onceInternal=function(t,e){var n;if(Array.isArray(t)){var r=t.length;n=new Array(r);for(var i=0;i<r;++i)n[i]=(0,a.Vx)(this,t[i],e)}else n=(0,a.Vx)(this,t,e);return e.ol_key=n,n},e.prototype.unInternal=function(t,e){var n=e.ol_key;if(n)!function(t){if(Array.isArray(t))for(var e=0,n=t.length;e<n;++e)(0,a.bN)(t[e]);else(0,a.bN)(t)}(n);else if(Array.isArray(t))for(var r=0,i=t.length;r<i;++r)this.removeEventListener(t[r],e);else this.removeEventListener(t,e)},e}(i.Z);l.prototype.on,l.prototype.once,l.prototype.un;const u=l},2270:(t,e,n)=>{"use strict";n.d(e,{Z:()=>m});var r,i=n(6414),o=n(2830),a=n(8055),s=n(6596),l=n(8196),u=n(9220),c=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),h="element",p="map",d="offset",f="position",g="positioning";const m=function(t){function e(e){var n=t.call(this)||this;n.on,n.once,n.un,n.options=e,n.id=e.id,n.insertFirst=void 0===e.insertFirst||e.insertFirst,n.stopEvent=void 0===e.stopEvent||e.stopEvent,n.element=document.createElement("div"),n.element.className=void 0!==e.className?e.className:"ol-overlay-container "+a.$A,n.element.style.position="absolute",n.element.style.pointerEvents="auto";var r=e.autoPan;return r&&"object"!=typeof r&&(r={animation:e.autoPanAnimation,margin:e.autoPanMargin}),n.autoPan=r||!1,n.rendered={transform_:"",visible:!0},n.mapPostrenderListenerKey=null,n.addChangeListener(h,n.handleElementChanged),n.addChangeListener(p,n.handleMapChanged),n.addChangeListener(d,n.handleOffsetChanged),n.addChangeListener(f,n.handlePositionChanged),n.addChangeListener(g,n.handlePositioningChanged),void 0!==e.element&&n.setElement(e.element),n.setOffset(void 0!==e.offset?e.offset:[0,0]),n.setPositioning(e.positioning||"top-left"),void 0!==e.position&&n.setPosition(e.position),n}return c(e,t),e.prototype.getElement=function(){return this.get(h)},e.prototype.getId=function(){return this.id},e.prototype.getMap=function(){return this.get(p)||null},e.prototype.getOffset=function(){return this.get(d)},e.prototype.getPosition=function(){return this.get(f)},e.prototype.getPositioning=function(){return this.get(g)},e.prototype.handleElementChanged=function(){(0,u.ep)(this.element);var t=this.getElement();t&&this.element.appendChild(t)},e.prototype.handleMapChanged=function(){this.mapPostrenderListenerKey&&((0,u.ZF)(this.element),(0,l.bN)(this.mapPostrenderListenerKey),this.mapPostrenderListenerKey=null);var t=this.getMap();if(t){this.mapPostrenderListenerKey=(0,l.oL)(t,o.Z.POSTRENDER,this.render,this),this.updatePixelPosition();var e=this.stopEvent?t.getOverlayContainerStopEvent():t.getOverlayContainer();this.insertFirst?e.insertBefore(this.element,e.childNodes[0]||null):e.appendChild(this.element),this.performAutoPan()}},e.prototype.render=function(){this.updatePixelPosition()},e.prototype.handleOffsetChanged=function(){this.updatePixelPosition()},e.prototype.handlePositionChanged=function(){this.updatePixelPosition(),this.performAutoPan()},e.prototype.handlePositioningChanged=function(){this.updatePixelPosition()},e.prototype.setElement=function(t){this.set(h,t)},e.prototype.setMap=function(t){this.set(p,t)},e.prototype.setOffset=function(t){this.set(d,t)},e.prototype.setPosition=function(t){this.set(f,t)},e.prototype.performAutoPan=function(){this.autoPan&&this.panIntoView(this.autoPan)},e.prototype.panIntoView=function(t){var e=this.getMap();if(e&&e.getTargetElement()&&this.get(f)){var n=this.getRect(e.getTargetElement(),e.getSize()),r=this.getElement(),i=this.getRect(r,[(0,u.iO)(r),(0,u.Pb)(r)]),o=t||{},a=void 0===o.margin?20:o.margin;if(!(0,s.r4)(n,i)){var l=i[0]-n[0],c=n[2]-i[2],h=i[1]-n[1],p=n[3]-i[3],d=[0,0];if(l<0?d[0]=l-a:c<0&&(d[0]=Math.abs(c)+a),h<0?d[1]=h-a:p<0&&(d[1]=Math.abs(p)+a),0!==d[0]||0!==d[1]){var g=e.getView().getCenterInternal(),m=e.getPixelFromCoordinateInternal(g);if(!m)return;var y=[m[0]+d[0],m[1]+d[1]],v=o.animation||{};e.getView().animateInternal({center:e.getCoordinateFromPixelInternal(y),duration:v.duration,easing:v.easing})}}}},e.prototype.getRect=function(t,e){var n=t.getBoundingClientRect(),r=n.left+window.pageXOffset,i=n.top+window.pageYOffset;return[r,i,r+e[0],i+e[1]]},e.prototype.setPositioning=function(t){this.set(g,t)},e.prototype.setVisible=function(t){this.rendered.visible!==t&&(this.element.style.display=t?"":"none",this.rendered.visible=t)},e.prototype.updatePixelPosition=function(){var t=this.getMap(),e=this.getPosition();if(t&&t.isRendered()&&e){var n=t.getPixelFromCoordinate(e),r=t.getSize();this.updateRenderedPosition(n,r)}else this.setVisible(!1)},e.prototype.updateRenderedPosition=function(t,e){var n=this.element.style,r=this.getOffset(),i=this.getPositioning();this.setVisible(!0);var o=Math.round(t[0]+r[0])+"px",a=Math.round(t[1]+r[1])+"px",s="0%",l="0%";"bottom-right"==i||"center-right"==i||"top-right"==i?s="-100%":"bottom-center"!=i&&"center-center"!=i&&"top-center"!=i||(s="-50%"),"bottom-left"==i||"bottom-center"==i||"bottom-right"==i?l="-100%":"center-left"!=i&&"center-center"!=i&&"center-right"!=i||(l="-50%");var u="translate(".concat(s,", ").concat(l,") translate(").concat(o,", ").concat(a,")");this.rendered.transform_!=u&&(this.rendered.transform_=u,n.transform=u,n.msTransform=u)},e.prototype.getOptions=function(){return this.options},e}(i.Z)},2353:(t,e,n)=>{"use strict";n.d(e,{Z:()=>G});var r,i=n(6414),o=n(3537),a=n(8523),s=n(2001),l=n(1716),u=n(1414),c=n(9025),h=n(3606),p=n(9162),d=n(6534),f=n(6596),g=n(2637),m=n(8196),y=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),v=function(t){function e(e,n){var r=t.call(this,e)||this;return r.layer=n,r}return y(e,t),e}(c.ZP),_="layers";const b=function(t){function e(e){var n=this,r=e||{},i=(0,d.f0)({},r);delete i.layers;var a=r.layers;return(n=t.call(this,i)||this).on,n.once,n.un,n.layersListenerKeys_=[],n.listenerKeys_={},n.addChangeListener(_,n.handleLayersChanged_),a?Array.isArray(a)?a=new o.Z(a.slice(),{unique:!0}):(0,p.h)("function"==typeof a.getArray,43):a=new o.Z(void 0,{unique:!0}),n.setLayers(a),n}return y(e,t),e.prototype.handleLayerChange_=function(){this.changed()},e.prototype.handleLayersChanged_=function(){this.layersListenerKeys_.forEach(m.bN),this.layersListenerKeys_.length=0;var t=this.getLayers();for(var e in this.layersListenerKeys_.push((0,m.oL)(t,a.Z.ADD,this.handleLayersAdd_,this),(0,m.oL)(t,a.Z.REMOVE,this.handleLayersRemove_,this)),this.listenerKeys_)this.listenerKeys_[e].forEach(m.bN);(0,d.ZH)(this.listenerKeys_);for(var n=t.getArray(),r=0,i=n.length;r<i;r++){var o=n[r];this.registerLayerListeners_(o),this.dispatchEvent(new v("addlayer",o))}this.changed()},e.prototype.registerLayerListeners_=function(t){var n=[(0,m.oL)(t,h.Z.PROPERTYCHANGE,this.handleLayerChange_,this),(0,m.oL)(t,s.Z.CHANGE,this.handleLayerChange_,this)];t instanceof e&&n.push((0,m.oL)(t,"addlayer",this.handleLayerGroupAdd_,this),(0,m.oL)(t,"removelayer",this.handleLayerGroupRemove_,this)),this.listenerKeys_[(0,g.sq)(t)]=n},e.prototype.handleLayerGroupAdd_=function(t){this.dispatchEvent(new v("addlayer",t.layer))},e.prototype.handleLayerGroupRemove_=function(t){this.dispatchEvent(new v("removelayer",t.layer))},e.prototype.handleLayersAdd_=function(t){var e=t.element;this.registerLayerListeners_(e),this.dispatchEvent(new v("addlayer",e)),this.changed()},e.prototype.handleLayersRemove_=function(t){var e=t.element,n=(0,g.sq)(e);this.listenerKeys_[n].forEach(m.bN),delete this.listenerKeys_[n],this.dispatchEvent(new v("removelayer",e)),this.changed()},e.prototype.getLayers=function(){return this.get(_)},e.prototype.setLayers=function(t){var e=this.getLayers();if(e)for(var n=e.getArray(),r=0,i=n.length;r<i;++r)this.dispatchEvent(new v("removelayer",n[r]));this.set(_,t)},e.prototype.getLayersArray=function(t){var e=void 0!==t?t:[];return this.getLayers().forEach((function(t){t.getLayersArray(e)})),e},e.prototype.getLayerStatesArray=function(t){var e=void 0!==t?t:[],n=e.length;this.getLayers().forEach((function(t){t.getLayerStatesArray(e)}));var r=this.getLayerState(),i=r.zIndex;t||void 0!==r.zIndex||(i=0);for(var o=n,a=e.length;o<a;o++){var s=e[o];s.opacity*=r.opacity,s.visible=s.visible&&r.visible,s.maxResolution=Math.min(s.maxResolution,r.maxResolution),s.minResolution=Math.max(s.minResolution,r.minResolution),s.minZoom=Math.max(s.minZoom,r.minZoom),s.maxZoom=Math.min(s.maxZoom,r.maxZoom),void 0!==r.extent&&(void 0!==s.extent?s.extent=(0,f.Ed)(s.extent,r.extent):s.extent=r.extent),void 0===s.zIndex&&(s.zIndex=i)}return e},e.prototype.getSourceState=function(){return"ready"},e}(u.Z);var w=n(7727),x=n(7146),S=n(4161),C=n(2865),E=n(2830),k=n(4179),A=n(1856),P=n(1900),T=n(4111),M=n(6087),O=n(6270),R=n(7119),I=n(6764),L=n(1091),F=n(6162),N=n(8691),D=n(9220),z=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function Z(t){t instanceof l.Z?t.setMapInternal(null):t instanceof b&&t.getLayers().forEach(Z)}function j(t,e){if(t instanceof l.Z)t.setMapInternal(e);else if(t instanceof b)for(var n=t.getLayers().getArray(),r=0,i=n.length;r<i;++r)j(n[r],e)}const G=function(t){function e(e){var n=t.call(this)||this;n.on,n.once,n.un;var r=function(t){var e=null;void 0!==t.keyboardEventTarget&&(e="string"==typeof t.keyboardEventTarget?document.getElementById(t.keyboardEventTarget):t.keyboardEventTarget);var n,r,i,a={},s=t.layers&&"function"==typeof t.layers.getLayers?t.layers:new b({layers:t.layers});return a[k.Z.LAYERGROUP]=s,a[k.Z.TARGET]=t.target,a[k.Z.VIEW]=t.view instanceof M.ZP?t.view:new M.ZP,void 0!==t.controls&&(Array.isArray(t.controls)?n=new o.Z(t.controls.slice()):((0,p.h)("function"==typeof t.controls.getArray,47),n=t.controls)),void 0!==t.interactions&&(Array.isArray(t.interactions)?r=new o.Z(t.interactions.slice()):((0,p.h)("function"==typeof t.interactions.getArray,48),r=t.interactions)),void 0!==t.overlays?Array.isArray(t.overlays)?i=new o.Z(t.overlays.slice()):((0,p.h)("function"==typeof t.overlays.getArray,49),i=t.overlays):i=new o.Z,{controls:n,interactions:r,keyboardEventTarget:e,overlays:i,values:a}}(e);n.renderComplete_,n.loaded_=!0,n.boundHandleBrowserEvent_=n.handleBrowserEvent.bind(n),n.maxTilesLoading_=void 0!==e.maxTilesLoading?e.maxTilesLoading:16,n.pixelRatio_=void 0!==e.pixelRatio?e.pixelRatio:R.MP,n.postRenderTimeoutHandle_,n.animationDelayKey_,n.animationDelay_=function(){this.animationDelayKey_=void 0,this.renderFrame_(Date.now())}.bind(n),n.coordinateToPixelTransform_=(0,L.Ue)(),n.pixelToCoordinateTransform_=(0,L.Ue)(),n.frameIndex_=0,n.frameState_=null,n.previousExtent_=null,n.viewPropertyListenerKey_=null,n.viewChangeListenerKey_=null,n.layerGroupPropertyListenerKeys_=null,n.viewport_=document.createElement("div"),n.viewport_.className="ol-viewport"+("ontouchstart"in window?" ol-touch":""),n.viewport_.style.position="relative",n.viewport_.style.overflow="hidden",n.viewport_.style.width="100%",n.viewport_.style.height="100%",n.overlayContainer_=document.createElement("div"),n.overlayContainer_.style.position="absolute",n.overlayContainer_.style.zIndex="0",n.overlayContainer_.style.width="100%",n.overlayContainer_.style.height="100%",n.overlayContainer_.style.pointerEvents="none",n.overlayContainer_.className="ol-overlaycontainer",n.viewport_.appendChild(n.overlayContainer_),n.overlayContainerStopEvent_=document.createElement("div"),n.overlayContainerStopEvent_.style.position="absolute",n.overlayContainerStopEvent_.style.zIndex="0",n.overlayContainerStopEvent_.style.width="100%",n.overlayContainerStopEvent_.style.height="100%",n.overlayContainerStopEvent_.style.pointerEvents="none",n.overlayContainerStopEvent_.className="ol-overlaycontainer-stopevent",n.viewport_.appendChild(n.overlayContainerStopEvent_),n.mapBrowserEventHandler_=null,n.moveTolerance_=e.moveTolerance,n.keyboardEventTarget_=r.keyboardEventTarget,n.targetChangeHandlerKeys_=null,n.controls=r.controls||new o.Z,n.interactions=r.interactions||new o.Z,n.overlays_=r.overlays,n.overlayIdIndex_={},n.renderer_=null,n.postRenderFunctions_=[],n.tileQueue_=new T.Z(n.getTilePriority.bind(n),n.handleTileChange_.bind(n)),n.addChangeListener(k.Z.LAYERGROUP,n.handleLayerGroupChanged_),n.addChangeListener(k.Z.VIEW,n.handleViewChanged_),n.addChangeListener(k.Z.SIZE,n.handleSizeChanged_),n.addChangeListener(k.Z.TARGET,n.handleTargetChanged_),n.setProperties(r.values);var i=n;return!e.view||e.view instanceof M.ZP||e.view.then((function(t){i.setView(new M.ZP(t))})),n.controls.addEventListener(a.Z.ADD,function(t){t.element.setMap(this)}.bind(n)),n.controls.addEventListener(a.Z.REMOVE,function(t){t.element.setMap(null)}.bind(n)),n.interactions.addEventListener(a.Z.ADD,function(t){t.element.setMap(this)}.bind(n)),n.interactions.addEventListener(a.Z.REMOVE,function(t){t.element.setMap(null)}.bind(n)),n.overlays_.addEventListener(a.Z.ADD,function(t){this.addOverlayInternal_(t.element)}.bind(n)),n.overlays_.addEventListener(a.Z.REMOVE,function(t){var e=t.element.getId();void 0!==e&&delete this.overlayIdIndex_[e.toString()],t.element.setMap(null)}.bind(n)),n.controls.forEach(function(t){t.setMap(this)}.bind(n)),n.interactions.forEach(function(t){t.setMap(this)}.bind(n)),n.overlays_.forEach(n.addOverlayInternal_.bind(n)),n}return z(e,t),e.prototype.createRenderer=function(){throw new Error("Use a map type that has a createRenderer method")},e.prototype.addControl=function(t){this.getControls().push(t)},e.prototype.addInteraction=function(t){this.getInteractions().push(t)},e.prototype.addLayer=function(t){this.getLayerGroup().getLayers().push(t)},e.prototype.handleLayerAdd_=function(t){j(t.layer,this)},e.prototype.addOverlay=function(t){this.getOverlays().push(t)},e.prototype.addOverlayInternal_=function(t){var e=t.getId();void 0!==e&&(this.overlayIdIndex_[e.toString()]=t),t.setMap(this)},e.prototype.disposeInternal=function(){this.controls.clear(),this.interactions.clear(),this.overlays_.clear(),this.setTarget(null),t.prototype.disposeInternal.call(this)},e.prototype.forEachFeatureAtPixel=function(t,e,n){if(this.frameState_&&this.renderer_){var r=this.getCoordinateFromPixelInternal(t),i=void 0!==(n=void 0!==n?n:{}).hitTolerance?n.hitTolerance:0,o=void 0!==n.layerFilter?n.layerFilter:I.uX,a=!1!==n.checkWrapped;return this.renderer_.forEachFeatureAtCoordinate(r,this.frameState_,i,a,e,null,o,null)}},e.prototype.getFeaturesAtPixel=function(t,e){var n=[];return this.forEachFeatureAtPixel(t,(function(t){n.push(t)}),e),n},e.prototype.getAllLayers=function(){var t=[];return function e(n){n.forEach((function(n){n instanceof b?e(n.getLayers()):t.push(n)}))}(this.getLayers()),t},e.prototype.forEachLayerAtPixel=function(t,e,n){if(this.frameState_&&this.renderer_){var r=n||{},i=void 0!==r.hitTolerance?r.hitTolerance:0,o=r.layerFilter||I.uX;return this.renderer_.forEachLayerAtPixel(t,this.frameState_,i,e,o)}},e.prototype.hasFeatureAtPixel=function(t,e){if(!this.frameState_||!this.renderer_)return!1;var n=this.getCoordinateFromPixelInternal(t),r=void 0!==(e=void 0!==e?e:{}).layerFilter?e.layerFilter:I.uX,i=void 0!==e.hitTolerance?e.hitTolerance:0,o=!1!==e.checkWrapped;return this.renderer_.hasFeatureAtCoordinate(n,this.frameState_,i,o,r,null)},e.prototype.getEventCoordinate=function(t){return this.getCoordinateFromPixel(this.getEventPixel(t))},e.prototype.getEventCoordinateInternal=function(t){return this.getCoordinateFromPixelInternal(this.getEventPixel(t))},e.prototype.getEventPixel=function(t){var e=this.viewport_.getBoundingClientRect(),n="changedTouches"in t?t.changedTouches[0]:t;return[n.clientX-e.left,n.clientY-e.top]},e.prototype.getTarget=function(){return this.get(k.Z.TARGET)},e.prototype.getTargetElement=function(){var t=this.getTarget();return void 0!==t?"string"==typeof t?document.getElementById(t):t:null},e.prototype.getCoordinateFromPixel=function(t){return(0,F.toUserCoordinate)(this.getCoordinateFromPixelInternal(t),this.getView().getProjection())},e.prototype.getCoordinateFromPixelInternal=function(t){var e=this.frameState_;return e?(0,L.nn)(e.pixelToCoordinateTransform,t.slice()):null},e.prototype.getControls=function(){return this.controls},e.prototype.getOverlays=function(){return this.overlays_},e.prototype.getOverlayById=function(t){var e=this.overlayIdIndex_[t.toString()];return void 0!==e?e:null},e.prototype.getInteractions=function(){return this.interactions},e.prototype.getLayerGroup=function(){return this.get(k.Z.LAYERGROUP)},e.prototype.setLayers=function(t){var e=this.getLayerGroup();if(t instanceof o.Z)e.setLayers(t);else{var n=e.getLayers();n.clear(),n.extend(t)}},e.prototype.getLayers=function(){return this.getLayerGroup().getLayers()},e.prototype.getLoadingOrNotReady=function(){for(var t=this.getLayerGroup().getLayerStatesArray(),e=0,n=t.length;e<n;++e){var r=t[e];if(r.visible){var i=r.layer.getRenderer();if(i&&!i.ready)return!0;var o=r.layer.getSource();if(o&&o.loading)return!0}}return!1},e.prototype.getPixelFromCoordinate=function(t){var e=(0,F.fromUserCoordinate)(t,this.getView().getProjection());return this.getPixelFromCoordinateInternal(e)},e.prototype.getPixelFromCoordinateInternal=function(t){var e=this.frameState_;return e?(0,L.nn)(e.coordinateToPixelTransform,t.slice(0,2)):null},e.prototype.getRenderer=function(){return this.renderer_},e.prototype.getSize=function(){return this.get(k.Z.SIZE)},e.prototype.getView=function(){return this.get(k.Z.VIEW)},e.prototype.getViewport=function(){return this.viewport_},e.prototype.getOverlayContainer=function(){return this.overlayContainer_},e.prototype.getOverlayContainerStopEvent=function(){return this.overlayContainerStopEvent_},e.prototype.getOwnerDocument=function(){var t=this.getTargetElement();return t?t.ownerDocument:document},e.prototype.getTilePriority=function(t,e,n,r){return(0,T.R)(this.frameState_,t,e,n,r)},e.prototype.handleBrowserEvent=function(t,e){var n=e||t.type,r=new w.Z(n,this,t);this.handleMapBrowserEvent(r)},e.prototype.handleMapBrowserEvent=function(t){if(this.frameState_){var e=t.originalEvent,n=e.type;if(n===A.Z.POINTERDOWN||n===s.Z.WHEEL||n===s.Z.KEYDOWN){var r=this.getOwnerDocument(),i=this.viewport_.getRootNode?this.viewport_.getRootNode():r,o=e.target;if(this.overlayContainerStopEvent_.contains(o)||!(i===r?r.documentElement:i).contains(o))return}if(t.frameState=this.frameState_,!1!==this.dispatchEvent(t))for(var a=this.getInteractions().getArray().slice(),l=a.length-1;l>=0;l--){var u=a[l];if(u.getMap()===this&&u.getActive()&&this.getTargetElement()&&(!u.handleEvent(t)||t.propagationStopped))break}}},e.prototype.handlePostRender=function(){var t=this.frameState_,e=this.tileQueue_;if(!e.isEmpty()){var n=this.maxTilesLoading_,r=n;if(t){var i=t.viewHints;if(i[O.Z.ANIMATING]||i[O.Z.INTERACTING]){var o=Date.now()-t.time>8;n=o?0:8,r=o?0:2}}e.getTilesLoading()<n&&(e.reprioritize(),e.loadMoreTiles(n,r))}t&&this.renderer_&&!t.animate&&(!0===this.renderComplete_?(this.hasListener(P.Z.RENDERCOMPLETE)&&this.renderer_.dispatchRenderEvent(P.Z.RENDERCOMPLETE,t),!1===this.loaded_&&(this.loaded_=!0,this.dispatchEvent(new C.Z(E.Z.LOADEND,this,t)))):!0===this.loaded_&&(this.loaded_=!1,this.dispatchEvent(new C.Z(E.Z.LOADSTART,this,t))));for(var a=this.postRenderFunctions_,s=0,l=a.length;s<l;++s)a[s](this,t);a.length=0},e.prototype.handleSizeChanged_=function(){this.getView()&&!this.getView().getAnimating()&&this.getView().resolveConstraints(0),this.render()},e.prototype.handleTargetChanged_=function(){if(this.mapBrowserEventHandler_){for(var t=0,e=this.targetChangeHandlerKeys_.length;t<e;++t)(0,m.bN)(this.targetChangeHandlerKeys_[t]);this.targetChangeHandlerKeys_=null,this.viewport_.removeEventListener(s.Z.CONTEXTMENU,this.boundHandleBrowserEvent_),this.viewport_.removeEventListener(s.Z.WHEEL,this.boundHandleBrowserEvent_),this.mapBrowserEventHandler_.dispose(),this.mapBrowserEventHandler_=null,(0,D.ZF)(this.viewport_)}var n=this.getTargetElement();if(n){for(var r in n.appendChild(this.viewport_),this.renderer_||(this.renderer_=this.createRenderer()),this.mapBrowserEventHandler_=new x.Z(this,this.moveTolerance_),S.Z)this.mapBrowserEventHandler_.addEventListener(S.Z[r],this.handleMapBrowserEvent.bind(this));this.viewport_.addEventListener(s.Z.CONTEXTMENU,this.boundHandleBrowserEvent_,!1),this.viewport_.addEventListener(s.Z.WHEEL,this.boundHandleBrowserEvent_,!!R.bM&&{passive:!1});var i=this.getOwnerDocument().defaultView,o=this.keyboardEventTarget_?this.keyboardEventTarget_:n;this.targetChangeHandlerKeys_=[(0,m.oL)(o,s.Z.KEYDOWN,this.handleBrowserEvent,this),(0,m.oL)(o,s.Z.KEYPRESS,this.handleBrowserEvent,this),(0,m.oL)(i,s.Z.RESIZE,this.updateSize,this)]}else this.renderer_&&(clearTimeout(this.postRenderTimeoutHandle_),this.postRenderTimeoutHandle_=void 0,this.postRenderFunctions_.length=0,this.renderer_.dispose(),this.renderer_=null),this.animationDelayKey_&&(cancelAnimationFrame(this.animationDelayKey_),this.animationDelayKey_=void 0);this.updateSize()},e.prototype.handleTileChange_=function(){this.render()},e.prototype.handleViewPropertyChanged_=function(){this.render()},e.prototype.handleViewChanged_=function(){this.viewPropertyListenerKey_&&((0,m.bN)(this.viewPropertyListenerKey_),this.viewPropertyListenerKey_=null),this.viewChangeListenerKey_&&((0,m.bN)(this.viewChangeListenerKey_),this.viewChangeListenerKey_=null);var t=this.getView();t&&(this.updateViewportSize_(),this.viewPropertyListenerKey_=(0,m.oL)(t,h.Z.PROPERTYCHANGE,this.handleViewPropertyChanged_,this),this.viewChangeListenerKey_=(0,m.oL)(t,s.Z.CHANGE,this.handleViewPropertyChanged_,this),t.resolveConstraints(0)),this.render()},e.prototype.handleLayerGroupChanged_=function(){this.layerGroupPropertyListenerKeys_&&(this.layerGroupPropertyListenerKeys_.forEach(m.bN),this.layerGroupPropertyListenerKeys_=null);var t=this.getLayerGroup();t&&(this.handleLayerAdd_(new v("addlayer",t)),this.layerGroupPropertyListenerKeys_=[(0,m.oL)(t,h.Z.PROPERTYCHANGE,this.render,this),(0,m.oL)(t,s.Z.CHANGE,this.render,this),(0,m.oL)(t,"addlayer",this.handleLayerAdd_,this),(0,m.oL)(t,"removelayer",this.handleLayerRemove_,this)]),this.render()},e.prototype.isRendered=function(){return!!this.frameState_},e.prototype.renderSync=function(){this.animationDelayKey_&&cancelAnimationFrame(this.animationDelayKey_),this.animationDelay_()},e.prototype.redrawText=function(){for(var t=this.getLayerGroup().getLayerStatesArray(),e=0,n=t.length;e<n;++e){var r=t[e].layer;r.hasRenderer()&&r.getRenderer().handleFontsChanged()}},e.prototype.render=function(){this.renderer_&&void 0===this.animationDelayKey_&&(this.animationDelayKey_=requestAnimationFrame(this.animationDelay_))},e.prototype.removeControl=function(t){return this.getControls().remove(t)},e.prototype.removeInteraction=function(t){return this.getInteractions().remove(t)},e.prototype.removeLayer=function(t){return this.getLayerGroup().getLayers().remove(t)},e.prototype.handleLayerRemove_=function(t){Z(t.layer)},e.prototype.removeOverlay=function(t){return this.getOverlays().remove(t)},e.prototype.renderFrame_=function(t){var e=this,n=this.getSize(),r=this.getView(),i=this.frameState_,o=null;if(void 0!==n&&(0,N.py)(n)&&r&&r.isDef()){var a=r.getHints(this.frameState_?this.frameState_.viewHints:void 0),s=r.getState();if(o={animate:!1,coordinateToPixelTransform:this.coordinateToPixelTransform_,declutterTree:null,extent:(0,f.p8)(s.center,s.resolution,s.rotation,n),index:this.frameIndex_++,layerIndex:0,layerStatesArray:this.getLayerGroup().getLayerStatesArray(),pixelRatio:this.pixelRatio_,pixelToCoordinateTransform:this.pixelToCoordinateTransform_,postRenderFunctions:[],size:n,tileQueue:this.tileQueue_,time:t,usedTiles:{},viewState:s,viewHints:a,wantedTiles:{},mapId:(0,g.sq)(this),renderTargets:{}},s.nextCenter&&s.nextResolution){var l=isNaN(s.nextRotation)?s.rotation:s.nextRotation;o.nextExtent=(0,f.p8)(s.nextCenter,s.nextResolution,l,n)}}this.frameState_=o,this.renderer_.renderFrame(o),o&&(o.animate&&this.render(),Array.prototype.push.apply(this.postRenderFunctions_,o.postRenderFunctions),i&&(!this.previousExtent_||!(0,f.xb)(this.previousExtent_)&&!(0,f.fS)(o.extent,this.previousExtent_))&&(this.dispatchEvent(new C.Z(E.Z.MOVESTART,this,i)),this.previousExtent_=(0,f.YN)(this.previousExtent_)),this.previousExtent_&&!o.viewHints[O.Z.ANIMATING]&&!o.viewHints[O.Z.INTERACTING]&&!(0,f.fS)(o.extent,this.previousExtent_)&&(this.dispatchEvent(new C.Z(E.Z.MOVEEND,this,o)),(0,f.d9)(o.extent,this.previousExtent_))),this.dispatchEvent(new C.Z(E.Z.POSTRENDER,this,o)),this.renderComplete_=this.hasListener(E.Z.LOADSTART)||this.hasListener(E.Z.LOADEND)||this.hasListener(P.Z.RENDERCOMPLETE)?!this.tileQueue_.getTilesLoading()&&!this.tileQueue_.getCount()&&!this.getLoadingOrNotReady():void 0,this.postRenderTimeoutHandle_||(this.postRenderTimeoutHandle_=setTimeout((function(){e.postRenderTimeoutHandle_=void 0,e.handlePostRender()}),0))},e.prototype.setLayerGroup=function(t){var e=this.getLayerGroup();e&&this.handleLayerRemove_(new v("removelayer",e)),this.set(k.Z.LAYERGROUP,t)},e.prototype.setSize=function(t){this.set(k.Z.SIZE,t)},e.prototype.setTarget=function(t){this.set(k.Z.TARGET,t)},e.prototype.setView=function(t){if(!t||t instanceof M.ZP)this.set(k.Z.VIEW,t);else{this.set(k.Z.VIEW,new M.ZP);var e=this;t.then((function(t){e.setView(new M.ZP(t))}))}},e.prototype.updateSize=function(){var t=this.getTargetElement(),e=void 0;if(t){var n=getComputedStyle(t),r=t.offsetWidth-parseFloat(n.borderLeftWidth)-parseFloat(n.paddingLeft)-parseFloat(n.paddingRight)-parseFloat(n.borderRightWidth),i=t.offsetHeight-parseFloat(n.borderTopWidth)-parseFloat(n.paddingTop)-parseFloat(n.paddingBottom)-parseFloat(n.borderBottomWidth);isNaN(r)||isNaN(i)||(e=[r,i],!(0,N.py)(e)&&(t.offsetWidth||t.offsetHeight||t.getClientRects().length)&&console.warn("No map visible because the map container's width or height are 0."))}this.setSize(e),this.updateViewportSize_()},e.prototype.updateViewportSize_=function(){var t=this.getView();if(t){var e=void 0,n=getComputedStyle(this.viewport_);n.width&&n.height&&(e=[parseInt(n.width,10),parseInt(n.height,10)]),t.setViewportSize(e)}},e}(i.Z)},5069:(t,e,n)=>{"use strict";n.d(e,{Z:()=>c});var r,i=n(952),o=n(2001),a=n(3584),s=n(2637),l=n(7898),u=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});const c=function(t){function e(e,n,r){var i=t.call(this)||this,o=r||{};return i.tileCoord=e,i.state=n,i.interimTile=null,i.key="",i.transition_=void 0===o.transition?250:o.transition,i.transitionStarts_={},i.interpolate=!!o.interpolate,i}return u(e,t),e.prototype.changed=function(){this.dispatchEvent(o.Z.CHANGE)},e.prototype.release=function(){},e.prototype.getKey=function(){return this.key+"/"+this.tileCoord},e.prototype.getInterimTile=function(){if(!this.interimTile)return this;var t=this.interimTile;do{if(t.getState()==a.Z.LOADED)return this.transition_=0,t;t=t.interimTile}while(t);return this},e.prototype.refreshInterimChain=function(){if(this.interimTile){var t=this.interimTile,e=this;do{if(t.getState()==a.Z.LOADED){t.interimTile=null;break}t.getState()==a.Z.LOADING?e=t:t.getState()==a.Z.IDLE?e.interimTile=t.interimTile:e=t,t=e.interimTile}while(t)}},e.prototype.getTileCoord=function(){return this.tileCoord},e.prototype.getState=function(){return this.state},e.prototype.setState=function(t){if(this.state!==a.Z.ERROR&&this.state>t)throw new Error("Tile load sequence violation");this.state=t,this.changed()},e.prototype.load=function(){(0,s.O3)()},e.prototype.getAlpha=function(t,e){if(!this.transition_)return 1;var n=this.transitionStarts_[t];if(n){if(-1===n)return 1}else n=e,this.transitionStarts_[t]=n;var r=e-n+1e3/60;return r>=this.transition_?1:(0,l.YQ)(r/this.transition_)},e.prototype.inTransition=function(t){return!!this.transition_&&-1!==this.transitionStarts_[t]},e.prototype.endTransition=function(t){this.transition_&&(this.transitionStarts_[t]=-1)},e}(i.Z)},1403:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r,i=n(8172),o=n(9465),a=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});const s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),e.prototype.expireCache=function(t){for(;this.canExpireCache()&&!(this.peekLast().getKey()in t);)this.pop().release()},e.prototype.pruneExceptNewestZ=function(){if(0!==this.getCount()){var t=this.peekFirstKey(),e=(0,o.Ul)(t)[0];this.forEach(function(t){t.tileCoord[0]!==e&&(this.remove((0,o.km)(t.tileCoord)),t.release())}.bind(this))}},e}(i.Z)},4111:(t,e,n)=>{"use strict";n.d(e,{Z:()=>h,R:()=>p});var r=n(2001),i=n(9162),o=n(6534),a=1/0;const s=function(){function t(t,e){this.priorityFunction_=t,this.keyFunction_=e,this.elements_=[],this.priorities_=[],this.queuedElements_={}}return t.prototype.clear=function(){this.elements_.length=0,this.priorities_.length=0,(0,o.ZH)(this.queuedElements_)},t.prototype.dequeue=function(){var t=this.elements_,e=this.priorities_,n=t[0];1==t.length?(t.length=0,e.length=0):(t[0]=t.pop(),e[0]=e.pop(),this.siftUp_(0));var r=this.keyFunction_(n);return delete this.queuedElements_[r],n},t.prototype.enqueue=function(t){(0,i.h)(!(this.keyFunction_(t)in this.queuedElements_),31);var e=this.priorityFunction_(t);return e!=a&&(this.elements_.push(t),this.priorities_.push(e),this.queuedElements_[this.keyFunction_(t)]=!0,this.siftDown_(0,this.elements_.length-1),!0)},t.prototype.getCount=function(){return this.elements_.length},t.prototype.getLeftChildIndex_=function(t){return 2*t+1},t.prototype.getRightChildIndex_=function(t){return 2*t+2},t.prototype.getParentIndex_=function(t){return t-1>>1},t.prototype.heapify_=function(){var t;for(t=(this.elements_.length>>1)-1;t>=0;t--)this.siftUp_(t)},t.prototype.isEmpty=function(){return 0===this.elements_.length},t.prototype.isKeyQueued=function(t){return t in this.queuedElements_},t.prototype.isQueued=function(t){return this.isKeyQueued(this.keyFunction_(t))},t.prototype.siftUp_=function(t){for(var e=this.elements_,n=this.priorities_,r=e.length,i=e[t],o=n[t],a=t;t<r>>1;){var s=this.getLeftChildIndex_(t),l=this.getRightChildIndex_(t),u=l<r&&n[l]<n[s]?l:s;e[t]=e[u],n[t]=n[u],t=u}e[t]=i,n[t]=o,this.siftDown_(a,t)},t.prototype.siftDown_=function(t,e){for(var n=this.elements_,r=this.priorities_,i=n[e],o=r[e];e>t;){var a=this.getParentIndex_(e);if(!(r[a]>o))break;n[e]=n[a],r[e]=r[a],e=a}n[e]=i,r[e]=o},t.prototype.reprioritize=function(){var t,e,n,r=this.priorityFunction_,i=this.elements_,o=this.priorities_,s=0,l=i.length;for(e=0;e<l;++e)(n=r(t=i[e]))==a?delete this.queuedElements_[this.keyFunction_(t)]:(o[s]=n,i[s++]=t);i.length=s,o.length=s,this.heapify_()},t}();var l,u=n(3584),c=(l=function(t,e){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},l(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}l(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});const h=function(t){function e(e,n){var r=t.call(this,(function(t){return e.apply(null,t)}),(function(t){return t[0].getKey()}))||this;return r.boundHandleTileChange_=r.handleTileChange.bind(r),r.tileChangeCallback_=n,r.tilesLoading_=0,r.tilesLoadingKeys_={},r}return c(e,t),e.prototype.enqueue=function(e){var n=t.prototype.enqueue.call(this,e);return n&&e[0].addEventListener(r.Z.CHANGE,this.boundHandleTileChange_),n},e.prototype.getTilesLoading=function(){return this.tilesLoading_},e.prototype.handleTileChange=function(t){var e=t.target,n=e.getState();if(n===u.Z.LOADED||n===u.Z.ERROR||n===u.Z.EMPTY){e.removeEventListener(r.Z.CHANGE,this.boundHandleTileChange_);var i=e.getKey();i in this.tilesLoadingKeys_&&(delete this.tilesLoadingKeys_[i],--this.tilesLoading_),this.tileChangeCallback_()}},e.prototype.loadMoreTiles=function(t,e){for(var n,r,i=0;this.tilesLoading_<t&&i<e&&this.getCount()>0;)r=(n=this.dequeue()[0]).getKey(),n.getState()!==u.Z.IDLE||r in this.tilesLoadingKeys_||(this.tilesLoadingKeys_[r]=!0,++this.tilesLoading_,++i,n.load())},e}(s);function p(t,e,n,r,i){if(!t||!(n in t.wantedTiles))return a;if(!t.wantedTiles[n][e.getKey()])return a;var o=t.viewState.center,s=r[0]-o[0],l=r[1]-o[1];return 65536*Math.log(i)+Math.sqrt(s*s+l*l)/i}},6462:(t,e,n)=>{"use strict";n.d(e,{T:()=>i,Z:()=>o});var r=function(){function t(t,e,n,r){this.minX=t,this.maxX=e,this.minY=n,this.maxY=r}return t.prototype.contains=function(t){return this.containsXY(t[1],t[2])},t.prototype.containsTileRange=function(t){return this.minX<=t.minX&&t.maxX<=this.maxX&&this.minY<=t.minY&&t.maxY<=this.maxY},t.prototype.containsXY=function(t,e){return this.minX<=t&&t<=this.maxX&&this.minY<=e&&e<=this.maxY},t.prototype.equals=function(t){return this.minX==t.minX&&this.minY==t.minY&&this.maxX==t.maxX&&this.maxY==t.maxY},t.prototype.extend=function(t){t.minX<this.minX&&(this.minX=t.minX),t.maxX>this.maxX&&(this.maxX=t.maxX),t.minY<this.minY&&(this.minY=t.minY),t.maxY>this.maxY&&(this.maxY=t.maxY)},t.prototype.getHeight=function(){return this.maxY-this.minY+1},t.prototype.getSize=function(){return[this.getWidth(),this.getHeight()]},t.prototype.getWidth=function(){return this.maxX-this.minX+1},t.prototype.intersects=function(t){return this.minX<=t.maxX&&this.maxX>=t.minX&&this.minY<=t.maxY&&this.maxY>=t.minY},t}();function i(t,e,n,i,o){return void 0!==o?(o.minX=t,o.maxX=e,o.minY=n,o.maxY=i,o):new r(t,e,n,i)}const o=r},3584:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});const r={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4}},291:(t,e,n)=>{"use strict";n.d(e,{Z:()=>u});var r,i=n(5069),o=n(9220),a=n(2637),s=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),l=[];const u=function(t){function e(e,n,r,i){var o=t.call(this,e,n,{transition:0})||this;return o.context_={},o.executorGroups={},o.declutterExecutorGroups={},o.loadingSourceTiles=0,o.hitDetectionImageData={},o.replayState_={},o.sourceTiles=[],o.errorTileKeys={},o.wantedResolution,o.getSourceTiles=i.bind(void 0,o),o.wrappedTileCoord=r,o}return s(e,t),e.prototype.getContext=function(t){var e=(0,a.sq)(t);return e in this.context_||(this.context_[e]=(0,o.E4)(1,1,l)),this.context_[e]},e.prototype.hasContext=function(t){return(0,a.sq)(t)in this.context_},e.prototype.getImage=function(t){return this.hasContext(t)?this.getContext(t).canvas:null},e.prototype.getReplayState=function(t){var e=(0,a.sq)(t);return e in this.replayState_||(this.replayState_[e]={dirty:!1,renderedRenderOrder:null,renderedResolution:NaN,renderedRevision:-1,renderedTileResolution:NaN,renderedTileRevision:-1,renderedTileZ:-1}),this.replayState_[e]},e.prototype.load=function(){this.getSourceTiles()},e.prototype.release=function(){for(var e in this.context_){var n=this.context_[e];(0,o.jy)(n),l.push(n.canvas),delete this.context_[e]}t.prototype.release.call(this)},e}(i.Z)},33:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r,i=n(5069),o=n(3584),a=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});const s=function(t){function e(e,n,r,i,o,a){var s=t.call(this,e,n,a)||this;return s.extent=null,s.format_=i,s.features_=null,s.loader_,s.projection=null,s.resolution,s.tileLoadFunction_=o,s.url_=r,s.key=r,s}return a(e,t),e.prototype.getFormat=function(){return this.format_},e.prototype.getFeatures=function(){return this.features_},e.prototype.load=function(){this.state==o.Z.IDLE&&(this.setState(o.Z.LOADING),this.tileLoadFunction_(this,this.url_),this.loader_&&this.loader_(this.extent,this.resolution,this.projection))},e.prototype.onLoad=function(t,e){this.setFeatures(t)},e.prototype.onError=function(){this.setState(o.Z.ERROR)},e.prototype.setFeatures=function(t){this.features_=t,this.setState(o.Z.LOADED)},e.prototype.setLoader=function(t){this.loader_=t},e}(i.Z)},6087:(t,e,n)=>{"use strict";n.d(e,{ZP:()=>T});var r=n(6414),i=n(2418),o=n(6270),a=n(1586),s=n(591),l=n(6162),u=n(6764),c=n(2253),h=n(9162),p=n(6534),d=n(8007);function f(t,e,n){return function(r,i,o,a,s){if(r){if(!i&&!e)return r;var l=e?0:o[0]*i,u=e?0:o[1]*i,c=s?s[0]:0,h=s?s[1]:0,p=t[0]+l/2+c,f=t[2]-l/2+c,g=t[1]+u/2+h,m=t[3]-u/2+h;p>f&&(f=p=(f+p)/2),g>m&&(m=g=(m+g)/2);var y=(0,d.uZ)(r[0],p,f),v=(0,d.uZ)(r[1],g,m);if(a&&n&&i){var _=30*i;y+=-_*Math.log(1+Math.max(0,p-r[0])/_)+_*Math.log(1+Math.max(0,r[0]-f)/_),v+=-_*Math.log(1+Math.max(0,g-r[1])/_)+_*Math.log(1+Math.max(0,r[1]-m)/_)}return[y,v]}}}function g(t){return t}var m=n(6596),y=n(2182);function v(t,e,n,r){var i=(0,m.dz)(e)/n[0],o=(0,m.Cr)(e)/n[1];return r?Math.min(t,Math.max(i,o)):Math.min(t,Math.min(i,o))}function _(t,e,n){var r=Math.min(t,e);return r*=Math.log(1+50*Math.max(0,t/e-1))/50+1,n&&(r=Math.max(r,n),r/=Math.log(1+50*Math.max(0,n/t-1))/50+1),(0,d.uZ)(r,n/2,2*e)}function b(t,e,n,r,i){return function(o,a,s,l){if(void 0!==o){var u=r?v(t,r,s,i):t;return(void 0===n||n)&&l?_(o,u,e):(0,d.uZ)(o,e,u)}}}var w,x=n(2758),S=n(7898),C=n(5098),E=(w=function(t,e){return w=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},w(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}w(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});function k(t,e){setTimeout((function(){t(e)}),0)}function A(t){return!(t.sourceCenter&&t.targetCenter&&!(0,c.fS)(t.sourceCenter,t.targetCenter))&&t.sourceResolution===t.targetResolution&&t.sourceRotation===t.targetRotation}function P(t,e,n,r,i){var o=Math.cos(-i),a=Math.sin(-i),s=t[0]*o-t[1]*a,l=t[1]*o+t[0]*a;return[(s+=(e[0]/2-n[0])*r)*o-(l+=(n[1]-e[1]/2)*r)*(a=-a),l*o+s*a]}const T=function(t){function e(e){var n=t.call(this)||this;n.on,n.once,n.un;var r=(0,p.f0)({},e);return n.hints_=[0,0],n.animations_=[],n.updateAnimationKey_,n.projection_=(0,l.createProjection)(r.projection,"EPSG:3857"),n.viewportSize_=[100,100],n.targetCenter_=null,n.targetResolution_,n.targetRotation_,n.nextCenter_=null,n.nextResolution_,n.nextRotation_,n.cancelAnchor_=void 0,r.projection&&(0,l.disableCoordinateWarning)(),r.center&&(r.center=(0,l.fromUserCoordinate)(r.center,n.projection_)),r.extent&&(r.extent=(0,l.fromUserExtent)(r.extent,n.projection_)),n.applyOptions_(r),n}return E(e,t),e.prototype.applyOptions_=function(t){var e=(0,p.f0)({},t);for(var n in a.Z)delete e[n];this.setProperties(e,!0);var r=function(t){var e,n,r,o=void 0!==t.minZoom?t.minZoom:0,a=void 0!==t.maxZoom?t.maxZoom:28,u=void 0!==t.zoomFactor?t.zoomFactor:2,c=void 0!==t.multiWorld&&t.multiWorld,h=void 0===t.smoothResolutionConstraint||t.smoothResolutionConstraint,p=void 0!==t.showFullExtent&&t.showFullExtent,f=(0,l.createProjection)(t.projection,"EPSG:3857"),g=f.getExtent(),w=t.constrainOnlyCenter,x=t.extent;if(c||x||!f.isGlobal()||(w=!1,x=g),void 0!==t.resolutions){var S=t.resolutions;n=S[o],r=void 0!==S[a]?S[a]:S[S.length-1],e=t.constrainResolution?function(t,e,n,r){return function(i,o,a,s){if(void 0!==i){var l=t[0],u=t[t.length-1],c=n?v(l,n,a,r):l;if(s)return void 0===e||e?_(i,c,u):(0,d.uZ)(i,u,c);var h=Math.min(c,i),p=Math.floor((0,y.h7)(t,h,o));return t[p]>c&&p<t.length-1?t[p+1]:t[p]}}}(S,h,!w&&x,p):b(n,r,h,!w&&x,p)}else{var C=(g?Math.max((0,m.dz)(g),(0,m.Cr)(g)):360*l.METERS_PER_UNIT[i.ZP.DEGREES]/f.getMetersPerUnit())/s.S/Math.pow(2,0),E=C/Math.pow(2,28);void 0!==(n=t.maxResolution)?o=0:n=C/Math.pow(u,o),void 0===(r=t.minResolution)&&(r=void 0!==t.maxZoom?void 0!==t.maxResolution?n/Math.pow(u,a):C/Math.pow(u,a):E),a=o+Math.floor(Math.log(n/r)/Math.log(u)),r=n/Math.pow(u,a-o),e=t.constrainResolution?function(t,e,n,r,i,o){return function(a,s,l,u){if(void 0!==a){var c=i?v(e,i,l,o):e,h=void 0!==n?n:0;if(u)return void 0===r||r?_(a,c,h):(0,d.uZ)(a,h,c);var p=Math.ceil(Math.log(e/c)/Math.log(t)-1e-9),f=-s*(.5-1e-9)+.5,g=Math.min(c,a),m=Math.floor(Math.log(e/g)/Math.log(t)+f),y=Math.max(p,m),b=e/Math.pow(t,y);return(0,d.uZ)(b,h,c)}}}(u,n,r,h,!w&&x,p):b(n,r,h,!w&&x,p)}return{constraint:e,maxResolution:n,minResolution:r,minZoom:o,zoomFactor:u}}(t);this.maxResolution_=r.maxResolution,this.minResolution_=r.minResolution,this.zoomFactor_=r.zoomFactor,this.resolutions_=t.resolutions,this.padding_=t.padding,this.minZoom_=r.minZoom;var o=function(t){if(void 0!==t.extent){var e=void 0===t.smoothExtentConstraint||t.smoothExtentConstraint;return f(t.extent,t.constrainOnlyCenter,e)}var n=(0,l.createProjection)(t.projection,"EPSG:3857");if(!0!==t.multiWorld&&n.isGlobal()){var r=n.getExtent().slice();return r[0]=-1/0,r[2]=1/0,f(r,!1,!1)}return g}(t),u=r.constraint,c=function(t){if(void 0===t.enableRotation||t.enableRotation){var e=t.constrainRotation;return void 0===e||!0===e?(0,x.Gw)():!1===e?x.YP:"number"==typeof e?(0,x.gE)(e):x.YP}return x.h$}(t);this.constraints_={center:o,resolution:u,rotation:c},this.setRotation(void 0!==t.rotation?t.rotation:0),this.setCenterInternal(void 0!==t.center?t.center:null),void 0!==t.resolution?this.setResolution(t.resolution):void 0!==t.zoom&&this.setZoom(t.zoom)},Object.defineProperty(e.prototype,"padding",{get:function(){return this.padding_},set:function(t){var e=this.padding_;this.padding_=t;var n=this.getCenter();if(n){var r=t||[0,0,0,0];e=e||[0,0,0,0];var i=this.getResolution(),o=i/2*(r[3]-e[3]+e[1]-r[1]),a=i/2*(r[0]-e[0]+e[2]-r[2]);this.setCenterInternal([n[0]+o,n[1]-a])}},enumerable:!1,configurable:!0}),e.prototype.getUpdatedOptions_=function(t){var e=this.getProperties();return void 0!==e.resolution?e.resolution=this.getResolution():e.zoom=this.getZoom(),e.center=this.getCenterInternal(),e.rotation=this.getRotation(),(0,p.f0)({},e,t)},e.prototype.animate=function(t){this.isDef()&&!this.getAnimating()&&this.resolveConstraints(0);for(var e=new Array(arguments.length),n=0;n<e.length;++n){var r=arguments[n];r.center&&((r=(0,p.f0)({},r)).center=(0,l.fromUserCoordinate)(r.center,this.getProjection())),r.anchor&&((r=(0,p.f0)({},r)).anchor=(0,l.fromUserCoordinate)(r.anchor,this.getProjection())),e[n]=r}this.animateInternal.apply(this,e)},e.prototype.animateInternal=function(t){var e,n=arguments.length;n>1&&"function"==typeof arguments[n-1]&&(e=arguments[n-1],--n);for(var r=0;r<n&&!this.isDef();++r){var i=arguments[r];i.center&&this.setCenterInternal(i.center),void 0!==i.zoom?this.setZoom(i.zoom):i.resolution&&this.setResolution(i.resolution),void 0!==i.rotation&&this.setRotation(i.rotation)}if(r!==n){for(var a=Date.now(),s=this.targetCenter_.slice(),l=this.targetResolution_,u=this.targetRotation_,c=[];r<n;++r){var h=arguments[r],p={start:a,complete:!1,anchor:h.anchor,duration:void 0!==h.duration?h.duration:1e3,easing:h.easing||S.rd,callback:e};if(h.center&&(p.sourceCenter=s,p.targetCenter=h.center.slice(),s=p.targetCenter),void 0!==h.zoom?(p.sourceResolution=l,p.targetResolution=this.getResolutionForZoom(h.zoom),l=p.targetResolution):h.resolution&&(p.sourceResolution=l,p.targetResolution=h.resolution,l=p.targetResolution),void 0!==h.rotation){p.sourceRotation=u;var f=(0,d.$W)(h.rotation-u+Math.PI,2*Math.PI)-Math.PI;p.targetRotation=u+f,u=p.targetRotation}A(p)?p.complete=!0:a+=p.duration,c.push(p)}this.animations_.push(c),this.setHint(o.Z.ANIMATING,1),this.updateAnimations_()}else e&&k(e,!0)},e.prototype.getAnimating=function(){return this.hints_[o.Z.ANIMATING]>0},e.prototype.getInteracting=function(){return this.hints_[o.Z.INTERACTING]>0},e.prototype.cancelAnimations=function(){var t;this.setHint(o.Z.ANIMATING,-this.hints_[o.Z.ANIMATING]);for(var e=0,n=this.animations_.length;e<n;++e){var r=this.animations_[e];if(r[0].callback&&k(r[0].callback,!1),!t)for(var i=0,a=r.length;i<a;++i){var s=r[i];if(!s.complete){t=s.anchor;break}}}this.animations_.length=0,this.cancelAnchor_=t,this.nextCenter_=null,this.nextResolution_=NaN,this.nextRotation_=NaN},e.prototype.updateAnimations_=function(){if(void 0!==this.updateAnimationKey_&&(cancelAnimationFrame(this.updateAnimationKey_),this.updateAnimationKey_=void 0),this.getAnimating()){for(var t=Date.now(),e=!1,n=this.animations_.length-1;n>=0;--n){for(var r=this.animations_[n],i=!0,a=0,s=r.length;a<s;++a){var l=r[a];if(!l.complete){var u=t-l.start,c=l.duration>0?u/l.duration:1;c>=1?(l.complete=!0,c=1):i=!1;var h=l.easing(c);if(l.sourceCenter){var p=l.sourceCenter[0],f=l.sourceCenter[1],g=l.targetCenter[0],m=l.targetCenter[1];this.nextCenter_=l.targetCenter;var y=p+h*(g-p),v=f+h*(m-f);this.targetCenter_=[y,v]}if(l.sourceResolution&&l.targetResolution){var _=1===h?l.targetResolution:l.sourceResolution+h*(l.targetResolution-l.sourceResolution);if(l.anchor){var b=this.getViewportSize_(this.getRotation()),w=this.constraints_.resolution(_,0,b,!0);this.targetCenter_=this.calculateCenterZoom(w,l.anchor)}this.nextResolution_=l.targetResolution,this.targetResolution_=_,this.applyTargetState_(!0)}if(void 0!==l.sourceRotation&&void 0!==l.targetRotation){var x=1===h?(0,d.$W)(l.targetRotation+Math.PI,2*Math.PI)-Math.PI:l.sourceRotation+h*(l.targetRotation-l.sourceRotation);if(l.anchor){var S=this.constraints_.rotation(x,!0);this.targetCenter_=this.calculateCenterRotate(S,l.anchor)}this.nextRotation_=l.targetRotation,this.targetRotation_=x}if(this.applyTargetState_(!0),e=!0,!l.complete)break}}if(i){this.animations_[n]=null,this.setHint(o.Z.ANIMATING,-1),this.nextCenter_=null,this.nextResolution_=NaN,this.nextRotation_=NaN;var C=r[0].callback;C&&k(C,!0)}}this.animations_=this.animations_.filter(Boolean),e&&void 0===this.updateAnimationKey_&&(this.updateAnimationKey_=requestAnimationFrame(this.updateAnimations_.bind(this)))}},e.prototype.calculateCenterRotate=function(t,e){var n,r=this.getCenterInternal();return void 0!==r&&(n=[r[0]-e[0],r[1]-e[1]],(0,c.U1)(n,t-this.getRotation()),(0,c.IH)(n,e)),n},e.prototype.calculateCenterZoom=function(t,e){var n,r=this.getCenterInternal(),i=this.getResolution();return void 0!==r&&void 0!==i&&(n=[e[0]-t*(e[0]-r[0])/i,e[1]-t*(e[1]-r[1])/i]),n},e.prototype.getViewportSize_=function(t){var e=this.viewportSize_;if(t){var n=e[0],r=e[1];return[Math.abs(n*Math.cos(t))+Math.abs(r*Math.sin(t)),Math.abs(n*Math.sin(t))+Math.abs(r*Math.cos(t))]}return e},e.prototype.setViewportSize=function(t){this.viewportSize_=Array.isArray(t)?t.slice():[100,100],this.getAnimating()||this.resolveConstraints(0)},e.prototype.getCenter=function(){var t=this.getCenterInternal();return t?(0,l.toUserCoordinate)(t,this.getProjection()):t},e.prototype.getCenterInternal=function(){return this.get(a.Z.CENTER)},e.prototype.getConstraints=function(){return this.constraints_},e.prototype.getConstrainResolution=function(){return this.get("constrainResolution")},e.prototype.getHints=function(t){return void 0!==t?(t[0]=this.hints_[0],t[1]=this.hints_[1],t):this.hints_.slice()},e.prototype.calculateExtent=function(t){var e=this.calculateExtentInternal(t);return(0,l.toUserExtent)(e,this.getProjection())},e.prototype.calculateExtentInternal=function(t){var e=t||this.getViewportSizeMinusPadding_(),n=this.getCenterInternal();(0,h.h)(n,1);var r=this.getResolution();(0,h.h)(void 0!==r,2);var i=this.getRotation();return(0,h.h)(void 0!==i,3),(0,m.p8)(n,r,i,e)},e.prototype.getMaxResolution=function(){return this.maxResolution_},e.prototype.getMinResolution=function(){return this.minResolution_},e.prototype.getMaxZoom=function(){return this.getZoomForResolution(this.minResolution_)},e.prototype.setMaxZoom=function(t){this.applyOptions_(this.getUpdatedOptions_({maxZoom:t}))},e.prototype.getMinZoom=function(){return this.getZoomForResolution(this.maxResolution_)},e.prototype.setMinZoom=function(t){this.applyOptions_(this.getUpdatedOptions_({minZoom:t}))},e.prototype.setConstrainResolution=function(t){this.applyOptions_(this.getUpdatedOptions_({constrainResolution:t}))},e.prototype.getProjection=function(){return this.projection_},e.prototype.getResolution=function(){return this.get(a.Z.RESOLUTION)},e.prototype.getResolutions=function(){return this.resolutions_},e.prototype.getResolutionForExtent=function(t,e){return this.getResolutionForExtentInternal((0,l.fromUserExtent)(t,this.getProjection()),e)},e.prototype.getResolutionForExtentInternal=function(t,e){var n=e||this.getViewportSizeMinusPadding_(),r=(0,m.dz)(t)/n[0],i=(0,m.Cr)(t)/n[1];return Math.max(r,i)},e.prototype.getResolutionForValueFunction=function(t){var e=t||2,n=this.getConstrainedResolution(this.maxResolution_),r=this.minResolution_,i=Math.log(n/r)/Math.log(e);return function(t){return n/Math.pow(e,t*i)}},e.prototype.getRotation=function(){return this.get(a.Z.ROTATION)},e.prototype.getValueForResolutionFunction=function(t){var e=Math.log(t||2),n=this.getConstrainedResolution(this.maxResolution_),r=this.minResolution_,i=Math.log(n/r)/e;return function(t){return Math.log(n/t)/e/i}},e.prototype.getViewportSizeMinusPadding_=function(t){var e=this.getViewportSize_(t),n=this.padding_;return n&&(e=[e[0]-n[1]-n[3],e[1]-n[0]-n[2]]),e},e.prototype.getState=function(){var t=this.getProjection(),e=this.getResolution(),n=this.getRotation(),r=this.getCenterInternal(),i=this.padding_;if(i){var o=this.getViewportSizeMinusPadding_();r=P(r,this.getViewportSize_(),[o[0]/2+i[3],o[1]/2+i[0]],e,n)}return{center:r.slice(0),projection:void 0!==t?t:null,resolution:e,nextCenter:this.nextCenter_,nextResolution:this.nextResolution_,nextRotation:this.nextRotation_,rotation:n,zoom:this.getZoom()}},e.prototype.getZoom=function(){var t,e=this.getResolution();return void 0!==e&&(t=this.getZoomForResolution(e)),t},e.prototype.getZoomForResolution=function(t){var e,n,r=this.minZoom_||0;if(this.resolutions_){var i=(0,y.h7)(this.resolutions_,t,1);r=i,e=this.resolutions_[i],n=i==this.resolutions_.length-1?2:e/this.resolutions_[i+1]}else e=this.maxResolution_,n=this.zoomFactor_;return r+Math.log(e/t)/Math.log(n)},e.prototype.getResolutionForZoom=function(t){if(this.resolutions_){if(this.resolutions_.length<=1)return 0;var e=(0,d.uZ)(Math.floor(t),0,this.resolutions_.length-2),n=this.resolutions_[e]/this.resolutions_[e+1];return this.resolutions_[e]/Math.pow(n,(0,d.uZ)(t-e,0,1))}return this.maxResolution_/Math.pow(this.zoomFactor_,t-this.minZoom_)},e.prototype.fit=function(t,e){var n;if((0,h.h)(Array.isArray(t)||"function"==typeof t.getSimplifiedGeometry,24),Array.isArray(t)){(0,h.h)(!(0,m.xb)(t),25);var r=(0,l.fromUserExtent)(t,this.getProjection());n=(0,C.oJ)(r)}else if("Circle"===t.getType())r=(0,l.fromUserExtent)(t.getExtent(),this.getProjection()),(n=(0,C.oJ)(r)).rotate(this.getRotation(),(0,m.qg)(r));else{var i=(0,l.getUserProjection)();n=i?t.clone().transform(i,this.getProjection()):t}this.fitInternal(n,e)},e.prototype.rotatedExtentForGeometry=function(t){for(var e=this.getRotation(),n=Math.cos(e),r=Math.sin(-e),i=t.getFlatCoordinates(),o=t.getStride(),a=1/0,s=1/0,l=-1/0,u=-1/0,c=0,h=i.length;c<h;c+=o){var p=i[c]*n-i[c+1]*r,d=i[c]*r+i[c+1]*n;a=Math.min(a,p),s=Math.min(s,d),l=Math.max(l,p),u=Math.max(u,d)}return[a,s,l,u]},e.prototype.fitInternal=function(t,e){var n=e||{},r=n.size;r||(r=this.getViewportSizeMinusPadding_());var i,o=void 0!==n.padding?n.padding:[0,0,0,0],a=void 0!==n.nearest&&n.nearest;i=void 0!==n.minResolution?n.minResolution:void 0!==n.maxZoom?this.getResolutionForZoom(n.maxZoom):0;var s=this.rotatedExtentForGeometry(t),l=this.getResolutionForExtentInternal(s,[r[0]-o[1]-o[3],r[1]-o[0]-o[2]]);l=isNaN(l)?i:Math.max(l,i),l=this.getConstrainedResolution(l,a?0:1);var c=this.getRotation(),h=Math.sin(c),p=Math.cos(c),d=(0,m.qg)(s);d[0]+=(o[1]-o[3])/2*l,d[1]+=(o[0]-o[2])/2*l;var f=d[0]*p-d[1]*h,g=d[1]*p+d[0]*h,y=this.getConstrainedCenter([f,g],l),v=n.callback?n.callback:u.Zn;void 0!==n.duration?this.animateInternal({resolution:l,center:y,duration:n.duration,easing:n.easing},v):(this.targetResolution_=l,this.targetCenter_=y,this.applyTargetState_(!1,!0),k(v,!0))},e.prototype.centerOn=function(t,e,n){this.centerOnInternal((0,l.fromUserCoordinate)(t,this.getProjection()),e,n)},e.prototype.centerOnInternal=function(t,e,n){this.setCenterInternal(P(t,e,n,this.getResolution(),this.getRotation()))},e.prototype.calculateCenterShift=function(t,e,n,r){var i,o=this.padding_;if(o&&t){var a=this.getViewportSizeMinusPadding_(-n),s=P(t,r,[a[0]/2+o[3],a[1]/2+o[0]],e,n);i=[t[0]-s[0],t[1]-s[1]]}return i},e.prototype.isDef=function(){return!!this.getCenterInternal()&&void 0!==this.getResolution()},e.prototype.adjustCenter=function(t){var e=(0,l.toUserCoordinate)(this.targetCenter_,this.getProjection());this.setCenter([e[0]+t[0],e[1]+t[1]])},e.prototype.adjustCenterInternal=function(t){var e=this.targetCenter_;this.setCenterInternal([e[0]+t[0],e[1]+t[1]])},e.prototype.adjustResolution=function(t,e){var n=e&&(0,l.fromUserCoordinate)(e,this.getProjection());this.adjustResolutionInternal(t,n)},e.prototype.adjustResolutionInternal=function(t,e){var n=this.getAnimating()||this.getInteracting(),r=this.getViewportSize_(this.getRotation()),i=this.constraints_.resolution(this.targetResolution_*t,0,r,n);e&&(this.targetCenter_=this.calculateCenterZoom(i,e)),this.targetResolution_*=t,this.applyTargetState_()},e.prototype.adjustZoom=function(t,e){this.adjustResolution(Math.pow(this.zoomFactor_,-t),e)},e.prototype.adjustRotation=function(t,e){e&&(e=(0,l.fromUserCoordinate)(e,this.getProjection())),this.adjustRotationInternal(t,e)},e.prototype.adjustRotationInternal=function(t,e){var n=this.getAnimating()||this.getInteracting(),r=this.constraints_.rotation(this.targetRotation_+t,n);e&&(this.targetCenter_=this.calculateCenterRotate(r,e)),this.targetRotation_+=t,this.applyTargetState_()},e.prototype.setCenter=function(t){this.setCenterInternal(t?(0,l.fromUserCoordinate)(t,this.getProjection()):t)},e.prototype.setCenterInternal=function(t){this.targetCenter_=t,this.applyTargetState_()},e.prototype.setHint=function(t,e){return this.hints_[t]+=e,this.changed(),this.hints_[t]},e.prototype.setResolution=function(t){this.targetResolution_=t,this.applyTargetState_()},e.prototype.setRotation=function(t){this.targetRotation_=t,this.applyTargetState_()},e.prototype.setZoom=function(t){this.setResolution(this.getResolutionForZoom(t))},e.prototype.applyTargetState_=function(t,e){var n=this.getAnimating()||this.getInteracting()||e,r=this.constraints_.rotation(this.targetRotation_,n),i=this.getViewportSize_(r),o=this.constraints_.resolution(this.targetResolution_,0,i,n),s=this.constraints_.center(this.targetCenter_,o,i,n,this.calculateCenterShift(this.targetCenter_,o,r,i));this.get(a.Z.ROTATION)!==r&&this.set(a.Z.ROTATION,r),this.get(a.Z.RESOLUTION)!==o&&(this.set(a.Z.RESOLUTION,o),this.set("zoom",this.getZoom(),!0)),s&&this.get(a.Z.CENTER)&&(0,c.fS)(this.get(a.Z.CENTER),s)||this.set(a.Z.CENTER,s),this.getAnimating()&&!t&&this.cancelAnimations(),this.cancelAnchor_=void 0},e.prototype.resolveConstraints=function(t,e,n){var r=void 0!==t?t:200,i=e||0,o=this.constraints_.rotation(this.targetRotation_),a=this.getViewportSize_(o),s=this.constraints_.resolution(this.targetResolution_,i,a),l=this.constraints_.center(this.targetCenter_,s,a,!1,this.calculateCenterShift(this.targetCenter_,s,o,a));if(0===r&&!this.cancelAnchor_)return this.targetResolution_=s,this.targetRotation_=o,this.targetCenter_=l,void this.applyTargetState_();var u=n||(0===r?this.cancelAnchor_:void 0);this.cancelAnchor_=void 0,this.getResolution()===s&&this.getRotation()===o&&this.getCenterInternal()&&(0,c.fS)(this.getCenterInternal(),l)||(this.getAnimating()&&this.cancelAnimations(),this.animateInternal({rotation:o,center:l,resolution:s,duration:r,easing:S.Vv,anchor:u}))},e.prototype.beginInteraction=function(){this.resolveConstraints(0),this.setHint(o.Z.INTERACTING,1)},e.prototype.endInteraction=function(t,e,n){var r=n&&(0,l.fromUserCoordinate)(n,this.getProjection());this.endInteractionInternal(t,e,r)},e.prototype.endInteractionInternal=function(t,e,n){this.setHint(o.Z.INTERACTING,-1),this.resolveConstraints(t,e,n)},e.prototype.getConstrainedCenter=function(t,e){var n=this.getViewportSize_(this.getRotation());return this.constraints_.center(t,e||this.getResolution(),n)},e.prototype.getConstrainedZoom=function(t,e){var n=this.getResolutionForZoom(t);return this.getZoomForResolution(this.getConstrainedResolution(n,e))},e.prototype.getConstrainedResolution=function(t,e){var n=e||0,r=this.getViewportSize_(this.getRotation());return this.constraints_.resolution(t,n,r)},e}(r.Z)},6270:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});const r={ANIMATING:0,INTERACTING:1}},1586:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});const r={CENTER:"center",RESOLUTION:"resolution",ROTATION:"rotation"}},2182:(t,e,n)=>{"use strict";function r(t,e,n){for(var r,o,a=n||i,s=0,l=t.length,u=!1;s<l;)(o=+a(t[r=s+(l-s>>1)],e))<0?s=r+1:(l=r,u=!o);return u?s:~s}function i(t,e){return t>e?1:t<e?-1:0}function o(t,e){return t.indexOf(e)>=0}function a(t,e,n){var r=t.length;if(t[0]<=e)return 0;if(e<=t[r-1])return r-1;var i=void 0;if(n>0){for(i=1;i<r;++i)if(t[i]<e)return i-1}else if(n<0){for(i=1;i<r;++i)if(t[i]<=e)return i}else for(i=1;i<r;++i){if(t[i]==e)return i;if(t[i]<e)return"function"==typeof n?n(e,t[i-1],t[i])>0?i-1:i:t[i-1]-e<e-t[i]?i-1:i}return r-1}function s(t,e,n){for(;e<n;){var r=t[e];t[e]=t[n],t[n]=r,++e,--n}}function l(t,e){for(var n=Array.isArray(e)?e:[e],r=n.length,i=0;i<r;i++)t[t.length]=n[i]}function u(t,e){var n=t.length;if(n!==e.length)return!1;for(var r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function c(t,e,n){var r=e||i;return t.every((function(e,i){if(0===i)return!0;var o=r(t[i-1],e);return!(o>0||n&&0===o)}))}n.d(e,{FZ:()=>s,fS:()=>u,h7:()=>a,kK:()=>i,l7:()=>l,pT:()=>c,q9:()=>o,ry:()=>r})},9162:(t,e,n)=>{"use strict";n.d(e,{h:()=>i});var r=n(7906);function i(t,e){if(!t)throw new r.Z(e)}},184:(t,e,n)=>{"use strict";n.d(e,{BB:()=>d,XC:()=>s,_2:()=>h});var r=n(9162),i=n(8007),o=/^#([a-f0-9]{3}|[a-f0-9]{4}(?:[a-f0-9]{2}){0,2})$/i,a=/^([a-z]*)$|^hsla?\(.*\)$/i;function s(t){return"string"==typeof t?t:d(t)}var l,u,c=(l={},u=0,function(t){var e;if(l.hasOwnProperty(t))e=l[t];else{if(u>=1024){var n=0;for(var i in l)0==(3&n++)&&(delete l[i],--u)}e=function(t){var e,n,i,s,l;if(a.exec(t)&&(t=function(t){var e=document.createElement("div");if(e.style.color=t,""!==e.style.color){document.body.appendChild(e);var n=getComputedStyle(e).color;return document.body.removeChild(e),n}return""}(t)),o.exec(t)){var u,c=t.length-1;u=c<=4?1:2;var h=4===c||8===c;e=parseInt(t.substr(1+0*u,u),16),n=parseInt(t.substr(1+1*u,u),16),i=parseInt(t.substr(1+2*u,u),16),s=h?parseInt(t.substr(1+3*u,u),16):255,1==u&&(e=(e<<4)+e,n=(n<<4)+n,i=(i<<4)+i,h&&(s=(s<<4)+s)),l=[e,n,i,s/255]}else 0==t.indexOf("rgba(")?p(l=t.slice(5,-1).split(",").map(Number)):0==t.indexOf("rgb(")?((l=t.slice(4,-1).split(",").map(Number)).push(1),p(l)):(0,r.h)(!1,14);return l}(t),l[t]=e,++u}return e});function h(t){return Array.isArray(t)?t:c(t)}function p(t){return t[0]=(0,i.uZ)(t[0]+.5|0,0,255),t[1]=(0,i.uZ)(t[1]+.5|0,0,255),t[2]=(0,i.uZ)(t[2]+.5|0,0,255),t[3]=(0,i.uZ)(t[3],0,1),t}function d(t){var e=t[0];e!=(0|e)&&(e=e+.5|0);var n=t[1];n!=(0|n)&&(n=n+.5|0);var r=t[2];return r!=(0|r)&&(r=r+.5|0),"rgba("+e+","+n+","+r+","+(void 0===t[3]?1:Math.round(100*t[3])/100)+")"}},4907:(t,e,n)=>{"use strict";n.d(e,{y:()=>i});var r=n(184);function i(t){return Array.isArray(t)?(0,r.BB)(t):t}},7350:(t,e,n)=>{"use strict";n.r(e),n.d(e,{Attribution:()=>m,Control:()=>c,FullScreen:()=>T,MousePosition:()=>F,OverviewMap:()=>W,Rotate:()=>b,ScaleLine:()=>et,Zoom:()=>x,ZoomSlider:()=>ot,ZoomToExtent:()=>st,defaults:()=>lt});var r,i=n(6414),o=n(2830),a=n(6764),s=n(8196),l=n(9220),u=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});const c=function(t){function e(e){var n=t.call(this)||this,r=e.element;return!r||e.target||r.style.pointerEvents||(r.style.pointerEvents="auto"),n.element=r||null,n.target_=null,n.map_=null,n.listenerKeys=[],e.render&&(n.render=e.render),e.target&&n.setTarget(e.target),n}return u(e,t),e.prototype.disposeInternal=function(){(0,l.ZF)(this.element),t.prototype.disposeInternal.call(this)},e.prototype.getMap=function(){return this.map_},e.prototype.setMap=function(t){this.map_&&(0,l.ZF)(this.element);for(var e=0,n=this.listenerKeys.length;e<n;++e)(0,s.bN)(this.listenerKeys[e]);this.listenerKeys.length=0,this.map_=t,t&&((this.target_?this.target_:t.getOverlayContainerStopEvent()).appendChild(this.element),this.render!==a.Zn&&this.listenerKeys.push((0,s.oL)(t,o.Z.POSTRENDER,this.render,this)),t.render())},e.prototype.render=function(t){},e.prototype.setTarget=function(t){this.target_="string"==typeof t?document.getElementById(t):t},e}(i.Z);var h=n(2001),p=n(8055),d=n(2182),f=n(1716),g=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const m=function(t){function e(e){var n=this,r=e||{};(n=t.call(this,{element:document.createElement("div"),render:r.render,target:r.target})||this).ulElement_=document.createElement("ul"),n.collapsed_=void 0===r.collapsed||r.collapsed,n.userCollapsed_=n.collapsed_,n.overrideCollapsible_=void 0!==r.collapsible,n.collapsible_=void 0===r.collapsible||r.collapsible,n.collapsible_||(n.collapsed_=!1);var i=void 0!==r.className?r.className:"ol-attribution",o=void 0!==r.tipLabel?r.tipLabel:"Attributions",a=void 0!==r.expandClassName?r.expandClassName:i+"-expand",s=void 0!==r.collapseLabel?r.collapseLabel:"›",l=void 0!==r.collapseClassName?r.collapseClassName:i+"-collapse";"string"==typeof s?(n.collapseLabel_=document.createElement("span"),n.collapseLabel_.textContent=s,n.collapseLabel_.className=l):n.collapseLabel_=s;var u=void 0!==r.label?r.label:"i";"string"==typeof u?(n.label_=document.createElement("span"),n.label_.textContent=u,n.label_.className=a):n.label_=u;var c=n.collapsible_&&!n.collapsed_?n.collapseLabel_:n.label_;n.toggleButton_=document.createElement("button"),n.toggleButton_.setAttribute("type","button"),n.toggleButton_.setAttribute("aria-expanded",String(!n.collapsed_)),n.toggleButton_.title=o,n.toggleButton_.appendChild(c),n.toggleButton_.addEventListener(h.Z.CLICK,n.handleClick_.bind(n),!1);var d=i+" "+p.XV+" "+p.hg+(n.collapsed_&&n.collapsible_?" "+p.hN:"")+(n.collapsible_?"":" ol-uncollapsible"),f=n.element;return f.className=d,f.appendChild(n.toggleButton_),f.appendChild(n.ulElement_),n.renderedAttributions_=[],n.renderedVisible_=!0,n}return g(e,t),e.prototype.collectSourceAttributions_=function(t){for(var e={},n=[],r=!0,i=t.layerStatesArray,o=0,a=i.length;o<a;++o){var s=i[o];if((0,f.j)(s,t.viewState)){var l=s.layer.getSource();if(l){var u=l.getAttributions();if(u){var c=u(t);if(c)if(r=r&&!1!==l.getAttributionsCollapsible(),Array.isArray(c))for(var h=0,p=c.length;h<p;++h)c[h]in e||(n.push(c[h]),e[c[h]]=!0);else c in e||(n.push(c),e[c]=!0)}}}}return this.overrideCollapsible_||this.setCollapsible(r),n},e.prototype.updateElement_=function(t){if(t){var e=this.collectSourceAttributions_(t),n=e.length>0;if(this.renderedVisible_!=n&&(this.element.style.display=n?"":"none",this.renderedVisible_=n),!(0,d.fS)(e,this.renderedAttributions_)){(0,l.ep)(this.ulElement_);for(var r=0,i=e.length;r<i;++r){var o=document.createElement("li");o.innerHTML=e[r],this.ulElement_.appendChild(o)}this.renderedAttributions_=e}}else this.renderedVisible_&&(this.element.style.display="none",this.renderedVisible_=!1)},e.prototype.handleClick_=function(t){t.preventDefault(),this.handleToggle_(),this.userCollapsed_=this.collapsed_},e.prototype.handleToggle_=function(){this.element.classList.toggle(p.hN),this.collapsed_?(0,l.$H)(this.collapseLabel_,this.label_):(0,l.$H)(this.label_,this.collapseLabel_),this.collapsed_=!this.collapsed_,this.toggleButton_.setAttribute("aria-expanded",String(!this.collapsed_))},e.prototype.getCollapsible=function(){return this.collapsible_},e.prototype.setCollapsible=function(t){this.collapsible_!==t&&(this.collapsible_=t,this.element.classList.toggle("ol-uncollapsible"),this.userCollapsed_&&this.handleToggle_())},e.prototype.setCollapsed=function(t){this.userCollapsed_=t,this.collapsible_&&this.collapsed_!==t&&this.handleToggle_()},e.prototype.getCollapsed=function(){return this.collapsed_},e.prototype.render=function(t){this.updateElement_(t.frameState)},e}(c);var y=n(3537),v=n(7898),_=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const b=function(t){function e(e){var n=this,r=e||{};n=t.call(this,{element:document.createElement("div"),render:r.render,target:r.target})||this;var i=void 0!==r.className?r.className:"ol-rotate",o=void 0!==r.label?r.label:"⇧",a=void 0!==r.compassClassName?r.compassClassName:"ol-compass";n.label_=null,"string"==typeof o?(n.label_=document.createElement("span"),n.label_.className=a,n.label_.textContent=o):(n.label_=o,n.label_.classList.add(a));var s=r.tipLabel?r.tipLabel:"Reset rotation",l=document.createElement("button");l.className=i+"-reset",l.setAttribute("type","button"),l.title=s,l.appendChild(n.label_),l.addEventListener(h.Z.CLICK,n.handleClick_.bind(n),!1);var u=i+" "+p.XV+" "+p.hg,c=n.element;return c.className=u,c.appendChild(l),n.callResetNorth_=r.resetNorth?r.resetNorth:void 0,n.duration_=void 0!==r.duration?r.duration:250,n.autoHide_=void 0===r.autoHide||r.autoHide,n.rotation_=void 0,n.autoHide_&&n.element.classList.add(p.oj),n}return _(e,t),e.prototype.handleClick_=function(t){t.preventDefault(),void 0!==this.callResetNorth_?this.callResetNorth_():this.resetNorth_()},e.prototype.resetNorth_=function(){var t=this.getMap().getView();if(t){var e=t.getRotation();void 0!==e&&(this.duration_>0&&e%(2*Math.PI)!=0?t.animate({rotation:0,duration:this.duration_,easing:v.Vv}):t.setRotation(0))}},e.prototype.render=function(t){var e=t.frameState;if(e){var n=e.viewState.rotation;if(n!=this.rotation_){var r="rotate("+n+"rad)";if(this.autoHide_){var i=this.element.classList.contains(p.oj);i||0!==n?i&&0!==n&&this.element.classList.remove(p.oj):this.element.classList.add(p.oj)}this.label_.style.transform=r}this.rotation_=n}},e}(c);var w=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const x=function(t){function e(e){var n=this,r=e||{};n=t.call(this,{element:document.createElement("div"),target:r.target})||this;var i=void 0!==r.className?r.className:"ol-zoom",o=void 0!==r.delta?r.delta:1,a=void 0!==r.zoomInClassName?r.zoomInClassName:i+"-in",s=void 0!==r.zoomOutClassName?r.zoomOutClassName:i+"-out",l=void 0!==r.zoomInLabel?r.zoomInLabel:"+",u=void 0!==r.zoomOutLabel?r.zoomOutLabel:"–",c=void 0!==r.zoomInTipLabel?r.zoomInTipLabel:"Zoom in",d=void 0!==r.zoomOutTipLabel?r.zoomOutTipLabel:"Zoom out",f=document.createElement("button");f.className=a,f.setAttribute("type","button"),f.title=c,f.appendChild("string"==typeof l?document.createTextNode(l):l),f.addEventListener(h.Z.CLICK,n.handleClick_.bind(n,o),!1);var g=document.createElement("button");g.className=s,g.setAttribute("type","button"),g.title=d,g.appendChild("string"==typeof u?document.createTextNode(u):u),g.addEventListener(h.Z.CLICK,n.handleClick_.bind(n,-o),!1);var m=i+" "+p.XV+" "+p.hg,y=n.element;return y.className=m,y.appendChild(f),y.appendChild(g),n.duration_=void 0!==r.duration?r.duration:250,n}return w(e,t),e.prototype.handleClick_=function(t,e){e.preventDefault(),this.zoomByDelta_(t)},e.prototype.zoomByDelta_=function(t){var e=this.getMap().getView();if(e){var n=e.getZoom();if(void 0!==n){var r=e.getConstrainedZoom(n+t);this.duration_>0?(e.getAnimating()&&e.cancelAnimations(),e.animate({zoom:r,duration:this.duration_,easing:v.Vv})):e.setZoom(r)}}},e}(c);var S=n(4179),C=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),E=["fullscreenchange","webkitfullscreenchange","MSFullscreenChange"];function k(t){var e=t.body;return!!(e.webkitRequestFullscreen||e.msRequestFullscreen&&t.msFullscreenEnabled||e.requestFullscreen&&t.fullscreenEnabled)}function A(t){return!!(t.webkitIsFullScreen||t.msFullscreenElement||t.fullscreenElement)}function P(t){t.requestFullscreen?t.requestFullscreen():t.msRequestFullscreen?t.msRequestFullscreen():t.webkitRequestFullscreen&&t.webkitRequestFullscreen()}const T=function(t){function e(e){var n=this,r=e||{};(n=t.call(this,{element:document.createElement("div"),target:r.target})||this).on,n.once,n.un,n.keys_=void 0!==r.keys&&r.keys,n.source_=r.source,n.isInFullscreen_=!1,n.boundHandleMapTargetChange_=n.handleMapTargetChange_.bind(n),n.cssClassName_=void 0!==r.className?r.className:"ol-full-screen",n.documentListeners_=[],n.activeClassName_=void 0!==r.activeClassName?r.activeClassName.split(" "):[n.cssClassName_+"-true"],n.inactiveClassName_=void 0!==r.inactiveClassName?r.inactiveClassName.split(" "):[n.cssClassName_+"-false"];var i=void 0!==r.label?r.label:"⤢";n.labelNode_="string"==typeof i?document.createTextNode(i):i;var o=void 0!==r.labelActive?r.labelActive:"×";n.labelActiveNode_="string"==typeof o?document.createTextNode(o):o;var a=r.tipLabel?r.tipLabel:"Toggle full-screen";return n.button_=document.createElement("button"),n.button_.title=a,n.button_.setAttribute("type","button"),n.button_.appendChild(n.labelNode_),n.button_.addEventListener(h.Z.CLICK,n.handleClick_.bind(n),!1),n.setClassName_(n.button_,n.isInFullscreen_),n.element.className="".concat(n.cssClassName_," ").concat(p.XV," ").concat(p.hg),n.element.appendChild(n.button_),n}return C(e,t),e.prototype.handleClick_=function(t){t.preventDefault(),this.handleFullScreen_()},e.prototype.handleFullScreen_=function(){var t=this.getMap();if(t){var e=t.getOwnerDocument();if(k(e))if(A(e))!function(t){t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.webkitExitFullscreen&&t.webkitExitFullscreen()}(e);else{var n;n=this.source_?"string"==typeof this.source_?e.getElementById(this.source_):this.source_:t.getTargetElement(),this.keys_?function(t){t.webkitRequestFullscreen?t.webkitRequestFullscreen():P(t)}(n):P(n)}}},e.prototype.handleFullScreenChange_=function(){var t=this.getMap();if(t){var e=this.isInFullscreen_;this.isInFullscreen_=A(t.getOwnerDocument()),e!==this.isInFullscreen_&&(this.setClassName_(this.button_,this.isInFullscreen_),this.isInFullscreen_?((0,l.$H)(this.labelActiveNode_,this.labelNode_),this.dispatchEvent("enterfullscreen")):((0,l.$H)(this.labelNode_,this.labelActiveNode_),this.dispatchEvent("leavefullscreen")),t.updateSize())}},e.prototype.setClassName_=function(t,e){var n,r,i,o;e?((n=t.classList).remove.apply(n,this.inactiveClassName_),(r=t.classList).add.apply(r,this.activeClassName_)):((i=t.classList).remove.apply(i,this.activeClassName_),(o=t.classList).add.apply(o,this.inactiveClassName_))},e.prototype.setMap=function(e){var n=this.getMap();n&&n.removeChangeListener(S.Z.TARGET,this.boundHandleMapTargetChange_),t.prototype.setMap.call(this,e),this.handleMapTargetChange_(),e&&e.addChangeListener(S.Z.TARGET,this.boundHandleMapTargetChange_)},e.prototype.handleMapTargetChange_=function(){for(var t=this.documentListeners_,e=0,n=t.length;e<n;++e)(0,s.bN)(t[e]);t.length=0;var r=this.getMap();if(r){var i=r.getOwnerDocument();for(k(i)?this.element.classList.remove(p.Qi):this.element.classList.add(p.Qi),e=0,n=E.length;e<n;++e)t.push((0,s.oL)(i,E[e],this.handleFullScreenChange_,this));this.handleFullScreenChange_()}},e}(c);var M=n(1856),O=n(6162),R=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),I="projection",L="coordinateFormat";const F=function(t){function e(e){var n=this,r=e||{},i=document.createElement("div");i.className=void 0!==r.className?r.className:"ol-mouse-position",(n=t.call(this,{element:i,render:r.render,target:r.target})||this).on,n.once,n.un,n.addChangeListener(I,n.handleProjectionChanged_),r.coordinateFormat&&n.setCoordinateFormat(r.coordinateFormat),r.projection&&n.setProjection(r.projection);var o=!0,a="&#160;";return"undefinedHTML"in r?(void 0!==r.undefinedHTML&&(a=r.undefinedHTML),o=!!a):"placeholder"in r&&(!1===r.placeholder?o=!1:a=String(r.placeholder)),n.placeholder_=a,n.renderOnMouseOut_=o,n.renderedHTML_=i.innerHTML,n.mapProjection_=null,n.transform_=null,n}return R(e,t),e.prototype.handleProjectionChanged_=function(){this.transform_=null},e.prototype.getCoordinateFormat=function(){return this.get(L)},e.prototype.getProjection=function(){return this.get(I)},e.prototype.handleMouseMove=function(t){var e=this.getMap();this.updateHTML_(e.getEventPixel(t))},e.prototype.handleMouseOut=function(t){this.updateHTML_(null)},e.prototype.setMap=function(e){if(t.prototype.setMap.call(this,e),e){var n=e.getViewport();this.listenerKeys.push((0,s.oL)(n,M.Z.POINTERMOVE,this.handleMouseMove,this)),this.renderOnMouseOut_&&this.listenerKeys.push((0,s.oL)(n,M.Z.POINTEROUT,this.handleMouseOut,this)),this.updateHTML_(null)}},e.prototype.setCoordinateFormat=function(t){this.set(L,t)},e.prototype.setProjection=function(t){this.set(I,(0,O.get)(t))},e.prototype.updateHTML_=function(t){var e=this.placeholder_;if(t&&this.mapProjection_){if(!this.transform_){var n=this.getProjection();this.transform_=n?(0,O.getTransformFromProjections)(this.mapProjection_,n):O.identityTransform}var r=this.getMap().getCoordinateFromPixelInternal(t);if(r){var i=(0,O.getUserProjection)();i&&(this.transform_=(0,O.getTransformFromProjections)(this.mapProjection_,i)),this.transform_(r,r);var o=this.getCoordinateFormat();e=o?o(r):r.toString()}}this.renderedHTML_&&e===this.renderedHTML_||(this.element.innerHTML=e,this.renderedHTML_=e)},e.prototype.render=function(t){var e=t.frameState;e?this.mapProjection_!=e.viewState.projection&&(this.mapProjection_=e.viewState.projection,this.transform_=null):this.mapProjection_=null},e}(c);var N=n(1972),D=n(3606),z=n(2270),Z=n(2353),j=n(6087),G=n(1586),B=n(6596),U=n(5098),V=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),q=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return V(e,t),e.prototype.createRenderer=function(){return new N.Z(this)},e}(Z.Z);const W=function(t){function e(e){var n=this,r=e||{};(n=t.call(this,{element:document.createElement("div"),render:r.render,target:r.target})||this).boundHandleRotationChanged_=n.handleRotationChanged_.bind(n),n.collapsed_=void 0===r.collapsed||r.collapsed,n.collapsible_=void 0===r.collapsible||r.collapsible,n.collapsible_||(n.collapsed_=!1),n.rotateWithView_=void 0!==r.rotateWithView&&r.rotateWithView,n.viewExtent_=void 0;var i=void 0!==r.className?r.className:"ol-overviewmap",o=void 0!==r.tipLabel?r.tipLabel:"Overview map",a=void 0!==r.collapseLabel?r.collapseLabel:"‹";"string"==typeof a?(n.collapseLabel_=document.createElement("span"),n.collapseLabel_.textContent=a):n.collapseLabel_=a;var s=void 0!==r.label?r.label:"›";"string"==typeof s?(n.label_=document.createElement("span"),n.label_.textContent=s):n.label_=s;var l=n.collapsible_&&!n.collapsed_?n.collapseLabel_:n.label_,u=document.createElement("button");u.setAttribute("type","button"),u.title=o,u.appendChild(l),u.addEventListener(h.Z.CLICK,n.handleClick_.bind(n),!1),n.ovmapDiv_=document.createElement("div"),n.ovmapDiv_.className="ol-overviewmap-map",n.view_=r.view,n.ovmap_=new q({view:r.view});var c=n.ovmap_;r.layers&&r.layers.forEach((function(t){c.addLayer(t)}));var d=document.createElement("div");d.className="ol-overviewmap-box",d.style.boxSizing="border-box",n.boxOverlay_=new z.Z({position:[0,0],positioning:"center-center",element:d}),n.ovmap_.addOverlay(n.boxOverlay_);var f=i+" "+p.XV+" "+p.hg+(n.collapsed_&&n.collapsible_?" "+p.hN:"")+(n.collapsible_?"":" ol-uncollapsible"),g=n.element;g.className=f,g.appendChild(n.ovmapDiv_),g.appendChild(u);var m=n,y=n.boxOverlay_,v=n.boxOverlay_.getElement(),_=function(t){var e,n={clientX:(e=t).clientX,clientY:e.clientY},r=c.getEventCoordinateInternal(n);y.setPosition(r)},b=function(t){var e=c.getEventCoordinateInternal(t);m.getMap().getView().setCenterInternal(e),window.removeEventListener("mousemove",_),window.removeEventListener("mouseup",b)};return v.addEventListener("mousedown",(function(){window.addEventListener("mousemove",_),window.addEventListener("mouseup",b)})),n}return V(e,t),e.prototype.setMap=function(e){var n=this.getMap();if(e!==n){if(n){var r=n.getView();r&&this.unbindView_(r),this.ovmap_.setTarget(null)}if(t.prototype.setMap.call(this,e),e){this.ovmap_.setTarget(this.ovmapDiv_),this.listenerKeys.push((0,s.oL)(e,D.Z.PROPERTYCHANGE,this.handleMapPropertyChange_,this));var i=e.getView();i&&(this.bindView_(i),i.isDef()&&(this.ovmap_.updateSize(),this.resetExtent_())),this.ovmap_.isRendered()||this.updateBoxAfterOvmapIsRendered_()}}},e.prototype.handleMapPropertyChange_=function(t){if(t.key===S.Z.VIEW){var e=t.oldValue;e&&this.unbindView_(e);var n=this.getMap().getView();this.bindView_(n)}else this.ovmap_.isRendered()||t.key!==S.Z.TARGET&&t.key!==S.Z.SIZE||this.ovmap_.updateSize()},e.prototype.bindView_=function(t){if(!this.view_){var e=new j.ZP({projection:t.getProjection()});this.ovmap_.setView(e)}t.addChangeListener(G.Z.ROTATION,this.boundHandleRotationChanged_),this.handleRotationChanged_()},e.prototype.unbindView_=function(t){t.removeChangeListener(G.Z.ROTATION,this.boundHandleRotationChanged_)},e.prototype.handleRotationChanged_=function(){this.rotateWithView_&&this.ovmap_.getView().setRotation(this.getMap().getView().getRotation())},e.prototype.validateExtent_=function(){var t=this.getMap(),e=this.ovmap_;if(t.isRendered()&&e.isRendered()){var n=t.getSize(),r=t.getView().calculateExtentInternal(n);if(!this.viewExtent_||!(0,B.fS)(r,this.viewExtent_)){this.viewExtent_=r;var i=e.getSize(),o=e.getView().calculateExtentInternal(i),a=e.getPixelFromCoordinateInternal((0,B.rL)(r)),s=e.getPixelFromCoordinateInternal((0,B.w$)(r)),l=Math.abs(a[0]-s[0]),u=Math.abs(a[1]-s[1]),c=i[0],h=i[1];l<.1*c||u<.1*h||l>.75*c||u>.75*h?this.resetExtent_():(0,B.r4)(o,r)||this.recenter_()}}},e.prototype.resetExtent_=function(){var t=this.getMap(),e=this.ovmap_,n=t.getSize(),r=t.getView().calculateExtentInternal(n),i=e.getView(),o=Math.log(7.5)/Math.LN2,a=1/(.1*Math.pow(2,o/2));(0,B.H9)(r,a),i.fitInternal((0,U.oJ)(r))},e.prototype.recenter_=function(){var t=this.getMap(),e=this.ovmap_,n=t.getView();e.getView().setCenterInternal(n.getCenterInternal())},e.prototype.updateBox_=function(){var t=this.getMap(),e=this.ovmap_;if(t.isRendered()&&e.isRendered()){var n=t.getSize(),r=t.getView(),i=e.getView(),o=this.rotateWithView_?0:-r.getRotation(),a=this.boxOverlay_,s=this.boxOverlay_.getElement(),l=r.getCenterInternal(),u=r.getResolution(),c=i.getResolution(),h=n[0]*u/c,p=n[1]*u/c;if(a.setPosition(l),s){s.style.width=h+"px",s.style.height=p+"px";var d="rotate("+o+"rad)";s.style.transform=d}}},e.prototype.updateBoxAfterOvmapIsRendered_=function(){this.ovmapPostrenderKey_||(this.ovmapPostrenderKey_=(0,s.Vx)(this.ovmap_,o.Z.POSTRENDER,(function(t){delete this.ovmapPostrenderKey_,this.updateBox_()}),this))},e.prototype.handleClick_=function(t){t.preventDefault(),this.handleToggle_()},e.prototype.handleToggle_=function(){this.element.classList.toggle(p.hN),this.collapsed_?(0,l.$H)(this.collapseLabel_,this.label_):(0,l.$H)(this.label_,this.collapseLabel_),this.collapsed_=!this.collapsed_;var t=this.ovmap_;if(!this.collapsed_){if(t.isRendered())return this.viewExtent_=void 0,void t.render();t.updateSize(),this.resetExtent_(),this.updateBoxAfterOvmapIsRendered_()}},e.prototype.getCollapsible=function(){return this.collapsible_},e.prototype.setCollapsible=function(t){this.collapsible_!==t&&(this.collapsible_=t,this.element.classList.toggle("ol-uncollapsible"),!t&&this.collapsed_&&this.handleToggle_())},e.prototype.setCollapsed=function(t){this.collapsible_&&this.collapsed_!==t&&this.handleToggle_()},e.prototype.getCollapsed=function(){return this.collapsed_},e.prototype.getRotateWithView=function(){return this.rotateWithView_},e.prototype.setRotateWithView=function(t){this.rotateWithView_!==t&&(this.rotateWithView_=t,0!==this.getMap().getView().getRotation()&&(this.rotateWithView_?this.handleRotationChanged_():this.ovmap_.getView().setRotation(0),this.viewExtent_=void 0,this.validateExtent_(),this.updateBox_()))},e.prototype.getOverviewMap=function(){return this.ovmap_},e.prototype.render=function(t){this.validateExtent_(),this.updateBox_()},e}(c);var H=n(2418),X=n(9162),K=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Y="units",Q="degrees",$="metric",J=[1,2,5],tt=25.4/.28;const et=function(t){function e(e){var n=this,r=e||{},i=void 0!==r.className?r.className:r.bar?"ol-scale-bar":"ol-scale-line";return(n=t.call(this,{element:document.createElement("div"),render:r.render,target:r.target})||this).on,n.once,n.un,n.innerElement_=document.createElement("div"),n.innerElement_.className=i+"-inner",n.element.className=i+" "+p.XV,n.element.appendChild(n.innerElement_),n.viewState_=null,n.minWidth_=void 0!==r.minWidth?r.minWidth:64,n.maxWidth_=r.maxWidth,n.renderedVisible_=!1,n.renderedWidth_=void 0,n.renderedHTML_="",n.addChangeListener(Y,n.handleUnitsChanged_),n.setUnits(r.units||$),n.scaleBar_=r.bar||!1,n.scaleBarSteps_=r.steps||4,n.scaleBarText_=r.text||!1,n.dpi_=r.dpi||void 0,n}return K(e,t),e.prototype.getUnits=function(){return this.get(Y)},e.prototype.handleUnitsChanged_=function(){this.updateElement_()},e.prototype.setUnits=function(t){this.set(Y,t)},e.prototype.setDpi=function(t){this.dpi_=t},e.prototype.updateElement_=function(){var t=this.viewState_;if(t){var e=t.center,n=t.projection,r=this.getUnits(),i=r==Q?H.ZP.DEGREES:H.ZP.METERS,o=(0,O.getPointResolution)(n,t.resolution,e,i),a=this.minWidth_*(this.dpi_||tt)/tt,s=void 0!==this.maxWidth_?this.maxWidth_*(this.dpi_||tt)/tt:void 0,l=a*o,u="";if(r==Q){var c=O.METERS_PER_UNIT[H.ZP.DEGREES];(l*=c)<c/60?(u="″",o*=3600):l<c?(u="′",o*=60):u="°"}else"imperial"==r?l<.9144?(u="in",o/=.0254):l<1609.344?(u="ft",o/=.3048):(u="mi",o/=1609.344):"nautical"==r?(o/=1852,u="NM"):r==$?l<.001?(u="μm",o*=1e6):l<1?(u="mm",o*=1e3):l<1e3?u="m":(u="km",o/=1e3):"us"==r?l<.9144?(u="in",o*=39.37):l<1609.344?(u="ft",o/=.30480061):(u="mi",o/=1609.3472):(0,X.h)(!1,33);for(var h,p,d,f,g,m,y,v=3*Math.floor(Math.log(a*o)/Math.log(10));;){d=Math.floor(v/3);var _=Math.pow(10,d);if(h=J[(v%3+3)%3]*_,p=Math.round(h/o),isNaN(p))return this.element.style.display="none",void(this.renderedVisible_=!1);if(void 0!==s&&p>=s){h=f,p=g,d=m;break}if(p>=a)break;f=h,g=p,m=d,++v}y=this.scaleBar_?this.createScaleBar(p,h,u):h.toFixed(d<0?-d:0)+" "+u,this.renderedHTML_!=y&&(this.innerElement_.innerHTML=y,this.renderedHTML_=y),this.renderedWidth_!=p&&(this.innerElement_.style.width=p+"px",this.renderedWidth_=p),this.renderedVisible_||(this.element.style.display="",this.renderedVisible_=!0)}else this.renderedVisible_&&(this.element.style.display="none",this.renderedVisible_=!1)},e.prototype.createScaleBar=function(t,e,n){for(var r="1 : "+Math.round(this.getScaleForResolution()).toLocaleString(),i=[],o=t/this.scaleBarSteps_,a="ol-scale-singlebar-odd",s=0;s<this.scaleBarSteps_;s++)0===s&&i.push(this.createMarker("absolute",s)),i.push('<div><div class="ol-scale-singlebar '+a+'" style="width: '+o+'px;"></div>'+this.createMarker("relative",s)+(s%2==0||2===this.scaleBarSteps_?this.createStepText(s,t,!1,e,n):"")+"</div>"),s===this.scaleBarSteps_-1&&i.push(this.createStepText(s+1,t,!0,e,n)),a="ol-scale-singlebar-odd"===a?"ol-scale-singlebar-even":"ol-scale-singlebar-odd";return'<div style="display: flex;">'+(this.scaleBarText_?'<div class="ol-scale-text" style="width: '+t+'px;">'+r+"</div>":"")+i.join("")+"</div>"},e.prototype.createMarker=function(t,e){return'<div class="ol-scale-step-marker" style="position: '+t+";top: "+("absolute"===t?3:-10)+'px;"></div>'},e.prototype.createStepText=function(t,e,n,r,i){var o=(0===t?0:Math.round(r/this.scaleBarSteps_*t*100)/100)+(0===t?"":" "+i);return'<div class="ol-scale-step-text" style="margin-left: '+(0===t?-3:e/this.scaleBarSteps_*-1)+"px;text-align: "+(0===t?"left":"center")+"; min-width: "+(0===t?0:e/this.scaleBarSteps_*2)+"px;left: "+(n?e+"px":"unset")+';">'+o+"</div>"},e.prototype.getScaleForResolution=function(){var t=(0,O.getPointResolution)(this.viewState_.projection,this.viewState_.resolution,this.viewState_.center,H.ZP.METERS),e=this.dpi_||tt;return parseFloat(t.toString())*(1e3/25.4)*e},e.prototype.render=function(t){var e=t.frameState;this.viewState_=e?e.viewState:null,this.updateElement_()},e}(c);var nt=n(8007),rt=n(9025),it=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const ot=function(t){function e(e){var n=this,r=e||{};(n=t.call(this,{element:document.createElement("div"),render:r.render})||this).dragListenerKeys_=[],n.currentResolution_=void 0,n.direction_=0,n.dragging_,n.heightLimit_=0,n.widthLimit_=0,n.startX_,n.startY_,n.thumbSize_=null,n.sliderInitialized_=!1,n.duration_=void 0!==r.duration?r.duration:200;var i=void 0!==r.className?r.className:"ol-zoomslider",o=document.createElement("button");o.setAttribute("type","button"),o.className=i+"-thumb "+p.XV;var a=n.element;return a.className=i+" "+p.XV+" "+p.hg,a.appendChild(o),a.addEventListener(M.Z.POINTERDOWN,n.handleDraggerStart_.bind(n),!1),a.addEventListener(M.Z.POINTERMOVE,n.handleDraggerDrag_.bind(n),!1),a.addEventListener(M.Z.POINTERUP,n.handleDraggerEnd_.bind(n),!1),a.addEventListener(h.Z.CLICK,n.handleContainerClick_.bind(n),!1),o.addEventListener(h.Z.CLICK,rt.UW,!1),n}return it(e,t),e.prototype.setMap=function(e){t.prototype.setMap.call(this,e),e&&e.render()},e.prototype.initSlider_=function(){var t=this.element,e=t.offsetWidth,n=t.offsetHeight;if(0===e&&0===n)return this.sliderInitialized_=!1;var r=getComputedStyle(t);e-=parseFloat(r.paddingRight)+parseFloat(r.paddingLeft),n-=parseFloat(r.paddingTop)+parseFloat(r.paddingBottom);var i=t.firstElementChild,o=getComputedStyle(i),a=i.offsetWidth+parseFloat(o.marginRight)+parseFloat(o.marginLeft),s=i.offsetHeight+parseFloat(o.marginTop)+parseFloat(o.marginBottom);return this.thumbSize_=[a,s],e>n?(this.direction_=1,this.widthLimit_=e-a):(this.direction_=0,this.heightLimit_=n-s),this.sliderInitialized_=!0},e.prototype.handleContainerClick_=function(t){var e=this.getMap().getView(),n=this.getRelativePosition_(t.offsetX-this.thumbSize_[0]/2,t.offsetY-this.thumbSize_[1]/2),r=this.getResolutionForPosition_(n),i=e.getConstrainedZoom(e.getZoomForResolution(r));e.animateInternal({zoom:i,duration:this.duration_,easing:v.Vv})},e.prototype.handleDraggerStart_=function(t){if(!this.dragging_&&t.target===this.element.firstElementChild){var e=this.element.firstElementChild;if(this.getMap().getView().beginInteraction(),this.startX_=t.clientX-parseFloat(e.style.left),this.startY_=t.clientY-parseFloat(e.style.top),this.dragging_=!0,0===this.dragListenerKeys_.length){var n=this.handleDraggerDrag_,r=this.handleDraggerEnd_,i=this.getMap().getOwnerDocument();this.dragListenerKeys_.push((0,s.oL)(i,M.Z.POINTERMOVE,n,this),(0,s.oL)(i,M.Z.POINTERUP,r,this))}}},e.prototype.handleDraggerDrag_=function(t){if(this.dragging_){var e=t.clientX-this.startX_,n=t.clientY-this.startY_,r=this.getRelativePosition_(e,n);this.currentResolution_=this.getResolutionForPosition_(r),this.getMap().getView().setResolution(this.currentResolution_)}},e.prototype.handleDraggerEnd_=function(t){this.dragging_&&(this.getMap().getView().endInteraction(),this.dragging_=!1,this.startX_=void 0,this.startY_=void 0,this.dragListenerKeys_.forEach(s.bN),this.dragListenerKeys_.length=0)},e.prototype.setThumbPosition_=function(t){var e=this.getPositionForResolution_(t),n=this.element.firstElementChild;1==this.direction_?n.style.left=this.widthLimit_*e+"px":n.style.top=this.heightLimit_*e+"px"},e.prototype.getRelativePosition_=function(t,e){var n;return n=1===this.direction_?t/this.widthLimit_:e/this.heightLimit_,(0,nt.uZ)(n,0,1)},e.prototype.getResolutionForPosition_=function(t){return this.getMap().getView().getResolutionForValueFunction()(1-t)},e.prototype.getPositionForResolution_=function(t){var e=this.getMap().getView().getValueForResolutionFunction();return(0,nt.uZ)(1-e(t),0,1)},e.prototype.render=function(t){if(t.frameState&&(this.sliderInitialized_||this.initSlider_())){var e=t.frameState.viewState.resolution;this.currentResolution_=e,this.setThumbPosition_(e)}},e}(c);var at=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const st=function(t){function e(e){var n=this,r=e||{};(n=t.call(this,{element:document.createElement("div"),target:r.target})||this).extent=r.extent?r.extent:null;var i=void 0!==r.className?r.className:"ol-zoom-extent",o=void 0!==r.label?r.label:"E",a=void 0!==r.tipLabel?r.tipLabel:"Fit to extent",s=document.createElement("button");s.setAttribute("type","button"),s.title=a,s.appendChild("string"==typeof o?document.createTextNode(o):o),s.addEventListener(h.Z.CLICK,n.handleClick_.bind(n),!1);var l=i+" "+p.XV+" "+p.hg,u=n.element;return u.className=l,u.appendChild(s),n}return at(e,t),e.prototype.handleClick_=function(t){t.preventDefault(),this.handleZoomToExtent()},e.prototype.handleZoomToExtent=function(){var t=this.getMap().getView(),e=this.extent?this.extent:t.getProjection().getExtent();t.fitInternal((0,U.oJ)(e))},e}(c);function lt(t){var e=t||{},n=new y.Z;return(void 0===e.zoom||e.zoom)&&n.push(new x(e.zoomOptions)),(void 0===e.rotate||e.rotate)&&n.push(new b(e.rotateOptions)),(void 0===e.attribution||e.attribution)&&n.push(new m(e.attributionOptions)),n}},2253:(t,e,n)=>{"use strict";n.d(e,{Bs:()=>g,Cf:()=>m,Ed:()=>s,I8:()=>u,IH:()=>a,TE:()=>f,U1:()=>h,bA:()=>p,bI:()=>d,fS:()=>c,jk:()=>y,oL:()=>l});var r=n(6596),i=n(8007),o=n(8580);function a(t,e){return t[0]+=+e[0],t[1]+=+e[1],t}function s(t,e){var n=e.getRadius(),r=e.getCenter(),i=r[0],o=r[1],a=t[0]-i,s=t[1]-o;0===a&&0===s&&(a=1);var l=Math.sqrt(a*a+s*s);return[i+n*a/l,o+n*s/l]}function l(t,e){var n,r,i=t[0],o=t[1],a=e[0],s=e[1],l=a[0],u=a[1],c=s[0],h=s[1],p=c-l,d=h-u,f=0===p&&0===d?0:(p*(i-l)+d*(o-u))/(p*p+d*d||0);return f<=0?(n=l,r=u):f>=1?(n=c,r=h):(n=l+f*p,r=u+f*d),[n,r]}function u(t,e,n){var r=(0,i.$W)(e+180,360)-180,a=Math.abs(3600*r),s=n||0,l=Math.pow(10,s),u=Math.floor(a/3600),c=Math.floor((a-3600*u)/60),h=a-3600*u-60*c;return(h=Math.ceil(h*l)/l)>=60&&(h=0,c+=1),c>=60&&(c=0,u+=1),u+"° "+(0,o.v)(c,2)+"′ "+(0,o.v)(h,2,s)+"″"+(0==r?"":" "+t.charAt(r<0?1:0))}function c(t,e){for(var n=!0,r=t.length-1;r>=0;--r)if(t[r]!=e[r]){n=!1;break}return n}function h(t,e){var n=Math.cos(e),r=Math.sin(e),i=t[0]*n-t[1]*r,o=t[1]*n+t[0]*r;return t[0]=i,t[1]=o,t}function p(t,e){return t[0]*=e,t[1]*=e,t}function d(t,e){var n=t[0]-e[0],r=t[1]-e[1];return n*n+r*r}function f(t,e){return Math.sqrt(d(t,e))}function g(t,e){return d(t,l(t,e))}function m(t,e){if(e.canWrapX()){var n=(0,r.dz)(e.getExtent()),i=y(t,e,n);i&&(t[0]-=i*n)}return t}function y(t,e,n){var i=e.getExtent(),o=0;if(e.canWrapX()&&(t[0]<i[0]||t[0]>i[2])){var a=n||(0,r.dz)(i);o=Math.floor((t[0]-i[0])/a)}return o}},8055:(t,e,n)=>{"use strict";n.d(e,{$A:()=>i,Qi:()=>a,XV:()=>o,hN:()=>l,hg:()=>s,oj:()=>r,p:()=>h});var r="ol-hidden",i="ol-selectable",o="ol-unselectable",a="ol-unsupported",s="ol-control",l="ol-collapsed",u=new RegExp(["^\\s*(?=(?:(?:[-a-z]+\\s*){0,2}(italic|oblique))?)","(?=(?:(?:[-a-z]+\\s*){0,2}(small-caps))?)","(?=(?:(?:[-a-z]+\\s*){0,2}(bold(?:er)?|lighter|[1-9]00 ))?)","(?:(?:normal|\\1|\\2|\\3)\\s*){0,3}((?:xx?-)?","(?:small|large)|medium|smaller|larger|[\\.\\d]+(?:\\%|in|[cem]m|ex|p[ctx]))","(?:\\s*\\/\\s*(normal|[\\.\\d]+(?:\\%|in|[cem]m|ex|p[ctx])?))","?\\s*([-,\\\"\\'\\sa-z]+?)\\s*$"].join(""),"i"),c=["style","variant","weight","size","lineHeight","family"],h=function(t){var e=t.match(u);if(!e)return null;for(var n={lineHeight:"normal",size:"1.2em",style:"normal",weight:"normal",variant:"normal"},r=0,i=c.length;r<i;++r){var o=e[r+1];void 0!==o&&(n[c[r]]=o)}return n.families=n.family.split(/,\s?/),n}},9220:(t,e,n)=>{"use strict";n.d(e,{$H:()=>l,E4:()=>i,Pb:()=>s,ZF:()=>u,ep:()=>c,hF:()=>h,iO:()=>a,jy:()=>o});var r=n(7119);function i(t,e,n,i){var o;return o=n&&n.length?n.shift():r.Id?new OffscreenCanvas(t||300,e||300):document.createElement("canvas"),t&&(o.width=t),e&&(o.height=e),o.getContext("2d",i)}function o(t){var e=t.canvas;e.width=1,e.height=1,t.clearRect(0,0,1,1)}function a(t){var e=t.offsetWidth,n=getComputedStyle(t);return e+(parseInt(n.marginLeft,10)+parseInt(n.marginRight,10))}function s(t){var e=t.offsetHeight,n=getComputedStyle(t);return e+(parseInt(n.marginTop,10)+parseInt(n.marginBottom,10))}function l(t,e){var n=e.parentNode;n&&n.replaceChild(t,e)}function u(t){return t&&t.parentNode?t.parentNode.removeChild(t):null}function c(t){for(;t.lastChild;)t.removeChild(t.lastChild)}function h(t,e){for(var n=t.childNodes,r=0;;++r){var i=n[r],o=e[r];if(!i&&!o)break;i!==o&&(i?o?t.insertBefore(o,i):(t.removeChild(i),--r):t.appendChild(o))}}},7898:(t,e,n)=>{"use strict";function r(t){return Math.pow(t,3)}function i(t){return 1-r(1-t)}function o(t){return 3*t*t-2*t*t*t}function a(t){return t}n.d(e,{GE:()=>a,Vv:()=>i,YQ:()=>r,rd:()=>o})},8196:(t,e,n)=>{"use strict";n.d(e,{Vx:()=>o,bN:()=>a,oL:()=>i});var r=n(6534);function i(t,e,n,r,i){if(r&&r!==t&&(n=n.bind(r)),i){var o=n;n=function(){t.removeEventListener(e,n),o.apply(this,arguments)}}var a={target:t,type:e,listener:n};return t.addEventListener(e,n),a}function o(t,e,n,r){return i(t,e,n,r,!0)}function a(t){t&&t.target&&(t.target.removeEventListener(t.type,t.listener),(0,r.ZH)(t))}},9025:(t,e,n)=>{"use strict";function r(t){t.stopPropagation()}n.d(e,{UW:()=>r,ZP:()=>i});const i=function(){function t(t){this.propagationStopped,this.defaultPrevented,this.type=t,this.target=null}return t.prototype.preventDefault=function(){this.defaultPrevented=!0},t.prototype.stopPropagation=function(){this.propagationStopped=!0},t}()},2001:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});const r={CHANGE:"change",ERROR:"error",BLUR:"blur",CLEAR:"clear",CONTEXTMENU:"contextmenu",CLICK:"click",DBLCLICK:"dblclick",DRAGENTER:"dragenter",DRAGOVER:"dragover",DROP:"drop",FOCUS:"focus",KEYDOWN:"keydown",KEYPRESS:"keypress",LOAD:"load",RESIZE:"resize",TOUCHMOVE:"touchmove",WHEEL:"wheel"}},952:(t,e,n)=>{"use strict";n.d(e,{Z:()=>u});var r,i=n(5466),o=n(9025),a=n(6764),s=n(6534),l=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});const u=function(t){function e(e){var n=t.call(this)||this;return n.eventTarget_=e,n.pendingRemovals_=null,n.dispatching_=null,n.listeners_=null,n}return l(e,t),e.prototype.addEventListener=function(t,e){if(t&&e){var n=this.listeners_||(this.listeners_={}),r=n[t]||(n[t]=[]);-1===r.indexOf(e)&&r.push(e)}},e.prototype.dispatchEvent=function(t){var e="string"==typeof t,n=e?t:t.type,r=this.listeners_&&this.listeners_[n];if(r){var i=e?new o.ZP(t):t;i.target||(i.target=this.eventTarget_||this);var s,l=this.dispatching_||(this.dispatching_={}),u=this.pendingRemovals_||(this.pendingRemovals_={});n in l||(l[n]=0,u[n]=0),++l[n];for(var c=0,h=r.length;c<h;++c)if(!1===(s="handleEvent"in r[c]?r[c].handleEvent(i):r[c].call(this,i))||i.propagationStopped){s=!1;break}if(0==--l[n]){var p=u[n];for(delete u[n];p--;)this.removeEventListener(n,a.Zn);delete l[n]}return s}},e.prototype.disposeInternal=function(){this.listeners_&&(0,s.ZH)(this.listeners_)},e.prototype.getListeners=function(t){return this.listeners_&&this.listeners_[t]||void 0},e.prototype.hasListener=function(t){return!!this.listeners_&&(t?t in this.listeners_:Object.keys(this.listeners_).length>0)},e.prototype.removeEventListener=function(t,e){var n=this.listeners_&&this.listeners_[t];if(n){var r=n.indexOf(e);-1!==r&&(this.pendingRemovals_&&t in this.pendingRemovals_?(n[r]=a.Zn,++this.pendingRemovals_[t]):(n.splice(r,1),0===n.length&&delete this.listeners_[t]))}},e}(i.Z)},122:(t,e,n)=>{"use strict";n.r(e),n.d(e,{all:()=>s,altKeyOnly:()=>l,altShiftKeysOnly:()=>u,always:()=>p,click:()=>d,doubleClick:()=>v,focus:()=>c,focusWithTabindex:()=>h,mouseActionButton:()=>f,mouseOnly:()=>S,never:()=>g,noModifierKeys:()=>_,penOnly:()=>E,platformModifierKeyOnly:()=>b,pointerMove:()=>m,primaryAction:()=>k,shiftKeyOnly:()=>w,singleClick:()=>y,targetNotEditable:()=>x,touchOnly:()=>C});var r=n(4161),i=n(6764),o=n(7119),a=n(9162);function s(t){var e=arguments;return function(t){for(var n=!0,r=0,i=e.length;r<i&&(n=n&&e[r](t));++r);return n}}var l=function(t){var e=t.originalEvent;return e.altKey&&!(e.metaKey||e.ctrlKey)&&!e.shiftKey},u=function(t){var e=t.originalEvent;return e.altKey&&!(e.metaKey||e.ctrlKey)&&e.shiftKey},c=function(t){var e=t.map.getTargetElement(),n=t.map.getOwnerDocument().activeElement;return e.contains(n)},h=function(t){return!t.map.getTargetElement().hasAttribute("tabindex")||c(t)},p=i.uX,d=function(t){return t.type==r.Z.CLICK},f=function(t){var e=t.originalEvent;return 0==e.button&&!(o.G$&&o.tK&&e.ctrlKey)},g=i.Dv,m=function(t){return"pointermove"==t.type},y=function(t){return t.type==r.Z.SINGLECLICK},v=function(t){return t.type==r.Z.DBLCLICK},_=function(t){var e=t.originalEvent;return!e.altKey&&!(e.metaKey||e.ctrlKey)&&!e.shiftKey},b=function(t){var e=t.originalEvent;return!e.altKey&&(o.tK?e.metaKey:e.ctrlKey)&&!e.shiftKey},w=function(t){var e=t.originalEvent;return!e.altKey&&!(e.metaKey||e.ctrlKey)&&e.shiftKey},x=function(t){var e=t.originalEvent,n=e.target.tagName;return"INPUT"!==n&&"SELECT"!==n&&"TEXTAREA"!==n&&!e.target.isContentEditable},S=function(t){var e=t.originalEvent;return(0,a.h)(void 0!==e,56),"mouse"==e.pointerType},C=function(t){var e=t.originalEvent;return(0,a.h)(void 0!==e,56),"touch"===e.pointerType},E=function(t){var e=t.originalEvent;return(0,a.h)(void 0!==e,56),"pen"===e.pointerType},k=function(t){var e=t.originalEvent;return(0,a.h)(void 0!==e,56),e.isPrimary&&0===e.button}},6596:(t,e,n)=>{"use strict";n.d(e,{Cf:()=>U,Cr:()=>R,EO:()=>Z,Ed:()=>I,GN:()=>y,H6:()=>C,H9:()=>j,HK:()=>m,I7:()=>G,MV:()=>V,Ne:()=>B,T9:()=>f,Wj:()=>w,Xv:()=>F,YN:()=>g,b8:()=>u,bg:()=>E,d9:()=>s,dY:()=>O,dz:()=>N,f3:()=>a,fS:()=>v,g0:()=>T,hC:()=>k,hI:()=>o,iW:()=>_,jE:()=>h,kK:()=>D,l7:()=>b,lJ:()=>d,p8:()=>M,pX:()=>p,qP:()=>x,qf:()=>l,qg:()=>P,r4:()=>c,rL:()=>L,w$:()=>A,xb:()=>z});var r=n(2524),i=n(9162);function o(t){for(var e=[1/0,1/0,-1/0,-1/0],n=0,r=t.length;n<r;++n)w(e,t[n]);return e}function a(t,e,n){return n?(n[0]=t[0]-e,n[1]=t[1]-e,n[2]=t[2]+e,n[3]=t[3]+e,n):[t[0]-e,t[1]-e,t[2]+e,t[3]+e]}function s(t,e){return e?(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e):t.slice()}function l(t,e,n){var r,i;return(r=e<t[0]?t[0]-e:t[2]<e?e-t[2]:0)*r+(i=n<t[1]?t[1]-n:t[3]<n?n-t[3]:0)*i}function u(t,e){return h(t,e[0],e[1])}function c(t,e){return t[0]<=e[0]&&e[2]<=t[2]&&t[1]<=e[1]&&e[3]<=t[3]}function h(t,e,n){return t[0]<=e&&e<=t[2]&&t[1]<=n&&n<=t[3]}function p(t,e){var n=t[0],i=t[1],o=t[2],a=t[3],s=e[0],l=e[1],u=r.Z.UNKNOWN;return s<n?u|=r.Z.LEFT:s>o&&(u|=r.Z.RIGHT),l<i?u|=r.Z.BELOW:l>a&&(u|=r.Z.ABOVE),u===r.Z.UNKNOWN&&(u=r.Z.INTERSECTING),u}function d(){return[1/0,1/0,-1/0,-1/0]}function f(t,e,n,r,i){return i?(i[0]=t,i[1]=e,i[2]=n,i[3]=r,i):[t,e,n,r]}function g(t){return f(1/0,1/0,-1/0,-1/0,t)}function m(t,e){var n=t[0],r=t[1];return f(n,r,n,r,e)}function y(t,e,n,r,i){return x(g(i),t,e,n,r)}function v(t,e){return t[0]==e[0]&&t[2]==e[2]&&t[1]==e[1]&&t[3]==e[3]}function _(t,e,n){return Math.abs(t[0]-e[0])<n&&Math.abs(t[2]-e[2])<n&&Math.abs(t[1]-e[1])<n&&Math.abs(t[3]-e[3])<n}function b(t,e){return e[0]<t[0]&&(t[0]=e[0]),e[2]>t[2]&&(t[2]=e[2]),e[1]<t[1]&&(t[1]=e[1]),e[3]>t[3]&&(t[3]=e[3]),t}function w(t,e){e[0]<t[0]&&(t[0]=e[0]),e[0]>t[2]&&(t[2]=e[0]),e[1]<t[1]&&(t[1]=e[1]),e[1]>t[3]&&(t[3]=e[1])}function x(t,e,n,r,i){for(;n<r;n+=i)S(t,e[n],e[n+1]);return t}function S(t,e,n){t[0]=Math.min(t[0],e),t[1]=Math.min(t[1],n),t[2]=Math.max(t[2],e),t[3]=Math.max(t[3],n)}function C(t,e){var n;return(n=e(k(t)))||(n=e(A(t)))||(n=e(F(t)))?n:(n=e(L(t)))||!1}function E(t){var e=0;return z(t)||(e=N(t)*R(t)),e}function k(t){return[t[0],t[1]]}function A(t){return[t[2],t[1]]}function P(t){return[(t[0]+t[2])/2,(t[1]+t[3])/2]}function T(t,e){var n;return"bottom-left"===e?n=k(t):"bottom-right"===e?n=A(t):"top-left"===e?n=L(t):"top-right"===e?n=F(t):(0,i.h)(!1,13),n}function M(t,e,n,r,i){var o=O(t,e,n,r),a=o[0],s=o[1],l=o[2],u=o[3],c=o[4],h=o[5],p=o[6],d=o[7];return f(Math.min(a,l,c,p),Math.min(s,u,h,d),Math.max(a,l,c,p),Math.max(s,u,h,d),i)}function O(t,e,n,r){var i=e*r[0]/2,o=e*r[1]/2,a=Math.cos(n),s=Math.sin(n),l=i*a,u=i*s,c=o*a,h=o*s,p=t[0],d=t[1];return[p-l+h,d-u-c,p-l-h,d-u+c,p+l-h,d+u+c,p+l+h,d+u-c,p-l+h,d-u-c]}function R(t){return t[3]-t[1]}function I(t,e,n){var r=n||[1/0,1/0,-1/0,-1/0];return D(t,e)?(t[0]>e[0]?r[0]=t[0]:r[0]=e[0],t[1]>e[1]?r[1]=t[1]:r[1]=e[1],t[2]<e[2]?r[2]=t[2]:r[2]=e[2],t[3]<e[3]?r[3]=t[3]:r[3]=e[3]):g(r),r}function L(t){return[t[0],t[3]]}function F(t){return[t[2],t[3]]}function N(t){return t[2]-t[0]}function D(t,e){return t[0]<=e[2]&&t[2]>=e[0]&&t[1]<=e[3]&&t[3]>=e[1]}function z(t){return t[2]<t[0]||t[3]<t[1]}function Z(t,e){return e?(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e):t}function j(t,e){var n=(t[2]-t[0])/2*(e-1),r=(t[3]-t[1])/2*(e-1);t[0]-=n,t[2]+=n,t[1]-=r,t[3]+=r}function G(t,e,n){var i=!1,o=p(t,e),a=p(t,n);if(o===r.Z.INTERSECTING||a===r.Z.INTERSECTING)i=!0;else{var s=t[0],l=t[1],u=t[2],c=t[3],h=e[0],d=e[1],f=n[0],g=n[1],m=(g-d)/(f-h),y=void 0,v=void 0;a&r.Z.ABOVE&&!(o&r.Z.ABOVE)&&(i=(y=f-(g-c)/m)>=s&&y<=u),i||!(a&r.Z.RIGHT)||o&r.Z.RIGHT||(i=(v=g-(f-u)*m)>=l&&v<=c),i||!(a&r.Z.BELOW)||o&r.Z.BELOW||(i=(y=f-(g-l)/m)>=s&&y<=u),i||!(a&r.Z.LEFT)||o&r.Z.LEFT||(i=(v=g-(f-s)*m)>=l&&v<=c)}return i}function B(t,e,n,r){var i=[];if(r>1)for(var o=t[2]-t[0],a=t[3]-t[1],s=0;s<r;++s)i.push(t[0]+o*s/r,t[1],t[2],t[1]+a*s/r,t[2]-o*s/r,t[3],t[0],t[3]-a*s/r);else i=[t[0],t[1],t[2],t[1],t[2],t[3],t[0],t[3]];e(i,i,2);for(var l=[],u=[],c=(s=0,i.length);s<c;s+=2)l.push(i[s]),u.push(i[s+1]);return function(t,e,n){return f(Math.min.apply(null,t),Math.min.apply(null,e),Math.max.apply(null,t),Math.max.apply(null,e),n)}(l,u,n)}function U(t,e){var n=e.getExtent(),r=P(t);if(e.canWrapX()&&(r[0]<n[0]||r[0]>=n[2])){var i=N(n),o=Math.floor((r[0]-n[0])/i)*i;t[0]-=o,t[2]-=o}return t}function V(t,e){if(e.canWrapX()){var n=e.getExtent();if(!isFinite(t[0])||!isFinite(t[2]))return[[n[0],t[1],n[2],t[3]]];U(t,e);var r=N(n);if(N(t)>r)return[[n[0],t[1],n[2],t[3]]];if(t[0]<n[0])return[[t[0]+r,t[1],n[2],t[3]],[n[0],t[1],t[2],t[3]]];if(t[2]>n[2])return[[t[0],t[1],n[2],t[3]],[n[0],t[1],t[2]-r,t[3]]]}return[t]}},2524:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});const r={UNKNOWN:0,INTERSECTING:1,ABOVE:2,RIGHT:4,BELOW:8,LEFT:16}},2740:(t,e,n)=>{"use strict";n.d(e,{Be:()=>o,ov:()=>i});var r=n(6764);function i(t,e,n,r,i,o,a){var s=new XMLHttpRequest;s.open("GET","function"==typeof t?t(n,r,i):t,!0),"arraybuffer"==e.getType()&&(s.responseType="arraybuffer"),s.withCredentials=false,s.onload=function(t){if(!s.status||s.status>=200&&s.status<300){var r=e.getType(),l=void 0;"json"==r||"text"==r?l=s.responseText:"xml"==r?(l=s.responseXML)||(l=(new DOMParser).parseFromString(s.responseText,"application/xml")):"arraybuffer"==r&&(l=s.response),l?o(e.readFeatures(l,{extent:n,featureProjection:i}),e.readProjection(l)):a()}else a()},s.onerror=a,s.send()}function o(t,e){return function(n,o,a,s,l){var u=this;i(t,e,n,o,a,(function(t,e){u.addFeatures(t),void 0!==s&&s(t)}),l||r.Zn)}}},303:(t,e,n)=>{"use strict";n.r(e),n.d(e,{EsriJSON:()=>P,GML:()=>Ot,GPX:()=>de,GeoJSON:()=>T.Z,IGC:()=>Se,IIIFInfo:()=>Ie.Z,KML:()=>zr,MVT:()=>Zr.Z,OWS:()=>oi,Polyline:()=>hi,TopoJSON:()=>bi,WFS:()=>Co,WKB:()=>To,WKT:()=>Bo,WMSCapabilities:()=>fa,WMSGetFeatureInfo:()=>ma,WMTSCapabilities:()=>La});var r,i=n(2540),o=n(8359),a=n(7655),s=n(1584),l=n(1964),u=n(8483),c=n(3802),h=n(3656),p=n(971),d=n(5098),f=n(9162),g=n(6534),m=n(6596),y=n(4363),v=n(6162),_=n(4636),b=n(1399),w=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),x={Point:function(t){return void 0!==t.m&&void 0!==t.z?new p.Z([t.x,t.y,t.z,t.m],o.Z.XYZM):void 0!==t.z?new p.Z([t.x,t.y,t.z],o.Z.XYZ):void 0!==t.m?new p.Z([t.x,t.y,t.m],o.Z.XYM):new p.Z([t.x,t.y])},LineString:function(t){var e=E(t);return new s.Z(t.paths[0],e)},Polygon:function(t){var e=E(t);return new d.ZP(t.rings,e)},MultiPoint:function(t){var e=E(t);return new c.Z(t.points,e)},MultiLineString:function(t){var e=E(t);return new u.Z(t.paths,e)},MultiPolygon:function(t){var e=E(t);return new h.Z(t.rings,e)}},S={Point:function(t,e){var n,r=t.getCoordinates(),i=t.getLayout();return i===o.Z.XYZ?n={x:r[0],y:r[1],z:r[2]}:i===o.Z.XYM?n={x:r[0],y:r[1],m:r[2]}:i===o.Z.XYZM?n={x:r[0],y:r[1],z:r[2],m:r[3]}:i===o.Z.XY?n={x:r[0],y:r[1]}:(0,f.h)(!1,34),n},LineString:function(t,e){var n=k(t);return{hasZ:n.hasZ,hasM:n.hasM,paths:[t.getCoordinates()]}},Polygon:function(t,e){var n=k(t);return{hasZ:n.hasZ,hasM:n.hasM,rings:t.getCoordinates(!1)}},MultiPoint:function(t,e){var n=k(t);return{hasZ:n.hasZ,hasM:n.hasM,points:t.getCoordinates()}},MultiLineString:function(t,e){var n=k(t);return{hasZ:n.hasZ,hasM:n.hasM,paths:t.getCoordinates()}},MultiPolygon:function(t,e){for(var n=k(t),r=t.getCoordinates(!1),i=[],o=0;o<r.length;o++)for(var a=r[o].length-1;a>=0;a--)i.push(r[o][a]);return{hasZ:n.hasZ,hasM:n.hasM,rings:i}}};function C(t,e){var n,r,i;if(!t)return null;if("number"==typeof t.x&&"number"==typeof t.y)i="Point";else if(t.points)i="MultiPoint";else if(t.paths)i=1===t.paths.length?"LineString":"MultiLineString";else if(t.rings){var o=t,a=E(o),s=function(t,e){var n,r,i=[],o=[],a=[];for(n=0,r=t.length;n<r;++n)i.length=0,(0,y.Sg)(i,0,t[n],e.length),(0,_.bt)(i,0,i.length,e.length)?o.push([t[n]]):a.push(t[n]);for(;a.length;){var s=a.shift(),u=!1;for(n=o.length-1;n>=0;n--){var c=o[n][0];if((0,m.r4)(new l.Z(c).getExtent(),new l.Z(s).getExtent())){o[n].push(s),u=!0;break}}u||o.push([s.reverse()])}return o}(o.rings,a);1===s.length?(i="Polygon",t=(0,g.f0)({},t,((n={}).rings=s[0],n))):(i="MultiPolygon",t=(0,g.f0)({},t,((r={}).rings=s,r)))}var u=x[i];return(0,b.fI)(u(t),!1,e)}function E(t){var e=o.Z.XY;return!0===t.hasZ&&!0===t.hasM?e=o.Z.XYZM:!0===t.hasZ?e=o.Z.XYZ:!0===t.hasM&&(e=o.Z.XYM),e}function k(t){var e=t.getLayout();return{hasZ:e===o.Z.XYZ||e===o.Z.XYZM,hasM:e===o.Z.XYM||e===o.Z.XYZM}}function A(t,e){return(0,S[t.getType()])((0,b.fI)(t,!0,e),e)}const P=function(t){function e(e){var n=this,r=e||{};return(n=t.call(this)||this).geometryName_=r.geometryName,n}return w(e,t),e.prototype.readFeatureFromObject=function(t,e,n){var r=t,o=C(r.geometry,e),a=new i.Z;if(this.geometryName_&&a.setGeometryName(this.geometryName_),a.setGeometry(o),r.attributes){a.setProperties(r.attributes,!0);var s=r.attributes[n];void 0!==s&&a.setId(s)}return a},e.prototype.readFeaturesFromObject=function(t,e){var n=e||{};if(t.features){for(var r=[],i=t.features,o=0,a=i.length;o<a;++o)r.push(this.readFeatureFromObject(i[o],n,t.objectIdFieldName));return r}return[this.readFeatureFromObject(t,n)]},e.prototype.readGeometryFromObject=function(t,e){return C(t,e)},e.prototype.readProjectionFromObject=function(t){if(t.spatialReference&&void 0!==t.spatialReference.wkid){var e=t.spatialReference.wkid;return(0,v.get)("EPSG:"+e)}return null},e.prototype.writeGeometryObject=function(t,e){return A(t,this.adaptOptions(e))},e.prototype.writeFeatureObject=function(t,e){e=this.adaptOptions(e);var n={};if(!t.hasProperties())return n.attributes={},n;var r=t.getProperties(),i=t.getGeometry();if(i){n.geometry=A(i,e);var o=e&&(e.dataProjection||e.featureProjection);o&&(n.geometry.spatialReference={wkid:Number((0,v.get)(o).getCode().split(":").pop())}),delete r[t.getGeometryName()]}return(0,g.xb)(r)?n.attributes={}:n.attributes=r,n},e.prototype.writeFeaturesObject=function(t,e){e=this.adaptOptions(e);for(var n=[],r=0,i=t.length;r<i;++r)n.push(this.writeFeatureObject(t[r],e));return{features:n}},e}(a.Z);var T=n(5347),M=n(2637),O=n(2182),R="http://www.w3.org/2001/XMLSchema-instance";function I(t,e){return et().createElementNS(t,e)}function L(t,e){return F(t,e,[]).join("")}function F(t,e,n){if(t.nodeType==Node.CDATA_SECTION_NODE||t.nodeType==Node.TEXT_NODE)e?n.push(String(t.nodeValue).replace(/(\r\n|\r|\n)/g,"")):n.push(t.nodeValue);else{var r=void 0;for(r=t.firstChild;r;r=r.nextSibling)F(r,e,n)}return n}function N(t){return"documentElement"in t}function D(t){return(new DOMParser).parseFromString(t,"application/xml")}function z(t,e){return function(n,r){var i=t.call(void 0!==e?e:this,n,r);if(void 0!==i){var o=r[r.length-1];(0,O.l7)(o,i)}}}function Z(t,e){return function(n,r){var i=t.call(void 0!==e?e:this,n,r);void 0!==i&&r[r.length-1].push(i)}}function j(t,e){return function(n,r){var i=t.call(void 0!==e?e:this,n,r);void 0!==i&&(r[r.length-1]=i)}}function G(t,e,n){return function(r,i){var o=t.call(void 0!==n?n:this,r,i);if(void 0!==o){var a=i[i.length-1],s=void 0!==e?e:r.localName,l=void 0;s in a?l=a[s]:(l=[],a[s]=l),l.push(o)}}}function B(t,e,n){return function(r,i){var o=t.call(void 0!==n?n:this,r,i);void 0!==o&&(i[i.length-1][void 0!==e?e:r.localName]=o)}}function U(t,e){return function(n,r,i){t.call(void 0!==e?e:this,n,r,i),i[i.length-1].node.appendChild(n)}}function V(t,e){var n,r;return function(e,i,o){if(void 0===n){n={};var a={};a[e.localName]=t,n[e.namespaceURI]=a,r=q(e.localName)}Q(n,r,i,o)}}function q(t,e){var n=t;return function(t,r,i){var o=r[r.length-1].node,a=n;return void 0===a&&(a=i),I(void 0!==e?e:o.namespaceURI,a)}}var W=q();function H(t,e){for(var n=e.length,r=new Array(n),i=0;i<n;++i)r[i]=t[e[i]];return r}function X(t,e,n){var r,i,o=void 0!==n?n:{};for(r=0,i=t.length;r<i;++r)o[t[r]]=e;return o}function K(t,e,n,r){var i;for(i=e.firstElementChild;i;i=i.nextElementSibling){var o=t[i.namespaceURI];if(void 0!==o){var a=o[i.localName];void 0!==a&&a.call(r,i,n)}}}function Y(t,e,n,r,i){return r.push(t),K(e,n,r,i),r.pop()}function Q(t,e,n,r,i,o){for(var a,s,l=(void 0!==i?i:n).length,u=0;u<l;++u)void 0!==(a=n[u])&&void 0!==(s=e.call(void 0!==o?o:this,a,r,void 0!==i?i[u]:void 0))&&t[s.namespaceURI][s.localName].call(o,s,a,r)}function $(t,e,n,r,i,o,a){return i.push(t),Q(e,n,r,i,o,a),i.pop()}var J=void 0,tt=void 0;function et(){return void 0===tt&&"undefined"!=typeof document&&(tt=document.implementation.createDocument("","",null)),tt}var nt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const rt=function(t){function e(){var e=t.call(this)||this;return e.xmlSerializer_=(void 0===J&&"undefined"!=typeof XMLSerializer&&(J=new XMLSerializer),J),e}return nt(e,t),e.prototype.getType=function(){return"xml"},e.prototype.readFeature=function(t,e){if(t){if("string"==typeof t){var n=D(t);return this.readFeatureFromDocument(n,e)}return N(t)?this.readFeatureFromDocument(t,e):this.readFeatureFromNode(t,e)}return null},e.prototype.readFeatureFromDocument=function(t,e){var n=this.readFeaturesFromDocument(t,e);return n.length>0?n[0]:null},e.prototype.readFeatureFromNode=function(t,e){return null},e.prototype.readFeatures=function(t,e){if(t){if("string"==typeof t){var n=D(t);return this.readFeaturesFromDocument(n,e)}return N(t)?this.readFeaturesFromDocument(t,e):this.readFeaturesFromNode(t,e)}return[]},e.prototype.readFeaturesFromDocument=function(t,e){for(var n=[],r=t.firstChild;r;r=r.nextSibling)r.nodeType==Node.ELEMENT_NODE&&(0,O.l7)(n,this.readFeaturesFromNode(r,e));return n},e.prototype.readFeaturesFromNode=function(t,e){return(0,M.O3)()},e.prototype.readGeometry=function(t,e){if(t){if("string"==typeof t){var n=D(t);return this.readGeometryFromDocument(n,e)}return N(t)?this.readGeometryFromDocument(t,e):this.readGeometryFromNode(t,e)}return null},e.prototype.readGeometryFromDocument=function(t,e){return null},e.prototype.readGeometryFromNode=function(t,e){return null},e.prototype.readProjection=function(t){if(t){if("string"==typeof t){var e=D(t);return this.readProjectionFromDocument(e)}return N(t)?this.readProjectionFromDocument(t):this.readProjectionFromNode(t)}return null},e.prototype.readProjectionFromDocument=function(t){return this.dataProjection},e.prototype.readProjectionFromNode=function(t){return this.dataProjection},e.prototype.writeFeature=function(t,e){var n=this.writeFeatureNode(t,e);return this.xmlSerializer_.serializeToString(n)},e.prototype.writeFeatureNode=function(t,e){return null},e.prototype.writeFeatures=function(t,e){var n=this.writeFeaturesNode(t,e);return this.xmlSerializer_.serializeToString(n)},e.prototype.writeFeaturesNode=function(t,e){return null},e.prototype.writeGeometry=function(t,e){var n=this.writeGeometryNode(t,e);return this.xmlSerializer_.serializeToString(n)},e.prototype.writeGeometryNode=function(t,e){return null},e}(b.ZP);var it=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ot="http://www.opengis.net/gml",at=/^[\s\xa0]*$/,st=function(t){function e(e){var n=t.call(this)||this,r=e||{};return n.featureType=r.featureType,n.featureNS=r.featureNS,n.srsName=r.srsName,n.schemaLocation="",n.FEATURE_COLLECTION_PARSERS={},n.FEATURE_COLLECTION_PARSERS[n.namespace]={featureMember:Z(n.readFeaturesInternal),featureMembers:j(n.readFeaturesInternal)},n.supportedMediaTypes=["application/gml+xml"],n}return it(e,t),e.prototype.readFeaturesInternal=function(t,e){var n=t.localName,r=null;if("FeatureCollection"==n)r=Y([],this.FEATURE_COLLECTION_PARSERS,t,e,this);else if("featureMembers"==n||"featureMember"==n||"member"==n){var i=e[0],o=i.featureType,a=i.featureNS;if(!o&&t.childNodes){o=[],a={};for(var s=0,l=t.childNodes.length;s<l;++s){var u=t.childNodes[s];if(1===u.nodeType){var c=u.nodeName.split(":").pop();if(-1===o.indexOf(c)){var h="",p=0,d=u.namespaceURI;for(var f in a){if(a[f]===d){h=f;break}++p}h||(a[h="p"+p]=d),o.push(h+":"+c)}}}"featureMember"!=n&&(i.featureType=o,i.featureNS=a)}if("string"==typeof a){var g=a;(a={}).p0=g}var m={},y=Array.isArray(o)?o:[o];for(var v in a){var _={};for(s=0,l=y.length;s<l;++s)(-1===y[s].indexOf(":")?"p0":y[s].split(":")[0])===v&&(_[y[s].split(":").pop()]="featureMembers"==n?Z(this.readFeatureElement,this):j(this.readFeatureElement,this));m[a[v]]=_}r=Y("featureMember"==n||"member"==n?void 0:[],m,t,e)}return null===r&&(r=[]),r},e.prototype.readGeometryOrExtent=function(t,e){var n=e[0];return n.srsName=t.firstElementChild.getAttribute("srsName"),n.srsDimension=t.firstElementChild.getAttribute("srsDimension"),Y(null,this.GEOMETRY_PARSERS,t,e,this)},e.prototype.readExtentElement=function(t,e){var n=e[0],r=this.readGeometryOrExtent(t,e);return r?(0,b.lj)(r,n):void 0},e.prototype.readGeometryElement=function(t,e){var n=e[0],r=this.readGeometryOrExtent(t,e);return r?(0,b.fI)(r,!1,n):void 0},e.prototype.readFeatureElementInternal=function(t,e,n){for(var r,o={},a=t.firstElementChild;a;a=a.nextElementSibling){var s=void 0,l=a.localName;0===a.childNodes.length||1===a.childNodes.length&&(3===a.firstChild.nodeType||4===a.firstChild.nodeType)?(s=L(a,!1),at.test(s)&&(s=void 0)):(n&&(s="boundedBy"===l?this.readExtentElement(a,e):this.readGeometryElement(a,e)),s?"boundedBy"!==l&&(r=l):s=this.readFeatureElementInternal(a,e,!1));var u=a.attributes.length;if(u>0){s={_content_:s};for(var c=0;c<u;c++)s[a.attributes[c].name]=a.attributes[c].value}o[l]?(o[l]instanceof Array||(o[l]=[o[l]]),o[l].push(s)):o[l]=s}if(n){var h=new i.Z(o);r&&h.setGeometryName(r);var p=t.getAttribute("fid")||function(t,e,n){return t.getAttributeNS(e,"id")||""}(t,this.namespace);return p&&h.setId(p),h}return o},e.prototype.readFeatureElement=function(t,e){return this.readFeatureElementInternal(t,e,!0)},e.prototype.readPoint=function(t,e){var n=this.readFlatCoordinatesFromNode(t,e);if(n)return new p.Z(n,o.Z.XYZ)},e.prototype.readMultiPoint=function(t,e){var n=Y([],this.MULTIPOINT_PARSERS,t,e,this);return n?new c.Z(n):void 0},e.prototype.readMultiLineString=function(t,e){var n=Y([],this.MULTILINESTRING_PARSERS,t,e,this);if(n)return new u.Z(n)},e.prototype.readMultiPolygon=function(t,e){var n=Y([],this.MULTIPOLYGON_PARSERS,t,e,this);if(n)return new h.Z(n)},e.prototype.pointMemberParser=function(t,e){K(this.POINTMEMBER_PARSERS,t,e,this)},e.prototype.lineStringMemberParser=function(t,e){K(this.LINESTRINGMEMBER_PARSERS,t,e,this)},e.prototype.polygonMemberParser=function(t,e){K(this.POLYGONMEMBER_PARSERS,t,e,this)},e.prototype.readLineString=function(t,e){var n=this.readFlatCoordinatesFromNode(t,e);return n?new s.Z(n,o.Z.XYZ):void 0},e.prototype.readFlatLinearRing=function(t,e){return Y(null,this.GEOMETRY_FLAT_COORDINATES_PARSERS,t,e,this)||void 0},e.prototype.readLinearRing=function(t,e){var n=this.readFlatCoordinatesFromNode(t,e);if(n)return new l.Z(n,o.Z.XYZ)},e.prototype.readPolygon=function(t,e){var n=Y([null],this.FLAT_LINEAR_RINGS_PARSERS,t,e,this);if(n&&n[0]){var r,i=n[0],a=[i.length],s=void 0;for(s=1,r=n.length;s<r;++s)(0,O.l7)(i,n[s]),a.push(i.length);return new d.ZP(i,o.Z.XYZ,a)}},e.prototype.readFlatCoordinatesFromNode=function(t,e){return Y(null,this.GEOMETRY_FLAT_COORDINATES_PARSERS,t,e,this)},e.prototype.readGeometryFromNode=function(t,e){return this.readGeometryElement(t,[this.getReadOptions(t,e||{})])||null},e.prototype.readFeaturesFromNode=function(t,e){var n={featureType:this.featureType,featureNS:this.featureNS};return e&&(0,g.f0)(n,this.getReadOptions(t,e)),this.readFeaturesInternal(t,[n])||[]},e.prototype.readProjectionFromNode=function(t){return(0,v.get)(this.srsName?this.srsName:t.firstElementChild.getAttribute("srsName"))},e}(rt);st.prototype.namespace=ot,st.prototype.FLAT_LINEAR_RINGS_PARSERS={"http://www.opengis.net/gml":{}},st.prototype.GEOMETRY_FLAT_COORDINATES_PARSERS={"http://www.opengis.net/gml":{}},st.prototype.GEOMETRY_PARSERS={"http://www.opengis.net/gml":{}},st.prototype.MULTIPOINT_PARSERS={"http://www.opengis.net/gml":{pointMember:Z(st.prototype.pointMemberParser),pointMembers:Z(st.prototype.pointMemberParser)}},st.prototype.MULTILINESTRING_PARSERS={"http://www.opengis.net/gml":{lineStringMember:Z(st.prototype.lineStringMemberParser),lineStringMembers:Z(st.prototype.lineStringMemberParser)}},st.prototype.MULTIPOLYGON_PARSERS={"http://www.opengis.net/gml":{polygonMember:Z(st.prototype.polygonMemberParser),polygonMembers:Z(st.prototype.polygonMemberParser)}},st.prototype.POINTMEMBER_PARSERS={"http://www.opengis.net/gml":{Point:Z(st.prototype.readFlatCoordinatesFromNode)}},st.prototype.LINESTRINGMEMBER_PARSERS={"http://www.opengis.net/gml":{LineString:Z(st.prototype.readLineString)}},st.prototype.POLYGONMEMBER_PARSERS={"http://www.opengis.net/gml":{Polygon:Z(st.prototype.readPolygon)}},st.prototype.RING_PARSERS={"http://www.opengis.net/gml":{LinearRing:j(st.prototype.readFlatLinearRing)}};const lt=st;var ut=n(8580);function ct(t){return ht(L(t,!1))}function ht(t){var e=/^\s*(true|1)|(false|0)\s*$/.exec(t);return e?void 0!==e[1]||!1:void 0}function pt(t){var e=L(t,!1),n=Date.parse(e);return isNaN(n)?void 0:n/1e3}function dt(t){return ft(L(t,!1))}function ft(t){var e=/^\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)\s*$/i.exec(t);return e?parseFloat(e[1]):void 0}function gt(t){return mt(L(t,!1))}function mt(t){var e=/^\s*(\d+)\s*$/.exec(t);return e?parseInt(e[1],10):void 0}function yt(t){return L(t,!1).trim()}function vt(t,e){wt(t,e?"1":"0")}function _t(t,e){var n=e.toPrecision();t.appendChild(et().createTextNode(n))}function bt(t,e){var n=e.toString();t.appendChild(et().createTextNode(n))}function wt(t,e){t.appendChild(et().createTextNode(e))}var xt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),St={MultiLineString:"lineStringMember",MultiCurve:"curveMember",MultiPolygon:"polygonMember",MultiSurface:"surfaceMember"},Ct=function(t){function e(e){var n=this,r=e||{};return(n=t.call(this,r)||this).FEATURE_COLLECTION_PARSERS[ot].featureMember=Z(n.readFeaturesInternal),n.schemaLocation=r.schemaLocation?r.schemaLocation:"http://www.opengis.net/gml http://schemas.opengis.net/gml/2.1.2/feature.xsd",n}return xt(e,t),e.prototype.readFlatCoordinates=function(t,e){var n=L(t,!1).replace(/^\s*|\s*$/g,""),r=e[0].srsName,i="enu";if(r){var o=(0,v.get)(r);o&&(i=o.getAxisOrientation())}for(var a=n.trim().split(/\s+/),s=[],l=0,u=a.length;l<u;l++){var c=a[l].split(/,+/),h=parseFloat(c[0]),p=parseFloat(c[1]),d=3===c.length?parseFloat(c[2]):0;"en"===i.substr(0,2)?s.push(h,p,d):s.push(p,h,d)}return s},e.prototype.readBox=function(t,e){var n=Y([null],this.BOX_PARSERS_,t,e,this);return(0,m.T9)(n[1][0],n[1][1],n[1][3],n[1][4])},e.prototype.innerBoundaryIsParser=function(t,e){var n=Y(void 0,this.RING_PARSERS,t,e,this);n&&e[e.length-1].push(n)},e.prototype.outerBoundaryIsParser=function(t,e){var n=Y(void 0,this.RING_PARSERS,t,e,this);n&&(e[e.length-1][0]=n)},e.prototype.GEOMETRY_NODE_FACTORY_=function(t,e,n){var r,i=e[e.length-1],o=i.multiSurface,a=i.surface,s=i.multiCurve;return Array.isArray(t)?r="Envelope":"MultiPolygon"===(r=t.getType())&&!0===o?r="MultiSurface":"Polygon"===r&&!0===a?r="Surface":"MultiLineString"===r&&!0===s&&(r="MultiCurve"),I("http://www.opengis.net/gml",r)},e.prototype.writeFeatureElement=function(t,e,n){var r=e.getId();r&&t.setAttribute("fid",r);var i=n[n.length-1],o=i.featureNS,a=e.getGeometryName();i.serializers||(i.serializers={},i.serializers[o]={});var s=[],l=[];if(e.hasProperties()){var u=e.getProperties();for(var c in u){var h=u[c];null!==h&&(s.push(c),l.push(h),c==a||"function"==typeof h.getSimplifiedGeometry?c in i.serializers[o]||(i.serializers[o][c]=U(this.writeGeometryElement,this)):c in i.serializers[o]||(i.serializers[o][c]=U(wt)))}}var p=(0,g.f0)({},i);p.node=t,$(p,i.serializers,q(void 0,o),l,n,s)},e.prototype.writeCurveOrLineString=function(t,e,n){var r=n[n.length-1].srsName;if("LineStringSegment"!==t.nodeName&&r&&t.setAttribute("srsName",r),"LineString"===t.nodeName||"LineStringSegment"===t.nodeName){var i=this.createCoordinatesNode_(t.namespaceURI);t.appendChild(i),this.writeCoordinates_(i,e,n)}else if("Curve"===t.nodeName){var o=I(t.namespaceURI,"segments");t.appendChild(o),this.writeCurveSegments_(o,e,n)}},e.prototype.writeLineStringOrCurveMember=function(t,e,n){var r=this.GEOMETRY_NODE_FACTORY_(e,n);r&&(t.appendChild(r),this.writeCurveOrLineString(r,e,n))},e.prototype.writeMultiCurveOrLineString=function(t,e,n){var r=n[n.length-1],i=r.hasZ,o=r.srsName,a=r.curve;o&&t.setAttribute("srsName",o);var s=e.getLineStrings();$({node:t,hasZ:i,srsName:o,curve:a},this.LINESTRINGORCURVEMEMBER_SERIALIZERS,this.MULTIGEOMETRY_MEMBER_NODE_FACTORY_,s,n,void 0,this)},e.prototype.writeGeometryElement=function(t,e,n){var r,i=n[n.length-1],o=(0,g.f0)({},i);o.node=t,r=Array.isArray(e)?(0,b.lj)(e,i):(0,b.fI)(e,!0,i),$(o,this.GEOMETRY_SERIALIZERS,this.GEOMETRY_NODE_FACTORY_,[r],n,void 0,this)},e.prototype.createCoordinatesNode_=function(t){var e=I(t,"coordinates");return e.setAttribute("decimal","."),e.setAttribute("cs",","),e.setAttribute("ts"," "),e},e.prototype.writeCoordinates_=function(t,e,n){for(var r=n[n.length-1],i=r.hasZ,o=r.srsName,a=e.getCoordinates(),s=a.length,l=new Array(s),u=0;u<s;++u){var c=a[u];l[u]=this.getCoords_(c,o,i)}wt(t,l.join(" "))},e.prototype.writeCurveSegments_=function(t,e,n){var r=I(t.namespaceURI,"LineStringSegment");t.appendChild(r),this.writeCurveOrLineString(r,e,n)},e.prototype.writeSurfaceOrPolygon=function(t,e,n){var r=n[n.length-1],i=r.hasZ,o=r.srsName;if("PolygonPatch"!==t.nodeName&&o&&t.setAttribute("srsName",o),"Polygon"===t.nodeName||"PolygonPatch"===t.nodeName){var a=e.getLinearRings();$({node:t,hasZ:i,srsName:o},this.RING_SERIALIZERS,this.RING_NODE_FACTORY_,a,n,void 0,this)}else if("Surface"===t.nodeName){var s=I(t.namespaceURI,"patches");t.appendChild(s),this.writeSurfacePatches_(s,e,n)}},e.prototype.RING_NODE_FACTORY_=function(t,e,n){var r=e[e.length-1],i=r.node,o=r.exteriorWritten;return void 0===o&&(r.exteriorWritten=!0),I(i.namespaceURI,void 0!==o?"innerBoundaryIs":"outerBoundaryIs")},e.prototype.writeSurfacePatches_=function(t,e,n){var r=I(t.namespaceURI,"PolygonPatch");t.appendChild(r),this.writeSurfaceOrPolygon(r,e,n)},e.prototype.writeRing=function(t,e,n){var r=I(t.namespaceURI,"LinearRing");t.appendChild(r),this.writeLinearRing(r,e,n)},e.prototype.getCoords_=function(t,e,n){var r="enu";e&&(r=(0,v.get)(e).getAxisOrientation());var i="en"===r.substr(0,2)?t[0]+","+t[1]:t[1]+","+t[0];return n&&(i+=","+(t[2]||0)),i},e.prototype.writePoint=function(t,e,n){var r=n[n.length-1],i=r.hasZ,o=r.srsName;o&&t.setAttribute("srsName",o);var a=this.createCoordinatesNode_(t.namespaceURI);t.appendChild(a);var s=e.getCoordinates();wt(a,this.getCoords_(s,o,i))},e.prototype.writeMultiPoint=function(t,e,n){var r=n[n.length-1],i=r.hasZ,o=r.srsName;o&&t.setAttribute("srsName",o);var a=e.getPoints();$({node:t,hasZ:i,srsName:o},this.POINTMEMBER_SERIALIZERS,q("pointMember"),a,n,void 0,this)},e.prototype.writePointMember=function(t,e,n){var r=I(t.namespaceURI,"Point");t.appendChild(r),this.writePoint(r,e,n)},e.prototype.writeLinearRing=function(t,e,n){var r=n[n.length-1].srsName;r&&t.setAttribute("srsName",r);var i=this.createCoordinatesNode_(t.namespaceURI);t.appendChild(i),this.writeCoordinates_(i,e,n)},e.prototype.writeMultiSurfaceOrPolygon=function(t,e,n){var r=n[n.length-1],i=r.hasZ,o=r.srsName,a=r.surface;o&&t.setAttribute("srsName",o);var s=e.getPolygons();$({node:t,hasZ:i,srsName:o,surface:a},this.SURFACEORPOLYGONMEMBER_SERIALIZERS,this.MULTIGEOMETRY_MEMBER_NODE_FACTORY_,s,n,void 0,this)},e.prototype.writeSurfaceOrPolygonMember=function(t,e,n){var r=this.GEOMETRY_NODE_FACTORY_(e,n);r&&(t.appendChild(r),this.writeSurfaceOrPolygon(r,e,n))},e.prototype.writeEnvelope=function(t,e,n){var r=n[n.length-1].srsName;r&&t.setAttribute("srsName",r);var i=[e[0]+" "+e[1],e[2]+" "+e[3]];$({node:t},this.ENVELOPE_SERIALIZERS,W,i,n,["lowerCorner","upperCorner"],this)},e.prototype.MULTIGEOMETRY_MEMBER_NODE_FACTORY_=function(t,e,n){var r=e[e.length-1].node;return I("http://www.opengis.net/gml",St[r.nodeName])},e}(lt);Ct.prototype.GEOMETRY_FLAT_COORDINATES_PARSERS={"http://www.opengis.net/gml":{coordinates:j(Ct.prototype.readFlatCoordinates)}},Ct.prototype.FLAT_LINEAR_RINGS_PARSERS={"http://www.opengis.net/gml":{innerBoundaryIs:Ct.prototype.innerBoundaryIsParser,outerBoundaryIs:Ct.prototype.outerBoundaryIsParser}},Ct.prototype.BOX_PARSERS_={"http://www.opengis.net/gml":{coordinates:Z(Ct.prototype.readFlatCoordinates)}},Ct.prototype.GEOMETRY_PARSERS={"http://www.opengis.net/gml":{Point:j(lt.prototype.readPoint),MultiPoint:j(lt.prototype.readMultiPoint),LineString:j(lt.prototype.readLineString),MultiLineString:j(lt.prototype.readMultiLineString),LinearRing:j(lt.prototype.readLinearRing),Polygon:j(lt.prototype.readPolygon),MultiPolygon:j(lt.prototype.readMultiPolygon),Box:j(Ct.prototype.readBox)}},Ct.prototype.GEOMETRY_SERIALIZERS={"http://www.opengis.net/gml":{Curve:U(Ct.prototype.writeCurveOrLineString),MultiCurve:U(Ct.prototype.writeMultiCurveOrLineString),Point:U(Ct.prototype.writePoint),MultiPoint:U(Ct.prototype.writeMultiPoint),LineString:U(Ct.prototype.writeCurveOrLineString),MultiLineString:U(Ct.prototype.writeMultiCurveOrLineString),LinearRing:U(Ct.prototype.writeLinearRing),Polygon:U(Ct.prototype.writeSurfaceOrPolygon),MultiPolygon:U(Ct.prototype.writeMultiSurfaceOrPolygon),Surface:U(Ct.prototype.writeSurfaceOrPolygon),MultiSurface:U(Ct.prototype.writeMultiSurfaceOrPolygon),Envelope:U(Ct.prototype.writeEnvelope)}},Ct.prototype.LINESTRINGORCURVEMEMBER_SERIALIZERS={"http://www.opengis.net/gml":{lineStringMember:U(Ct.prototype.writeLineStringOrCurveMember),curveMember:U(Ct.prototype.writeLineStringOrCurveMember)}},Ct.prototype.RING_SERIALIZERS={"http://www.opengis.net/gml":{outerBoundaryIs:U(Ct.prototype.writeRing),innerBoundaryIs:U(Ct.prototype.writeRing)}},Ct.prototype.POINTMEMBER_SERIALIZERS={"http://www.opengis.net/gml":{pointMember:U(Ct.prototype.writePointMember)}},Ct.prototype.SURFACEORPOLYGONMEMBER_SERIALIZERS={"http://www.opengis.net/gml":{surfaceMember:U(Ct.prototype.writeSurfaceOrPolygonMember),polygonMember:U(Ct.prototype.writeSurfaceOrPolygonMember)}},Ct.prototype.ENVELOPE_SERIALIZERS={"http://www.opengis.net/gml":{lowerCorner:U(wt),upperCorner:U(wt)}};const Et=Ct;var kt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),At={MultiLineString:"lineStringMember",MultiCurve:"curveMember",MultiPolygon:"polygonMember",MultiSurface:"surfaceMember"},Pt=function(t){function e(e){var n=this,r=e||{};return(n=t.call(this,r)||this).surface_=void 0!==r.surface&&r.surface,n.curve_=void 0!==r.curve&&r.curve,n.multiCurve_=void 0===r.multiCurve||r.multiCurve,n.multiSurface_=void 0===r.multiSurface||r.multiSurface,n.schemaLocation=r.schemaLocation?r.schemaLocation:"http://www.opengis.net/gml http://schemas.opengis.net/gml/3.1.1/profiles/gmlsfProfile/1.0.0/gmlsf.xsd",n.hasZ=void 0!==r.hasZ&&r.hasZ,n}return kt(e,t),e.prototype.readMultiCurve=function(t,e){var n=Y([],this.MULTICURVE_PARSERS,t,e,this);return n?new u.Z(n):void 0},e.prototype.readFlatCurveRing=function(t,e){for(var n=Y([],this.MULTICURVE_PARSERS,t,e,this),r=[],i=0,o=n.length;i<o;++i)(0,O.l7)(r,n[i].getFlatCoordinates());return r},e.prototype.readMultiSurface=function(t,e){var n=Y([],this.MULTISURFACE_PARSERS,t,e,this);if(n)return new h.Z(n)},e.prototype.curveMemberParser=function(t,e){K(this.CURVEMEMBER_PARSERS,t,e,this)},e.prototype.surfaceMemberParser=function(t,e){K(this.SURFACEMEMBER_PARSERS,t,e,this)},e.prototype.readPatch=function(t,e){return Y([null],this.PATCHES_PARSERS,t,e,this)},e.prototype.readSegment=function(t,e){return Y([],this.SEGMENTS_PARSERS,t,e,this)},e.prototype.readPolygonPatch=function(t,e){return Y([null],this.FLAT_LINEAR_RINGS_PARSERS,t,e,this)},e.prototype.readLineStringSegment=function(t,e){return Y([null],this.GEOMETRY_FLAT_COORDINATES_PARSERS,t,e,this)},e.prototype.interiorParser=function(t,e){var n=Y(void 0,this.RING_PARSERS,t,e,this);n&&e[e.length-1].push(n)},e.prototype.exteriorParser=function(t,e){var n=Y(void 0,this.RING_PARSERS,t,e,this);n&&(e[e.length-1][0]=n)},e.prototype.readSurface=function(t,e){var n=Y([null],this.SURFACE_PARSERS,t,e,this);if(n&&n[0]){var r,i=n[0],a=[i.length],s=void 0;for(s=1,r=n.length;s<r;++s)(0,O.l7)(i,n[s]),a.push(i.length);return new d.ZP(i,o.Z.XYZ,a)}},e.prototype.readCurve=function(t,e){var n=Y([null],this.CURVE_PARSERS,t,e,this);return n?new s.Z(n,o.Z.XYZ):void 0},e.prototype.readEnvelope=function(t,e){var n=Y([null],this.ENVELOPE_PARSERS,t,e,this);return(0,m.T9)(n[1][0],n[1][1],n[2][0],n[2][1])},e.prototype.readFlatPos=function(t,e){for(var n,r=L(t,!1),i=/^\s*([+\-]?\d*\.?\d+(?:[eE][+\-]?\d+)?)\s*/,o=[];n=i.exec(r);)o.push(parseFloat(n[1])),r=r.substr(n[0].length);if(""===r){var a=e[0].srsName,s="enu";if(a&&(s=(0,v.get)(a).getAxisOrientation()),"neu"===s){var l,u=void 0;for(u=0,l=o.length;u<l;u+=3){var c=o[u],h=o[u+1];o[u]=h,o[u+1]=c}}var p=o.length;if(2==p&&o.push(0),0!==p)return o}},e.prototype.readFlatPosList=function(t,e){var n=L(t,!1).replace(/^\s*|\s*$/g,""),r=e[0],i=r.srsName,o=r.srsDimension,a="enu";i&&(a=(0,v.get)(i).getAxisOrientation());var s,l,u,c=n.split(/\s+/),h=2;t.getAttribute("srsDimension")?h=mt(t.getAttribute("srsDimension")):t.getAttribute("dimension")?h=mt(t.getAttribute("dimension")):t.parentNode.getAttribute("srsDimension")?h=mt(t.parentNode.getAttribute("srsDimension")):o&&(h=mt(o));for(var p=[],d=0,f=c.length;d<f;d+=h)s=parseFloat(c[d]),l=parseFloat(c[d+1]),u=3===h?parseFloat(c[d+2]):0,"en"===a.substr(0,2)?p.push(s,l,u):p.push(l,s,u);return p},e.prototype.writePos_=function(t,e,n){var r=n[n.length-1],i=r.hasZ,o=i?"3":"2";t.setAttribute("srsDimension",o);var a=r.srsName,s="enu";a&&(s=(0,v.get)(a).getAxisOrientation());var l,u=e.getCoordinates();l="en"===s.substr(0,2)?u[0]+" "+u[1]:u[1]+" "+u[0],i&&(l+=" "+(u[2]||0)),wt(t,l)},e.prototype.getCoords_=function(t,e,n){var r="enu";e&&(r=(0,v.get)(e).getAxisOrientation());var i="en"===r.substr(0,2)?t[0]+" "+t[1]:t[1]+" "+t[0];return n&&(i+=" "+(t[2]||0)),i},e.prototype.writePosList_=function(t,e,n){var r=n[n.length-1],i=r.hasZ,o=i?"3":"2";t.setAttribute("srsDimension",o);for(var a,s=r.srsName,l=e.getCoordinates(),u=l.length,c=new Array(u),h=0;h<u;++h)a=l[h],c[h]=this.getCoords_(a,s,i);wt(t,c.join(" "))},e.prototype.writePoint=function(t,e,n){var r=n[n.length-1].srsName;r&&t.setAttribute("srsName",r);var i=I(t.namespaceURI,"pos");t.appendChild(i),this.writePos_(i,e,n)},e.prototype.writeEnvelope=function(t,e,n){var r=n[n.length-1].srsName;r&&t.setAttribute("srsName",r);var i=[e[0]+" "+e[1],e[2]+" "+e[3]];$({node:t},this.ENVELOPE_SERIALIZERS,W,i,n,["lowerCorner","upperCorner"],this)},e.prototype.writeLinearRing=function(t,e,n){var r=n[n.length-1].srsName;r&&t.setAttribute("srsName",r);var i=I(t.namespaceURI,"posList");t.appendChild(i),this.writePosList_(i,e,n)},e.prototype.RING_NODE_FACTORY_=function(t,e,n){var r=e[e.length-1],i=r.node,o=r.exteriorWritten;return void 0===o&&(r.exteriorWritten=!0),I(i.namespaceURI,void 0!==o?"interior":"exterior")},e.prototype.writeSurfaceOrPolygon=function(t,e,n){var r=n[n.length-1],i=r.hasZ,o=r.srsName;if("PolygonPatch"!==t.nodeName&&o&&t.setAttribute("srsName",o),"Polygon"===t.nodeName||"PolygonPatch"===t.nodeName){var a=e.getLinearRings();$({node:t,hasZ:i,srsName:o},this.RING_SERIALIZERS,this.RING_NODE_FACTORY_,a,n,void 0,this)}else if("Surface"===t.nodeName){var s=I(t.namespaceURI,"patches");t.appendChild(s),this.writeSurfacePatches_(s,e,n)}},e.prototype.writeCurveOrLineString=function(t,e,n){var r=n[n.length-1].srsName;if("LineStringSegment"!==t.nodeName&&r&&t.setAttribute("srsName",r),"LineString"===t.nodeName||"LineStringSegment"===t.nodeName){var i=I(t.namespaceURI,"posList");t.appendChild(i),this.writePosList_(i,e,n)}else if("Curve"===t.nodeName){var o=I(t.namespaceURI,"segments");t.appendChild(o),this.writeCurveSegments_(o,e,n)}},e.prototype.writeMultiSurfaceOrPolygon=function(t,e,n){var r=n[n.length-1],i=r.hasZ,o=r.srsName,a=r.surface;o&&t.setAttribute("srsName",o);var s=e.getPolygons();$({node:t,hasZ:i,srsName:o,surface:a},this.SURFACEORPOLYGONMEMBER_SERIALIZERS,this.MULTIGEOMETRY_MEMBER_NODE_FACTORY_,s,n,void 0,this)},e.prototype.writeMultiPoint=function(t,e,n){var r=n[n.length-1],i=r.srsName,o=r.hasZ;i&&t.setAttribute("srsName",i);var a=e.getPoints();$({node:t,hasZ:o,srsName:i},this.POINTMEMBER_SERIALIZERS,q("pointMember"),a,n,void 0,this)},e.prototype.writeMultiCurveOrLineString=function(t,e,n){var r=n[n.length-1],i=r.hasZ,o=r.srsName,a=r.curve;o&&t.setAttribute("srsName",o);var s=e.getLineStrings();$({node:t,hasZ:i,srsName:o,curve:a},this.LINESTRINGORCURVEMEMBER_SERIALIZERS,this.MULTIGEOMETRY_MEMBER_NODE_FACTORY_,s,n,void 0,this)},e.prototype.writeRing=function(t,e,n){var r=I(t.namespaceURI,"LinearRing");t.appendChild(r),this.writeLinearRing(r,e,n)},e.prototype.writeSurfaceOrPolygonMember=function(t,e,n){var r=this.GEOMETRY_NODE_FACTORY_(e,n);r&&(t.appendChild(r),this.writeSurfaceOrPolygon(r,e,n))},e.prototype.writePointMember=function(t,e,n){var r=I(t.namespaceURI,"Point");t.appendChild(r),this.writePoint(r,e,n)},e.prototype.writeLineStringOrCurveMember=function(t,e,n){var r=this.GEOMETRY_NODE_FACTORY_(e,n);r&&(t.appendChild(r),this.writeCurveOrLineString(r,e,n))},e.prototype.writeSurfacePatches_=function(t,e,n){var r=I(t.namespaceURI,"PolygonPatch");t.appendChild(r),this.writeSurfaceOrPolygon(r,e,n)},e.prototype.writeCurveSegments_=function(t,e,n){var r=I(t.namespaceURI,"LineStringSegment");t.appendChild(r),this.writeCurveOrLineString(r,e,n)},e.prototype.writeGeometryElement=function(t,e,n){var r,i=n[n.length-1],o=(0,g.f0)({},i);o.node=t,r=Array.isArray(e)?(0,b.lj)(e,i):(0,b.fI)(e,!0,i),$(o,this.GEOMETRY_SERIALIZERS,this.GEOMETRY_NODE_FACTORY_,[r],n,void 0,this)},e.prototype.writeFeatureElement=function(t,e,n){var r=e.getId();r&&t.setAttribute("fid",r);var i=n[n.length-1],o=i.featureNS,a=e.getGeometryName();i.serializers||(i.serializers={},i.serializers[o]={});var s=[],l=[];if(e.hasProperties()){var u=e.getProperties();for(var c in u){var h=u[c];null!==h&&(s.push(c),l.push(h),c==a||"function"==typeof h.getSimplifiedGeometry?c in i.serializers[o]||(i.serializers[o][c]=U(this.writeGeometryElement,this)):c in i.serializers[o]||(i.serializers[o][c]=U(wt)))}}var p=(0,g.f0)({},i);p.node=t,$(p,i.serializers,q(void 0,o),l,n,s)},e.prototype.writeFeatureMembers_=function(t,e,n){var r=n[n.length-1],i=r.featureType,o=r.featureNS,a={};a[o]={},a[o][i]=U(this.writeFeatureElement,this);var s=(0,g.f0)({},r);s.node=t,$(s,a,q(i,o),e,n)},e.prototype.MULTIGEOMETRY_MEMBER_NODE_FACTORY_=function(t,e,n){var r=e[e.length-1].node;return I(this.namespace,At[r.nodeName])},e.prototype.GEOMETRY_NODE_FACTORY_=function(t,e,n){var r,i=e[e.length-1],o=i.multiSurface,a=i.surface,s=i.curve,l=i.multiCurve;return Array.isArray(t)?r="Envelope":"MultiPolygon"===(r=t.getType())&&!0===o?r="MultiSurface":"Polygon"===r&&!0===a?r="Surface":"LineString"===r&&!0===s?r="Curve":"MultiLineString"===r&&!0===l&&(r="MultiCurve"),I(this.namespace,r)},e.prototype.writeGeometryNode=function(t,e){e=this.adaptOptions(e);var n=I(this.namespace,"geom"),r={node:n,hasZ:this.hasZ,srsName:this.srsName,curve:this.curve_,surface:this.surface_,multiSurface:this.multiSurface_,multiCurve:this.multiCurve_};return e&&(0,g.f0)(r,e),this.writeGeometryElement(n,t,[r]),n},e.prototype.writeFeaturesNode=function(t,e){e=this.adaptOptions(e);var n=I(this.namespace,"featureMembers");n.setAttributeNS(R,"xsi:schemaLocation",this.schemaLocation);var r={srsName:this.srsName,hasZ:this.hasZ,curve:this.curve_,surface:this.surface_,multiSurface:this.multiSurface_,multiCurve:this.multiCurve_,featureNS:this.featureNS,featureType:this.featureType};return e&&(0,g.f0)(r,e),this.writeFeatureMembers_(n,t,[r]),n},e}(lt);Pt.prototype.GEOMETRY_FLAT_COORDINATES_PARSERS={"http://www.opengis.net/gml":{pos:j(Pt.prototype.readFlatPos),posList:j(Pt.prototype.readFlatPosList),coordinates:j(Et.prototype.readFlatCoordinates)}},Pt.prototype.FLAT_LINEAR_RINGS_PARSERS={"http://www.opengis.net/gml":{interior:Pt.prototype.interiorParser,exterior:Pt.prototype.exteriorParser}},Pt.prototype.GEOMETRY_PARSERS={"http://www.opengis.net/gml":{Point:j(lt.prototype.readPoint),MultiPoint:j(lt.prototype.readMultiPoint),LineString:j(lt.prototype.readLineString),MultiLineString:j(lt.prototype.readMultiLineString),LinearRing:j(lt.prototype.readLinearRing),Polygon:j(lt.prototype.readPolygon),MultiPolygon:j(lt.prototype.readMultiPolygon),Surface:j(Pt.prototype.readSurface),MultiSurface:j(Pt.prototype.readMultiSurface),Curve:j(Pt.prototype.readCurve),MultiCurve:j(Pt.prototype.readMultiCurve),Envelope:j(Pt.prototype.readEnvelope)}},Pt.prototype.MULTICURVE_PARSERS={"http://www.opengis.net/gml":{curveMember:Z(Pt.prototype.curveMemberParser),curveMembers:Z(Pt.prototype.curveMemberParser)}},Pt.prototype.MULTISURFACE_PARSERS={"http://www.opengis.net/gml":{surfaceMember:Z(Pt.prototype.surfaceMemberParser),surfaceMembers:Z(Pt.prototype.surfaceMemberParser)}},Pt.prototype.CURVEMEMBER_PARSERS={"http://www.opengis.net/gml":{LineString:Z(lt.prototype.readLineString),Curve:Z(Pt.prototype.readCurve)}},Pt.prototype.SURFACEMEMBER_PARSERS={"http://www.opengis.net/gml":{Polygon:Z(lt.prototype.readPolygon),Surface:Z(Pt.prototype.readSurface)}},Pt.prototype.SURFACE_PARSERS={"http://www.opengis.net/gml":{patches:j(Pt.prototype.readPatch)}},Pt.prototype.CURVE_PARSERS={"http://www.opengis.net/gml":{segments:j(Pt.prototype.readSegment)}},Pt.prototype.ENVELOPE_PARSERS={"http://www.opengis.net/gml":{lowerCorner:Z(Pt.prototype.readFlatPosList),upperCorner:Z(Pt.prototype.readFlatPosList)}},Pt.prototype.PATCHES_PARSERS={"http://www.opengis.net/gml":{PolygonPatch:j(Pt.prototype.readPolygonPatch)}},Pt.prototype.SEGMENTS_PARSERS={"http://www.opengis.net/gml":{LineStringSegment:z(Pt.prototype.readLineStringSegment)}},lt.prototype.RING_PARSERS={"http://www.opengis.net/gml":{LinearRing:j(lt.prototype.readFlatLinearRing),Ring:j(Pt.prototype.readFlatCurveRing)}},Pt.prototype.writeFeatures,Pt.prototype.RING_SERIALIZERS={"http://www.opengis.net/gml":{exterior:U(Pt.prototype.writeRing),interior:U(Pt.prototype.writeRing)}},Pt.prototype.ENVELOPE_SERIALIZERS={"http://www.opengis.net/gml":{lowerCorner:U(wt),upperCorner:U(wt)}},Pt.prototype.SURFACEORPOLYGONMEMBER_SERIALIZERS={"http://www.opengis.net/gml":{surfaceMember:U(Pt.prototype.writeSurfaceOrPolygonMember),polygonMember:U(Pt.prototype.writeSurfaceOrPolygonMember)}},Pt.prototype.POINTMEMBER_SERIALIZERS={"http://www.opengis.net/gml":{pointMember:U(Pt.prototype.writePointMember)}},Pt.prototype.LINESTRINGORCURVEMEMBER_SERIALIZERS={"http://www.opengis.net/gml":{lineStringMember:U(Pt.prototype.writeLineStringOrCurveMember),curveMember:U(Pt.prototype.writeLineStringOrCurveMember)}},Pt.prototype.GEOMETRY_SERIALIZERS={"http://www.opengis.net/gml":{Curve:U(Pt.prototype.writeCurveOrLineString),MultiCurve:U(Pt.prototype.writeMultiCurveOrLineString),Point:U(Pt.prototype.writePoint),MultiPoint:U(Pt.prototype.writeMultiPoint),LineString:U(Pt.prototype.writeCurveOrLineString),MultiLineString:U(Pt.prototype.writeMultiCurveOrLineString),LinearRing:U(Pt.prototype.writeLinearRing),Polygon:U(Pt.prototype.writeSurfaceOrPolygon),MultiPolygon:U(Pt.prototype.writeMultiSurfaceOrPolygon),Surface:U(Pt.prototype.writeSurfaceOrPolygon),MultiSurface:U(Pt.prototype.writeMultiSurfaceOrPolygon),Envelope:U(Pt.prototype.writeEnvelope)}};const Tt=Pt;var Mt=Tt;Mt.prototype.writeFeatures,Mt.prototype.writeFeaturesNode;const Ot=Mt;var Rt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),It=[null,"http://www.topografix.com/GPX/1/0","http://www.topografix.com/GPX/1/1"],Lt={rte:le,trk:ue,wpt:ce},Ft=X(It,{rte:Z(le),trk:Z(ue),wpt:Z(ce)}),Nt=X(It,{text:B(yt,"linkText"),type:B(yt,"linkType")}),Dt=X(It,{rte:U((function(t,e,n){var r=n[0],i=e.getProperties(),o={node:t};o.properties=i;var a=e.getGeometry();if("LineString"==a.getType()){var s=(0,b.fI)(a,!0,r);o.geometryLayout=s.getLayout(),i.rtept=s.getCoordinates()}var l=n[n.length-1].node,u=Ht[l.namespaceURI],c=H(i,u);$(o,Xt,W,c,n,u)})),trk:U((function(t,e,n){var r=n[0],i=e.getProperties(),o={node:t};o.properties=i;var a=e.getGeometry();if("MultiLineString"==a.getType()){var s=(0,b.fI)(a,!0,r);i.trkseg=s.getLineStrings()}var l=n[n.length-1].node,u=Yt[l.namespaceURI],c=H(i,u);$(o,Qt,W,c,n,u)})),wpt:U((function(t,e,n){var r=n[0],i=n[n.length-1];i.properties=e.getProperties();var o=e.getGeometry();if("Point"==o.getType()){var a=(0,b.fI)(o,!0,r);i.geometryLayout=a.getLayout(),pe(t,a.getCoordinates(),n)}}))}),zt=function(t){function e(e){var n=t.call(this)||this,r=e||{};return n.dataProjection=(0,v.get)("EPSG:4326"),n.readExtensions_=r.readExtensions,n}return Rt(e,t),e.prototype.handleReadExtensions_=function(t){t||(t=[]);for(var e=0,n=t.length;e<n;++e){var r=t[e];if(this.readExtensions_){var i=r.get("extensionsNode_")||null;this.readExtensions_(r,i)}r.set("extensionsNode_",void 0)}},e.prototype.readFeatureFromNode=function(t,e){if(!(0,O.q9)(It,t.namespaceURI))return null;var n=Lt[t.localName];if(!n)return null;var r=n(t,[this.getReadOptions(t,e)]);return r?(this.handleReadExtensions_([r]),r):null},e.prototype.readFeaturesFromNode=function(t,e){if(!(0,O.q9)(It,t.namespaceURI))return[];if("gpx"==t.localName){var n=Y([],Ft,t,[this.getReadOptions(t,e)]);return n?(this.handleReadExtensions_(n),n):[]}return[]},e.prototype.writeFeaturesNode=function(t,e){e=this.adaptOptions(e);var n=I("http://www.topografix.com/GPX/1/1","gpx");return n.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xsi",R),n.setAttributeNS(R,"xsi:schemaLocation","http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd"),n.setAttribute("version","1.1"),n.setAttribute("creator","OpenLayers"),$({node:n},Dt,re,t,[e]),n},e}(rt),Zt=X(It,{name:B(yt),cmt:B(yt),desc:B(yt),src:B(yt),link:ae,number:B(gt),extensions:se,type:B(yt),rtept:function(t,e){var n=Y({},jt,t,e);if(n){var r=e[e.length-1];ie(r.flatCoordinates,r.layoutOptions,t,n)}}}),jt=X(It,{ele:B(dt),time:B(pt)}),Gt=X(It,{name:B(yt),cmt:B(yt),desc:B(yt),src:B(yt),link:ae,number:B(gt),type:B(yt),extensions:se,trkseg:function(t,e){var n=e[e.length-1];K(Bt,t,e);var r=n.flatCoordinates;n.ends.push(r.length)}}),Bt=X(It,{trkpt:function(t,e){var n=Y({},Ut,t,e);if(n){var r=e[e.length-1];ie(r.flatCoordinates,r.layoutOptions,t,n)}}}),Ut=X(It,{ele:B(dt),time:B(pt)}),Vt=X(It,{ele:B(dt),time:B(pt),magvar:B(dt),geoidheight:B(dt),name:B(yt),cmt:B(yt),desc:B(yt),src:B(yt),link:ae,sym:B(yt),type:B(yt),fix:B(yt),sat:B(gt),hdop:B(dt),vdop:B(dt),pdop:B(dt),ageofdgpsdata:B(dt),dgpsid:B(gt),extensions:se}),qt=["text","type"],Wt=X(It,{text:U(wt),type:U(wt)}),Ht=X(It,["name","cmt","desc","src","link","number","type","rtept"]),Xt=X(It,{name:U(wt),cmt:U(wt),desc:U(wt),src:U(wt),link:U(he),number:U(bt),type:U(wt),rtept:V(U(pe))}),Kt=X(It,["ele","time"]),Yt=X(It,["name","cmt","desc","src","link","number","type","trkseg"]),Qt=X(It,{name:U(wt),cmt:U(wt),desc:U(wt),src:U(wt),link:U(he),number:U(bt),type:U(wt),trkseg:V(U((function(t,e,n){var r={node:t};r.geometryLayout=e.getLayout(),r.properties={},$(r,Jt,$t,e.getCoordinates(),n)})))}),$t=q("trkpt"),Jt=X(It,{trkpt:U(pe)}),te=X(It,["ele","time","magvar","geoidheight","name","cmt","desc","src","link","sym","type","fix","sat","hdop","vdop","pdop","ageofdgpsdata","dgpsid"]),ee=X(It,{ele:U(_t),time:U((function(t,e){var n=new Date(1e3*e),r=n.getUTCFullYear()+"-"+(0,ut.v)(n.getUTCMonth()+1,2)+"-"+(0,ut.v)(n.getUTCDate(),2)+"T"+(0,ut.v)(n.getUTCHours(),2)+":"+(0,ut.v)(n.getUTCMinutes(),2)+":"+(0,ut.v)(n.getUTCSeconds(),2)+"Z";t.appendChild(et().createTextNode(r))})),magvar:U(_t),geoidheight:U(_t),name:U(wt),cmt:U(wt),desc:U(wt),src:U(wt),link:U(he),sym:U(wt),type:U(wt),fix:U(wt),sat:U(bt),hdop:U(_t),vdop:U(_t),pdop:U(_t),ageofdgpsdata:U(_t),dgpsid:U(bt)}),ne={Point:"wpt",LineString:"rte",MultiLineString:"trk"};function re(t,e,n){var r=t.getGeometry();if(r){var i=ne[r.getType()];if(i)return I(e[e.length-1].node.namespaceURI,i)}}function ie(t,e,n,r){return t.push(parseFloat(n.getAttribute("lon")),parseFloat(n.getAttribute("lat"))),"ele"in r?(t.push(r.ele),delete r.ele,e.hasZ=!0):t.push(0),"time"in r?(t.push(r.time),delete r.time,e.hasM=!0):t.push(0),t}function oe(t,e,n){var r=o.Z.XY,i=2;if(t.hasZ&&t.hasM?(r=o.Z.XYZM,i=4):t.hasZ?(r=o.Z.XYZ,i=3):t.hasM&&(r=o.Z.XYM,i=3),4!==i){for(var a=0,s=e.length/4;a<s;a++)e[a*i]=e[4*a],e[a*i+1]=e[4*a+1],t.hasZ&&(e[a*i+2]=e[4*a+2]),t.hasM&&(e[a*i+2]=e[4*a+3]);if(e.length=e.length/4*i,n)for(a=0,s=n.length;a<s;a++)n[a]=n[a]/4*i}return r}function ae(t,e){var n=e[e.length-1],r=t.getAttribute("href");null!==r&&(n.link=r),K(Nt,t,e)}function se(t,e){e[e.length-1].extensionsNode_=t}function le(t,e){var n=e[0],r=Y({flatCoordinates:[],layoutOptions:{}},Zt,t,e);if(r){var o=r.flatCoordinates;delete r.flatCoordinates;var a=r.layoutOptions;delete r.layoutOptions;var l=oe(a,o),u=new s.Z(o,l);(0,b.fI)(u,!1,n);var c=new i.Z(u);return c.setProperties(r,!0),c}}function ue(t,e){var n=e[0],r=Y({flatCoordinates:[],ends:[],layoutOptions:{}},Gt,t,e);if(r){var o=r.flatCoordinates;delete r.flatCoordinates;var a=r.ends;delete r.ends;var s=r.layoutOptions;delete r.layoutOptions;var l=oe(s,o,a),c=new u.Z(o,l,a);(0,b.fI)(c,!1,n);var h=new i.Z(c);return h.setProperties(r,!0),h}}function ce(t,e){var n=e[0],r=Y({},Vt,t,e);if(r){var o={},a=ie([],o,t,r),s=oe(o,a),l=new p.Z(a,s);(0,b.fI)(l,!1,n);var u=new i.Z(l);return u.setProperties(r,!0),u}}function he(t,e,n){t.setAttribute("href",e);var r=n[n.length-1].properties,i=[r.linkText,r.linkType];$({node:t},Wt,W,i,n,qt)}function pe(t,e,n){var r=n[n.length-1],i=r.node.namespaceURI,a=r.properties;switch(t.setAttributeNS(null,"lat",String(e[1])),t.setAttributeNS(null,"lon",String(e[0])),r.geometryLayout){case o.Z.XYZM:0!==e[3]&&(a.time=e[3]);case o.Z.XYZ:0!==e[2]&&(a.ele=e[2]);break;case o.Z.XYM:0!==e[2]&&(a.time=e[2])}var s="rtept"==t.nodeName?Kt[i]:te[i],l=H(a,s);$({node:t,properties:a},ee,W,l,n,s)}const de=zt;var fe=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function ge(t){return"string"==typeof t?t:""}const me=function(t){function e(){return t.call(this)||this}return fe(e,t),e.prototype.getType=function(){return"text"},e.prototype.readFeature=function(t,e){return this.readFeatureFromText(ge(t),this.adaptOptions(e))},e.prototype.readFeatureFromText=function(t,e){return(0,M.O3)()},e.prototype.readFeatures=function(t,e){return this.readFeaturesFromText(ge(t),this.adaptOptions(e))},e.prototype.readFeaturesFromText=function(t,e){return(0,M.O3)()},e.prototype.readGeometry=function(t,e){return this.readGeometryFromText(ge(t),this.adaptOptions(e))},e.prototype.readGeometryFromText=function(t,e){return(0,M.O3)()},e.prototype.readProjection=function(t){return this.readProjectionFromText(ge(t))},e.prototype.readProjectionFromText=function(t){return this.dataProjection},e.prototype.writeFeature=function(t,e){return this.writeFeatureText(t,this.adaptOptions(e))},e.prototype.writeFeatureText=function(t,e){return(0,M.O3)()},e.prototype.writeFeatures=function(t,e){return this.writeFeaturesText(t,this.adaptOptions(e))},e.prototype.writeFeaturesText=function(t,e){return(0,M.O3)()},e.prototype.writeGeometry=function(t,e){return this.writeGeometryText(t,this.adaptOptions(e))},e.prototype.writeGeometryText=function(t,e){return(0,M.O3)()},e}(b.ZP);var ye=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ve="none",_e=/^B(\d{2})(\d{2})(\d{2})(\d{2})(\d{5})([NS])(\d{3})(\d{5})([EW])([AV])(\d{5})(\d{5})/,be=/^H.([A-Z]{3}).*?:(.*)/,we=/^HFDTE(\d{2})(\d{2})(\d{2})/,xe=/\r\n|\r|\n/;const Se=function(t){function e(e){var n=t.call(this)||this,r=e||{};return n.dataProjection=(0,v.get)("EPSG:4326"),n.altitudeMode_=r.altitudeMode?r.altitudeMode:ve,n}return ye(e,t),e.prototype.readFeatureFromText=function(t,e){var n,r,a=this.altitudeMode_,l=t.split(xe),u={},c=[],h=2e3,p=0,d=1,f=-1;for(n=0,r=l.length;n<r;++n){var g=l[n],m=void 0;if("B"==g.charAt(0)){if(m=_e.exec(g)){var y=parseInt(m[1],10),v=parseInt(m[2],10),_=parseInt(m[3],10),w=parseInt(m[4],10)+parseInt(m[5],10)/6e4;"S"==m[6]&&(w=-w);var x=parseInt(m[7],10)+parseInt(m[8],10)/6e4;if("W"==m[9]&&(x=-x),c.push(x,w),a!=ve){var S;S="gps"==a?parseInt(m[11],10):"barometric"==a?parseInt(m[12],10):0,c.push(S)}var C=Date.UTC(h,p,d,y,v,_);C<f&&(C=Date.UTC(h,p,d+1,y,v,_)),c.push(C/1e3),f=C}}else"H"==g.charAt(0)&&((m=we.exec(g))?(d=parseInt(m[1],10),p=parseInt(m[2],10)-1,h=2e3+parseInt(m[3],10)):(m=be.exec(g))&&(u[m[1]]=m[2].trim()))}if(0===c.length)return null;var E=a==ve?o.Z.XYM:o.Z.XYZM,k=new s.Z(c,E),A=new i.Z((0,b.fI)(k,!1,e));return A.setProperties(u,!0),A},e.prototype.readFeaturesFromText=function(t,e){var n=this.readFeatureFromText(t,e);return n?[n]:[]},e}(me);var Ce,Ee,ke,Ae,Pe,Te,Me,Oe,Re,Ie=n(2477),Le=n(3856),Fe=n(8044),Ne=n(5218),De=n(9589),ze=n(7094),Ze=n(6637),je=n(2795),Ge=n(1457),Be=n(1545),Ue=n(184),Ve=n(8007),qe=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),We=["http://www.google.com/kml/ext/2.2"],He=[null,"http://earth.google.com/kml/2.0","http://earth.google.com/kml/2.1","http://earth.google.com/kml/2.2","http://www.opengis.net/kml/2.2"],Xe={fraction:De.Z.FRACTION,pixels:De.Z.PIXELS,insetPixels:De.Z.PIXELS},Ke=X(He,{ExtendedData:Vn,Region:qn,MultiGeometry:B(Fn,"geometry"),LineString:B(Rn,"geometry"),LinearRing:B(In,"geometry"),Point:B(Nn,"geometry"),Polygon:B(zn,"geometry"),Style:B(jn),StyleMap:function(t,e){var n=vn.call(this,t,e);if(n){var r=e[e.length-1];Array.isArray(n)?r.Style=n:"string"==typeof n?r.styleUrl=n:(0,f.h)(!1,38)}},address:B(yt),description:B(yt),name:B(yt),open:B(ct),phoneNumber:B(yt),styleUrl:B(gn),visibility:B(ct)},X(We,{MultiTrack:B((function(t,e){var n=Y([],En,t,e);if(n)return new u.Z(n)}),"geometry"),Track:B(An,"geometry")})),Ye=X(He,{ExtendedData:Vn,Region:qn,Link:function(t,e){K(Qe,t,e)},address:B(yt),description:B(yt),name:B(yt),open:B(ct),phoneNumber:B(yt),visibility:B(ct)}),Qe=X(He,{href:B(fn)}),$e=X(He,{LatLonAltBox:function(t,e){var n=Y({},Xn,t,e);if(n){var r=e[e.length-1],i=[parseFloat(n.west),parseFloat(n.south),parseFloat(n.east),parseFloat(n.north)];r.extent=i,r.altitudeMode=n.altitudeMode,r.minAltitude=parseFloat(n.minAltitude),r.maxAltitude=parseFloat(n.maxAltitude)}},Lod:function(t,e){var n=Y({},Kn,t,e);if(n){var r=e[e.length-1];r.minLodPixels=parseFloat(n.minLodPixels),r.maxLodPixels=parseFloat(n.maxLodPixels),r.minFadeExtent=parseFloat(n.minFadeExtent),r.maxFadeExtent=parseFloat(n.maxFadeExtent)}}}),Je=X(He,["Document","Placemark"]),tn=X(He,{Document:U((function(t,e,n){$({node:t},tr,er,e,n,void 0,this)})),Placemark:U(Er)}),en=null,nn=null,rn=null,on=null,an=null,sn=null;function ln(t){return 32/Math.min(t[0],t[1])}function un(t){return t}var cn=function(t){function e(e){var n=t.call(this)||this,r=e||{};return sn||(Ce=[255,255,255,1],en=new Le.Z({color:Ce}),Ee=[20,2],ke=De.Z.PIXELS,Ae=De.Z.PIXELS,Pe=[64,64],Te="https://maps.google.com/mapfiles/kml/pushpin/ylw-pushpin.png",nn=new Ne.Z({anchor:Ee,anchorOrigin:ze.Z.BOTTOM_LEFT,anchorXUnits:ke,anchorYUnits:Ae,crossOrigin:"anonymous",rotation:0,scale:ln(Pe),size:Pe,src:Te}),Me="NO_IMAGE",rn=new je.Z({color:Ce,width:1}),Oe=new je.Z({color:[51,51,51,1],width:2}),on=new Be.Z({font:"bold 16px Helvetica",fill:en,stroke:Oe,scale:.8}),an=new Ge.ZP({fill:en,image:nn,text:on,stroke:rn,zIndex:0}),sn=[an]),n.dataProjection=(0,v.get)("EPSG:4326"),n.defaultStyle_=r.defaultStyle?r.defaultStyle:sn,n.extractStyles_=void 0===r.extractStyles||r.extractStyles,n.writeStyles_=void 0===r.writeStyles||r.writeStyles,n.sharedStyles_={},n.showPointNames_=void 0===r.showPointNames||r.showPointNames,n.crossOrigin_=void 0!==r.crossOrigin?r.crossOrigin:"anonymous",n.iconUrlFunction_=r.iconUrlFunction?r.iconUrlFunction:un,n.supportedMediaTypes=["application/vnd.google-earth.kml+xml"],n}return qe(e,t),e.prototype.readDocumentOrFolder_=function(t,e){return Y([],X(He,{Document:z(this.readDocumentOrFolder_,this),Folder:z(this.readDocumentOrFolder_,this),Placemark:Z(this.readPlacemark_,this),Style:this.readSharedStyle_.bind(this),StyleMap:this.readSharedStyleMap_.bind(this)}),t,e,this)||void 0},e.prototype.readPlacemark_=function(t,e){var n,r,o,a,s,l=Y({geometry:null},Ke,t,e,this);if(l){var u=new i.Z,c=t.getAttribute("id");null!==c&&u.setId(c);var h=e[0],p=l.geometry;if(p&&(0,b.fI)(p,!1,h),u.setGeometry(p),delete l.geometry,this.extractStyles_){var d=(n=l.Style,r=l.styleUrl,o=this.defaultStyle_,a=this.sharedStyles_,s=this.showPointNames_,function(t,e){var i=s,l="",u=[];if(i){var c=t.getGeometry();if(c)if(c instanceof Fe.Z)u=c.getGeometriesArrayRecursive().filter((function(t){var e=t.getType();return"Point"===e||"MultiPoint"===e})),i=u.length>0;else{var h=c.getType();i="Point"===h||"MultiPoint"===h}}i&&(l=t.get("name"),(i=i&&!!l)&&l.search(/&[^&]+;/)>-1&&(Re||(Re=document.createElement("textarea")),Re.innerHTML=l,l=Re.value));var p=o;if(n?p=n:r&&(p=hn(r,o,a)),i){var d=function(t,e){var n=[0,0],r="start",i=t.getImage();if(i){var o=i.getSize();if(o&&2==o.length){var a=i.getScaleArray(),s=i.getAnchor();n[0]=a[0]*(o[0]-s[0]),n[1]=a[1]*(o[1]/2-s[1]),r="left"}}var l=t.getText();return l?((l=l.clone()).setFont(l.getFont()||on.getFont()),l.setScale(l.getScale()||on.getScale()),l.setFill(l.getFill()||on.getFill()),l.setStroke(l.getStroke()||Oe)):l=on.clone(),l.setText(e),l.setOffsetX(n[0]),l.setOffsetY(n[1]),l.setTextAlign(r),new Ge.ZP({image:i,text:l})}(p[0],l);return u.length>0?(d.setGeometry(new Fe.Z(u)),[d,new Ge.ZP({geometry:p[0].getGeometry(),image:null,fill:p[0].getFill(),stroke:p[0].getStroke(),text:null})].concat(p.slice(1))):d}return p});u.setStyle(d)}return delete l.Style,u.setProperties(l,!0),u}},e.prototype.readSharedStyle_=function(t,e){var n=t.getAttribute("id");if(null!==n){var r=jn.call(this,t,e);if(r){var i=void 0,o=t.baseURI;o&&"about:blank"!=o||(o=window.location.href),i=o?new URL("#"+n,o).href:"#"+n,this.sharedStyles_[i]=r}}},e.prototype.readSharedStyleMap_=function(t,e){var n=t.getAttribute("id");if(null!==n){var r=vn.call(this,t,e);if(r){var i,o=t.baseURI;o&&"about:blank"!=o||(o=window.location.href),i=o?new URL("#"+n,o).href:"#"+n,this.sharedStyles_[i]=r}}},e.prototype.readFeatureFromNode=function(t,e){return(0,O.q9)(He,t.namespaceURI)&&this.readPlacemark_(t,[this.getReadOptions(t,e)])||null},e.prototype.readFeaturesFromNode=function(t,e){if(!(0,O.q9)(He,t.namespaceURI))return[];var n,r=t.localName;if("Document"==r||"Folder"==r)return(n=this.readDocumentOrFolder_(t,[this.getReadOptions(t,e)]))||[];if("Placemark"==r){var i=this.readPlacemark_(t,[this.getReadOptions(t,e)]);return i?[i]:[]}if("kml"==r){n=[];for(var o=t.firstElementChild;o;o=o.nextElementSibling){var a=this.readFeaturesFromNode(o,e);a&&(0,O.l7)(n,a)}return n}return[]},e.prototype.readName=function(t){if(t){if("string"==typeof t){var e=D(t);return this.readNameFromDocument(e)}return N(t)?this.readNameFromDocument(t):this.readNameFromNode(t)}},e.prototype.readNameFromDocument=function(t){for(var e=t.firstChild;e;e=e.nextSibling)if(e.nodeType==Node.ELEMENT_NODE){var n=this.readNameFromNode(e);if(n)return n}},e.prototype.readNameFromNode=function(t){for(var e=t.firstElementChild;e;e=e.nextElementSibling)if((0,O.q9)(He,e.namespaceURI)&&"name"==e.localName)return yt(e);for(e=t.firstElementChild;e;e=e.nextElementSibling){var n=e.localName;if((0,O.q9)(He,e.namespaceURI)&&("Document"==n||"Folder"==n||"Placemark"==n||"kml"==n)){var r=this.readNameFromNode(e);if(r)return r}}},e.prototype.readNetworkLinks=function(t){var e=[];if("string"==typeof t){var n=D(t);(0,O.l7)(e,this.readNetworkLinksFromDocument(n))}else N(t)?(0,O.l7)(e,this.readNetworkLinksFromDocument(t)):(0,O.l7)(e,this.readNetworkLinksFromNode(t));return e},e.prototype.readNetworkLinksFromDocument=function(t){for(var e=[],n=t.firstChild;n;n=n.nextSibling)n.nodeType==Node.ELEMENT_NODE&&(0,O.l7)(e,this.readNetworkLinksFromNode(n));return e},e.prototype.readNetworkLinksFromNode=function(t){for(var e=[],n=t.firstElementChild;n;n=n.nextElementSibling)if((0,O.q9)(He,n.namespaceURI)&&"NetworkLink"==n.localName){var r=Y({},Ye,n,[]);e.push(r)}for(n=t.firstElementChild;n;n=n.nextElementSibling){var i=n.localName;!(0,O.q9)(He,n.namespaceURI)||"Document"!=i&&"Folder"!=i&&"kml"!=i||(0,O.l7)(e,this.readNetworkLinksFromNode(n))}return e},e.prototype.readRegion=function(t){var e=[];if("string"==typeof t){var n=D(t);(0,O.l7)(e,this.readRegionFromDocument(n))}else N(t)?(0,O.l7)(e,this.readRegionFromDocument(t)):(0,O.l7)(e,this.readRegionFromNode(t));return e},e.prototype.readRegionFromDocument=function(t){for(var e=[],n=t.firstChild;n;n=n.nextSibling)n.nodeType==Node.ELEMENT_NODE&&(0,O.l7)(e,this.readRegionFromNode(n));return e},e.prototype.readRegionFromNode=function(t){for(var e=[],n=t.firstElementChild;n;n=n.nextElementSibling)if((0,O.q9)(He,n.namespaceURI)&&"Region"==n.localName){var r=Y({},$e,n,[]);e.push(r)}for(n=t.firstElementChild;n;n=n.nextElementSibling){var i=n.localName;!(0,O.q9)(He,n.namespaceURI)||"Document"!=i&&"Folder"!=i&&"kml"!=i||(0,O.l7)(e,this.readRegionFromNode(n))}return e},e.prototype.writeFeaturesNode=function(t,e){e=this.adaptOptions(e);var n=I(He[4],"kml"),r="http://www.w3.org/2000/xmlns/";n.setAttributeNS(r,"xmlns:gx",We[0]),n.setAttributeNS(r,"xmlns:xsi",R),n.setAttributeNS(R,"xsi:schemaLocation","http://www.opengis.net/kml/2.2 https://developers.google.com/kml/schema/kml22gx.xsd");var i={node:n},o={};t.length>1?o.Document=t:1==t.length&&(o.Placemark=t[0]);var a=Je[n.namespaceURI],s=H(o,a);return $(i,tn,W,s,[e],a,this),n},e}(rt);function hn(t,e,n){return Array.isArray(t)?t:"string"==typeof t?hn(n[t],e,n):e}function pn(t){var e=L(t,!1),n=/^\s*#?\s*([0-9A-Fa-f]{8})\s*$/.exec(e);if(n){var r=n[1];return[parseInt(r.substr(6,2),16),parseInt(r.substr(4,2),16),parseInt(r.substr(2,2),16),parseInt(r.substr(0,2),16)/255]}}function dn(t){var e=L(t,!1),n=[];e=e.replace(/\s*,\s*/g,",");for(var r,i=/^\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?),([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)(?:\s+|,|$)(?:([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)(?:\s+|$))?\s*/i;r=i.exec(e);){var o=parseFloat(r[1]),a=parseFloat(r[2]),s=r[3]?parseFloat(r[3]):0;n.push(o,a,s),e=e.substr(r[0].length)}if(""===e)return n}function fn(t){var e=L(t,!1).trim(),n=t.baseURI;return n&&"about:blank"!=n||(n=window.location.href),n?new URL(e,n).href:e}function gn(t){var e=L(t,!1).trim().replace(/^(?!.*#)/,"#"),n=t.baseURI;return n&&"about:blank"!=n||(n=window.location.href),n?new URL(e,n).href:e}function mn(t){return dt(t)}var yn=X(He,{Pair:function(t,e){var n=Y({},Wn,t,e,this);if(n){var r=n.key;if(r&&"normal"==r){var i=n.styleUrl;i&&(e[e.length-1]=i);var o=n.Style;o&&(e[e.length-1]=o)}}}});function vn(t,e){return Y(void 0,yn,t,e,this)}var _n=X(He,{Icon:B((function(t,e){return Y({},Pn,t,e)||null})),color:B(pn),heading:B(dt),hotSpot:B((function(t){var e,n=t.getAttribute("xunits"),r=t.getAttribute("yunits");return e="insetPixels"!==n?"insetPixels"!==r?ze.Z.BOTTOM_LEFT:ze.Z.TOP_LEFT:"insetPixels"!==r?ze.Z.BOTTOM_RIGHT:ze.Z.TOP_RIGHT,{x:parseFloat(t.getAttribute("x")),xunits:Xe[n],y:parseFloat(t.getAttribute("y")),yunits:Xe[r],origin:e}})),scale:B(mn)}),bn=X(He,{color:B(pn),scale:B(mn)}),wn=X(He,{color:B(pn),width:B(dt)}),xn=X(He,{color:B(pn),fill:B(ct),outline:B(ct)}),Sn=X(He,{coordinates:j(dn)});function Cn(t,e){return Y(null,Sn,t,e)}var En=X(We,{Track:Z(An)}),kn=X(He,{when:function(t,e){var n=e[e.length-1].whens,r=L(t,!1),i=Date.parse(r);n.push(isNaN(i)?0:i)}},X(We,{coord:function(t,e){var n=e[e.length-1].coordinates,r=L(t,!1),i=/^\s*([+\-]?\d+(?:\.\d*)?(?:e[+\-]?\d*)?)\s+([+\-]?\d+(?:\.\d*)?(?:e[+\-]?\d*)?)\s+([+\-]?\d+(?:\.\d*)?(?:e[+\-]?\d*)?)\s*$/i.exec(r);if(i){var o=parseFloat(i[1]),a=parseFloat(i[2]),s=parseFloat(i[3]);n.push([o,a,s])}else n.push([])}}));function An(t,e){var n=Y({coordinates:[],whens:[]},kn,t,e);if(n){for(var r=[],i=n.coordinates,a=n.whens,l=0,u=Math.min(i.length,a.length);l<u;++l)3==i[l].length&&r.push(i[l][0],i[l][1],i[l][2],a[l]);return new s.Z(r,o.Z.XYZM)}}var Pn=X(He,{href:B(fn)},X(We,{x:B(dt),y:B(dt),w:B(dt),h:B(dt)})),Tn=X(He,{coordinates:j(dn)});function Mn(t,e){return Y(null,Tn,t,e)}var On=X(He,{extrude:B(ct),tessellate:B(ct),altitudeMode:B(yt)});function Rn(t,e){var n=Y({},On,t,e),r=Mn(t,e);if(r){var i=new s.Z(r,o.Z.XYZ);return i.setProperties(n,!0),i}}function In(t,e){var n=Y({},On,t,e),r=Mn(t,e);if(r){var i=new d.ZP(r,o.Z.XYZ,[r.length]);return i.setProperties(n,!0),i}}var Ln=X(He,{LineString:Z(Rn),LinearRing:Z(In),MultiGeometry:Z(Fn),Point:Z(Nn),Polygon:Z(zn)});function Fn(t,e){var n,r=Y([],Ln,t,e);if(!r)return null;if(0===r.length)return new Fe.Z(r);for(var i,o=!0,a=r[0].getType(),s=1,l=r.length;s<l;++s)if((i=r[s]).getType()!=a){o=!1;break}if(o){var p=void 0,d=void 0;if("Point"==a){var g=r[0];for(p=g.getLayout(),d=g.getFlatCoordinates(),s=1,l=r.length;s<l;++s)i=r[s],(0,O.l7)(d,i.getFlatCoordinates());Gn(n=new c.Z(d,p),r)}else"LineString"==a?Gn(n=new u.Z(r),r):"Polygon"==a?Gn(n=new h.Z(r),r):"GeometryCollection"==a?n=new Fe.Z(r):(0,f.h)(!1,37)}else n=new Fe.Z(r);return n}function Nn(t,e){var n=Y({},On,t,e),r=Mn(t,e);if(r){var i=new p.Z(r,o.Z.XYZ);return i.setProperties(n,!0),i}}var Dn=X(He,{innerBoundaryIs:function(t,e){var n=Y([],Yn,t,e);if(n.length>0){var r=e[e.length-1];r.push.apply(r,n)}},outerBoundaryIs:function(t,e){var n=Y(void 0,Qn,t,e);n&&(e[e.length-1][0]=n)}});function zn(t,e){var n=Y({},On,t,e),r=Y([null],Dn,t,e);if(r&&r[0]){for(var i=r[0],a=[i.length],s=1,l=r.length;s<l;++s)(0,O.l7)(i,r[s]),a.push(i.length);var u=new d.ZP(i,o.Z.XYZ,a);return u.setProperties(n,!0),u}}var Zn=X(He,{IconStyle:function(t,e){var n=Y({},_n,t,e);if(n){var r,i,o,a,s=e[e.length-1],l="Icon"in n?n.Icon:{},u=!("Icon"in n)||Object.keys(l).length>0,c=l.href;c?r=c:u&&(r=Te);var h,p=ze.Z.BOTTOM_LEFT,d=n.hotSpot;d?(i=[d.x,d.y],o=d.xunits,a=d.yunits,p=d.origin):/^http:\/\/maps\.(?:google|gstatic)\.com\//.test(r)&&(/pushpin/.test(r)?(i=Ee,o=ke,a=Ae):/arrow-reverse/.test(r)?(i=[54,42],o=ke,a=Ae):/paddle/.test(r)&&(i=[32,1],o=ke,a=Ae));var f,g=l.x,m=l.y;void 0!==g&&void 0!==m&&(h=[g,m]);var y,v=l.w,_=l.h;void 0!==v&&void 0!==_&&(f=[v,_]);var b=n.heading;void 0!==b&&(y=(0,Ve.Yr)(b));var w=n.scale,x=n.color;if(u){r==Te&&(f=Pe);var S=new Ne.Z({anchor:i,anchorOrigin:p,anchorXUnits:o,anchorYUnits:a,crossOrigin:this.crossOrigin_,offset:h,offsetOrigin:ze.Z.BOTTOM_LEFT,rotation:y,scale:w,size:f,src:this.iconUrlFunction_(r),color:x}),C=S.getScaleArray()[0],E=S.getSize();if(null===E){var k=S.getImageState();if(k===Ze.Z.IDLE||k===Ze.Z.LOADING){var A=function(){var t=S.getImageState();if(t!==Ze.Z.IDLE&&t!==Ze.Z.LOADING){var e=S.getSize();if(e&&2==e.length){var n=ln(e);S.setScale(C*n)}S.unlistenImageChange(A)}};S.listenImageChange(A),k===Ze.Z.IDLE&&S.load()}}else if(2==E.length){var P=ln(E);S.setScale(C*P)}s.imageStyle=S}else s.imageStyle=Me}},LabelStyle:function(t,e){var n=Y({},bn,t,e);if(n){var r=e[e.length-1],i=new Be.Z({fill:new Le.Z({color:"color"in n?n.color:Ce}),scale:n.scale});r.textStyle=i}},LineStyle:function(t,e){var n=Y({},wn,t,e);if(n){var r=e[e.length-1],i=new je.Z({color:"color"in n?n.color:Ce,width:"width"in n?n.width:1});r.strokeStyle=i}},PolyStyle:function(t,e){var n=Y({},xn,t,e);if(n){var r=e[e.length-1],i=new Le.Z({color:"color"in n?n.color:Ce});r.fillStyle=i;var o=n.fill;void 0!==o&&(r.fill=o);var a=n.outline;void 0!==a&&(r.outline=a)}}});function jn(t,e){var n=Y({},Zn,t,e,this);if(!n)return null;var r,i="fillStyle"in n?n.fillStyle:en,o=n.fill;void 0===o||o||(i=null),"imageStyle"in n?n.imageStyle!=Me&&(r=n.imageStyle):r=nn;var a="textStyle"in n?n.textStyle:on,s="strokeStyle"in n?n.strokeStyle:rn,l=n.outline;return void 0===l||l?[new Ge.ZP({fill:i,image:r,stroke:s,text:a,zIndex:void 0})]:[new Ge.ZP({geometry:function(t){var e=t.getGeometry(),n=e.getType();if("GeometryCollection"===n){var r=e;return new Fe.Z(r.getGeometriesArrayRecursive().filter((function(t){var e=t.getType();return"Polygon"!==e&&"MultiPolygon"!==e})))}if("Polygon"!==n&&"MultiPolygon"!==n)return e},fill:i,image:r,stroke:s,text:a,zIndex:void 0}),new Ge.ZP({geometry:function(t){var e=t.getGeometry(),n=e.getType();if("GeometryCollection"===n){var r=e;return new Fe.Z(r.getGeometriesArrayRecursive().filter((function(t){var e=t.getType();return"Polygon"===e||"MultiPolygon"===e})))}if("Polygon"===n||"MultiPolygon"===n)return e},fill:i,stroke:null,zIndex:void 0})]}function Gn(t,e){var n,r,i,o=e.length,a=new Array(e.length),s=new Array(e.length),l=new Array(e.length);n=!1,r=!1,i=!1;for(var u=0;u<o;++u){var c=e[u];a[u]=c.get("extrude"),s[u]=c.get("tessellate"),l[u]=c.get("altitudeMode"),n=n||void 0!==a[u],r=r||void 0!==s[u],i=i||l[u]}n&&t.set("extrude",a),r&&t.set("tessellate",s),i&&t.set("altitudeMode",l)}var Bn=X(He,{displayName:B(yt),value:B(yt)}),Un=X(He,{Data:function(t,e){var n=t.getAttribute("name");K(Bn,t,e);var r=e[e.length-1];n&&r.displayName?r[n]={value:r.value,displayName:r.displayName,toString:function(){return r.value}}:null!==n?r[n]=r.value:null!==r.displayName&&(r[r.displayName]=r.value),delete r.value},SchemaData:function(t,e){K(Hn,t,e)}});function Vn(t,e){K(Un,t,e)}function qn(t,e){K($e,t,e)}var Wn=X(He,{Style:B(jn),key:B(yt),styleUrl:B(gn)}),Hn=X(He,{SimpleData:function(t,e){var n=t.getAttribute("name");if(null!==n){var r=yt(t);e[e.length-1][n]=r}}}),Xn=X(He,{altitudeMode:B(yt),minAltitude:B(dt),maxAltitude:B(dt),north:B(dt),south:B(dt),east:B(dt),west:B(dt)}),Kn=X(He,{minLodPixels:B(dt),maxLodPixels:B(dt),minFadeExtent:B(dt),maxFadeExtent:B(dt)}),Yn=X(He,{LinearRing:Z(Cn)}),Qn=X(He,{LinearRing:j(Cn)});function $n(t,e){for(var n=(0,Ue._2)(e),r=[255*(4==n.length?n[3]:1),n[2],n[1],n[0]],i=0;i<4;++i){var o=Math.floor(r[i]).toString(16);r[i]=1==o.length?"0"+o:o}wt(t,r.join(""))}var Jn=X(He,{Data:U((function(t,e,n){t.setAttribute("name",e.name);var r={node:t},i=e.value;"object"==typeof i?(null!==i&&i.displayName&&$(r,Jn,W,[i.displayName],n,["displayName"]),null!==i&&i.value&&$(r,Jn,W,[i.value],n,["value"])):$(r,Jn,W,[i],n,["value"])})),value:U((function(t,e){wt(t,e)})),displayName:U((function(t,e){!function(t,e){t.appendChild(et().createCDATASection(e))}(t,e)}))}),tr=X(He,{Placemark:U(Er)}),er=function(t,e,n){return I(e[e.length-1].node.namespaceURI,"Placemark")},nr=q("Data"),rr=X(He,["href"],X(We,["x","y","w","h"])),ir=X(He,{href:U(wt)},X(We,{x:U(_t),y:U(_t),w:U(_t),h:U(_t)})),or=function(t,e,n){return I(We[0],"gx:"+n)},ar=X(He,["scale","heading","Icon","color","hotSpot"]),sr=X(He,{Icon:U((function(t,e,n){var r={node:t},i=n[n.length-1].node,o=rr[i.namespaceURI],a=H(e,o);$(r,ir,W,a,n,o),a=H(e,o=rr[We[0]]),$(r,ir,or,a,n,o)})),color:U($n),heading:U(_t),hotSpot:U((function(t,e){t.setAttribute("x",String(e.x)),t.setAttribute("y",String(e.y)),t.setAttribute("xunits",e.xunits),t.setAttribute("yunits",e.yunits)})),scale:U(Fr)}),lr=X(He,["color","scale"]),ur=X(He,{color:U($n),scale:U(Fr)}),cr=X(He,["color","width"]),hr=X(He,{color:U($n),width:U(_t)}),pr={Point:"Point",LineString:"LineString",LinearRing:"LinearRing",Polygon:"Polygon",MultiPoint:"MultiGeometry",MultiLineString:"MultiGeometry",MultiPolygon:"MultiGeometry",GeometryCollection:"MultiGeometry"},dr=function(t,e,n){if(t)return I(e[e.length-1].node.namespaceURI,pr[t.getType()])},fr=q("Point"),gr=q("LineString"),mr=q("LinearRing"),yr=q("Polygon"),vr=X(He,{LineString:U(Pr),Point:U(Pr),Polygon:U(Ir),GeometryCollection:U(_r)});function _r(t,e,n){var r,i={node:t},o=e.getType(),a=[];"GeometryCollection"===o?(e.getGeometriesArrayRecursive().forEach((function(t){var e=t.getType();"MultiPoint"===e?a=a.concat(t.getPoints()):"MultiLineString"===e?a=a.concat(t.getLineStrings()):"MultiPolygon"===e?a=a.concat(t.getPolygons()):"Point"===e||"LineString"===e||"Polygon"===e?a.push(t):(0,f.h)(!1,39)})),r=dr):"MultiPoint"===o?(a=e.getPoints(),r=fr):"MultiLineString"===o?(a=e.getLineStrings(),r=gr):"MultiPolygon"===o?(a=e.getPolygons(),r=yr):(0,f.h)(!1,39),$(i,vr,r,a,n)}var br=X(He,{LinearRing:U(Pr)});function wr(t,e,n){$({node:t},br,mr,[e],n)}var xr=X(He,{ExtendedData:U((function(t,e,n){for(var r={node:t},i=e.names,o=e.values,a=i.length,s=0;s<a;s++)$(r,Jn,nr,[{name:i[s],value:o[s]}],n)})),MultiGeometry:U(_r),LineString:U(Pr),LinearRing:U(Pr),Point:U(Pr),Polygon:U(Ir),Style:U((function(t,e,n){var r,i={node:t},o={};if(e.pointStyles.length){var a=e.pointStyles[0].getText();a&&(o.LabelStyle=a);var s=e.pointStyles[0].getImage();s&&"function"==typeof s.getSrc&&(o.IconStyle=s)}(e.lineStyles.length&&(r=e.lineStyles[0].getStroke())&&(o.LineStyle=r),e.polyStyles.length)&&((r=e.polyStyles[0].getStroke())&&!o.LineStyle&&(o.LineStyle=r),o.PolyStyle=e.polyStyles[0]);var l=n[n.length-1].node,u=Nr[l.namespaceURI],c=H(o,u);$(i,Dr,W,c,n,u)})),address:U(wt),description:U(wt),name:U(wt),open:U(vt),phoneNumber:U(wt),styleUrl:U(wt),visibility:U(vt)}),Sr=X(He,["name","open","visibility","address","phoneNumber","description","styleUrl","Style"]),Cr=q("ExtendedData");function Er(t,e,n){var r={node:t};e.getId()&&t.setAttribute("id",e.getId());var i=e.getProperties(),o={address:1,description:1,name:1,open:1,phoneNumber:1,styleUrl:1,visibility:1};o[e.getGeometryName()]=1;var a=Object.keys(i||{}).sort().filter((function(t){return!o[t]})),s=e.getStyleFunction();if(s){var l=s(e,0);if(l){var u=Array.isArray(l)?l:[l],c=u;if(e.getGeometry()&&(c=u.filter((function(t){var n=t.getGeometryFunction()(e);if(n){var r=n.getType();return"GeometryCollection"===r?n.getGeometriesArrayRecursive().filter((function(t){var e=t.getType();return"Point"===e||"MultiPoint"===e})).length:"Point"===r||"MultiPoint"===r}}))),this.writeStyles_){var h=u,p=u;e.getGeometry()&&(h=u.filter((function(t){var n=t.getGeometryFunction()(e);if(n){var r=n.getType();return"GeometryCollection"===r?n.getGeometriesArrayRecursive().filter((function(t){var e=t.getType();return"LineString"===e||"MultiLineString"===e})).length:"LineString"===r||"MultiLineString"===r}})),p=u.filter((function(t){var n=t.getGeometryFunction()(e);if(n){var r=n.getType();return"GeometryCollection"===r?n.getGeometriesArrayRecursive().filter((function(t){var e=t.getType();return"Polygon"===e||"MultiPolygon"===e})).length:"Polygon"===r||"MultiPolygon"===r}}))),i.Style={pointStyles:c,lineStyles:h,polyStyles:p}}if(c.length&&void 0===i.name){var d=c[0].getText();d&&(i.name=d.getText())}}}var f=n[n.length-1].node,g=Sr[f.namespaceURI],m=H(i,g);if($(r,xr,W,m,n,g),a.length>0){var y=H(i,a);$(r,xr,Cr,[{names:a,values:y}],n)}var v=n[0],_=e.getGeometry();_&&(_=(0,b.fI)(_,!0,v)),$(r,xr,dr,[_],n)}var kr=X(He,["extrude","tessellate","altitudeMode","coordinates"]),Ar=X(He,{extrude:U(vt),tessellate:U(vt),altitudeMode:U(wt),coordinates:U((function(t,e,n){var r,i=n[n.length-1],a=i.layout,s=i.stride;a==o.Z.XY||a==o.Z.XYM?r=2:a==o.Z.XYZ||a==o.Z.XYZM?r=3:(0,f.h)(!1,34);var l=e.length,u="";if(l>0){u+=e[0];for(var c=1;c<r;++c)u+=","+e[c];for(var h=s;h<l;h+=s)for(u+=" "+e[h],c=1;c<r;++c)u+=","+e[h+c]}wt(t,u)}))});function Pr(t,e,n){var r=e.getFlatCoordinates(),i={node:t};i.layout=e.getLayout(),i.stride=e.getStride();var o=e.getProperties();o.coordinates=r;var a=n[n.length-1].node,s=kr[a.namespaceURI],l=H(o,s);$(i,Ar,W,l,n,s)}var Tr=X(He,["color","fill","outline"]),Mr=X(He,{outerBoundaryIs:U(wr),innerBoundaryIs:U(wr)}),Or=q("innerBoundaryIs"),Rr=q("outerBoundaryIs");function Ir(t,e,n){var r=e.getLinearRings(),i=r.shift(),o={node:t};$(o,Mr,Or,r,n),$(o,Mr,Rr,[i],n)}var Lr=X(He,{color:U($n),fill:U(vt),outline:U(vt)});function Fr(t,e){_t(t,Math.round(1e6*e)/1e6)}var Nr=X(He,["IconStyle","LabelStyle","LineStyle","PolyStyle"]),Dr=X(He,{IconStyle:U((function(t,e,n){var r={node:t},i={},o=e.getSrc(),a=e.getSize(),s=e.getImageSize(),l={href:o};if(a){l.w=a[0],l.h=a[1];var u=e.getAnchor(),c=e.getOrigin();if(c&&s&&0!==c[0]&&c[1]!==a[1]&&(l.x=c[0],l.y=s[1]-(c[1]+a[1])),u&&(u[0]!==a[0]/2||u[1]!==a[1]/2)){var h={x:u[0],xunits:De.Z.PIXELS,y:a[1]-u[1],yunits:De.Z.PIXELS};i.hotSpot=h}}i.Icon=l;var p=e.getScaleArray()[0],d=a;null===d&&(d=Pe),2==d.length&&(p/=ln(d)),1!==p&&(i.scale=p);var f=e.getRotation();0!==f&&(i.heading=f);var g=e.getColor();g&&(i.color=g);var m=n[n.length-1].node,y=ar[m.namespaceURI],v=H(i,y);$(r,sr,W,v,n,y)})),LabelStyle:U((function(t,e,n){var r={node:t},i={},o=e.getFill();o&&(i.color=o.getColor());var a=e.getScale();a&&1!==a&&(i.scale=a);var s=n[n.length-1].node,l=lr[s.namespaceURI],u=H(i,l);$(r,ur,W,u,n,l)})),LineStyle:U((function(t,e,n){var r={node:t},i={color:e.getColor(),width:Number(e.getWidth())||1},o=n[n.length-1].node,a=cr[o.namespaceURI],s=H(i,a);$(r,hr,W,s,n,a)})),PolyStyle:U((function(t,e,n){var r={node:t},i=e.getFill(),o=e.getStroke(),a={color:i?i.getColor():void 0,fill:!!i&&void 0,outline:!!o&&void 0},s=n[n.length-1].node,l=Tr[s.namespaceURI],u=H(a,l);$(r,Lr,W,u,n,l)}))});const zr=cn;var Zr=n(9216);const jr=function(){function t(){}return t.prototype.read=function(t){if(t){if("string"==typeof t){var e=D(t);return this.readFromDocument(e)}return N(t)?this.readFromDocument(t):this.readFromNode(t)}return null},t.prototype.readFromDocument=function(t){for(var e=t.firstChild;e;e=e.nextSibling)if(e.nodeType==Node.ELEMENT_NODE)return this.readFromNode(e);return null},t.prototype.readFromNode=function(t){},t}();function Gr(t){return t.getAttributeNS("http://www.w3.org/1999/xlink","href")}var Br=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ur=[null,"http://www.opengis.net/ows/1.1"],Vr=X(Ur,{ServiceIdentification:B((function(t,e){return Y({},ri,t,e)})),ServiceProvider:B((function(t,e){return Y({},ii,t,e)})),OperationsMetadata:B((function(t,e){return Y({},Jr,t,e)}))}),qr=function(t){function e(){return t.call(this)||this}return Br(e,t),e.prototype.readFromNode=function(t){return Y({},Vr,t,[])||null},e}(jr),Wr=X(Ur,{DeliveryPoint:B(yt),City:B(yt),AdministrativeArea:B(yt),PostalCode:B(yt),Country:B(yt),ElectronicMailAddress:B(yt)}),Hr=X(Ur,{Value:G((function(t,e){return yt(t)}))}),Xr=X(Ur,{AllowedValues:B((function(t,e){return Y({},Hr,t,e)}))}),Kr=X(Ur,{Phone:B((function(t,e){return Y({},ti,t,e)})),Address:B((function(t,e){return Y({},Wr,t,e)}))}),Yr=X(Ur,{HTTP:B((function(t,e){return Y({},Qr,t,e)}))}),Qr=X(Ur,{Get:G((function(t,e){var n=Gr(t);if(n)return Y({href:n},ei,t,e)})),Post:void 0}),$r=X(Ur,{DCP:B((function(t,e){return Y({},Yr,t,e)}))}),Jr=X(Ur,{Operation:function(t,e){var n=t.getAttribute("name"),r=Y({},$r,t,e);r&&(e[e.length-1][n]=r)}}),ti=X(Ur,{Voice:B(yt),Facsimile:B(yt)}),ei=X(Ur,{Constraint:G((function(t,e){var n=t.getAttribute("name");if(n)return Y({name:n},Xr,t,e)}))}),ni=X(Ur,{IndividualName:B(yt),PositionName:B(yt),ContactInfo:B((function(t,e){return Y({},Kr,t,e)}))}),ri=X(Ur,{Abstract:B(yt),AccessConstraints:B(yt),Fees:B(yt),Title:B(yt),ServiceTypeVersion:B(yt),ServiceType:B(yt)}),ii=X(Ur,{ProviderName:B(yt),ProviderSite:B(Gr),ServiceContact:B((function(t,e){return Y({},ni,t,e)}))});const oi=qr;function ai(t,e,n,r,i,o){var a,s;void 0!==i?(a=i,s=void 0!==o?o:0):(a=[],s=0);for(var l=e;l<n;){var u=t[l++];a[s++]=t[l++],a[s++]=u;for(var c=2;c<r;++c)a[s++]=t[l++]}return a.length=s,a}var si=n(6216),li=n(7488),ui=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function ci(t){for(var e,n="";t>=32;)e=63+(32|31&t),n+=String.fromCharCode(e),t>>=5;return e=t+63,n+String.fromCharCode(e)}const hi=function(t){function e(e){var n=t.call(this)||this,r=e||{};return n.dataProjection=(0,v.get)("EPSG:4326"),n.factor_=r.factor?r.factor:1e5,n.geometryLayout_=r.geometryLayout?r.geometryLayout:o.Z.XY,n}return ui(e,t),e.prototype.readFeatureFromText=function(t,e){var n=this.readGeometryFromText(t,e);return new i.Z(n)},e.prototype.readFeaturesFromText=function(t,e){return[this.readFeatureFromText(t,e)]},e.prototype.readGeometryFromText=function(t,e){var n=(0,si.tP)(this.geometryLayout_),r=function(t,e,n){var r,i=n||1e5,o=new Array(e);for(r=0;r<e;++r)o[r]=0;for(var a=function(t,e){for(var n=e||1e5,r=function(t){for(var e=function(t){for(var e=[],n=0,r=0,i=0,o=t.length;i<o;++i){var a=t.charCodeAt(i)-63;n|=(31&a)<<r,a<32?(e.push(n),n=0,r=0):r+=5}return e}(t),n=0,r=e.length;n<r;++n){var i=e[n];e[n]=1&i?~(i>>1):i>>1}return e}(t),i=0,o=r.length;i<o;++i)r[i]/=n;return r}(t,i),s=0,l=a.length;s<l;)for(r=0;r<e;++r,++s)o[r]+=a[s],a[s]=o[r];return a}(t,n,this.factor_);ai(r,0,r.length,n,r);var i=(0,li.Ml)(r,0,r.length,n),o=new s.Z(i,this.geometryLayout_);return(0,b.fI)(o,!1,this.adaptOptions(e))},e.prototype.writeFeatureText=function(t,e){var n=t.getGeometry();return n?this.writeGeometryText(n,e):((0,f.h)(!1,40),"")},e.prototype.writeFeaturesText=function(t,e){return this.writeFeatureText(t[0],e)},e.prototype.writeGeometryText=function(t,e){var n=(t=(0,b.fI)(t,!0,this.adaptOptions(e))).getFlatCoordinates(),r=t.getStride();return ai(n,0,n.length,r,n),function(t,e,n){var r,i=n||1e5,o=new Array(e);for(r=0;r<e;++r)o[r]=0;for(var a=0,s=t.length;a<s;)for(r=0;r<e;++r,++a){var l=t[a],u=l-o[r];o[r]=l,t[a]=u}return function(t,e){for(var n=e||1e5,r=0,i=t.length;r<i;++r)t[r]=Math.round(t[r]*n);return function(t){for(var e=0,n=t.length;e<n;++e){var r=t[e];t[e]=r<0?~(r<<1):r<<1}return function(t){for(var e="",n=0,r=t.length;n<r;++n)e+=ci(t[n]);return e}(t)}(t)}(t,i)}(n,r,this.factor_)},e}(me);var pi=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),di=function(t){function e(e){var n=t.call(this)||this,r=e||{};return n.layerName_=r.layerName,n.layers_=r.layers?r.layers:null,n.dataProjection=(0,v.get)(r.dataProjection?r.dataProjection:"EPSG:4326"),n}return pi(e,t),e.prototype.readFeaturesFromObject=function(t,e){if("Topology"==t.type){var n=t,r=void 0,i=null,o=null;n.transform&&(i=(r=n.transform).scale,o=r.translate);var a=n.arcs;r&&function(t,e,n){for(var r=0,i=t.length;r<i;++r)vi(t[r],e,n)}(a,i,o);var s=[],l=n.objects,u=this.layerName_,c=void 0;for(var h in l)this.layers_&&-1==this.layers_.indexOf(h)||("GeometryCollection"===l[h].type?(c=l[h],s.push.apply(s,mi(c,a,i,o,u,h,e))):(c=l[h],s.push(yi(c,a,i,o,u,h,e))));return s}return[]},e.prototype.readProjectionFromObject=function(t){return this.dataProjection},e}(a.Z),fi={Point:function(t,e,n){var r=t.coordinates;return e&&n&&_i(r,e,n),new p.Z(r)},LineString:function(t,e){var n=gi(t.arcs,e);return new s.Z(n)},Polygon:function(t,e){for(var n=[],r=0,i=t.arcs.length;r<i;++r)n[r]=gi(t.arcs[r],e);return new d.ZP(n)},MultiPoint:function(t,e,n){var r=t.coordinates;if(e&&n)for(var i=0,o=r.length;i<o;++i)_i(r[i],e,n);return new c.Z(r)},MultiLineString:function(t,e){for(var n=[],r=0,i=t.arcs.length;r<i;++r)n[r]=gi(t.arcs[r],e);return new u.Z(n)},MultiPolygon:function(t,e){for(var n=[],r=0,i=t.arcs.length;r<i;++r){for(var o=t.arcs[r],a=[],s=0,l=o.length;s<l;++s)a[s]=gi(o[s],e);n[r]=a}return new h.Z(n)}};function gi(t,e){for(var n,r=[],i=0,o=t.length;i<o;++i)if(n=t[i],i>0&&r.pop(),n>=0)for(var a=0,s=(l=e[n]).length;a<s;++a)r.push(l[a].slice(0));else{var l;for(a=(l=e[~n]).length-1;a>=0;--a)r.push(l[a].slice(0))}return r}function mi(t,e,n,r,i,o,a){for(var s=t.geometries,l=[],u=0,c=s.length;u<c;++u)l[u]=yi(s[u],e,n,r,i,o,a);return l}function yi(t,e,n,r,o,a,s){var l=null,u=t.type;if(u){var c=fi[u];l="Point"===u||"MultiPoint"===u?c(t,n,r):c(t,e),l=(0,b.fI)(l,!1,s)}var h=new i.Z({geometry:l});void 0!==t.id&&h.setId(t.id);var p=t.properties;return o&&(p||(p={}),p[o]=a),p&&h.setProperties(p,!0),h}function vi(t,e,n){for(var r=0,i=0,o=0,a=t.length;o<a;++o){var s=t[o];r+=s[0],i+=s[1],s[0]=r,s[1]=i,_i(s,e,n)}}function _i(t,e,n){t[0]=t[0]*e[0]+n[0],t[1]=t[1]*e[1]+n[1]}const bi=di;var wi=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),xi=function(t){function e(e){var n=this,r=e||{};return(n=t.call(this,r)||this).schemaLocation=r.schemaLocation?r.schemaLocation:n.namespace+" http://schemas.opengis.net/gml/3.2.1/gml.xsd",n}return wi(e,t),e}(Tt);xi.prototype.namespace="http://www.opengis.net/gml/3.2",xi.prototype.GEOMETRY_FLAT_COORDINATES_PARSERS={"http://www.opengis.net/gml/3.2":{pos:j(Tt.prototype.readFlatPos),posList:j(Tt.prototype.readFlatPosList),coordinates:j(Et.prototype.readFlatCoordinates)}},xi.prototype.FLAT_LINEAR_RINGS_PARSERS={"http://www.opengis.net/gml/3.2":{interior:Tt.prototype.interiorParser,exterior:Tt.prototype.exteriorParser}},xi.prototype.GEOMETRY_PARSERS={"http://www.opengis.net/gml/3.2":{Point:j(lt.prototype.readPoint),MultiPoint:j(lt.prototype.readMultiPoint),LineString:j(lt.prototype.readLineString),MultiLineString:j(lt.prototype.readMultiLineString),LinearRing:j(lt.prototype.readLinearRing),Polygon:j(lt.prototype.readPolygon),MultiPolygon:j(lt.prototype.readMultiPolygon),Surface:j(xi.prototype.readSurface),MultiSurface:j(Tt.prototype.readMultiSurface),Curve:j(xi.prototype.readCurve),MultiCurve:j(Tt.prototype.readMultiCurve),Envelope:j(xi.prototype.readEnvelope)}},xi.prototype.MULTICURVE_PARSERS={"http://www.opengis.net/gml/3.2":{curveMember:Z(Tt.prototype.curveMemberParser),curveMembers:Z(Tt.prototype.curveMemberParser)}},xi.prototype.MULTISURFACE_PARSERS={"http://www.opengis.net/gml/3.2":{surfaceMember:Z(Tt.prototype.surfaceMemberParser),surfaceMembers:Z(Tt.prototype.surfaceMemberParser)}},xi.prototype.CURVEMEMBER_PARSERS={"http://www.opengis.net/gml/3.2":{LineString:Z(lt.prototype.readLineString),Curve:Z(Tt.prototype.readCurve)}},xi.prototype.SURFACEMEMBER_PARSERS={"http://www.opengis.net/gml/3.2":{Polygon:Z(lt.prototype.readPolygon),Surface:Z(Tt.prototype.readSurface)}},xi.prototype.SURFACE_PARSERS={"http://www.opengis.net/gml/3.2":{patches:j(Tt.prototype.readPatch)}},xi.prototype.CURVE_PARSERS={"http://www.opengis.net/gml/3.2":{segments:j(Tt.prototype.readSegment)}},xi.prototype.ENVELOPE_PARSERS={"http://www.opengis.net/gml/3.2":{lowerCorner:Z(Tt.prototype.readFlatPosList),upperCorner:Z(Tt.prototype.readFlatPosList)}},xi.prototype.PATCHES_PARSERS={"http://www.opengis.net/gml/3.2":{PolygonPatch:j(Tt.prototype.readPolygonPatch)}},xi.prototype.SEGMENTS_PARSERS={"http://www.opengis.net/gml/3.2":{LineStringSegment:z(Tt.prototype.readLineStringSegment)}},xi.prototype.MULTIPOINT_PARSERS={"http://www.opengis.net/gml/3.2":{pointMember:Z(lt.prototype.pointMemberParser),pointMembers:Z(lt.prototype.pointMemberParser)}},xi.prototype.MULTILINESTRING_PARSERS={"http://www.opengis.net/gml/3.2":{lineStringMember:Z(lt.prototype.lineStringMemberParser),lineStringMembers:Z(lt.prototype.lineStringMemberParser)}},xi.prototype.MULTIPOLYGON_PARSERS={"http://www.opengis.net/gml/3.2":{polygonMember:Z(lt.prototype.polygonMemberParser),polygonMembers:Z(lt.prototype.polygonMemberParser)}},xi.prototype.POINTMEMBER_PARSERS={"http://www.opengis.net/gml/3.2":{Point:Z(lt.prototype.readFlatCoordinatesFromNode)}},xi.prototype.LINESTRINGMEMBER_PARSERS={"http://www.opengis.net/gml/3.2":{LineString:Z(lt.prototype.readLineString)}},xi.prototype.POLYGONMEMBER_PARSERS={"http://www.opengis.net/gml/3.2":{Polygon:Z(lt.prototype.readPolygon)}},xi.prototype.RING_PARSERS={"http://www.opengis.net/gml/3.2":{LinearRing:j(lt.prototype.readFlatLinearRing),Ring:j(xi.prototype.readFlatCurveRing)}},xi.prototype.RING_SERIALIZERS={"http://www.opengis.net/gml/3.2":{exterior:U(Tt.prototype.writeRing),interior:U(Tt.prototype.writeRing)}},xi.prototype.ENVELOPE_SERIALIZERS={"http://www.opengis.net/gml/3.2":{lowerCorner:U(wt),upperCorner:U(wt)}},xi.prototype.SURFACEORPOLYGONMEMBER_SERIALIZERS={"http://www.opengis.net/gml/3.2":{surfaceMember:U(Tt.prototype.writeSurfaceOrPolygonMember),polygonMember:U(Tt.prototype.writeSurfaceOrPolygonMember)}},xi.prototype.POINTMEMBER_SERIALIZERS={"http://www.opengis.net/gml/3.2":{pointMember:U(Tt.prototype.writePointMember)}},xi.prototype.LINESTRINGORCURVEMEMBER_SERIALIZERS={"http://www.opengis.net/gml/3.2":{lineStringMember:U(Tt.prototype.writeLineStringOrCurveMember),curveMember:U(Tt.prototype.writeLineStringOrCurveMember)}},xi.prototype.GEOMETRY_SERIALIZERS={"http://www.opengis.net/gml/3.2":{Curve:U(Tt.prototype.writeCurveOrLineString),MultiCurve:U(Tt.prototype.writeMultiCurveOrLineString),Point:U(xi.prototype.writePoint),MultiPoint:U(Tt.prototype.writeMultiPoint),LineString:U(Tt.prototype.writeCurveOrLineString),MultiLineString:U(Tt.prototype.writeMultiCurveOrLineString),LinearRing:U(Tt.prototype.writeLinearRing),Polygon:U(Tt.prototype.writeSurfaceOrPolygon),MultiPolygon:U(Tt.prototype.writeMultiSurfaceOrPolygon),Surface:U(Tt.prototype.writeSurfaceOrPolygon),MultiSurface:U(Tt.prototype.writeMultiSurfaceOrPolygon),Envelope:U(Tt.prototype.writeEnvelope)}};const Si=xi,Ci=function(){function t(t){this.tagName_=t}return t.prototype.getTagName=function(){return this.tagName_},t}();var Ei=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const ki=function(t){function e(e,n){var r=t.call(this,e)||this;return r.conditions=n,(0,f.h)(r.conditions.length>=2,57),r}return Ei(e,t),e}(Ci);var Ai=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Pi=function(t){function e(e){return t.call(this,"And",Array.prototype.slice.call(arguments))||this}return Ai(e,t),e}(ki);var Ti=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Mi=function(t){function e(e,n,r){var i=t.call(this,"BBOX")||this;if(i.geometryName=e,i.extent=n,4!==n.length)throw new Error("Expected an extent with four values ([minX, minY, maxX, maxY])");return i.srsName=r,i}return Ti(e,t),e}(Ci);const Oi=Mi;var Ri=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ii={"http://www.opengis.net/gml":{boundedBy:B(lt.prototype.readExtentElement,"bounds")},"http://www.opengis.net/wfs/2.0":{member:Z(lt.prototype.readFeaturesInternal)}},Li={"http://www.opengis.net/wfs":{totalInserted:B(gt),totalUpdated:B(gt),totalDeleted:B(gt)},"http://www.opengis.net/wfs/2.0":{totalInserted:B(gt),totalUpdated:B(gt),totalDeleted:B(gt)}},Fi={"http://www.opengis.net/wfs":{TransactionSummary:B(Hi,"transactionSummary"),InsertResults:B(Qi,"insertIds")},"http://www.opengis.net/wfs/2.0":{TransactionSummary:B(Hi,"transactionSummary"),InsertResults:B(Qi,"insertIds")}},Ni={"http://www.opengis.net/wfs":{PropertyName:U(wt)},"http://www.opengis.net/wfs/2.0":{PropertyName:U(wt)}},Di={"http://www.opengis.net/wfs":{Insert:U($i),Update:U(no),Delete:U(eo),Property:U(ro),Native:U(io)},"http://www.opengis.net/wfs/2.0":{Insert:U($i),Update:U(no),Delete:U(eo),Property:U(ro),Native:U(io)}},zi="feature",Zi="http://www.w3.org/2000/xmlns/",ji={"2.0.0":"http://www.opengis.net/ogc/1.1","1.1.0":"http://www.opengis.net/ogc","1.0.0":"http://www.opengis.net/ogc"},Gi={"2.0.0":"http://www.opengis.net/wfs/2.0","1.1.0":"http://www.opengis.net/wfs","1.0.0":"http://www.opengis.net/wfs"},Bi={"2.0.0":"http://www.opengis.net/fes/2.0","1.1.0":"http://www.opengis.net/fes","1.0.0":"http://www.opengis.net/fes"},Ui={"2.0.0":"http://www.opengis.net/wfs/2.0 http://schemas.opengis.net/wfs/2.0/wfs.xsd","1.1.0":"http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd","1.0.0":"http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.0.0/wfs.xsd"},Vi={"2.0.0":Si,"1.1.0":Tt,"1.0.0":Et},qi=function(t){function e(e){var n=t.call(this)||this,r=e||{};return n.version_=r.version?r.version:"1.1.0",n.featureType_=r.featureType,n.featureNS_=r.featureNS,n.gmlFormat_=r.gmlFormat?r.gmlFormat:new Vi[n.version_],n.schemaLocation_=r.schemaLocation?r.schemaLocation:Ui[n.version_],n}return Ri(e,t),e.prototype.getFeatureType=function(){return this.featureType_},e.prototype.setFeatureType=function(t){this.featureType_=t},e.prototype.readFeaturesFromNode=function(t,e){var n={node:t};(0,g.f0)(n,{featureType:this.featureType_,featureNS:this.featureNS_}),(0,g.f0)(n,this.getReadOptions(t,e||{}));var r=[n],i=Y([],"2.0.0"===this.version_?Ii:this.gmlFormat_.FEATURE_COLLECTION_PARSERS,t,r,this.gmlFormat_);return i||(i=[]),i},e.prototype.readTransactionResponse=function(t){if(t){if("string"==typeof t){var e=D(t);return this.readTransactionResponseFromDocument(e)}return N(t)?this.readTransactionResponseFromDocument(t):this.readTransactionResponseFromNode(t)}},e.prototype.readFeatureCollectionMetadata=function(t){if(t){if("string"==typeof t){var e=D(t);return this.readFeatureCollectionMetadataFromDocument(e)}return N(t)?this.readFeatureCollectionMetadataFromDocument(t):this.readFeatureCollectionMetadataFromNode(t)}},e.prototype.readFeatureCollectionMetadataFromDocument=function(t){for(var e=t.firstChild;e;e=e.nextSibling)if(e.nodeType==Node.ELEMENT_NODE)return this.readFeatureCollectionMetadataFromNode(e)},e.prototype.readFeatureCollectionMetadataFromNode=function(t){var e={},n=mt(t.getAttribute("numberOfFeatures"));return e.numberOfFeatures=n,Y(e,Ii,t,[],this.gmlFormat_)},e.prototype.readTransactionResponseFromDocument=function(t){for(var e=t.firstChild;e;e=e.nextSibling)if(e.nodeType==Node.ELEMENT_NODE)return this.readTransactionResponseFromNode(e)},e.prototype.readTransactionResponseFromNode=function(t){return Y({},Fi,t,[])},e.prototype.writeGetFeature=function(t){var e=this,n=I(Gi[this.version_],"GetFeature");n.setAttribute("service","WFS"),n.setAttribute("version",this.version_),t.handle&&n.setAttribute("handle",t.handle),t.outputFormat&&n.setAttribute("outputFormat",t.outputFormat),void 0!==t.maxFeatures&&n.setAttribute("maxFeatures",String(t.maxFeatures)),t.resultType&&n.setAttribute("resultType",t.resultType),void 0!==t.startIndex&&n.setAttribute("startIndex",String(t.startIndex)),void 0!==t.count&&n.setAttribute("count",String(t.count)),void 0!==t.viewParams&&n.setAttribute("viewParams",t.viewParams),n.setAttributeNS(R,"xsi:schemaLocation",this.schemaLocation_);var r={node:n};if((0,g.f0)(r,{version:this.version_,srsName:t.srsName,featureNS:t.featureNS?t.featureNS:this.featureNS_,featurePrefix:t.featurePrefix,propertyNames:t.propertyNames?t.propertyNames:[]}),(0,f.h)(Array.isArray(t.featureTypes),11),"string"==typeof t.featureTypes[0]){var i=t.filter;t.bbox&&((0,f.h)(t.geometryName,12),i=this.combineBboxAndFilter(t.geometryName,t.bbox,t.srsName,i)),(0,g.f0)(r,{geometryName:t.geometryName,filter:i}),xo(n,t.featureTypes,[r])}else t.featureTypes.forEach((function(i){var o=e.combineBboxAndFilter(i.geometryName,i.bbox,t.srsName,t.filter);(0,g.f0)(r,{geometryName:i.geometryName,filter:o}),xo(n,[i.name],[r])}));return n},e.prototype.combineBboxAndFilter=function(t,e,n,r){var i=function(t,e,n){return new Oi(t,e,n)}(t,e,n);return r?function(t){var e=[null].concat(Array.prototype.slice.call(arguments));return new(Function.prototype.bind.apply(Pi,e))}(r,i):i},e.prototype.writeTransaction=function(t,e,n,r){var i,o=[],a=r.version?r.version:this.version_,s=I(Gi[a],"Transaction");s.setAttribute("service","WFS"),s.setAttribute("version",a),r&&(i=r.gmlOptions?r.gmlOptions:{},r.handle&&s.setAttribute("handle",r.handle)),s.setAttributeNS(R,"xsi:schemaLocation",Ui[a]);var l=function(t,e,n,r){var i,o=r.featurePrefix?r.featurePrefix:zi;return"1.0.0"===n?i=2:"1.1.0"===n?i=3:"2.0.0"===n&&(i=3.2),(0,g.f0)({node:t},{version:n,featureNS:r.featureNS,featureType:r.featureType,featurePrefix:o,gmlVersion:i,hasZ:r.hasZ,srsName:r.srsName},e)}(s,i,a,r);return t&&Wi("Insert",t,o,l),e&&Wi("Update",e,o,l),n&&Wi("Delete",n,o,l),r.nativeElements&&Wi("Native",r.nativeElements,o,l),s},e.prototype.readProjectionFromDocument=function(t){for(var e=t.firstChild;e;e=e.nextSibling)if(e.nodeType==Node.ELEMENT_NODE)return this.readProjectionFromNode(e);return null},e.prototype.readProjectionFromNode=function(t){if(t.firstElementChild&&t.firstElementChild.firstElementChild)for(var e=(t=t.firstElementChild.firstElementChild).firstElementChild;e;e=e.nextElementSibling)if(0!==e.childNodes.length&&(1!==e.childNodes.length||3!==e.firstChild.nodeType)){var n=[{}];return this.gmlFormat_.readGeometryElement(e,n),(0,v.get)(n.pop().srsName)}return null},e}(rt);function Wi(t,e,n,r){$(r,Di,q(t),e,n)}function Hi(t,e){return Y({},Li,t,e)}var Xi={"http://www.opengis.net/ogc":{FeatureId:Z((function(t,e){return t.getAttribute("fid")}))},"http://www.opengis.net/ogc/1.1":{FeatureId:Z((function(t,e){return t.getAttribute("fid")}))}};function Ki(t,e){K(Xi,t,e)}var Yi={"http://www.opengis.net/wfs":{Feature:Ki},"http://www.opengis.net/wfs/2.0":{Feature:Ki}};function Qi(t,e){return Y([],Yi,t,e)}function $i(t,e,n){var r=n[n.length-1],i=r.featureType,o=r.featureNS,a=r.gmlVersion,s=I(o,i);t.appendChild(s),2===a?Et.prototype.writeFeatureElement(s,e,n):3===a?Tt.prototype.writeFeatureElement(s,e,n):Si.prototype.writeFeatureElement(s,e,n)}function Ji(t,e,n){var r=n[n.length-1].version,i=ji[r],o=I(i,"Filter"),a=I(i,"FeatureId");o.appendChild(a),a.setAttribute("fid",e),t.appendChild(o)}function to(t,e){var n=(t=t||zi)+":";return 0===e.indexOf(n)?e:n+e}function eo(t,e,n){var r=n[n.length-1];(0,f.h)(void 0!==e.getId(),26);var i=r.featureType,o=r.featurePrefix,a=r.featureNS,s=to(o,i);t.setAttribute("typeName",s),t.setAttributeNS(Zi,"xmlns:"+o,a);var l=e.getId();void 0!==l&&Ji(t,l,n)}function no(t,e,n){var r=n[n.length-1];(0,f.h)(void 0!==e.getId(),27);var i=r.version,o=r.featureType,a=r.featurePrefix,s=r.featureNS,l=to(a,o),u=e.getGeometryName();t.setAttribute("typeName",l),t.setAttributeNS(Zi,"xmlns:"+a,s);var c=e.getId();if(void 0!==c){for(var h=e.getKeys(),p=[],d=0,g=h.length;d<g;d++){var m=e.get(h[d]);if(void 0!==m){var y=h[d];m&&"function"==typeof m.getSimplifiedGeometry&&(y=u),p.push({name:y,value:m})}}$({version:i,gmlVersion:r.gmlVersion,node:t,hasZ:r.hasZ,srsName:r.srsName},Di,q("Property"),p,n),Ji(t,c,n)}}function ro(t,e,n){var r=n[n.length-1],i=r.version,o=Gi[i],a=I(o,"Name"),s=r.gmlVersion;if(t.appendChild(a),wt(a,e.name),void 0!==e.value&&null!==e.value){var l=I(o,"Value");t.appendChild(l),e.value&&"function"==typeof e.value.getSimplifiedGeometry?2===s?Et.prototype.writeGeometryElement(l,e.value,n):3===s?Tt.prototype.writeGeometryElement(l,e.value,n):Si.prototype.writeGeometryElement(l,e.value,n):wt(l,e.value)}}function io(t,e,n){e.vendorId&&t.setAttribute("vendorId",e.vendorId),void 0!==e.safeToIgnore&&t.setAttribute("safeToIgnore",String(e.safeToIgnore)),void 0!==e.value&&wt(t,e.value)}var oo={"http://www.opengis.net/wfs":{Query:U(ao)},"http://www.opengis.net/wfs/2.0":{Query:U(ao)},"http://www.opengis.net/ogc":{During:U(co),And:U(ho),Or:U(ho),Not:U(po),BBOX:U(so),Contains:U(lo),Intersects:U(lo),Within:U(lo),DWithin:U(uo),PropertyIsEqualTo:U(fo),PropertyIsNotEqualTo:U(fo),PropertyIsLessThan:U(fo),PropertyIsLessThanOrEqualTo:U(fo),PropertyIsGreaterThan:U(fo),PropertyIsGreaterThanOrEqualTo:U(fo),PropertyIsNull:U(go),PropertyIsBetween:U(mo),PropertyIsLike:U(yo)},"http://www.opengis.net/fes/2.0":{During:U(co),And:U(ho),Or:U(ho),Not:U(po),BBOX:U(so),Contains:U(lo),Disjoint:U(lo),Intersects:U(lo),ResourceId:U((function(t,e,n){t.setAttribute("rid",e.rid)})),Within:U(lo),DWithin:U(uo),PropertyIsEqualTo:U(fo),PropertyIsNotEqualTo:U(fo),PropertyIsLessThan:U(fo),PropertyIsLessThanOrEqualTo:U(fo),PropertyIsGreaterThan:U(fo),PropertyIsGreaterThanOrEqualTo:U(fo),PropertyIsNull:U(go),PropertyIsBetween:U(mo),PropertyIsLike:U(yo)}};function ao(t,e,n){var r,i,o=n[n.length-1],a=o.version,s=o.featurePrefix,l=o.featureNS,u=o.propertyNames,c=o.srsName;r=s?to(s,e):e,i="2.0.0"===a?"typeNames":"typeName",t.setAttribute(i,r),c&&t.setAttribute("srsName",c),l&&t.setAttributeNS(Zi,"xmlns:"+s,l);var h=(0,g.f0)({},o);h.node=t,$(h,Ni,q("PropertyName"),u,n);var p=o.filter;if(p){var d=I(So(a),"Filter");t.appendChild(d),function(t,e,n){var r=n[n.length-1],i={node:t};(0,g.f0)(i,{context:r}),$(i,oo,q(e.getTagName()),[e],n)}(d,p,n)}}function so(t,e,n){var r=n[n.length-1],i=r.context.version;r.srsName=e.srsName;var o=Vi[i];bo(i,t,e.geometryName),o.prototype.writeGeometryElement(t,e.extent,n)}function lo(t,e,n){var r=n[n.length-1],i=r.context.version;r.srsName=e.srsName;var o=Vi[i];bo(i,t,e.geometryName),o.prototype.writeGeometryElement(t,e.geometry,n)}function uo(t,e,n){var r=n[n.length-1].context.version;lo(t,e,n);var i=I(So(r),"Distance");wt(i,e.distance.toString()),"2.0.0"===r?i.setAttribute("uom",e.unit):i.setAttribute("units",e.unit),t.appendChild(i)}function co(t,e,n){var r=n[n.length-1].context.version;vo(Bi[r],"ValueReference",t,e.propertyName);var i=I(ot,"TimePeriod");t.appendChild(i);var o=I(ot,"begin");i.appendChild(o),wo(o,e.begin);var a=I(ot,"end");i.appendChild(a),wo(a,e.end)}function ho(t,e,n){var r=n[n.length-1].context,i={node:t};(0,g.f0)(i,{context:r});for(var o=e.conditions,a=0,s=o.length;a<s;++a){var l=o[a];$(i,oo,q(l.getTagName()),[l],n)}}function po(t,e,n){var r=n[n.length-1].context,i={node:t};(0,g.f0)(i,{context:r});var o=e.condition;$(i,oo,q(o.getTagName()),[o],n)}function fo(t,e,n){var r=n[n.length-1].context.version;void 0!==e.matchCase&&t.setAttribute("matchCase",e.matchCase.toString()),bo(r,t,e.propertyName),_o(r,t,""+e.expression)}function go(t,e,n){bo(n[n.length-1].context.version,t,e.propertyName)}function mo(t,e,n){var r=n[n.length-1].context.version,i=So(r);bo(r,t,e.propertyName);var o=I(i,"LowerBoundary");t.appendChild(o),_o(r,o,""+e.lowerBoundary);var a=I(i,"UpperBoundary");t.appendChild(a),_o(r,a,""+e.upperBoundary)}function yo(t,e,n){var r=n[n.length-1].context.version;t.setAttribute("wildCard",e.wildCard),t.setAttribute("singleChar",e.singleChar),t.setAttribute("escapeChar",e.escapeChar),void 0!==e.matchCase&&t.setAttribute("matchCase",e.matchCase.toString()),bo(r,t,e.propertyName),_o(r,t,""+e.pattern)}function vo(t,e,n,r){var i=I(t,e);wt(i,r),n.appendChild(i)}function _o(t,e,n){vo(So(t),"Literal",e,n)}function bo(t,e,n){"2.0.0"===t?vo(Bi[t],"ValueReference",e,n):vo(ji[t],"PropertyName",e,n)}function wo(t,e){var n=I(ot,"TimeInstant");t.appendChild(n);var r=I(ot,"timePosition");n.appendChild(r),wt(r,e)}function xo(t,e,n){var r=n[n.length-1],i=(0,g.f0)({},r);i.node=t,$(i,oo,q("Query"),e,n)}function So(t){return"2.0.0"===t?Bi[t]:ji[t]}const Co=qi;var Eo=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ko=function(){function t(t){this.view_=t,this.pos_=0,this.initialized_=!1,this.isLittleEndian_=!1,this.hasZ_=!1,this.hasM_=!1,this.srid_=null,this.layout_=o.Z.XY}return t.prototype.readUint8=function(){return this.view_.getUint8(this.pos_++)},t.prototype.readUint32=function(t){return this.view_.getUint32((this.pos_+=4)-4,void 0!==t?t:this.isLittleEndian_)},t.prototype.readDouble=function(t){return this.view_.getFloat64((this.pos_+=8)-8,void 0!==t?t:this.isLittleEndian_)},t.prototype.readPoint=function(){var t=[];return t.push(this.readDouble()),t.push(this.readDouble()),this.hasZ_&&t.push(this.readDouble()),this.hasM_&&t.push(this.readDouble()),t},t.prototype.readLineString=function(){for(var t=this.readUint32(),e=[],n=0;n<t;n++)e.push(this.readPoint());return e},t.prototype.readPolygon=function(){for(var t=this.readUint32(),e=[],n=0;n<t;n++)e.push(this.readLineString());return e},t.prototype.readWkbHeader=function(t){var e=this.readUint8()>0,n=this.readUint32(e),r=Math.floor((268435455&n)/1e3),i=Boolean(2147483648&n)||1===r||3===r,o=Boolean(1073741824&n)||2===r||3===r,a=Boolean(536870912&n),s=(268435455&n)%1e3,l=["XY",i?"Z":"",o?"M":""].join(""),u=a?this.readUint32(e):null;if(void 0!==t&&t!==s)throw new Error("Unexpected WKB geometry type "+s);if(this.initialized_){if(this.isLittleEndian_!==e)throw new Error("Inconsistent endian");if(this.layout_!==l)throw new Error("Inconsistent geometry layout");if(u&&this.srid_!==u)throw new Error("Inconsistent coordinate system (SRID)")}else this.isLittleEndian_=e,this.hasZ_=i,this.hasM_=o,this.layout_=l,this.srid_=u,this.initialized_=!0;return s},t.prototype.readWkbPayload=function(t){switch(t){case 1:return this.readPoint();case 2:return this.readLineString();case 3:case 17:return this.readPolygon();case 4:return this.readMultiPoint();case 5:return this.readMultiLineString();case 6:case 15:case 16:return this.readMultiPolygon();case 7:return this.readGeometryCollection();default:throw new Error("Unsupported WKB geometry type "+t+" is found")}},t.prototype.readWkbBlock=function(t){return this.readWkbPayload(this.readWkbHeader(t))},t.prototype.readWkbCollection=function(t,e){for(var n=this.readUint32(),r=[],i=0;i<n;i++){var o=t.call(this,e);o&&r.push(o)}return r},t.prototype.readMultiPoint=function(){return this.readWkbCollection(this.readWkbBlock,1)},t.prototype.readMultiLineString=function(){return this.readWkbCollection(this.readWkbBlock,2)},t.prototype.readMultiPolygon=function(){return this.readWkbCollection(this.readWkbBlock,3)},t.prototype.readGeometryCollection=function(){return this.readWkbCollection(this.readGeometry)},t.prototype.readGeometry=function(){var t=this.readWkbHeader(),e=this.readWkbPayload(t);switch(t){case 1:return new p.Z(e,this.layout_);case 2:return new s.Z(e,this.layout_);case 3:case 17:return new d.ZP(e,this.layout_);case 4:return new c.Z(e,this.layout_);case 5:return new u.Z(e,this.layout_);case 6:case 15:case 16:return new h.Z(e,this.layout_);case 7:return new Fe.Z(e);default:return null}},t.prototype.getSrid=function(){return this.srid_},t}(),Ao=function(){function t(t){t=t||{},this.layout_=t.layout,this.isLittleEndian_=!1!==t.littleEndian,this.isEWKB_=!1!==t.ewkb,this.writeQueue_=[],this.nodata_=(0,g.f0)({X:0,Y:0,Z:0,M:0},t.nodata)}return t.prototype.writeUint8=function(t){this.writeQueue_.push([1,t])},t.prototype.writeUint32=function(t){this.writeQueue_.push([4,t])},t.prototype.writeDouble=function(t){this.writeQueue_.push([8,t])},t.prototype.writePoint=function(t,e){for(var n=g.f0.apply(null,e.split("").map((function(e,n){var r;return(r={})[e]=t[n],r}))),r=0,i=this.layout_;r<i.length;r++){var o=i[r];this.writeDouble(o in n?n[o]:this.nodata_[o])}},t.prototype.writeLineString=function(t,e){this.writeUint32(t.length);for(var n=0;n<t.length;n++)this.writePoint(t[n],e)},t.prototype.writePolygon=function(t,e){this.writeUint32(t.length);for(var n=0;n<t.length;n++)this.writeLineString(t[n],e)},t.prototype.writeWkbHeader=function(t,e){t%=1e3,this.layout_.indexOf("Z")>=0&&(t+=this.isEWKB_?2147483648:1e3),this.layout_.indexOf("M")>=0&&(t+=this.isEWKB_?1073741824:2e3),this.isEWKB_&&Number.isInteger(e)&&(t|=536870912),this.writeUint8(this.isLittleEndian_?1:0),this.writeUint32(t),this.isEWKB_&&Number.isInteger(e)&&this.writeUint32(e)},t.prototype.writeMultiPoint=function(t,e){this.writeUint32(t.length);for(var n=0;n<t.length;n++)this.writeWkbHeader(1),this.writePoint(t[n],e)},t.prototype.writeMultiLineString=function(t,e){this.writeUint32(t.length);for(var n=0;n<t.length;n++)this.writeWkbHeader(2),this.writeLineString(t[n],e)},t.prototype.writeMultiPolygon=function(t,e){this.writeUint32(t.length);for(var n=0;n<t.length;n++)this.writeWkbHeader(3),this.writePolygon(t[n],e)},t.prototype.writeGeometryCollection=function(t){this.writeUint32(t.length);for(var e=0;e<t.length;e++)this.writeGeometry(t[e])},t.prototype.findMinimumLayout=function(t,e){var n,r;if(void 0===e&&(e=o.Z.XYZM),t instanceof si.ZP)return(n=t.getLayout())===(r=e)?n:n===o.Z.XYZM?r:r===o.Z.XYZM?n:o.Z.XY;if(t instanceof Fe.Z)for(var i=t.getGeometriesArray(),a=0;a<i.length&&e!==o.Z.XY;a++)e=this.findMinimumLayout(i[a],e);return e},t.prototype.writeGeometry=function(t,e){var n={Point:1,LineString:2,Polygon:3,MultiPoint:4,MultiLineString:5,MultiPolygon:6,GeometryCollection:7},r=t.getType(),i=n[r];if(!i)throw new Error("GeometryType "+r+" is not supported");this.layout_||(this.layout_=this.findMinimumLayout(t)),this.writeWkbHeader(i,e),t instanceof si.ZP?{Point:this.writePoint,LineString:this.writeLineString,Polygon:this.writePolygon,MultiPoint:this.writeMultiPoint,MultiLineString:this.writeMultiLineString,MultiPolygon:this.writeMultiPolygon}[r].call(this,t.getCoordinates(),t.getLayout()):t instanceof Fe.Z&&this.writeGeometryCollection(t.getGeometriesArray())},t.prototype.getBuffer=function(){var t=this,e=this.writeQueue_.reduce((function(t,e){return t+e[0]}),0),n=new ArrayBuffer(e),r=new DataView(n),i=0;return this.writeQueue_.forEach((function(e){switch(e[0]){case 1:r.setUint8(i,e[1]);break;case 4:r.setUint32(i,e[1],t.isLittleEndian_);break;case 8:r.setFloat64(i,e[1],t.isLittleEndian_)}i+=e[0]})),n},t}();function Po(t){return"string"==typeof t?function(t){for(var e=new Uint8Array(t.length/2),n=0;n<t.length/2;n++)e[n]=parseInt(t.substr(2*n,2),16);return new DataView(e.buffer)}(t):ArrayBuffer.isView(t)?t instanceof DataView?t:new DataView(t.buffer,t.byteOffset,t.byteLength):t instanceof ArrayBuffer?new DataView(t):null}const To=function(t){function e(e){var n=t.call(this)||this,r=e||{};return n.splitCollection=Boolean(r.splitCollection),n.viewCache_=null,n.hex_=!1!==r.hex,n.littleEndian_=!1!==r.littleEndian,n.ewkb_=!1!==r.ewkb,n.layout_=r.geometryLayout,n.nodataZ_=r.nodataZ||0,n.nodataM_=r.nodataM||0,n.srid_=r.srid,n}return Eo(e,t),e.prototype.getType=function(){return this.hex_?"text":"arraybuffer"},e.prototype.readFeature=function(t,e){return new i.Z({geometry:this.readGeometry(t,e)})},e.prototype.readFeatures=function(t,e){var n=this.readGeometry(t,e);return(this.splitCollection&&n instanceof Fe.Z?n.getGeometriesArray():[n]).map((function(t){return new i.Z({geometry:t})}))},e.prototype.readGeometry=function(t,e){var n=Po(t);if(!n)return null;var r=new ko(n).readGeometry();this.viewCache_=n;var i=this.getReadOptions(t,e);return this.viewCache_=null,(0,b.fI)(r,!1,i)},e.prototype.readProjection=function(t){var e=this.viewCache_||Po(t);if(e){var n=new ko(e);return n.readWkbHeader(),n.getSrid()&&(0,v.get)("EPSG:"+n.getSrid())||void 0}},e.prototype.writeFeature=function(t,e){return this.writeGeometry(t.getGeometry(),e)},e.prototype.writeFeatures=function(t,e){return this.writeGeometry(new Fe.Z(t.map((function(t){return t.getGeometry()}))),e)},e.prototype.writeGeometry=function(t,e){var n=this.adaptOptions(e),r=new Ao({layout:this.layout_,littleEndian:this.littleEndian_,ewkb:this.ewkb_,nodata:{Z:this.nodataZ_,M:this.nodataM_}}),i=Number.isInteger(this.srid_)?Number(this.srid_):null;if(!1!==this.srid_&&!Number.isInteger(this.srid_)){var o=n.dataProjection&&(0,v.get)(n.dataProjection);if(o){var a=o.getCode();0===a.indexOf("EPSG:")&&(i=Number(a.substring(5)))}}r.writeGeometry((0,b.fI)(t,!0,n),i);var s=r.getBuffer();return this.hex_?function(t){var e=new Uint8Array(t);return Array.from(e.values()).map((function(t){return(t<16?"0":"")+Number(t).toString(16).toUpperCase()})).join("")}(s):s},e}(b.ZP);var Mo=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Oo={POINT:p.Z,LINESTRING:s.Z,POLYGON:d.ZP,MULTIPOINT:c.Z,MULTILINESTRING:u.Z,MULTIPOLYGON:h.Z},Ro="EMPTY",Io={Point:"POINT",LineString:"LINESTRING",Polygon:"POLYGON",MultiPoint:"MULTIPOINT",MultiLineString:"MULTILINESTRING",MultiPolygon:"MULTIPOLYGON",GeometryCollection:"GEOMETRYCOLLECTION",Circle:"CIRCLE"},Lo=function(){function t(t){this.wkt=t,this.index_=-1}return t.prototype.isAlpha_=function(t){return t>="a"&&t<="z"||t>="A"&&t<="Z"},t.prototype.isNumeric_=function(t,e){return t>="0"&&t<="9"||"."==t&&!(void 0!==e&&e)},t.prototype.isWhiteSpace_=function(t){return" "==t||"\t"==t||"\r"==t||"\n"==t},t.prototype.nextChar_=function(){return this.wkt.charAt(++this.index_)},t.prototype.nextToken=function(){var t,e=this.nextChar_(),n=this.index_,r=e;if("("==e)t=2;else if(","==e)t=5;else if(")"==e)t=3;else if(this.isNumeric_(e)||"-"==e)t=4,r=this.readNumber_();else if(this.isAlpha_(e))t=1,r=this.readText_();else{if(this.isWhiteSpace_(e))return this.nextToken();if(""!==e)throw new Error("Unexpected character: "+e);t=6}return{position:n,value:r,type:t}},t.prototype.readNumber_=function(){var t,e=this.index_,n=!1,r=!1;do{"."==t?n=!0:"e"!=t&&"E"!=t||(r=!0),t=this.nextChar_()}while(this.isNumeric_(t,n)||!r&&("e"==t||"E"==t)||r&&("-"==t||"+"==t));return parseFloat(this.wkt.substring(e,this.index_--))},t.prototype.readText_=function(){var t,e=this.index_;do{t=this.nextChar_()}while(this.isAlpha_(t));return this.wkt.substring(e,this.index_--).toUpperCase()},t}(),Fo=function(){function t(t){this.lexer_=t,this.token_={position:0,type:0},this.layout_=o.Z.XY}return t.prototype.consume_=function(){this.token_=this.lexer_.nextToken()},t.prototype.isTokenType=function(t){return this.token_.type==t},t.prototype.match=function(t){var e=this.isTokenType(t);return e&&this.consume_(),e},t.prototype.parse=function(){return this.consume_(),this.parseGeometry_()},t.prototype.parseGeometryLayout_=function(){var t=o.Z.XY,e=this.token_;if(this.isTokenType(1)){var n=e.value;"Z"===n?t=o.Z.XYZ:"M"===n?t=o.Z.XYM:"ZM"===n&&(t=o.Z.XYZM),t!==o.Z.XY&&this.consume_()}return t},t.prototype.parseGeometryCollectionText_=function(){if(this.match(2)){var t=[];do{t.push(this.parseGeometry_())}while(this.match(5));if(this.match(3))return t}throw new Error(this.formatErrorMessage_())},t.prototype.parsePointText_=function(){if(this.match(2)){var t=this.parsePoint_();if(this.match(3))return t}throw new Error(this.formatErrorMessage_())},t.prototype.parseLineStringText_=function(){if(this.match(2)){var t=this.parsePointList_();if(this.match(3))return t}throw new Error(this.formatErrorMessage_())},t.prototype.parsePolygonText_=function(){if(this.match(2)){var t=this.parseLineStringTextList_();if(this.match(3))return t}throw new Error(this.formatErrorMessage_())},t.prototype.parseMultiPointText_=function(){if(this.match(2)){var t;if(t=2==this.token_.type?this.parsePointTextList_():this.parsePointList_(),this.match(3))return t}throw new Error(this.formatErrorMessage_())},t.prototype.parseMultiLineStringText_=function(){if(this.match(2)){var t=this.parseLineStringTextList_();if(this.match(3))return t}throw new Error(this.formatErrorMessage_())},t.prototype.parseMultiPolygonText_=function(){if(this.match(2)){var t=this.parsePolygonTextList_();if(this.match(3))return t}throw new Error(this.formatErrorMessage_())},t.prototype.parsePoint_=function(){for(var t=[],e=this.layout_.length,n=0;n<e;++n){var r=this.token_;if(!this.match(4))break;t.push(r.value)}if(t.length==e)return t;throw new Error(this.formatErrorMessage_())},t.prototype.parsePointList_=function(){for(var t=[this.parsePoint_()];this.match(5);)t.push(this.parsePoint_());return t},t.prototype.parsePointTextList_=function(){for(var t=[this.parsePointText_()];this.match(5);)t.push(this.parsePointText_());return t},t.prototype.parseLineStringTextList_=function(){for(var t=[this.parseLineStringText_()];this.match(5);)t.push(this.parseLineStringText_());return t},t.prototype.parsePolygonTextList_=function(){for(var t=[this.parsePolygonText_()];this.match(5);)t.push(this.parsePolygonText_());return t},t.prototype.isEmptyGeometry_=function(){var t=this.isTokenType(1)&&this.token_.value==Ro;return t&&this.consume_(),t},t.prototype.formatErrorMessage_=function(){return"Unexpected `"+this.token_.value+"` at position "+this.token_.position+" in `"+this.lexer_.wkt+"`"},t.prototype.parseGeometry_=function(){var t=this.token_;if(this.match(1)){var e=t.value;this.layout_=this.parseGeometryLayout_();var n=this.isEmptyGeometry_();if("GEOMETRYCOLLECTION"==e){if(n)return new Fe.Z([]);var r=this.parseGeometryCollectionText_();return new Fe.Z(r)}var i=Oo[e];if(!i)throw new Error("Invalid geometry type: "+e);var o=void 0;if(n)o="POINT"==e?[NaN,NaN]:[];else switch(e){case"POINT":o=this.parsePointText_();break;case"LINESTRING":o=this.parseLineStringText_();break;case"POLYGON":o=this.parsePolygonText_();break;case"MULTIPOINT":o=this.parseMultiPointText_();break;case"MULTILINESTRING":o=this.parseMultiLineStringText_();break;case"MULTIPOLYGON":o=this.parseMultiPolygonText_()}return new i(o,this.layout_)}throw new Error(this.formatErrorMessage_())},t}(),No=function(t){function e(e){var n=t.call(this)||this,r=e||{};return n.splitCollection_=void 0!==r.splitCollection&&r.splitCollection,n}return Mo(e,t),e.prototype.parse_=function(t){var e=new Lo(t);return new Fo(e).parse()},e.prototype.readFeatureFromText=function(t,e){var n=this.readGeometryFromText(t,e),r=new i.Z;return r.setGeometry(n),r},e.prototype.readFeaturesFromText=function(t,e){for(var n,r=this.readGeometryFromText(t,e),o=[],a=0,s=(n=this.splitCollection_&&"GeometryCollection"==r.getType()?r.getGeometriesArray():[r]).length;a<s;++a){var l=new i.Z;l.setGeometry(n[a]),o.push(l)}return o},e.prototype.readGeometryFromText=function(t,e){var n=this.parse_(t);return(0,b.fI)(n,!1,e)},e.prototype.writeFeatureText=function(t,e){var n=t.getGeometry();return n?this.writeGeometryText(n,e):""},e.prototype.writeFeaturesText=function(t,e){if(1==t.length)return this.writeFeatureText(t[0],e);for(var n=[],r=0,i=t.length;r<i;++r)n.push(t[r].getGeometry());var o=new Fe.Z(n);return this.writeGeometryText(o,e)},e.prototype.writeGeometryText=function(t,e){return Go((0,b.fI)(t,!0,e))},e}(me);function Do(t){var e=t.getCoordinates();return 0===e.length?"":e.join(" ")}function zo(t){for(var e=t.getCoordinates(),n=[],r=0,i=e.length;r<i;++r)n.push(e[r].join(" "));return n.join(",")}function Zo(t){for(var e=[],n=t.getLinearRings(),r=0,i=n.length;r<i;++r)e.push("("+zo(n[r])+")");return e.join(",")}var jo={Point:Do,LineString:zo,Polygon:Zo,MultiPoint:function(t){for(var e=[],n=t.getPoints(),r=0,i=n.length;r<i;++r)e.push("("+Do(n[r])+")");return e.join(",")},MultiLineString:function(t){for(var e=[],n=t.getLineStrings(),r=0,i=n.length;r<i;++r)e.push("("+zo(n[r])+")");return e.join(",")},MultiPolygon:function(t){for(var e=[],n=t.getPolygons(),r=0,i=n.length;r<i;++r)e.push("("+Zo(n[r])+")");return e.join(",")},GeometryCollection:function(t){for(var e=[],n=t.getGeometries(),r=0,i=n.length;r<i;++r)e.push(Go(n[r]));return e.join(",")}};function Go(t){var e=t.getType(),n=(0,jo[e])(t),r=Io[e];if("function"==typeof t.getFlatCoordinates){var i=function(t){var e=t.getLayout(),n="";return e!==o.Z.XYZ&&e!==o.Z.XYZM||(n+="Z"),e!==o.Z.XYM&&e!==o.Z.XYZM||(n+="M"),n}(t);i.length>0&&(r+=" "+i)}return 0===n.length?r+" "+Ro:r+"("+n+")"}const Bo=No;var Uo=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Vo=[null,"http://www.opengis.net/wms"],qo=X(Vo,{Service:B((function(t,e){return Y({},Xo,t,e)})),Capability:B((function(t,e){return Y({},Wo,t,e)}))}),Wo=X(Vo,{Request:B((function(t,e){return Y({},na,t,e)})),Exception:B((function(t,e){return Y([],$o,t,e)})),Layer:B((function(t,e){var n=Y({},Jo,t,e);return void 0===n.Layer?Object.assign(n,ua(t,e)):n}))}),Ho=function(t){function e(){var e=t.call(this)||this;return e.version=void 0,e}return Uo(e,t),e.prototype.readFromNode=function(t){return this.version=t.getAttribute("version").trim(),Y({version:this.version},qo,t,[])||null},e}(jr),Xo=X(Vo,{Name:B(yt),Title:B(yt),Abstract:B(yt),KeywordList:B(da),OnlineResource:B(Gr),ContactInformation:B((function(t,e){return Y({},Ko,t,e)})),Fees:B(yt),AccessConstraints:B(yt),LayerLimit:B(gt),MaxWidth:B(gt),MaxHeight:B(gt)}),Ko=X(Vo,{ContactPersonPrimary:B((function(t,e){return Y({},Yo,t,e)})),ContactPosition:B(yt),ContactAddress:B((function(t,e){return Y({},Qo,t,e)})),ContactVoiceTelephone:B(yt),ContactFacsimileTelephone:B(yt),ContactElectronicMailAddress:B(yt)}),Yo=X(Vo,{ContactPerson:B(yt),ContactOrganization:B(yt)}),Qo=X(Vo,{AddressType:B(yt),Address:B(yt),City:B(yt),StateOrProvince:B(yt),PostCode:B(yt),Country:B(yt)}),$o=X(Vo,{Format:Z(yt)}),Jo=X(Vo,{Name:B(yt),Title:B(yt),Abstract:B(yt),KeywordList:B(da),CRS:G(yt),EX_GeographicBoundingBox:B((function(t,e){var n=Y({},ea,t,e);if(n){var r=n.westBoundLongitude,i=n.southBoundLatitude,o=n.eastBoundLongitude,a=n.northBoundLatitude;if(void 0!==r&&void 0!==i&&void 0!==o&&void 0!==a)return[r,i,o,a]}})),BoundingBox:G((function(t,e){var n=[ft(t.getAttribute("minx")),ft(t.getAttribute("miny")),ft(t.getAttribute("maxx")),ft(t.getAttribute("maxy"))],r=[ft(t.getAttribute("resx")),ft(t.getAttribute("resy"))];return{crs:t.getAttribute("CRS"),extent:n,res:r}})),Dimension:G((function(t,e){return{name:t.getAttribute("name"),units:t.getAttribute("units"),unitSymbol:t.getAttribute("unitSymbol"),default:t.getAttribute("default"),multipleValues:ht(t.getAttribute("multipleValues")),nearestValue:ht(t.getAttribute("nearestValue")),current:ht(t.getAttribute("current")),values:yt(t)}})),Attribution:B((function(t,e){return Y({},ta,t,e)})),AuthorityURL:G((function(t,e){var n=ca(t,e);if(n)return n.name=t.getAttribute("name"),n})),Identifier:G(yt),MetadataURL:G((function(t,e){var n=ca(t,e);if(n)return n.type=t.getAttribute("type"),n})),DataURL:G(ca),FeatureListURL:G(ca),Style:G((function(t,e){return Y({},aa,t,e)})),MinScaleDenominator:B(dt),MaxScaleDenominator:B(dt),Layer:G(ua)}),ta=X(Vo,{Title:B(yt),OnlineResource:B(Gr),LogoURL:B(pa)}),ea=X(Vo,{westBoundLongitude:B(dt),eastBoundLongitude:B(dt),southBoundLatitude:B(dt),northBoundLatitude:B(dt)}),na=X(Vo,{GetCapabilities:B(ha),GetMap:B(ha),GetFeatureInfo:B(ha)}),ra=X(Vo,{Format:G(yt),DCPType:G((function(t,e){return Y({},ia,t,e)}))}),ia=X(Vo,{HTTP:B((function(t,e){return Y({},oa,t,e)}))}),oa=X(Vo,{Get:B(ca),Post:B(ca)}),aa=X(Vo,{Name:B(yt),Title:B(yt),Abstract:B(yt),LegendURL:G(pa),StyleSheetURL:B(ca),StyleURL:B(ca)}),sa=X(Vo,{Format:B(yt),OnlineResource:B(Gr)}),la=X(Vo,{Keyword:Z(yt)});function ua(t,e){var n=e[e.length-1],r=Y({},Jo,t,e);if(r){var i=ht(t.getAttribute("queryable"));void 0===i&&(i=n.queryable),r.queryable=void 0!==i&&i;var o=mt(t.getAttribute("cascaded"));void 0===o&&(o=n.cascaded),r.cascaded=o;var a=ht(t.getAttribute("opaque"));void 0===a&&(a=n.opaque),r.opaque=void 0!==a&&a;var s=ht(t.getAttribute("noSubsets"));void 0===s&&(s=n.noSubsets),r.noSubsets=void 0!==s&&s;var l=ft(t.getAttribute("fixedWidth"));l||(l=n.fixedWidth),r.fixedWidth=l;var u=ft(t.getAttribute("fixedHeight"));return u||(u=n.fixedHeight),r.fixedHeight=u,["Style","CRS","AuthorityURL"].forEach((function(t){if(t in n){var e=r[t]||[];r[t]=e.concat(n[t])}})),["EX_GeographicBoundingBox","BoundingBox","Dimension","Attribution","MinScaleDenominator","MaxScaleDenominator"].forEach((function(t){if(!(t in r)){var e=n[t];r[t]=e}})),r}}function ca(t,e){return Y({},sa,t,e)}function ha(t,e){return Y({},ra,t,e)}function pa(t,e){var n=ca(t,e);if(n){var r=[mt(t.getAttribute("width")),mt(t.getAttribute("height"))];return n.size=r,n}}function da(t,e){return Y([],la,t,e)}const fa=Ho;var ga=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const ma=function(t){function e(e){var n=t.call(this)||this,r=e||{};return n.featureNS_="http://mapserver.gis.umn.edu/mapserver",n.gmlFormat_=new Et,n.layers_=r.layers?r.layers:null,n}return ga(e,t),e.prototype.getLayers=function(){return this.layers_},e.prototype.setLayers=function(t){this.layers_=t},e.prototype.readFeatures_=function(t,e){t.setAttribute("namespaceURI",this.featureNS_);var n=t.localName,r=[];if(0===t.childNodes.length)return r;if("msGMLOutput"==n)for(var i=0,o=t.childNodes.length;i<o;i++){var a=t.childNodes[i];if(a.nodeType===Node.ELEMENT_NODE){var s=a,l=e[0],u=s.localName.replace("_layer","");if(!this.layers_||(0,O.q9)(this.layers_,u)){var c=u+"_feature";l.featureType=c,l.featureNS=this.featureNS_;var h={};h[c]=Z(this.gmlFormat_.readFeatureElement,this.gmlFormat_);var p=X([l.featureNS,null],h);s.setAttribute("namespaceURI",this.featureNS_);var d=Y([],p,s,e,this.gmlFormat_);d&&(0,O.l7)(r,d)}}}if("FeatureCollection"==n){var f=Y([],this.gmlFormat_.FEATURE_COLLECTION_PARSERS,t,[{}],this.gmlFormat_);f&&(r=f)}return r},e.prototype.readFeaturesFromNode=function(t,e){var n={};return e&&(0,g.f0)(n,this.getReadOptions(t,e)),this.readFeatures_(t,[n])},e}(rt);var ya=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),va=[null,"http://www.opengis.net/wmts/1.0"],_a=[null,"http://www.opengis.net/ows/1.1"],ba=X(va,{Contents:B((function(t,e){return Y({},xa,t,e)}))}),wa=function(t){function e(){var e=t.call(this)||this;return e.owsParser_=new oi,e}return ya(e,t),e.prototype.readFromNode=function(t){var e=t.getAttribute("version");e&&(e=e.trim());var n=this.owsParser_.readFromNode(t);return n?(n.version=e,(n=Y(n,ba,t,[]))||null):null},e}(jr),xa=X(va,{Layer:G((function(t,e){return Y({},Sa,t,e)})),TileMatrixSet:G((function(t,e){return Y({},Ma,t,e)}))}),Sa=X(va,{Style:G((function(t,e){var n=Y({},Ca,t,e);if(n){var r="true"===t.getAttribute("isDefault");return n.isDefault=r,n}})),Format:G(yt),TileMatrixSetLink:G((function(t,e){return Y({},Ea,t,e)})),Dimension:G((function(t,e){return Y({},Pa,t,e)})),ResourceURL:G((function(t,e){var n=t.getAttribute("format"),r=t.getAttribute("template"),i=t.getAttribute("resourceType"),o={};return n&&(o.format=n),r&&(o.template=r),i&&(o.resourceType=i),o}))},X(_a,{Title:B(yt),Abstract:B(yt),WGS84BoundingBox:B(Ra),Identifier:B(yt)})),Ca=X(va,{LegendURL:G((function(t,e){var n={};return n.format=t.getAttribute("format"),n.href=Gr(t),n}))},X(_a,{Title:B(yt),Identifier:B(yt)})),Ea=X(va,{TileMatrixSet:B(yt),TileMatrixSetLimits:B((function(t,e){return Y([],ka,t,e)}))}),ka=X(va,{TileMatrixLimits:Z((function(t,e){return Y({},Aa,t,e)}))}),Aa=X(va,{TileMatrix:B(yt),MinTileRow:B(gt),MaxTileRow:B(gt),MinTileCol:B(gt),MaxTileCol:B(gt)}),Pa=X(va,{Default:B(yt),Value:G(yt)},X(_a,{Identifier:B(yt)})),Ta=X(_a,{LowerCorner:Z(Ia),UpperCorner:Z(Ia)}),Ma=X(va,{WellKnownScaleSet:B(yt),TileMatrix:G((function(t,e){return Y({},Oa,t,e)}))},X(_a,{SupportedCRS:B(yt),Identifier:B(yt),BoundingBox:B(Ra)})),Oa=X(va,{TopLeftCorner:B(Ia),ScaleDenominator:B(dt),TileWidth:B(gt),TileHeight:B(gt),MatrixWidth:B(gt),MatrixHeight:B(gt)},X(_a,{Identifier:B(yt)}));function Ra(t,e){var n=Y([],Ta,t,e);if(2==n.length)return(0,m.hI)(n)}function Ia(t,e){var n=yt(t).split(/\s+/);if(n&&2==n.length){var r=+n[0],i=+n[1];if(!isNaN(r)&&!isNaN(i))return[r,i]}}const La=wa},1399:(t,e,n)=>{"use strict";n.d(e,{ZP:()=>s,fI:()=>l,lj:()=>u});var r=n(2418),i=n(2637),o=n(6534),a=n(6162);const s=function(){function t(){this.dataProjection=void 0,this.defaultFeatureProjection=void 0,this.supportedMediaTypes=null}return t.prototype.getReadOptions=function(t,e){var n;if(e){var i=e.dataProjection?(0,a.get)(e.dataProjection):this.readProjection(t);e.extent&&i&&i.getUnits()===r.ZP.TILE_PIXELS&&(i=(0,a.get)(i)).setWorldExtent(e.extent),n={dataProjection:i,featureProjection:e.featureProjection}}return this.adaptOptions(n)},t.prototype.adaptOptions=function(t){return(0,o.f0)({dataProjection:this.dataProjection,featureProjection:this.defaultFeatureProjection},t)},t.prototype.getType=function(){return(0,i.O3)()},t.prototype.readFeature=function(t,e){return(0,i.O3)()},t.prototype.readFeatures=function(t,e){return(0,i.O3)()},t.prototype.readGeometry=function(t,e){return(0,i.O3)()},t.prototype.readProjection=function(t){return(0,i.O3)()},t.prototype.writeFeature=function(t,e){return(0,i.O3)()},t.prototype.writeFeatures=function(t,e){return(0,i.O3)()},t.prototype.writeGeometry=function(t,e){return(0,i.O3)()},t}();function l(t,e,n){var r,i=n?(0,a.get)(n.featureProjection):null,o=n?(0,a.get)(n.dataProjection):null;if(r=i&&o&&!(0,a.equivalent)(i,o)?(e?t.clone():t).transform(e?i:o,e?o:i):t,e&&n&&void 0!==n.decimals){var s=Math.pow(10,n.decimals);r===t&&(r=t.clone()),r.applyTransform((function(t){for(var e=0,n=t.length;e<n;++e)t[e]=Math.round(t[e]*s)/s;return t}))}return r}function u(t,e){var n=e?(0,a.get)(e.featureProjection):null,r=e?(0,a.get)(e.dataProjection):null;return n&&r&&!(0,a.equivalent)(n,r)?(0,a.transformExtent)(t,r,n):t}},5347:(t,e,n)=>{"use strict";n.d(e,{Z:()=>b});var r,i=n(2540),o=n(8044),a=n(7655),s=n(1584),l=n(8483),u=n(3802),c=n(3656),h=n(971),p=n(5098),d=n(9162),f=n(6534),g=n(6162),m=n(1399),y=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});function v(t,e){if(!t)return null;var n;switch(t.type){case"Point":n=function(t){return new h.Z(t.coordinates)}(t);break;case"LineString":n=function(t){return new s.Z(t.coordinates)}(t);break;case"Polygon":n=function(t){return new p.ZP(t.coordinates)}(t);break;case"MultiPoint":n=function(t){return new u.Z(t.coordinates)}(t);break;case"MultiLineString":n=function(t){return new l.Z(t.coordinates)}(t);break;case"MultiPolygon":n=function(t){return new c.Z(t.coordinates)}(t);break;case"GeometryCollection":n=function(t,e){var n=t.geometries.map((function(t){return v(t,undefined)}));return new o.Z(n)}(t);break;default:throw new Error("Unsupported GeoJSON type: "+t.type)}return(0,m.fI)(n,!1,e)}function _(t,e){var n,r=(t=(0,m.fI)(t,!0,e)).getType();switch(r){case"Point":n=function(t,e){return{type:"Point",coordinates:t.getCoordinates()}}(t);break;case"LineString":n=function(t,e){return{type:"LineString",coordinates:t.getCoordinates()}}(t);break;case"Polygon":n=function(t,e){var n;return e&&(n=e.rightHanded),{type:"Polygon",coordinates:t.getCoordinates(n)}}(t,e);break;case"MultiPoint":n=function(t,e){return{type:"MultiPoint",coordinates:t.getCoordinates()}}(t);break;case"MultiLineString":n=function(t,e){return{type:"MultiLineString",coordinates:t.getCoordinates()}}(t);break;case"MultiPolygon":n=function(t,e){var n;return e&&(n=e.rightHanded),{type:"MultiPolygon",coordinates:t.getCoordinates(n)}}(t,e);break;case"GeometryCollection":n=function(t,e){return{type:"GeometryCollection",geometries:t.getGeometriesArray().map((function(t){var n=(0,f.f0)({},e);return delete n.featureProjection,_(t,n)}))}}(t,e);break;case"Circle":n={type:"GeometryCollection",geometries:[]};break;default:throw new Error("Unsupported geometry type: "+r)}return n}const b=function(t){function e(e){var n=this,r=e||{};return(n=t.call(this)||this).dataProjection=(0,g.get)(r.dataProjection?r.dataProjection:"EPSG:4326"),r.featureProjection&&(n.defaultFeatureProjection=(0,g.get)(r.featureProjection)),n.geometryName_=r.geometryName,n.extractGeometryName_=r.extractGeometryName,n.supportedMediaTypes=["application/geo+json","application/vnd.geo+json"],n}return y(e,t),e.prototype.readFeatureFromObject=function(t,e){var n,r=v((n="Feature"===t.type?t:{type:"Feature",geometry:t,properties:null}).geometry,e),o=new i.Z;return this.geometryName_?o.setGeometryName(this.geometryName_):this.extractGeometryName_&&"geometry_name"in n!==void 0&&o.setGeometryName(n.geometry_name),o.setGeometry(r),"id"in n&&o.setId(n.id),n.properties&&o.setProperties(n.properties,!0),o},e.prototype.readFeaturesFromObject=function(t,e){var n=null;if("FeatureCollection"===t.type){n=[];for(var r=t.features,i=0,o=r.length;i<o;++i)n.push(this.readFeatureFromObject(r[i],e))}else n=[this.readFeatureFromObject(t,e)];return n},e.prototype.readGeometryFromObject=function(t,e){return v(t,e)},e.prototype.readProjectionFromObject=function(t){var e,n=t.crs;return n?"name"==n.type?e=(0,g.get)(n.properties.name):"EPSG"===n.type?e=(0,g.get)("EPSG:"+n.properties.code):(0,d.h)(!1,36):e=this.dataProjection,e},e.prototype.writeFeatureObject=function(t,e){e=this.adaptOptions(e);var n={type:"Feature",geometry:null,properties:null},r=t.getId();if(void 0!==r&&(n.id=r),!t.hasProperties())return n;var i=t.getProperties(),o=t.getGeometry();return o&&(n.geometry=_(o,e),delete i[t.getGeometryName()]),(0,f.xb)(i)||(n.properties=i),n},e.prototype.writeFeaturesObject=function(t,e){e=this.adaptOptions(e);for(var n=[],r=0,i=t.length;r<i;++r)n.push(this.writeFeatureObject(t[r],e));return{type:"FeatureCollection",features:n}},e.prototype.writeGeometryObject=function(t,e){return _(t,this.adaptOptions(e))},e}(a.Z)},2477:(t,e,n)=>{"use strict";n.d(e,{L:()=>a,Z:()=>p});var r=n(9162),i=n(2182),o=function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))},a={VERSION1:"version1",VERSION2:"version2",VERSION3:"version3"},s={};s[a.VERSION1]={level0:{supports:[],formats:[],qualities:["native"]},level1:{supports:["regionByPx","sizeByW","sizeByH","sizeByPct"],formats:["jpg"],qualities:["native"]},level2:{supports:["regionByPx","regionByPct","sizeByW","sizeByH","sizeByPct","sizeByConfinedWh","sizeByWh"],formats:["jpg","png"],qualities:["native","color","grey","bitonal"]}},s[a.VERSION2]={level0:{supports:[],formats:["jpg"],qualities:["default"]},level1:{supports:["regionByPx","sizeByW","sizeByH","sizeByPct"],formats:["jpg"],qualities:["default"]},level2:{supports:["regionByPx","regionByPct","sizeByW","sizeByH","sizeByPct","sizeByConfinedWh","sizeByDistortedWh","sizeByWh"],formats:["jpg","png"],qualities:["default","bitonal"]}},s[a.VERSION3]={level0:{supports:[],formats:["jpg"],qualities:["default"]},level1:{supports:["regionByPx","regionSquare","sizeByW","sizeByH","sizeByWh"],formats:["jpg"],qualities:["default"]},level2:{supports:["regionByPx","regionSquare","regionByPct","sizeByW","sizeByH","sizeByPct","sizeByConfinedWh","sizeByWh"],formats:["jpg","png"],qualities:["default"]}},s.none={none:{supports:[],formats:[],qualities:[]}};var l=/^https?:\/\/library\.stanford\.edu\/iiif\/image-api\/(?:1\.1\/)?compliance\.html#level[0-2]$/,u=/^https?:\/\/iiif\.io\/api\/image\/2\/level[0-2](?:\.json)?$/,c=/(^https?:\/\/iiif\.io\/api\/image\/3\/level[0-2](?:\.json)?$)|(^level[0-2]$)/,h={};h[a.VERSION1]=function(t){var e=t.getComplianceLevelSupportedFeatures();return void 0===e&&(e=s[a.VERSION1].level0),{url:void 0===t.imageInfo["@id"]?void 0:t.imageInfo["@id"].replace(/\/?(?:info\.json)?$/g,""),supports:e.supports,formats:o(o([],e.formats,!0),[void 0===t.imageInfo.formats?[]:t.imageInfo.formats],!1),qualities:o(o([],e.qualities,!0),[void 0===t.imageInfo.qualities?[]:t.imageInfo.qualities],!1),resolutions:t.imageInfo.scale_factors,tileSize:void 0!==t.imageInfo.tile_width?void 0!==t.imageInfo.tile_height?[t.imageInfo.tile_width,t.imageInfo.tile_height]:[t.imageInfo.tile_width,t.imageInfo.tile_width]:null!=t.imageInfo.tile_height?[t.imageInfo.tile_height,t.imageInfo.tile_height]:void 0}},h[a.VERSION2]=function(t){var e=t.getComplianceLevelSupportedFeatures(),n=Array.isArray(t.imageInfo.profile)&&t.imageInfo.profile.length>1,r=n&&t.imageInfo.profile[1].supports?t.imageInfo.profile[1].supports:[],i=n&&t.imageInfo.profile[1].formats?t.imageInfo.profile[1].formats:[],a=n&&t.imageInfo.profile[1].qualities?t.imageInfo.profile[1].qualities:[];return{url:t.imageInfo["@id"].replace(/\/?(?:info\.json)?$/g,""),sizes:void 0===t.imageInfo.sizes?void 0:t.imageInfo.sizes.map((function(t){return[t.width,t.height]})),tileSize:void 0===t.imageInfo.tiles?void 0:[t.imageInfo.tiles.map((function(t){return t.width}))[0],t.imageInfo.tiles.map((function(t){return void 0===t.height?t.width:t.height}))[0]],resolutions:void 0===t.imageInfo.tiles?void 0:t.imageInfo.tiles.map((function(t){return t.scaleFactors}))[0],supports:o(o([],e.supports,!0),r,!0),formats:o(o([],e.formats,!0),i,!0),qualities:o(o([],e.qualities,!0),a,!0)}},h[a.VERSION3]=function(t){var e=t.getComplianceLevelSupportedFeatures(),n=void 0===t.imageInfo.extraFormats?e.formats:o(o([],e.formats,!0),t.imageInfo.extraFormats,!0),r=void 0!==t.imageInfo.preferredFormats&&Array.isArray(t.imageInfo.preferredFormats)&&t.imageInfo.preferredFormats.length>0?t.imageInfo.preferredFormats.filter((function(t){return(0,i.q9)(["jpg","png","gif"],t)})).reduce((function(t,e){return void 0===t&&(0,i.q9)(n,e)?e:t}),void 0):void 0;return{url:t.imageInfo.id,sizes:void 0===t.imageInfo.sizes?void 0:t.imageInfo.sizes.map((function(t){return[t.width,t.height]})),tileSize:void 0===t.imageInfo.tiles?void 0:[t.imageInfo.tiles.map((function(t){return t.width}))[0],t.imageInfo.tiles.map((function(t){return t.height}))[0]],resolutions:void 0===t.imageInfo.tiles?void 0:t.imageInfo.tiles.map((function(t){return t.scaleFactors}))[0],supports:void 0===t.imageInfo.extraFeatures?e.supports:o(o([],e.supports,!0),t.imageInfo.extraFeatures,!0),formats:n,qualities:void 0===t.imageInfo.extraQualities?e.qualities:o(o([],e.qualities,!0),t.imageInfo.extraQualities,!0),preferredFormat:r}};const p=function(){function t(t){this.setImageInfo(t)}return t.prototype.setImageInfo=function(t){this.imageInfo="string"==typeof t?JSON.parse(t):t},t.prototype.getImageApiVersion=function(){if(void 0!==this.imageInfo){var t=this.imageInfo["@context"]||"ol-no-context";"string"==typeof t&&(t=[t]);for(var e=0;e<t.length;e++)switch(t[e]){case"http://library.stanford.edu/iiif/image-api/1.1/context.json":case"http://iiif.io/api/image/1/context.json":return a.VERSION1;case"http://iiif.io/api/image/2/context.json":return a.VERSION2;case"http://iiif.io/api/image/3/context.json":return a.VERSION3;case"ol-no-context":if(this.getComplianceLevelEntryFromProfile(a.VERSION1)&&this.imageInfo.identifier)return a.VERSION1}(0,r.h)(!1,61)}},t.prototype.getComplianceLevelEntryFromProfile=function(t){if(void 0!==this.imageInfo&&void 0!==this.imageInfo.profile)switch(void 0===t&&(t=this.getImageApiVersion()),t){case a.VERSION1:if(l.test(this.imageInfo.profile))return this.imageInfo.profile;break;case a.VERSION3:if(c.test(this.imageInfo.profile))return this.imageInfo.profile;break;case a.VERSION2:if("string"==typeof this.imageInfo.profile&&u.test(this.imageInfo.profile))return this.imageInfo.profile;if(Array.isArray(this.imageInfo.profile)&&this.imageInfo.profile.length>0&&"string"==typeof this.imageInfo.profile[0]&&u.test(this.imageInfo.profile[0]))return this.imageInfo.profile[0]}},t.prototype.getComplianceLevelFromProfile=function(t){var e=this.getComplianceLevelEntryFromProfile(t);if(void 0!==e){var n=e.match(/level[0-2](?:\.json)?$/g);return Array.isArray(n)?n[0].replace(".json",""):void 0}},t.prototype.getComplianceLevelSupportedFeatures=function(){if(void 0!==this.imageInfo){var t=this.getImageApiVersion(),e=this.getComplianceLevelFromProfile(t);return void 0===e?s.none.none:s[t][e]}},t.prototype.getTileSourceOptions=function(t){var e=t||{},n=this.getImageApiVersion();if(void 0!==n){var r=void 0===n?void 0:h[n](this);if(void 0!==r)return{url:r.url,version:n,size:[this.imageInfo.width,this.imageInfo.height],sizes:r.sizes,format:void 0!==e.format&&(0,i.q9)(r.formats,e.format)?e.format:void 0!==r.preferredFormat?r.preferredFormat:"jpg",supports:r.supports,quality:e.quality&&(0,i.q9)(r.qualities,e.quality)?e.quality:(0,i.q9)(r.qualities,"native")?"native":"default",resolutions:Array.isArray(r.resolutions)?r.resolutions.sort((function(t,e){return e-t})):void 0,tileSize:r.tileSize}}},t}()},7655:(t,e,n)=>{"use strict";n.d(e,{Z:()=>l});var r,i=n(1399),o=n(2637),a=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});function s(t){return"string"==typeof t?JSON.parse(t)||null:null!==t?t:null}const l=function(t){function e(){return t.call(this)||this}return a(e,t),e.prototype.getType=function(){return"json"},e.prototype.readFeature=function(t,e){return this.readFeatureFromObject(s(t),this.getReadOptions(t,e))},e.prototype.readFeatures=function(t,e){return this.readFeaturesFromObject(s(t),this.getReadOptions(t,e))},e.prototype.readFeatureFromObject=function(t,e){return(0,o.O3)()},e.prototype.readFeaturesFromObject=function(t,e){return(0,o.O3)()},e.prototype.readGeometry=function(t,e){return this.readGeometryFromObject(s(t),this.getReadOptions(t,e))},e.prototype.readGeometryFromObject=function(t,e){return(0,o.O3)()},e.prototype.readProjection=function(t){return this.readProjectionFromObject(s(t))},e.prototype.readProjectionFromObject=function(t){return(0,o.O3)()},e.prototype.writeFeature=function(t,e){return JSON.stringify(this.writeFeatureObject(t,e))},e.prototype.writeFeatureObject=function(t,e){return(0,o.O3)()},e.prototype.writeFeatures=function(t,e){return JSON.stringify(this.writeFeaturesObject(t,e))},e.prototype.writeFeaturesObject=function(t,e){return(0,o.O3)()},e.prototype.writeGeometry=function(t,e){return JSON.stringify(this.writeGeometryObject(t,e))},e.prototype.writeGeometryObject=function(t,e){return(0,o.O3)()},e}(i.ZP)},9216:(t,e,n)=>{"use strict";n.d(e,{Z:()=>C});var r,i=n(1399),o=n(8359),a=n(1584),s=n(8483),l=n(3802),u=n(3656),c=n(4459),h=n(971),p=n(5098),d=n(4710),f=n(3514),g=n(2418),m=n(9162),y=n(6162),v=n(4636),_=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});function b(t,e,n){if(3===t){var r={keys:[],values:[],features:[]},i=n.readVarint()+n.pos;n.readFields(w,r,i),r.length=r.features.length,r.length&&(e[r.name]=r)}}function w(t,e,n){if(15===t)e.version=n.readVarint();else if(1===t)e.name=n.readString();else if(5===t)e.extent=n.readVarint();else if(2===t)e.features.push(n.pos);else if(3===t)e.keys.push(n.readString());else if(4===t){for(var r=null,i=n.readVarint()+n.pos;n.pos<i;)r=1==(t=n.readVarint()>>3)?n.readString():2===t?n.readFloat():3===t?n.readDouble():4===t?n.readVarint64():5===t?n.readVarint():6===t?n.readSVarint():7===t?n.readBoolean():null;e.values.push(r)}}function x(t,e,n){if(1==t)e.id=n.readVarint();else if(2==t)for(var r=n.readVarint()+n.pos;n.pos<r;){var i=e.layer.keys[n.readVarint()],o=e.layer.values[n.readVarint()];e.properties[i]=o}else 3==t?e.type=n.readVarint():4==t&&(e.geometry=n.pos)}function S(t,e,n){t.pos=e.features[n];var r=t.readVarint()+t.pos,i={layer:e,type:0,properties:{}};return t.readFields(x,i,r),i}const C=function(t){function e(e){var n=t.call(this)||this,r=e||{};return n.dataProjection=new d.Z({code:"",units:g.ZP.TILE_PIXELS}),n.featureClass_=r.featureClass?r.featureClass:f.ZP,n.geometryName_=r.geometryName,n.layerName_=r.layerName?r.layerName:"layer",n.layers_=r.layers?r.layers:null,n.idProperty_=r.idProperty,n.supportedMediaTypes=["application/vnd.mapbox-vector-tile","application/x-protobuf"],n}return _(e,t),e.prototype.readRawGeometry_=function(t,e,n,r){t.pos=e.geometry;for(var i=t.readVarint()+t.pos,o=1,a=0,s=0,l=0,u=0,c=0;t.pos<i;){if(!a){var h=t.readVarint();o=7&h,a=h>>3}a--,1===o||2===o?(s+=t.readSVarint(),l+=t.readSVarint(),1===o&&u>c&&(r.push(u),c=u),n.push(s,l),u+=2):7===o?u>c&&(n.push(n[c],n[c+1]),u+=2):(0,m.h)(!1,59)}u>c&&(r.push(u),c=u)},e.prototype.createFeature_=function(t,e,n){var r,c=e.type;if(0===c)return null;var d,g=e.properties;this.idProperty_?(d=g[this.idProperty_],delete g[this.idProperty_]):d=e.id,g[this.layerName_]=e.layer.name;var m=[],y=[];this.readRawGeometry_(t,e,m,y);var _=function(t,e){var n;return 1===t?n=1===e?"Point":"MultiPoint":2===t?n=1===e?"LineString":"MultiLineString":3===t&&(n="Polygon"),n}(c,y.length);if(this.featureClass_===f.ZP)(r=new this.featureClass_(_,m,y,g,d)).transform(n.dataProjection);else{var b=void 0;if("Polygon"==_){var w=(0,v.Q3)(m,y);b=w.length>1?new u.Z(m,o.Z.XY,w):new p.ZP(m,o.Z.XY,y)}else b="Point"===_?new h.Z(m,o.Z.XY):"LineString"===_?new a.Z(m,o.Z.XY):"MultiPoint"===_?new l.Z(m,o.Z.XY):"MultiLineString"===_?new s.Z(m,o.Z.XY,y):null;r=new(0,this.featureClass_),this.geometryName_&&r.setGeometryName(this.geometryName_);var x=(0,i.fI)(b,!1,n);r.setGeometry(x),void 0!==d&&r.setId(d),r.setProperties(g,!0)}return r},e.prototype.getType=function(){return"arraybuffer"},e.prototype.readFeatures=function(t,e){var n=this.layers_,r=this.adaptOptions(e),i=(0,y.get)(r.dataProjection);i.setWorldExtent(r.extent),r.dataProjection=i;var o=new c(t),a=o.readFields(b,{}),s=[];for(var l in a)if(!n||-1!=n.indexOf(l)){var u=a[l],h=u?[0,0,u.extent,u.extent]:null;i.setExtent(h);for(var p=0,d=u.length;p<d;++p){var f=S(o,u,p),g=this.createFeature_(o,f,r);null!==g&&s.push(g)}}return s},e.prototype.readProjection=function(t){return this.dataProjection},e.prototype.setLayers=function(t){this.layers_=t},e}(i.ZP)},6764:(t,e,n)=>{"use strict";n.d(e,{Dv:()=>o,Vi:()=>l,Zn:()=>a,qe:()=>s,uX:()=>i});var r=n(2182);function i(){return!0}function o(){return!1}function a(){}function s(t){var e,n,i,o=!1;return function(){var a=Array.prototype.slice.call(arguments);return o&&this===i&&(0,r.fS)(a,n)||(o=!0,i=this,n=a,e=t.apply(this,arguments)),e}}function l(t){return function(){var e;try{e=t()}catch(t){return Promise.reject(t)}return e instanceof Promise?e:Promise.resolve(e)}()}},319:(t,e,n)=>{"use strict";n.r(e),n.d(e,{Circle:()=>r.Z,Geometry:()=>i.Z,GeometryCollection:()=>o.Z,LineString:()=>s.Z,LinearRing:()=>a.Z,MultiLineString:()=>l.Z,MultiPoint:()=>u.Z,MultiPolygon:()=>c.Z,Point:()=>h.Z,Polygon:()=>p.ZP,SimpleGeometry:()=>d.ZP});var r=n(985),i=n(1705),o=n(8044),a=n(1964),s=n(1584),l=n(8483),u=n(3802),c=n(3656),h=n(971),p=n(5098),d=n(6216)},985:(t,e,n)=>{"use strict";n.d(e,{Z:()=>c});var r,i=n(6216),o=n(6596),a=n(4363),s=n(7529),l=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),u=function(t){function e(e,n,r){var i=t.call(this)||this;if(void 0!==r&&void 0===n)i.setFlatCoordinates(r,e);else{var o=n||0;i.setCenterAndRadius(e,o,r)}return i}return l(e,t),e.prototype.clone=function(){var t=new e(this.flatCoordinates.slice(),void 0,this.layout);return t.applyProperties(this),t},e.prototype.closestPointXY=function(t,e,n,r){var i=this.flatCoordinates,o=t-i[0],a=e-i[1],s=o*o+a*a;if(s<r){if(0===s)for(var l=0;l<this.stride;++l)n[l]=i[l];else{var u=this.getRadius()/Math.sqrt(s);for(n[0]=i[0]+u*o,n[1]=i[1]+u*a,l=2;l<this.stride;++l)n[l]=i[l]}return n.length=this.stride,s}return r},e.prototype.containsXY=function(t,e){var n=this.flatCoordinates,r=t-n[0],i=e-n[1];return r*r+i*i<=this.getRadiusSquared_()},e.prototype.getCenter=function(){return this.flatCoordinates.slice(0,this.stride)},e.prototype.computeExtent=function(t){var e=this.flatCoordinates,n=e[this.stride]-e[0];return(0,o.T9)(e[0]-n,e[1]-n,e[0]+n,e[1]+n,t)},e.prototype.getRadius=function(){return Math.sqrt(this.getRadiusSquared_())},e.prototype.getRadiusSquared_=function(){var t=this.flatCoordinates[this.stride]-this.flatCoordinates[0],e=this.flatCoordinates[this.stride+1]-this.flatCoordinates[1];return t*t+e*e},e.prototype.getType=function(){return"Circle"},e.prototype.intersectsExtent=function(t){var e=this.getExtent();if((0,o.kK)(t,e)){var n=this.getCenter();return t[0]<=n[0]&&t[2]>=n[0]||t[1]<=n[1]&&t[3]>=n[1]||(0,o.H6)(t,this.intersectsCoordinate.bind(this))}return!1},e.prototype.setCenter=function(t){var e=this.stride,n=this.flatCoordinates[e]-this.flatCoordinates[0],r=t.slice();r[e]=r[0]+n;for(var i=1;i<e;++i)r[e+i]=t[i];this.setFlatCoordinates(this.layout,r),this.changed()},e.prototype.setCenterAndRadius=function(t,e,n){this.setLayout(n,t,0),this.flatCoordinates||(this.flatCoordinates=[]);var r=this.flatCoordinates,i=(0,a.IG)(r,0,t,this.stride);r[i++]=r[0]+e;for(var o=1,s=this.stride;o<s;++o)r[i++]=r[o];r.length=i,this.changed()},e.prototype.getCoordinates=function(){return null},e.prototype.setCoordinates=function(t,e){},e.prototype.setRadius=function(t){this.flatCoordinates[this.stride]=this.flatCoordinates[0]+t,this.changed()},e.prototype.rotate=function(t,e){var n=this.getCenter(),r=this.getStride();this.setCenter((0,s.U1)(n,0,n.length,r,t,e,n)),this.changed()},e.prototype.translate=function(t,e){var n=this.getCenter(),r=this.getStride();this.setCenter((0,s.Iu)(n,0,n.length,r,t,e,n)),this.changed()},e}(i.ZP);u.prototype.transform;const c=u},1705:(t,e,n)=>{"use strict";n.d(e,{Z:()=>f});var r,i=n(6414),o=n(2418),a=n(2637),s=n(1091),l=n(6596),u=n(6162),c=n(6764),h=n(7529),p=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),d=(0,s.Ue)();const f=function(t){function e(){var e=t.call(this)||this;return e.extent_=(0,l.lJ)(),e.extentRevision_=-1,e.simplifiedGeometryMaxMinSquaredTolerance=0,e.simplifiedGeometryRevision=0,e.simplifyTransformedInternal=(0,c.qe)((function(t,e,n){if(!n)return this.getSimplifiedGeometry(e);var r=this.clone();return r.applyTransform(n),r.getSimplifiedGeometry(e)})),e}return p(e,t),e.prototype.simplifyTransformed=function(t,e){return this.simplifyTransformedInternal(this.getRevision(),t,e)},e.prototype.clone=function(){return(0,a.O3)()},e.prototype.closestPointXY=function(t,e,n,r){return(0,a.O3)()},e.prototype.containsXY=function(t,e){var n=this.getClosestPoint([t,e]);return n[0]===t&&n[1]===e},e.prototype.getClosestPoint=function(t,e){var n=e||[NaN,NaN];return this.closestPointXY(t[0],t[1],n,1/0),n},e.prototype.intersectsCoordinate=function(t){return this.containsXY(t[0],t[1])},e.prototype.computeExtent=function(t){return(0,a.O3)()},e.prototype.getExtent=function(t){if(this.extentRevision_!=this.getRevision()){var e=this.computeExtent(this.extent_);(isNaN(e[0])||isNaN(e[1]))&&(0,l.YN)(e),this.extentRevision_=this.getRevision()}return(0,l.EO)(this.extent_,t)},e.prototype.rotate=function(t,e){(0,a.O3)()},e.prototype.scale=function(t,e,n){(0,a.O3)()},e.prototype.simplify=function(t){return this.getSimplifiedGeometry(t*t)},e.prototype.getSimplifiedGeometry=function(t){return(0,a.O3)()},e.prototype.getType=function(){return(0,a.O3)()},e.prototype.applyTransform=function(t){(0,a.O3)()},e.prototype.intersectsExtent=function(t){return(0,a.O3)()},e.prototype.translate=function(t,e){(0,a.O3)()},e.prototype.transform=function(t,e){var n=(0,u.get)(t),r=n.getUnits()==o.ZP.TILE_PIXELS?function(t,r,i){var o=n.getExtent(),a=n.getWorldExtent(),c=(0,l.Cr)(a)/(0,l.Cr)(o);return(0,s.qC)(d,a[0],a[3],c,-c,0,0,0),(0,h.vT)(t,0,t.length,i,d,r),(0,u.getTransform)(n,e)(t,r,i)}:(0,u.getTransform)(n,e);return this.applyTransform(r),this},e}(i.Z)},8044:(t,e,n)=>{"use strict";n.d(e,{Z:()=>c});var r,i=n(2001),o=n(1705),a=n(6596),s=n(8196),l=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});function u(t){for(var e=[],n=0,r=t.length;n<r;++n)e.push(t[n].clone());return e}const c=function(t){function e(e){var n=t.call(this)||this;return n.geometries_=e||null,n.changeEventsKeys_=[],n.listenGeometriesChange_(),n}return l(e,t),e.prototype.unlistenGeometriesChange_=function(){this.changeEventsKeys_.forEach(s.bN),this.changeEventsKeys_.length=0},e.prototype.listenGeometriesChange_=function(){if(this.geometries_)for(var t=0,e=this.geometries_.length;t<e;++t)this.changeEventsKeys_.push((0,s.oL)(this.geometries_[t],i.Z.CHANGE,this.changed,this))},e.prototype.clone=function(){var t=new e(null);return t.setGeometries(this.geometries_),t.applyProperties(this),t},e.prototype.closestPointXY=function(t,e,n,r){if(r<(0,a.qf)(this.getExtent(),t,e))return r;for(var i=this.geometries_,o=0,s=i.length;o<s;++o)r=i[o].closestPointXY(t,e,n,r);return r},e.prototype.containsXY=function(t,e){for(var n=this.geometries_,r=0,i=n.length;r<i;++r)if(n[r].containsXY(t,e))return!0;return!1},e.prototype.computeExtent=function(t){(0,a.YN)(t);for(var e=this.geometries_,n=0,r=e.length;n<r;++n)(0,a.l7)(t,e[n].getExtent());return t},e.prototype.getGeometries=function(){return u(this.geometries_)},e.prototype.getGeometriesArray=function(){return this.geometries_},e.prototype.getGeometriesArrayRecursive=function(){for(var t=[],e=this.geometries_,n=0,r=e.length;n<r;++n)e[n].getType()===this.getType()?t=t.concat(e[n].getGeometriesArrayRecursive()):t.push(e[n]);return t},e.prototype.getSimplifiedGeometry=function(t){if(this.simplifiedGeometryRevision!==this.getRevision()&&(this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=this.getRevision()),t<0||0!==this.simplifiedGeometryMaxMinSquaredTolerance&&t<this.simplifiedGeometryMaxMinSquaredTolerance)return this;for(var n=[],r=this.geometries_,i=!1,o=0,a=r.length;o<a;++o){var s=r[o],l=s.getSimplifiedGeometry(t);n.push(l),l!==s&&(i=!0)}if(i){var u=new e(null);return u.setGeometriesArray(n),u}return this.simplifiedGeometryMaxMinSquaredTolerance=t,this},e.prototype.getType=function(){return"GeometryCollection"},e.prototype.intersectsExtent=function(t){for(var e=this.geometries_,n=0,r=e.length;n<r;++n)if(e[n].intersectsExtent(t))return!0;return!1},e.prototype.isEmpty=function(){return 0===this.geometries_.length},e.prototype.rotate=function(t,e){for(var n=this.geometries_,r=0,i=n.length;r<i;++r)n[r].rotate(t,e);this.changed()},e.prototype.scale=function(t,e,n){var r=n;r||(r=(0,a.qg)(this.getExtent()));for(var i=this.geometries_,o=0,s=i.length;o<s;++o)i[o].scale(t,e,r);this.changed()},e.prototype.setGeometries=function(t){this.setGeometriesArray(u(t))},e.prototype.setGeometriesArray=function(t){this.unlistenGeometriesChange_(),this.geometries_=t,this.listenGeometriesChange_(),this.changed()},e.prototype.applyTransform=function(t){for(var e=this.geometries_,n=0,r=e.length;n<r;++n)e[n].applyTransform(t);this.changed()},e.prototype.translate=function(t,e){for(var n=this.geometries_,r=0,i=n.length;r<i;++r)n[r].translate(t,e);this.changed()},e.prototype.disposeInternal=function(){this.unlistenGeometriesChange_(),t.prototype.disposeInternal.call(this)},e}(o.Z)},8359:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});const r={XY:"XY",XYZ:"XYZ",XYM:"XYM",XYZM:"XYZM"}},1584:(t,e,n)=>{"use strict";n.d(e,{Z:()=>y});var r,i=n(8359),o=n(6216),a=n(6708),s=n(6596),l=n(4363),u=n(9855),c=n(2182),h=n(6770),p=n(7488),d=n(1574),f=n(7419),g=n(1410),m=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});const y=function(t){function e(e,n){var r=t.call(this)||this;return r.flatMidpoint_=null,r.flatMidpointRevision_=-1,r.maxDelta_=-1,r.maxDeltaRevision_=-1,void 0===n||Array.isArray(e[0])?r.setCoordinates(e,n):r.setFlatCoordinates(n,e),r}return m(e,t),e.prototype.appendCoordinate=function(t){this.flatCoordinates?(0,c.l7)(this.flatCoordinates,t):this.flatCoordinates=t.slice(),this.changed()},e.prototype.clone=function(){var t=new e(this.flatCoordinates.slice(),this.layout);return t.applyProperties(this),t},e.prototype.closestPointXY=function(t,e,n,r){return r<(0,s.qf)(this.getExtent(),t,e)?r:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt((0,a.Bv)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),(0,a.H$)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,this.maxDelta_,!1,t,e,n,r))},e.prototype.forEachSegment=function(t){return(0,h.E)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t)},e.prototype.getCoordinateAtM=function(t,e){if(this.layout!=i.Z.XYM&&this.layout!=i.Z.XYZM)return null;var n=void 0!==e&&e;return(0,d.iJ)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,n)},e.prototype.getCoordinates=function(){return(0,p.Ml)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},e.prototype.getCoordinateAt=function(t,e){return(0,d.WW)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,e,this.stride)},e.prototype.getLength=function(){return(0,g.W)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},e.prototype.getFlatMidpoint=function(){return this.flatMidpointRevision_!=this.getRevision()&&(this.flatMidpoint_=this.getCoordinateAt(.5,this.flatMidpoint_),this.flatMidpointRevision_=this.getRevision()),this.flatMidpoint_},e.prototype.getSimplifiedGeometryInternal=function(t){var n=[];return n.length=(0,u.dt)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,n,0),new e(n,i.Z.XY)},e.prototype.getType=function(){return"LineString"},e.prototype.intersectsExtent=function(t){return(0,f.Kz)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t)},e.prototype.setCoordinates=function(t,e){this.setLayout(e,t,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=(0,l.Sg)(this.flatCoordinates,0,t,this.stride),this.changed()},e}(o.ZP)},1964:(t,e,n)=>{"use strict";n.d(e,{Z:()=>d});var r,i=n(8359),o=n(6216),a=n(6708),s=n(6596),l=n(4363),u=n(9855),c=n(7488),h=n(3418),p=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});const d=function(t){function e(e,n){var r=t.call(this)||this;return r.maxDelta_=-1,r.maxDeltaRevision_=-1,void 0===n||Array.isArray(e[0])?r.setCoordinates(e,n):r.setFlatCoordinates(n,e),r}return p(e,t),e.prototype.clone=function(){return new e(this.flatCoordinates.slice(),this.layout)},e.prototype.closestPointXY=function(t,e,n,r){return r<(0,s.qf)(this.getExtent(),t,e)?r:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt((0,a.Bv)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),(0,a.H$)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,this.maxDelta_,!0,t,e,n,r))},e.prototype.getArea=function(){return(0,h.QQ)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},e.prototype.getCoordinates=function(){return(0,c.Ml)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},e.prototype.getSimplifiedGeometryInternal=function(t){var n=[];return n.length=(0,u.dt)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,n,0),new e(n,i.Z.XY)},e.prototype.getType=function(){return"LinearRing"},e.prototype.intersectsExtent=function(t){return!1},e.prototype.setCoordinates=function(t,e){this.setLayout(e,t,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=(0,l.Sg)(this.flatCoordinates,0,t,this.stride),this.changed()},e}(o.ZP)},8483:(t,e,n)=>{"use strict";n.d(e,{Z:()=>m});var r,i=n(8359),o=n(1584),a=n(6216),s=n(6708),l=n(6596),u=n(4363),c=n(9855),h=n(2182),p=n(7488),d=n(1574),f=n(7419),g=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});const m=function(t){function e(e,n,r){var i=t.call(this)||this;if(i.ends_=[],i.maxDelta_=-1,i.maxDeltaRevision_=-1,Array.isArray(e[0]))i.setCoordinates(e,n);else if(void 0!==n&&r)i.setFlatCoordinates(n,e),i.ends_=r;else{for(var o=i.getLayout(),a=e,s=[],l=[],u=0,c=a.length;u<c;++u){var p=a[u];0===u&&(o=p.getLayout()),(0,h.l7)(s,p.getFlatCoordinates()),l.push(s.length)}i.setFlatCoordinates(o,s),i.ends_=l}return i}return g(e,t),e.prototype.appendLineString=function(t){this.flatCoordinates?(0,h.l7)(this.flatCoordinates,t.getFlatCoordinates().slice()):this.flatCoordinates=t.getFlatCoordinates().slice(),this.ends_.push(this.flatCoordinates.length),this.changed()},e.prototype.clone=function(){var t=new e(this.flatCoordinates.slice(),this.layout,this.ends_.slice());return t.applyProperties(this),t},e.prototype.closestPointXY=function(t,e,n,r){return r<(0,l.qf)(this.getExtent(),t,e)?r:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt((0,s.Af)(this.flatCoordinates,0,this.ends_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),(0,s.Xl)(this.flatCoordinates,0,this.ends_,this.stride,this.maxDelta_,!1,t,e,n,r))},e.prototype.getCoordinateAtM=function(t,e,n){if(this.layout!=i.Z.XYM&&this.layout!=i.Z.XYZM||0===this.flatCoordinates.length)return null;var r=void 0!==e&&e,o=void 0!==n&&n;return(0,d.dG)(this.flatCoordinates,0,this.ends_,this.stride,t,r,o)},e.prototype.getCoordinates=function(){return(0,p.o1)(this.flatCoordinates,0,this.ends_,this.stride)},e.prototype.getEnds=function(){return this.ends_},e.prototype.getLineString=function(t){return t<0||this.ends_.length<=t?null:new o.Z(this.flatCoordinates.slice(0===t?0:this.ends_[t-1],this.ends_[t]),this.layout)},e.prototype.getLineStrings=function(){for(var t=this.flatCoordinates,e=this.ends_,n=this.layout,r=[],i=0,a=0,s=e.length;a<s;++a){var l=e[a],u=new o.Z(t.slice(i,l),n);r.push(u),i=l}return r},e.prototype.getFlatMidpoints=function(){for(var t=[],e=this.flatCoordinates,n=0,r=this.ends_,i=this.stride,o=0,a=r.length;o<a;++o){var s=r[o],l=(0,d.WW)(e,n,s,i,.5);(0,h.l7)(t,l),n=s}return t},e.prototype.getSimplifiedGeometryInternal=function(t){var n=[],r=[];return n.length=(0,c.UJ)(this.flatCoordinates,0,this.ends_,this.stride,t,n,0,r),new e(n,i.Z.XY,r)},e.prototype.getType=function(){return"MultiLineString"},e.prototype.intersectsExtent=function(t){return(0,f.AW)(this.flatCoordinates,0,this.ends_,this.stride,t)},e.prototype.setCoordinates=function(t,e){this.setLayout(e,t,2),this.flatCoordinates||(this.flatCoordinates=[]);var n=(0,u._5)(this.flatCoordinates,0,t,this.stride,this.ends_);this.flatCoordinates.length=0===n.length?0:n[n.length-1],this.changed()},e}(a.ZP)},3802:(t,e,n)=>{"use strict";n.d(e,{Z:()=>p});var r,i=n(971),o=n(6216),a=n(6596),s=n(4363),l=n(2182),u=n(7488),c=n(8007),h=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});const p=function(t){function e(e,n){var r=t.call(this)||this;return n&&!Array.isArray(e[0])?r.setFlatCoordinates(n,e):r.setCoordinates(e,n),r}return h(e,t),e.prototype.appendPoint=function(t){this.flatCoordinates?(0,l.l7)(this.flatCoordinates,t.getFlatCoordinates()):this.flatCoordinates=t.getFlatCoordinates().slice(),this.changed()},e.prototype.clone=function(){var t=new e(this.flatCoordinates.slice(),this.layout);return t.applyProperties(this),t},e.prototype.closestPointXY=function(t,e,n,r){if(r<(0,a.qf)(this.getExtent(),t,e))return r;for(var i=this.flatCoordinates,o=this.stride,s=0,l=i.length;s<l;s+=o){var u=(0,c.bI)(t,e,i[s],i[s+1]);if(u<r){r=u;for(var h=0;h<o;++h)n[h]=i[s+h];n.length=o}}return r},e.prototype.getCoordinates=function(){return(0,u.Ml)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},e.prototype.getPoint=function(t){var e=this.flatCoordinates?this.flatCoordinates.length/this.stride:0;return t<0||e<=t?null:new i.Z(this.flatCoordinates.slice(t*this.stride,(t+1)*this.stride),this.layout)},e.prototype.getPoints=function(){for(var t=this.flatCoordinates,e=this.layout,n=this.stride,r=[],o=0,a=t.length;o<a;o+=n){var s=new i.Z(t.slice(o,o+n),e);r.push(s)}return r},e.prototype.getType=function(){return"MultiPoint"},e.prototype.intersectsExtent=function(t){for(var e=this.flatCoordinates,n=this.stride,r=0,i=e.length;r<i;r+=n){var o=e[r],s=e[r+1];if((0,a.jE)(t,o,s))return!0}return!1},e.prototype.setCoordinates=function(t,e){this.setLayout(e,t,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=(0,s.Sg)(this.flatCoordinates,0,t,this.stride),this.changed()},e}(o.ZP)},3656:(t,e,n)=>{"use strict";n.d(e,{Z:()=>w});var r,i=n(8359),o=n(3802),a=n(5098),s=n(6216),l=n(6708),u=n(6596),c=n(4363),h=n(2182),p=n(1300),d=n(7488),f=n(7419),g=n(4636),m=n(3418),y=n(4532),v=n(5888),_=n(9855),b=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});const w=function(t){function e(e,n,r){var i=t.call(this)||this;if(i.endss_=[],i.flatInteriorPointsRevision_=-1,i.flatInteriorPoints_=null,i.maxDelta_=-1,i.maxDeltaRevision_=-1,i.orientedRevision_=-1,i.orientedFlatCoordinates_=null,!r&&!Array.isArray(e[0])){for(var o=i.getLayout(),a=e,s=[],l=[],u=0,c=a.length;u<c;++u){var p=a[u];0===u&&(o=p.getLayout());for(var d=s.length,f=p.getEnds(),g=0,m=f.length;g<m;++g)f[g]+=d;(0,h.l7)(s,p.getFlatCoordinates()),l.push(f)}n=o,e=s,r=l}return void 0!==n&&r?(i.setFlatCoordinates(n,e),i.endss_=r):i.setCoordinates(e,n),i}return b(e,t),e.prototype.appendPolygon=function(t){var e;if(this.flatCoordinates){var n=this.flatCoordinates.length;(0,h.l7)(this.flatCoordinates,t.getFlatCoordinates());for(var r=0,i=(e=t.getEnds().slice()).length;r<i;++r)e[r]+=n}else this.flatCoordinates=t.getFlatCoordinates().slice(),e=t.getEnds().slice(),this.endss_.push();this.endss_.push(e),this.changed()},e.prototype.clone=function(){for(var t=this.endss_.length,n=new Array(t),r=0;r<t;++r)n[r]=this.endss_[r].slice();var i=new e(this.flatCoordinates.slice(),this.layout,n);return i.applyProperties(this),i},e.prototype.closestPointXY=function(t,e,n,r){return r<(0,u.qf)(this.getExtent(),t,e)?r:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt((0,l.sD)(this.flatCoordinates,0,this.endss_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),(0,l.gI)(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,this.maxDelta_,!0,t,e,n,r))},e.prototype.containsXY=function(t,e){return(0,v.Zl)(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,t,e)},e.prototype.getArea=function(){return(0,m.Eu)(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride)},e.prototype.getCoordinates=function(t){var e;return void 0!==t?(e=this.getOrientedFlatCoordinates().slice(),(0,g.dL)(e,0,this.endss_,this.stride,t)):e=this.flatCoordinates,(0,d.ug)(e,0,this.endss_,this.stride)},e.prototype.getEndss=function(){return this.endss_},e.prototype.getFlatInteriorPoints=function(){if(this.flatInteriorPointsRevision_!=this.getRevision()){var t=(0,y.E)(this.flatCoordinates,0,this.endss_,this.stride);this.flatInteriorPoints_=(0,p.U)(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,t),this.flatInteriorPointsRevision_=this.getRevision()}return this.flatInteriorPoints_},e.prototype.getInteriorPoints=function(){return new o.Z(this.getFlatInteriorPoints().slice(),i.Z.XYM)},e.prototype.getOrientedFlatCoordinates=function(){if(this.orientedRevision_!=this.getRevision()){var t=this.flatCoordinates;(0,g.Oj)(t,0,this.endss_,this.stride)?this.orientedFlatCoordinates_=t:(this.orientedFlatCoordinates_=t.slice(),this.orientedFlatCoordinates_.length=(0,g.dL)(this.orientedFlatCoordinates_,0,this.endss_,this.stride)),this.orientedRevision_=this.getRevision()}return this.orientedFlatCoordinates_},e.prototype.getSimplifiedGeometryInternal=function(t){var n=[],r=[];return n.length=(0,_.Pp)(this.flatCoordinates,0,this.endss_,this.stride,Math.sqrt(t),n,0,r),new e(n,i.Z.XY,r)},e.prototype.getPolygon=function(t){if(t<0||this.endss_.length<=t)return null;var e;if(0===t)e=0;else{var n=this.endss_[t-1];e=n[n.length-1]}var r=this.endss_[t].slice(),i=r[r.length-1];if(0!==e)for(var o=0,s=r.length;o<s;++o)r[o]-=e;return new a.ZP(this.flatCoordinates.slice(e,i),this.layout,r)},e.prototype.getPolygons=function(){for(var t=this.layout,e=this.flatCoordinates,n=this.endss_,r=[],i=0,o=0,s=n.length;o<s;++o){var l=n[o].slice(),u=l[l.length-1];if(0!==i)for(var c=0,h=l.length;c<h;++c)l[c]-=i;var p=new a.ZP(e.slice(i,u),t,l);r.push(p),i=u}return r},e.prototype.getType=function(){return"MultiPolygon"},e.prototype.intersectsExtent=function(t){return(0,f.oW)(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,t)},e.prototype.setCoordinates=function(t,e){this.setLayout(e,t,3),this.flatCoordinates||(this.flatCoordinates=[]);var n=(0,c.QT)(this.flatCoordinates,0,t,this.stride,this.endss_);if(0===n.length)this.flatCoordinates.length=0;else{var r=n[n.length-1];this.flatCoordinates.length=0===r.length?0:r[r.length-1]}this.changed()},e}(s.ZP)},971:(t,e,n)=>{"use strict";n.d(e,{Z:()=>u});var r,i=n(6216),o=n(6596),a=n(4363),s=n(8007),l=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});const u=function(t){function e(e,n){var r=t.call(this)||this;return r.setCoordinates(e,n),r}return l(e,t),e.prototype.clone=function(){var t=new e(this.flatCoordinates.slice(),this.layout);return t.applyProperties(this),t},e.prototype.closestPointXY=function(t,e,n,r){var i=this.flatCoordinates,o=(0,s.bI)(t,e,i[0],i[1]);if(o<r){for(var a=this.stride,l=0;l<a;++l)n[l]=i[l];return n.length=a,o}return r},e.prototype.getCoordinates=function(){return this.flatCoordinates?this.flatCoordinates.slice():[]},e.prototype.computeExtent=function(t){return(0,o.HK)(this.flatCoordinates,t)},e.prototype.getType=function(){return"Point"},e.prototype.intersectsExtent=function(t){return(0,o.jE)(t,this.flatCoordinates[0],this.flatCoordinates[1])},e.prototype.setCoordinates=function(t,e){this.setLayout(e,t,0),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=(0,a.IG)(this.flatCoordinates,0,t,this.stride),this.changed()},e}(i.ZP)},5098:(t,e,n)=>{"use strict";n.d(e,{Bb:()=>k,ZP:()=>S,iu:()=>C,oJ:()=>E});var r,i=n(8359),o=n(1964),a=n(971),s=n(6216),l=n(6708),u=n(6596),c=n(4363),h=n(2182),p=n(1300),d=n(7488),f=n(7419),g=n(4636),m=n(3418),y=n(5888),v=n(8007),_=n(9855),b=n(1659),w=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),x=function(t){function e(e,n,r){var i=t.call(this)||this;return i.ends_=[],i.flatInteriorPointRevision_=-1,i.flatInteriorPoint_=null,i.maxDelta_=-1,i.maxDeltaRevision_=-1,i.orientedRevision_=-1,i.orientedFlatCoordinates_=null,void 0!==n&&r?(i.setFlatCoordinates(n,e),i.ends_=r):i.setCoordinates(e,n),i}return w(e,t),e.prototype.appendLinearRing=function(t){this.flatCoordinates?(0,h.l7)(this.flatCoordinates,t.getFlatCoordinates()):this.flatCoordinates=t.getFlatCoordinates().slice(),this.ends_.push(this.flatCoordinates.length),this.changed()},e.prototype.clone=function(){var t=new e(this.flatCoordinates.slice(),this.layout,this.ends_.slice());return t.applyProperties(this),t},e.prototype.closestPointXY=function(t,e,n,r){return r<(0,u.qf)(this.getExtent(),t,e)?r:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt((0,l.Af)(this.flatCoordinates,0,this.ends_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),(0,l.Xl)(this.flatCoordinates,0,this.ends_,this.stride,this.maxDelta_,!0,t,e,n,r))},e.prototype.containsXY=function(t,e){return(0,y.wY)(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,t,e)},e.prototype.getArea=function(){return(0,m.KP)(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride)},e.prototype.getCoordinates=function(t){var e;return void 0!==t?(e=this.getOrientedFlatCoordinates().slice(),(0,g.zX)(e,0,this.ends_,this.stride,t)):e=this.flatCoordinates,(0,d.o1)(e,0,this.ends_,this.stride)},e.prototype.getEnds=function(){return this.ends_},e.prototype.getFlatInteriorPoint=function(){if(this.flatInteriorPointRevision_!=this.getRevision()){var t=(0,u.qg)(this.getExtent());this.flatInteriorPoint_=(0,p.X)(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,t,0),this.flatInteriorPointRevision_=this.getRevision()}return this.flatInteriorPoint_},e.prototype.getInteriorPoint=function(){return new a.Z(this.getFlatInteriorPoint(),i.Z.XYM)},e.prototype.getLinearRingCount=function(){return this.ends_.length},e.prototype.getLinearRing=function(t){return t<0||this.ends_.length<=t?null:new o.Z(this.flatCoordinates.slice(0===t?0:this.ends_[t-1],this.ends_[t]),this.layout)},e.prototype.getLinearRings=function(){for(var t=this.layout,e=this.flatCoordinates,n=this.ends_,r=[],i=0,a=0,s=n.length;a<s;++a){var l=n[a],u=new o.Z(e.slice(i,l),t);r.push(u),i=l}return r},e.prototype.getOrientedFlatCoordinates=function(){if(this.orientedRevision_!=this.getRevision()){var t=this.flatCoordinates;(0,g.$v)(t,0,this.ends_,this.stride)?this.orientedFlatCoordinates_=t:(this.orientedFlatCoordinates_=t.slice(),this.orientedFlatCoordinates_.length=(0,g.zX)(this.orientedFlatCoordinates_,0,this.ends_,this.stride)),this.orientedRevision_=this.getRevision()}return this.orientedFlatCoordinates_},e.prototype.getSimplifiedGeometryInternal=function(t){var n=[],r=[];return n.length=(0,_.Zh)(this.flatCoordinates,0,this.ends_,this.stride,Math.sqrt(t),n,0,r),new e(n,i.Z.XY,r)},e.prototype.getType=function(){return"Polygon"},e.prototype.intersectsExtent=function(t){return(0,f.ac)(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,t)},e.prototype.setCoordinates=function(t,e){this.setLayout(e,t,2),this.flatCoordinates||(this.flatCoordinates=[]);var n=(0,c._5)(this.flatCoordinates,0,t,this.stride,this.ends_);this.flatCoordinates.length=0===n.length?0:n[n.length-1],this.changed()},e}(s.ZP);const S=x;function C(t,e,n,r){for(var o=n||32,a=[],s=0;s<o;++s)(0,h.l7)(a,(0,b.cv)(t,e,2*Math.PI*s/o,r));return a.push(a[0],a[1]),new x(a,i.Z.XY,[a.length])}function E(t){var e=t[0],n=t[1],r=t[2],o=t[3],a=[e,n,e,o,r,o,r,n,e,n];return new x(a,i.Z.XY,[a.length])}function k(t,e,n){for(var r=e||32,i=t.getStride(),o=t.getLayout(),a=t.getCenter(),s=i*(r+1),l=new Array(s),u=0;u<s;u+=i){l[u]=0,l[u+1]=0;for(var c=2;c<i;c++)l[u+c]=a[c]}var h=[l.length],p=new x(l,o,h);return function(t,e,n,r){for(var i=t.getFlatCoordinates(),o=t.getStride(),a=i.length/o-1,s=r||0,l=0;l<=a;++l){var u=l*o,c=s+2*(0,v.$W)(l,a)*Math.PI/a;i[u]=e[0]+n*Math.cos(c),i[u+1]=e[1]+n*Math.sin(c)}t.changed()}(p,a,t.getRadius(),n),p}},6216:(t,e,n)=>{"use strict";n.d(e,{Kr:()=>h,ZP:()=>p,tP:()=>c});var r,i=n(1705),o=n(8359),a=n(2637),s=n(6596),l=n(7529),u=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});function c(t){var e;return t==o.Z.XY?e=2:t==o.Z.XYZ||t==o.Z.XYM?e=3:t==o.Z.XYZM&&(e=4),e}function h(t,e,n){var r=t.getFlatCoordinates();if(r){var i=t.getStride();return(0,l.vT)(r,0,r.length,i,e,n)}return null}const p=function(t){function e(){var e=t.call(this)||this;return e.layout=o.Z.XY,e.stride=2,e.flatCoordinates=null,e}return u(e,t),e.prototype.computeExtent=function(t){return(0,s.GN)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t)},e.prototype.getCoordinates=function(){return(0,a.O3)()},e.prototype.getFirstCoordinate=function(){return this.flatCoordinates.slice(0,this.stride)},e.prototype.getFlatCoordinates=function(){return this.flatCoordinates},e.prototype.getLastCoordinate=function(){return this.flatCoordinates.slice(this.flatCoordinates.length-this.stride)},e.prototype.getLayout=function(){return this.layout},e.prototype.getSimplifiedGeometry=function(t){if(this.simplifiedGeometryRevision!==this.getRevision()&&(this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=this.getRevision()),t<0||0!==this.simplifiedGeometryMaxMinSquaredTolerance&&t<=this.simplifiedGeometryMaxMinSquaredTolerance)return this;var e=this.getSimplifiedGeometryInternal(t);return e.getFlatCoordinates().length<this.flatCoordinates.length?e:(this.simplifiedGeometryMaxMinSquaredTolerance=t,this)},e.prototype.getSimplifiedGeometryInternal=function(t){return this},e.prototype.getStride=function(){return this.stride},e.prototype.setFlatCoordinates=function(t,e){this.stride=c(t),this.layout=t,this.flatCoordinates=e},e.prototype.setCoordinates=function(t,e){(0,a.O3)()},e.prototype.setLayout=function(t,e,n){var r;if(t)r=c(t);else{for(var i=0;i<n;++i){if(0===e.length)return this.layout=o.Z.XY,void(this.stride=2);e=e[0]}t=function(t){var e;return 2==t?e=o.Z.XY:3==t?e=o.Z.XYZ:4==t&&(e=o.Z.XYZM),e}(r=e.length)}this.layout=t,this.stride=r},e.prototype.applyTransform=function(t){this.flatCoordinates&&(t(this.flatCoordinates,this.flatCoordinates,this.stride),this.changed())},e.prototype.rotate=function(t,e){var n=this.getFlatCoordinates();if(n){var r=this.getStride();(0,l.U1)(n,0,n.length,r,t,e,n),this.changed()}},e.prototype.scale=function(t,e,n){var r=e;void 0===r&&(r=t);var i=n;i||(i=(0,s.qg)(this.getExtent()));var o=this.getFlatCoordinates();if(o){var a=this.getStride();(0,l.bA)(o,0,o.length,a,t,r,i,o),this.changed()}},e.prototype.translate=function(t,e){var n=this.getFlatCoordinates();if(n){var r=this.getStride();(0,l.Iu)(n,0,n.length,r,t,e,n),this.changed()}},e}(i.Z)},3418:(t,e,n)=>{"use strict";function r(t,e,n,r){for(var i=0,o=t[n-r],a=t[n-r+1];e<n;e+=r){var s=t[e],l=t[e+1];i+=a*s-o*l,o=s,a=l}return i/2}function i(t,e,n,i){for(var o=0,a=0,s=n.length;a<s;++a){var l=n[a];o+=r(t,e,l,i),e=l}return o}function o(t,e,n,r){for(var o=0,a=0,s=n.length;a<s;++a){var l=n[a];o+=i(t,e,l,r),e=l[l.length-1]}return o}n.d(e,{Eu:()=>o,KP:()=>i,QQ:()=>r})},4532:(t,e,n)=>{"use strict";n.d(e,{E:()=>i});var r=n(6596);function i(t,e,n,i){for(var o=[],a=(0,r.lJ)(),s=0,l=n.length;s<l;++s){var u=n[s];a=(0,r.GN)(t,e,u[0],i),o.push((a[0]+a[2])/2,(a[1]+a[3])/2),e=u[u.length-1]}return o}},6708:(t,e,n)=>{"use strict";n.d(e,{Af:()=>a,Bv:()=>o,H$:()=>l,Xl:()=>u,gI:()=>c,sD:()=>s});var r=n(8007);function i(t,e,n,i,o,a,s){var l,u=t[e],c=t[e+1],h=t[n]-u,p=t[n+1]-c;if(0===h&&0===p)l=e;else{var d=((o-u)*h+(a-c)*p)/(h*h+p*p);if(d>1)l=n;else{if(d>0){for(var f=0;f<i;++f)s[f]=(0,r.t7)(t[e+f],t[n+f],d);return void(s.length=i)}l=e}}for(f=0;f<i;++f)s[f]=t[l+f];s.length=i}function o(t,e,n,i,o){var a=t[e],s=t[e+1];for(e+=i;e<n;e+=i){var l=t[e],u=t[e+1],c=(0,r.bI)(a,s,l,u);c>o&&(o=c),a=l,s=u}return o}function a(t,e,n,r,i){for(var a=0,s=n.length;a<s;++a){var l=n[a];i=o(t,e,l,r,i),e=l}return i}function s(t,e,n,r,i){for(var o=0,s=n.length;o<s;++o){var l=n[o];i=a(t,e,l,r,i),e=l[l.length-1]}return i}function l(t,e,n,o,a,s,l,u,c,h,p){if(e==n)return h;var d,f;if(0===a){if((f=(0,r.bI)(l,u,t[e],t[e+1]))<h){for(d=0;d<o;++d)c[d]=t[e+d];return c.length=o,f}return h}for(var g=p||[NaN,NaN],m=e+o;m<n;)if(i(t,m-o,m,o,l,u,g),(f=(0,r.bI)(l,u,g[0],g[1]))<h){for(h=f,d=0;d<o;++d)c[d]=g[d];c.length=o,m+=o}else m+=o*Math.max((Math.sqrt(f)-Math.sqrt(h))/a|0,1);if(s&&(i(t,n-o,e,o,l,u,g),(f=(0,r.bI)(l,u,g[0],g[1]))<h)){for(h=f,d=0;d<o;++d)c[d]=g[d];c.length=o}return h}function u(t,e,n,r,i,o,a,s,u,c,h){for(var p=h||[NaN,NaN],d=0,f=n.length;d<f;++d){var g=n[d];c=l(t,e,g,r,i,o,a,s,u,c,p),e=g}return c}function c(t,e,n,r,i,o,a,s,l,c,h){for(var p=h||[NaN,NaN],d=0,f=n.length;d<f;++d){var g=n[d];c=u(t,e,g,r,i,o,a,s,l,c,p),e=g[g.length-1]}return c}},5888:(t,e,n)=>{"use strict";n.d(e,{TG:()=>o,Zl:()=>s,uG:()=>i,wY:()=>a});var r=n(6596);function i(t,e,n,i,a){return!(0,r.H6)(a,(function(r){return!o(t,e,n,i,r[0],r[1])}))}function o(t,e,n,r,i,o){for(var a=0,s=t[n-r],l=t[n-r+1];e<n;e+=r){var u=t[e],c=t[e+1];l<=o?c>o&&(u-s)*(o-l)-(i-s)*(c-l)>0&&a++:c<=o&&(u-s)*(o-l)-(i-s)*(c-l)<0&&a--,s=u,l=c}return 0!==a}function a(t,e,n,r,i,a){if(0===n.length)return!1;if(!o(t,e,n[0],r,i,a))return!1;for(var s=1,l=n.length;s<l;++s)if(o(t,n[s-1],n[s],r,i,a))return!1;return!0}function s(t,e,n,r,i,o){if(0===n.length)return!1;for(var s=0,l=n.length;s<l;++s){var u=n[s];if(a(t,e,u,r,i,o))return!0;e=u[u.length-1]}return!1}},4363:(t,e,n)=>{"use strict";function r(t,e,n,r){for(var i=0,o=n.length;i<o;++i)t[e++]=n[i];return e}function i(t,e,n,r){for(var i=0,o=n.length;i<o;++i)for(var a=n[i],s=0;s<r;++s)t[e++]=a[s];return e}function o(t,e,n,r,o){for(var a=o||[],s=0,l=0,u=n.length;l<u;++l){var c=i(t,e,n[l],r);a[s++]=c,e=c}return a.length=s,a}function a(t,e,n,r,i){for(var a=i||[],s=0,l=0,u=n.length;l<u;++l){var c=o(t,e,n[l],r,a[s]);a[s++]=c,e=c[c.length-1]}return a.length=s,a}n.d(e,{IG:()=>r,QT:()=>a,Sg:()=>i,_5:()=>o})},7488:(t,e,n)=>{"use strict";function r(t,e,n,r,i){for(var o=void 0!==i?i:[],a=0,s=e;s<n;s+=r)o[a++]=t.slice(s,s+r);return o.length=a,o}function i(t,e,n,i,o){for(var a=void 0!==o?o:[],s=0,l=0,u=n.length;l<u;++l){var c=n[l];a[s++]=r(t,e,c,i,a[s]),e=c}return a.length=s,a}function o(t,e,n,r,o){for(var a=void 0!==o?o:[],s=0,l=0,u=n.length;l<u;++l){var c=n[l];a[s++]=i(t,e,c,r,a[s]),e=c[c.length-1]}return a.length=s,a}n.d(e,{Ml:()=>r,o1:()=>i,ug:()=>o})},1300:(t,e,n)=>{"use strict";n.d(e,{U:()=>a,X:()=>o});var r=n(5888),i=n(2182);function o(t,e,n,o,a,s,l){for(var u,c,h,p,d,f,g,m=a[s+1],y=[],v=0,_=n.length;v<_;++v){var b=n[v];for(p=t[b-o],f=t[b-o+1],u=e;u<b;u+=o)d=t[u],g=t[u+1],(m<=f&&g<=m||f<=m&&m<=g)&&(h=(m-f)/(g-f)*(d-p)+p,y.push(h)),p=d,f=g}var w=NaN,x=-1/0;for(y.sort(i.kK),p=y[0],u=1,c=y.length;u<c;++u){d=y[u];var S=Math.abs(d-p);S>x&&(h=(p+d)/2,(0,r.wY)(t,e,n,o,h,m)&&(w=h,x=S)),p=d}return isNaN(w)&&(w=a[s]),l?(l.push(w,m,x),l):[w,m,x]}function a(t,e,n,r,i){for(var a=[],s=0,l=n.length;s<l;++s){var u=n[s];a=o(t,e,u,r,i,2*s,a),e=u[u.length-1]}return a}},1574:(t,e,n)=>{"use strict";n.d(e,{WW:()=>o,dG:()=>s,iJ:()=>a});var r=n(2182),i=n(8007);function o(t,e,n,o,a,s,l){var u,c,h=(n-e)/o;if(1===h)u=e;else if(2===h)u=e,c=a;else if(0!==h){for(var p=t[e],d=t[e+1],f=0,g=[0],m=e+o;m<n;m+=o){var y=t[m],v=t[m+1];f+=Math.sqrt((y-p)*(y-p)+(v-d)*(v-d)),g.push(f),p=y,d=v}var _=a*f,b=(0,r.ry)(g,_);b<0?(c=(_-g[-b-2])/(g[-b-1]-g[-b-2]),u=e+(-b-2)*o):u=e+b*o}var w=l>1?l:2,x=s||new Array(w);for(m=0;m<w;++m)x[m]=void 0===u?NaN:void 0===c?t[u+m]:(0,i.t7)(t[u+m],t[u+o+m],c);return x}function a(t,e,n,r,o,a){if(n==e)return null;var s;if(o<t[e+r-1])return a?((s=t.slice(e,e+r))[r-1]=o,s):null;if(t[n-1]<o)return a?((s=t.slice(n-r,n))[r-1]=o,s):null;if(o==t[e+r-1])return t.slice(e,e+r);for(var l=e/r,u=n/r;l<u;){var c=l+u>>1;o<t[(c+1)*r-1]?u=c:l=c+1}var h=t[l*r-1];if(o==h)return t.slice((l-1)*r,(l-1)*r+r);var p=(o-h)/(t[(l+1)*r-1]-h);s=[];for(var d=0;d<r-1;++d)s.push((0,i.t7)(t[(l-1)*r+d],t[l*r+d],p));return s.push(o),s}function s(t,e,n,r,i,o,s){if(s)return a(t,e,n[n.length-1],r,i,o);var l;if(i<t[r-1])return o?((l=t.slice(0,r))[r-1]=i,l):null;if(t[t.length-1]<i)return o?((l=t.slice(t.length-r))[r-1]=i,l):null;for(var u=0,c=n.length;u<c;++u){var h=n[u];if(e!=h){if(i<t[e+r-1])return null;if(i<=t[h-1])return a(t,e,h,r,i,!1);e=h}}return null}},7419:(t,e,n)=>{"use strict";n.d(e,{AW:()=>s,Kz:()=>a,ac:()=>u,mV:()=>l,oW:()=>c});var r=n(6596),i=n(6770),o=n(5888);function a(t,e,n,o,a){var s=(0,r.qP)((0,r.lJ)(),t,e,n,o);return!!(0,r.kK)(a,s)&&(!!(0,r.r4)(a,s)||s[0]>=a[0]&&s[2]<=a[2]||s[1]>=a[1]&&s[3]<=a[3]||(0,i.E)(t,e,n,o,(function(t,e){return(0,r.I7)(a,t,e)})))}function s(t,e,n,r,i){for(var o=0,s=n.length;o<s;++o){if(a(t,e,n[o],r,i))return!0;e=n[o]}return!1}function l(t,e,n,r,i){return!!(a(t,e,n,r,i)||(0,o.TG)(t,e,n,r,i[0],i[1])||(0,o.TG)(t,e,n,r,i[0],i[3])||(0,o.TG)(t,e,n,r,i[2],i[1])||(0,o.TG)(t,e,n,r,i[2],i[3]))}function u(t,e,n,r,i){if(!l(t,e,n[0],r,i))return!1;if(1===n.length)return!0;for(var s=1,u=n.length;s<u;++s)if((0,o.uG)(t,n[s-1],n[s],r,i)&&!a(t,n[s-1],n[s],r,i))return!1;return!0}function c(t,e,n,r,i){for(var o=0,a=n.length;o<a;++o){var s=n[o];if(u(t,e,s,r,i))return!0;e=s[s.length-1]}return!1}},1410:(t,e,n)=>{"use strict";function r(t,e,n,r){for(var i=t[e],o=t[e+1],a=0,s=e+r;s<n;s+=r){var l=t[s],u=t[s+1];a+=Math.sqrt((l-i)*(l-i)+(u-o)*(u-o)),i=l,o=u}return a}n.d(e,{W:()=>r})},4636:(t,e,n)=>{"use strict";function r(t,e,n,r){for(;e<n-r;){for(var i=0;i<r;++i){var o=t[e+i];t[e+i]=t[n-r+i],t[n-r+i]=o}e+=r,n-=r}}function i(t,e,n,r){for(var i=0,o=t[n-r],a=t[n-r+1];e<n;e+=r){var s=t[e],l=t[e+1];i+=(s-o)*(l+a),o=s,a=l}return 0===i?void 0:i>0}function o(t,e,n,r,o){for(var a=void 0!==o&&o,s=0,l=n.length;s<l;++s){var u=n[s],c=i(t,e,u,r);if(0===s){if(a&&c||!a&&!c)return!1}else if(a&&!c||!a&&c)return!1;e=u}return!0}function a(t,e,n,r,i){for(var a=0,s=n.length;a<s;++a){var l=n[a];if(!o(t,e,l,r,i))return!1;l.length&&(e=l[l.length-1])}return!0}function s(t,e,n,o,a){for(var s=void 0!==a&&a,l=0,u=n.length;l<u;++l){var c=n[l],h=i(t,e,c,o);(0===l?s&&h||!s&&!h:s&&!h||!s&&h)&&r(t,e,c,o),e=c}return e}function l(t,e,n,r,i){for(var o=0,a=n.length;o<a;++o)e=s(t,e,n[o],r,i);return e}function u(t,e){for(var n=[],r=0,o=0,a=0,s=e.length;a<s;++a){var l=e[a];if(i(t,r,l,2)){if(0===n.length)continue;n[n.length-1].push(e[o])}else n.push(e.slice(o,a+1));o=a+1,r=l}return n}n.d(e,{Q3:()=>u,bt:()=>i,$v:()=>o,Oj:()=>a,zX:()=>s,dL:()=>l})},6770:(t,e,n)=>{"use strict";function r(t,e,n,r,i){var o;for(e+=r;e<n;e+=r)if(o=i(t.slice(e-r,e),t.slice(e,e+r)))return o;return!1}n.d(e,{E:()=>r})},9855:(t,e,n)=>{"use strict";n.d(e,{Pp:()=>u,UJ:()=>o,Zh:()=>l,dt:()=>i,uZ:()=>a});var r=n(8007);function i(t,e,n,i,o,a,s){var l=(n-e)/i;if(l<3){for(;e<n;e+=i)a[s++]=t[e],a[s++]=t[e+1];return s}var u=new Array(l);u[0]=1,u[l-1]=1;for(var c=[e,n-i],h=0;c.length>0;){for(var p=c.pop(),d=c.pop(),f=0,g=t[d],m=t[d+1],y=t[p],v=t[p+1],_=d+i;_<p;_+=i){var b=t[_],w=t[_+1],x=(0,r.rU)(b,w,g,m,y,v);x>f&&(h=_,f=x)}f>o&&(u[(h-e)/i]=1,d+i<h&&c.push(d,h),h+i<p&&c.push(h,p))}for(_=0;_<l;++_)u[_]&&(a[s++]=t[e+_*i],a[s++]=t[e+_*i+1]);return s}function o(t,e,n,r,o,a,s,l){for(var u=0,c=n.length;u<c;++u){var h=n[u];s=i(t,e,h,r,o,a,s),l.push(s),e=h}return s}function a(t,e){return e*Math.round(t/e)}function s(t,e,n,r,i,o,s){if(e==n)return s;var l,u,c=a(t[e],i),h=a(t[e+1],i);e+=r,o[s++]=c,o[s++]=h;do{if(l=a(t[e],i),u=a(t[e+1],i),(e+=r)==n)return o[s++]=l,o[s++]=u,s}while(l==c&&u==h);for(;e<n;){var p=a(t[e],i),d=a(t[e+1],i);if(e+=r,p!=l||d!=u){var f=l-c,g=u-h,m=p-c,y=d-h;f*y==g*m&&(f<0&&m<f||f==m||f>0&&m>f)&&(g<0&&y<g||g==y||g>0&&y>g)?(l=p,u=d):(o[s++]=l,o[s++]=u,c=l,h=u,l=p,u=d)}}return o[s++]=l,o[s++]=u,s}function l(t,e,n,r,i,o,a,l){for(var u=0,c=n.length;u<c;++u){var h=n[u];a=s(t,e,h,r,i,o,a),l.push(a),e=h}return a}function u(t,e,n,r,i,o,a,s){for(var u=0,c=n.length;u<c;++u){var h=n[u],p=[];a=l(t,e,h,r,i,o,a,p),s.push(p),e=h[h.length-1]}return a}},7529:(t,e,n)=>{"use strict";function r(t,e,n,r,i,o){for(var a=o||[],s=0,l=e;l<n;l+=r){var u=t[l],c=t[l+1];a[s++]=i[0]*u+i[2]*c+i[4],a[s++]=i[1]*u+i[3]*c+i[5]}return o&&a.length!=s&&(a.length=s),a}function i(t,e,n,r,i,o,a){for(var s=a||[],l=Math.cos(i),u=Math.sin(i),c=o[0],h=o[1],p=0,d=e;d<n;d+=r){var f=t[d]-c,g=t[d+1]-h;s[p++]=c+f*l-g*u,s[p++]=h+f*u+g*l;for(var m=d+2;m<d+r;++m)s[p++]=t[m]}return a&&s.length!=p&&(s.length=p),s}function o(t,e,n,r,i,o,a,s){for(var l=s||[],u=a[0],c=a[1],h=0,p=e;p<n;p+=r){var d=t[p]-u,f=t[p+1]-c;l[h++]=u+i*d,l[h++]=c+o*f;for(var g=p+2;g<p+r;++g)l[h++]=t[g]}return s&&l.length!=h&&(l.length=h),l}function a(t,e,n,r,i,o,a){for(var s=a||[],l=0,u=e;u<n;u+=r){s[l++]=t[u]+i,s[l++]=t[u+1]+o;for(var c=u+2;c<u+r;++c)s[l++]=t[c]}return a&&s.length!=l&&(s.length=l),s}n.d(e,{Iu:()=>a,U1:()=>i,bA:()=>o,vT:()=>r})},7119:(t,e,n)=>{"use strict";n.d(e,{G$:()=>o,Id:()=>l,MP:()=>s,Tp:()=>u,V:()=>i,bM:()=>c,tK:()=>a});var r="undefined"!=typeof navigator&&void 0!==navigator.userAgent?navigator.userAgent.toLowerCase():"",i=-1!==r.indexOf("firefox"),o=(-1!==r.indexOf("safari")&&-1==r.indexOf("chrom")&&(r.indexOf("version/15.4")>=0||r.match(/cpu (os|iphone os) 15_4 like mac os x/)),-1!==r.indexOf("webkit")&&-1==r.indexOf("edge")),a=-1!==r.indexOf("macintosh"),s="undefined"!=typeof devicePixelRatio?devicePixelRatio:1,l="undefined"!=typeof WorkerGlobalScope&&"undefined"!=typeof OffscreenCanvas&&self instanceof WorkerGlobalScope,u="undefined"!=typeof Image&&Image.prototype.decode,c=function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("_",null,e),window.removeEventListener("_",null,e)}catch(t){}return t}()},7243:(t,e,n)=>{"use strict";n.r(e),n.d(e,{AssertionError:()=>i.Z,Collection:()=>o.Z,Disposable:()=>a.Z,Feature:()=>s.Z,Geolocation:()=>k,Graticule:()=>H,Image:()=>X.Z,ImageBase:()=>K.Z,ImageCanvas:()=>Y.Z,ImageTile:()=>Q.Z,Kinetic:()=>$.Z,Map:()=>J.Z,MapBrowserEvent:()=>tt.Z,MapBrowserEventHandler:()=>et.Z,MapEvent:()=>nt.Z,Object:()=>u.Z,Observable:()=>rt.Z,Overlay:()=>it.Z,PluggableMap:()=>ot.Z,Tile:()=>at.Z,TileCache:()=>st.Z,TileQueue:()=>lt.Z,TileRange:()=>ut.Z,VERSION:()=>dt.q4,VectorRenderTile:()=>ct.Z,VectorTile:()=>ht.Z,View:()=>pt.ZP,getUid:()=>dt.sq});var r,i=n(7906),o=n(3537),a=n(5466),s=n(2540),l=n(9025),u=n(6414),c=n(2001),h=n(5098),p=n(6162),d=n(8007),f=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),g="accuracy",m="accuracyGeometry",y="altitude",v="altitudeAccuracy",_="heading",b="position",w="projection",x="speed",S="tracking",C="trackingOptions",E=function(t){function e(e){var n=t.call(this,c.Z.ERROR)||this;return n.code=e.code,n.message=e.message,n}return f(e,t),e}(l.ZP);const k=function(t){function e(e){var n=t.call(this)||this;n.on,n.once,n.un;var r=e||{};return n.position_=null,n.transform_=p.identityTransform,n.watchId_=void 0,n.addChangeListener(w,n.handleProjectionChanged_),n.addChangeListener(S,n.handleTrackingChanged_),void 0!==r.projection&&n.setProjection(r.projection),void 0!==r.trackingOptions&&n.setTrackingOptions(r.trackingOptions),n.setTracking(void 0!==r.tracking&&r.tracking),n}return f(e,t),e.prototype.disposeInternal=function(){this.setTracking(!1),t.prototype.disposeInternal.call(this)},e.prototype.handleProjectionChanged_=function(){var t=this.getProjection();t&&(this.transform_=(0,p.getTransformFromProjections)((0,p.get)("EPSG:4326"),t),this.position_&&this.set(b,this.transform_(this.position_)))},e.prototype.handleTrackingChanged_=function(){if("geolocation"in navigator){var t=this.getTracking();t&&void 0===this.watchId_?this.watchId_=navigator.geolocation.watchPosition(this.positionChange_.bind(this),this.positionError_.bind(this),this.getTrackingOptions()):t||void 0===this.watchId_||(navigator.geolocation.clearWatch(this.watchId_),this.watchId_=void 0)}},e.prototype.positionChange_=function(t){var e=t.coords;this.set(g,e.accuracy),this.set(y,null===e.altitude?void 0:e.altitude),this.set(v,null===e.altitudeAccuracy?void 0:e.altitudeAccuracy),this.set(_,null===e.heading?void 0:(0,d.Yr)(e.heading)),this.position_?(this.position_[0]=e.longitude,this.position_[1]=e.latitude):this.position_=[e.longitude,e.latitude];var n=this.transform_(this.position_);this.set(b,n),this.set(x,null===e.speed?void 0:e.speed);var r=(0,h.iu)(this.position_,e.accuracy);r.applyTransform(this.transform_),this.set(m,r),this.changed()},e.prototype.positionError_=function(t){this.dispatchEvent(new E(t))},e.prototype.getAccuracy=function(){return this.get(g)},e.prototype.getAccuracyGeometry=function(){return this.get(m)||null},e.prototype.getAltitude=function(){return this.get(y)},e.prototype.getAltitudeAccuracy=function(){return this.get(v)},e.prototype.getHeading=function(){return this.get(_)},e.prototype.getPosition=function(){return this.get(b)},e.prototype.getProjection=function(){return this.get(w)},e.prototype.getSpeed=function(){return this.get(x)},e.prototype.getTracking=function(){return this.get(S)},e.prototype.getTrackingOptions=function(){return this.get(C)},e.prototype.setProjection=function(t){this.set(w,(0,p.get)(t))},e.prototype.setTracking=function(t){this.set(S,t)},e.prototype.setTrackingOptions=function(t){this.set(C,t)},e}(u.Z);var A=n(1900),P=n(3856),T=n(8359),M=n(1584),O=n(971),R=n(2795),I=n(1457),L=n(1545),F=n(7325),N=n(5792),D=n(6596),z=n(6534),Z=n(2253),j=n(5606),G=n(1091),B=n(3545);function U(t,e,n){for(var r,i,o,a,s,l,u=[],c=t(0),h=t(1),p=e(c),f=e(h),g=[h,c],m=[f,p],y=[1,0],v={},_=1e5;--_>0&&y.length>0;)o=y.pop(),c=g.pop(),p=m.pop(),(l=o.toString())in v||(u.push(p[0],p[1]),v[l]=!0),a=y.pop(),h=g.pop(),f=m.pop(),i=e(r=t(s=(o+a)/2)),(0,d.rU)(i[0],i[1],p[0],p[1],f[0],f[1])<n?(u.push(f[0],f[1]),v[l=a.toString()]=!0):(y.push(a,s,s,o),m.push(f,i,i,p),g.push(h,r,r,c));return u}var V=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),q=new R.Z({color:"rgba(0,0,0,0.2)"}),W=[90,45,30,20,10,5,2,1,.5,.2,.1,.05,.01,.005,.002,.001];const H=function(t){function e(e){var n=this,r=e||{},i=(0,z.f0)({updateWhileAnimating:!0,updateWhileInteracting:!0,renderBuffer:0},r);return delete i.maxLines,delete i.strokeStyle,delete i.targetSize,delete i.showLabels,delete i.lonLabelFormatter,delete i.latLabelFormatter,delete i.lonLabelPosition,delete i.latLabelPosition,delete i.lonLabelStyle,delete i.latLabelStyle,delete i.intervals,(n=t.call(this,i)||this).projection_=null,n.maxLat_=1/0,n.maxLon_=1/0,n.minLat_=-1/0,n.minLon_=-1/0,n.maxX_=1/0,n.maxY_=1/0,n.minX_=-1/0,n.minY_=-1/0,n.targetSize_=void 0!==r.targetSize?r.targetSize:100,n.maxLines_=void 0!==r.maxLines?r.maxLines:100,n.meridians_=[],n.parallels_=[],n.strokeStyle_=void 0!==r.strokeStyle?r.strokeStyle:q,n.fromLonLatTransform_=void 0,n.toLonLatTransform_=void 0,n.projectionCenterLonLat_=null,n.bottomLeft_=null,n.bottomRight_=null,n.topLeft_=null,n.topRight_=null,n.meridiansLabels_=null,n.parallelsLabels_=null,r.showLabels&&(n.lonLabelFormatter_=null==r.lonLabelFormatter?Z.I8.bind(n,"EW"):r.lonLabelFormatter,n.latLabelFormatter_=null==r.latLabelFormatter?Z.I8.bind(n,"NS"):r.latLabelFormatter,n.lonLabelPosition_=null==r.lonLabelPosition?0:r.lonLabelPosition,n.latLabelPosition_=null==r.latLabelPosition?1:r.latLabelPosition,n.lonLabelStyleBase_=new I.ZP({text:void 0!==r.lonLabelStyle?r.lonLabelStyle.clone():new L.Z({font:"12px Calibri,sans-serif",textBaseline:"bottom",fill:new P.Z({color:"rgba(0,0,0,1)"}),stroke:new R.Z({color:"rgba(255,255,255,1)",width:3})})}),n.lonLabelStyle_=function(t){var e=t.get("graticule_label");return this.lonLabelStyleBase_.getText().setText(e),this.lonLabelStyleBase_}.bind(n),n.latLabelStyleBase_=new I.ZP({text:void 0!==r.latLabelStyle?r.latLabelStyle.clone():new L.Z({font:"12px Calibri,sans-serif",textAlign:"right",fill:new P.Z({color:"rgba(0,0,0,1)"}),stroke:new R.Z({color:"rgba(255,255,255,1)",width:3})})}),n.latLabelStyle_=function(t){var e=t.get("graticule_label");return this.latLabelStyleBase_.getText().setText(e),this.latLabelStyleBase_}.bind(n),n.meridiansLabels_=[],n.parallelsLabels_=[],n.addEventListener(A.Z.POSTRENDER,n.drawLabels_.bind(n))),n.intervals_=void 0!==r.intervals?r.intervals:W,n.setSource(new N.default({loader:n.loaderFunction.bind(n),strategy:n.strategyFunction.bind(n),features:new o.Z,overlaps:!1,useSpatialIndex:!1,wrapX:r.wrapX})),n.featurePool_=[],n.lineStyle_=new I.ZP({stroke:n.strokeStyle_}),n.loadedExtent_=null,n.renderedExtent_=null,n.renderedResolution_=null,n.setRenderOrder(null),n}return V(e,t),e.prototype.strategyFunction=function(t,e){var n=t.slice();return this.projection_&&this.getSource().getWrapX()&&(0,D.Cf)(n,this.projection_),this.loadedExtent_&&((0,D.iW)(this.loadedExtent_,n,e)?n=this.loadedExtent_.slice():this.getSource().removeLoadedExtent(this.loadedExtent_)),[n]},e.prototype.loaderFunction=function(t,e,n){this.loadedExtent_=t;var r=this.getSource(),i=this.getExtent()||[-1/0,-1/0,1/0,1/0],o=(0,D.Ed)(i,t);if(!(this.renderedExtent_&&(0,D.fS)(this.renderedExtent_,o)&&this.renderedResolution_===e||(this.renderedExtent_=o,this.renderedResolution_=e,(0,D.xb)(o)))){var a=(0,D.qg)(o),l=e*e/4;(!this.projection_||!(0,p.equivalent)(this.projection_,n))&&this.updateProjectionInfo_(n),this.createGraticule_(o,a,e,l);var u,c=this.meridians_.length+this.parallels_.length;for(this.meridiansLabels_&&(c+=this.meridians_.length),this.parallelsLabels_&&(c+=this.parallels_.length);c>this.featurePool_.length;)u=new s.Z,this.featurePool_.push(u);var h=r.getFeaturesCollection();h.clear();var d,f,g=0;for(d=0,f=this.meridians_.length;d<f;++d)(u=this.featurePool_[g++]).setGeometry(this.meridians_[d]),u.setStyle(this.lineStyle_),h.push(u);for(d=0,f=this.parallels_.length;d<f;++d)(u=this.featurePool_[g++]).setGeometry(this.parallels_[d]),u.setStyle(this.lineStyle_),h.push(u)}},e.prototype.addMeridian_=function(t,e,n,r,i,o){var a=this.getMeridian_(t,e,n,r,o);if((0,D.kK)(a.getExtent(),i)){if(this.meridiansLabels_){var s=this.lonLabelFormatter_(t);o in this.meridiansLabels_?this.meridiansLabels_[o].text=s:this.meridiansLabels_[o]={geom:new O.Z([]),text:s}}this.meridians_[o++]=a}return o},e.prototype.addParallel_=function(t,e,n,r,i,o){var a=this.getParallel_(t,e,n,r,o);if((0,D.kK)(a.getExtent(),i)){if(this.parallelsLabels_){var s=this.latLabelFormatter_(t);o in this.parallelsLabels_?this.parallelsLabels_[o].text=s:this.parallelsLabels_[o]={geom:new O.Z([]),text:s}}this.parallels_[o++]=a}return o},e.prototype.drawLabels_=function(t){var e=t.frameState.viewState.rotation,n=t.frameState.viewState.resolution,r=t.frameState.size,i=t.frameState.extent,o=(0,D.qg)(i),a=i;if(e){var s=r[0]*n,l=r[1]*n;a=[o[0]-s/2,o[1]-l/2,o[0]+s/2,o[1]+l/2]}var u=0,c=0,h=this.latLabelPosition_<.5,d=this.projection_.getExtent(),f=(0,D.dz)(d);this.getSource().getWrapX()&&this.projection_.canWrapX()&&!(0,D.r4)(d,i)&&(u=Math.floor((i[0]-d[0])/f),c=Math.ceil((i[2]-d[2])/f),h=h!==Math.abs(e)>Math.PI/2);for(var g=function(t){if(!(t.context instanceof CanvasRenderingContext2D))throw new Error("Only works for render events from Canvas 2D layers");var e,n=t.inversePixelTransform[0],r=t.frameState,i=(0,G.Jp)(t.inversePixelTransform.slice(),r.coordinateToPixelTransform),o=(0,B.se)(r.viewState.resolution,n),a=(0,p.getUserProjection)();return a&&(e=(0,p.getTransformFromProjections)(a,r.viewState.projection)),new j.Z(t.context,n,r.extent,i,r.viewState.rotation,o,e)}(t),m=u;m<=c;++m){var y=this.meridians_.length+this.parallels_.length,v=void 0,_=void 0,b=void 0,w=void 0;if(this.meridiansLabels_)for(_=0,b=this.meridiansLabels_.length;_<b;++_){var x=this.meridians_[_];e||0!==m?((S=x.clone()).translate(m*f,0),S.rotate(-e,o),(w=this.getMeridianPoint_(S,a,_)).rotate(e,o)):w=this.getMeridianPoint_(x,i,_),(v=this.featurePool_[y++]).setGeometry(w),v.set("graticule_label",this.meridiansLabels_[_].text),g.drawFeature(v,this.lonLabelStyle_(v))}if(this.parallelsLabels_&&(m===u&&h||m===c&&!h))for(_=0,b=this.parallels_.length;_<b;++_){var S;x=this.parallels_[_],e||0!==m?((S=x.clone()).translate(m*f,0),S.rotate(-e,o),(w=this.getParallelPoint_(S,a,_)).rotate(e,o)):w=this.getParallelPoint_(x,i,_),(v=this.featurePool_[y++]).setGeometry(w),v.set("graticule_label",this.parallelsLabels_[_].text),g.drawFeature(v,this.latLabelStyle_(v))}}},e.prototype.createGraticule_=function(t,e,n,r){var i=this.getInterval_(n);if(-1==i)return this.meridians_.length=0,this.parallels_.length=0,this.meridiansLabels_&&(this.meridiansLabels_.length=0),void(this.parallelsLabels_&&(this.parallelsLabels_.length=0));var o=!1,a=this.projection_.getExtent(),s=(0,D.dz)(a);this.getSource().getWrapX()&&this.projection_.canWrapX()&&!(0,D.r4)(a,t)&&((0,D.dz)(t)>=s?(t[0]=a[0],t[2]=a[2]):o=!0);var l=[(0,d.uZ)(e[0],this.minX_,this.maxX_),(0,d.uZ)(e[1],this.minY_,this.maxY_)],u=this.toLonLatTransform_(l);isNaN(u[1])&&(u[1]=Math.abs(this.maxLat_)>=Math.abs(this.minLat_)?this.maxLat_:this.minLat_);var c,h,p,f,g=(0,d.uZ)(u[0],this.minLon_,this.maxLon_),m=(0,d.uZ)(u[1],this.minLat_,this.maxLat_),y=this.maxLines_,v=t;o||(v=[(0,d.uZ)(t[0],this.minX_,this.maxX_),(0,d.uZ)(t[1],this.minY_,this.maxY_),(0,d.uZ)(t[2],this.minX_,this.maxX_),(0,d.uZ)(t[3],this.minY_,this.maxY_)]);var _=(0,D.Ne)(v,this.toLonLatTransform_,void 0,8),b=_[3],w=_[2],x=_[1],S=_[0];if(o||((0,D.b8)(v,this.bottomLeft_)&&(S=this.minLon_,x=this.minLat_),(0,D.b8)(v,this.bottomRight_)&&(w=this.maxLon_,x=this.minLat_),(0,D.b8)(v,this.topLeft_)&&(S=this.minLon_,b=this.maxLat_),(0,D.b8)(v,this.topRight_)&&(w=this.maxLon_,b=this.maxLat_),b=(0,d.uZ)(b,m,this.maxLat_),w=(0,d.uZ)(w,g,this.maxLon_),x=(0,d.uZ)(x,this.minLat_,m),S=(0,d.uZ)(S,this.minLon_,g)),g=Math.floor(g/i)*i,f=(0,d.uZ)(g,this.minLon_,this.maxLon_),h=this.addMeridian_(f,x,b,r,t,0),c=0,o)for(;(f-=i)>=S&&c++<y;)h=this.addMeridian_(f,x,b,r,t,h);else for(;f!=this.minLon_&&c++<y;)f=Math.max(f-i,this.minLon_),h=this.addMeridian_(f,x,b,r,t,h);if(f=(0,d.uZ)(g,this.minLon_,this.maxLon_),c=0,o)for(;(f+=i)<=w&&c++<y;)h=this.addMeridian_(f,x,b,r,t,h);else for(;f!=this.maxLon_&&c++<y;)f=Math.min(f+i,this.maxLon_),h=this.addMeridian_(f,x,b,r,t,h);for(this.meridians_.length=h,this.meridiansLabels_&&(this.meridiansLabels_.length=h),m=Math.floor(m/i)*i,p=(0,d.uZ)(m,this.minLat_,this.maxLat_),h=this.addParallel_(p,S,w,r,t,0),c=0;p!=this.minLat_&&c++<y;)p=Math.max(p-i,this.minLat_),h=this.addParallel_(p,S,w,r,t,h);for(p=(0,d.uZ)(m,this.minLat_,this.maxLat_),c=0;p!=this.maxLat_&&c++<y;)p=Math.min(p+i,this.maxLat_),h=this.addParallel_(p,S,w,r,t,h);this.parallels_.length=h,this.parallelsLabels_&&(this.parallelsLabels_.length=h)},e.prototype.getInterval_=function(t){for(var e=this.projectionCenterLonLat_[0],n=this.projectionCenterLonLat_[1],r=-1,i=Math.pow(this.targetSize_*t,2),o=[],a=[],s=0,l=this.intervals_.length;s<l;++s){var u=(0,d.uZ)(this.intervals_[s]/2,0,90),c=(0,d.uZ)(n,-90+u,90-u);if(o[0]=e-u,o[1]=c-u,a[0]=e+u,a[1]=c+u,this.fromLonLatTransform_(o,o),this.fromLonLatTransform_(a,a),Math.pow(a[0]-o[0],2)+Math.pow(a[1]-o[1],2)<=i)break;r=this.intervals_[s]}return r},e.prototype.getMeridian_=function(t,e,n,r,i){var o=function(t,e,n,r,i){var o=(0,p.get)("EPSG:4326");return U((function(r){return[t,e+(n-e)*r]}),(0,p.getTransform)(o,r),i)}(t,e,n,this.projection_,r),a=this.meridians_[i];return a?(a.setFlatCoordinates(T.Z.XY,o),a.changed()):(a=new M.Z(o,T.Z.XY),this.meridians_[i]=a),a},e.prototype.getMeridianPoint_=function(t,e,n){var r=t.getFlatCoordinates(),i=1,o=r.length-1;r[i]>r[o]&&(i=o,o=1);var a=Math.max(e[1],r[i]),s=Math.min(e[3],r[o]),l=(0,d.uZ)(e[1]+Math.abs(e[1]-e[3])*this.lonLabelPosition_,a,s),u=[r[i-1]+(r[o-1]-r[i-1])*(l-r[i])/(r[o]-r[i]),l],c=this.meridiansLabels_[n].geom;return c.setCoordinates(u),c},e.prototype.getMeridians=function(){return this.meridians_},e.prototype.getParallel_=function(t,e,n,r,i){var o=function(t,e,n,r,i){var o=(0,p.get)("EPSG:4326");return U((function(r){return[e+(n-e)*r,t]}),(0,p.getTransform)(o,r),i)}(t,e,n,this.projection_,r),a=this.parallels_[i];return a?(a.setFlatCoordinates(T.Z.XY,o),a.changed()):a=new M.Z(o,T.Z.XY),a},e.prototype.getParallelPoint_=function(t,e,n){var r=t.getFlatCoordinates(),i=0,o=r.length-2;r[i]>r[o]&&(i=o,o=0);var a=Math.max(e[0],r[i]),s=Math.min(e[2],r[o]),l=(0,d.uZ)(e[0]+Math.abs(e[0]-e[2])*this.latLabelPosition_,a,s),u=[l,r[i+1]+(r[o+1]-r[i+1])*(l-r[i])/(r[o]-r[i])],c=this.parallelsLabels_[n].geom;return c.setCoordinates(u),c},e.prototype.getParallels=function(){return this.parallels_},e.prototype.updateProjectionInfo_=function(t){var e=(0,p.get)("EPSG:4326"),n=t.getWorldExtent();this.maxLat_=n[3],this.maxLon_=n[2],this.minLat_=n[1],this.minLon_=n[0];var r=(0,p.getTransform)(t,e);if(this.minLon_<this.maxLon_)this.toLonLatTransform_=r;else{var i=this.minLon_+this.maxLon_/2;this.maxLon_+=360,this.toLonLatTransform_=function(t,e,n){for(var o=n||2,a=r(t,e,o),s=0,l=a.length;s<l;s+=o)a[s]<i&&(a[s]+=360);return a}}this.fromLonLatTransform_=(0,p.getTransform)(e,t);var o=(0,D.Ne)([this.minLon_,this.minLat_,this.maxLon_,this.maxLat_],this.fromLonLatTransform_,void 0,8);this.minX_=o[0],this.maxX_=o[2],this.minY_=o[1],this.maxY_=o[3],this.bottomLeft_=this.fromLonLatTransform_([this.minLon_,this.minLat_]),this.bottomRight_=this.fromLonLatTransform_([this.maxLon_,this.minLat_]),this.topLeft_=this.fromLonLatTransform_([this.minLon_,this.maxLat_]),this.topRight_=this.fromLonLatTransform_([this.maxLon_,this.maxLat_]),this.projectionCenterLonLat_=this.toLonLatTransform_((0,D.qg)(t.getExtent())),isNaN(this.projectionCenterLonLat_[1])&&(this.projectionCenterLonLat_[1]=Math.abs(this.maxLat_)>=Math.abs(this.minLat_)?this.maxLat_:this.minLat_),this.projection_=t},e}(F.default);var X=n(1667),K=n(5078),Y=n(4271),Q=n(6487),$=n(9767),J=n(456),tt=n(7727),et=n(7146),nt=n(2865),rt=n(7093),it=n(2270),ot=n(2353),at=n(5069),st=n(1403),lt=n(4111),ut=n(6462),ct=n(291),ht=n(33),pt=n(6087),dt=n(2637)},8298:(t,e,n)=>{"use strict";n.r(e),n.d(e,{DoubleClickZoom:()=>d,DragAndDrop:()=>tt,DragBox:()=>R,DragPan:()=>w,DragRotate:()=>C,DragRotateAndZoom:()=>nt,DragZoom:()=>L,Draw:()=>St,Extent:()=>Mt,Interaction:()=>c,KeyboardPan:()=>D,KeyboardZoom:()=>Z,Modify:()=>Vt,MouseWheelZoom:()=>q,PinchRotate:()=>H,PinchZoom:()=>K,Pointer:()=>m,Select:()=>Kt,Snap:()=>Jt,Translate:()=>ne,defaults:()=>re});var r=n(3537),i=n(6414);const o="active";var a,s=n(7898),l=(a=function(t,e){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},a(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});function u(t,e,n,r){var i=t.getZoom();if(void 0!==i){var o=t.getConstrainedZoom(i+e),a=t.getResolutionForZoom(o);t.getAnimating()&&t.cancelAnimations(),t.animate({resolution:a,anchor:n,duration:void 0!==r?r:250,easing:s.Vv})}}const c=function(t){function e(e){var n=t.call(this)||this;return n.on,n.once,n.un,e&&e.handleEvent&&(n.handleEvent=e.handleEvent),n.map_=null,n.setActive(!0),n}return l(e,t),e.prototype.getActive=function(){return this.get(o)},e.prototype.getMap=function(){return this.map_},e.prototype.handleEvent=function(t){return!0},e.prototype.setActive=function(t){this.set(o,t)},e.prototype.setMap=function(t){this.map_=t},e}(i.Z);var h=n(4161),p=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const d=function(t){function e(e){var n=t.call(this)||this,r=e||{};return n.delta_=r.delta?r.delta:1,n.duration_=void 0!==r.duration?r.duration:250,n}return p(e,t),e.prototype.handleEvent=function(t){var e=!1;if(t.type==h.Z.DBLCLICK){var n=t.originalEvent,r=t.map,i=t.coordinate,o=n.shiftKey?-this.delta_:this.delta_;u(r.getView(),o,i,this.duration_),n.preventDefault(),e=!0}return!e},e}(c);var f=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function g(t){for(var e=t.length,n=0,r=0,i=0;i<e;i++)n+=t[i].clientX,r+=t[i].clientY;return[n/e,r/e]}const m=function(t){function e(e){var n=this,r=e||{};return n=t.call(this,r)||this,r.handleDownEvent&&(n.handleDownEvent=r.handleDownEvent),r.handleDragEvent&&(n.handleDragEvent=r.handleDragEvent),r.handleMoveEvent&&(n.handleMoveEvent=r.handleMoveEvent),r.handleUpEvent&&(n.handleUpEvent=r.handleUpEvent),r.stopDown&&(n.stopDown=r.stopDown),n.handlingDownUpSequence=!1,n.targetPointers=[],n}return f(e,t),e.prototype.getPointerCount=function(){return this.targetPointers.length},e.prototype.handleDownEvent=function(t){return!1},e.prototype.handleDragEvent=function(t){},e.prototype.handleEvent=function(t){if(!t.originalEvent)return!0;var e=!1;if(this.updateTrackedPointers_(t),this.handlingDownUpSequence){if(t.type==h.Z.POINTERDRAG)this.handleDragEvent(t),t.originalEvent.preventDefault();else if(t.type==h.Z.POINTERUP){var n=this.handleUpEvent(t);this.handlingDownUpSequence=n&&this.targetPointers.length>0}}else if(t.type==h.Z.POINTERDOWN){var r=this.handleDownEvent(t);this.handlingDownUpSequence=r,e=this.stopDown(r)}else t.type==h.Z.POINTERMOVE&&this.handleMoveEvent(t);return!e},e.prototype.handleMoveEvent=function(t){},e.prototype.handleUpEvent=function(t){return!1},e.prototype.stopDown=function(t){return t},e.prototype.updateTrackedPointers_=function(t){t.activePointers&&(this.targetPointers=t.activePointers)},e}(c);var y=n(6764),v=n(122),_=n(2253),b=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const w=function(t){function e(e){var n=t.call(this,{stopDown:y.Dv})||this,r=e||{};n.kinetic_=r.kinetic,n.lastCentroid=null,n.lastPointersCount_,n.panning_=!1;var i=r.condition?r.condition:(0,v.all)(v.noModifierKeys,v.primaryAction);return n.condition_=r.onFocusOnly?(0,v.all)(v.focusWithTabindex,i):i,n.noKinetic_=!1,n}return b(e,t),e.prototype.handleDragEvent=function(t){this.panning_||(this.panning_=!0,this.getMap().getView().beginInteraction());var e=this.targetPointers,n=g(e);if(e.length==this.lastPointersCount_){if(this.kinetic_&&this.kinetic_.update(n[0],n[1]),this.lastCentroid){var r=[this.lastCentroid[0]-n[0],n[1]-this.lastCentroid[1]],i=t.map.getView();(0,_.bA)(r,i.getResolution()),(0,_.U1)(r,i.getRotation()),i.adjustCenterInternal(r)}}else this.kinetic_&&this.kinetic_.begin();this.lastCentroid=n,this.lastPointersCount_=e.length,t.originalEvent.preventDefault()},e.prototype.handleUpEvent=function(t){var e=t.map,n=e.getView();if(0===this.targetPointers.length){if(!this.noKinetic_&&this.kinetic_&&this.kinetic_.end()){var r=this.kinetic_.getDistance(),i=this.kinetic_.getAngle(),o=n.getCenterInternal(),a=e.getPixelFromCoordinateInternal(o),l=e.getCoordinateFromPixelInternal([a[0]-r*Math.cos(i),a[1]-r*Math.sin(i)]);n.animateInternal({center:n.getConstrainedCenter(l),duration:500,easing:s.Vv})}return this.panning_&&(this.panning_=!1,n.endInteraction()),!1}return this.kinetic_&&this.kinetic_.begin(),this.lastCentroid=null,!0},e.prototype.handleDownEvent=function(t){if(this.targetPointers.length>0&&this.condition_(t)){var e=t.map.getView();return this.lastCentroid=null,e.getAnimating()&&e.cancelAnimations(),this.kinetic_&&this.kinetic_.begin(),this.noKinetic_=this.targetPointers.length>1,!0}return!1},e}(m);var x=n(2758),S=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const C=function(t){function e(e){var n=this,r=e||{};return(n=t.call(this,{stopDown:y.Dv})||this).condition_=r.condition?r.condition:v.altShiftKeysOnly,n.lastAngle_=void 0,n.duration_=void 0!==r.duration?r.duration:250,n}return S(e,t),e.prototype.handleDragEvent=function(t){if((0,v.mouseOnly)(t)){var e=t.map,n=e.getView();if(n.getConstraints().rotation!==x.h$){var r=e.getSize(),i=t.pixel,o=Math.atan2(r[1]/2-i[1],i[0]-r[0]/2);if(void 0!==this.lastAngle_){var a=o-this.lastAngle_;n.adjustRotationInternal(-a)}this.lastAngle_=o}}},e.prototype.handleUpEvent=function(t){return!(0,v.mouseOnly)(t)||(t.map.getView().endInteraction(this.duration_),!1)},e.prototype.handleDownEvent=function(t){return!(!(0,v.mouseOnly)(t)||!(0,v.mouseActionButton)(t)||!this.condition_(t)||(t.map.getView().beginInteraction(),this.lastAngle_=void 0,0))},e}(m);var E=n(9025),k=n(5466),A=n(5098),P=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const T=function(t){function e(e){var n=t.call(this)||this;return n.geometry_=null,n.element_=document.createElement("div"),n.element_.style.position="absolute",n.element_.style.pointerEvents="auto",n.element_.className="ol-box "+e,n.map_=null,n.startPixel_=null,n.endPixel_=null,n}return P(e,t),e.prototype.disposeInternal=function(){this.setMap(null)},e.prototype.render_=function(){var t=this.startPixel_,e=this.endPixel_,n="px",r=this.element_.style;r.left=Math.min(t[0],e[0])+n,r.top=Math.min(t[1],e[1])+n,r.width=Math.abs(e[0]-t[0])+n,r.height=Math.abs(e[1]-t[1])+n},e.prototype.setMap=function(t){if(this.map_){this.map_.getOverlayContainer().removeChild(this.element_);var e=this.element_.style;e.left="inherit",e.top="inherit",e.width="inherit",e.height="inherit"}this.map_=t,this.map_&&this.map_.getOverlayContainer().appendChild(this.element_)},e.prototype.setPixels=function(t,e){this.startPixel_=t,this.endPixel_=e,this.createOrUpdateGeometry(),this.render_()},e.prototype.createOrUpdateGeometry=function(){var t=this.startPixel_,e=this.endPixel_,n=[t,[t[0],e[1]],e,[e[0],t[1]]].map(this.map_.getCoordinateFromPixelInternal,this.map_);n[4]=n[0].slice(),this.geometry_?this.geometry_.setCoordinates([n]):this.geometry_=new A.ZP([n])},e.prototype.getGeometry=function(){return this.geometry_},e}(k.Z);var M=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),O=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.coordinate=n,i.mapBrowserEvent=r,i}return M(e,t),e}(E.ZP);const R=function(t){function e(e){var n=t.call(this)||this;n.on,n.once,n.un;var r=e||{};return n.box_=new T(r.className||"ol-dragbox"),n.minArea_=void 0!==r.minArea?r.minArea:64,r.onBoxEnd&&(n.onBoxEnd=r.onBoxEnd),n.startPixel_=null,n.condition_=r.condition?r.condition:v.mouseActionButton,n.boxEndCondition_=r.boxEndCondition?r.boxEndCondition:n.defaultBoxEndCondition,n}return M(e,t),e.prototype.defaultBoxEndCondition=function(t,e,n){var r=n[0]-e[0],i=n[1]-e[1];return r*r+i*i>=this.minArea_},e.prototype.getGeometry=function(){return this.box_.getGeometry()},e.prototype.handleDragEvent=function(t){this.box_.setPixels(this.startPixel_,t.pixel),this.dispatchEvent(new O("boxdrag",t.coordinate,t))},e.prototype.handleUpEvent=function(t){this.box_.setMap(null);var e=this.boxEndCondition_(t,this.startPixel_,t.pixel);return e&&this.onBoxEnd(t),this.dispatchEvent(new O(e?"boxend":"boxcancel",t.coordinate,t)),!1},e.prototype.handleDownEvent=function(t){return!!this.condition_(t)&&(this.startPixel_=t.pixel,this.box_.setMap(t.map),this.box_.setPixels(this.startPixel_,this.startPixel_),this.dispatchEvent(new O("boxstart",t.coordinate,t)),!0)},e.prototype.onBoxEnd=function(t){},e}(m);var I=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const L=function(t){function e(e){var n=this,r=e||{},i=r.condition?r.condition:v.shiftKeyOnly;return(n=t.call(this,{condition:i,className:r.className||"ol-dragzoom",minArea:r.minArea})||this).duration_=void 0!==r.duration?r.duration:200,n.out_=void 0!==r.out&&r.out,n}return I(e,t),e.prototype.onBoxEnd=function(t){var e=this.getMap().getView(),n=this.getGeometry();if(this.out_){var r=e.rotatedExtentForGeometry(n),i=e.getResolutionForExtentInternal(r),o=e.getResolution()/i;(n=n.clone()).scale(o*o)}e.fitInternal(n,{duration:this.duration_,easing:s.Vv})},e}(R);var F=n(2001);var N=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const D=function(t){function e(e){var n=t.call(this)||this,r=e||{};return n.defaultCondition_=function(t){return(0,v.noModifierKeys)(t)&&(0,v.targetNotEditable)(t)},n.condition_=void 0!==r.condition?r.condition:n.defaultCondition_,n.duration_=void 0!==r.duration?r.duration:100,n.pixelDelta_=void 0!==r.pixelDelta?r.pixelDelta:128,n}return N(e,t),e.prototype.handleEvent=function(t){var e=!1;if(t.type==F.Z.KEYDOWN){var n=t.originalEvent,r=n.keyCode;if(this.condition_(t)&&(40==r||37==r||39==r||38==r)){var i=t.map.getView(),o=i.getResolution()*this.pixelDelta_,a=0,l=0;40==r?l=-o:37==r?a=-o:39==r?a=o:l=o;var u=[a,l];(0,_.U1)(u,i.getRotation()),function(t,e,n){var r=t.getCenterInternal();if(r){var i=[r[0]+e[0],r[1]+e[1]];t.animateInternal({duration:void 0!==n?n:250,easing:s.GE,center:t.getConstrainedCenter(i)})}}(i,u,this.duration_),n.preventDefault(),e=!0}}return!e},e}(c);var z=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Z=function(t){function e(e){var n=t.call(this)||this,r=e||{};return n.condition_=r.condition?r.condition:v.targetNotEditable,n.delta_=r.delta?r.delta:1,n.duration_=void 0!==r.duration?r.duration:100,n}return z(e,t),e.prototype.handleEvent=function(t){var e=!1;if(t.type==F.Z.KEYDOWN||t.type==F.Z.KEYPRESS){var n=t.originalEvent,r=n.charCode;if(this.condition_(t)&&(r=="+".charCodeAt(0)||r=="-".charCodeAt(0))){var i=t.map,o=r=="+".charCodeAt(0)?this.delta_:-this.delta_;u(i.getView(),o,void 0,this.duration_),n.preventDefault(),e=!0}}return!e},e}(c);var j=n(9767),G=n(7119),B=n(8007),U=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),V="trackpad";const q=function(t){function e(e){var n=this,r=e||{};(n=t.call(this,r)||this).totalDelta_=0,n.lastDelta_=0,n.maxDelta_=void 0!==r.maxDelta?r.maxDelta:1,n.duration_=void 0!==r.duration?r.duration:250,n.timeout_=void 0!==r.timeout?r.timeout:80,n.useAnchor_=void 0===r.useAnchor||r.useAnchor,n.constrainResolution_=void 0!==r.constrainResolution&&r.constrainResolution;var i=r.condition?r.condition:v.always;return n.condition_=r.onFocusOnly?(0,v.all)(v.focusWithTabindex,i):i,n.lastAnchor_=null,n.startTime_=void 0,n.timeoutId_,n.mode_=void 0,n.trackpadEventGap_=400,n.trackpadTimeoutId_,n.deltaPerZoom_=300,n}return U(e,t),e.prototype.endInteraction_=function(){this.trackpadTimeoutId_=void 0;var t=this.getMap();t&&t.getView().endInteraction(void 0,this.lastDelta_?this.lastDelta_>0?1:-1:0,this.lastAnchor_)},e.prototype.handleEvent=function(t){if(!this.condition_(t))return!0;if(t.type!==F.Z.WHEEL)return!0;var e,n=t.map,r=t.originalEvent;if(r.preventDefault(),this.useAnchor_&&(this.lastAnchor_=t.coordinate),t.type==F.Z.WHEEL&&(e=r.deltaY,G.V&&r.deltaMode===WheelEvent.DOM_DELTA_PIXEL&&(e/=G.MP),r.deltaMode===WheelEvent.DOM_DELTA_LINE&&(e*=40)),0===e)return!1;this.lastDelta_=e;var i=Date.now();void 0===this.startTime_&&(this.startTime_=i),(!this.mode_||i-this.startTime_>this.trackpadEventGap_)&&(this.mode_=Math.abs(e)<4?V:"wheel");var o=n.getView();if(this.mode_===V&&!o.getConstrainResolution()&&!this.constrainResolution_)return this.trackpadTimeoutId_?clearTimeout(this.trackpadTimeoutId_):(o.getAnimating()&&o.cancelAnimations(),o.beginInteraction()),this.trackpadTimeoutId_=setTimeout(this.endInteraction_.bind(this),this.timeout_),o.adjustZoom(-e/this.deltaPerZoom_,this.lastAnchor_),this.startTime_=i,!1;this.totalDelta_+=e;var a=Math.max(this.timeout_-(i-this.startTime_),0);return clearTimeout(this.timeoutId_),this.timeoutId_=setTimeout(this.handleWheelZoom_.bind(this,n),a),!1},e.prototype.handleWheelZoom_=function(t){var e=t.getView();e.getAnimating()&&e.cancelAnimations();var n=-(0,B.uZ)(this.totalDelta_,-this.maxDelta_*this.deltaPerZoom_,this.maxDelta_*this.deltaPerZoom_)/this.deltaPerZoom_;(e.getConstrainResolution()||this.constrainResolution_)&&(n=n?n>0?1:-1:0),u(e,n,this.lastAnchor_,this.duration_),this.mode_=void 0,this.totalDelta_=0,this.lastAnchor_=null,this.startTime_=void 0,this.timeoutId_=void 0},e.prototype.setMouseAnchor=function(t){this.useAnchor_=t,t||(this.lastAnchor_=null)},e}(c);var W=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const H=function(t){function e(e){var n=this,r=e||{},i=r;return i.stopDown||(i.stopDown=y.Dv),(n=t.call(this,i)||this).anchor_=null,n.lastAngle_=void 0,n.rotating_=!1,n.rotationDelta_=0,n.threshold_=void 0!==r.threshold?r.threshold:.3,n.duration_=void 0!==r.duration?r.duration:250,n}return W(e,t),e.prototype.handleDragEvent=function(t){var e=0,n=this.targetPointers[0],r=this.targetPointers[1],i=Math.atan2(r.clientY-n.clientY,r.clientX-n.clientX);if(void 0!==this.lastAngle_){var o=i-this.lastAngle_;this.rotationDelta_+=o,!this.rotating_&&Math.abs(this.rotationDelta_)>this.threshold_&&(this.rotating_=!0),e=o}this.lastAngle_=i;var a=t.map,s=a.getView();if(s.getConstraints().rotation!==x.h$){var l=a.getViewport().getBoundingClientRect(),u=g(this.targetPointers);u[0]-=l.left,u[1]-=l.top,this.anchor_=a.getCoordinateFromPixelInternal(u),this.rotating_&&(a.render(),s.adjustRotationInternal(e,this.anchor_))}},e.prototype.handleUpEvent=function(t){return!(this.targetPointers.length<2&&(t.map.getView().endInteraction(this.duration_),1))},e.prototype.handleDownEvent=function(t){if(this.targetPointers.length>=2){var e=t.map;return this.anchor_=null,this.lastAngle_=void 0,this.rotating_=!1,this.rotationDelta_=0,this.handlingDownUpSequence||e.getView().beginInteraction(),!0}return!1},e}(m);var X=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const K=function(t){function e(e){var n=this,r=e||{},i=r;return i.stopDown||(i.stopDown=y.Dv),(n=t.call(this,i)||this).anchor_=null,n.duration_=void 0!==r.duration?r.duration:400,n.lastDistance_=void 0,n.lastScaleDelta_=1,n}return X(e,t),e.prototype.handleDragEvent=function(t){var e=1,n=this.targetPointers[0],r=this.targetPointers[1],i=n.clientX-r.clientX,o=n.clientY-r.clientY,a=Math.sqrt(i*i+o*o);void 0!==this.lastDistance_&&(e=this.lastDistance_/a),this.lastDistance_=a;var s=t.map,l=s.getView();1!=e&&(this.lastScaleDelta_=e);var u=s.getViewport().getBoundingClientRect(),c=g(this.targetPointers);c[0]-=u.left,c[1]-=u.top,this.anchor_=s.getCoordinateFromPixelInternal(c),s.render(),l.adjustResolutionInternal(e,this.anchor_)},e.prototype.handleUpEvent=function(t){if(this.targetPointers.length<2){var e=t.map.getView(),n=this.lastScaleDelta_>1?1:-1;return e.endInteraction(this.duration_,n),!1}return!0},e.prototype.handleDownEvent=function(t){if(this.targetPointers.length>=2){var e=t.map;return this.anchor_=null,this.lastDistance_=void 0,this.lastScaleDelta_=1,this.handlingDownUpSequence||e.getView().beginInteraction(),!0}return!1},e}(m);var Y=n(6162),Q=n(8196),$=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),J=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.features=r,o.file=n,o.projection=i,o}return $(e,t),e}(E.ZP);const tt=function(t){function e(e){var n=this,r=e||{};(n=t.call(this,{handleEvent:y.uX})||this).on,n.once,n.un,n.readAsBuffer_=!1,n.formats_=[];for(var i=r.formatConstructors?r.formatConstructors:[],o=0,a=i.length;o<a;++o){var s=i[o];"function"==typeof s&&(s=new s),n.formats_.push(s),n.readAsBuffer_=n.readAsBuffer_||"arraybuffer"===s.getType()}return n.projection_=r.projection?(0,Y.get)(r.projection):null,n.dropListenKeys_=null,n.source_=r.source||null,n.target=r.target?r.target:null,n}return $(e,t),e.prototype.handleResult_=function(t,e){var n,r=e.target.result,i=this.getMap(),o=this.projection_;o||(o=i.getView().getProjection());for(var a=this.formats_,s=0,l=a.length;s<l;++s){var u=a[s],c=r;this.readAsBuffer_&&"arraybuffer"!==u.getType()&&(void 0===n&&(n=(new TextDecoder).decode(r)),c=n);var h=this.tryReadFeatures_(u,c,{featureProjection:o});if(h&&h.length>0){this.source_&&(this.source_.clear(),this.source_.addFeatures(h)),this.dispatchEvent(new J("addfeatures",t,h,o));break}}},e.prototype.registerListeners_=function(){var t=this.getMap();if(t){var e=this.target?this.target:t.getViewport();this.dropListenKeys_=[(0,Q.oL)(e,F.Z.DROP,this.handleDrop,this),(0,Q.oL)(e,F.Z.DRAGENTER,this.handleStop,this),(0,Q.oL)(e,F.Z.DRAGOVER,this.handleStop,this),(0,Q.oL)(e,F.Z.DROP,this.handleStop,this)]}},e.prototype.setActive=function(e){!this.getActive()&&e&&this.registerListeners_(),this.getActive()&&!e&&this.unregisterListeners_(),t.prototype.setActive.call(this,e)},e.prototype.setMap=function(e){this.unregisterListeners_(),t.prototype.setMap.call(this,e),this.getActive()&&this.registerListeners_()},e.prototype.tryReadFeatures_=function(t,e,n){try{return t.readFeatures(e,n)}catch(t){return null}},e.prototype.unregisterListeners_=function(){this.dropListenKeys_&&(this.dropListenKeys_.forEach(Q.bN),this.dropListenKeys_=null)},e.prototype.handleDrop=function(t){for(var e=t.dataTransfer.files,n=0,r=e.length;n<r;++n){var i=e.item(n),o=new FileReader;o.addEventListener(F.Z.LOAD,this.handleResult_.bind(this,i)),this.readAsBuffer_?o.readAsArrayBuffer(i):o.readAsText(i)}},e.prototype.handleStop=function(t){t.stopPropagation(),t.preventDefault(),t.dataTransfer.dropEffect="copy"},e}(c);var et=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const nt=function(t){function e(e){var n=this,r=e||{};return(n=t.call(this,r)||this).condition_=r.condition?r.condition:v.shiftKeyOnly,n.lastAngle_=void 0,n.lastMagnitude_=void 0,n.lastScaleDelta_=0,n.duration_=void 0!==r.duration?r.duration:400,n}return et(e,t),e.prototype.handleDragEvent=function(t){if((0,v.mouseOnly)(t)){var e=t.map,n=e.getSize(),r=t.pixel,i=r[0]-n[0]/2,o=n[1]/2-r[1],a=Math.atan2(o,i),s=Math.sqrt(i*i+o*o),l=e.getView();if(void 0!==this.lastAngle_){var u=this.lastAngle_-a;l.adjustRotationInternal(u)}this.lastAngle_=a,void 0!==this.lastMagnitude_&&l.adjustResolutionInternal(this.lastMagnitude_/s),void 0!==this.lastMagnitude_&&(this.lastScaleDelta_=this.lastMagnitude_/s),this.lastMagnitude_=s}},e.prototype.handleUpEvent=function(t){if(!(0,v.mouseOnly)(t))return!0;var e=t.map.getView(),n=this.lastScaleDelta_>1?1:-1;return e.endInteraction(this.duration_,n),this.lastScaleDelta_=0,!1},e.prototype.handleDownEvent=function(t){return!!(0,v.mouseOnly)(t)&&!!this.condition_(t)&&(t.map.getView().beginInteraction(),this.lastAngle_=void 0,this.lastMagnitude_=void 0,!0)},e}(m);var rt=n(985),it=n(2540),ot=n(8359),at=n(1584),st=n(7727),lt=n(8483),ut=n(3802),ct=n(3656),ht=n(971),pt=n(7325),dt=n(5792),ft=n(1457),gt=n(6216),mt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),yt="Point",vt="LineString",_t="Polygon",bt="Circle",wt="drawstart",xt=function(t){function e(e,n){var r=t.call(this,e)||this;return r.feature=n,r}return mt(e,t),e}(E.ZP);const St=function(t){function e(e){var n=this,r=e;r.stopDown||(r.stopDown=y.Dv),(n=t.call(this,r)||this).on,n.once,n.un,n.shouldHandle_=!1,n.downPx_=null,n.downTimeout_,n.lastDragTime_,n.pointerType_,n.freehand_=!1,n.source_=e.source?e.source:null,n.features_=e.features?e.features:null,n.snapTolerance_=e.snapTolerance?e.snapTolerance:12,n.type_=e.type,n.mode_=function(t){switch(t){case"Point":case"MultiPoint":return yt;case"LineString":case"MultiLineString":return vt;case"Polygon":case"MultiPolygon":return _t;case"Circle":return bt;default:throw new Error("Invalid type: "+t)}}(n.type_),n.stopClick_=!!e.stopClick,n.minPoints_=e.minPoints?e.minPoints:n.mode_===_t?3:2,n.maxPoints_=n.mode_===bt?2:e.maxPoints?e.maxPoints:1/0,n.finishCondition_=e.finishCondition?e.finishCondition:y.uX,n.geometryLayout_=e.geometryLayout?e.geometryLayout:ot.Z.XY;var i,a=e.geometryFunction;if(!a){var s,l=n.mode_;l===bt?a=function(t,e,n){var r=e||new rt.Z([NaN,NaN]),i=(0,Y.fromUserCoordinate)(t[0],n),o=(0,_.bI)(i,(0,Y.fromUserCoordinate)(t[t.length-1],n));r.setCenterAndRadius(i,Math.sqrt(o),this.geometryLayout_);var a=(0,Y.getUserProjection)();return a&&r.transform(n,a),r}:(l===yt?s=ht.Z:l===vt?s=at.Z:l===_t&&(s=A.ZP),a=function(t,e,n){return e?l===_t?t[0].length?e.setCoordinates([t[0].concat([t[0][0]])],this.geometryLayout_):e.setCoordinates([],this.geometryLayout_):e.setCoordinates(t,this.geometryLayout_):e=new s(t,this.geometryLayout_),e})}return n.geometryFunction_=a,n.dragVertexDelay_=void 0!==e.dragVertexDelay?e.dragVertexDelay:500,n.finishCoordinate_=null,n.sketchFeature_=null,n.sketchPoint_=null,n.sketchCoords_=null,n.sketchLine_=null,n.sketchLineCoords_=null,n.squaredClickTolerance_=e.clickTolerance?e.clickTolerance*e.clickTolerance:36,n.overlay_=new pt.default({source:new dt.default({useSpatialIndex:!1,wrapX:!!e.wrapX&&e.wrapX}),style:e.style?e.style:(i=(0,ft.Ly)(),function(t,e){return i[t.getGeometry().getType()]}),updateWhileInteracting:!0}),n.geometryName_=e.geometryName,n.condition_=e.condition?e.condition:v.noModifierKeys,n.freehandCondition_,e.freehand?n.freehandCondition_=v.always:n.freehandCondition_=e.freehandCondition?e.freehandCondition:v.shiftKeyOnly,n.addChangeListener(o,n.updateState_),n}return mt(e,t),e.prototype.setMap=function(e){t.prototype.setMap.call(this,e),this.updateState_()},e.prototype.getOverlay=function(){return this.overlay_},e.prototype.handleEvent=function(e){e.originalEvent.type===F.Z.CONTEXTMENU&&e.originalEvent.preventDefault(),this.freehand_=this.mode_!==yt&&this.freehandCondition_(e);var n=e.type===h.Z.POINTERMOVE,r=!0;return!this.freehand_&&this.lastDragTime_&&e.type===h.Z.POINTERDRAG&&(Date.now()-this.lastDragTime_>=this.dragVertexDelay_?(this.downPx_=e.pixel,this.shouldHandle_=!this.freehand_,n=!0):this.lastDragTime_=void 0,this.shouldHandle_&&void 0!==this.downTimeout_&&(clearTimeout(this.downTimeout_),this.downTimeout_=void 0)),this.freehand_&&e.type===h.Z.POINTERDRAG&&null!==this.sketchFeature_?(this.addToDrawing_(e.coordinate),r=!1):this.freehand_&&e.type===h.Z.POINTERDOWN?r=!1:n&&this.getPointerCount()<2?(r=e.type===h.Z.POINTERMOVE)&&this.freehand_?(this.handlePointerMove_(e),this.shouldHandle_&&e.originalEvent.preventDefault()):("mouse"===e.originalEvent.pointerType||e.type===h.Z.POINTERDRAG&&void 0===this.downTimeout_)&&this.handlePointerMove_(e):e.type===h.Z.DBLCLICK&&(r=!1),t.prototype.handleEvent.call(this,e)&&r},e.prototype.handleDownEvent=function(t){return this.shouldHandle_=!this.freehand_,this.freehand_?(this.downPx_=t.pixel,this.finishCoordinate_||this.startDrawing_(t.coordinate),!0):this.condition_(t)?(this.lastDragTime_=Date.now(),this.downTimeout_=setTimeout(function(){this.handlePointerMove_(new st.Z(h.Z.POINTERMOVE,t.map,t.originalEvent,!1,t.frameState))}.bind(this),this.dragVertexDelay_),this.downPx_=t.pixel,!0):(this.lastDragTime_=void 0,!1)},e.prototype.handleUpEvent=function(t){var e=!0;if(0===this.getPointerCount())if(this.downTimeout_&&(clearTimeout(this.downTimeout_),this.downTimeout_=void 0),this.handlePointerMove_(t),this.shouldHandle_){var n=!this.finishCoordinate_;n&&this.startDrawing_(t.coordinate),!n&&this.freehand_?this.finishDrawing():this.freehand_||n&&this.mode_!==yt||(this.atFinish_(t.pixel)?this.finishCondition_(t)&&this.finishDrawing():this.addToDrawing_(t.coordinate)),e=!1}else this.freehand_&&this.abortDrawing();return!e&&this.stopClick_&&t.preventDefault(),e},e.prototype.handlePointerMove_=function(t){if(this.pointerType_=t.originalEvent.pointerType,this.downPx_&&(!this.freehand_&&this.shouldHandle_||this.freehand_&&!this.shouldHandle_)){var e=this.downPx_,n=t.pixel,r=e[0]-n[0],i=e[1]-n[1],o=r*r+i*i;if(this.shouldHandle_=this.freehand_?o>this.squaredClickTolerance_:o<=this.squaredClickTolerance_,!this.shouldHandle_)return}this.finishCoordinate_?this.modifyDrawing_(t.coordinate):this.createOrUpdateSketchPoint_(t.coordinate.slice())},e.prototype.atFinish_=function(t){var e=!1;if(this.sketchFeature_){var n=!1,r=[this.finishCoordinate_],i=this.mode_;if(i===yt)e=!0;else if(i===bt)e=2===this.sketchCoords_.length;else if(i===vt)n=this.sketchCoords_.length>this.minPoints_;else if(i===_t){var o=this.sketchCoords_;n=o[0].length>this.minPoints_,r=[o[0][0],o[0][o[0].length-2]]}if(n)for(var a=this.getMap(),s=0,l=r.length;s<l;s++){var u=r[s],c=a.getPixelFromCoordinate(u),h=t[0]-c[0],p=t[1]-c[1],d=this.freehand_?1:this.snapTolerance_;if(e=Math.sqrt(h*h+p*p)<=d){this.finishCoordinate_=u;break}}}return e},e.prototype.createOrUpdateSketchPoint_=function(t){this.sketchPoint_?this.sketchPoint_.getGeometry().setCoordinates(t):(this.sketchPoint_=new it.Z(new ht.Z(t)),this.updateSketchFeatures_())},e.prototype.createOrUpdateCustomSketchLine_=function(t){this.sketchLine_||(this.sketchLine_=new it.Z);var e=t.getLinearRing(0),n=this.sketchLine_.getGeometry();n?(n.setFlatCoordinates(e.getLayout(),e.getFlatCoordinates()),n.changed()):(n=new at.Z(e.getFlatCoordinates(),e.getLayout()),this.sketchLine_.setGeometry(n))},e.prototype.startDrawing_=function(t){for(var e=this.getMap().getView().getProjection(),n=(0,gt.tP)(this.geometryLayout_);t.length<n;)t.push(0);this.finishCoordinate_=t,this.mode_===yt?this.sketchCoords_=t.slice():this.mode_===_t?(this.sketchCoords_=[[t.slice(),t.slice()]],this.sketchLineCoords_=this.sketchCoords_[0]):this.sketchCoords_=[t.slice(),t.slice()],this.sketchLineCoords_&&(this.sketchLine_=new it.Z(new at.Z(this.sketchLineCoords_)));var r=this.geometryFunction_(this.sketchCoords_,void 0,e);this.sketchFeature_=new it.Z,this.geometryName_&&this.sketchFeature_.setGeometryName(this.geometryName_),this.sketchFeature_.setGeometry(r),this.updateSketchFeatures_(),this.dispatchEvent(new xt(wt,this.sketchFeature_))},e.prototype.modifyDrawing_=function(t){for(var e,n,r=this.getMap(),i=this.sketchFeature_.getGeometry(),o=r.getView().getProjection(),a=(0,gt.tP)(this.geometryLayout_);t.length<a;)t.push(0);this.mode_===yt?n=this.sketchCoords_:this.mode_===_t?(n=(e=this.sketchCoords_[0])[e.length-1],this.atFinish_(r.getPixelFromCoordinate(t))&&(t=this.finishCoordinate_.slice())):n=(e=this.sketchCoords_)[e.length-1],n[0]=t[0],n[1]=t[1],this.geometryFunction_(this.sketchCoords_,i,o),this.sketchPoint_&&this.sketchPoint_.getGeometry().setCoordinates(t),"Polygon"===i.getType()&&this.mode_!==_t?this.createOrUpdateCustomSketchLine_(i):this.sketchLineCoords_&&this.sketchLine_.getGeometry().setCoordinates(this.sketchLineCoords_),this.updateSketchFeatures_()},e.prototype.addToDrawing_=function(t){var e,n,r=this.sketchFeature_.getGeometry(),i=this.getMap().getView().getProjection(),o=this.mode_;o===vt||o===bt?(this.finishCoordinate_=t.slice(),(n=this.sketchCoords_).length>=this.maxPoints_&&(this.freehand_?n.pop():e=!0),n.push(t.slice()),this.geometryFunction_(n,r,i)):o===_t&&((n=this.sketchCoords_[0]).length>=this.maxPoints_&&(this.freehand_?n.pop():e=!0),n.push(t.slice()),e&&(this.finishCoordinate_=n[0]),this.geometryFunction_(this.sketchCoords_,r,i)),this.createOrUpdateSketchPoint_(t.slice()),this.updateSketchFeatures_(),e&&this.finishDrawing()},e.prototype.removeLastPoint=function(){if(this.sketchFeature_){var t,e=this.sketchFeature_.getGeometry(),n=this.getMap().getView().getProjection(),r=this.mode_;if(r===vt||r===bt){if((t=this.sketchCoords_).splice(-2,1),t.length>=2){this.finishCoordinate_=t[t.length-2].slice();var i=this.finishCoordinate_.slice();t[t.length-1]=i,this.createOrUpdateSketchPoint_(i)}this.geometryFunction_(t,e,n),"Polygon"===e.getType()&&this.sketchLine_&&this.createOrUpdateCustomSketchLine_(e)}else if(r===_t){(t=this.sketchCoords_[0]).splice(-2,1);var o=this.sketchLine_.getGeometry();t.length>=2&&(i=t[t.length-2].slice(),t[t.length-1]=i,this.createOrUpdateSketchPoint_(i)),o.setCoordinates(t),this.geometryFunction_(this.sketchCoords_,e,n)}1===t.length&&this.abortDrawing(),this.updateSketchFeatures_()}},e.prototype.finishDrawing=function(){var t=this.abortDrawing_();if(t){var e=this.sketchCoords_,n=t.getGeometry(),r=this.getMap().getView().getProjection();this.mode_===vt?(e.pop(),this.geometryFunction_(e,n,r)):this.mode_===_t&&(e[0].pop(),this.geometryFunction_(e,n,r),e=n.getCoordinates()),"MultiPoint"===this.type_?t.setGeometry(new ut.Z([e])):"MultiLineString"===this.type_?t.setGeometry(new lt.Z([e])):"MultiPolygon"===this.type_&&t.setGeometry(new ct.Z([e])),this.dispatchEvent(new xt("drawend",t)),this.features_&&this.features_.push(t),this.source_&&this.source_.addFeature(t)}},e.prototype.abortDrawing_=function(){this.finishCoordinate_=null;var t=this.sketchFeature_;return this.sketchFeature_=null,this.sketchPoint_=null,this.sketchLine_=null,this.overlay_.getSource().clear(!0),t},e.prototype.abortDrawing=function(){var t=this.abortDrawing_();t&&this.dispatchEvent(new xt("drawabort",t))},e.prototype.appendCoordinates=function(t){var e,n=this.mode_,r=!this.sketchFeature_;if(r&&this.startDrawing_(t[0]),n===vt||n===bt)e=this.sketchCoords_;else{if(n!==_t)return;e=this.sketchCoords_&&this.sketchCoords_.length?this.sketchCoords_[0]:[]}r&&e.shift(),e.pop();for(var i=0;i<t.length;i++)this.addToDrawing_(t[i]);var o=t[t.length-1];this.addToDrawing_(o),this.modifyDrawing_(o)},e.prototype.extend=function(t){var e=t.getGeometry();this.sketchFeature_=t,this.sketchCoords_=e.getCoordinates();var n=this.sketchCoords_[this.sketchCoords_.length-1];this.finishCoordinate_=n.slice(),this.sketchCoords_.push(n.slice()),this.sketchPoint_=new it.Z(new ht.Z(n)),this.updateSketchFeatures_(),this.dispatchEvent(new xt(wt,this.sketchFeature_))},e.prototype.updateSketchFeatures_=function(){var t=[];this.sketchFeature_&&t.push(this.sketchFeature_),this.sketchLine_&&t.push(this.sketchLine_),this.sketchPoint_&&t.push(this.sketchPoint_);var e=this.overlay_.getSource();e.clear(!0),e.addFeatures(t)},e.prototype.updateState_=function(){var t=this.getMap(),e=this.getActive();t&&e||this.abortDrawing(),this.overlay_.setMap(e?t:null)},e}(m);var Ct=n(6596),Et=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),kt=function(t){function e(e){var n=t.call(this,"extentchanged")||this;return n.extent=e,n}return Et(e,t),e}(E.ZP);function At(){var t=(0,ft.Ly)();return function(e,n){return t.Point}}function Pt(t){return function(e){return(0,Ct.hI)([t,e])}}function Tt(t,e){return t[0]==e[0]?function(n){return(0,Ct.hI)([t,[n[0],e[1]]])}:t[1]==e[1]?function(n){return(0,Ct.hI)([t,[e[0],n[1]]])}:null}const Mt=function(t){function e(e){var n,r=this,i=e||{};return(r=t.call(this,i)||this).on,r.once,r.un,r.condition_=i.condition?i.condition:v.always,r.extent_=null,r.pointerHandler_=null,r.pixelTolerance_=void 0!==i.pixelTolerance?i.pixelTolerance:10,r.snappedToVertex_=!1,r.extentFeature_=null,r.vertexFeature_=null,e||(e={}),r.extentOverlay_=new pt.default({source:new dt.default({useSpatialIndex:!1,wrapX:!!e.wrapX}),style:e.boxStyle?e.boxStyle:(n=(0,ft.Ly)(),function(t,e){return n.Polygon}),updateWhileAnimating:!0,updateWhileInteracting:!0}),r.vertexOverlay_=new pt.default({source:new dt.default({useSpatialIndex:!1,wrapX:!!e.wrapX}),style:e.pointerStyle?e.pointerStyle:At(),updateWhileAnimating:!0,updateWhileInteracting:!0}),e.extent&&r.setExtent(e.extent),r}return Et(e,t),e.prototype.snapToVertex_=function(t,e){var n=e.getCoordinateFromPixelInternal(t),r=this.getExtentInternal();if(r){var i=function(t){return[[[t[0],t[1]],[t[0],t[3]]],[[t[0],t[3]],[t[2],t[3]]],[[t[2],t[3]],[t[2],t[1]]],[[t[2],t[1]],[t[0],t[1]]]]}(r);i.sort((function(t,e){return(0,_.Bs)(n,t)-(0,_.Bs)(n,e)}));var o=i[0],a=(0,_.oL)(n,o),s=e.getPixelFromCoordinateInternal(a);if((0,_.TE)(t,s)<=this.pixelTolerance_){var l=e.getPixelFromCoordinateInternal(o[0]),u=e.getPixelFromCoordinateInternal(o[1]),c=(0,_.bI)(s,l),h=(0,_.bI)(s,u),p=Math.sqrt(Math.min(c,h));return this.snappedToVertex_=p<=this.pixelTolerance_,this.snappedToVertex_&&(a=c>h?o[1]:o[0]),a}}return null},e.prototype.handlePointerMove_=function(t){var e=t.pixel,n=t.map,r=this.snapToVertex_(e,n);r||(r=n.getCoordinateFromPixelInternal(e)),this.createOrUpdatePointerFeature_(r)},e.prototype.createOrUpdateExtentFeature_=function(t){var e=this.extentFeature_;return e?t?e.setGeometry((0,A.oJ)(t)):e.setGeometry(void 0):(e=t?new it.Z((0,A.oJ)(t)):new it.Z({}),this.extentFeature_=e,this.extentOverlay_.getSource().addFeature(e)),e},e.prototype.createOrUpdatePointerFeature_=function(t){var e=this.vertexFeature_;return e?e.getGeometry().setCoordinates(t):(e=new it.Z(new ht.Z(t)),this.vertexFeature_=e,this.vertexOverlay_.getSource().addFeature(e)),e},e.prototype.handleEvent=function(e){return!e.originalEvent||!this.condition_(e)||(e.type!=h.Z.POINTERMOVE||this.handlingDownUpSequence||this.handlePointerMove_(e),t.prototype.handleEvent.call(this,e),!1)},e.prototype.handleDownEvent=function(t){var e=t.pixel,n=t.map,r=this.getExtentInternal(),i=this.snapToVertex_(e,n),o=function(t){var e=null,n=null;return t[0]==r[0]?e=r[2]:t[0]==r[2]&&(e=r[0]),t[1]==r[1]?n=r[3]:t[1]==r[3]&&(n=r[1]),null!==e&&null!==n?[e,n]:null};if(i&&r){var a=i[0]==r[0]||i[0]==r[2]?i[0]:null,s=i[1]==r[1]||i[1]==r[3]?i[1]:null;null!==a&&null!==s?this.pointerHandler_=Pt(o(i)):null!==a?this.pointerHandler_=Tt(o([a,r[1]]),o([a,r[3]])):null!==s&&(this.pointerHandler_=Tt(o([r[0],s]),o([r[2],s])))}else i=n.getCoordinateFromPixelInternal(e),this.setExtent([i[0],i[1],i[0],i[1]]),this.pointerHandler_=Pt(i);return!0},e.prototype.handleDragEvent=function(t){if(this.pointerHandler_){var e=t.coordinate;this.setExtent(this.pointerHandler_(e)),this.createOrUpdatePointerFeature_(e)}},e.prototype.handleUpEvent=function(t){this.pointerHandler_=null;var e=this.getExtentInternal();return e&&0!==(0,Ct.bg)(e)||this.setExtent(null),!1},e.prototype.setMap=function(e){this.extentOverlay_.setMap(e),this.vertexOverlay_.setMap(e),t.prototype.setMap.call(this,e)},e.prototype.getExtent=function(){return(0,Y.toUserExtent)(this.getExtentInternal(),this.getMap().getView().getProjection())},e.prototype.getExtentInternal=function(){return this.extent_},e.prototype.setExtent=function(t){this.extent_=t||null,this.createOrUpdateExtentFeature_(t),this.dispatchEvent(new kt(this.extent_))},e}(m);var Ot=n(8523),Rt=n(7315),It=n(520),Lt=n(2182),Ft=n(2637),Nt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Dt=[0,0,0,0],zt=[],Zt="modifyend",jt=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.features=n,i.mapBrowserEvent=r,i}return Nt(e,t),e}(E.ZP);function Gt(t,e){return t.index-e.index}function Bt(t,e,n){var r=e.geometry;if("Circle"===r.getType()){var i=r;if(1===e.index){var o=(0,Y.getUserProjection)();o&&(i=i.clone().transform(o,n));var a=(0,_.bI)(i.getCenter(),(0,Y.fromUserCoordinate)(t,n)),s=Math.sqrt(a)-i.getRadius();return s*s}}var l=(0,Y.fromUserCoordinate)(t,n);return zt[0]=(0,Y.fromUserCoordinate)(e.segment[0],n),zt[1]=(0,Y.fromUserCoordinate)(e.segment[1],n),(0,_.Bs)(l,zt)}function Ut(t,e,n){var r=e.geometry;if("Circle"===r.getType()&&1===e.index){var i=r,o=(0,Y.getUserProjection)();return o&&(i=i.clone().transform(o,n)),(0,Y.toUserCoordinate)(i.getClosestPoint((0,Y.fromUserCoordinate)(t,n)),n)}var a=(0,Y.fromUserCoordinate)(t,n);return zt[0]=(0,Y.fromUserCoordinate)(e.segment[0],n),zt[1]=(0,Y.fromUserCoordinate)(e.segment[1],n),(0,Y.toUserCoordinate)((0,_.oL)(a,zt),n)}const Vt=function(t){function e(e){var n,i,o=t.call(this,e)||this;if(o.on,o.once,o.un,o.boundHandleFeatureChange_=o.handleFeatureChange_.bind(o),o.condition_=e.condition?e.condition:v.primaryAction,o.defaultDeleteCondition_=function(t){return(0,v.altKeyOnly)(t)&&(0,v.singleClick)(t)},o.deleteCondition_=e.deleteCondition?e.deleteCondition:o.defaultDeleteCondition_,o.insertVertexCondition_=e.insertVertexCondition?e.insertVertexCondition:v.always,o.vertexFeature_=null,o.vertexSegments_=null,o.lastPixel_=[0,0],o.ignoreNextSingleClick_=!1,o.featuresBeingModified_=null,o.rBush_=new Rt.Z,o.pixelTolerance_=void 0!==e.pixelTolerance?e.pixelTolerance:10,o.snappedToVertex_=!1,o.changingFeature_=!1,o.dragSegments_=[],o.overlay_=new pt.default({source:new dt.default({useSpatialIndex:!1,wrapX:!!e.wrapX}),style:e.style?e.style:(n=(0,ft.Ly)(),function(t,e){return n.Point}),updateWhileAnimating:!0,updateWhileInteracting:!0}),o.SEGMENT_WRITERS_={Point:o.writePointGeometry_.bind(o),LineString:o.writeLineStringGeometry_.bind(o),LinearRing:o.writeLineStringGeometry_.bind(o),Polygon:o.writePolygonGeometry_.bind(o),MultiPoint:o.writeMultiPointGeometry_.bind(o),MultiLineString:o.writeMultiLineStringGeometry_.bind(o),MultiPolygon:o.writeMultiPolygonGeometry_.bind(o),Circle:o.writeCircleGeometry_.bind(o),GeometryCollection:o.writeGeometryCollectionGeometry_.bind(o)},o.source_=null,o.hitDetection_=null,e.features?i=e.features:e.source&&(o.source_=e.source,i=new r.Z(o.source_.getFeatures()),o.source_.addEventListener(It.Z.ADDFEATURE,o.handleSourceAdd_.bind(o)),o.source_.addEventListener(It.Z.REMOVEFEATURE,o.handleSourceRemove_.bind(o))),!i)throw new Error("The modify interaction requires features, a source or a layer");return e.hitDetection&&(o.hitDetection_=e.hitDetection),o.features_=i,o.features_.forEach(o.addFeature_.bind(o)),o.features_.addEventListener(Ot.Z.ADD,o.handleFeatureAdd_.bind(o)),o.features_.addEventListener(Ot.Z.REMOVE,o.handleFeatureRemove_.bind(o)),o.lastPointerEvent_=null,o.delta_=[0,0],o.snapToPointer_=void 0===e.snapToPointer?!o.hitDetection_:e.snapToPointer,o}return Nt(e,t),e.prototype.addFeature_=function(t){var e=t.getGeometry();if(e){var n=this.SEGMENT_WRITERS_[e.getType()];n&&n(t,e)}var r=this.getMap();r&&r.isRendered()&&this.getActive()&&this.handlePointerAtPixel_(this.lastPixel_,r),t.addEventListener(F.Z.CHANGE,this.boundHandleFeatureChange_)},e.prototype.willModifyFeatures_=function(t,e){if(!this.featuresBeingModified_){this.featuresBeingModified_=new r.Z;for(var n=this.featuresBeingModified_.getArray(),i=0,o=e.length;i<o;++i)for(var a=e[i],s=0,l=a.length;s<l;++s){var u=a[s].feature;u&&-1===n.indexOf(u)&&this.featuresBeingModified_.push(u)}0===this.featuresBeingModified_.getLength()?this.featuresBeingModified_=null:this.dispatchEvent(new jt("modifystart",this.featuresBeingModified_,t))}},e.prototype.removeFeature_=function(t){this.removeFeatureSegmentData_(t),this.vertexFeature_&&0===this.features_.getLength()&&(this.overlay_.getSource().removeFeature(this.vertexFeature_),this.vertexFeature_=null),t.removeEventListener(F.Z.CHANGE,this.boundHandleFeatureChange_)},e.prototype.removeFeatureSegmentData_=function(t){var e=this.rBush_,n=[];e.forEach((function(e){t===e.feature&&n.push(e)}));for(var r=n.length-1;r>=0;--r){for(var i=n[r],o=this.dragSegments_.length-1;o>=0;--o)this.dragSegments_[o][0]===i&&this.dragSegments_.splice(o,1);e.remove(i)}},e.prototype.setActive=function(e){this.vertexFeature_&&!e&&(this.overlay_.getSource().removeFeature(this.vertexFeature_),this.vertexFeature_=null),t.prototype.setActive.call(this,e)},e.prototype.setMap=function(e){this.overlay_.setMap(e),t.prototype.setMap.call(this,e)},e.prototype.getOverlay=function(){return this.overlay_},e.prototype.handleSourceAdd_=function(t){t.feature&&this.features_.push(t.feature)},e.prototype.handleSourceRemove_=function(t){t.feature&&this.features_.remove(t.feature)},e.prototype.handleFeatureAdd_=function(t){this.addFeature_(t.element)},e.prototype.handleFeatureChange_=function(t){if(!this.changingFeature_){var e=t.target;this.removeFeature_(e),this.addFeature_(e)}},e.prototype.handleFeatureRemove_=function(t){var e=t.element;this.removeFeature_(e)},e.prototype.writePointGeometry_=function(t,e){var n=e.getCoordinates(),r={feature:t,geometry:e,segment:[n,n]};this.rBush_.insert(e.getExtent(),r)},e.prototype.writeMultiPointGeometry_=function(t,e){for(var n=e.getCoordinates(),r=0,i=n.length;r<i;++r){var o=n[r],a={feature:t,geometry:e,depth:[r],index:r,segment:[o,o]};this.rBush_.insert(e.getExtent(),a)}},e.prototype.writeLineStringGeometry_=function(t,e){for(var n=e.getCoordinates(),r=0,i=n.length-1;r<i;++r){var o=n.slice(r,r+2),a={feature:t,geometry:e,index:r,segment:o};this.rBush_.insert((0,Ct.hI)(o),a)}},e.prototype.writeMultiLineStringGeometry_=function(t,e){for(var n=e.getCoordinates(),r=0,i=n.length;r<i;++r)for(var o=n[r],a=0,s=o.length-1;a<s;++a){var l=o.slice(a,a+2),u={feature:t,geometry:e,depth:[r],index:a,segment:l};this.rBush_.insert((0,Ct.hI)(l),u)}},e.prototype.writePolygonGeometry_=function(t,e){for(var n=e.getCoordinates(),r=0,i=n.length;r<i;++r)for(var o=n[r],a=0,s=o.length-1;a<s;++a){var l=o.slice(a,a+2),u={feature:t,geometry:e,depth:[r],index:a,segment:l};this.rBush_.insert((0,Ct.hI)(l),u)}},e.prototype.writeMultiPolygonGeometry_=function(t,e){for(var n=e.getCoordinates(),r=0,i=n.length;r<i;++r)for(var o=n[r],a=0,s=o.length;a<s;++a)for(var l=o[a],u=0,c=l.length-1;u<c;++u){var h=l.slice(u,u+2),p={feature:t,geometry:e,depth:[a,r],index:u,segment:h};this.rBush_.insert((0,Ct.hI)(h),p)}},e.prototype.writeCircleGeometry_=function(t,e){var n=e.getCenter(),r={feature:t,geometry:e,index:0,segment:[n,n]},i={feature:t,geometry:e,index:1,segment:[n,n]},o=[r,i];r.featureSegments=o,i.featureSegments=o,this.rBush_.insert((0,Ct.HK)(n),r);var a=e,s=(0,Y.getUserProjection)();if(s&&this.getMap()){var l=this.getMap().getView().getProjection();a=a.clone().transform(s,l),a=(0,A.Bb)(a).transform(l,s)}this.rBush_.insert(a.getExtent(),i)},e.prototype.writeGeometryCollectionGeometry_=function(t,e){for(var n=e.getGeometriesArray(),r=0;r<n.length;++r){var i=n[r];(0,this.SEGMENT_WRITERS_[i.getType()])(t,i)}},e.prototype.createOrUpdateVertexFeature_=function(t,e,n){var r=this.vertexFeature_;return r?r.getGeometry().setCoordinates(t):(r=new it.Z(new ht.Z(t)),this.vertexFeature_=r,this.overlay_.getSource().addFeature(r)),r.set("features",e),r.set("geometries",n),r},e.prototype.handleEvent=function(e){return!e.originalEvent||(this.lastPointerEvent_=e,e.map.getView().getInteracting()||e.type!=h.Z.POINTERMOVE||this.handlingDownUpSequence||this.handlePointerMove_(e),this.vertexFeature_&&this.deleteCondition_(e)&&(n=!(e.type!=h.Z.SINGLECLICK||!this.ignoreNextSingleClick_)||this.removePoint()),e.type==h.Z.SINGLECLICK&&(this.ignoreNextSingleClick_=!1),t.prototype.handleEvent.call(this,e)&&!n);var n},e.prototype.handleDragEvent=function(t){this.ignoreNextSingleClick_=!1,this.willModifyFeatures_(t,this.dragSegments_);for(var e=[t.coordinate[0]+this.delta_[0],t.coordinate[1]+this.delta_[1]],n=[],r=[],i=0,o=this.dragSegments_.length;i<o;++i){var a=this.dragSegments_[i],s=a[0],l=s.feature;-1===n.indexOf(l)&&n.push(l);var u=s.geometry;-1===r.indexOf(u)&&r.push(u);for(var c=s.depth,h=void 0,p=s.segment,d=a[1];e.length<u.getStride();)e.push(p[d][e.length]);switch(u.getType()){case"Point":h=e,p[0]=e,p[1]=e;break;case"MultiPoint":(h=u.getCoordinates())[s.index]=e,p[0]=e,p[1]=e;break;case"LineString":(h=u.getCoordinates())[s.index+d]=e,p[d]=e;break;case"MultiLineString":case"Polygon":(h=u.getCoordinates())[c[0]][s.index+d]=e,p[d]=e;break;case"MultiPolygon":(h=u.getCoordinates())[c[1]][c[0]][s.index+d]=e,p[d]=e;break;case"Circle":if(p[0]=e,p[1]=e,0===s.index)this.changingFeature_=!0,u.setCenter(e),this.changingFeature_=!1;else{this.changingFeature_=!0;var f=t.map.getView().getProjection(),g=(0,_.TE)((0,Y.fromUserCoordinate)(u.getCenter(),f),(0,Y.fromUserCoordinate)(e,f)),m=(0,Y.getUserProjection)();if(m){var y=u.clone().transform(m,f);y.setRadius(g),g=y.transform(f,m).getRadius()}u.setRadius(g),this.changingFeature_=!1}}h&&this.setGeometryCoordinates_(u,h)}this.createOrUpdateVertexFeature_(e,n,r)},e.prototype.handleDownEvent=function(t){if(!this.condition_(t))return!1;var e=t.coordinate;this.handlePointerAtPixel_(t.pixel,t.map,e),this.dragSegments_.length=0,this.featuresBeingModified_=null;var n=this.vertexFeature_;if(n){var r=t.map.getView().getProjection(),i=[],o=n.getGeometry().getCoordinates(),a=(0,Ct.hI)([o]),s=this.rBush_.getInExtent(a),l={};s.sort(Gt);for(var u=0,c=s.length;u<c;++u){var h=s[u],p=h.segment,d=(0,Ft.sq)(h.geometry),f=h.depth;if(f&&(d+="-"+f.join("-")),l[d]||(l[d]=new Array(2)),"Circle"!==h.geometry.getType()||1!==h.index)if(!(0,_.fS)(p[0],o)||l[d][0])if(!(0,_.fS)(p[1],o)||l[d][1])(0,Ft.sq)(p)in this.vertexSegments_&&!l[d][0]&&!l[d][1]&&this.insertVertexCondition_(t)&&i.push(h);else{if(l[d][0]&&0===l[d][0].index){var g=h.geometry.getCoordinates();switch(h.geometry.getType()){case"LineString":case"MultiLineString":continue;case"MultiPolygon":g=g[f[1]];case"Polygon":if(h.index!==g[f[0]].length-2)continue}}this.dragSegments_.push([h,1]),l[d][1]=h}else this.dragSegments_.push([h,0]),l[d][0]=h;else{var m=Ut(e,h,r);(0,_.fS)(m,o)&&!l[d][0]&&(this.dragSegments_.push([h,0]),l[d][0]=h)}}i.length&&this.willModifyFeatures_(t,[i]);for(var y=i.length-1;y>=0;--y)this.insertVertex_(i[y],o)}return!!this.vertexFeature_},e.prototype.handleUpEvent=function(t){for(var e=this.dragSegments_.length-1;e>=0;--e){var n=this.dragSegments_[e][0],r=n.geometry;if("Circle"===r.getType()){var i=r.getCenter(),o=n.featureSegments[0],a=n.featureSegments[1];o.segment[0]=i,o.segment[1]=i,a.segment[0]=i,a.segment[1]=i,this.rBush_.update((0,Ct.HK)(i),o);var s=r,l=(0,Y.getUserProjection)();if(l){var u=t.map.getView().getProjection();s=s.clone().transform(l,u),s=(0,A.Bb)(s).transform(u,l)}this.rBush_.update(s.getExtent(),a)}else this.rBush_.update((0,Ct.hI)(n.segment),n)}return this.featuresBeingModified_&&(this.dispatchEvent(new jt(Zt,this.featuresBeingModified_,t)),this.featuresBeingModified_=null),!1},e.prototype.handlePointerMove_=function(t){this.lastPixel_=t.pixel,this.handlePointerAtPixel_(t.pixel,t.map,t.coordinate)},e.prototype.handlePointerAtPixel_=function(t,e,n){var r,i,o=this,a=n||e.getCoordinateFromPixel(t),s=e.getView().getProjection();if(this.hitDetection_){var l="object"==typeof this.hitDetection_?function(t){return t===o.hitDetection_}:void 0;e.forEachFeatureAtPixel(t,(function(t,e,n){if("Point"===(n=n||t.getGeometry()).getType()&&(0,Lt.q9)(o.features_.getArray(),t)){i=n;var a=n.getFlatCoordinates().slice(0,2);r=[{feature:t,geometry:n,segment:[a,a]}]}return!0}),{layerFilter:l})}if(!r){var u=(0,Y.fromUserExtent)((0,Ct.HK)(a,Dt),s),c=e.getView().getResolution()*this.pixelTolerance_,h=(0,Y.toUserExtent)((0,Ct.f3)(u,c,Dt),s);r=this.rBush_.getInExtent(h)}if(r&&r.length>0){var p=r.sort((function(t,e){return Bt(a,t,s)-Bt(a,e,s)}))[0],d=p.segment,f=Ut(a,p,s),g=e.getPixelFromCoordinate(f),m=(0,_.TE)(t,g);if(i||m<=this.pixelTolerance_){var y={};if(y[(0,Ft.sq)(d)]=!0,this.snapToPointer_||(this.delta_[0]=f[0]-a[0],this.delta_[1]=f[1]-a[1]),"Circle"===p.geometry.getType()&&1===p.index)this.snappedToVertex_=!0,this.createOrUpdateVertexFeature_(f,[p.feature],[p.geometry]);else{var v=e.getPixelFromCoordinate(d[0]),b=e.getPixelFromCoordinate(d[1]),w=(0,_.bI)(g,v),x=(0,_.bI)(g,b);m=Math.sqrt(Math.min(w,x)),this.snappedToVertex_=m<=this.pixelTolerance_,this.snappedToVertex_&&(f=w>x?d[1]:d[0]),this.createOrUpdateVertexFeature_(f,[p.feature],[p.geometry]);var S={};S[(0,Ft.sq)(p.geometry)]=!0;for(var C=1,E=r.length;C<E;++C){var k=r[C].segment;if(!((0,_.fS)(d[0],k[0])&&(0,_.fS)(d[1],k[1])||(0,_.fS)(d[0],k[1])&&(0,_.fS)(d[1],k[0])))break;var A=(0,Ft.sq)(r[C].geometry);A in S||(S[A]=!0,y[(0,Ft.sq)(k)]=!0)}}return void(this.vertexSegments_=y)}}this.vertexFeature_&&(this.overlay_.getSource().removeFeature(this.vertexFeature_),this.vertexFeature_=null)},e.prototype.insertVertex_=function(t,e){for(var n,r=t.segment,i=t.feature,o=t.geometry,a=t.depth,s=t.index;e.length<o.getStride();)e.push(0);switch(o.getType()){case"MultiLineString":case"Polygon":(n=o.getCoordinates())[a[0]].splice(s+1,0,e);break;case"MultiPolygon":(n=o.getCoordinates())[a[1]][a[0]].splice(s+1,0,e);break;case"LineString":(n=o.getCoordinates()).splice(s+1,0,e);break;default:return}this.setGeometryCoordinates_(o,n);var l=this.rBush_;l.remove(t),this.updateSegmentIndices_(o,s,a,1);var u={segment:[r[0],e],feature:i,geometry:o,depth:a,index:s};l.insert((0,Ct.hI)(u.segment),u),this.dragSegments_.push([u,1]);var c={segment:[e,r[1]],feature:i,geometry:o,depth:a,index:s+1};l.insert((0,Ct.hI)(c.segment),c),this.dragSegments_.push([c,0]),this.ignoreNextSingleClick_=!0},e.prototype.removePoint=function(){if(this.lastPointerEvent_&&this.lastPointerEvent_.type!=h.Z.POINTERDRAG){var t=this.lastPointerEvent_;this.willModifyFeatures_(t,this.dragSegments_);var e=this.removeVertex_();return this.featuresBeingModified_&&this.dispatchEvent(new jt(Zt,this.featuresBeingModified_,t)),this.featuresBeingModified_=null,e}return!1},e.prototype.removeVertex_=function(){var t,e,n,r,i,o,a,s,l,u,c,h=this.dragSegments_,p={},d=!1;for(i=h.length-1;i>=0;--i)u=(n=h[i])[0],c=(0,Ft.sq)(u.feature),u.depth&&(c+="-"+u.depth.join("-")),c in p||(p[c]={}),0===n[1]?(p[c].right=u,p[c].index=u.index):1==n[1]&&(p[c].left=u,p[c].index=u.index+1);for(c in p){switch(l=p[c].right,a=p[c].left,(s=(o=p[c].index)-1)<0&&(s=0),t=e=(r=(u=void 0!==a?a:l).geometry).getCoordinates(),d=!1,r.getType()){case"MultiLineString":e[u.depth[0]].length>2&&(e[u.depth[0]].splice(o,1),d=!0);break;case"LineString":e.length>2&&(e.splice(o,1),d=!0);break;case"MultiPolygon":t=t[u.depth[1]];case"Polygon":(t=t[u.depth[0]]).length>4&&(o==t.length-1&&(o=0),t.splice(o,1),d=!0,0===o&&(t.pop(),t.push(t[0]),s=t.length-1))}if(d){this.setGeometryCoordinates_(r,e);var f=[];if(void 0!==a&&(this.rBush_.remove(a),f.push(a.segment[0])),void 0!==l&&(this.rBush_.remove(l),f.push(l.segment[1])),void 0!==a&&void 0!==l){var g={depth:u.depth,feature:u.feature,geometry:u.geometry,index:s,segment:f};this.rBush_.insert((0,Ct.hI)(g.segment),g)}this.updateSegmentIndices_(r,o,u.depth,-1),this.vertexFeature_&&(this.overlay_.getSource().removeFeature(this.vertexFeature_),this.vertexFeature_=null),h.length=0}}return d},e.prototype.setGeometryCoordinates_=function(t,e){this.changingFeature_=!0,t.setCoordinates(e),this.changingFeature_=!1},e.prototype.updateSegmentIndices_=function(t,e,n,r){this.rBush_.forEachInExtent(t.getExtent(),(function(i){i.geometry===t&&(void 0===n||void 0===i.depth||(0,Lt.fS)(i.depth,n))&&i.index>e&&(i.index+=r)}))},e}(m);var qt=n(6534),Wt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ht=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.selected=n,o.deselected=r,o.mapBrowserEvent=i,o}return Wt(e,t),e}(E.ZP),Xt={};const Kt=function(t){function e(e){var n=t.call(this)||this;n.on,n.once,n.un;var i,o,a=e||{};if(n.boundAddFeature_=n.addFeature_.bind(n),n.boundRemoveFeature_=n.removeFeature_.bind(n),n.condition_=a.condition?a.condition:v.singleClick,n.addCondition_=a.addCondition?a.addCondition:v.never,n.removeCondition_=a.removeCondition?a.removeCondition:v.never,n.toggleCondition_=a.toggleCondition?a.toggleCondition:v.shiftKeyOnly,n.multi_=!!a.multi&&a.multi,n.filter_=a.filter?a.filter:y.uX,n.hitTolerance_=a.hitTolerance?a.hitTolerance:0,n.style_=void 0!==a.style?a.style:(i=(0,ft.Ly)(),(0,Lt.l7)(i.Polygon,i.LineString),(0,Lt.l7)(i.GeometryCollection,i.LineString),function(t){return t.getGeometry()?i[t.getGeometry().getType()]:null}),n.features_=a.features||new r.Z,a.layers)if("function"==typeof a.layers)o=a.layers;else{var s=a.layers;o=function(t){return(0,Lt.q9)(s,t)}}else o=y.uX;return n.layerFilter_=o,n.featureLayerAssociation_={},n}return Wt(e,t),e.prototype.addFeatureLayerAssociation_=function(t,e){this.featureLayerAssociation_[(0,Ft.sq)(t)]=e},e.prototype.getFeatures=function(){return this.features_},e.prototype.getHitTolerance=function(){return this.hitTolerance_},e.prototype.getLayer=function(t){return this.featureLayerAssociation_[(0,Ft.sq)(t)]},e.prototype.setHitTolerance=function(t){this.hitTolerance_=t},e.prototype.setMap=function(e){this.getMap()&&this.style_&&this.features_.forEach(this.restorePreviousStyle_.bind(this)),t.prototype.setMap.call(this,e),e?(this.features_.addEventListener(Ot.Z.ADD,this.boundAddFeature_),this.features_.addEventListener(Ot.Z.REMOVE,this.boundRemoveFeature_),this.style_&&this.features_.forEach(this.applySelectedStyle_.bind(this))):(this.features_.removeEventListener(Ot.Z.ADD,this.boundAddFeature_),this.features_.removeEventListener(Ot.Z.REMOVE,this.boundRemoveFeature_))},e.prototype.addFeature_=function(t){var e=t.element;if(this.style_&&this.applySelectedStyle_(e),!this.getLayer(e)){var n=this.getMap().getAllLayers().find((function(t){if(t instanceof pt.default&&t.getSource()&&t.getSource().hasFeature(e))return t}));n&&this.addFeatureLayerAssociation_(e,n)}},e.prototype.removeFeature_=function(t){var e=t.element;this.style_&&this.restorePreviousStyle_(e)},e.prototype.getStyle=function(){return this.style_},e.prototype.applySelectedStyle_=function(t){var e=(0,Ft.sq)(t);e in Xt||(Xt[e]=t.getStyle()),t.setStyle(this.style_)},e.prototype.restorePreviousStyle_=function(t){for(var n=this.getMap().getInteractions().getArray(),r=n.length-1;r>=0;--r){var i=n[r];if(i!==this&&i instanceof e&&i.getStyle()&&-1!==i.getFeatures().getArray().lastIndexOf(t))return void t.setStyle(i.getStyle())}var o=(0,Ft.sq)(t);t.setStyle(Xt[o]),delete Xt[o]},e.prototype.removeFeatureLayerAssociation_=function(t){delete this.featureLayerAssociation_[(0,Ft.sq)(t)]},e.prototype.handleEvent=function(t){if(!this.condition_(t))return!0;var e=this.addCondition_(t),n=this.removeCondition_(t),r=this.toggleCondition_(t),i=!e&&!n&&!r,o=t.map,a=this.getFeatures(),s=[],l=[];if(i){(0,qt.ZH)(this.featureLayerAssociation_),o.forEachFeatureAtPixel(t.pixel,function(t,e){if(this.filter_(t,e))return this.addFeatureLayerAssociation_(t,e),l.push(t),!this.multi_}.bind(this),{layerFilter:this.layerFilter_,hitTolerance:this.hitTolerance_});for(var u=a.getLength()-1;u>=0;--u){var c=a.item(u),h=l.indexOf(c);h>-1?l.splice(h,1):(a.remove(c),s.push(c))}0!==l.length&&a.extend(l)}else{o.forEachFeatureAtPixel(t.pixel,function(t,i){if(this.filter_(t,i))return!e&&!r||(0,Lt.q9)(a.getArray(),t)?(n||r)&&(0,Lt.q9)(a.getArray(),t)&&(s.push(t),this.removeFeatureLayerAssociation_(t)):(this.addFeatureLayerAssociation_(t,i),l.push(t)),!this.multi_}.bind(this),{layerFilter:this.layerFilter_,hitTolerance:this.hitTolerance_});for(var p=s.length-1;p>=0;--p)a.remove(s[p]);a.extend(l)}return(l.length>0||s.length>0)&&this.dispatchEvent(new Ht("select",l,s,t)),!0},e}(c);var Yt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function Qt(t){return t.feature?t.feature:t.element?t.element:void 0}var $t=[];const Jt=function(t){function e(e){var n=this,r=e||{},i=r;return i.handleDownEvent||(i.handleDownEvent=y.uX),i.stopDown||(i.stopDown=y.Dv),(n=t.call(this,i)||this).source_=r.source?r.source:null,n.vertex_=void 0===r.vertex||r.vertex,n.edge_=void 0===r.edge||r.edge,n.features_=r.features?r.features:null,n.featuresListenerKeys_=[],n.featureChangeListenerKeys_={},n.indexedFeaturesExtents_={},n.pendingFeatures_={},n.pixelTolerance_=void 0!==r.pixelTolerance?r.pixelTolerance:10,n.rBush_=new Rt.Z,n.GEOMETRY_SEGMENTERS_={Point:n.segmentPointGeometry_.bind(n),LineString:n.segmentLineStringGeometry_.bind(n),LinearRing:n.segmentLineStringGeometry_.bind(n),Polygon:n.segmentPolygonGeometry_.bind(n),MultiPoint:n.segmentMultiPointGeometry_.bind(n),MultiLineString:n.segmentMultiLineStringGeometry_.bind(n),MultiPolygon:n.segmentMultiPolygonGeometry_.bind(n),GeometryCollection:n.segmentGeometryCollectionGeometry_.bind(n),Circle:n.segmentCircleGeometry_.bind(n)},n}return Yt(e,t),e.prototype.addFeature=function(t,e){var n=void 0===e||e,r=(0,Ft.sq)(t),i=t.getGeometry();if(i){var o=this.GEOMETRY_SEGMENTERS_[i.getType()];if(o){this.indexedFeaturesExtents_[r]=i.getExtent((0,Ct.lJ)());var a=[];if(o(a,i),1===a.length)this.rBush_.insert((0,Ct.hI)(a[0]),{feature:t,segment:a[0]});else if(a.length>1){var s=a.map((function(t){return(0,Ct.hI)(t)})),l=a.map((function(e){return{feature:t,segment:e}}));this.rBush_.load(s,l)}}}n&&(this.featureChangeListenerKeys_[r]=(0,Q.oL)(t,F.Z.CHANGE,this.handleFeatureChange_,this))},e.prototype.forEachFeatureAdd_=function(t){this.addFeature(t)},e.prototype.forEachFeatureRemove_=function(t){this.removeFeature(t)},e.prototype.getFeatures_=function(){var t;return this.features_?t=this.features_:this.source_&&(t=this.source_.getFeatures()),t},e.prototype.handleEvent=function(e){var n=this.snapTo(e.pixel,e.coordinate,e.map);return n&&(e.coordinate=n.vertex.slice(0,2),e.pixel=n.vertexPixel),t.prototype.handleEvent.call(this,e)},e.prototype.handleFeatureAdd_=function(t){var e=Qt(t);this.addFeature(e)},e.prototype.handleFeatureRemove_=function(t){var e=Qt(t);this.removeFeature(e)},e.prototype.handleFeatureChange_=function(t){var e=t.target;if(this.handlingDownUpSequence){var n=(0,Ft.sq)(e);n in this.pendingFeatures_||(this.pendingFeatures_[n]=e)}else this.updateFeature_(e)},e.prototype.handleUpEvent=function(t){var e=(0,qt.KX)(this.pendingFeatures_);return e.length&&(e.forEach(this.updateFeature_.bind(this)),this.pendingFeatures_={}),!1},e.prototype.removeFeature=function(t,e){var n=void 0===e||e,r=(0,Ft.sq)(t),i=this.indexedFeaturesExtents_[r];if(i){var o=this.rBush_,a=[];o.forEachInExtent(i,(function(e){t===e.feature&&a.push(e)}));for(var s=a.length-1;s>=0;--s)o.remove(a[s])}n&&((0,Q.bN)(this.featureChangeListenerKeys_[r]),delete this.featureChangeListenerKeys_[r])},e.prototype.setMap=function(e){var n=this.getMap(),r=this.featuresListenerKeys_,i=this.getFeatures_();n&&(r.forEach(Q.bN),r.length=0,i.forEach(this.forEachFeatureRemove_.bind(this))),t.prototype.setMap.call(this,e),e&&(this.features_?r.push((0,Q.oL)(this.features_,Ot.Z.ADD,this.handleFeatureAdd_,this),(0,Q.oL)(this.features_,Ot.Z.REMOVE,this.handleFeatureRemove_,this)):this.source_&&r.push((0,Q.oL)(this.source_,It.Z.ADDFEATURE,this.handleFeatureAdd_,this),(0,Q.oL)(this.source_,It.Z.REMOVEFEATURE,this.handleFeatureRemove_,this)),i.forEach(this.forEachFeatureAdd_.bind(this)))},e.prototype.snapTo=function(t,e,n){var r=n.getCoordinateFromPixel([t[0]-this.pixelTolerance_,t[1]+this.pixelTolerance_]),i=n.getCoordinateFromPixel([t[0]+this.pixelTolerance_,t[1]-this.pixelTolerance_]),o=(0,Ct.hI)([r,i]),a=this.rBush_.getInExtent(o),s=a.length;if(0===s)return null;var l,u=n.getView().getProjection(),c=(0,Y.fromUserCoordinate)(e,u),h=1/0,p=this.pixelTolerance_*this.pixelTolerance_,d=function(){if(l){var e=n.getPixelFromCoordinate(l);if((0,_.bI)(t,e)<=p)return{vertex:l,vertexPixel:[Math.round(e[0]),Math.round(e[1])]}}return null};if(this.vertex_){for(var f=0;f<s;++f)"Circle"!==(g=a[f]).feature.getGeometry().getType()&&g.segment.forEach((function(t){var e=(0,Y.fromUserCoordinate)(t,u),n=(0,_.bI)(c,e);n<h&&(l=t,h=n)}));if(C=d())return C}if(this.edge_){for(f=0;f<s;++f){var g,m=null;if("Circle"===(g=a[f]).feature.getGeometry().getType()){var y=g.feature.getGeometry(),v=(0,Y.getUserProjection)();v&&(y=y.clone().transform(v,u)),m=(0,Y.toUserCoordinate)((0,_.Ed)(c,y),u)}else{var b=g.segment,w=b[0],x=b[1];x&&($t[0]=(0,Y.fromUserCoordinate)(w,u),$t[1]=(0,Y.fromUserCoordinate)(x,u),m=(0,_.oL)(c,$t))}if(m){var S=(0,_.bI)(c,m);S<h&&(l=m,h=S)}}var C;if(C=d())return C}return null},e.prototype.updateFeature_=function(t){this.removeFeature(t,!1),this.addFeature(t,!1)},e.prototype.segmentCircleGeometry_=function(t,e){var n=this.getMap().getView().getProjection(),r=e,i=(0,Y.getUserProjection)();i&&(r=r.clone().transform(i,n));var o=(0,A.Bb)(r);i&&o.transform(n,i);for(var a=o.getCoordinates()[0],s=0,l=a.length-1;s<l;++s)t.push(a.slice(s,s+2))},e.prototype.segmentGeometryCollectionGeometry_=function(t,e){for(var n=e.getGeometriesArray(),r=0;r<n.length;++r){var i=this.GEOMETRY_SEGMENTERS_[n[r].getType()];i&&i(t,n[r])}},e.prototype.segmentLineStringGeometry_=function(t,e){for(var n=e.getCoordinates(),r=0,i=n.length-1;r<i;++r)t.push(n.slice(r,r+2))},e.prototype.segmentMultiLineStringGeometry_=function(t,e){for(var n=e.getCoordinates(),r=0,i=n.length;r<i;++r)for(var o=n[r],a=0,s=o.length-1;a<s;++a)t.push(o.slice(a,a+2))},e.prototype.segmentMultiPointGeometry_=function(t,e){e.getCoordinates().forEach((function(e){t.push([e])}))},e.prototype.segmentMultiPolygonGeometry_=function(t,e){for(var n=e.getCoordinates(),r=0,i=n.length;r<i;++r)for(var o=n[r],a=0,s=o.length;a<s;++a)for(var l=o[a],u=0,c=l.length-1;u<c;++u)t.push(l.slice(u,u+2))},e.prototype.segmentPointGeometry_=function(t,e){t.push([e.getCoordinates()])},e.prototype.segmentPolygonGeometry_=function(t,e){for(var n=e.getCoordinates(),r=0,i=n.length;r<i;++r)for(var o=n[r],a=0,s=o.length-1;a<s;++a)t.push(o.slice(a,a+2))},e}(m);var te=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ee=function(t){function e(e,n,r,i,o){var a=t.call(this,e)||this;return a.features=n,a.coordinate=r,a.startCoordinate=i,a.mapBrowserEvent=o,a}return te(e,t),e}(E.ZP);const ne=function(t){function e(e){var n,r=this,i=e||{};if((r=t.call(this,i)||this).on,r.once,r.un,r.lastCoordinate_=null,r.startCoordinate_=null,r.features_=void 0!==i.features?i.features:null,i.layers&&!r.features_)if("function"==typeof i.layers)n=i.layers;else{var a=i.layers;n=function(t){return(0,Lt.q9)(a,t)}}else n=y.uX;return r.layerFilter_=n,r.filter_=i.filter&&!r.features_?i.filter:y.uX,r.hitTolerance_=i.hitTolerance?i.hitTolerance:0,r.condition_=i.condition?i.condition:v.always,r.lastFeature_=null,r.addChangeListener(o,r.handleActiveChanged_),r}return te(e,t),e.prototype.handleDownEvent=function(t){if(!t.originalEvent||!this.condition_(t))return!1;if(this.lastFeature_=this.featuresAtPixel_(t.pixel,t.map),!this.lastCoordinate_&&this.lastFeature_){this.startCoordinate_=t.coordinate,this.lastCoordinate_=t.coordinate,this.handleMoveEvent(t);var e=this.features_||new r.Z([this.lastFeature_]);return this.dispatchEvent(new ee("translatestart",e,t.coordinate,this.startCoordinate_,t)),!0}return!1},e.prototype.handleUpEvent=function(t){if(this.lastCoordinate_){this.lastCoordinate_=null,this.handleMoveEvent(t);var e=this.features_||new r.Z([this.lastFeature_]);return this.dispatchEvent(new ee("translateend",e,t.coordinate,this.startCoordinate_,t)),this.startCoordinate_=null,!0}return!1},e.prototype.handleDragEvent=function(t){if(this.lastCoordinate_){var e=t.coordinate,n=e[0]-this.lastCoordinate_[0],i=e[1]-this.lastCoordinate_[1],o=this.features_||new r.Z([this.lastFeature_]);o.forEach((function(t){var e=t.getGeometry();e.translate(n,i),t.setGeometry(e)})),this.lastCoordinate_=e,this.dispatchEvent(new ee("translating",o,e,this.startCoordinate_,t))}},e.prototype.handleMoveEvent=function(t){var e=t.map.getViewport();this.featuresAtPixel_(t.pixel,t.map)?(e.classList.remove(this.lastCoordinate_?"ol-grab":"ol-grabbing"),e.classList.add(this.lastCoordinate_?"ol-grabbing":"ol-grab")):e.classList.remove("ol-grab","ol-grabbing")},e.prototype.featuresAtPixel_=function(t,e){return e.forEachFeatureAtPixel(t,function(t,e){if(this.filter_(t,e)&&(!this.features_||(0,Lt.q9)(this.features_.getArray(),t)))return t}.bind(this),{layerFilter:this.layerFilter_,hitTolerance:this.hitTolerance_})},e.prototype.getHitTolerance=function(){return this.hitTolerance_},e.prototype.setHitTolerance=function(t){this.hitTolerance_=t},e.prototype.setMap=function(e){var n=this.getMap();t.prototype.setMap.call(this,e),this.updateState_(n)},e.prototype.handleActiveChanged_=function(){this.updateState_(null)},e.prototype.updateState_=function(t){var e=this.getMap(),n=this.getActive();e&&n||(e=e||t)&&e.getViewport().classList.remove("ol-grab","ol-grabbing")},e}(m);function re(t){var e=t||{},n=new r.Z,i=new j.Z(-.005,.05,100);return(void 0===e.altShiftDragRotate||e.altShiftDragRotate)&&n.push(new C),(void 0===e.doubleClickZoom||e.doubleClickZoom)&&n.push(new d({delta:e.zoomDelta,duration:e.zoomDuration})),(void 0===e.dragPan||e.dragPan)&&n.push(new w({onFocusOnly:e.onFocusOnly,kinetic:i})),(void 0===e.pinchRotate||e.pinchRotate)&&n.push(new H),(void 0===e.pinchZoom||e.pinchZoom)&&n.push(new K({duration:e.zoomDuration})),(void 0===e.keyboard||e.keyboard)&&(n.push(new D),n.push(new Z({delta:e.zoomDelta,duration:e.zoomDuration}))),(void 0===e.mouseWheelZoom||e.mouseWheelZoom)&&n.push(new q({onFocusOnly:e.onFocusOnly,duration:e.zoomDuration})),(void 0===e.shiftDragZoom||e.shiftDragZoom)&&n.push(new L({duration:e.zoomDuration})),n}},1414:(t,e,n)=>{"use strict";n.d(e,{Z:()=>h});var r,i=n(6414),o=n(9324),a=n(2637),s=n(9162),l=n(6534),u=n(8007),c=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});const h=function(t){function e(e){var n=t.call(this)||this;n.on,n.once,n.un,n.background_=e.background;var r=(0,l.f0)({},e);return"object"==typeof e.properties&&(delete r.properties,(0,l.f0)(r,e.properties)),r[o.Z.OPACITY]=void 0!==e.opacity?e.opacity:1,(0,s.h)("number"==typeof r[o.Z.OPACITY],64),r[o.Z.VISIBLE]=void 0===e.visible||e.visible,r[o.Z.Z_INDEX]=e.zIndex,r[o.Z.MAX_RESOLUTION]=void 0!==e.maxResolution?e.maxResolution:1/0,r[o.Z.MIN_RESOLUTION]=void 0!==e.minResolution?e.minResolution:0,r[o.Z.MIN_ZOOM]=void 0!==e.minZoom?e.minZoom:-1/0,r[o.Z.MAX_ZOOM]=void 0!==e.maxZoom?e.maxZoom:1/0,n.className_=void 0!==r.className?r.className:"ol-layer",delete r.className,n.setProperties(r),n.state_=null,n}return c(e,t),e.prototype.getBackground=function(){return this.background_},e.prototype.getClassName=function(){return this.className_},e.prototype.getLayerState=function(t){var e=this.state_||{layer:this,managed:void 0===t||t},n=this.getZIndex();return e.opacity=(0,u.uZ)(Math.round(100*this.getOpacity())/100,0,1),e.visible=this.getVisible(),e.extent=this.getExtent(),e.zIndex=void 0!==n||e.managed?n:1/0,e.maxResolution=this.getMaxResolution(),e.minResolution=Math.max(this.getMinResolution(),0),e.minZoom=this.getMinZoom(),e.maxZoom=this.getMaxZoom(),this.state_=e,e},e.prototype.getLayersArray=function(t){return(0,a.O3)()},e.prototype.getLayerStatesArray=function(t){return(0,a.O3)()},e.prototype.getExtent=function(){return this.get(o.Z.EXTENT)},e.prototype.getMaxResolution=function(){return this.get(o.Z.MAX_RESOLUTION)},e.prototype.getMinResolution=function(){return this.get(o.Z.MIN_RESOLUTION)},e.prototype.getMinZoom=function(){return this.get(o.Z.MIN_ZOOM)},e.prototype.getMaxZoom=function(){return this.get(o.Z.MAX_ZOOM)},e.prototype.getOpacity=function(){return this.get(o.Z.OPACITY)},e.prototype.getSourceState=function(){return(0,a.O3)()},e.prototype.getVisible=function(){return this.get(o.Z.VISIBLE)},e.prototype.getZIndex=function(){return this.get(o.Z.Z_INDEX)},e.prototype.setBackground=function(t){this.background_=t,this.changed()},e.prototype.setExtent=function(t){this.set(o.Z.EXTENT,t)},e.prototype.setMaxResolution=function(t){this.set(o.Z.MAX_RESOLUTION,t)},e.prototype.setMinResolution=function(t){this.set(o.Z.MIN_RESOLUTION,t)},e.prototype.setMaxZoom=function(t){this.set(o.Z.MAX_ZOOM,t)},e.prototype.setMinZoom=function(t){this.set(o.Z.MIN_ZOOM,t)},e.prototype.setOpacity=function(t){(0,s.h)("number"==typeof t,64),this.set(o.Z.OPACITY,t)},e.prototype.setVisible=function(t){this.set(o.Z.VISIBLE,t)},e.prototype.setZIndex=function(t){this.set(o.Z.Z_INDEX,t)},e.prototype.disposeInternal=function(){this.state_&&(this.state_.layer=null,this.state_=null),t.prototype.disposeInternal.call(this)},e}(i.Z)},5293:(t,e,n)=>{"use strict";n.d(e,{Z:()=>c});var r,i=n(1716),o=n(6656),a=n(6534),s=n(1457),l=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),u="renderOrder";const c=function(t){function e(e){var n=this,r=e||{},i=(0,a.f0)({},r);return delete i.style,delete i.renderBuffer,delete i.updateWhileAnimating,delete i.updateWhileInteracting,(n=t.call(this,i)||this).declutter_=void 0!==r.declutter&&r.declutter,n.renderBuffer_=void 0!==r.renderBuffer?r.renderBuffer:100,n.style_=null,n.styleFunction_=void 0,n.setStyle(r.style),n.updateWhileAnimating_=void 0!==r.updateWhileAnimating&&r.updateWhileAnimating,n.updateWhileInteracting_=void 0!==r.updateWhileInteracting&&r.updateWhileInteracting,n}return l(e,t),e.prototype.getDeclutter=function(){return this.declutter_},e.prototype.getFeatures=function(e){return t.prototype.getFeatures.call(this,e)},e.prototype.getRenderBuffer=function(){return this.renderBuffer_},e.prototype.getRenderOrder=function(){return this.get(u)},e.prototype.getStyle=function(){return this.style_},e.prototype.getStyleFunction=function(){return this.styleFunction_},e.prototype.getUpdateWhileAnimating=function(){return this.updateWhileAnimating_},e.prototype.getUpdateWhileInteracting=function(){return this.updateWhileInteracting_},e.prototype.renderDeclutter=function(t){t.declutterTree||(t.declutterTree=new o(9)),this.getRenderer().renderDeclutter(t)},e.prototype.setRenderOrder=function(t){this.set(u,t)},e.prototype.setStyle=function(t){this.style_=void 0!==t?t:s.yF,this.styleFunction_=null===t?void 0:(0,s.J$)(this.style_),this.changed()},e}(i.Z)},1716:(t,e,n)=>{"use strict";n.d(e,{Z:()=>d,j:()=>p});var r,i=n(1414),o=n(2001),a=n(9324),s=n(1900),l=n(9162),u=n(6534),c=n(8196),h=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});function p(t,e){if(!t.visible)return!1;var n=e.resolution;if(n<t.minResolution||n>=t.maxResolution)return!1;var r=e.zoom;return r>t.minZoom&&r<=t.maxZoom}const d=function(t){function e(e){var n=this,r=(0,u.f0)({},e);delete r.source,(n=t.call(this,r)||this).on,n.once,n.un,n.mapPrecomposeKey_=null,n.mapRenderKey_=null,n.sourceChangeKey_=null,n.renderer_=null,n.rendered=!1,e.render&&(n.render=e.render),e.map&&n.setMap(e.map),n.addChangeListener(a.Z.SOURCE,n.handleSourcePropertyChange_);var i=e.source?e.source:null;return n.setSource(i),n}return h(e,t),e.prototype.getLayersArray=function(t){var e=t||[];return e.push(this),e},e.prototype.getLayerStatesArray=function(t){var e=t||[];return e.push(this.getLayerState()),e},e.prototype.getSource=function(){return this.get(a.Z.SOURCE)||null},e.prototype.getRenderSource=function(){return this.getSource()},e.prototype.getSourceState=function(){var t=this.getSource();return t?t.getState():"undefined"},e.prototype.handleSourceChange_=function(){this.changed()},e.prototype.handleSourcePropertyChange_=function(){this.sourceChangeKey_&&((0,c.bN)(this.sourceChangeKey_),this.sourceChangeKey_=null);var t=this.getSource();t&&(this.sourceChangeKey_=(0,c.oL)(t,o.Z.CHANGE,this.handleSourceChange_,this)),this.changed()},e.prototype.getFeatures=function(t){return this.renderer_?this.renderer_.getFeatures(t):new Promise((function(t){return t([])}))},e.prototype.getData=function(t){return this.renderer_&&this.rendered?this.renderer_.getData(t):null},e.prototype.render=function(t,e){var n=this.getRenderer();if(n.prepareFrame(t))return this.rendered=!0,n.renderFrame(t,e)},e.prototype.unrender=function(){this.rendered=!1},e.prototype.setMapInternal=function(t){t||this.unrender(),this.set(a.Z.MAP,t)},e.prototype.getMapInternal=function(){return this.get(a.Z.MAP)},e.prototype.setMap=function(t){this.mapPrecomposeKey_&&((0,c.bN)(this.mapPrecomposeKey_),this.mapPrecomposeKey_=null),t||this.changed(),this.mapRenderKey_&&((0,c.bN)(this.mapRenderKey_),this.mapRenderKey_=null),t&&(this.mapPrecomposeKey_=(0,c.oL)(t,s.Z.PRECOMPOSE,(function(t){var e=t.frameState.layerStatesArray,n=this.getLayerState(!1);(0,l.h)(!e.some((function(t){return t.layer===n.layer})),67),e.push(n)}),this),this.mapRenderKey_=(0,c.oL)(this,o.Z.CHANGE,t.render,t),this.changed())},e.prototype.setSource=function(t){this.set(a.Z.SOURCE,t)},e.prototype.getRenderer=function(){return this.renderer_||(this.renderer_=this.createRenderer()),this.renderer_},e.prototype.hasRenderer=function(){return!!this.renderer_},e.prototype.createRenderer=function(){return null},e.prototype.disposeInternal=function(){this.renderer_&&(this.renderer_.dispose(),delete this.renderer_),this.setSource(null),t.prototype.disposeInternal.call(this)},e}(i.Z)},9324:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});const r={OPACITY:"opacity",VISIBLE:"visible",EXTENT:"extent",Z_INDEX:"zIndex",MAX_RESOLUTION:"maxResolution",MIN_RESOLUTION:"minResolution",MAX_ZOOM:"maxZoom",MIN_ZOOM:"minZoom",SOURCE:"source",MAP:"map"}},5952:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>h});var r,i=n(1716),o=n(5629),a=n(6534),s=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});const l=function(t){function e(e){var n=this,r=e||{},i=(0,a.f0)({},r);return delete i.preload,delete i.useInterimTilesOnError,(n=t.call(this,i)||this).on,n.once,n.un,n.setPreload(void 0!==r.preload?r.preload:0),n.setUseInterimTilesOnError(void 0===r.useInterimTilesOnError||r.useInterimTilesOnError),n}return s(e,t),e.prototype.getPreload=function(){return this.get(o.Z.PRELOAD)},e.prototype.setPreload=function(t){this.set(o.Z.PRELOAD,t)},e.prototype.getUseInterimTilesOnError=function(){return this.get(o.Z.USE_INTERIM_TILES_ON_ERROR)},e.prototype.setUseInterimTilesOnError=function(t){this.set(o.Z.USE_INTERIM_TILES_ON_ERROR,t)},e.prototype.getData=function(e){return t.prototype.getData.call(this,e)},e}(i.Z);var u=n(7175),c=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const h=function(t){function e(e){return t.call(this,e)||this}return c(e,t),e.prototype.createRenderer=function(){return new u.Z(this)},e}(l)},5629:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});const r={PRELOAD:"preload",USE_INTERIM_TILES_ON_ERROR:"useInterimTilesOnError"}},7325:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>w});var r,i=n(5293),o=n(7716),a=n(9780),s=n(8783),l=n(6270),u=n(2138),c=n(1091),h=n(6596),p=n(9220),d=n(3545),f=n(2182),g=n(6162),m=n(2637),y=n(2253),v=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});const _=function(t){function e(e){var n=t.call(this,e)||this;return n.boundHandleStyleImageChange_=n.handleStyleImageChange_.bind(n),n.animatingOrInteracting_,n.hitDetectionImageData_=null,n.renderedFeatures_=null,n.renderedRevision_=-1,n.renderedResolution_=NaN,n.renderedExtent_=(0,h.lJ)(),n.wrappedRenderedExtent_=(0,h.lJ)(),n.renderedRotation_,n.renderedCenter_=null,n.renderedProjection_=null,n.renderedRenderOrder_=null,n.replayGroup_=null,n.replayGroupChanged=!0,n.declutterExecutorGroup=null,n.clipping=!0,n.compositionContext_=null,n.opacity_=1,n}return v(e,t),e.prototype.renderWorlds=function(t,e,n){var r=e.extent,i=e.viewState,o=i.center,a=i.resolution,s=i.projection,u=i.rotation,c=s.getExtent(),p=this.getLayer().getSource(),d=e.pixelRatio,f=e.viewHints,g=!(f[l.Z.ANIMATING]||f[l.Z.INTERACTING]),m=this.compositionContext_,y=Math.round(e.size[0]*d),v=Math.round(e.size[1]*d),_=p.getWrapX()&&s.canWrapX(),b=_?(0,h.dz)(c):null,w=_?Math.ceil((r[2]-c[2])/b)+1:1,x=_?Math.floor((r[0]-c[0])/b):0;do{var S=this.getRenderTransform(o,a,u,d,y,v,x*b);t.execute(m,1,S,u,g,void 0,n)}while(++x<w)},e.prototype.setupCompositionContext_=function(){if(1!==this.opacity_){var t=(0,p.E4)(this.context.canvas.width,this.context.canvas.height,a.r);this.compositionContext_=t}else this.compositionContext_=this.context},e.prototype.releaseCompositionContext_=function(){if(1!==this.opacity_){var t=this.context.globalAlpha;this.context.globalAlpha=this.opacity_,this.context.drawImage(this.compositionContext_.canvas,0,0),this.context.globalAlpha=t,(0,p.jy)(this.compositionContext_),a.r.push(this.compositionContext_.canvas),this.compositionContext_=null}},e.prototype.renderDeclutter=function(t){this.declutterExecutorGroup&&(this.setupCompositionContext_(),this.renderWorlds(this.declutterExecutorGroup,t,t.declutterTree),this.releaseCompositionContext_())},e.prototype.renderFrame=function(t,e){var n=t.pixelRatio,r=t.layerStatesArray[t.layerIndex];(0,c.n3)(this.pixelTransform,1/n,1/n),(0,c.nb)(this.inversePixelTransform,this.pixelTransform);var i=(0,c.BB)(this.pixelTransform);this.useContainer(e,i,this.getBackground(t));var o=this.context,a=o.canvas,s=this.replayGroup_,l=this.declutterExecutorGroup;if((!s||s.isEmpty())&&(!l||l.isEmpty()))return null;var u=Math.round(t.size[0]*n),p=Math.round(t.size[1]*n);a.width!=u||a.height!=p?(a.width=u,a.height=p,a.style.transform!==i&&(a.style.transform=i)):this.containerReused||o.clearRect(0,0,u,p),this.preRender(o,t);var d=t.viewState,f=d.projection;this.opacity_=r.opacity,this.setupCompositionContext_();var m=!1,y=!0;if(r.extent&&this.clipping){var v=(0,g.fromUserExtent)(r.extent,f);(m=(y=(0,h.kK)(v,t.extent))&&!(0,h.r4)(v,t.extent))&&this.clipUnrotated(this.compositionContext_,t,v)}return y&&this.renderWorlds(s,t),m&&this.compositionContext_.restore(),this.releaseCompositionContext_(),this.postRender(o,t),this.renderedRotation_!==d.rotation&&(this.renderedRotation_=d.rotation,this.hitDetectionImageData_=null),this.container},e.prototype.getFeatures=function(t){return new Promise(function(e){if(!this.hitDetectionImageData_&&!this.animatingOrInteracting_){var n=[this.context.canvas.width,this.context.canvas.height];(0,c.nn)(this.pixelTransform,n);var r=this.renderedCenter_,i=this.renderedResolution_,o=this.renderedRotation_,a=this.renderedProjection_,s=this.wrappedRenderedExtent_,l=this.getLayer(),p=[],d=n[0]*u.UN,f=n[1]*u.UN;p.push(this.getRenderTransform(r,i,o,u.UN,d,f,0).slice());var g=l.getSource(),m=a.getExtent();if(g.getWrapX()&&a.canWrapX()&&!(0,h.r4)(m,s)){for(var y=s[0],v=(0,h.dz)(m),_=0,b=void 0;y<m[0];)b=v*--_,p.push(this.getRenderTransform(r,i,o,u.UN,d,f,b).slice()),y+=v;for(_=0,y=s[2];y>m[2];)b=v*++_,p.push(this.getRenderTransform(r,i,o,u.UN,d,f,b).slice()),y-=v}this.hitDetectionImageData_=(0,u.TU)(n,p,this.renderedFeatures_,l.getStyleFunction(),s,i,o)}e((0,u.ix)(t,this.renderedFeatures_,this.hitDetectionImageData_))}.bind(this))},e.prototype.forEachFeatureAtCoordinate=function(t,e,n,r,i){var o=this;if(this.replayGroup_){var a,s=e.viewState.resolution,l=e.viewState.rotation,u=this.getLayer(),c={},h=function(t,e,n){var o=(0,m.sq)(t),a=c[o];if(a){if(!0!==a&&n<a.distanceSq){if(0===n)return c[o]=!0,i.splice(i.lastIndexOf(a),1),r(t,u,e);a.geometry=e,a.distanceSq=n}}else{if(0===n)return c[o]=!0,r(t,u,e);i.push(c[o]={feature:t,layer:u,geometry:e,distanceSq:n,callback:r})}},p=[this.replayGroup_];return this.declutterExecutorGroup&&p.push(this.declutterExecutorGroup),p.some((function(r){return a=r.forEachFeatureAtCoordinate(t,s,l,n,h,r===o.declutterExecutorGroup&&e.declutterTree?e.declutterTree.all().map((function(t){return t.value})):null)})),a}},e.prototype.handleFontsChanged=function(){var t=this.getLayer();t.getVisible()&&this.replayGroup_&&t.changed()},e.prototype.handleStyleImageChange_=function(t){this.renderIfReadyAndVisible()},e.prototype.prepareFrame=function(t){var e=this.getLayer(),n=e.getSource();if(!n)return!1;var r=t.viewHints[l.Z.ANIMATING],i=t.viewHints[l.Z.INTERACTING],a=e.getUpdateWhileAnimating(),u=e.getUpdateWhileInteracting();if(this.ready&&!a&&r||!u&&i)return this.animatingOrInteracting_=!0,!0;this.animatingOrInteracting_=!1;var c=t.extent,p=t.viewState,m=p.projection,v=p.resolution,_=t.pixelRatio,b=e.getRevision(),w=e.getRenderBuffer(),x=e.getRenderOrder();void 0===x&&(x=d.eR);var S=p.center.slice(),C=(0,h.f3)(c,w*v),E=C.slice(),k=[C.slice()],A=m.getExtent();if(n.getWrapX()&&m.canWrapX()&&!(0,h.r4)(A,t.extent)){var P=(0,h.dz)(A),T=Math.max((0,h.dz)(C)/2,P);C[0]=A[0]-T,C[2]=A[2]+T,(0,y.Cf)(S,m);var M=(0,h.Cf)(k[0],m);M[0]<A[0]&&M[2]<A[2]?k.push([M[0]+P,M[1],M[2]+P,M[3]]):M[0]>A[0]&&M[2]>A[2]&&k.push([M[0]-P,M[1],M[2]-P,M[3]])}if(this.ready&&this.renderedResolution_==v&&this.renderedRevision_==b&&this.renderedRenderOrder_==x&&(0,h.r4)(this.wrappedRenderedExtent_,C))return(0,f.fS)(this.renderedExtent_,E)||(this.hitDetectionImageData_=null,this.renderedExtent_=E),this.renderedCenter_=S,this.replayGroupChanged=!1,!0;this.replayGroup_=null;var O,R=new o.Z((0,d.Qz)(v,_),C,v,_);this.getLayer().getDeclutter()&&(O=new o.Z((0,d.Qz)(v,_),C,v,_));var I,L=(0,g.getUserProjection)();if(L){for(var F=0,N=k.length;F<N;++F){var D=k[F],z=(0,g.toUserExtent)(D,m);n.loadFeatures(z,(0,g.toUserResolution)(v,m),L)}I=(0,g.getTransformFromProjections)(L,m)}else for(F=0,N=k.length;F<N;++F)n.loadFeatures(k[F],v,m);var Z=(0,d.se)(v,_),j=!0,G=function(t){var n,r=t.getStyleFunction()||e.getStyleFunction();if(r&&(n=r(t,v)),n){var i=this.renderFeature(t,Z,n,R,I,O);j=j&&!i}}.bind(this),B=(0,g.toUserExtent)(C,m),U=n.getFeaturesInExtent(B);for(x&&U.sort(x),F=0,N=U.length;F<N;++F)G(U[F]);this.renderedFeatures_=U,this.ready=j;var V=R.finish(),q=new s.Z(C,v,_,n.getOverlaps(),V,e.getRenderBuffer());return O&&(this.declutterExecutorGroup=new s.Z(C,v,_,n.getOverlaps(),O.finish(),e.getRenderBuffer())),this.renderedResolution_=v,this.renderedRevision_=b,this.renderedRenderOrder_=x,this.renderedExtent_=E,this.wrappedRenderedExtent_=C,this.renderedCenter_=S,this.renderedProjection_=m,this.replayGroup_=q,this.hitDetectionImageData_=null,this.replayGroupChanged=!0,!0},e.prototype.renderFeature=function(t,e,n,r,i,o){if(!n)return!1;var a=!1;if(Array.isArray(n))for(var s=0,l=n.length;s<l;++s)a=(0,d.Pn)(r,t,n[s],e,this.boundHandleStyleImageChange_,i,o)||a;else a=(0,d.Pn)(r,t,n,e,this.boundHandleStyleImageChange_,i,o);return a},e}(a.Z);var b=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const w=function(t){function e(e){return t.call(this,e)||this}return b(e,t),e.prototype.createRenderer=function(){return new _(this)},e}(i.Z)},3936:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>P});var r=n(5293),i=n(7716),o=n(8783),a=n(7175),s=n(3584);const l="hybrid",u="vector";var c,h=n(6270),p=n(2138),d=n(1091),f=n(6596),g=n(3545),m=n(2637),y=n(8691),v=n(2253),_=(c=function(t,e){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},c(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}c(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),b={image:["Polygon","Circle","LineString","Image","Text"],hybrid:["Polygon","LineString"],vector:[]},w={hybrid:["Image","Text","Default"],vector:["Polygon","Circle","LineString","Image","Text","Default"]},x=function(t){function e(e){var n=t.call(this,e)||this;return n.boundHandleStyleImageChange_=n.handleStyleImageChange_.bind(n),n.renderedLayerRevision_,n.renderedPixelToCoordinateTransform_=null,n.renderedRotation_,n.tmpTransform_=(0,d.Ue)(),n}return _(e,t),e.prototype.prepareTile=function(t,e,n){var r,i=t.getState();return i!==s.Z.LOADED&&i!==s.Z.ERROR||(this.updateExecutorGroup_(t,e,n),this.tileImageNeedsRender_(t)&&(r=!0)),r},e.prototype.getTile=function(e,n,r,i){var o=i.pixelRatio,a=i.viewState,s=a.resolution,l=a.projection,c=this.getLayer(),p=c.getSource().getTile(e,n,r,o,l),d=i.viewHints,f=!(d[h.Z.ANIMATING]||d[h.Z.INTERACTING]);return!f&&p.wantedResolution||(p.wantedResolution=s),this.prepareTile(p,o,l)&&(f||Date.now()-i.time<8)&&c.getRenderMode()!==u&&this.renderTileImage_(p,i),t.prototype.getTile.call(this,e,n,r,i)},e.prototype.isDrawableTile=function(e){var n=this.getLayer();return t.prototype.isDrawableTile.call(this,e)&&(n.getRenderMode()===u?(0,m.sq)(n)in e.executorGroups:e.hasContext(n))},e.prototype.getTileImage=function(t){return t.getImage(this.getLayer())},e.prototype.prepareFrame=function(e){var n=this.getLayer().getRevision();return this.renderedLayerRevision_!==n&&(this.renderedLayerRevision_=n,this.renderedTiles.length=0),t.prototype.prepareFrame.call(this,e)},e.prototype.updateExecutorGroup_=function(t,e,n){var r=this.getLayer(),a=r.getRevision(),l=r.getRenderOrder()||null,c=t.wantedResolution,h=t.getReplayState(r);if(h.dirty||h.renderedResolution!==c||h.renderedRevision!=a||h.renderedRenderOrder!=l){var p=r.getSource(),d=r.getDeclutter(),y=p.getTileGrid(),v=p.getTileGridForProjection(n).getTileCoordExtent(t.wrappedTileCoord),_=p.getSourceTiles(e,n,t),b=(0,m.sq)(r);delete t.hitDetectionImageData[b],t.executorGroups[b]=[],d&&(t.declutterExecutorGroups[b]=[]),h.dirty=!1;for(var w=function(n,a){var m=_[n];if(m.getState()!=s.Z.LOADED)return"continue";var w=m.tileCoord,S=y.getTileCoordExtent(w),C=(0,f.Ed)(v,S),E=(0,f.f3)(C,r.getRenderBuffer()*c,x.tmpExtent),k=(0,f.fS)(S,C)?null:E,A=new i.Z(0,E,c,e),P=d?new i.Z(0,C,c,e):void 0,T=(0,g.se)(c,e),M=function(t){var e,n=t.getStyleFunction()||r.getStyleFunction();if(n&&(e=n(t,c)),e){var i=this.renderFeature(t,T,e,A,P);h.dirty=h.dirty||i}},O=m.getFeatures();l&&l!==h.renderedRenderOrder&&O.sort(l);for(var R=0,I=O.length;R<I;++R){var L=O[R];k&&!(0,f.kK)(k,L.getGeometry().getExtent())||M.call(x,L)}var F=A.finish(),N=r.getRenderMode()!==u&&d&&1===_.length?null:C,D=new o.Z(N,c,e,p.getOverlaps(),F,r.getRenderBuffer());if(t.executorGroups[b].push(D),P){var z=new o.Z(null,c,e,p.getOverlaps(),P.finish(),r.getRenderBuffer());t.declutterExecutorGroups[b].push(z)}},x=this,S=0,C=_.length;S<C;++S)w(S);h.renderedRevision=a,h.renderedRenderOrder=l,h.renderedResolution=c}},e.prototype.forEachFeatureAtCoordinate=function(t,e,n,r,i){var o=e.viewState.resolution,a=e.viewState.rotation;n=null==n?0:n;var s=this.getLayer(),l=s.getSource().getTileGridForProjection(e.viewState.projection),u=(0,f.hI)([t]);(0,f.f3)(u,o*n,u);for(var c,h={},p=function(t,e,n){var o=t.getId();void 0===o&&(o=(0,m.sq)(t));var a=h[o];if(a){if(!0!==a&&n<a.distanceSq){if(0===n)return h[o]=!0,i.splice(i.lastIndexOf(a),1),r(t,s,e);a.geometry=e,a.distanceSq=n}}else{if(0===n)return h[o]=!0,r(t,s,e);i.push(h[o]={feature:t,layer:s,geometry:e,distanceSq:n,callback:r})}},d=this.renderedTiles,g=function(r,i){var h=d[r],g=l.getTileCoordExtent(h.wrappedTileCoord);if(!(0,f.kK)(g,u))return"continue";var y=(0,m.sq)(s),v=[h.executorGroups[y]],_=h.declutterExecutorGroups[y];_&&v.push(_),v.some((function(r){for(var i=r===_?e.declutterTree.all().map((function(t){return t.value})):null,s=0,l=r.length;s<l;++s){var u=r[s];if(c=u.forEachFeatureAtCoordinate(t,o,a,n,p,i))return!0}}))},y=0,v=d.length;!c&&y<v;++y)g(y);return c},e.prototype.getFeatures=function(t){return new Promise(function(e,n){for(var r,i=this.getLayer(),o=(0,m.sq)(i),a=i.getSource(),l=this.renderedProjection,u=l.getExtent(),c=this.renderedResolution,h=a.getTileGridForProjection(l),g=(0,d.nn)(this.renderedPixelToCoordinateTransform_,t.slice()),_=h.getTileCoordForCoordAndResolution(g,c),b=0,w=this.renderedTiles.length;b<w;++b)if(_.toString()===this.renderedTiles[b].tileCoord.toString()){if((r=this.renderedTiles[b]).getState()===s.Z.LOADED){var x=h.getTileCoordExtent(r.tileCoord);a.getWrapX()&&l.canWrapX()&&!(0,f.r4)(u,x)&&(0,v.Cf)(g,l);break}r=void 0}if(!r||r.loadingSourceTiles>0)e([]);else{var S=h.getTileCoordExtent(r.wrappedTileCoord),C=(0,f.rL)(S),E=[(g[0]-C[0])/c,(C[1]-g[1])/c],k=r.getSourceTiles().reduce((function(t,e){return t.concat(e.getFeatures())}),[]),A=r.hitDetectionImageData[o];if(!A&&!this.animatingOrInteracting_){var P=(0,y.Pq)(h.getTileSize(h.getZForResolution(c,a.zDirection))),T=this.renderedRotation_,M=[this.getRenderTransform(h.getTileCoordCenter(r.wrappedTileCoord),c,0,p.UN,P[0]*p.UN,P[1]*p.UN,0)];A=(0,p.TU)(P,M,k,i.getStyleFunction(),h.getTileCoordExtent(r.wrappedTileCoord),r.getReplayState(i).renderedResolution,T),r.hitDetectionImageData[o]=A}e((0,p.ix)(E,k,A))}}.bind(this))},e.prototype.handleFontsChanged=function(){var t=this.getLayer();t.getVisible()&&void 0!==this.renderedLayerRevision_&&t.changed()},e.prototype.handleStyleImageChange_=function(t){this.renderIfReadyAndVisible()},e.prototype.renderDeclutter=function(t){var e=this.context,n=e.globalAlpha;e.globalAlpha=this.getLayer().getOpacity();for(var r=t.viewHints,i=!(r[h.Z.ANIMATING]||r[h.Z.INTERACTING]),o=this.renderedTiles,a=0,s=o.length;a<s;++a){var l=o[a],u=l.declutterExecutorGroups[(0,m.sq)(this.getLayer())];if(u)for(var c=u.length-1;c>=0;--c)u[c].execute(this.context,1,this.getTileRenderTransform(l,t),t.viewState.rotation,i,void 0,t.declutterTree)}e.globalAlpha=n},e.prototype.getTileRenderTransform=function(t,e){var n=e.pixelRatio,r=e.viewState,i=r.center,o=r.resolution,a=r.rotation,s=e.size,l=Math.round(s[0]*n),u=Math.round(s[1]*n),c=this.getLayer().getSource().getTileGridForProjection(e.viewState.projection),h=t.tileCoord,p=c.getTileCoordExtent(t.wrappedTileCoord),f=c.getTileCoordExtent(h,this.tmpExtent)[0]-p[0];return(0,d.Jp)((0,d.bA)(this.inversePixelTransform.slice(),1/n,1/n),this.getRenderTransform(i,o,a,n,l,u,f))},e.prototype.renderFrame=function(e,n){var r=e.viewHints,i=!(r[h.Z.ANIMATING]||r[h.Z.INTERACTING]);t.prototype.renderFrame.call(this,e,n),this.renderedPixelToCoordinateTransform_=e.pixelToCoordinateTransform.slice(),this.renderedRotation_=e.viewState.rotation;var o=this.getLayer(),a=o.getRenderMode(),s=this.context,l=s.globalAlpha;s.globalAlpha=o.getOpacity();for(var u=w[a],c=e.viewState,p=c.rotation,d=o.getSource(),g=d.getTileGridForProjection(c.projection).getZForResolution(c.resolution,d.zDirection),y=this.renderedTiles,v=[],_=[],b=!0,x=y.length-1;x>=0;--x){var S=y[x];b=b&&!S.getReplayState(o).dirty;var C=S.executorGroups[(0,m.sq)(o)].filter((function(t){return t.hasExecutors(u)}));if(0!==C.length){var E=this.getTileRenderTransform(S,e),k=S.tileCoord[0],A=!1,P=C[0].getClipCoords(E);if(P){for(var T=0,M=v.length;T<M;++T)if(g!==k&&k<_[T]){var O=v[T];(0,f.kK)([P[0],P[3],P[4],P[7]],[O[0],O[3],O[4],O[7]])&&(A||(s.save(),A=!0),s.beginPath(),s.moveTo(P[0],P[1]),s.lineTo(P[2],P[3]),s.lineTo(P[4],P[5]),s.lineTo(P[6],P[7]),s.moveTo(O[6],O[7]),s.lineTo(O[4],O[5]),s.lineTo(O[2],O[3]),s.lineTo(O[0],O[1]),s.clip())}v.push(P),_.push(k)}for(var R=0,I=C.length;R<I;++R)C[R].execute(s,1,E,p,i,u);A&&s.restore()}}return s.globalAlpha=l,this.ready=b,this.container},e.prototype.renderFeature=function(t,e,n,r,i){if(!n)return!1;var o=!1;if(Array.isArray(n))for(var a=0,s=n.length;a<s;++a)o=(0,g.Pn)(r,t,n[a],e,this.boundHandleStyleImageChange_,void 0,i)||o;else o=(0,g.Pn)(r,t,n,e,this.boundHandleStyleImageChange_,void 0,i);return o},e.prototype.tileImageNeedsRender_=function(t){var e=this.getLayer();if(e.getRenderMode()===u)return!1;var n=t.getReplayState(e),r=e.getRevision(),i=t.wantedResolution;return n.renderedTileResolution!==i||n.renderedTileRevision!==r},e.prototype.renderTileImage_=function(t,e){var n=this.getLayer(),r=t.getReplayState(n),i=n.getRevision(),o=t.executorGroups[(0,m.sq)(n)];r.renderedTileRevision=i;var a=t.wrappedTileCoord,s=a[0],l=n.getSource(),u=e.pixelRatio,c=e.viewState.projection,h=l.getTileGridForProjection(c),p=h.getResolution(t.tileCoord[0]),f=e.pixelRatio/t.wantedResolution*p,g=h.getResolution(s),y=t.getContext(n);u=Math.round(Math.max(u,f/u));var v=l.getTilePixelSize(s,u,c);y.canvas.width=v[0],y.canvas.height=v[1];var _=u/f;if(1!==_){var w=(0,d.mc)(this.tmpTransform_);(0,d.bA)(w,_,_),y.setTransform.apply(y,w)}var x=h.getTileCoordExtent(a,this.tmpExtent),S=f/g,C=(0,d.mc)(this.tmpTransform_);(0,d.bA)(C,S,-S),(0,d.Iu)(C,-x[0],-x[3]);for(var E=0,k=o.length;E<k;++E)o[E].execute(y,_,C,0,!0,b[n.getRenderMode()]);r.renderedTileResolution=t.wantedResolution},e}(a.Z);const S=x;var C=n(5629),E=n(9162),k=n(6534),A=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const P=function(t){function e(e){var n=this,r=e||{},i=(0,k.f0)({},r);delete i.preload,delete i.useInterimTilesOnError,(n=t.call(this,i)||this).on,n.once,n.un,"image"===r.renderMode&&(console.warn('renderMode: "image" is deprecated. Option ignored.'),r.renderMode=void 0);var o=r.renderMode||l;return(0,E.h)(o==l||o==u,28),n.renderMode_=o,n.setPreload(r.preload?r.preload:0),n.setUseInterimTilesOnError(void 0===r.useInterimTilesOnError||r.useInterimTilesOnError),n.getBackground,n.setBackground,n}return A(e,t),e.prototype.createRenderer=function(){return new S(this)},e.prototype.getFeatures=function(e){return t.prototype.getFeatures.call(this,e)},e.prototype.getRenderMode=function(){return this.renderMode_},e.prototype.getPreload=function(){return this.get(C.Z.PRELOAD)},e.prototype.getUseInterimTilesOnError=function(){return this.get(C.Z.USE_INTERIM_TILES_ON_ERROR)},e.prototype.setPreload=function(t){this.set(C.Z.PRELOAD,t)},e.prototype.setUseInterimTilesOnError=function(t){this.set(C.Z.USE_INTERIM_TILES_ON_ERROR,t)},e}(r.Z)},8007:(t,e,n)=>{"use strict";function r(t,e,n){return Math.min(Math.max(t,e),n)}n.d(e,{$W:()=>h,GW:()=>g,NM:()=>f,SV:()=>l,Ux:()=>u,Yr:()=>c,bI:()=>s,f9:()=>i,k3:()=>o,mD:()=>m,rU:()=>a,t7:()=>p,uZ:()=>r});var i="cosh"in Math?Math.cosh:function(t){var e=Math.exp(t);return(e+1/e)/2},o="log2"in Math?Math.log2:function(t){return Math.log(t)*Math.LOG2E};function a(t,e,n,r,i,o){var a=i-n,l=o-r;if(0!==a||0!==l){var u=((t-n)*a+(e-r)*l)/(a*a+l*l);u>1?(n=i,r=o):u>0&&(n+=a*u,r+=l*u)}return s(t,e,n,r)}function s(t,e,n,r){var i=n-t,o=r-e;return i*i+o*o}function l(t){for(var e=t.length,n=0;n<e;n++){for(var r=n,i=Math.abs(t[n][n]),o=n+1;o<e;o++){var a=Math.abs(t[o][n]);a>i&&(i=a,r=o)}if(0===i)return null;var s=t[r];t[r]=t[n],t[n]=s;for(var l=n+1;l<e;l++)for(var u=-t[l][n]/t[n][n],c=n;c<e+1;c++)n==c?t[l][c]=0:t[l][c]+=u*t[n][c]}for(var h=new Array(e),p=e-1;p>=0;p--){h[p]=t[p][e]/t[p][p];for(var d=p-1;d>=0;d--)t[d][e]-=t[d][p]*h[p]}return h}function u(t){return 180*t/Math.PI}function c(t){return t*Math.PI/180}function h(t,e){var n=t%e;return n*e<0?n+e:n}function p(t,e,n){return t+n*(e-t)}function d(t,e){var n=Math.pow(10,e);return Math.round(t*n)/n}function f(t,e){return Math.round(d(t,e))}function g(t,e){return Math.floor(d(t,e))}function m(t,e){return Math.ceil(d(t,e))}},3022:(t,e,n)=>{"use strict";n.d(e,{R6:()=>s});var r,i,o=n(2637),a=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});function s(t,e,n,r){var i=document.createElement("script"),a="olc_"+(0,o.sq)(e);function s(){delete window[a],i.parentNode.removeChild(i)}i.async=!0,i.src=t+(-1==t.indexOf("?")?"?":"&")+(r||"callback")+"="+a;var l=setTimeout((function(){s(),n&&n()}),1e4);window[a]=function(t){clearTimeout(l),s(),e(t)},document.head.appendChild(i)}i=Error,a((function(t){var e=this,n="Unexpected response status: "+t.status;return(e=i.call(this,n)||this).name="ResponseError",e.response=t,e}),i),function(t){a((function(e){var n=t.call(this,"Failed to issue request")||this;return n.name="ClientError",n.client=e,n}),t)}(Error)},6534:(t,e,n)=>{"use strict";n.d(e,{KX:()=>o,ZH:()=>i,f0:()=>r,xb:()=>a});var r="function"==typeof Object.assign?Object.assign:function(t,e){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(t),r=1,i=arguments.length;r<i;++r){var o=arguments[r];if(null!=o)for(var a in o)o.hasOwnProperty(a)&&(n[a]=o[a])}return n};function i(t){for(var e in t)delete t[e]}var o="function"==typeof Object.values?Object.values:function(t){var e=[];for(var n in t)e.push(t[n]);return e};function a(t){var e;for(e in t)return!1;return!e}},1856:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});const r={POINTERMOVE:"pointermove",POINTERDOWN:"pointerdown",POINTERUP:"pointerup",POINTEROVER:"pointerover",POINTEROUT:"pointerout",POINTERENTER:"pointerenter",POINTERLEAVE:"pointerleave",POINTERCANCEL:"pointercancel"}},6162:(t,e,n)=>{"use strict";n.r(e),n.d(e,{METERS_PER_UNIT:()=>o.Wm,Projection:()=>i.Z,addCommon:()=>lt,addCoordinateTransforms:()=>G,addEquivalentProjections:()=>N,addEquivalentTransforms:()=>D,addProjection:()=>R,addProjections:()=>I,clearAllProjections:()=>z,clearUserProjection:()=>$,cloneTransform:()=>M,createProjection:()=>Z,createSafeCoordinateTransform:()=>st,createTransformFromCoordinateTransform:()=>j,disableCoordinateWarning:()=>T,equivalent:()=>V,fromLonLat:()=>B,fromUserCoordinate:()=>nt,fromUserExtent:()=>it,fromUserResolution:()=>at,get:()=>L,getPointResolution:()=>F,getTransform:()=>W,getTransformFromProjections:()=>q,getUserProjection:()=>J,identityTransform:()=>O,setUserProjection:()=>Q,toLonLat:()=>U,toUserCoordinate:()=>et,toUserExtent:()=>rt,toUserResolution:()=>ot,transform:()=>H,transformExtent:()=>X,transformWithProjections:()=>K,useGeographic:()=>tt});var r,i=n(4710),o=n(2418),a=n(8007),s=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),l=6378137,u=Math.PI*l,c=[-u,-u,u,u],h=[-180,-85,180,85],p=l*Math.log(Math.tan(Math.PI/2)),d=function(t){function e(e){return t.call(this,{code:e,units:o.ZP.METERS,extent:c,global:!0,worldExtent:h,getPointResolution:function(t,e){return t/(0,a.f9)(e[1]/l)}})||this}return s(e,t),e}(i.Z),f=[new d("EPSG:3857"),new d("EPSG:102100"),new d("EPSG:102113"),new d("EPSG:900913"),new d("http://www.opengis.net/def/crs/EPSG/0/3857"),new d("http://www.opengis.net/gml/srs/epsg.xml#3857")];function g(t,e,n){var r=t.length,i=n>1?n:2,o=e;void 0===o&&(o=i>2?t.slice():new Array(r));for(var a=0;a<r;a+=i){o[a]=u*t[a]/180;var s=l*Math.log(Math.tan(Math.PI*(+t[a+1]+90)/360));s>p?s=p:s<-p&&(s=-p),o[a+1]=s}return o}function m(t,e,n){var r=t.length,i=n>1?n:2,o=e;void 0===o&&(o=i>2?t.slice():new Array(r));for(var a=0;a<r;a+=i)o[a]=180*t[a]/u,o[a+1]=360*Math.atan(Math.exp(t[a+1]/l))/Math.PI-90;return o}var y=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),v=[-180,-90,180,90],_=6378137*Math.PI/180,b=function(t){function e(e,n){return t.call(this,{code:e,units:o.ZP.DEGREES,extent:v,axisOrientation:n,global:!0,metersPerUnit:_,worldExtent:v})||this}return y(e,t),e}(i.Z),w=[new b("CRS:84"),new b("EPSG:4326","neu"),new b("urn:ogc:def:crs:OGC:1.3:CRS84"),new b("urn:ogc:def:crs:OGC:2:84"),new b("http://www.opengis.net/def/crs/OGC/1.3/CRS84"),new b("http://www.opengis.net/gml/srs/epsg.xml#4326","neu"),new b("http://www.opengis.net/def/crs/EPSG/0/4326","neu")],x={},S={};function C(t,e,n){var r=t.getCode(),i=e.getCode();r in S||(S[r]={}),S[r][i]=n}var E=n(6596),k=n(2253),A=n(1659),P=!0;function T(t){P=!(void 0===t||t)}function M(t,e,n){var r;if(void 0!==e){for(var i=0,o=t.length;i<o;++i)e[i]=t[i];r=e}else r=t.slice();return r}function O(t,e,n){if(void 0!==e&&t!==e){for(var r=0,i=t.length;r<i;++r)e[r]=t[r];t=e}return t}function R(t){!function(t,e){x[t]=e}(t.getCode(),t),C(t,t,M)}function I(t){t.forEach(R)}function L(t){return"string"==typeof t?x[e=t]||x[e.replace(/urn:(x-)?ogc:def:crs:EPSG:(.*:)?(\w+)$/,"EPSG:$3")]||null:t||null;var e}function F(t,e,n,r){var i,a=(t=L(t)).getPointResolutionFunc();if(a)i=a(e,n),r&&r!==t.getUnits()&&(l=t.getMetersPerUnit())&&(i=i*l/o.Wm[r]);else{var s=t.getUnits();if(s==o.ZP.DEGREES&&!r||r==o.ZP.DEGREES)i=e;else{var l,u=q(t,L("EPSG:4326"));if(u===O&&s!==o.ZP.DEGREES)i=e*t.getMetersPerUnit();else{var c=[n[0]-e/2,n[1],n[0]+e/2,n[1],n[0],n[1]-e/2,n[0],n[1]+e/2];c=u(c,c,2),i=((0,A.Sp)(c.slice(0,2),c.slice(2,4))+(0,A.Sp)(c.slice(4,6),c.slice(6,8)))/2}void 0!==(l=r?o.Wm[r]:t.getMetersPerUnit())&&(i/=l)}}return i}function N(t){I(t),t.forEach((function(e){t.forEach((function(t){e!==t&&C(e,t,M)}))}))}function D(t,e,n,r){t.forEach((function(t){e.forEach((function(e){C(t,e,n),C(e,t,r)}))}))}function z(){x={},S={}}function Z(t,e){return t?"string"==typeof t?L(t):t:L(e)}function j(t){return function(e,n,r){for(var i=e.length,o=void 0!==r?r:2,a=void 0!==n?n:new Array(i),s=0;s<i;s+=o)for(var l=t(e.slice(s,s+o)),u=l.length,c=0,h=o;c<h;++c)a[s+c]=c>=u?e[s+c]:l[c];return a}}function G(t,e,n,r){var i=L(t),o=L(e);C(i,o,j(n)),C(o,i,j(r))}function B(t,e){return T(),H(t,"EPSG:4326",void 0!==e?e:"EPSG:3857")}function U(t,e){var n=H(t,void 0!==e?e:"EPSG:3857","EPSG:4326"),r=n[0];return(r<-180||r>180)&&(n[0]=(0,a.$W)(r+180,360)-180),n}function V(t,e){if(t===e)return!0;var n=t.getUnits()===e.getUnits();return(t.getCode()===e.getCode()||q(t,e)===M)&&n}function q(t,e){var n=function(t,e){var n;return t in S&&e in S[t]&&(n=S[t][e]),n}(t.getCode(),e.getCode());return n||(n=O),n}function W(t,e){return q(L(t),L(e))}function H(t,e,n){return W(e,n)(t,void 0,t.length)}function X(t,e,n,r){var i=W(e,n);return(0,E.Ne)(t,i,void 0,r)}function K(t,e,n){return q(e,n)(t)}var Y=null;function Q(t){Y=L(t)}function $(){Y=null}function J(){return Y}function tt(){Q("EPSG:4326")}function et(t,e){return Y?H(t,e,Y):t}function nt(t,e){return Y?H(t,Y,e):(P&&!(0,k.fS)(t,[0,0])&&t[0]>=-180&&t[0]<=180&&t[1]>=-90&&t[1]<=90&&(P=!1,console.warn("Call useGeographic() from ol/proj once to work with [longitude, latitude] coordinates.")),t)}function rt(t,e){return Y?X(t,e,Y):t}function it(t,e){return Y?X(t,Y,e):t}function ot(t,e){if(!Y)return t;var n=L(e).getUnits(),r=Y.getUnits();return n&&r?t*o.Wm[n]/o.Wm[r]:t}function at(t,e){if(!Y)return t;var n=L(e).getUnits(),r=Y.getUnits();return n&&r?t*o.Wm[r]/o.Wm[n]:t}function st(t,e,n){return function(r){var i,o;if(t.canWrapX()){var s=t.getExtent(),l=(0,E.dz)(s);r=r.slice(0),(o=(0,k.jk)(r,t,l))&&(r[0]=r[0]-o*l),r[0]=(0,a.uZ)(r[0],s[0],s[2]),r[1]=(0,a.uZ)(r[1],s[1],s[3]),i=n(r)}else i=n(r);return o&&e.canWrapX()&&(i[0]+=o*(0,E.dz)(e.getExtent())),i}}function lt(){N(f),N(w),D(w,f,g,m)}lt()},4710:(t,e,n)=>{"use strict";n.d(e,{Z:()=>i});var r=n(2418);const i=function(){function t(t){this.code_=t.code,this.units_=t.units,this.extent_=void 0!==t.extent?t.extent:null,this.worldExtent_=void 0!==t.worldExtent?t.worldExtent:null,this.axisOrientation_=void 0!==t.axisOrientation?t.axisOrientation:"enu",this.global_=void 0!==t.global&&t.global,this.canWrapX_=!(!this.global_||!this.extent_),this.getPointResolutionFunc_=t.getPointResolution,this.defaultTileGrid_=null,this.metersPerUnit_=t.metersPerUnit}return t.prototype.canWrapX=function(){return this.canWrapX_},t.prototype.getCode=function(){return this.code_},t.prototype.getExtent=function(){return this.extent_},t.prototype.getUnits=function(){return this.units_},t.prototype.getMetersPerUnit=function(){return this.metersPerUnit_||r.Wm[this.units_]},t.prototype.getWorldExtent=function(){return this.worldExtent_},t.prototype.getAxisOrientation=function(){return this.axisOrientation_},t.prototype.isGlobal=function(){return this.global_},t.prototype.setGlobal=function(t){this.global_=t,this.canWrapX_=!(!t||!this.extent_)},t.prototype.getDefaultTileGrid=function(){return this.defaultTileGrid_},t.prototype.setDefaultTileGrid=function(t){this.defaultTileGrid_=t},t.prototype.setExtent=function(t){this.extent_=t,this.canWrapX_=!(!this.global_||!t)},t.prototype.setWorldExtent=function(t){this.worldExtent_=t},t.prototype.setGetPointResolution=function(t){this.getPointResolutionFunc_=t},t.prototype.getPointResolutionFunc=function(){return this.getPointResolutionFunc_},t}()},2418:(t,e,n)=>{"use strict";n.d(e,{Ne:()=>o,Wm:()=>a,ZP:()=>s});var r={RADIANS:"radians",DEGREES:"degrees",FEET:"ft",METERS:"m",PIXELS:"pixels",TILE_PIXELS:"tile-pixels",USFEET:"us-ft"},i={9001:r.METERS,9002:r.FEET,9003:r.USFEET,9101:r.RADIANS,9102:r.DEGREES};function o(t){return i[t]}var a={};a[r.RADIANS]=6370997/(2*Math.PI),a[r.DEGREES]=2*Math.PI*6370997/360,a[r.FEET]=.3048,a[r.METERS]=1,a[r.USFEET]=1200/3937;const s=r},7299:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var r,i=n(9025),o=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});const a=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.inversePixelTransform=n,o.frameState=r,o.context=i,o}return o(e,t),e}(i.ZP)},1900:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});const r={PRERENDER:"prerender",POSTRENDER:"postrender",PRECOMPOSE:"precompose",POSTCOMPOSE:"postcompose",RENDERCOMPLETE:"rendercomplete"}},3514:(t,e,n)=>{"use strict";n.d(e,{ZP:()=>d});var r=n(1091),i=n(6596),o=n(2182),a=n(1300),s=n(6162),l=n(1574),u=n(4532),c=n(7529),h=(0,r.Ue)(),p=function(){function t(t,e,n,r,i){this.styleFunction,this.extent_,this.id_=i,this.type_=t,this.flatCoordinates_=e,this.flatInteriorPoints_=null,this.flatMidpoints_=null,this.ends_=n,this.properties_=r}return t.prototype.get=function(t){return this.properties_[t]},t.prototype.getExtent=function(){return this.extent_||(this.extent_="Point"===this.type_?(0,i.HK)(this.flatCoordinates_):(0,i.GN)(this.flatCoordinates_,0,this.flatCoordinates_.length,2)),this.extent_},t.prototype.getFlatInteriorPoint=function(){if(!this.flatInteriorPoints_){var t=(0,i.qg)(this.getExtent());this.flatInteriorPoints_=(0,a.X)(this.flatCoordinates_,0,this.ends_,2,t,0)}return this.flatInteriorPoints_},t.prototype.getFlatInteriorPoints=function(){if(!this.flatInteriorPoints_){var t=(0,u.E)(this.flatCoordinates_,0,this.ends_,2);this.flatInteriorPoints_=(0,a.U)(this.flatCoordinates_,0,this.ends_,2,t)}return this.flatInteriorPoints_},t.prototype.getFlatMidpoint=function(){return this.flatMidpoints_||(this.flatMidpoints_=(0,l.WW)(this.flatCoordinates_,0,this.flatCoordinates_.length,2,.5)),this.flatMidpoints_},t.prototype.getFlatMidpoints=function(){if(!this.flatMidpoints_){this.flatMidpoints_=[];for(var t=this.flatCoordinates_,e=0,n=this.ends_,r=0,i=n.length;r<i;++r){var a=n[r],s=(0,l.WW)(t,e,a,2,.5);(0,o.l7)(this.flatMidpoints_,s),e=a}}return this.flatMidpoints_},t.prototype.getId=function(){return this.id_},t.prototype.getOrientedFlatCoordinates=function(){return this.flatCoordinates_},t.prototype.getGeometry=function(){return this},t.prototype.getSimplifiedGeometry=function(t){return this},t.prototype.simplifyTransformed=function(t,e){return this},t.prototype.getProperties=function(){return this.properties_},t.prototype.getStride=function(){return 2},t.prototype.getStyleFunction=function(){return this.styleFunction},t.prototype.getType=function(){return this.type_},t.prototype.transform=function(t){var e=(t=(0,s.get)(t)).getExtent(),n=t.getWorldExtent();if(e&&n){var o=(0,i.Cr)(n)/(0,i.Cr)(e);(0,r.qC)(h,n[0],n[3],o,-o,0,0,0),(0,c.vT)(this.flatCoordinates_,0,this.flatCoordinates_.length,2,h,this.flatCoordinates_)}},t.prototype.getEnds=function(){return this.ends_},t}();p.prototype.getEndss=p.prototype.getEnds,p.prototype.getFlatCoordinates=p.prototype.getOrientedFlatCoordinates;const d=p},8297:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});const r=function(){function t(){}return t.prototype.drawCustom=function(t,e,n,r){},t.prototype.drawGeometry=function(t){},t.prototype.setStyle=function(t){},t.prototype.drawCircle=function(t,e){},t.prototype.drawFeature=function(t,e){},t.prototype.drawGeometryCollection=function(t,e){},t.prototype.drawLineString=function(t,e){},t.prototype.drawMultiLineString=function(t,e){},t.prototype.drawMultiPoint=function(t,e){},t.prototype.drawMultiPolygon=function(t,e){},t.prototype.drawPoint=function(t,e){},t.prototype.drawPolygon=function(t,e){},t.prototype.drawText=function(t,e){},t.prototype.setFillStrokeStyle=function(t,e){},t.prototype.setImageStyle=function(t,e){},t.prototype.setTextStyle=function(t,e){},t}()},474:(t,e,n)=>{"use strict";n.d(e,{Df:()=>u,He:()=>d,Kd:()=>M,PH:()=>y,Qx:()=>k,Tx:()=>m,V4:()=>g,X9:()=>p,Zw:()=>O,_f:()=>R,bL:()=>c,mb:()=>h,oB:()=>_,rc:()=>f,ru:()=>v,sG:()=>w,yC:()=>b});var r=n(6414),i=n(952),o=n(7119),a=n(6534),s=n(9220),l=n(8055),u="10px sans-serif",c="#000",h="round",p=[],d=0,f="round",g=10,m="#000",y="center",v="middle",_=[0,0,0,0],b=1,w=new r.Z;(new i.Z).setSize=function(){console.warn("labelCache is deprecated.")};var x,S,C=null,E={},k=function(){var t,e,n="32px ",r=["monospace","serif"],i=r.length,o="wmytzilWMYTZIL@#/&?$%10";function s(t,a,s){for(var l=!0,u=0;u<i;++u){var c=r[u];if(e=T(t+" "+a+" "+n+c,o),s!=c){var h=T(t+" "+a+" "+n+s+","+c,o);l=l&&h!=e}}return!!l}function u(){for(var e=!0,n=w.getKeys(),r=0,i=n.length;r<i;++r){var o=n[r];w.get(o)<100&&(s.apply(this,o.split("\n"))?((0,a.ZH)(E),C=null,x=void 0,w.set(o,100)):(w.set(o,w.get(o)+1,!0),e=!1))}e&&(clearInterval(t),t=void 0)}return function(e){var n=(0,l.p)(e);if(n)for(var r=n.families,i=0,o=r.length;i<o;++i){var a=r[i],c=n.style+"\n"+n.weight+"\n"+a;void 0===w.get(c)&&(w.set(c,100,!0),s(n.style,n.weight,a)||(w.set(c,0,!0),void 0===t&&(t=setInterval(u,32))))}}}(),A=function(t){var e=E[t];if(null==e){if(o.Id){var n=(0,l.p)(t),r=P(t,"Žg");e=(isNaN(Number(n.lineHeight))?1.2:Number(n.lineHeight))*(r.actualBoundingBoxAscent+r.actualBoundingBoxDescent)}else S||((S=document.createElement("div")).innerHTML="M",S.style.minHeight="0",S.style.maxHeight="none",S.style.height="auto",S.style.padding="0",S.style.border="none",S.style.position="absolute",S.style.display="block",S.style.left="-99999px"),S.style.font=t,document.body.appendChild(S),e=S.offsetHeight,document.body.removeChild(S);E[t]=e}return e};function P(t,e){return C||(C=(0,s.E4)(1,1)),t!=x&&(C.font=t,x=C.font),C.measureText(e)}function T(t,e){return P(t,e).width}function M(t,e,n){if(e in n)return n[e];var r=e.split("\n").reduce((function(e,n){return Math.max(e,T(t,n))}),0);return n[e]=r,r}function O(t,e){for(var n=[],r=[],i=[],o=0,a=0,s=0,l=0,u=0,c=e.length;u<=c;u+=2){var h=e[u];if("\n"!==h&&u!==c){var p=e[u+1]||t.font,d=T(p,h);n.push(d),a+=d;var f=A(p);r.push(f),l=Math.max(l,f)}else o=Math.max(o,a),i.push(a),a=0,s+=l}return{width:o,height:s,widths:n,heights:r,lineWidths:i}}function R(t,e,n,r,i,o,a,s,l,u,c){t.save(),1!==n&&(t.globalAlpha*=n),e&&t.setTransform.apply(t,e),r.contextInstructions?(t.translate(l,u),t.scale(c[0],c[1]),function(t,e){for(var n=t.contextInstructions,r=0,i=n.length;r<i;r+=2)Array.isArray(n[r+1])?e[n[r]].apply(e,n[r+1]):e[n[r]]=n[r+1]}(r,t)):c[0]<0||c[1]<0?(t.translate(l,u),t.scale(c[0],c[1]),t.drawImage(r,i,o,a,s,0,0,a,s)):t.drawImage(r,i,o,a,s,l,u,a*c[0],s*c[1]),t.restore()}},9889:(t,e,n)=>{"use strict";n.d(e,{Z:()=>d});var r,i=n(4751),o=n(2524),a=n(8297),s=n(4907),l=n(6596),u=n(474),c=n(2182),h=n(7488),p=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});const d=function(t){function e(e,n,r,i){var o=t.call(this)||this;return o.tolerance=e,o.maxExtent=n,o.pixelRatio=i,o.maxLineWidth=0,o.resolution=r,o.beginGeometryInstruction1_=null,o.beginGeometryInstruction2_=null,o.bufferedMaxExtent_=null,o.instructions=[],o.coordinates=[],o.tmpCoordinate_=[],o.hitDetectionInstructions=[],o.state={},o}return p(e,t),e.prototype.applyPixelRatio=function(t){var e=this.pixelRatio;return 1==e?t:t.map((function(t){return t*e}))},e.prototype.appendFlatPointCoordinates=function(t,e){for(var n=this.getBufferedMaxExtent(),r=this.tmpCoordinate_,i=this.coordinates,o=i.length,a=0,s=t.length;a<s;a+=e)r[0]=t[a],r[1]=t[a+1],(0,l.b8)(n,r)&&(i[o++]=r[0],i[o++]=r[1]);return o},e.prototype.appendFlatLineCoordinates=function(t,e,n,r,i,a){var s=this.coordinates,u=s.length,c=this.getBufferedMaxExtent();a&&(e+=r);var h,p,d,f=t[e],g=t[e+1],m=this.tmpCoordinate_,y=!0;for(h=e+r;h<n;h+=r)m[0]=t[h],m[1]=t[h+1],(d=(0,l.pX)(c,m))!==p?(y&&(s[u++]=f,s[u++]=g,y=!1),s[u++]=m[0],s[u++]=m[1]):d===o.Z.INTERSECTING?(s[u++]=m[0],s[u++]=m[1],y=!1):y=!0,f=m[0],g=m[1],p=d;return(i&&y||h===e+r)&&(s[u++]=f,s[u++]=g),u},e.prototype.drawCustomCoordinates_=function(t,e,n,r,i){for(var o=0,a=n.length;o<a;++o){var s=n[o],l=this.appendFlatLineCoordinates(t,e,s,r,!1,!1);i.push(l),e=s}return e},e.prototype.drawCustom=function(t,e,n,r){this.beginGeometry(t,e);var o,a,s,l,u,c=t.getType(),p=t.getStride(),d=this.coordinates.length;switch(c){case"MultiPolygon":o=t.getOrientedFlatCoordinates(),l=[];var f=t.getEndss();u=0;for(var g=0,m=f.length;g<m;++g){var y=[];u=this.drawCustomCoordinates_(o,u,f[g],p,y),l.push(y)}this.instructions.push([i.ZP.CUSTOM,d,l,t,n,h.ug]),this.hitDetectionInstructions.push([i.ZP.CUSTOM,d,l,t,r||n,h.ug]);break;case"Polygon":case"MultiLineString":s=[],o="Polygon"==c?t.getOrientedFlatCoordinates():t.getFlatCoordinates(),u=this.drawCustomCoordinates_(o,0,t.getEnds(),p,s),this.instructions.push([i.ZP.CUSTOM,d,s,t,n,h.o1]),this.hitDetectionInstructions.push([i.ZP.CUSTOM,d,s,t,r||n,h.o1]);break;case"LineString":case"Circle":o=t.getFlatCoordinates(),a=this.appendFlatLineCoordinates(o,0,o.length,p,!1,!1),this.instructions.push([i.ZP.CUSTOM,d,a,t,n,h.Ml]),this.hitDetectionInstructions.push([i.ZP.CUSTOM,d,a,t,r||n,h.Ml]);break;case"MultiPoint":o=t.getFlatCoordinates(),(a=this.appendFlatPointCoordinates(o,p))>d&&(this.instructions.push([i.ZP.CUSTOM,d,a,t,n,h.Ml]),this.hitDetectionInstructions.push([i.ZP.CUSTOM,d,a,t,r||n,h.Ml]));break;case"Point":o=t.getFlatCoordinates(),this.coordinates.push(o[0],o[1]),a=this.coordinates.length,this.instructions.push([i.ZP.CUSTOM,d,a,t,n]),this.hitDetectionInstructions.push([i.ZP.CUSTOM,d,a,t,r||n])}this.endGeometry(e)},e.prototype.beginGeometry=function(t,e){this.beginGeometryInstruction1_=[i.ZP.BEGIN_GEOMETRY,e,0,t],this.instructions.push(this.beginGeometryInstruction1_),this.beginGeometryInstruction2_=[i.ZP.BEGIN_GEOMETRY,e,0,t],this.hitDetectionInstructions.push(this.beginGeometryInstruction2_)},e.prototype.finish=function(){return{instructions:this.instructions,hitDetectionInstructions:this.hitDetectionInstructions,coordinates:this.coordinates}},e.prototype.reverseHitDetectionInstructions=function(){var t,e=this.hitDetectionInstructions;e.reverse();var n,r,o=e.length,a=-1;for(t=0;t<o;++t)(r=(n=e[t])[0])==i.ZP.END_GEOMETRY?a=t:r==i.ZP.BEGIN_GEOMETRY&&(n[2]=t,(0,c.FZ)(this.hitDetectionInstructions,a,t),a=-1)},e.prototype.setFillStrokeStyle=function(t,e){var n=this.state;if(t){var r=t.getColor();n.fillStyle=(0,s.y)(r||u.bL)}else n.fillStyle=void 0;if(e){var i=e.getColor();n.strokeStyle=(0,s.y)(i||u.Tx);var o=e.getLineCap();n.lineCap=void 0!==o?o:u.mb;var a=e.getLineDash();n.lineDash=a?a.slice():u.X9;var l=e.getLineDashOffset();n.lineDashOffset=l||u.He;var c=e.getLineJoin();n.lineJoin=void 0!==c?c:u.rc;var h=e.getWidth();n.lineWidth=void 0!==h?h:u.yC;var p=e.getMiterLimit();n.miterLimit=void 0!==p?p:u.V4,n.lineWidth>this.maxLineWidth&&(this.maxLineWidth=n.lineWidth,this.bufferedMaxExtent_=null)}else n.strokeStyle=void 0,n.lineCap=void 0,n.lineDash=null,n.lineDashOffset=void 0,n.lineJoin=void 0,n.lineWidth=void 0,n.miterLimit=void 0},e.prototype.createFill=function(t){var e=t.fillStyle,n=[i.ZP.SET_FILL_STYLE,e];return"string"!=typeof e&&n.push(!0),n},e.prototype.applyStroke=function(t){this.instructions.push(this.createStroke(t))},e.prototype.createStroke=function(t){return[i.ZP.SET_STROKE_STYLE,t.strokeStyle,t.lineWidth*this.pixelRatio,t.lineCap,t.lineJoin,t.miterLimit,this.applyPixelRatio(t.lineDash),t.lineDashOffset*this.pixelRatio]},e.prototype.updateFillStyle=function(t,e){var n=t.fillStyle;"string"==typeof n&&t.currentFillStyle==n||(void 0!==n&&this.instructions.push(e.call(this,t)),t.currentFillStyle=n)},e.prototype.updateStrokeStyle=function(t,e){var n=t.strokeStyle,r=t.lineCap,i=t.lineDash,o=t.lineDashOffset,a=t.lineJoin,s=t.lineWidth,l=t.miterLimit;(t.currentStrokeStyle!=n||t.currentLineCap!=r||i!=t.currentLineDash&&!(0,c.fS)(t.currentLineDash,i)||t.currentLineDashOffset!=o||t.currentLineJoin!=a||t.currentLineWidth!=s||t.currentMiterLimit!=l)&&(void 0!==n&&e.call(this,t),t.currentStrokeStyle=n,t.currentLineCap=r,t.currentLineDash=i,t.currentLineDashOffset=o,t.currentLineJoin=a,t.currentLineWidth=s,t.currentMiterLimit=l)},e.prototype.endGeometry=function(t){this.beginGeometryInstruction1_[2]=this.instructions.length,this.beginGeometryInstruction1_=null,this.beginGeometryInstruction2_[2]=this.hitDetectionInstructions.length,this.beginGeometryInstruction2_=null;var e=[i.ZP.END_GEOMETRY,t];this.instructions.push(e),this.hitDetectionInstructions.push(e)},e.prototype.getBufferedMaxExtent=function(){if(!this.bufferedMaxExtent_&&(this.bufferedMaxExtent_=(0,l.d9)(this.maxExtent),this.maxLineWidth>0)){var t=this.resolution*(this.maxLineWidth+1)/2;(0,l.f3)(this.bufferedMaxExtent_,t,this.bufferedMaxExtent_)}return this.bufferedMaxExtent_},e}(a.Z)},7716:(t,e,n)=>{"use strict";n.d(e,{Z:()=>m});var r,i=n(9889),o=n(4751),a=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});const s=function(t){function e(e,n,r,i){var o=t.call(this,e,n,r,i)||this;return o.hitDetectionImage_=null,o.image_=null,o.imagePixelRatio_=void 0,o.anchorX_=void 0,o.anchorY_=void 0,o.height_=void 0,o.opacity_=void 0,o.originX_=void 0,o.originY_=void 0,o.rotateWithView_=void 0,o.rotation_=void 0,o.scale_=void 0,o.width_=void 0,o.declutterMode_=void 0,o.declutterImageWithText_=void 0,o}return a(e,t),e.prototype.drawPoint=function(t,e){if(this.image_){this.beginGeometry(t,e);var n=t.getFlatCoordinates(),r=t.getStride(),i=this.coordinates.length,a=this.appendFlatPointCoordinates(n,r);this.instructions.push([o.ZP.DRAW_IMAGE,i,a,this.image_,this.anchorX_*this.imagePixelRatio_,this.anchorY_*this.imagePixelRatio_,Math.ceil(this.height_*this.imagePixelRatio_),this.opacity_,this.originX_*this.imagePixelRatio_,this.originY_*this.imagePixelRatio_,this.rotateWithView_,this.rotation_,[this.scale_[0]*this.pixelRatio/this.imagePixelRatio_,this.scale_[1]*this.pixelRatio/this.imagePixelRatio_],Math.ceil(this.width_*this.imagePixelRatio_),this.declutterMode_,this.declutterImageWithText_]),this.hitDetectionInstructions.push([o.ZP.DRAW_IMAGE,i,a,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_,this.declutterMode_,this.declutterImageWithText_]),this.endGeometry(e)}},e.prototype.drawMultiPoint=function(t,e){if(this.image_){this.beginGeometry(t,e);var n=t.getFlatCoordinates(),r=t.getStride(),i=this.coordinates.length,a=this.appendFlatPointCoordinates(n,r);this.instructions.push([o.ZP.DRAW_IMAGE,i,a,this.image_,this.anchorX_*this.imagePixelRatio_,this.anchorY_*this.imagePixelRatio_,Math.ceil(this.height_*this.imagePixelRatio_),this.opacity_,this.originX_*this.imagePixelRatio_,this.originY_*this.imagePixelRatio_,this.rotateWithView_,this.rotation_,[this.scale_[0]*this.pixelRatio/this.imagePixelRatio_,this.scale_[1]*this.pixelRatio/this.imagePixelRatio_],Math.ceil(this.width_*this.imagePixelRatio_),this.declutterMode_,this.declutterImageWithText_]),this.hitDetectionInstructions.push([o.ZP.DRAW_IMAGE,i,a,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_,this.declutterMode_,this.declutterImageWithText_]),this.endGeometry(e)}},e.prototype.finish=function(){return this.reverseHitDetectionInstructions(),this.anchorX_=void 0,this.anchorY_=void 0,this.hitDetectionImage_=null,this.image_=null,this.imagePixelRatio_=void 0,this.height_=void 0,this.scale_=void 0,this.opacity_=void 0,this.originX_=void 0,this.originY_=void 0,this.rotateWithView_=void 0,this.rotation_=void 0,this.width_=void 0,t.prototype.finish.call(this)},e.prototype.setImageStyle=function(t,e){var n=t.getAnchor(),r=t.getSize(),i=t.getOrigin();this.imagePixelRatio_=t.getPixelRatio(this.pixelRatio),this.anchorX_=n[0],this.anchorY_=n[1],this.hitDetectionImage_=t.getHitDetectionImage(),this.image_=t.getImage(this.pixelRatio),this.height_=r[1],this.opacity_=t.getOpacity(),this.originX_=i[0],this.originY_=i[1],this.rotateWithView_=t.getRotateWithView(),this.rotation_=t.getRotation(),this.scale_=t.getScaleArray(),this.width_=r[0],this.declutterMode_=t.getDeclutterMode(),this.declutterImageWithText_=e},e}(i.Z);var l=n(474),u=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const c=function(t){function e(e,n,r,i){return t.call(this,e,n,r,i)||this}return u(e,t),e.prototype.drawFlatCoordinates_=function(t,e,n,r){var i=this.coordinates.length,a=this.appendFlatLineCoordinates(t,e,n,r,!1,!1),s=[o.ZP.MOVE_TO_LINE_TO,i,a];return this.instructions.push(s),this.hitDetectionInstructions.push(s),n},e.prototype.drawLineString=function(t,e){var n=this.state,r=n.strokeStyle,i=n.lineWidth;if(void 0!==r&&void 0!==i){this.updateStrokeStyle(n,this.applyStroke),this.beginGeometry(t,e),this.hitDetectionInstructions.push([o.ZP.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,l.X9,l.He],o.$O);var a=t.getFlatCoordinates(),s=t.getStride();this.drawFlatCoordinates_(a,0,a.length,s),this.hitDetectionInstructions.push(o.Yc),this.endGeometry(e)}},e.prototype.drawMultiLineString=function(t,e){var n=this.state,r=n.strokeStyle,i=n.lineWidth;if(void 0!==r&&void 0!==i){this.updateStrokeStyle(n,this.applyStroke),this.beginGeometry(t,e),this.hitDetectionInstructions.push([o.ZP.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,n.lineDash,n.lineDashOffset],o.$O);for(var a=t.getEnds(),s=t.getFlatCoordinates(),l=t.getStride(),u=0,c=0,h=a.length;c<h;++c)u=this.drawFlatCoordinates_(s,u,a[c],l);this.hitDetectionInstructions.push(o.Yc),this.endGeometry(e)}},e.prototype.finish=function(){var e=this.state;return null!=e.lastStroke&&e.lastStroke!=this.coordinates.length&&this.instructions.push(o.Yc),this.reverseHitDetectionInstructions(),this.state=null,t.prototype.finish.call(this)},e.prototype.applyStroke=function(e){null!=e.lastStroke&&e.lastStroke!=this.coordinates.length&&(this.instructions.push(o.Yc),e.lastStroke=this.coordinates.length),e.lastStroke=0,t.prototype.applyStroke.call(this,e),this.instructions.push(o.$O)},e}(i.Z);var h=n(9855),p=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const d=function(t){function e(e,n,r,i){return t.call(this,e,n,r,i)||this}return p(e,t),e.prototype.drawFlatCoordinatess_=function(t,e,n,r){var i=this.state,a=void 0!==i.fillStyle,s=void 0!==i.strokeStyle,l=n.length;this.instructions.push(o.$O),this.hitDetectionInstructions.push(o.$O);for(var u=0;u<l;++u){var c=n[u],h=this.coordinates.length,p=this.appendFlatLineCoordinates(t,e,c,r,!0,!s),d=[o.ZP.MOVE_TO_LINE_TO,h,p];this.instructions.push(d),this.hitDetectionInstructions.push(d),s&&(this.instructions.push(o.s3),this.hitDetectionInstructions.push(o.s3)),e=c}return a&&(this.instructions.push(o.gO),this.hitDetectionInstructions.push(o.gO)),s&&(this.instructions.push(o.Yc),this.hitDetectionInstructions.push(o.Yc)),e},e.prototype.drawCircle=function(t,e){var n=this.state,r=n.fillStyle,i=n.strokeStyle;if(void 0!==r||void 0!==i){this.setFillStrokeStyles_(),this.beginGeometry(t,e),void 0!==n.fillStyle&&this.hitDetectionInstructions.push([o.ZP.SET_FILL_STYLE,l.bL]),void 0!==n.strokeStyle&&this.hitDetectionInstructions.push([o.ZP.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,n.lineDash,n.lineDashOffset]);var a=t.getFlatCoordinates(),s=t.getStride(),u=this.coordinates.length;this.appendFlatLineCoordinates(a,0,a.length,s,!1,!1);var c=[o.ZP.CIRCLE,u];this.instructions.push(o.$O,c),this.hitDetectionInstructions.push(o.$O,c),void 0!==n.fillStyle&&(this.instructions.push(o.gO),this.hitDetectionInstructions.push(o.gO)),void 0!==n.strokeStyle&&(this.instructions.push(o.Yc),this.hitDetectionInstructions.push(o.Yc)),this.endGeometry(e)}},e.prototype.drawPolygon=function(t,e){var n=this.state,r=n.fillStyle,i=n.strokeStyle;if(void 0!==r||void 0!==i){this.setFillStrokeStyles_(),this.beginGeometry(t,e),void 0!==n.fillStyle&&this.hitDetectionInstructions.push([o.ZP.SET_FILL_STYLE,l.bL]),void 0!==n.strokeStyle&&this.hitDetectionInstructions.push([o.ZP.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,n.lineDash,n.lineDashOffset]);var a=t.getEnds(),s=t.getOrientedFlatCoordinates(),u=t.getStride();this.drawFlatCoordinatess_(s,0,a,u),this.endGeometry(e)}},e.prototype.drawMultiPolygon=function(t,e){var n=this.state,r=n.fillStyle,i=n.strokeStyle;if(void 0!==r||void 0!==i){this.setFillStrokeStyles_(),this.beginGeometry(t,e),void 0!==n.fillStyle&&this.hitDetectionInstructions.push([o.ZP.SET_FILL_STYLE,l.bL]),void 0!==n.strokeStyle&&this.hitDetectionInstructions.push([o.ZP.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,n.lineDash,n.lineDashOffset]);for(var a=t.getEndss(),s=t.getOrientedFlatCoordinates(),u=t.getStride(),c=0,h=0,p=a.length;h<p;++h)c=this.drawFlatCoordinatess_(s,c,a[h],u);this.endGeometry(e)}},e.prototype.finish=function(){this.reverseHitDetectionInstructions(),this.state=null;var e=this.tolerance;if(0!==e)for(var n=this.coordinates,r=0,i=n.length;r<i;++r)n[r]=(0,h.uZ)(n[r],e);return t.prototype.finish.call(this)},e.prototype.setFillStrokeStyles_=function(){var t=this.state;void 0!==t.fillStyle&&this.updateFillStyle(t,this.createFill),void 0!==t.strokeStyle&&this.updateStrokeStyle(t,this.applyStroke)},e}(i.Z);var f=n(4458),g={Circle:d,Default:i.Z,Image:s,LineString:c,Polygon:d,Text:f.Z};const m=function(){function t(t,e,n,r){this.tolerance_=t,this.maxExtent_=e,this.pixelRatio_=r,this.resolution_=n,this.buildersByZIndex_={}}return t.prototype.finish=function(){var t={};for(var e in this.buildersByZIndex_){t[e]=t[e]||{};var n=this.buildersByZIndex_[e];for(var r in n){var i=n[r].finish();t[e][r]=i}}return t},t.prototype.getBuilder=function(t,e){var n=void 0!==t?t.toString():"0",r=this.buildersByZIndex_[n];void 0===r&&(r={},this.buildersByZIndex_[n]=r);var i=r[e];return void 0===i&&(i=new(0,g[e])(this.tolerance_,this.maxExtent_,this.resolution_,this.pixelRatio_),r[e]=i),i},t}()},8783:(t,e,n)=>{"use strict";n.d(e,{Z:()=>T});var r=n(4751),i=n(4458),o=n(7119),a=n(1091),s=n(6596),l=n(474),u=n(8007),c=n(7529);function h(t,e,n,r,i,o,a,s,l,h,p,d){var f=t[e],g=t[e+1],m=0,y=0,v=0,_=0;function b(){m=f,y=g,f=t[e+=r],g=t[e+1],_+=v,v=Math.sqrt((f-m)*(f-m)+(g-y)*(g-y))}do{b()}while(e<n-r&&_+v<o);for(var w=0===v?0:(o-_)/v,x=(0,u.t7)(m,f,w),S=(0,u.t7)(y,g,w),C=e-r,E=_,k=o+s*l(h,i,p);e<n-r&&_+v<k;)b();w=0===v?0:(k-_)/v;var A,P=(0,u.t7)(m,f,w),T=(0,u.t7)(y,g,w);if(d){var M=[x,S,P,T];(0,c.U1)(M,0,4,2,d,M,M),A=M[0]>M[2]}else A=x>P;var O,R=Math.PI,I=[],L=C+r===e;if(v=0,_=E,f=t[e=C],g=t[e+1],L){b(),O=Math.atan2(g-y,f-m),A&&(O+=O>0?-R:R);var F=(P+x)/2,N=(T+S)/2;return I[0]=[F,N,(k-o)/2,O,i],I}for(var D=0,z=(i=i.replace(/\n/g," ")).length;D<z;){b();var Z=Math.atan2(g-y,f-m);if(A&&(Z+=Z>0?-R:R),void 0!==O){var j=Z-O;if(j+=j>R?-2*R:j<-R?2*R:0,Math.abs(j)>a)return null}O=Z;for(var G=D,B=0;D<z;++D){var U=s*l(h,i[A?z-D-1:D],p);if(e+r<n&&_+v<o+B+U/2)break;B+=U}if(D!==G){var V=A?i.substring(z-G,z-D):i.substring(G,D);w=0===v?0:(o+B/2-_)/v,F=(0,u.t7)(m,f,w),N=(0,u.t7)(y,g,w),I.push([F,N,B/2,Z,V]),o+=B}}return I}var p=n(2182),d=n(1410),f=(0,s.lJ)(),g=[],m=[],y=[],v=[];function _(t){return t[3].declutterBox}var b=new RegExp("["+String.fromCharCode(1425)+"-"+String.fromCharCode(2303)+String.fromCharCode(64285)+"-"+String.fromCharCode(65023)+String.fromCharCode(65136)+"-"+String.fromCharCode(65276)+String.fromCharCode(67584)+"-"+String.fromCharCode(69631)+String.fromCharCode(124928)+"-"+String.fromCharCode(126975)+"]");function w(t,e){return"start"!==e&&"end"!==e||b.test(t)||(e="start"===e?"left":"right"),i.I[e]}function x(t,e,n){return n>0&&t.push("\n",""),t.push(e,""),t}const S=function(){function t(t,e,n,r){this.overlaps=n,this.pixelRatio=e,this.resolution=t,this.alignFill_,this.instructions=r.instructions,this.coordinates=r.coordinates,this.coordinateCache_={},this.renderedTransform_=(0,a.Ue)(),this.hitDetectionInstructions=r.hitDetectionInstructions,this.pixelCoordinates_=null,this.viewRotation_=0,this.fillStates=r.fillStates||{},this.strokeStates=r.strokeStates||{},this.textStates=r.textStates||{},this.widths_={},this.labels_={}}return t.prototype.createLabel=function(t,e,n,r){var a=t+e+n+r;if(this.labels_[a])return this.labels_[a];var s=r?this.strokeStates[r]:null,u=n?this.fillStates[n]:null,c=this.textStates[e],h=this.pixelRatio,p=[c.scale[0]*h,c.scale[1]*h],d=Array.isArray(t),f=c.justify?i.I[c.justify]:w(Array.isArray(t)?t[0]:t,c.textAlign||l.PH),g=r&&s.lineWidth?s.lineWidth:0,m=d?t:t.split("\n").reduce(x,[]),y=(0,l.Zw)(c,m),v=y.width,_=y.height,b=y.widths,S=y.heights,C=y.lineWidths,E=v+g,k=[],A=(E+2)*p[0],P=(_+g)*p[1],T={width:A<0?Math.floor(A):Math.ceil(A),height:P<0?Math.floor(P):Math.ceil(P),contextInstructions:k};1==p[0]&&1==p[1]||k.push("scale",p),r&&(k.push("strokeStyle",s.strokeStyle),k.push("lineWidth",g),k.push("lineCap",s.lineCap),k.push("lineJoin",s.lineJoin),k.push("miterLimit",s.miterLimit),(o.Id?OffscreenCanvasRenderingContext2D:CanvasRenderingContext2D).prototype.setLineDash&&(k.push("setLineDash",[s.lineDash]),k.push("lineDashOffset",s.lineDashOffset))),n&&k.push("fillStyle",u.fillStyle),k.push("textBaseline","middle"),k.push("textAlign","center");for(var M,O=.5-f,R=f*E+O*g,I=[],L=[],F=0,N=0,D=0,z=0,Z=0,j=m.length;Z<j;Z+=2){var G=m[Z];if("\n"!==G){var B=m[Z+1]||c.font;B!==M&&(r&&I.push("font",B),n&&L.push("font",B),M=B),F=Math.max(F,S[D]);var U=[G,R+O*b[D]+f*(b[D]-C[z]),.5*(g+F)+N];R+=b[D],r&&I.push("strokeText",U),n&&L.push("fillText",U),++D}else N+=F,F=0,R=f*E+O*g,++z}return Array.prototype.push.apply(k,I),Array.prototype.push.apply(k,L),this.labels_[a]=T,T},t.prototype.replayTextBackground_=function(t,e,n,r,i,o,a){t.beginPath(),t.moveTo.apply(t,e),t.lineTo.apply(t,n),t.lineTo.apply(t,r),t.lineTo.apply(t,i),t.lineTo.apply(t,e),o&&(this.alignFill_=o[2],this.fill_(t)),a&&(this.setStrokeStyle_(t,a),t.stroke())},t.prototype.calculateImageOrLabelDimensions_=function(t,e,n,r,i,o,l,u,c,h,p,d,_,b,w,x){var S,C=n-(l*=d[0]),E=r-(u*=d[1]),k=i+c>t?t-c:i,A=o+h>e?e-h:o,P=b[3]+k*d[0]+b[1],T=b[0]+A*d[1]+b[2],M=C-b[3],O=E-b[0];return(w||0!==p)&&(g[0]=M,v[0]=M,g[1]=O,m[1]=O,m[0]=M+P,y[0]=m[0],y[1]=O+T,v[1]=y[1]),0!==p?(S=(0,a.qC)((0,a.Ue)(),n,r,1,1,p,-n,-r),(0,a.nn)(S,g),(0,a.nn)(S,m),(0,a.nn)(S,y),(0,a.nn)(S,v),(0,s.T9)(Math.min(g[0],m[0],y[0],v[0]),Math.min(g[1],m[1],y[1],v[1]),Math.max(g[0],m[0],y[0],v[0]),Math.max(g[1],m[1],y[1],v[1]),f)):(0,s.T9)(Math.min(M,M+P),Math.min(O,O+T),Math.max(M,M+P),Math.max(O,O+T),f),_&&(C=Math.round(C),E=Math.round(E)),{drawImageX:C,drawImageY:E,drawImageW:k,drawImageH:A,originX:c,originY:h,declutterBox:{minX:f[0],minY:f[1],maxX:f[2],maxY:f[3],value:x},canvasTransform:S,scale:d}},t.prototype.replayImageOrLabel_=function(t,e,n,r,i,o,a){var s=!(!o&&!a),u=r.declutterBox,c=t.canvas,h=a?a[2]*r.scale[0]/2:0;return u.minX-h<=c.width/e&&u.maxX+h>=0&&u.minY-h<=c.height/e&&u.maxY+h>=0&&(s&&this.replayTextBackground_(t,g,m,y,v,o,a),(0,l._f)(t,r.canvasTransform,i,n,r.originX,r.originY,r.drawImageW,r.drawImageH,r.drawImageX,r.drawImageY,r.scale)),!0},t.prototype.fill_=function(t){if(this.alignFill_){var e=(0,a.nn)(this.renderedTransform_,[0,0]),n=512*this.pixelRatio;t.save(),t.translate(e[0]%n,e[1]%n),t.rotate(this.viewRotation_)}t.fill(),this.alignFill_&&t.restore()},t.prototype.setStrokeStyle_=function(t,e){t.strokeStyle=e[1],t.lineWidth=e[2],t.lineCap=e[3],t.lineJoin=e[4],t.miterLimit=e[5],t.setLineDash&&(t.lineDashOffset=e[7],t.setLineDash(e[6]))},t.prototype.drawLabelWithPointPlacement_=function(t,e,n,r){var o=this.textStates[e],a=this.createLabel(t,e,r,n),s=this.strokeStates[n],u=this.pixelRatio,c=w(Array.isArray(t)?t[0]:t,o.textAlign||l.PH),h=i.I[o.textBaseline||l.ru],p=s&&s.lineWidth?s.lineWidth:0;return{label:a,anchorX:c*(a.width/u-2*o.scale[0])+2*(.5-c)*p,anchorY:h*a.height/u+2*(.5-h)*p}},t.prototype.execute_=function(t,e,n,o,u,f,g,m){var y;this.pixelCoordinates_&&(0,p.fS)(n,this.renderedTransform_)?y=this.pixelCoordinates_:(this.pixelCoordinates_||(this.pixelCoordinates_=[]),y=(0,c.vT)(this.coordinates,0,this.coordinates.length,2,n,this.pixelCoordinates_),(0,a.lk)(this.renderedTransform_,n));for(var v,b,w,x,S,C,E,k,A,P,T,M,O,R,I,L,F=0,N=o.length,D=0,z=0,Z=0,j=null,G=null,B=this.coordinateCache_,U=this.viewRotation_,V=Math.round(1e12*Math.atan2(-n[1],n[0]))/1e12,q={context:t,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:U},W=this.instructions!=o||this.overlaps?0:200;F<N;){var H=o[F];switch(H[0]){case r.ZP.BEGIN_GEOMETRY:O=H[1],L=H[3],O.getGeometry()?void 0===g||(0,s.kK)(g,L.getExtent())?++F:F=H[2]+1:F=H[2];break;case r.ZP.BEGIN_PATH:z>W&&(this.fill_(t),z=0),Z>W&&(t.stroke(),Z=0),z||Z||(t.beginPath(),x=NaN,S=NaN),++F;break;case r.ZP.CIRCLE:var X=y[D=H[1]],K=y[D+1],Y=y[D+2]-X,Q=y[D+3]-K,$=Math.sqrt(Y*Y+Q*Q);t.moveTo(X+$,K),t.arc(X,K,$,0,2*Math.PI,!0),++F;break;case r.ZP.CLOSE_PATH:t.closePath(),++F;break;case r.ZP.CUSTOM:D=H[1],v=H[2];var J=H[3],tt=H[4],et=6==H.length?H[5]:void 0;q.geometry=J,q.feature=O,F in B||(B[F]=[]);var nt=B[F];et?et(y,D,v,2,nt):(nt[0]=y[D],nt[1]=y[D+1],nt.length=2),tt(nt,q),++F;break;case r.ZP.DRAW_IMAGE:D=H[1],v=H[2],k=H[3],b=H[4],w=H[5];var rt=H[6],it=H[7],ot=H[8],at=H[9],st=H[10],lt=H[11],ut=H[12],ct=H[13],ht=H[14],pt=H[15];if(!k&&H.length>=20){A=H[19],P=H[20],T=H[21],M=H[22];var dt=this.drawLabelWithPointPlacement_(A,P,T,M);k=dt.label,H[3]=k;var ft=H[23];b=(dt.anchorX-ft)*this.pixelRatio,H[4]=b;var gt=H[24];w=(dt.anchorY-gt)*this.pixelRatio,H[5]=w,rt=k.height,H[6]=rt,ct=k.width,H[13]=ct}var mt=void 0;H.length>25&&(mt=H[25]);var yt=void 0,vt=void 0,_t=void 0;H.length>17?(yt=H[16],vt=H[17],_t=H[18]):(yt=l.oB,vt=!1,_t=!1),st&&V?lt+=U:st||V||(lt-=U);for(var bt=0;D<v;D+=2)if(!(mt&&mt[bt++]<ct/this.pixelRatio)){var wt=[t,e,k,Xt=this.calculateImageOrLabelDimensions_(k.width,k.height,y[D],y[D+1],ct,rt,b,w,ot,at,lt,ut,u,yt,vt||_t,O),it,vt?j:null,_t?G:null];if(m){if("none"===ht)continue;if("obstacle"===ht){m.insert(Xt.declutterBox);continue}var xt=void 0,St=void 0;if(pt){var Ct=v-D;if(!pt[Ct]){pt[Ct]=wt;continue}if(xt=pt[Ct],delete pt[Ct],St=_(xt),m.collides(St))continue}if(m.collides(Xt.declutterBox))continue;xt&&(m.insert(St),this.replayImageOrLabel_.apply(this,xt)),m.insert(Xt.declutterBox)}this.replayImageOrLabel_.apply(this,wt)}++F;break;case r.ZP.DRAW_CHARS:var Et=H[1],kt=H[2],At=H[3],Pt=H[4];M=H[5];var Tt=H[6],Mt=H[7],Ot=H[8];T=H[9];var Rt=H[10];A=H[11],P=H[12];var It=[H[13],H[13]],Lt=this.textStates[P],Ft=Lt.font,Nt=[Lt.scale[0]*Mt,Lt.scale[1]*Mt],Dt=void 0;Ft in this.widths_?Dt=this.widths_[Ft]:(Dt={},this.widths_[Ft]=Dt);var zt=(0,d.W)(y,Et,kt,2),Zt=Math.abs(Nt[0])*(0,l.Kd)(Ft,A,Dt);if(Pt||Zt<=zt){var jt=this.textStates[P].textAlign,Gt=h(y,Et,kt,2,A,(zt-Zt)*i.I[jt],Tt,Math.abs(Nt[0]),l.Kd,Ft,Dt,V?0:this.viewRotation_);t:if(Gt){var Bt=[],Ut=void 0,Vt=void 0,qt=void 0,Wt=void 0,Ht=void 0;if(T)for(Ut=0,Vt=Gt.length;Ut<Vt;++Ut){qt=(Ht=Gt[Ut])[4],Wt=this.createLabel(qt,P,"",T),b=Ht[2]+(Nt[0]<0?-Rt:Rt),w=At*Wt.height+2*(.5-At)*Rt*Nt[1]/Nt[0]-Ot;var Xt=this.calculateImageOrLabelDimensions_(Wt.width,Wt.height,Ht[0],Ht[1],Wt.width,Wt.height,b,w,0,0,Ht[3],It,!1,l.oB,!1,O);if(m&&m.collides(Xt.declutterBox))break t;Bt.push([t,e,Wt,Xt,1,null,null])}if(M)for(Ut=0,Vt=Gt.length;Ut<Vt;++Ut){if(qt=(Ht=Gt[Ut])[4],Wt=this.createLabel(qt,P,M,""),b=Ht[2],w=At*Wt.height-Ot,Xt=this.calculateImageOrLabelDimensions_(Wt.width,Wt.height,Ht[0],Ht[1],Wt.width,Wt.height,b,w,0,0,Ht[3],It,!1,l.oB,!1,O),m&&m.collides(Xt.declutterBox))break t;Bt.push([t,e,Wt,Xt,1,null,null])}m&&m.load(Bt.map(_));for(var Kt=0,Yt=Bt.length;Kt<Yt;++Kt)this.replayImageOrLabel_.apply(this,Bt[Kt])}}++F;break;case r.ZP.END_GEOMETRY:if(void 0!==f){var Qt=f(O=H[1],L);if(Qt)return Qt}++F;break;case r.ZP.FILL:W?z++:this.fill_(t),++F;break;case r.ZP.MOVE_TO_LINE_TO:for(D=H[1],v=H[2],R=y[D],E=(I=y[D+1])+.5|0,(C=R+.5|0)===x&&E===S||(t.moveTo(R,I),x=C,S=E),D+=2;D<v;D+=2)C=(R=y[D])+.5|0,E=(I=y[D+1])+.5|0,D!=v-2&&C===x&&E===S||(t.lineTo(R,I),x=C,S=E);++F;break;case r.ZP.SET_FILL_STYLE:j=H,this.alignFill_=H[2],z&&(this.fill_(t),z=0,Z&&(t.stroke(),Z=0)),t.fillStyle=H[1],++F;break;case r.ZP.SET_STROKE_STYLE:G=H,Z&&(t.stroke(),Z=0),this.setStrokeStyle_(t,H),++F;break;case r.ZP.STROKE:W?Z++:t.stroke(),++F;break;default:++F}}z&&this.fill_(t),Z&&t.stroke()},t.prototype.execute=function(t,e,n,r,i,o){this.viewRotation_=r,this.execute_(t,e,n,this.instructions,i,void 0,void 0,o)},t.prototype.executeHitDetection=function(t,e,n,r,i){return this.viewRotation_=n,this.execute_(t,1,e,this.hitDetectionInstructions,!0,r,i)},t}();var C=n(9220),E=n(6534),k=["Polygon","Circle","LineString","Image","Text","Default"],A=function(){function t(t,e,n,r,i,o){this.maxExtent_=t,this.overlaps_=r,this.pixelRatio_=n,this.resolution_=e,this.renderBuffer_=o,this.executorsByZIndex_={},this.hitDetectionContext_=null,this.hitDetectionTransform_=(0,a.Ue)(),this.createExecutors_(i)}return t.prototype.clip=function(t,e){var n=this.getClipCoords(e);t.beginPath(),t.moveTo(n[0],n[1]),t.lineTo(n[2],n[3]),t.lineTo(n[4],n[5]),t.lineTo(n[6],n[7]),t.clip()},t.prototype.createExecutors_=function(t){for(var e in t){var n=this.executorsByZIndex_[e];void 0===n&&(n={},this.executorsByZIndex_[e]=n);var r=t[e];for(var i in r){var o=r[i];n[i]=new S(this.resolution_,this.pixelRatio_,this.overlaps_,o)}}},t.prototype.hasExecutors=function(t){for(var e in this.executorsByZIndex_)for(var n=this.executorsByZIndex_[e],r=0,i=t.length;r<i;++r)if(t[r]in n)return!0;return!1},t.prototype.forEachFeatureAtCoordinate=function(t,e,n,r,i,o){var l=2*(r=Math.round(r))+1,u=(0,a.qC)(this.hitDetectionTransform_,r+.5,r+.5,1/e,-1/e,-n,-t[0],-t[1]),c=!this.hitDetectionContext_;c&&(this.hitDetectionContext_=(0,C.E4)(l,l));var h,d=this.hitDetectionContext_;d.canvas.width!==l||d.canvas.height!==l?(d.canvas.width=l,d.canvas.height=l):c||d.clearRect(0,0,l,l),void 0!==this.renderBuffer_&&(h=(0,s.lJ)(),(0,s.Wj)(h,t),(0,s.f3)(h,e*(this.renderBuffer_+r),h));var f,g=function(t){if(void 0!==P[t])return P[t];for(var e=2*t+1,n=t*t,r=new Array(n+1),i=0;i<=t;++i)for(var o=0;o<=t;++o){var a=i*i+o*o;if(a>n)break;var s=r[a];s||(s=[],r[a]=s),s.push(4*((t+i)*e+(t+o))+3),i>0&&s.push(4*((t-i)*e+(t+o))+3),o>0&&(s.push(4*((t+i)*e+(t-o))+3),i>0&&s.push(4*((t-i)*e+(t-o))+3))}for(var l=[],u=(i=0,r.length);i<u;++i)r[i]&&l.push.apply(l,r[i]);return P[t]=l,l}(r);function m(t,e){for(var n=d.getImageData(0,0,l,l).data,a=0,s=g.length;a<s;a++)if(n[g[a]]>0){if(!o||"Image"!==f&&"Text"!==f||-1!==o.indexOf(t)){var u=(g[a]-3)/4,c=r-u%l,h=r-(u/l|0),p=i(t,e,c*c+h*h);if(p)return p}d.clearRect(0,0,l,l);break}}var y,v,_,b,w,x=Object.keys(this.executorsByZIndex_).map(Number);for(x.sort(p.kK),y=x.length-1;y>=0;--y){var S=x[y].toString();for(_=this.executorsByZIndex_[S],v=k.length-1;v>=0;--v)if(void 0!==(b=_[f=k[v]])&&(w=b.executeHitDetection(d,u,n,m,h)))return w}},t.prototype.getClipCoords=function(t){var e=this.maxExtent_;if(!e)return null;var n=e[0],r=e[1],i=e[2],o=e[3],a=[n,r,n,o,i,o,i,r];return(0,c.vT)(a,0,8,2,t,a),a},t.prototype.isEmpty=function(){return(0,E.xb)(this.executorsByZIndex_)},t.prototype.execute=function(t,e,n,r,i,o,a){var s=Object.keys(this.executorsByZIndex_).map(Number);s.sort(p.kK),this.maxExtent_&&(t.save(),this.clip(t,n));var l,u,c,h,d,f,g=o||k;for(a&&s.reverse(),l=0,u=s.length;l<u;++l){var m=s[l].toString();for(d=this.executorsByZIndex_[m],c=0,h=g.length;c<h;++c)void 0!==(f=d[g[c]])&&f.execute(t,e,n,r,i,a)}this.maxExtent_&&t.restore()},t}(),P={};const T=A},5606:(t,e,n)=>{"use strict";n.d(e,{Z:()=>d});var r,i=n(8297),o=n(4907),a=n(1091),s=n(474),l=n(2182),u=n(6596),c=n(7529),h=n(6216),p=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});const d=function(t){function e(e,n,r,i,o,s,l){var u=t.call(this)||this;return u.context_=e,u.pixelRatio_=n,u.extent_=r,u.transform_=i,u.viewRotation_=o,u.squaredTolerance_=s,u.userTransform_=l,u.contextFillState_=null,u.contextStrokeState_=null,u.contextTextState_=null,u.fillState_=null,u.strokeState_=null,u.image_=null,u.imageAnchorX_=0,u.imageAnchorY_=0,u.imageHeight_=0,u.imageOpacity_=0,u.imageOriginX_=0,u.imageOriginY_=0,u.imageRotateWithView_=!1,u.imageRotation_=0,u.imageScale_=[0,0],u.imageWidth_=0,u.text_="",u.textOffsetX_=0,u.textOffsetY_=0,u.textRotateWithView_=!1,u.textRotation_=0,u.textScale_=[0,0],u.textFillState_=null,u.textStrokeState_=null,u.textState_=null,u.pixelCoordinates_=[],u.tmpLocalTransform_=(0,a.Ue)(),u}return p(e,t),e.prototype.drawImages_=function(t,e,n,r){if(this.image_){var i=(0,c.vT)(t,e,n,r,this.transform_,this.pixelCoordinates_),o=this.context_,s=this.tmpLocalTransform_,l=o.globalAlpha;1!=this.imageOpacity_&&(o.globalAlpha=l*this.imageOpacity_);var u=this.imageRotation_;this.imageRotateWithView_&&(u+=this.viewRotation_);for(var h=0,p=i.length;h<p;h+=2){var d=i[h]-this.imageAnchorX_,f=i[h+1]-this.imageAnchorY_;if(0!==u||1!=this.imageScale_[0]||1!=this.imageScale_[1]){var g=d+this.imageAnchorX_,m=f+this.imageAnchorY_;(0,a.qC)(s,g,m,1,1,u,-g,-m),o.setTransform.apply(o,s),o.translate(g,m),o.scale(this.imageScale_[0],this.imageScale_[1]),o.drawImage(this.image_,this.imageOriginX_,this.imageOriginY_,this.imageWidth_,this.imageHeight_,-this.imageAnchorX_,-this.imageAnchorY_,this.imageWidth_,this.imageHeight_),o.setTransform(1,0,0,1,0,0)}else o.drawImage(this.image_,this.imageOriginX_,this.imageOriginY_,this.imageWidth_,this.imageHeight_,d,f,this.imageWidth_,this.imageHeight_)}1!=this.imageOpacity_&&(o.globalAlpha=l)}},e.prototype.drawText_=function(t,e,n,r){if(this.textState_&&""!==this.text_){this.textFillState_&&this.setContextFillState_(this.textFillState_),this.textStrokeState_&&this.setContextStrokeState_(this.textStrokeState_),this.setContextTextState_(this.textState_);var i=(0,c.vT)(t,e,n,r,this.transform_,this.pixelCoordinates_),o=this.context_,s=this.textRotation_;for(this.textRotateWithView_&&(s+=this.viewRotation_);e<n;e+=r){var l=i[e]+this.textOffsetX_,u=i[e+1]+this.textOffsetY_;if(0!==s||1!=this.textScale_[0]||1!=this.textScale_[1]){var h=(0,a.qC)(this.tmpLocalTransform_,l,u,1,1,s,-l,-u);o.setTransform.apply(o,h),o.translate(l,u),o.scale(this.textScale_[0],this.textScale_[1]),this.textStrokeState_&&o.strokeText(this.text_,0,0),this.textFillState_&&o.fillText(this.text_,0,0),o.setTransform(1,0,0,1,0,0)}else this.textStrokeState_&&o.strokeText(this.text_,l,u),this.textFillState_&&o.fillText(this.text_,l,u)}}},e.prototype.moveToLineTo_=function(t,e,n,r,i){var o=this.context_,a=(0,c.vT)(t,e,n,r,this.transform_,this.pixelCoordinates_);o.moveTo(a[0],a[1]);var s=a.length;i&&(s-=2);for(var l=2;l<s;l+=2)o.lineTo(a[l],a[l+1]);return i&&o.closePath(),n},e.prototype.drawRings_=function(t,e,n,r){for(var i=0,o=n.length;i<o;++i)e=this.moveToLineTo_(t,e,n[i],r,!0);return e},e.prototype.drawCircle=function(t){if((0,u.kK)(this.extent_,t.getExtent())){if(this.fillState_||this.strokeState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);var e=(0,h.Kr)(t,this.transform_,this.pixelCoordinates_),n=e[2]-e[0],r=e[3]-e[1],i=Math.sqrt(n*n+r*r),o=this.context_;o.beginPath(),o.arc(e[0],e[1],i,0,2*Math.PI),this.fillState_&&o.fill(),this.strokeState_&&o.stroke()}""!==this.text_&&this.drawText_(t.getCenter(),0,2,2)}},e.prototype.setStyle=function(t){this.setFillStrokeStyle(t.getFill(),t.getStroke()),this.setImageStyle(t.getImage()),this.setTextStyle(t.getText())},e.prototype.setTransform=function(t){this.transform_=t},e.prototype.drawGeometry=function(t){switch(t.getType()){case"Point":this.drawPoint(t);break;case"LineString":this.drawLineString(t);break;case"Polygon":this.drawPolygon(t);break;case"MultiPoint":this.drawMultiPoint(t);break;case"MultiLineString":this.drawMultiLineString(t);break;case"MultiPolygon":this.drawMultiPolygon(t);break;case"GeometryCollection":this.drawGeometryCollection(t);break;case"Circle":this.drawCircle(t)}},e.prototype.drawFeature=function(t,e){var n=e.getGeometryFunction()(t);n&&(0,u.kK)(this.extent_,n.getExtent())&&(this.setStyle(e),this.drawGeometry(n))},e.prototype.drawGeometryCollection=function(t){for(var e=t.getGeometriesArray(),n=0,r=e.length;n<r;++n)this.drawGeometry(e[n])},e.prototype.drawPoint=function(t){this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_));var e=t.getFlatCoordinates(),n=t.getStride();this.image_&&this.drawImages_(e,0,e.length,n),""!==this.text_&&this.drawText_(e,0,e.length,n)},e.prototype.drawMultiPoint=function(t){this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_));var e=t.getFlatCoordinates(),n=t.getStride();this.image_&&this.drawImages_(e,0,e.length,n),""!==this.text_&&this.drawText_(e,0,e.length,n)},e.prototype.drawLineString=function(t){if(this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),(0,u.kK)(this.extent_,t.getExtent())){if(this.strokeState_){this.setContextStrokeState_(this.strokeState_);var e=this.context_,n=t.getFlatCoordinates();e.beginPath(),this.moveToLineTo_(n,0,n.length,t.getStride(),!1),e.stroke()}if(""!==this.text_){var r=t.getFlatMidpoint();this.drawText_(r,0,2,2)}}},e.prototype.drawMultiLineString=function(t){this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_));var e=t.getExtent();if((0,u.kK)(this.extent_,e)){if(this.strokeState_){this.setContextStrokeState_(this.strokeState_);var n=this.context_,r=t.getFlatCoordinates(),i=0,o=t.getEnds(),a=t.getStride();n.beginPath();for(var s=0,l=o.length;s<l;++s)i=this.moveToLineTo_(r,i,o[s],a,!1);n.stroke()}if(""!==this.text_){var c=t.getFlatMidpoints();this.drawText_(c,0,c.length,2)}}},e.prototype.drawPolygon=function(t){if(this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),(0,u.kK)(this.extent_,t.getExtent())){if(this.strokeState_||this.fillState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);var e=this.context_;e.beginPath(),this.drawRings_(t.getOrientedFlatCoordinates(),0,t.getEnds(),t.getStride()),this.fillState_&&e.fill(),this.strokeState_&&e.stroke()}if(""!==this.text_){var n=t.getFlatInteriorPoint();this.drawText_(n,0,2,2)}}},e.prototype.drawMultiPolygon=function(t){if(this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),(0,u.kK)(this.extent_,t.getExtent())){if(this.strokeState_||this.fillState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);var e=this.context_,n=t.getOrientedFlatCoordinates(),r=0,i=t.getEndss(),o=t.getStride();e.beginPath();for(var a=0,s=i.length;a<s;++a){var l=i[a];r=this.drawRings_(n,r,l,o)}this.fillState_&&e.fill(),this.strokeState_&&e.stroke()}if(""!==this.text_){var c=t.getFlatInteriorPoints();this.drawText_(c,0,c.length,2)}}},e.prototype.setContextFillState_=function(t){var e=this.context_,n=this.contextFillState_;n?n.fillStyle!=t.fillStyle&&(n.fillStyle=t.fillStyle,e.fillStyle=t.fillStyle):(e.fillStyle=t.fillStyle,this.contextFillState_={fillStyle:t.fillStyle})},e.prototype.setContextStrokeState_=function(t){var e=this.context_,n=this.contextStrokeState_;n?(n.lineCap!=t.lineCap&&(n.lineCap=t.lineCap,e.lineCap=t.lineCap),e.setLineDash&&((0,l.fS)(n.lineDash,t.lineDash)||e.setLineDash(n.lineDash=t.lineDash),n.lineDashOffset!=t.lineDashOffset&&(n.lineDashOffset=t.lineDashOffset,e.lineDashOffset=t.lineDashOffset)),n.lineJoin!=t.lineJoin&&(n.lineJoin=t.lineJoin,e.lineJoin=t.lineJoin),n.lineWidth!=t.lineWidth&&(n.lineWidth=t.lineWidth,e.lineWidth=t.lineWidth),n.miterLimit!=t.miterLimit&&(n.miterLimit=t.miterLimit,e.miterLimit=t.miterLimit),n.strokeStyle!=t.strokeStyle&&(n.strokeStyle=t.strokeStyle,e.strokeStyle=t.strokeStyle)):(e.lineCap=t.lineCap,e.setLineDash&&(e.setLineDash(t.lineDash),e.lineDashOffset=t.lineDashOffset),e.lineJoin=t.lineJoin,e.lineWidth=t.lineWidth,e.miterLimit=t.miterLimit,e.strokeStyle=t.strokeStyle,this.contextStrokeState_={lineCap:t.lineCap,lineDash:t.lineDash,lineDashOffset:t.lineDashOffset,lineJoin:t.lineJoin,lineWidth:t.lineWidth,miterLimit:t.miterLimit,strokeStyle:t.strokeStyle})},e.prototype.setContextTextState_=function(t){var e=this.context_,n=this.contextTextState_,r=t.textAlign?t.textAlign:s.PH;n?(n.font!=t.font&&(n.font=t.font,e.font=t.font),n.textAlign!=r&&(n.textAlign=r,e.textAlign=r),n.textBaseline!=t.textBaseline&&(n.textBaseline=t.textBaseline,e.textBaseline=t.textBaseline)):(e.font=t.font,e.textAlign=r,e.textBaseline=t.textBaseline,this.contextTextState_={font:t.font,textAlign:r,textBaseline:t.textBaseline})},e.prototype.setFillStrokeStyle=function(t,e){var n=this;if(t){var r=t.getColor();this.fillState_={fillStyle:(0,o.y)(r||s.bL)}}else this.fillState_=null;if(e){var i=e.getColor(),a=e.getLineCap(),l=e.getLineDash(),u=e.getLineDashOffset(),c=e.getLineJoin(),h=e.getWidth(),p=e.getMiterLimit(),d=l||s.X9;this.strokeState_={lineCap:void 0!==a?a:s.mb,lineDash:1===this.pixelRatio_?d:d.map((function(t){return t*n.pixelRatio_})),lineDashOffset:(u||s.He)*this.pixelRatio_,lineJoin:void 0!==c?c:s.rc,lineWidth:(void 0!==h?h:s.yC)*this.pixelRatio_,miterLimit:void 0!==p?p:s.V4,strokeStyle:(0,o.y)(i||s.Tx)}}else this.strokeState_=null},e.prototype.setImageStyle=function(t){var e;if(t&&(e=t.getSize())){var n=t.getAnchor(),r=t.getOrigin();this.image_=t.getImage(this.pixelRatio_),this.imageAnchorX_=n[0]*this.pixelRatio_,this.imageAnchorY_=n[1]*this.pixelRatio_,this.imageHeight_=e[1]*this.pixelRatio_,this.imageOpacity_=t.getOpacity(),this.imageOriginX_=r[0],this.imageOriginY_=r[1],this.imageRotateWithView_=t.getRotateWithView(),this.imageRotation_=t.getRotation(),this.imageScale_=t.getScaleArray(),this.imageWidth_=e[0]*this.pixelRatio_}else this.image_=null},e.prototype.setTextStyle=function(t){if(t){var e=t.getFill();if(e){var n=e.getColor();this.textFillState_={fillStyle:(0,o.y)(n||s.bL)}}else this.textFillState_=null;var r=t.getStroke();if(r){var i=r.getColor(),a=r.getLineCap(),l=r.getLineDash(),u=r.getLineDashOffset(),c=r.getLineJoin(),h=r.getWidth(),p=r.getMiterLimit();this.textStrokeState_={lineCap:void 0!==a?a:s.mb,lineDash:l||s.X9,lineDashOffset:u||s.He,lineJoin:void 0!==c?c:s.rc,lineWidth:void 0!==h?h:s.yC,miterLimit:void 0!==p?p:s.V4,strokeStyle:(0,o.y)(i||s.Tx)}}else this.textStrokeState_=null;var d=t.getFont(),f=t.getOffsetX(),g=t.getOffsetY(),m=t.getRotateWithView(),y=t.getRotation(),v=t.getScaleArray(),_=t.getText(),b=t.getTextAlign(),w=t.getTextBaseline();this.textState_={font:void 0!==d?d:s.Df,textAlign:void 0!==b?b:s.PH,textBaseline:void 0!==w?w:s.ru},this.text_=void 0!==_?Array.isArray(_)?_.reduce((function(t,e,n){return t+(n%2?" ":e)}),""):_:"",this.textOffsetX_=void 0!==f?this.pixelRatio_*f:0,this.textOffsetY_=void 0!==g?this.pixelRatio_*g:0,this.textRotateWithView_=void 0!==m&&m,this.textRotation_=void 0!==y?y:0,this.textScale_=[this.pixelRatio_*v[0],this.pixelRatio_*v[1]]}else this.text_=""},e}(i.Z)},4751:(t,e,n)=>{"use strict";n.d(e,{$O:()=>a,Yc:()=>o,ZP:()=>l,gO:()=>i,s3:()=>s});var r={BEGIN_GEOMETRY:0,BEGIN_PATH:1,CIRCLE:2,CLOSE_PATH:3,CUSTOM:4,DRAW_CHARS:5,DRAW_IMAGE:6,END_GEOMETRY:7,FILL:8,MOVE_TO_LINE_TO:9,SET_FILL_STYLE:10,SET_STROKE_STYLE:11,STROKE:12},i=[r.FILL],o=[r.STROKE],a=[r.BEGIN_PATH],s=[r.CLOSE_PATH];const l=r},4458:(t,e,n)=>{"use strict";n.d(e,{I:()=>d,Z:()=>f});var r=n(9889),i=n(4751),o=n(5275),a=n(4907),s=n(474),l=n(2637),u=n(6596);function c(t,e,n,r,i){var o,a,s,l,u,c,h,p,d,f=n,g=n,m=0,y=0,v=n;for(o=n;o<r;o+=i){var _=e[o],b=e[o+1];void 0!==l&&(p=_-l,d=b-u,s=Math.sqrt(p*p+d*d),void 0!==c&&(y+=a,Math.acos((c*p+h*d)/(a*s))>t&&(y>m&&(m=y,f=v,g=o),y=0,v=o-i)),a=s,c=p,h=d),l=_,u=b}return(y+=s)>m?[v,o]:[f,g]}var h,p=(h=function(t,e){return h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},h(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}h(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),d={left:0,end:0,center:.5,right:1,start:1,top:0,middle:.5,hanging:.2,alphabetic:.8,ideographic:.8,bottom:1};const f=function(t){function e(e,n,r,i){var o=t.call(this,e,n,r,i)||this;return o.labels_=null,o.text_="",o.textOffsetX_=0,o.textOffsetY_=0,o.textRotateWithView_=void 0,o.textRotation_=0,o.textFillState_=null,o.fillStates={},o.textStrokeState_=null,o.strokeStates={},o.textState_={},o.textStates={},o.textKey_="",o.fillKey_="",o.strokeKey_="",o.declutterImageWithText_=void 0,o}return p(e,t),e.prototype.finish=function(){var e=t.prototype.finish.call(this);return e.textStates=this.textStates,e.fillStates=this.fillStates,e.strokeStates=this.strokeStates,e},e.prototype.drawText=function(t,e){var n=this.textFillState_,r=this.textStrokeState_,a=this.textState_;if(""!==this.text_&&a&&(n||r)){var l=this.coordinates,h=l.length,p=t.getType(),d=null,f=t.getStride();if(a.placement!==o.Z.LINE||"LineString"!=p&&"MultiLineString"!=p&&"Polygon"!=p&&"MultiPolygon"!=p){var g=a.overflow?null:[];switch(p){case"Point":case"MultiPoint":d=t.getFlatCoordinates();break;case"LineString":d=t.getFlatMidpoint();break;case"Circle":d=t.getCenter();break;case"MultiLineString":d=t.getFlatMidpoints(),f=2;break;case"Polygon":d=t.getFlatInteriorPoint(),a.overflow||g.push(d[2]/this.resolution),f=3;break;case"MultiPolygon":var m=t.getFlatInteriorPoints();for(d=[],A=0,P=m.length;A<P;A+=3)a.overflow||g.push(m[A+2]/this.resolution),d.push(m[A],m[A+1]);if(0===d.length)return;f=2}if((F=this.appendFlatPointCoordinates(d,f))===h)return;if(g&&(F-h)/2!=d.length/f){var y=h/2;g=g.filter((function(t,e){var n=l[2*(y+e)]===d[e*f]&&l[2*(y+e)+1]===d[e*f+1];return n||--y,n}))}this.saveTextStates_(),(a.backgroundFill||a.backgroundStroke)&&(this.setFillStrokeStyle(a.backgroundFill,a.backgroundStroke),a.backgroundFill&&(this.updateFillStyle(this.state,this.createFill),this.hitDetectionInstructions.push(this.createFill(this.state))),a.backgroundStroke&&(this.updateStrokeStyle(this.state,this.applyStroke),this.hitDetectionInstructions.push(this.createStroke(this.state)))),this.beginGeometry(t,e);var v=a.padding;if(v!=s.oB&&(a.scale[0]<0||a.scale[1]<0)){var _=a.padding[0],b=a.padding[1],w=a.padding[2],x=a.padding[3];a.scale[0]<0&&(b=-b,x=-x),a.scale[1]<0&&(_=-_,w=-w),v=[_,b,w,x]}var S=this.pixelRatio;this.instructions.push([i.ZP.DRAW_IMAGE,h,F,null,NaN,NaN,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,[1,1],NaN,void 0,this.declutterImageWithText_,v==s.oB?s.oB:v.map((function(t){return t*S})),!!a.backgroundFill,!!a.backgroundStroke,this.text_,this.textKey_,this.strokeKey_,this.fillKey_,this.textOffsetX_,this.textOffsetY_,g]);var C=1/S;this.hitDetectionInstructions.push([i.ZP.DRAW_IMAGE,h,F,null,NaN,NaN,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,[C,C],NaN,void 0,this.declutterImageWithText_,v,!!a.backgroundFill,!!a.backgroundStroke,this.text_,this.textKey_,this.strokeKey_,this.fillKey_,this.textOffsetX_,this.textOffsetY_,g]),this.endGeometry(e)}else{if(!(0,u.kK)(this.getBufferedMaxExtent(),t.getExtent()))return;var E=void 0;if(d=t.getFlatCoordinates(),"LineString"==p)E=[d.length];else if("MultiLineString"==p)E=t.getEnds();else if("Polygon"==p)E=t.getEnds().slice(0,1);else if("MultiPolygon"==p){var k=t.getEndss();E=[];for(var A=0,P=k.length;A<P;++A)E.push(k[A][0])}this.beginGeometry(t,e);for(var T=a.textAlign,M=0,O=void 0,R=0,I=E.length;R<I;++R){if(null==T){var L=c(a.maxAngle,d,M,E[R],f);M=L[0],O=L[1]}else O=E[R];for(A=M;A<O;A+=f)l.push(d[A],d[A+1]);var F=l.length;M=E[R],this.drawChars_(h,F),h=F}this.endGeometry(e)}}},e.prototype.saveTextStates_=function(){var t=this.textStrokeState_,e=this.textState_,n=this.textFillState_,r=this.strokeKey_;t&&(r in this.strokeStates||(this.strokeStates[r]={strokeStyle:t.strokeStyle,lineCap:t.lineCap,lineDashOffset:t.lineDashOffset,lineWidth:t.lineWidth,lineJoin:t.lineJoin,miterLimit:t.miterLimit,lineDash:t.lineDash}));var i=this.textKey_;i in this.textStates||(this.textStates[i]={font:e.font,textAlign:e.textAlign||s.PH,justify:e.justify,textBaseline:e.textBaseline||s.ru,scale:e.scale});var o=this.fillKey_;n&&(o in this.fillStates||(this.fillStates[o]={fillStyle:n.fillStyle}))},e.prototype.drawChars_=function(t,e){var n=this.textStrokeState_,r=this.textState_,o=this.strokeKey_,a=this.textKey_,s=this.fillKey_;this.saveTextStates_();var l=this.pixelRatio,u=d[r.textBaseline],c=this.textOffsetY_*l,h=this.text_,p=n?n.lineWidth*Math.abs(r.scale[0])/2:0;this.instructions.push([i.ZP.DRAW_CHARS,t,e,u,r.overflow,s,r.maxAngle,l,c,o,p*l,h,a,1]),this.hitDetectionInstructions.push([i.ZP.DRAW_CHARS,t,e,u,r.overflow,s,r.maxAngle,1,c,o,p,h,a,1/l])},e.prototype.setTextStyle=function(t,e){var n,r,i;if(t){var o=t.getFill();o?((r=this.textFillState_)||(r={},this.textFillState_=r),r.fillStyle=(0,a.y)(o.getColor()||s.bL)):(r=null,this.textFillState_=r);var u=t.getStroke();if(u){(i=this.textStrokeState_)||(i={},this.textStrokeState_=i);var c=u.getLineDash(),h=u.getLineDashOffset(),p=u.getWidth(),d=u.getMiterLimit();i.lineCap=u.getLineCap()||s.mb,i.lineDash=c?c.slice():s.X9,i.lineDashOffset=void 0===h?s.He:h,i.lineJoin=u.getLineJoin()||s.rc,i.lineWidth=void 0===p?s.yC:p,i.miterLimit=void 0===d?s.V4:d,i.strokeStyle=(0,a.y)(u.getColor()||s.Tx)}else i=null,this.textStrokeState_=i;n=this.textState_;var f=t.getFont()||s.Df;(0,s.Qx)(f);var g=t.getScaleArray();n.overflow=t.getOverflow(),n.font=f,n.maxAngle=t.getMaxAngle(),n.placement=t.getPlacement(),n.textAlign=t.getTextAlign(),n.justify=t.getJustify(),n.textBaseline=t.getTextBaseline()||s.ru,n.backgroundFill=t.getBackgroundFill(),n.backgroundStroke=t.getBackgroundStroke(),n.padding=t.getPadding()||s.oB,n.scale=void 0===g?[1,1]:g;var m=t.getOffsetX(),y=t.getOffsetY(),v=t.getRotateWithView(),_=t.getRotation();this.text_=t.getText()||"",this.textOffsetX_=void 0===m?0:m,this.textOffsetY_=void 0===y?0:y,this.textRotateWithView_=void 0!==v&&v,this.textRotation_=void 0===_?0:_,this.strokeKey_=i?("string"==typeof i.strokeStyle?i.strokeStyle:(0,l.sq)(i.strokeStyle))+i.lineCap+i.lineDashOffset+"|"+i.lineWidth+i.lineJoin+i.miterLimit+"["+i.lineDash.join()+"]":"",this.textKey_=n.font+n.scale+(n.textAlign||"?")+(n.justify||"?")+(n.textBaseline||"?"),this.fillKey_=r?"string"==typeof r.fillStyle?r.fillStyle:"|"+(0,l.sq)(r.fillStyle):""}else this.text_="";this.declutterImageWithText_=e},e}(r.Z)},2138:(t,e,n)=>{"use strict";n.d(e,{TU:()=>h,UN:()=>c,ix:()=>p});var r=n(5606),i=n(9589),o=n(5218),a=n(8007),s=n(9220),l=n(6596),u=n(2182),c=.5;function h(t,e,n,a,h,p,d){var f=t[0]*c,g=t[1]*c,m=(0,s.E4)(f,g);m.imageSmoothingEnabled=!1;for(var y=m.canvas,v=new r.Z(m,c,h,null,d),_=n.length,b=Math.floor(16777215/_),w={},x=1;x<=_;++x){var S=n[x-1],C=S.getStyleFunction()||a;if(a){var E=C(S,p);if(E){Array.isArray(E)||(E=[E]);for(var k="#"+("000000"+(x*b).toString(16)).slice(-6),A=0,P=E.length;A<P;++A){var T=E[A],M=T.getGeometryFunction()(S);if(M&&(0,l.kK)(h,M.getExtent())){var O=T.clone(),R=O.getFill();R&&R.setColor(k);var I=O.getStroke();I&&(I.setColor(k),I.setLineDash(null)),O.setText(void 0);var L=T.getImage();if(L&&0!==L.getOpacity()){var F=L.getImageSize();if(!F)continue;var N=(0,s.E4)(F[0],F[1],void 0,{alpha:!1}),D=N.canvas;N.fillStyle=k,N.fillRect(0,0,D.width,D.height),O.setImage(new o.Z({img:D,imgSize:F,anchor:L.getAnchor(),anchorXUnits:i.Z.PIXELS,anchorYUnits:i.Z.PIXELS,offset:L.getOrigin(),opacity:1,size:L.getSize(),scale:L.getScale(),rotation:L.getRotation(),rotateWithView:L.getRotateWithView()}))}var z=O.getZIndex()||0;(G=w[z])||(G={},w[z]=G,G.Polygon=[],G.Circle=[],G.LineString=[],G.Point=[]),G[M.getType().replace("Multi","")].push(M,O)}}}}}for(var Z=Object.keys(w).map(Number).sort(u.kK),j=(x=0,Z.length);x<j;++x){var G=w[Z[x]];for(var B in G){var U=G[B];for(A=0,P=U.length;A<P;A+=2){v.setStyle(U[A+1]);for(var V=0,q=e.length;V<q;++V)v.setTransform(e[V]),v.drawGeometry(U[A])}}}return m.getImageData(0,0,y.width,y.height)}function p(t,e,n){var r=[];if(n){var i=Math.floor(Math.round(t[0])*c),o=Math.floor(Math.round(t[1])*c),s=4*((0,a.uZ)(i,0,n.width-1)+(0,a.uZ)(o,0,n.height-1)*n.width),l=n.data[s],u=n.data[s+1],h=n.data[s+2]+256*(u+256*l),p=Math.floor(16777215/e.length);h&&h%p==0&&r.push(e[h/p-1])}return r}},1972:(t,e,n)=>{"use strict";n.d(e,{Z:()=>S});var r,i=n(5466),o=n(6764),a=n(2637),s=n(1091),l=n(6596),u=n(823),c=n(1716),h=n(2253),p=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});function d(t,e){u.c.expire()}const f=function(t){function e(e){var n=t.call(this)||this;return n.map_=e,n}return p(e,t),e.prototype.dispatchRenderEvent=function(t,e){(0,a.O3)()},e.prototype.calculateMatrices2D=function(t){var e=t.viewState,n=t.coordinateToPixelTransform,r=t.pixelToCoordinateTransform;(0,s.qC)(n,t.size[0]/2,t.size[1]/2,1/e.resolution,-1/e.resolution,-e.rotation,-e.center[0],-e.center[1]),(0,s.nb)(r,n)},e.prototype.forEachFeatureAtCoordinate=function(t,e,n,r,i,o,a,s){var u,p=e.viewState;function d(t,e,n,r){return i.call(o,e,t?n:null,r)}var f=p.projection,g=(0,h.Cf)(t.slice(),f),m=[[0,0]];if(f.canWrapX()&&r){var y=f.getExtent(),v=(0,l.dz)(y);m.push([-v,0],[v,0])}for(var _=e.layerStatesArray,b=_.length,w=[],x=[],S=0;S<m.length;S++)for(var C=b-1;C>=0;--C){var E=_[C],k=E.layer;if(k.hasRenderer()&&(0,c.j)(E,p)&&a.call(s,k)){var A=k.getRenderer(),P=k.getSource();if(A&&P){var T=P.getWrapX()?g:t,M=d.bind(null,E.managed);x[0]=T[0]+m[S][0],x[1]=T[1]+m[S][1],u=A.forEachFeatureAtCoordinate(x,e,n,M,w)}if(u)return u}}if(0!==w.length){var O=1/w.length;return w.forEach((function(t,e){return t.distanceSq+=e*O})),w.sort((function(t,e){return t.distanceSq-e.distanceSq})),w.some((function(t){return u=t.callback(t.feature,t.layer,t.geometry)})),u}},e.prototype.forEachLayerAtPixel=function(t,e,n,r,i){return(0,a.O3)()},e.prototype.hasFeatureAtCoordinate=function(t,e,n,r,i,a){return void 0!==this.forEachFeatureAtCoordinate(t,e,n,r,o.uX,this,i,a)},e.prototype.getMap=function(){return this.map_},e.prototype.renderFrame=function(t){(0,a.O3)()},e.prototype.scheduleExpireIconCache=function(t){u.c.canExpireCache()&&t.postRenderFunctions.push(d)},e}(i.Z);var g=n(3606),m=n(7299),y=n(1900),v=n(8055),_=n(474),b=n(8196),w=n(9220),x=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const S=function(t){function e(e){var n=t.call(this,e)||this;n.fontChangeListenerKey_=(0,b.oL)(_.sG,g.Z.PROPERTYCHANGE,e.redrawText.bind(e)),n.element_=document.createElement("div");var r=n.element_.style;r.position="absolute",r.width="100%",r.height="100%",r.zIndex="0",n.element_.className=v.XV+" ol-layers";var i=e.getViewport();return i.insertBefore(n.element_,i.firstChild||null),n.children_=[],n.renderedVisible_=!0,n}return x(e,t),e.prototype.dispatchRenderEvent=function(t,e){var n=this.getMap();if(n.hasListener(t)){var r=new m.Z(t,void 0,e);n.dispatchEvent(r)}},e.prototype.disposeInternal=function(){(0,b.bN)(this.fontChangeListenerKey_),this.element_.parentNode.removeChild(this.element_),t.prototype.disposeInternal.call(this)},e.prototype.renderFrame=function(t){if(t){this.calculateMatrices2D(t),this.dispatchRenderEvent(y.Z.PRECOMPOSE,t);var e=t.layerStatesArray.sort((function(t,e){return t.zIndex-e.zIndex})),n=t.viewState;this.children_.length=0;for(var r=[],i=null,o=0,a=e.length;o<a;++o){var s=e[o];t.layerIndex=o;var l=s.layer,u=l.getSourceState();if(!(0,c.j)(s,n)||"ready"!=u&&"undefined"!=u)l.unrender();else{var h=l.render(t,i);h&&(h!==i&&(this.children_.push(h),i=h),"getDeclutter"in l&&r.push(l))}}for(o=r.length-1;o>=0;--o)r[o].renderDeclutter(t);(0,w.hF)(this.element_,this.children_),this.dispatchRenderEvent(y.Z.POSTCOMPOSE,t),this.renderedVisible_||(this.element_.style.display="",this.renderedVisible_=!0),this.scheduleExpireIconCache(t)}else this.renderedVisible_&&(this.element_.style.display="none",this.renderedVisible_=!1)},e.prototype.forEachLayerAtPixel=function(t,e,n,r,i){for(var o=e.viewState,a=e.layerStatesArray,s=a.length-1;s>=0;--s){var l=a[s],u=l.layer;if(u.hasRenderer()&&(0,c.j)(l,o)&&i(u)){var h=u.getRenderer().getDataAtPixel(t,e,n);if(h){var p=r(u,h);if(p)return p}}}},e}(f)},9780:(t,e,n)=>{"use strict";n.d(e,{r:()=>v,Z:()=>b});var r,i=n(2001),o=n(6637),a=n(7093),s=n(2637),l=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});const u=function(t){function e(e){var n=t.call(this)||this;return n.ready=!0,n.boundHandleImageChange_=n.handleImageChange_.bind(n),n.layer_=e,n.declutterExecutorGroup=null,n}return l(e,t),e.prototype.getFeatures=function(t){return(0,s.O3)()},e.prototype.getData=function(t){return null},e.prototype.prepareFrame=function(t){return(0,s.O3)()},e.prototype.renderFrame=function(t,e){return(0,s.O3)()},e.prototype.loadedTileCallback=function(t,e,n){t[e]||(t[e]={}),t[e][n.tileCoord.toString()]=n},e.prototype.createLoadedTileFinder=function(t,e,n){return function(r,i){var o=this.loadedTileCallback.bind(this,n,r);return t.forEachLoadedTile(e,r,i,o)}.bind(this)},e.prototype.forEachFeatureAtCoordinate=function(t,e,n,r,i){},e.prototype.getDataAtPixel=function(t,e,n){return null},e.prototype.getLayer=function(){return this.layer_},e.prototype.handleFontsChanged=function(){},e.prototype.handleImageChange_=function(t){t.target.getState()===o.Z.LOADED&&this.renderIfReadyAndVisible()},e.prototype.loadImage=function(t){var e=t.getState();return e!=o.Z.LOADED&&e!=o.Z.ERROR&&t.addEventListener(i.Z.CHANGE,this.boundHandleImageChange_),e==o.Z.IDLE&&(t.load(),e=t.getState()),e==o.Z.LOADED},e.prototype.renderIfReadyAndVisible=function(){var t=this.getLayer();t&&t.getVisible()&&"ready"===t.getSourceState()&&t.changed()},e.prototype.disposeInternal=function(){delete this.layer_,t.prototype.disposeInternal.call(this)},e}(a.Z);var c=n(7299),h=n(1900),p=n(1091),d=n(184),f=n(6596),g=n(9220),m=n(2182),y=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),v=[],_=null;const b=function(t){function e(e){var n=t.call(this,e)||this;return n.container=null,n.renderedResolution,n.tempTransform=(0,p.Ue)(),n.pixelTransform=(0,p.Ue)(),n.inversePixelTransform=(0,p.Ue)(),n.context=null,n.containerReused=!1,n.pixelContext_=null,n.frameState=null,n}return y(e,t),e.prototype.getImageData=function(t,e,n){var r,i;_||((r=document.createElement("canvas")).width=1,r.height=1,_=r.getContext("2d")),_.clearRect(0,0,1,1);try{_.drawImage(t,e,n,1,1,0,0,1,1),i=_.getImageData(0,0,1,1).data}catch(t){return _=null,null}return i},e.prototype.getBackground=function(t){var e=this.getLayer().getBackground();return"function"==typeof e&&(e=e(t.viewState.resolution)),e||void 0},e.prototype.useContainer=function(t,e,n){var r,i,o=this.getLayer().getClassName();if(t&&t.className===o&&(!n||t&&t.style.backgroundColor&&(0,m.fS)((0,d._2)(t.style.backgroundColor),(0,d._2)(n)))&&(s=t.firstElementChild)instanceof HTMLCanvasElement&&(i=s.getContext("2d")),i&&i.canvas.style.transform===e?(this.container=t,this.context=i,this.containerReused=!0):this.containerReused&&(this.container=null,this.context=null,this.containerReused=!1),!this.container){(r=document.createElement("div")).className=o;var a=r.style;a.position="absolute",a.width="100%",a.height="100%";var s=(i=(0,g.E4)()).canvas;r.appendChild(s),(a=s.style).position="absolute",a.left="0",a.transformOrigin="top left",this.container=r,this.context=i}this.containerReused||!n||this.container.style.backgroundColor||(this.container.style.backgroundColor=n)},e.prototype.clipUnrotated=function(t,e,n){var r=(0,f.rL)(n),i=(0,f.Xv)(n),o=(0,f.w$)(n),a=(0,f.hC)(n);(0,p.nn)(e.coordinateToPixelTransform,r),(0,p.nn)(e.coordinateToPixelTransform,i),(0,p.nn)(e.coordinateToPixelTransform,o),(0,p.nn)(e.coordinateToPixelTransform,a);var s=this.inversePixelTransform;(0,p.nn)(s,r),(0,p.nn)(s,i),(0,p.nn)(s,o),(0,p.nn)(s,a),t.save(),t.beginPath(),t.moveTo(Math.round(r[0]),Math.round(r[1])),t.lineTo(Math.round(i[0]),Math.round(i[1])),t.lineTo(Math.round(o[0]),Math.round(o[1])),t.lineTo(Math.round(a[0]),Math.round(a[1])),t.clip()},e.prototype.dispatchRenderEvent_=function(t,e,n){var r=this.getLayer();if(r.hasListener(t)){var i=new c.Z(t,this.inversePixelTransform,n,e);r.dispatchEvent(i)}},e.prototype.preRender=function(t,e){this.frameState=e,this.dispatchRenderEvent_(h.Z.PRERENDER,t,e)},e.prototype.postRender=function(t,e){this.dispatchRenderEvent_(h.Z.POSTRENDER,t,e)},e.prototype.getRenderTransform=function(t,e,n,r,i,o,a){var s=i/2,l=o/2,u=r/e,c=-u,h=-t[0]+a,d=-t[1];return(0,p.qC)(this.tempTransform,s,l,u,c,-n,h,d)},e.prototype.getDataAtPixel=function(t,e,n){var r=(0,p.nn)(this.inversePixelTransform,t.slice()),i=this.context,o=this.getLayer().getExtent();if(o){var a=(0,p.nn)(e.pixelToCoordinateTransform,t.slice());if(!(0,f.b8)(o,a))return null}var s,l=Math.round(r[0]),u=Math.round(r[1]),c=this.pixelContext_;if(!c){var h=document.createElement("canvas");h.width=1,h.height=1,c=h.getContext("2d"),this.pixelContext_=c}c.clearRect(0,0,1,1);try{c.drawImage(i.canvas,l,u,1,1,0,0,1,1),s=c.getImageData(0,0,1,1).data}catch(t){return"SecurityError"===t.name?(this.pixelContext_=null,new Uint8Array):s}return 0===s[3]?null:s},e.prototype.disposeInternal=function(){delete this.frameState,t.prototype.disposeInternal.call(this)},e}(u)},7175:(t,e,n)=>{"use strict";n.d(e,{Z:()=>v});var r,i=n(9780),o=n(6487),a=n(2467),s=n(6462),l=n(3584),u=n(3192),c=n(1091),h=n(6534),p=n(6596),d=n(6162),f=n(2637),g=n(2182),m=n(8691),y=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});const v=function(t){function e(e){var n=t.call(this,e)||this;return n.extentChanged=!0,n.renderedExtent_=null,n.renderedPixelRatio,n.renderedProjection=null,n.renderedRevision,n.renderedTiles=[],n.newTiles_=!1,n.tmpExtent=(0,p.lJ)(),n.tmpTileRange_=new s.Z(0,0,0,0),n}return y(e,t),e.prototype.isDrawableTile=function(t){var e=this.getLayer(),n=t.getState(),r=e.getUseInterimTilesOnError();return n==l.Z.LOADED||n==l.Z.EMPTY||n==l.Z.ERROR&&!r},e.prototype.getTile=function(t,e,n,r){var i=r.pixelRatio,o=r.viewState.projection,a=this.getLayer(),s=a.getSource().getTile(t,e,n,i,o);return s.getState()==l.Z.ERROR&&(a.getUseInterimTilesOnError()?a.getPreload()>0&&(this.newTiles_=!0):s.setState(l.Z.LOADED)),this.isDrawableTile(s)||(s=s.getInterimTile()),s},e.prototype.getData=function(t){var e=this.frameState;if(!e)return null;var n=this.getLayer(),r=(0,c.nn)(e.pixelToCoordinateTransform,t.slice()),i=n.getExtent();if(i&&!(0,p.b8)(i,r))return null;for(var s=e.pixelRatio,u=e.viewState.projection,h=e.viewState,d=n.getRenderSource(),f=d.getTileGridForProjection(h.projection),g=d.getTilePixelRatio(e.pixelRatio),y=f.getZForResolution(h.resolution);y>=f.getMinZoom();--y){var v=f.getTileCoordForCoordAndZ(r,y),_=d.getTile(y,v[1],v[2],s,u);if(!(_ instanceof o.Z||_ instanceof a.Z))return null;if(_.getState()===l.Z.LOADED){var b=f.getOrigin(y),w=(0,m.Pq)(f.getTileSize(y)),x=f.getResolution(y),S=Math.floor(g*((r[0]-b[0])/x-v[1]*w[0])),C=Math.floor(g*((b[1]-r[1])/x-v[2]*w[1])),E=Math.round(g*d.getGutterForProjection(h.projection));return this.getImageData(_.getImage(),S+E,C+E)}}return null},e.prototype.loadedTileCallback=function(e,n,r){return!!this.isDrawableTile(r)&&t.prototype.loadedTileCallback.call(this,e,n,r)},e.prototype.prepareFrame=function(t){return!!this.getLayer().getSource()},e.prototype.renderFrame=function(t,e){var n=t.layerStatesArray[t.layerIndex],r=t.viewState,i=r.projection,o=r.resolution,a=r.center,s=r.rotation,m=t.pixelRatio,y=this.getLayer(),v=y.getSource(),_=v.getRevision(),b=v.getTileGridForProjection(i),w=b.getZForResolution(o,v.zDirection),x=b.getResolution(w),S=t.extent,C=t.viewState.resolution,E=v.getTilePixelRatio(m),k=Math.round((0,p.dz)(S)/C*m),A=Math.round((0,p.Cr)(S)/C*m),P=n.extent&&(0,d.fromUserExtent)(n.extent,i);P&&(S=(0,p.Ed)(S,(0,d.fromUserExtent)(n.extent,i)));var T=x*k/2/E,M=x*A/2/E,O=[a[0]-T,a[1]-M,a[0]+T,a[1]+M],R=b.getTileRangeForExtentAndZ(S,w),I={};I[w]={};var L=this.createLoadedTileFinder(v,i,I),F=this.tmpExtent,N=this.tmpTileRange_;this.newTiles_=!1;for(var D=s?(0,p.dY)(r.center,C,s,t.size):void 0,z=R.minX;z<=R.maxX;++z)for(var Z=R.minY;Z<=R.maxY;++Z)if(!s||b.tileCoordIntersectsViewport([w,z,Z],D)){var j=this.getTile(w,z,Z,t);if(this.isDrawableTile(j)){var G=(0,f.sq)(this);if(j.getState()==l.Z.LOADED&&(I[w][j.tileCoord.toString()]=j,(ct=j.inTransition(G))&&1!==n.opacity&&(j.endTransition(G),ct=!1),this.newTiles_||!ct&&-1!==this.renderedTiles.indexOf(j)||(this.newTiles_=!0)),1===j.getAlpha(G,t.time))continue}var B=b.getTileCoordChildTileRange(j.tileCoord,N,F),U=!1;B&&(U=L(w+1,B)),U||b.forEachTileCoordParentTileRange(j.tileCoord,L,N,F)}var V=x/o*m/E;(0,c.qC)(this.pixelTransform,t.size[0]/2,t.size[1]/2,1/m,1/m,s,-k/2,-A/2);var q=(0,c.BB)(this.pixelTransform);this.useContainer(e,q,this.getBackground(t));var W=this.context,H=W.canvas;(0,c.nb)(this.inversePixelTransform,this.pixelTransform),(0,c.qC)(this.tempTransform,k/2,A/2,V,V,0,-k/2,-A/2),H.width!=k||H.height!=A?(H.width=k,H.height=A):this.containerReused||W.clearRect(0,0,k,A),P&&this.clipUnrotated(W,t,P),v.getInterpolate()||(0,h.f0)(W,u.$),this.preRender(W,t),this.renderedTiles.length=0;var X,K,Y,Q=Object.keys(I).map(Number);Q.sort(g.kK),1!==n.opacity||this.containerReused&&!v.getOpaque(t.viewState.projection)?(X=[],K=[]):Q=Q.reverse();for(var $=Q.length-1;$>=0;--$){var J=Q[$],tt=v.getTilePixelSize(J,m,i),et=b.getResolution(J)/x,nt=tt[0]*et*V,rt=tt[1]*et*V,it=b.getTileCoordForCoordAndZ((0,p.rL)(O),J),ot=b.getTileCoordExtent(it),at=(0,c.nn)(this.tempTransform,[E*(ot[0]-O[0])/x,E*(O[3]-ot[3])/x]),st=E*v.getGutterForProjection(i),lt=I[J];for(var ut in lt){var ct,ht=(j=lt[ut]).tileCoord,pt=it[1]-ht[1],dt=Math.round(at[0]-(pt-1)*nt),ft=it[2]-ht[2],gt=Math.round(at[1]-(ft-1)*rt),mt=dt-(z=Math.round(at[0]-pt*nt)),yt=gt-(Z=Math.round(at[1]-ft*rt)),vt=w===J,_t=!1;if(!(ct=vt&&1!==j.getAlpha((0,f.sq)(this),t.time)))if(X){Y=[z,Z,z+mt,Z,z+mt,Z+yt,z,Z+yt];for(var bt=0,wt=X.length;bt<wt;++bt)if(w!==J&&J<K[bt]){var xt=X[bt];(0,p.kK)([z,Z,z+mt,Z+yt],[xt[0],xt[3],xt[4],xt[7]])&&(_t||(W.save(),_t=!0),W.beginPath(),W.moveTo(Y[0],Y[1]),W.lineTo(Y[2],Y[3]),W.lineTo(Y[4],Y[5]),W.lineTo(Y[6],Y[7]),W.moveTo(xt[6],xt[7]),W.lineTo(xt[4],xt[5]),W.lineTo(xt[2],xt[3]),W.lineTo(xt[0],xt[1]),W.clip())}X.push(Y),K.push(J)}else W.clearRect(z,Z,mt,yt);this.drawTileImage(j,t,z,Z,mt,yt,st,vt),X&&!ct?(_t&&W.restore(),this.renderedTiles.unshift(j)):this.renderedTiles.push(j),this.updateUsedTiles(t.usedTiles,v,j)}}return this.renderedRevision=_,this.renderedResolution=x,this.extentChanged=!this.renderedExtent_||!(0,p.fS)(this.renderedExtent_,O),this.renderedExtent_=O,this.renderedPixelRatio=m,this.renderedProjection=i,this.manageTilePyramid(t,v,b,m,i,S,w,y.getPreload()),this.scheduleExpireCache(t,v),this.postRender(W,t),n.extent&&W.restore(),(0,h.f0)(W,u.s),q!==H.style.transform&&(H.style.transform=q),this.container},e.prototype.drawTileImage=function(t,e,n,r,i,o,a,s){var l=this.getTileImage(t);if(l){var u=(0,f.sq)(this),c=e.layerStatesArray[e.layerIndex],h=c.opacity*(s?t.getAlpha(u,e.time):1),p=h!==this.context.globalAlpha;p&&(this.context.save(),this.context.globalAlpha=h),this.context.drawImage(l,a,a,l.width-2*a,l.height-2*a,n,r,i,o),p&&this.context.restore(),h!==c.opacity?e.animate=!0:s&&t.endTransition(u)}},e.prototype.getImage=function(){var t=this.context;return t?t.canvas:null},e.prototype.getTileImage=function(t){return t.getImage()},e.prototype.scheduleExpireCache=function(t,e){if(e.canExpireCache()){var n=function(t,e,n){var r=(0,f.sq)(t);r in n.usedTiles&&t.expireCache(n.viewState.projection,n.usedTiles[r])}.bind(null,e);t.postRenderFunctions.push(n)}},e.prototype.updateUsedTiles=function(t,e,n){var r=(0,f.sq)(e);r in t||(t[r]={}),t[r][n.getKey()]=!0},e.prototype.manageTilePyramid=function(t,e,n,r,i,o,a,s,u){var c=(0,f.sq)(e);c in t.wantedTiles||(t.wantedTiles[c]={});var h,d,g,m,y,v,_=t.wantedTiles[c],b=t.tileQueue,w=n.getMinZoom(),x=t.viewState.rotation,S=x?(0,p.dY)(t.viewState.center,t.viewState.resolution,x,t.size):void 0,C=0;for(v=w;v<=a;++v)for(d=n.getTileRangeForExtentAndZ(o,v,d),g=n.getResolution(v),m=d.minX;m<=d.maxX;++m)for(y=d.minY;y<=d.maxY;++y)x&&!n.tileCoordIntersectsViewport([v,m,y],S)||(a-v<=s?(++C,(h=e.getTile(v,m,y,r,i)).getState()==l.Z.IDLE&&(_[h.getKey()]=!0,b.isKeyQueued(h.getKey())||b.enqueue([h,c,n.getTileCoordCenter(h.tileCoord),g])),void 0!==u&&u(h)):e.useTile(v,m,y,i));e.updateCacheSize(C,i)},e}(i.Z)},3192:(t,e,n)=>{"use strict";n.d(e,{$:()=>r,s:()=>i});var r={imageSmoothingEnabled:!1,msImageSmoothingEnabled:!1},i={imageSmoothingEnabled:!0,msImageSmoothingEnabled:!0}},3545:(t,e,n)=>{"use strict";n.d(e,{Pn:()=>u,Qz:()=>l,eR:()=>a,se:()=>s});var r=n(6637),i=n(2637),o={Point:function(t,e,n,i,o){var a,s=n.getImage(),l=n.getText();if(s){if(s.getImageState()!=r.Z.LOADED)return;var u=t;if(o){var c=s.getDeclutterMode();if("none"!==c)if(u=o,"obstacle"===c){var h=t.getBuilder(n.getZIndex(),"Image");h.setImageStyle(s,a),h.drawPoint(e,i)}else l&&l.getText()&&(a={})}var p=u.getBuilder(n.getZIndex(),"Image");p.setImageStyle(s,a),p.drawPoint(e,i)}if(l&&l.getText()){var d=t;o&&(d=o);var f=d.getBuilder(n.getZIndex(),"Text");f.setTextStyle(l,a),f.drawText(e,i)}},LineString:function(t,e,n,r,i){var o=n.getStroke();if(o){var a=t.getBuilder(n.getZIndex(),"LineString");a.setFillStrokeStyle(null,o),a.drawLineString(e,r)}var s=n.getText();if(s&&s.getText()){var l=(i||t).getBuilder(n.getZIndex(),"Text");l.setTextStyle(s),l.drawText(e,r)}},Polygon:function(t,e,n,r,i){var o=n.getFill(),a=n.getStroke();if(o||a){var s=t.getBuilder(n.getZIndex(),"Polygon");s.setFillStrokeStyle(o,a),s.drawPolygon(e,r)}var l=n.getText();if(l&&l.getText()){var u=(i||t).getBuilder(n.getZIndex(),"Text");u.setTextStyle(l),u.drawText(e,r)}},MultiPoint:function(t,e,n,i,o){var a,s=n.getImage(),l=n.getText();if(s){if(s.getImageState()!=r.Z.LOADED)return;var u=t;if(o){var c=s.getDeclutterMode();if("none"!==c)if(u=o,"obstacle"===c){var h=t.getBuilder(n.getZIndex(),"Image");h.setImageStyle(s,a),h.drawMultiPoint(e,i)}else l&&l.getText()&&(a={})}var p=u.getBuilder(n.getZIndex(),"Image");p.setImageStyle(s,a),p.drawMultiPoint(e,i)}if(l&&l.getText()){var d=t;o&&(d=o);var f=d.getBuilder(n.getZIndex(),"Text");f.setTextStyle(l,a),f.drawText(e,i)}},MultiLineString:function(t,e,n,r,i){var o=n.getStroke();if(o){var a=t.getBuilder(n.getZIndex(),"LineString");a.setFillStrokeStyle(null,o),a.drawMultiLineString(e,r)}var s=n.getText();if(s&&s.getText()){var l=(i||t).getBuilder(n.getZIndex(),"Text");l.setTextStyle(s),l.drawText(e,r)}},MultiPolygon:function(t,e,n,r,i){var o=n.getFill(),a=n.getStroke();if(a||o){var s=t.getBuilder(n.getZIndex(),"Polygon");s.setFillStrokeStyle(o,a),s.drawMultiPolygon(e,r)}var l=n.getText();if(l&&l.getText()){var u=(i||t).getBuilder(n.getZIndex(),"Text");u.setTextStyle(l),u.drawText(e,r)}},GeometryCollection:function(t,e,n,r,i){var a,s,l=e.getGeometriesArray();for(a=0,s=l.length;a<s;++a)(0,o[l[a].getType()])(t,l[a],n,r,i)},Circle:function(t,e,n,r,i){var o=n.getFill(),a=n.getStroke();if(o||a){var s=t.getBuilder(n.getZIndex(),"Circle");s.setFillStrokeStyle(o,a),s.drawCircle(e,r)}var l=n.getText();if(l&&l.getText()){var u=(i||t).getBuilder(n.getZIndex(),"Text");u.setTextStyle(l),u.drawText(e,r)}}};function a(t,e){return parseInt((0,i.sq)(t),10)-parseInt((0,i.sq)(e),10)}function s(t,e){var n=l(t,e);return n*n}function l(t,e){return.5*t/e}function u(t,e,n,i,a,s,l){var u=!1,h=n.getImage();if(h){var p=h.getImageState();p==r.Z.LOADED||p==r.Z.ERROR?h.unlistenImageChange(a):(p==r.Z.IDLE&&h.load(),h.listenImageChange(a),u=!0)}return function(t,e,n,r,i,a){var s=n.getGeometryFunction()(e);if(s){var l=s.simplifyTransformed(r,i);n.getRenderer()?c(t,l,n,e):(0,o[l.getType()])(t,l,n,e,a)}}(t,e,n,i,s,l),u}function c(t,e,n,r){if("GeometryCollection"!=e.getType())t.getBuilder(n.getZIndex(),"Default").drawCustom(e,r,n.getRenderer(),n.getHitDetectionRenderer());else for(var i=e.getGeometries(),o=0,a=i.length;o<a;++o)c(t,i[o],n,r)}},1702:(t,e,n)=>{"use strict";n.d(e,{Co:()=>f,aA:()=>d,rX:()=>c,sY:()=>g});var r,i=n(3192),o=n(6534),a=n(6596),s=n(9220),l=n(6162),u=n(8007),c=[];function h(t,e,n,r,i){t.beginPath(),t.moveTo(0,0),t.lineTo(e,n),t.lineTo(r,i),t.closePath(),t.save(),t.clip(),t.fillRect(0,0,Math.max(e,r)+1,Math.max(n,i)),t.restore()}function p(t,e){return Math.abs(t[4*e]-210)>2||Math.abs(t[4*e+3]-191.25)>2}function d(t,e,n,r){var i=(0,l.transform)(n,e,t),o=(0,l.getPointResolution)(e,r,n),s=e.getMetersPerUnit();void 0!==s&&(o*=s);var u=t.getMetersPerUnit();void 0!==u&&(o/=u);var c=t.getExtent();if(!c||(0,a.b8)(c,i)){var h=(0,l.getPointResolution)(t,o,i)/o;isFinite(h)&&h>0&&(o/=h)}return o}function f(t,e,n,r){var i=(0,a.qg)(n),o=d(t,e,i,r);return(!isFinite(o)||o<=0)&&(0,a.H6)(n,(function(n){return o=d(t,e,n,r),isFinite(o)&&o>0})),o}function g(t,e,n,l,d,f,g,m,y,v,_,b){var w=(0,s.E4)(Math.round(n*t),Math.round(n*e),c);if(b||(0,o.f0)(w,i.$),0===y.length)return w.canvas;function x(t){return Math.round(t*n)/n}w.scale(n,n),w.globalCompositeOperation="lighter";var S=(0,a.lJ)();y.forEach((function(t,e,n){(0,a.l7)(S,t.extent)}));var C=(0,a.dz)(S),E=(0,a.Cr)(S),k=(0,s.E4)(Math.round(n*C/l),Math.round(n*E/l));b||(0,o.f0)(k,i.$);var A=n/l;y.forEach((function(t,e,n){var r=t.extent[0]-S[0],i=-(t.extent[3]-S[3]),o=(0,a.dz)(t.extent),s=(0,a.Cr)(t.extent);t.image.width>0&&t.image.height>0&&k.drawImage(t.image,v,v,t.image.width-2*v,t.image.height-2*v,r*A,i*A,o*A,s*A)}));var P=(0,a.rL)(g);return m.getTriangles().forEach((function(t,e,i){var o=t.source,a=t.target,s=o[0][0],c=o[0][1],d=o[1][0],g=o[1][1],m=o[2][0],y=o[2][1],v=x((a[0][0]-P[0])/f),_=x(-(a[0][1]-P[1])/f),C=x((a[1][0]-P[0])/f),E=x(-(a[1][1]-P[1])/f),A=x((a[2][0]-P[0])/f),T=x(-(a[2][1]-P[1])/f),M=s,O=c;s=0,c=0;var R=[[d-=M,g-=O,0,0,C-v],[m-=M,y-=O,0,0,A-v],[0,0,d,g,E-_],[0,0,m,y,T-_]],I=(0,u.SV)(R);if(I){if(w.save(),w.beginPath(),function(){if(void 0===r){var t=document.createElement("canvas").getContext("2d");t.globalCompositeOperation="lighter",t.fillStyle="rgba(210, 0, 0, 0.75)",h(t,4,5,4,0),h(t,4,5,0,5);var e=t.getImageData(0,0,3,3).data;r=p(e,0)||p(e,4)||p(e,8)}return r}()||!b){w.moveTo(C,E);for(var L=v-C,F=_-E,N=0;N<4;N++)w.lineTo(C+x((N+1)*L/4),E+x(N*F/3)),3!=N&&w.lineTo(C+x((N+1)*L/4),E+x((N+1)*F/3));w.lineTo(A,T)}else w.moveTo(C,E),w.lineTo(v,_),w.lineTo(A,T);w.clip(),w.transform(I[0],I[2],I[1],I[3],v,_),w.translate(S[0]-M,S[3]-O),w.scale(l/n,-l/n),w.drawImage(k.canvas,0,0),w.restore()}})),_&&(w.save(),w.globalCompositeOperation="source-over",w.strokeStyle="black",w.lineWidth=1,m.getTriangles().forEach((function(t,e,n){var r=t.target,i=(r[0][0]-P[0])/f,o=-(r[0][1]-P[1])/f,a=(r[1][0]-P[0])/f,s=-(r[1][1]-P[1])/f,l=(r[2][0]-P[0])/f,u=-(r[2][1]-P[1])/f;w.beginPath(),w.moveTo(a,s),w.lineTo(i,o),w.lineTo(l,u),w.closePath(),w.stroke()})),w.restore()),w.canvas}},2467:(t,e,n)=>{"use strict";n.d(e,{Z:()=>g});var r,i=n(3611),o=n(2001),a=n(5069),s=n(3584),l=n(8662),u=n(1702),c=n(8007),h=n(6596),p=n(8196),d=n(9220),f=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});const g=function(t){function e(e,n,r,o,a,p,d,f,g,m,y,v){var _=t.call(this,a,s.Z.IDLE,{interpolate:!!v})||this;_.renderEdges_=void 0!==y&&y,_.pixelRatio_=d,_.gutter_=f,_.canvas_=null,_.sourceTileGrid_=n,_.targetTileGrid_=o,_.wrappedTileCoord_=p||a,_.sourceTiles_=[],_.sourcesListenerKeys_=null,_.sourceZ_=0;var b=o.getTileCoordExtent(_.wrappedTileCoord_),w=_.targetTileGrid_.getExtent(),x=_.sourceTileGrid_.getExtent(),S=w?(0,h.Ed)(b,w):b;if(0===(0,h.bg)(S))return _.state=s.Z.EMPTY,_;var C=e.getExtent();C&&(x=x?(0,h.Ed)(x,C):C);var E=o.getResolution(_.wrappedTileCoord_[0]),k=(0,u.Co)(e,r,S,E);if(!isFinite(k)||k<=0)return _.state=s.Z.EMPTY,_;var A=void 0!==m?m:i.m;if(_.triangulation_=new l.Z(e,r,S,x,k*A,E),0===_.triangulation_.getTriangles().length)return _.state=s.Z.EMPTY,_;_.sourceZ_=n.getZForResolution(k);var P=_.triangulation_.calculateSourceExtent();if(x&&(e.canWrapX()?(P[1]=(0,c.uZ)(P[1],x[1],x[3]),P[3]=(0,c.uZ)(P[3],x[1],x[3])):P=(0,h.Ed)(P,x)),(0,h.bg)(P)){for(var T=n.getTileRangeForExtentAndZ(P,_.sourceZ_),M=T.minX;M<=T.maxX;M++)for(var O=T.minY;O<=T.maxY;O++){var R=g(_.sourceZ_,M,O,d);R&&_.sourceTiles_.push(R)}0===_.sourceTiles_.length&&(_.state=s.Z.EMPTY)}else _.state=s.Z.EMPTY;return _}return f(e,t),e.prototype.getImage=function(){return this.canvas_},e.prototype.reproject_=function(){var t=[];if(this.sourceTiles_.forEach(function(e,n,r){e&&e.getState()==s.Z.LOADED&&t.push({extent:this.sourceTileGrid_.getTileCoordExtent(e.tileCoord),image:e.getImage()})}.bind(this)),this.sourceTiles_.length=0,0===t.length)this.state=s.Z.ERROR;else{var e=this.wrappedTileCoord_[0],n=this.targetTileGrid_.getTileSize(e),r="number"==typeof n?n:n[0],i="number"==typeof n?n:n[1],o=this.targetTileGrid_.getResolution(e),a=this.sourceTileGrid_.getResolution(this.sourceZ_),l=this.targetTileGrid_.getTileCoordExtent(this.wrappedTileCoord_);this.canvas_=(0,u.sY)(r,i,this.pixelRatio_,a,this.sourceTileGrid_.getExtent(),o,l,this.triangulation_,t,this.gutter_,this.renderEdges_,this.interpolate),this.state=s.Z.LOADED}this.changed()},e.prototype.load=function(){if(this.state==s.Z.IDLE){this.state=s.Z.LOADING,this.changed();var t=0;this.sourcesListenerKeys_=[],this.sourceTiles_.forEach(function(e,n,r){var i=e.getState();if(i==s.Z.IDLE||i==s.Z.LOADING){t++;var a=(0,p.oL)(e,o.Z.CHANGE,(function(n){var r=e.getState();r!=s.Z.LOADED&&r!=s.Z.ERROR&&r!=s.Z.EMPTY||((0,p.bN)(a),0==--t&&(this.unlistenSources_(),this.reproject_()))}),this);this.sourcesListenerKeys_.push(a)}}.bind(this)),0===t?setTimeout(this.reproject_.bind(this),0):this.sourceTiles_.forEach((function(t,e,n){t.getState()==s.Z.IDLE&&t.load()}))}},e.prototype.unlistenSources_=function(){this.sourcesListenerKeys_.forEach(p.bN),this.sourcesListenerKeys_=null},e.prototype.release=function(){this.canvas_&&((0,d.jy)(this.canvas_.getContext("2d")),u.rX.push(this.canvas_),this.canvas_=null),t.prototype.release.call(this)},e}(a.Z)},8662:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var r=n(6596),i=n(6162),o=n(8007);const a=function(){function t(t,e,n,a,s,l){this.sourceProj_=t,this.targetProj_=e;var u={},c=(0,i.getTransform)(this.targetProj_,this.sourceProj_);this.transformInv_=function(t){var e=t[0]+"/"+t[1];return u[e]||(u[e]=c(t)),u[e]},this.maxSourceExtent_=a,this.errorThresholdSquared_=s*s,this.triangles_=[],this.wrapsXInSource_=!1,this.canWrapXInSource_=this.sourceProj_.canWrapX()&&!!a&&!!this.sourceProj_.getExtent()&&(0,r.dz)(a)==(0,r.dz)(this.sourceProj_.getExtent()),this.sourceWorldWidth_=this.sourceProj_.getExtent()?(0,r.dz)(this.sourceProj_.getExtent()):null,this.targetWorldWidth_=this.targetProj_.getExtent()?(0,r.dz)(this.targetProj_.getExtent()):null;var h=(0,r.rL)(n),p=(0,r.Xv)(n),d=(0,r.w$)(n),f=(0,r.hC)(n),g=this.transformInv_(h),m=this.transformInv_(p),y=this.transformInv_(d),v=this.transformInv_(f),_=10+(l?Math.max(0,Math.ceil((0,o.k3)((0,r.bg)(n)/(l*l*256*256)))):0);if(this.addQuad_(h,p,d,f,g,m,y,v,_),this.wrapsXInSource_){var b=1/0;this.triangles_.forEach((function(t,e,n){b=Math.min(b,t.source[0][0],t.source[1][0],t.source[2][0])})),this.triangles_.forEach(function(t){if(Math.max(t.source[0][0],t.source[1][0],t.source[2][0])-b>this.sourceWorldWidth_/2){var e=[[t.source[0][0],t.source[0][1]],[t.source[1][0],t.source[1][1]],[t.source[2][0],t.source[2][1]]];e[0][0]-b>this.sourceWorldWidth_/2&&(e[0][0]-=this.sourceWorldWidth_),e[1][0]-b>this.sourceWorldWidth_/2&&(e[1][0]-=this.sourceWorldWidth_),e[2][0]-b>this.sourceWorldWidth_/2&&(e[2][0]-=this.sourceWorldWidth_);var n=Math.min(e[0][0],e[1][0],e[2][0]);Math.max(e[0][0],e[1][0],e[2][0])-n<this.sourceWorldWidth_/2&&(t.source=e)}}.bind(this))}u={}}return t.prototype.addTriangle_=function(t,e,n,r,i,o){this.triangles_.push({source:[r,i,o],target:[t,e,n]})},t.prototype.addQuad_=function(t,e,n,i,a,s,l,u,c){var h=(0,r.hI)([a,s,l,u]),p=this.sourceWorldWidth_?(0,r.dz)(h)/this.sourceWorldWidth_:null,d=this.sourceWorldWidth_,f=this.sourceProj_.canWrapX()&&p>.5&&p<1,g=!1;if(c>0){if(this.targetProj_.isGlobal()&&this.targetWorldWidth_){var m=(0,r.hI)([t,e,n,i]);g=(0,r.dz)(m)/this.targetWorldWidth_>.25||g}!f&&this.sourceProj_.isGlobal()&&p&&(g=p>.25||g)}if(!(!g&&this.maxSourceExtent_&&isFinite(h[0])&&isFinite(h[1])&&isFinite(h[2])&&isFinite(h[3]))||(0,r.kK)(h,this.maxSourceExtent_)){var y=0;if(!(g||isFinite(a[0])&&isFinite(a[1])&&isFinite(s[0])&&isFinite(s[1])&&isFinite(l[0])&&isFinite(l[1])&&isFinite(u[0])&&isFinite(u[1])))if(c>0)g=!0;else if(1!=(y=(isFinite(a[0])&&isFinite(a[1])?0:8)+(isFinite(s[0])&&isFinite(s[1])?0:4)+(isFinite(l[0])&&isFinite(l[1])?0:2)+(isFinite(u[0])&&isFinite(u[1])?0:1))&&2!=y&&4!=y&&8!=y)return;if(c>0){if(!g){var v=[(t[0]+n[0])/2,(t[1]+n[1])/2],_=this.transformInv_(v),b=void 0;b=f?((0,o.$W)(a[0],d)+(0,o.$W)(l[0],d))/2-(0,o.$W)(_[0],d):(a[0]+l[0])/2-_[0];var w=(a[1]+l[1])/2-_[1];g=b*b+w*w>this.errorThresholdSquared_}if(g){if(Math.abs(t[0]-n[0])<=Math.abs(t[1]-n[1])){var x=[(e[0]+n[0])/2,(e[1]+n[1])/2],S=this.transformInv_(x),C=[(i[0]+t[0])/2,(i[1]+t[1])/2],E=this.transformInv_(C);this.addQuad_(t,e,x,C,a,s,S,E,c-1),this.addQuad_(C,x,n,i,E,S,l,u,c-1)}else{var k=[(t[0]+e[0])/2,(t[1]+e[1])/2],A=this.transformInv_(k),P=[(n[0]+i[0])/2,(n[1]+i[1])/2],T=this.transformInv_(P);this.addQuad_(t,k,P,i,a,A,T,u,c-1),this.addQuad_(k,e,n,P,A,s,l,T,c-1)}return}}if(f){if(!this.canWrapXInSource_)return;this.wrapsXInSource_=!0}0==(11&y)&&this.addTriangle_(t,n,i,a,l,u),0==(14&y)&&this.addTriangle_(t,n,e,a,l,s),y&&(0==(13&y)&&this.addTriangle_(e,i,t,s,u,a),0==(7&y)&&this.addTriangle_(e,i,n,s,u,l))}},t.prototype.calculateSourceExtent=function(){var t=(0,r.lJ)();return this.triangles_.forEach((function(e,n,i){var o=e.source;(0,r.Wj)(t,o[0]),(0,r.Wj)(t,o[1]),(0,r.Wj)(t,o[2])})),t},t.prototype.getTriangles=function(){return this.triangles_},t}()},3611:(t,e,n)=>{"use strict";n.d(e,{j:()=>i,m:()=>r});var r=.5,i=!0},2758:(t,e,n)=>{"use strict";n.d(e,{Gw:()=>s,YP:()=>o,gE:()=>a,h$:()=>i});var r=n(8007);function i(t){return void 0!==t?0:void 0}function o(t){return void 0!==t?t:void 0}function a(t){var e=2*Math.PI/t;return function(t,n){return n?t:void 0!==t?t=Math.floor(t/e+.5)*e:void 0}}function s(t){var e=t||(0,r.Yr)(5);return function(t,n){return n?t:void 0!==t?Math.abs(t)<=e?0:t:void 0}}},8691:(t,e,n)=>{"use strict";function r(t,e,n){return void 0===n&&(n=[0,0]),n[0]=t[0]+2*e,n[1]=t[1]+2*e,n}function i(t){return t[0]>0&&t[1]>0}function o(t,e,n){return void 0===n&&(n=[0,0]),n[0]=t[0]*e+.5|0,n[1]=t[1]*e+.5|0,n}function a(t,e){return Array.isArray(t)?t:(void 0===e?e=[t,t]:(e[0]=t,e[1]=t),e)}n.d(e,{Pq:()=>a,bA:()=>o,f3:()=>r,py:()=>i})},6993:(t,e,n)=>{"use strict";n.r(e),n.d(e,{BingMaps:()=>d,CartoDB:()=>v,Cluster:()=>A,DataTile:()=>D,GeoTIFF:()=>en,IIIF:()=>fn,Image:()=>Pn,ImageArcGISRest:()=>Rn,ImageCanvas:()=>Fn,ImageMapGuide:()=>Dn,ImageStatic:()=>Gn,ImageWMS:()=>Hn,OSM:()=>Yn,Raster:()=>wr,Source:()=>Cn.Z,Stamen:()=>kr,Tile:()=>I.Z,TileArcGISRest:()=>Pr,TileDebug:()=>Or,TileImage:()=>a.Z,TileJSON:()=>Rr.Z,TileWMS:()=>Fr,UTFGrid:()=>jr,UrlTile:()=>Nr.Z,Vector:()=>x.default,VectorTile:()=>Gr.default,WMTS:()=>Vr,XYZ:()=>g,Zoomify:()=>un,sourcesFromTileGrid:()=>qr});var r,i=n(8172),o=n(6596),a=n(1739),s=n(9759),l=n(9465),u=n(5035),c=n(6162),h=n(3022),p=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});const d=function(t){function e(e){var n=this,r=void 0!==e.hidpi&&e.hidpi,i=void 0===e.imageSmoothing||e.imageSmoothing;void 0!==e.interpolate&&(i=e.interpolate),(n=t.call(this,{cacheSize:e.cacheSize,crossOrigin:"anonymous",interpolate:i,opaque:!0,projection:(0,c.get)("EPSG:3857"),reprojectionErrorThreshold:e.reprojectionErrorThreshold,state:"loading",tileLoadFunction:e.tileLoadFunction,tilePixelRatio:r?2:1,wrapX:void 0===e.wrapX||e.wrapX,transition:e.transition,zDirection:e.zDirection})||this).hidpi_=r,n.culture_=void 0!==e.culture?e.culture:"en-us",n.maxZoom_=void 0!==e.maxZoom?e.maxZoom:-1,n.apiKey_=e.key,n.imagerySet_=e.imagerySet;var o="https://dev.virtualearth.net/REST/v1/Imagery/Metadata/"+n.imagerySet_+"?uriScheme=https&include=ImageryProviders&key="+n.apiKey_+"&c="+n.culture_;return(0,h.R6)(o,n.handleImageryMetadataResponse.bind(n),void 0,"jsonp"),n}return p(e,t),e.prototype.getApiKey=function(){return this.apiKey_},e.prototype.getImagerySet=function(){return this.imagerySet_},e.prototype.handleImageryMetadataResponse=function(t){if(200==t.statusCode&&"OK"==t.statusDescription&&"ValidCredentials"==t.authenticationResultCode&&1==t.resourceSets.length&&1==t.resourceSets[0].resources.length){var e=t.resourceSets[0].resources[0],n=-1==this.maxZoom_?e.zoomMax:this.maxZoom_,r=this.getProjection(),i=(0,u.Tl)(r),a=this.hidpi_?2:1,h=e.imageWidth==e.imageHeight?e.imageWidth/a:[e.imageWidth/a,e.imageHeight/a],p=(0,u.dl)({extent:i,minZoom:e.zoomMin,maxZoom:n,tileSize:h});this.tileGrid=p;var d=this.culture_,f=this.hidpi_;if(this.tileUrlFunction=(0,s.Un)(e.imageUrlSubdomains.map((function(t){var n=[0,0,0],r=e.imageUrl.replace("{subdomain}",t).replace("{culture}",d);return function(t,e,i){if(t){(0,l.T9)(t[0],t[1],t[2],n);var o=r;return f&&(o+="&dpi=d1&device=mobile"),o.replace("{quadkey}",function(t){var e,n,r=t[0],i=new Array(r),o=1<<r-1;for(e=0;e<r;++e)n=48,t[1]&o&&(n+=1),t[2]&o&&(n+=2),i[e]=String.fromCharCode(n),o>>=1;return i.join("")}(n))}}}))),e.imageryProviders){var g=(0,c.getTransformFromProjections)((0,c.get)("EPSG:4326"),this.getProjection());this.setAttributions(function(t){var n=[],r=t.viewState,i=this.getTileGrid(),a=i.getZForResolution(r.resolution,this.zDirection),s=i.getTileCoordForCoordAndZ(r.center,a)[0];return e.imageryProviders.map((function(e){for(var r=!1,i=e.coverageAreas,a=0,l=i.length;a<l;++a){var u=i[a];if(s>=u.zoomMin&&s<=u.zoomMax){var c=u.bbox,h=[c[1],c[0],c[3],c[2]],p=(0,o.Ne)(h,g);if((0,o.kK)(p,t.extent)){r=!0;break}}}r&&n.push(e.attribution)})),n.push('<a class="ol-attribution-bing-tos" href="https://www.microsoft.com/maps/product/terms.html" target="_blank">Terms of Use</a>'),n}.bind(this))}this.setState("ready")}else this.setState("error")},e}(a.Z);var f=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const g=function(t){function e(e){var n=this,r=e||{},i=void 0===r.imageSmoothing||r.imageSmoothing;void 0!==r.interpolate&&(i=r.interpolate);var o=void 0!==r.projection?r.projection:"EPSG:3857",a=void 0!==r.tileGrid?r.tileGrid:(0,u.dl)({extent:(0,u.Tl)(o),maxResolution:r.maxResolution,maxZoom:r.maxZoom,minZoom:r.minZoom,tileSize:r.tileSize});return(n=t.call(this,{attributions:r.attributions,cacheSize:r.cacheSize,crossOrigin:r.crossOrigin,interpolate:i,opaque:r.opaque,projection:o,reprojectionErrorThreshold:r.reprojectionErrorThreshold,tileGrid:a,tileLoadFunction:r.tileLoadFunction,tilePixelRatio:r.tilePixelRatio,tileUrlFunction:r.tileUrlFunction,url:r.url,urls:r.urls,wrapX:void 0===r.wrapX||r.wrapX,transition:r.transition,attributionsCollapsible:r.attributionsCollapsible,zDirection:r.zDirection})||this).gutter_=void 0!==r.gutter?r.gutter:0,n}return f(e,t),e.prototype.getGutter=function(){return this.gutter_},e}(a.Z);var m=n(6534),y=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const v=function(t){function e(e){var n=t.call(this,{attributions:e.attributions,cacheSize:e.cacheSize,crossOrigin:e.crossOrigin,maxZoom:void 0!==e.maxZoom?e.maxZoom:18,minZoom:e.minZoom,projection:e.projection,transition:e.transition,wrapX:e.wrapX,zDirection:e.zDirection})||this;return n.account_=e.account,n.mapId_=e.map||"",n.config_=e.config||{},n.templateCache_={},n.initializeMap_(),n}return y(e,t),e.prototype.getConfig=function(){return this.config_},e.prototype.updateConfig=function(t){(0,m.f0)(this.config_,t),this.initializeMap_()},e.prototype.setConfig=function(t){this.config_=t||{},this.initializeMap_()},e.prototype.initializeMap_=function(){var t=JSON.stringify(this.config_);if(this.templateCache_[t])this.applyTemplate_(this.templateCache_[t]);else{var e="https://"+this.account_+".carto.com/api/v1/map";this.mapId_&&(e+="/named/"+this.mapId_);var n=new XMLHttpRequest;n.addEventListener("load",this.handleInitResponse_.bind(this,t)),n.addEventListener("error",this.handleInitError_.bind(this)),n.open("POST",e),n.setRequestHeader("Content-type","application/json"),n.send(JSON.stringify(this.config_))}},e.prototype.handleInitResponse_=function(t,e){var n=e.target;if(!n.status||n.status>=200&&n.status<300){var r=void 0;try{r=JSON.parse(n.responseText)}catch(t){return void this.setState("error")}this.applyTemplate_(r),this.templateCache_[t]=r,this.setState("ready")}else this.setState("error")},e.prototype.handleInitError_=function(t){this.setState("error")},e.prototype.applyTemplate_=function(t){var e="https://"+t.cdn_url.https+"/"+this.account_+"/api/v1/map/"+t.layergroupid+"/{z}/{x}/{y}.png";this.setUrl(e)},e}(g);var _=n(2001),b=n(2540),w=n(971),x=n(5792),S=n(2253),C=n(9162),E=n(2637),k=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const A=function(t){function e(e){var n=t.call(this,{attributions:e.attributions,wrapX:e.wrapX})||this;return n.resolution=void 0,n.distance=void 0!==e.distance?e.distance:20,n.minDistance=e.minDistance||0,n.interpolationRatio=0,n.features=[],n.geometryFunction=e.geometryFunction||function(t){var e=t.getGeometry();return(0,C.h)("Point"==e.getType(),10),e},n.createCustomCluster_=e.createCluster,n.source=null,n.boundRefresh_=n.refresh.bind(n),n.updateDistance(n.distance,n.minDistance),n.setSource(e.source||null),n}return k(e,t),e.prototype.clear=function(e){this.features.length=0,t.prototype.clear.call(this,e)},e.prototype.getDistance=function(){return this.distance},e.prototype.getSource=function(){return this.source},e.prototype.loadFeatures=function(t,e,n){this.source.loadFeatures(t,e,n),e!==this.resolution&&(this.resolution=e,this.refresh())},e.prototype.setDistance=function(t){this.updateDistance(t,this.minDistance)},e.prototype.setMinDistance=function(t){this.updateDistance(this.distance,t)},e.prototype.getMinDistance=function(){return this.minDistance},e.prototype.setSource=function(t){this.source&&this.source.removeEventListener(_.Z.CHANGE,this.boundRefresh_),this.source=t,t&&t.addEventListener(_.Z.CHANGE,this.boundRefresh_),this.refresh()},e.prototype.refresh=function(){this.clear(),this.cluster(),this.addFeatures(this.features)},e.prototype.updateDistance=function(t,e){var n=0===t?0:Math.min(e,t)/t,r=t!==this.distance||this.interpolationRatio!==n;this.distance=t,this.minDistance=e,this.interpolationRatio=n,r&&this.refresh()},e.prototype.cluster=function(){if(void 0!==this.resolution&&this.source)for(var t=(0,o.lJ)(),e=this.distance*this.resolution,n=this.source.getFeatures(),r={},i=0,a=n.length;i<a;i++){var s=n[i];if(!((0,E.sq)(s)in r)){var l=this.geometryFunction(s);if(l){var u=l.getCoordinates();(0,o.HK)(u,t),(0,o.f3)(t,e,t);var c=this.source.getFeaturesInExtent(t).filter((function(t){var e=(0,E.sq)(t);return!(e in r)&&(r[e]=!0,!0)}));this.features.push(this.createCluster(c,t))}}}},e.prototype.createCluster=function(t,e){for(var n=[0,0],r=t.length-1;r>=0;--r){var i=this.geometryFunction(t[r]);i?(0,S.IH)(n,i.getCoordinates()):t.splice(r,1)}(0,S.bA)(n,1/t.length);var a=(0,o.qg)(e),s=this.interpolationRatio,l=new w.Z([n[0]*(1-s)+a[0]*s,n[1]*(1-s)+a[1]*s]);return this.createCustomCluster_?this.createCustomCluster_(l,t):new b.Z({geometry:l,features:t})},e}(x.default);var P=n(5069),T=n(3584),M=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const O=function(t){function e(e){var n=this,r=T.Z.IDLE;return(n=t.call(this,e.tileCoord,r,{transition:e.transition,interpolate:e.interpolate})||this).loader_=e.loader,n.data_=null,n.error_=null,n.size_=e.size||[256,256],n}return M(e,t),e.prototype.getSize=function(){return this.size_},e.prototype.getData=function(){return this.data_},e.prototype.getError=function(){return this.error_},e.prototype.load=function(){if(this.state===T.Z.IDLE||this.state===T.Z.ERROR){this.state=T.Z.LOADING,this.changed();var t=this;this.loader_().then((function(e){t.data_=e,t.state=T.Z.LOADED,t.changed()})).catch((function(e){t.error_=e,t.state=T.Z.ERROR,t.changed()}))}},e}(P.Z);var R=n(2134),I=n(3718),L=n(6764),F=n(8691),N=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const D=function(t){function e(e){var n=this,r=void 0===e.projection?"EPSG:3857":e.projection,i=e.tileGrid;if(void 0===i&&r&&(i=(0,u.dl)({extent:(0,u.Tl)(r),maxResolution:e.maxResolution,maxZoom:e.maxZoom,minZoom:e.minZoom,tileSize:e.tileSize})),(n=t.call(this,{cacheSize:.1,attributions:e.attributions,attributionsCollapsible:e.attributionsCollapsible,projection:r,tileGrid:i,opaque:e.opaque,state:e.state,tilePixelRatio:e.tilePixelRatio,wrapX:e.wrapX,transition:e.transition,interpolate:e.interpolate})||this).gutter_=void 0!==e.gutter?e.gutter:0,n.tileSize_=e.tileSize?(0,F.Pq)(e.tileSize):null,!n.tileSize_&&e.tilePixelRatio&&i){var o=(0,F.Pq)(i.getTileSize(0));n.tileSize_=[o[0]*e.tilePixelRatio,o[1]*e.tilePixelRatio]}return n.tileSizes_=null,n.tileLoadingKeys_={},n.loader_=e.loader,n.handleTileChange_=n.handleTileChange_.bind(n),n.bandCount=void 0===e.bandCount?4:e.bandCount,n}return N(e,t),e.prototype.setTileSizes=function(t){this.tileSizes_=t},e.prototype.getTileSize=function(t){if(this.tileSizes_)return this.tileSizes_[t];if(this.tileSize_)return this.tileSize_;var e=this.getTileGrid();return e?(0,F.Pq)(e.getTileSize(t)):[256,256]},e.prototype.getGutterForProjection=function(t){return this.gutter_},e.prototype.setLoader=function(t){this.loader_=t},e.prototype.getTile=function(t,e,n,r,i){var o=this.getTileSize(t),a=(0,l.lg)(t,e,n);if(this.tileCache.containsKey(a))return this.tileCache.get(a);var s=this.loader_,u=(0,m.f0)({tileCoord:[t,e,n],loader:function(){return(0,L.Vi)((function(){return s(t,e,n)}))},size:o},this.tileOptions),c=new O(u);return c.key=this.getKey(),c.addEventListener(_.Z.CHANGE,this.handleTileChange_),this.tileCache.set(a,c),c},e.prototype.handleTileChange_=function(t){var e,n=t.target,r=(0,E.sq)(n),i=n.getState();i==T.Z.LOADING?(this.tileLoadingKeys_[r]=!0,e=R.Z.TILELOADSTART):r in this.tileLoadingKeys_&&(delete this.tileLoadingKeys_[r],e=i==T.Z.ERROR?R.Z.TILELOADERROR:i==T.Z.LOADED?R.Z.TILELOADEND:void 0),e&&this.dispatchEvent(new I.s(e,n))},e}(I.Z);var z=n(8948);const Z=new Map;function j(t,e){Array.isArray(t)||(t=[t]),t.forEach((t=>Z.set(t,e)))}async function G(t){const e=Z.get(t.Compression);if(!e)throw new Error(`Unknown compression method identifier: ${t.Compression}`);return new(await e())(t)}j([void 0,1],(()=>n.e(218).then(n.bind(n,2218)).then((t=>t.default)))),j(5,(()=>n.e(134).then(n.bind(n,7134)).then((t=>t.default)))),j(6,(()=>{throw new Error("old style JPEG compression is not supported.")})),j(7,(()=>n.e(242).then(n.bind(n,8242)).then((t=>t.default)))),j([8,32946],(()=>Promise.all([n.e(929),n.e(384)]).then(n.bind(n,8384)).then((t=>t.default)))),j(32773,(()=>n.e(35).then(n.bind(n,3035)).then((t=>t.default)))),j(34887,(()=>Promise.all([n.e(929),n.e(399)]).then(n.bind(n,7399)).then((t=>t.default)))),j(50001,(()=>n.e(666).then(n.bind(n,6666)).then((t=>t.default))));const B="undefined"!=typeof navigator&&navigator.hardwareConcurrency||2,U=class{constructor(t=B,e){this.workers=null,this._awaitingDecoder=null,this.size=t,this.messageId=0,t&&(this._awaitingDecoder=e?Promise.resolve(e):new Promise((t=>{n.e(76).then(n.bind(n,5076)).then((e=>{t(e.create)}))})),this._awaitingDecoder.then((e=>{this._awaitingDecoder=null,this.workers=[];for(let n=0;n<t;n++)this.workers.push({worker:e(),idle:!0})})))}async decode(t,e){return this._awaitingDecoder&&await this._awaitingDecoder,0===this.size?G(t).then((n=>n.decode(t,e))):new Promise((n=>{const r=this.workers.find((t=>t.idle))||this.workers[Math.floor(Math.random()*this.size)];r.idle=!1;const i=this.messageId++,o=t=>{t.data.id===i&&(r.idle=!0,n(t.data.decoded),r.worker.removeEventListener("message",o))};r.worker.addEventListener("message",o),r.worker.postMessage({fileDirectory:t,buffer:e,id:i},[e])}))}destroy(){this.workers&&(this.workers.forEach((t=>{t.worker.terminate()})),this.workers=null)}};function V(t){return(e,...n)=>W(t,e,n)}function q(t,e){return V(Y(t,e).get)}const{apply:W,construct:H,defineProperty:X,get:K,getOwnPropertyDescriptor:Y,getPrototypeOf:Q,has:$,ownKeys:J,set:tt,setPrototypeOf:et}=Reflect,{MAX_SAFE_INTEGER:nt,isFinite:rt,isNaN:it}=(Proxy,Number),{iterator:ot,species:at,toStringTag:st,for:lt}=Symbol,ut=Object,{create:ct,defineProperty:ht,freeze:pt,is:dt}=ut,ft=ut.prototype,gt=(ft.__lookupGetter__&&V(ft.__lookupGetter__),ut.hasOwn||V(ft.hasOwnProperty),Array),mt=(gt.isArray,gt.prototype),yt=(V(mt.join),V(mt.push),V(mt.toLocaleString),mt[ot]),vt=V(yt),_t=(Math.trunc,ArrayBuffer),bt=(_t.isView,_t.prototype),wt=(V(bt.slice),q(bt,"byteLength"),"undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:null),xt=(wt&&q(wt.prototype,"byteLength"),Q(Uint8Array)),St=(xt.from,xt.prototype),Ct=(St[ot],V(St.keys),V(St.values),V(St.entries),V(St.set),V(St.reverse),V(St.fill),V(St.copyWithin),V(St.sort),V(St.slice),V(St.subarray),q(St,"buffer"),q(St,"byteOffset"),q(St,"length"),q(St,st),Uint16Array,Uint32Array),Et=Float32Array,kt=Q([][ot]()),At=V(kt.next),Pt=V(function*(){}().next),Tt=Q(kt),Mt=DataView.prototype,Ot=V(Mt.getUint16),Rt=(V(Mt.setUint16),TypeError,RangeError,WeakSet.prototype),It=(V(Rt.add),V(Rt.has),WeakMap),Lt=It.prototype,Ft=V(Lt.get),Nt=(V(Lt.has),V(Lt.set)),Dt=new It,zt=ct(null,{next:{value:function(){const t=Ft(Dt,this);return At(t)}},[ot]:{value:function(){return this}}}),Zt=new It,jt=ct(Tt,{next:{value:function(){const t=Ft(Zt,this);return Pt(t)},writable:!0,configurable:!0}});for(const t of J(kt))"next"!==t&&ht(jt,t,Y(kt,t));const Gt=new _t(4),Bt=new Et(Gt),Ut=new Ct(Gt),Vt=new Ct(512),qt=new Ct(512);for(let t=0;t<256;++t){const e=t-127;e<-27?(Vt[t]=0,Vt[256|t]=32768,qt[t]=24,qt[256|t]=24):e<-14?(Vt[t]=1024>>-e-14,Vt[256|t]=1024>>-e-14|32768,qt[t]=-e-1,qt[256|t]=-e-1):e<=15?(Vt[t]=e+15<<10,Vt[256|t]=e+15<<10|32768,qt[t]=13,qt[256|t]=13):e<128?(Vt[t]=31744,Vt[256|t]=64512,qt[t]=24,qt[256|t]=24):(Vt[t]=31744,Vt[256|t]=64512,qt[t]=13,qt[256|t]=13)}const Wt=new Ct(2048),Ht=new Ct(64),Xt=new Ct(64);for(let t=1;t<1024;++t){let e=t<<13,n=0;for(;0==(8388608&e);)e<<=1,n-=8388608;e&=-8388609,n+=947912704,Wt[t]=e|n}for(let t=1024;t<2048;++t)Wt[t]=939524096+(t-1024<<13);for(let t=1;t<31;++t)Ht[t]=t<<23;Ht[31]=1199570944,Ht[32]=2147483648;for(let t=33;t<63;++t)Ht[t]=2147483648+(t-32<<23);Ht[63]=3347054592;for(let t=1;t<64;++t)32!==t&&(Xt[t]=1024);function Kt(t,e,...n){return function(t){const e=t>>10;return Ut[0]=Wt[Xt[e]+(1023&t)]+Ht[e],Bt[0]}(Ot(t,e,...function(t){if(t[ot]===yt)return t;const e=ct(zt);return Nt(Dt,e,vt(t)),e}(n)))}var Yt=n(7166),Qt=n(6054),$t=n(9659);function Jt(t,e,n,r=1){return new(Object.getPrototypeOf(t).constructor)(e*n*r)}function te(t,e,n){return(1-n)*t+n*e}function ee(t,e,n){let r=0;for(let i=e;i<n;++i)r+=t[i];return r}function ne(t,e,n){switch(t){case 1:if(e<=8)return new Uint8Array(n);if(e<=16)return new Uint16Array(n);if(e<=32)return new Uint32Array(n);break;case 2:if(8===e)return new Int8Array(n);if(16===e)return new Int16Array(n);if(32===e)return new Int32Array(n);break;case 3:switch(e){case 16:case 32:return new Float32Array(n);case 64:return new Float64Array(n)}}throw Error("Unsupported data format/bitsPerSample")}const re=class{constructor(t,e,n,r,i,o){this.fileDirectory=t,this.geoKeys=e,this.dataView=n,this.littleEndian=r,this.tiles=i?{}:null,this.isTiled=!t.StripOffsets;const a=t.PlanarConfiguration;if(this.planarConfiguration=void 0===a?1:a,1!==this.planarConfiguration&&2!==this.planarConfiguration)throw new Error("Invalid planar configuration.");this.source=o}getFileDirectory(){return this.fileDirectory}getGeoKeys(){return this.geoKeys}getWidth(){return this.fileDirectory.ImageWidth}getHeight(){return this.fileDirectory.ImageLength}getSamplesPerPixel(){return void 0!==this.fileDirectory.SamplesPerPixel?this.fileDirectory.SamplesPerPixel:1}getTileWidth(){return this.isTiled?this.fileDirectory.TileWidth:this.getWidth()}getTileHeight(){return this.isTiled?this.fileDirectory.TileLength:void 0!==this.fileDirectory.RowsPerStrip?Math.min(this.fileDirectory.RowsPerStrip,this.getHeight()):this.getHeight()}getBlockWidth(){return this.getTileWidth()}getBlockHeight(t){return this.isTiled||(t+1)*this.getTileHeight()<=this.getHeight()?this.getTileHeight():this.getHeight()-t*this.getTileHeight()}getBytesPerPixel(){let t=0;for(let e=0;e<this.fileDirectory.BitsPerSample.length;++e)t+=this.getSampleByteSize(e);return t}getSampleByteSize(t){if(t>=this.fileDirectory.BitsPerSample.length)throw new RangeError(`Sample index ${t} is out of range.`);return Math.ceil(this.fileDirectory.BitsPerSample[t]/8)}getReaderForSample(t){const e=this.fileDirectory.SampleFormat?this.fileDirectory.SampleFormat[t]:1,n=this.fileDirectory.BitsPerSample[t];switch(e){case 1:if(n<=8)return DataView.prototype.getUint8;if(n<=16)return DataView.prototype.getUint16;if(n<=32)return DataView.prototype.getUint32;break;case 2:if(n<=8)return DataView.prototype.getInt8;if(n<=16)return DataView.prototype.getInt16;if(n<=32)return DataView.prototype.getInt32;break;case 3:switch(n){case 16:return function(t,e){return Kt(this,t,e)};case 32:return DataView.prototype.getFloat32;case 64:return DataView.prototype.getFloat64}}throw Error("Unsupported data format/bitsPerSample")}getSampleFormat(t=0){return this.fileDirectory.SampleFormat?this.fileDirectory.SampleFormat[t]:1}getBitsPerSample(t=0){return this.fileDirectory.BitsPerSample[t]}getArrayForSample(t,e){return ne(this.getSampleFormat(t),this.getBitsPerSample(t),e)}async getTileOrStrip(t,e,n,r,i){const o=Math.ceil(this.getWidth()/this.getTileWidth()),a=Math.ceil(this.getHeight()/this.getTileHeight());let s;const{tiles:l}=this;let u,c;1===this.planarConfiguration?s=e*o+t:2===this.planarConfiguration&&(s=n*o*a+e*o+t),this.isTiled?(u=this.fileDirectory.TileOffsets[s],c=this.fileDirectory.TileByteCounts[s]):(u=this.fileDirectory.StripOffsets[s],c=this.fileDirectory.StripByteCounts[s]);const h=(await this.source.fetch([{offset:u,length:c}],i))[0];let p;return null!==l&&l[s]?p=l[s]:(p=(async()=>{let t=await r.decode(this.fileDirectory,h);const n=this.getSampleFormat(),i=this.getBitsPerSample();return function(t,e){return(1!==t&&2!==t||!(e<=32)||e%8!=0)&&(3!==t||16!==e&&32!==e&&64!==e)}(n,i)&&(t=function(t,e,n,r,i,o,a){const s=new DataView(t),l=2===n?1:r,u=ne(e,i,2===n?a*o:a*o*r),c=parseInt("1".repeat(i),2);if(1===e){let t;t=1===n?r*i:i;let e=o*t;0!=(7&e)&&(e=e+7&-8);for(let t=0;t<a;++t){const n=t*e;for(let e=0;e<o;++e){const r=n+e*l*i;for(let n=0;n<l;++n){const a=r+n*i,h=(t*o+e)*l+n,p=Math.floor(a/8),d=a%8;if(d+i<=8)u[h]=s.getUint8(p)>>8-i-d&c;else if(d+i<=16)u[h]=s.getUint16(p)>>16-i-d&c;else if(d+i<=24){const t=s.getUint16(p)<<8|s.getUint8(p+2);u[h]=t>>24-i-d&c}else u[h]=s.getUint32(p)>>32-i-d&c}}}}return u.buffer}(t,n,this.planarConfiguration,this.getSamplesPerPixel(),i,this.getTileWidth(),this.getBlockHeight(e))),t})(),null!==l&&(l[s]=p)),{x:t,y:e,sample:n,data:await p}}async _readRaster(t,e,n,r,i,o,a,s,l){const u=this.getTileWidth(),c=this.getTileHeight(),h=this.getWidth(),p=this.getHeight(),d=Math.max(Math.floor(t[0]/u),0),f=Math.min(Math.ceil(t[2]/u),Math.ceil(h/u)),g=Math.max(Math.floor(t[1]/c),0),m=Math.min(Math.ceil(t[3]/c),Math.ceil(p/c)),y=t[2]-t[0];let v=this.getBytesPerPixel();const _=[],b=[];for(let t=0;t<e.length;++t)1===this.planarConfiguration?_.push(ee(this.fileDirectory.BitsPerSample,0,e[t])/8):_.push(0),b.push(this.getReaderForSample(e[t]));const w=[],{littleEndian:x}=this;for(let o=g;o<m;++o)for(let a=d;a<f;++a)for(let s=0;s<e.length;++s){const d=s,f=e[s];2===this.planarConfiguration&&(v=this.getSampleByteSize(s));const g=this.getTileOrStrip(a,o,f,i,l);w.push(g),g.then((i=>{const o=i.data,a=new DataView(o),s=this.getBlockHeight(i.y),l=i.y*c,f=i.x*u,g=l+s,m=(i.x+1)*u,w=b[d],S=Math.min(s,s-(g-t[3]),p-l),C=Math.min(u,u-(m-t[2]),h-f);for(let i=Math.max(0,t[1]-l);i<S;++i)for(let o=Math.max(0,t[0]-f);o<C;++o){const s=(i*u+o)*v,c=w.call(a,s+_[d],x);let h;r?(h=(i+l-t[1])*y*e.length+(o+f-t[0])*e.length+d,n[h]=c):(h=(i+l-t[1])*y+o+f-t[0],n[d][h]=c)}}))}if(await Promise.all(w),o&&t[2]-t[0]!==o||a&&t[3]-t[1]!==a){let i;return i=r?function(t,e,n,r,i,o,a="nearest"){switch(a.toLowerCase()){case"nearest":return function(t,e,n,r,i,o){const a=e/r,s=n/i,l=Jt(t,r,i,o);for(let u=0;u<i;++u){const i=Math.min(Math.round(s*u),n-1);for(let n=0;n<r;++n){const s=Math.min(Math.round(a*n),e-1);for(let a=0;a<o;++a){const c=t[i*e*o+s*o+a];l[u*r*o+n*o+a]=c}}}return l}(t,e,n,r,i,o);case"bilinear":case"linear":return function(t,e,n,r,i,o){const a=e/r,s=n/i,l=Jt(t,r,i,o);for(let u=0;u<i;++u){const i=s*u,c=Math.floor(i),h=Math.min(Math.ceil(i),n-1);for(let n=0;n<r;++n){const s=a*n,p=s%1,d=Math.floor(s),f=Math.min(Math.ceil(s),e-1);for(let a=0;a<o;++a){const s=t[c*e*o+d*o+a],g=t[c*e*o+f*o+a],m=t[h*e*o+d*o+a],y=t[h*e*o+f*o+a],v=te(te(s,g,p),te(m,y,p),i%1);l[u*r*o+n*o+a]=v}}}return l}(t,e,n,r,i,o);default:throw new Error(`Unsupported resampling method: '${a}'`)}}(n,t[2]-t[0],t[3]-t[1],o,a,e.length,s):function(t,e,n,r,i,o="nearest"){switch(o.toLowerCase()){case"nearest":return function(t,e,n,r,i){const o=e/r,a=n/i;return t.map((t=>{const s=Jt(t,r,i);for(let l=0;l<i;++l){const i=Math.min(Math.round(a*l),n-1);for(let n=0;n<r;++n){const a=Math.min(Math.round(o*n),e-1),u=t[i*e+a];s[l*r+n]=u}}return s}))}(t,e,n,r,i);case"bilinear":case"linear":return function(t,e,n,r,i){const o=e/r,a=n/i;return t.map((t=>{const s=Jt(t,r,i);for(let l=0;l<i;++l){const i=a*l,u=Math.floor(i),c=Math.min(Math.ceil(i),n-1);for(let n=0;n<r;++n){const a=o*n,h=a%1,p=Math.floor(a),d=Math.min(Math.ceil(a),e-1),f=t[u*e+p],g=t[u*e+d],m=t[c*e+p],y=t[c*e+d],v=te(te(f,g,h),te(m,y,h),i%1);s[l*r+n]=v}}return s}))}(t,e,n,r,i);default:throw new Error(`Unsupported resampling method: '${o}'`)}}(n,t[2]-t[0],t[3]-t[1],o,a,s),i.width=o,i.height=a,i}return n.width=o||t[2]-t[0],n.height=a||t[3]-t[1],n}async readRasters({window:t,samples:e=[],interleave:n,pool:r=null,width:i,height:o,resampleMethod:a,fillValue:s,signal:l}={}){const u=t||[0,0,this.getWidth(),this.getHeight()];if(u[0]>u[2]||u[1]>u[3])throw new Error("Invalid subsets");const c=(u[2]-u[0])*(u[3]-u[1]),h=this.getSamplesPerPixel();if(e&&e.length){for(let t=0;t<e.length;++t)if(e[t]>=h)return Promise.reject(new RangeError(`Invalid sample index '${e[t]}'.`))}else for(let t=0;t<h;++t)e.push(t);let p;if(n)p=ne(this.fileDirectory.SampleFormat?Math.max.apply(null,this.fileDirectory.SampleFormat):1,Math.max.apply(null,this.fileDirectory.BitsPerSample),c*e.length),s&&p.fill(s);else{p=[];for(let t=0;t<e.length;++t){const n=this.getArrayForSample(e[t],c);Array.isArray(s)&&t<s.length?n.fill(s[t]):s&&!Array.isArray(s)&&n.fill(s),p.push(n)}}const d=r||await G(this.fileDirectory);return await this._readRaster(u,e,p,n,d,i,o,a,l)}async readRGB({window:t,interleave:e=!0,pool:n=null,width:r,height:i,resampleMethod:o,enableAlpha:a=!1,signal:s}={}){const l=t||[0,0,this.getWidth(),this.getHeight()];if(l[0]>l[2]||l[1]>l[3])throw new Error("Invalid subsets");const u=this.fileDirectory.PhotometricInterpretation;if(u===$t.Ie.RGB){let l=[0,1,2];if(this.fileDirectory.ExtraSamples!==$t.pd.Unspecified&&a){l=[];for(let t=0;t<this.fileDirectory.BitsPerSample.length;t+=1)l.push(t)}return this.readRasters({window:t,interleave:e,samples:l,pool:n,width:r,height:i,resampleMethod:o,signal:s})}let c;switch(u){case $t.Ie.WhiteIsZero:case $t.Ie.BlackIsZero:case $t.Ie.Palette:c=[0];break;case $t.Ie.CMYK:c=[0,1,2,3];break;case $t.Ie.YCbCr:case $t.Ie.CIELab:c=[0,1,2];break;default:throw new Error("Invalid or unsupported photometric interpretation.")}const h={window:l,interleave:!0,samples:c,pool:n,width:r,height:i,resampleMethod:o,signal:s},{fileDirectory:p}=this,d=await this.readRasters(h),f=2**this.fileDirectory.BitsPerSample[0];let g;switch(u){case $t.Ie.WhiteIsZero:g=function(t,e){const{width:n,height:r}=t,i=new Uint8Array(n*r*3);let o;for(let n=0,r=0;n<t.length;++n,r+=3)o=256-t[n]/e*256,i[r]=o,i[r+1]=o,i[r+2]=o;return i}(d,f);break;case $t.Ie.BlackIsZero:g=function(t,e){const{width:n,height:r}=t,i=new Uint8Array(n*r*3);let o;for(let n=0,r=0;n<t.length;++n,r+=3)o=t[n]/e*256,i[r]=o,i[r+1]=o,i[r+2]=o;return i}(d,f);break;case $t.Ie.Palette:g=function(t,e){const{width:n,height:r}=t,i=new Uint8Array(n*r*3),o=e.length/3,a=e.length/3*2;for(let n=0,r=0;n<t.length;++n,r+=3){const s=t[n];i[r]=e[s]/65536*256,i[r+1]=e[s+o]/65536*256,i[r+2]=e[s+a]/65536*256}return i}(d,p.ColorMap);break;case $t.Ie.CMYK:g=function(t){const{width:e,height:n}=t,r=new Uint8Array(e*n*3);for(let e=0,n=0;e<t.length;e+=4,n+=3){const i=t[e],o=t[e+1],a=t[e+2],s=t[e+3];r[n]=(255-i)/256*255*((255-s)/256),r[n+1]=(255-o)/256*255*((255-s)/256),r[n+2]=(255-a)/256*255*((255-s)/256)}return r}(d);break;case $t.Ie.YCbCr:g=function(t){const{width:e,height:n}=t,r=new Uint8ClampedArray(e*n*3);for(let e=0,n=0;e<t.length;e+=3,n+=3){const i=t[e],o=t[e+1],a=t[e+2];r[n]=i+1.402*(a-128),r[n+1]=i-.34414*(o-128)-.71414*(a-128),r[n+2]=i+1.772*(o-128)}return r}(d);break;case $t.Ie.CIELab:g=function(t){const{width:e,height:n}=t,r=new Uint8Array(e*n*3);for(let e=0,n=0;e<t.length;e+=3,n+=3){let i,o,a,s=(t[e+0]+16)/116,l=(t[e+1]<<24>>24)/500+s,u=s-(t[e+2]<<24>>24)/200;l=.95047*(l*l*l>.008856?l*l*l:(l-16/116)/7.787),s=1*(s*s*s>.008856?s*s*s:(s-16/116)/7.787),u=1.08883*(u*u*u>.008856?u*u*u:(u-16/116)/7.787),i=3.2406*l+-1.5372*s+-.4986*u,o=-.9689*l+1.8758*s+.0415*u,a=.0557*l+-.204*s+1.057*u,i=i>.0031308?1.055*i**(1/2.4)-.055:12.92*i,o=o>.0031308?1.055*o**(1/2.4)-.055:12.92*o,a=a>.0031308?1.055*a**(1/2.4)-.055:12.92*a,r[n]=255*Math.max(0,Math.min(1,i)),r[n+1]=255*Math.max(0,Math.min(1,o)),r[n+2]=255*Math.max(0,Math.min(1,a))}return r}(d);break;default:throw new Error("Unsupported photometric interpretation.")}if(!e){const t=new Uint8Array(g.length/3),e=new Uint8Array(g.length/3),n=new Uint8Array(g.length/3);for(let r=0,i=0;r<g.length;r+=3,++i)t[i]=g[r],e[i]=g[r+1],n[i]=g[r+2];g=[t,e,n]}return g.width=d.width,g.height=d.height,g}getTiePoints(){if(!this.fileDirectory.ModelTiepoint)return[];const t=[];for(let e=0;e<this.fileDirectory.ModelTiepoint.length;e+=6)t.push({i:this.fileDirectory.ModelTiepoint[e],j:this.fileDirectory.ModelTiepoint[e+1],k:this.fileDirectory.ModelTiepoint[e+2],x:this.fileDirectory.ModelTiepoint[e+3],y:this.fileDirectory.ModelTiepoint[e+4],z:this.fileDirectory.ModelTiepoint[e+5]});return t}getGDALMetadata(t=null){const e={};if(!this.fileDirectory.GDAL_METADATA)return null;const n=this.fileDirectory.GDAL_METADATA;let r=Qt(n,"Item");r=null===t?r.filter((t=>void 0===Yt(t,"sample"))):r.filter((e=>Number(Yt(e,"sample"))===t));for(let t=0;t<r.length;++t){const n=r[t];e[Yt(n,"name")]=n.inner}return e}getGDALNoData(){if(!this.fileDirectory.GDAL_NODATA)return null;const t=this.fileDirectory.GDAL_NODATA;return Number(t.substring(0,t.length-1))}getOrigin(){const t=this.fileDirectory.ModelTiepoint,e=this.fileDirectory.ModelTransformation;if(t&&6===t.length)return[t[3],t[4],t[5]];if(e)return[e[3],e[7],e[11]];throw new Error("The image does not have an affine transformation.")}getResolution(t=null){const e=this.fileDirectory.ModelPixelScale,n=this.fileDirectory.ModelTransformation;if(e)return[e[0],-e[1],e[2]];if(n)return[n[0],n[5],n[10]];if(t){const[e,n,r]=t.getResolution();return[e*t.getWidth()/this.getWidth(),n*t.getHeight()/this.getHeight(),r*t.getWidth()/this.getWidth()]}throw new Error("The image does not have an affine transformation.")}pixelIsArea(){return 1===this.geoKeys.GTRasterTypeGeoKey}getBoundingBox(){const t=this.getOrigin(),e=this.getResolution(),n=t[0],r=t[1],i=n+e[0]*this.getWidth(),o=r+e[1]*this.getHeight();return[Math.min(n,i),Math.min(r,o),Math.max(n,i),Math.max(r,o)]}};class ie{constructor(t){this._dataView=new DataView(t)}get buffer(){return this._dataView.buffer}getUint64(t,e){const n=this.getUint32(t,e),r=this.getUint32(t+4,e);let i;if(e){if(i=n+2**32*r,!Number.isSafeInteger(i))throw new Error(`${i} exceeds MAX_SAFE_INTEGER. Precision may be lost. Please report if you get this message to https://github.com/geotiffjs/geotiff.js/issues`);return i}if(i=2**32*n+r,!Number.isSafeInteger(i))throw new Error(`${i} exceeds MAX_SAFE_INTEGER. Precision may be lost. Please report if you get this message to https://github.com/geotiffjs/geotiff.js/issues`);return i}getInt64(t,e){let n=0;const r=(128&this._dataView.getUint8(t+(e?7:0)))>0;let i=!0;for(let o=0;o<8;o++){let a=this._dataView.getUint8(t+(e?o:7-o));r&&(i?0!==a&&(a=255&~(a-1),i=!1):a=255&~a),n+=a*256**o}return r&&(n=-n),n}getUint8(t,e){return this._dataView.getUint8(t,e)}getInt8(t,e){return this._dataView.getInt8(t,e)}getUint16(t,e){return this._dataView.getUint16(t,e)}getInt16(t,e){return this._dataView.getInt16(t,e)}getUint32(t,e){return this._dataView.getUint32(t,e)}getInt32(t,e){return this._dataView.getInt32(t,e)}getFloat16(t,e){return Kt(this._dataView,t,e)}getFloat32(t,e){return this._dataView.getFloat32(t,e)}getFloat64(t,e){return this._dataView.getFloat64(t,e)}}class oe{constructor(t,e,n,r){this._dataView=new DataView(t),this._sliceOffset=e,this._littleEndian=n,this._bigTiff=r}get sliceOffset(){return this._sliceOffset}get sliceTop(){return this._sliceOffset+this.buffer.byteLength}get littleEndian(){return this._littleEndian}get bigTiff(){return this._bigTiff}get buffer(){return this._dataView.buffer}covers(t,e){return this.sliceOffset<=t&&this.sliceTop>=t+e}readUint8(t){return this._dataView.getUint8(t-this._sliceOffset,this._littleEndian)}readInt8(t){return this._dataView.getInt8(t-this._sliceOffset,this._littleEndian)}readUint16(t){return this._dataView.getUint16(t-this._sliceOffset,this._littleEndian)}readInt16(t){return this._dataView.getInt16(t-this._sliceOffset,this._littleEndian)}readUint32(t){return this._dataView.getUint32(t-this._sliceOffset,this._littleEndian)}readInt32(t){return this._dataView.getInt32(t-this._sliceOffset,this._littleEndian)}readFloat32(t){return this._dataView.getFloat32(t-this._sliceOffset,this._littleEndian)}readFloat64(t){return this._dataView.getFloat64(t-this._sliceOffset,this._littleEndian)}readUint64(t){const e=this.readUint32(t),n=this.readUint32(t+4);let r;if(this._littleEndian){if(r=e+2**32*n,!Number.isSafeInteger(r))throw new Error(`${r} exceeds MAX_SAFE_INTEGER. Precision may be lost. Please report if you get this message to https://github.com/geotiffjs/geotiff.js/issues`);return r}if(r=2**32*e+n,!Number.isSafeInteger(r))throw new Error(`${r} exceeds MAX_SAFE_INTEGER. Precision may be lost. Please report if you get this message to https://github.com/geotiffjs/geotiff.js/issues`);return r}readInt64(t){let e=0;const n=(128&this._dataView.getUint8(t+(this._littleEndian?7:0)))>0;let r=!0;for(let i=0;i<8;i++){let o=this._dataView.getUint8(t+(this._littleEndian?i:7-i));n&&(r?0!==o&&(o=255&~(o-1),r=!1):o=255&~o),e+=o*256**i}return n&&(e=-e),e}readOffset(t){return this._bigTiff?this.readUint64(t):this.readUint32(t)}}const ae="\r\n\r\n";function se(t){if(void 0!==Object.fromEntries)return Object.fromEntries(t);const e={};for(const[n,r]of t)e[n.toLowerCase()]=r;return e}function le(t){return se(t.split("\r\n").map((t=>{const e=t.split(":").map((t=>t.trim()));return e[0]=e[0].toLowerCase(),e})))}function ue(t){let e,n,r;return t&&([,e,n,r]=t.match(/bytes (\d+)-(\d+)\/(\d+)/),e=parseInt(e,10),n=parseInt(n,10),r=parseInt(r,10)),{start:e,end:n,total:r}}class ce{async fetch(t,e){return Promise.all(t.map((t=>this.fetchSlice(t,e))))}async fetchSlice(t){throw new Error(`fetching of slice ${t} not possible, not implemented`)}get fileSize(){return null}async close(){}}var he=n(3666);function pe(t,e){const n=Array.isArray(t)?t:Array.from(t),r=Array.isArray(e)?e:Array.from(e);return n.map(((t,e)=>[t,r[e]]))}class de extends Error{constructor(t){super(t),Error.captureStackTrace&&Error.captureStackTrace(this,de),this.name="AbortError"}}class fe extends Error{constructor(t,e){super(e),this.errors=t,this.message=e,this.name="AggregateError"}}const ge=fe;class me{constructor(t,e,n=null){this.offset=t,this.length=e,this.data=n}get top(){return this.offset+this.length}}class ye{constructor(t,e,n){this.offset=t,this.length=e,this.blockIds=n}}class ve extends ce{constructor(t,{blockSize:e=65536,cacheSize:n=100}={}){super(),this.source=t,this.blockSize=e,this.blockCache=new he({max:n}),this.blockRequests=new Map,this.blockIdsToFetch=new Set}get fileSize(){return this.source.fileSize}async fetch(t,e){const n=new Map,r=new Map,i=new Set;for(const{offset:e,length:o}of t){let t=e+o;const{fileSize:a}=this;null!==a&&(t=Math.min(t,a));for(let o=Math.floor(e/this.blockSize)*this.blockSize;o<t;o+=this.blockSize){const t=Math.floor(o/this.blockSize);this.blockCache.has(t)?n.set(t,this.blockCache.get(t)):this.blockRequests.has(t)?r.set(t,this.blockRequests.get(t)):(this.blockIdsToFetch.has(t)||this.blockIdsToFetch.add(t),i.add(t))}}await async function(t){return new Promise((t=>setTimeout(t,undefined)))}(),this.fetchBlocks(e);for(const t of i){const e=this.blockRequests.get(t),i=this.blockCache.get(t);if(e)r.set(t,e);else{if(!i)throw new Error(`Block ${t} is not in the block requests`);n.set(t,i)}}let o=await Promise.allSettled(Array.from(r.values()));if(o.some((t=>"rejected"===t.status))){const t=new Set;for(const[n,i]of pe(r.keys(),o)){const{rejected:r,reason:o}=i;r&&"AbortError"===o.name&&o.signal!==e&&(this.blockIdsToFetch.add(n),t.add(n))}if(this.blockIdsToFetch.length>0){this.fetchBlocks(e);for(const e of t){const t=this.blockRequests.get(e);if(!t)throw new Error(`Block ${e} is not in the block requests`);r.set(e,t)}o=await Promise.allSettled(Array.from(r.values()))}}if(o.some((t=>"rejected"===t.status))){if(e&&e.aborted)throw new de("Request was aborted");throw new ge(o.filter((t=>"rejected"===t.status)).map((t=>t.reason)),"Request failed")}const a=o.map((t=>t.value)),s=new Map(pe(Array.from(r.keys()),a));for(const[t,e]of n)s.set(t,e);return this.readSliceData(t,s)}fetchBlocks(t){if(this.blockIdsToFetch.size>0){const e=this.groupBlocks(this.blockIdsToFetch),n=this.source.fetch(e,t);for(let r=0;r<e.length;++r){const i=e[r];for(const e of i.blockIds){const i=(async()=>{try{const t=(await n)[r],i=e*this.blockSize,o=i-t.offset,a=Math.min(o+this.blockSize,t.data.byteLength),s=t.data.slice(o,a),l=new me(i,s.byteLength,s);return this.blockCache.set(e,l),l}catch(e){throw"AbortError"===e.name&&(e.signal=t),e}finally{this.blockRequests.delete(e)}})();this.blockRequests.set(e,i)}}this.blockIdsToFetch.clear()}}groupBlocks(t){const e=Array.from(t).sort(((t,e)=>t-e));if(0===e.length)return[];let n=[],r=null;const i=[];for(const t of e)null===r||r+1===t?(n.push(t),r=t):(i.push(new ye(n[0]*this.blockSize,n.length*this.blockSize,n)),n=[t],r=t);return i.push(new ye(n[0]*this.blockSize,n.length*this.blockSize,n)),i}readSliceData(t,e){return t.map((t=>{const n=t.offset+t.length,r=Math.floor(t.offset/this.blockSize),i=Math.floor((t.offset+t.length)/this.blockSize),o=new ArrayBuffer(t.length),a=new Uint8Array(o);for(let o=r;o<=i;++o){const r=e.get(o),i=r.offset-t.offset,s=r.top-n;let l,u=0,c=0;i<0?u=-i:i>0&&(c=i),l=s<0?r.length-u:n-r.offset-u;const h=new Uint8Array(r.data,u,l);a.set(h,c)}return o}))}}class _e{get ok(){return this.status>=200&&this.status<=299}get status(){throw new Error("not implemented")}getHeader(t){throw new Error("not implemented")}async getData(){throw new Error("not implemented")}}class be{constructor(t){this.url=t}async request({headers:t,credentials:e,signal:n}={}){throw new Error("request is not implemented")}}class we extends _e{constructor(t){super(),this.response=t}get status(){return this.response.status}getHeader(t){return this.response.headers.get(t)}async getData(){return this.response.arrayBuffer?await this.response.arrayBuffer():(await this.response.buffer()).buffer}}class xe extends be{constructor(t,e){super(t),this.credentials=e}async request({headers:t,credentials:e,signal:n}={}){const r=await fetch(this.url,{headers:t,credentials:e,signal:n});return new we(r)}}class Se extends _e{constructor(t,e){super(),this.xhr=t,this.data=e}get status(){return this.xhr.status}getHeader(t){return this.xhr.getResponseHeader(t)}async getData(){return this.data}}class Ce extends be{constructRequest(t,e){return new Promise(((n,r)=>{const i=new XMLHttpRequest;i.open("GET",this.url),i.responseType="arraybuffer";for(const[e,n]of Object.entries(t))i.setRequestHeader(e,n);i.onload=()=>{const t=i.response;n(new Se(i,t))},i.onerror=r,i.onabort=()=>r(new de("Request aborted")),i.send(),e&&(e.aborted&&i.abort(),e.addEventListener("abort",(()=>i.abort())))}))}async request({headers:t,signal:e}={}){return await this.constructRequest(t,e)}}var Ee=n(3752),ke=n(3640),Ae=n(2630);class Pe extends _e{constructor(t,e){super(),this.response=t,this.dataPromise=e}get status(){return this.response.statusCode}getHeader(t){return this.response.headers[t]}async getData(){return await this.dataPromise}}class Te extends be{constructor(t){super(t),this.parsedUrl=Ae.parse(this.url),this.httpApi="http:"===this.parsedUrl.protocol?Ee:ke}constructRequest(t,e){return new Promise(((n,r)=>{const i=this.httpApi.get({...this.parsedUrl,headers:t},(t=>{const e=new Promise((e=>{const n=[];t.on("data",(t=>{n.push(t)})),t.on("end",(()=>{const t=Buffer.concat(n).buffer;e(t)})),t.on("error",r)}));n(new Pe(t,e))}));i.on("error",r),e&&(e.aborted&&i.destroy(new de("Request aborted")),e.addEventListener("abort",(()=>i.destroy(new de("Request aborted")))))}))}async request({headers:t,signal:e}={}){return await this.constructRequest(t,e)}}class Me extends ce{constructor(t,e,n,r){super(),this.client=t,this.headers=e,this.maxRanges=n,this.allowFullFile=r,this._fileSize=null}async fetch(t,e){return this.maxRanges>=t.length?this.fetchSlices(t,e):(this.maxRanges>0&&t.length,Promise.all(t.map((t=>this.fetchSlice(t,e)))))}async fetchSlices(t,e){const n=await this.client.request({headers:{...this.headers,Range:`bytes=${t.map((({offset:t,length:e})=>`${t}-${t+e}`)).join(",")}`},signal:e});if(n.ok){if(206===n.status){const{type:r,params:i}=function(t){const[e,...n]=t.split(";").map((t=>t.trim()));return{type:e,params:se(n.map((t=>t.split("="))))}}(n.getHeader("content-type"));if("multipart/byteranges"===r){const t=function(t,e){let n=null;const r=new TextDecoder("ascii"),i=[],o=`--${e}`,a=`${o}--`;for(let e=0;e<10;++e)r.decode(new Uint8Array(t,e,o.length))===o&&(n=e);if(null===n)throw new Error("Could not find initial boundary");for(;n<t.byteLength;){const e=r.decode(new Uint8Array(t,n,Math.min(o.length+1024,t.byteLength-n)));if(0===e.length||e.startsWith(a))break;if(!e.startsWith(o))throw new Error("Part does not start with boundary");const s=e.substr(o.length+2);if(0===s.length)break;const l=s.indexOf(ae),u=le(s.substr(0,l)),{start:c,end:h,total:p}=ue(u["content-range"]),d=n+o.length+l+ae.length,f=parseInt(h,10)+1-parseInt(c,10);i.push({headers:u,data:t.slice(d,d+f),offset:c,length:f,fileSize:p}),n=d+f+4}return i}(await n.getData(),i.boundary);return this._fileSize=t[0].fileSize||null,t}const o=await n.getData(),{start:a,end:s,total:l}=ue(n.getHeader("content-range"));this._fileSize=l||null;const u=[{data:o,offset:a,length:s-a}];if(t.length>1){const n=await Promise.all(t.slice(1).map((t=>this.fetchSlice(t,e))));return u.concat(n)}return u}{if(!this.allowFullFile)throw new Error("Server responded with full file");const t=await n.getData();return this._fileSize=t.byteLength,[{data:t,offset:0,length:t.byteLength}]}}throw new Error("Error fetching data.")}async fetchSlice(t,e){const{offset:n,length:r}=t,i=await this.client.request({headers:{...this.headers,Range:`bytes=${n}-${n+r}`},signal:e});if(i.ok){if(206===i.status){const t=await i.getData(),{total:e}=ue(i.getHeader("content-range"));return this._fileSize=e||null,{data:t,offset:n,length:r}}{if(!this.allowFullFile)throw new Error("Server responded with full file");const t=await i.getData();return this._fileSize=t.byteLength,{data:t,offset:0,length:t.byteLength}}}throw new Error("Error fetching data.")}get fileSize(){return this._fileSize}}function Oe(t,{blockSize:e,cacheSize:n}){return null===e?t:new ve(t,e,n)}function Re(t,{forceXHR:e=!1,...n}={}){return"function"!=typeof fetch||e?"undefined"!=typeof XMLHttpRequest?function(t,{headers:e={},maxRanges:n=0,allowFullFile:r=!1,...i}={}){const o=new Ce(t);return Oe(new Me(o,e,n,r),i)}(t,n):function(t,{headers:e={},maxRanges:n=0,allowFullFile:r=!1,...i}={}){const o=new Te(t);return Oe(new Me(o,e,n,r),i)}(t,n):function(t,{headers:e={},credentials:n,maxRanges:r=0,allowFullFile:i=!1,...o}={}){const a=new xe(t,n);return Oe(new Me(a,e,r,i),o)}(t,n)}class Ie extends ce{constructor(t){super(),this.file=t}async fetchSlice(t,e){return new Promise(((n,r)=>{const i=this.file.slice(t.offset,t.offset+t.length),o=new FileReader;o.onload=t=>n(t.target.result),o.onerror=r,o.onabort=r,o.readAsArrayBuffer(i),e&&e.addEventListener("abort",(()=>o.abort()))}))}}function Le(t){switch(t){case $t.sf.BYTE:case $t.sf.ASCII:case $t.sf.SBYTE:case $t.sf.UNDEFINED:return 1;case $t.sf.SHORT:case $t.sf.SSHORT:return 2;case $t.sf.LONG:case $t.sf.SLONG:case $t.sf.FLOAT:case $t.sf.IFD:return 4;case $t.sf.RATIONAL:case $t.sf.SRATIONAL:case $t.sf.DOUBLE:case $t.sf.LONG8:case $t.sf.SLONG8:case $t.sf.IFD8:return 8;default:throw new RangeError(`Invalid field type: ${t}`)}}function Fe(t,e,n,r){let i=null,o=null;const a=Le(e);switch(e){case $t.sf.BYTE:case $t.sf.ASCII:case $t.sf.UNDEFINED:i=new Uint8Array(n),o=t.readUint8;break;case $t.sf.SBYTE:i=new Int8Array(n),o=t.readInt8;break;case $t.sf.SHORT:i=new Uint16Array(n),o=t.readUint16;break;case $t.sf.SSHORT:i=new Int16Array(n),o=t.readInt16;break;case $t.sf.LONG:case $t.sf.IFD:i=new Uint32Array(n),o=t.readUint32;break;case $t.sf.SLONG:i=new Int32Array(n),o=t.readInt32;break;case $t.sf.LONG8:case $t.sf.IFD8:i=new Array(n),o=t.readUint64;break;case $t.sf.SLONG8:i=new Array(n),o=t.readInt64;break;case $t.sf.RATIONAL:i=new Uint32Array(2*n),o=t.readUint32;break;case $t.sf.SRATIONAL:i=new Int32Array(2*n),o=t.readInt32;break;case $t.sf.FLOAT:i=new Float32Array(n),o=t.readFloat32;break;case $t.sf.DOUBLE:i=new Float64Array(n),o=t.readFloat64;break;default:throw new RangeError(`Invalid field type: ${e}`)}if(e!==$t.sf.RATIONAL&&e!==$t.sf.SRATIONAL)for(let e=0;e<n;++e)i[e]=o.call(t,r+e*a);else for(let e=0;e<n;e+=2)i[e]=o.call(t,r+e*a),i[e+1]=o.call(t,r+(e*a+4));return e===$t.sf.ASCII?new TextDecoder("utf-8").decode(i):i}class Ne{constructor(t,e,n){this.fileDirectory=t,this.geoKeyDirectory=e,this.nextIFDByteOffset=n}}class De extends Error{constructor(t){super(`No image at index ${t}`),this.index=t}}class ze{async readRasters(t={}){const{window:e,width:n,height:r}=t;let{resX:i,resY:o,bbox:a}=t;const s=await this.getImage();let l=s;const u=await this.getImageCount(),c=s.getBoundingBox();if(e&&a)throw new Error('Both "bbox" and "window" passed.');if(n||r){if(e){const[t,n]=s.getOrigin(),[r,i]=s.getResolution();a=[t+e[0]*r,n+e[1]*i,t+e[2]*r,n+e[3]*i]}const t=a||c;if(n){if(i)throw new Error("Both width and resX passed");i=(t[2]-t[0])/n}if(r){if(o)throw new Error("Both width and resY passed");o=(t[3]-t[1])/r}}if(i||o){const t=[];for(let e=0;e<u;++e){const n=await this.getImage(e),{SubfileType:r,NewSubfileType:i}=n.fileDirectory;(0===e||2===r||1&i)&&t.push(n)}t.sort(((t,e)=>t.getWidth()-e.getWidth()));for(let e=0;e<t.length;++e){const n=t[e],r=(c[2]-c[0])/n.getWidth(),a=(c[3]-c[1])/n.getHeight();if(l=n,i&&i>r||o&&o>a)break}}let h=e;if(a){const[t,e]=s.getOrigin(),[n,r]=l.getResolution(s);h=[Math.round((a[0]-t)/n),Math.round((a[1]-e)/r),Math.round((a[2]-t)/n),Math.round((a[3]-e)/r)],h=[Math.min(h[0],h[2]),Math.min(h[1],h[3]),Math.max(h[0],h[2]),Math.max(h[1],h[3])]}return l.readRasters({...t,window:h})}}class Ze extends ze{constructor(t,e,n,r,i={}){super(),this.source=t,this.littleEndian=e,this.bigTiff=n,this.firstIFDOffset=r,this.cache=i.cache||!1,this.ifdRequests=[],this.ghostValues=null}async getSlice(t,e){const n=this.bigTiff?4048:1024;return new oe((await this.source.fetch([{offset:t,length:void 0!==e?e:n}]))[0],t,this.littleEndian,this.bigTiff)}async parseFileDirectoryAt(t){const e=this.bigTiff?20:12,n=this.bigTiff?8:2;let r=await this.getSlice(t);const i=this.bigTiff?r.readUint64(t):r.readUint16(t),o=i*e+(this.bigTiff?16:6);r.covers(t,o)||(r=await this.getSlice(t,o));const a={};let s=t+(this.bigTiff?8:2);for(let t=0;t<i;s+=e,++t){const t=r.readUint16(s),e=r.readUint16(s+2),n=this.bigTiff?r.readUint64(s+4):r.readUint32(s+4);let i,o;const l=Le(e),u=s+(this.bigTiff?12:8);if(l*n<=(this.bigTiff?8:4))i=Fe(r,e,n,u);else{const t=r.readOffset(u),o=Le(e)*n;i=r.covers(t,o)?Fe(r,e,n,t):Fe(await this.getSlice(t,o),e,n,t)}o=1===n&&-1===$t.It.indexOf(t)&&e!==$t.sf.RATIONAL&&e!==$t.sf.SRATIONAL?i[0]:i,a[$t.L[t]]=o}const l=function(t){const e=t.GeoKeyDirectory;if(!e)return null;const n={};for(let r=4;r<=4*e[3];r+=4){const i=$t.P1[e[r]],o=e[r+1]?$t.L[e[r+1]]:null,a=e[r+2],s=e[r+3];let l=null;if(o){if(l=t[o],null==l)throw new Error(`Could not get value of geoKey '${i}'.`);"string"==typeof l?l=l.substring(s,s+a-1):l.subarray&&(l=l.subarray(s,s+a),1===a&&(l=l[0]))}else l=s;n[i]=l}return n}(a),u=r.readOffset(t+n+e*i);return new Ne(a,l,u)}async requestIFD(t){if(this.ifdRequests[t])return this.ifdRequests[t];if(0===t)return this.ifdRequests[t]=this.parseFileDirectoryAt(this.firstIFDOffset),this.ifdRequests[t];if(!this.ifdRequests[t-1])try{this.ifdRequests[t-1]=this.requestIFD(t-1)}catch(e){if(e instanceof De)throw new De(t);throw e}return this.ifdRequests[t]=(async()=>{const e=await this.ifdRequests[t-1];if(0===e.nextIFDByteOffset)throw new De(t);return this.parseFileDirectoryAt(e.nextIFDByteOffset)})(),this.ifdRequests[t]}async getImage(t=0){const e=await this.requestIFD(t);return new re(e.fileDirectory,e.geoKeyDirectory,this.dataView,this.littleEndian,this.cache,this.source)}async getImageCount(){let t=0,e=!0;for(;e;)try{await this.requestIFD(t),++t}catch(t){if(!(t instanceof De))throw t;e=!1}return t}async getGhostValues(){const t=this.bigTiff?16:8;if(this.ghostValues)return this.ghostValues;const e="GDAL_STRUCTURAL_METADATA_SIZE=",n=e.length+100;let r=await this.getSlice(t,n);if(e===Fe(r,$t.sf.ASCII,e.length,t)){const e=Fe(r,$t.sf.ASCII,n,t).split("\n")[0],i=Number(e.split("=")[1].split(" ")[0])+e.length;i>n&&(r=await this.getSlice(t,i));const o=Fe(r,$t.sf.ASCII,i,t);this.ghostValues={},o.split("\n").filter((t=>t.length>0)).map((t=>t.split("="))).forEach((([t,e])=>{this.ghostValues[t]=e}))}return this.ghostValues}static async fromSource(t,e,n){const r=(await t.fetch([{offset:0,length:1024}],n))[0],i=new ie(r),o=i.getUint16(0,0);let a;if(18761===o)a=!0;else{if(19789!==o)throw new TypeError("Invalid byte order value.");a=!1}const s=i.getUint16(2,a);let l;if(42===s)l=!1;else{if(43!==s)throw new TypeError("Invalid magic number.");if(l=!0,8!==i.getUint16(4,a))throw new Error("Unsupported offset byte-size.")}const u=l?i.getUint64(8,a):i.getUint32(4,a);return new Ze(t,a,l,u,e)}close(){return"function"==typeof this.source.close&&this.source.close()}}class je extends ze{constructor(t,e){super(),this.mainFile=t,this.overviewFiles=e,this.imageFiles=[t].concat(e),this.fileDirectoriesPerFile=null,this.fileDirectoriesPerFileParsing=null,this.imageCount=null}async parseFileDirectoriesPerFile(){const t=[this.mainFile.parseFileDirectoryAt(this.mainFile.firstIFDOffset)].concat(this.overviewFiles.map((t=>t.parseFileDirectoryAt(t.firstIFDOffset))));return this.fileDirectoriesPerFile=await Promise.all(t),this.fileDirectoriesPerFile}async getImage(t=0){await this.getImageCount(),await this.parseFileDirectoriesPerFile();let e=0,n=0;for(let r=0;r<this.imageFiles.length;r++){const i=this.imageFiles[r];for(let o=0;o<this.imageCounts[r];o++){if(t===e){const t=await i.requestIFD(n);return new re(t.fileDirectory,t.geoKeyDirectory,i.dataView,i.littleEndian,i.cache,i.source)}e++,n++}n=0}throw new RangeError("Invalid image index")}async getImageCount(){if(null!==this.imageCount)return this.imageCount;const t=[this.mainFile.getImageCount()].concat(this.overviewFiles.map((t=>t.getImageCount())));return this.imageCounts=await Promise.all(t),this.imageCount=this.imageCounts.reduce(((t,e)=>t+e),0),this.imageCount}}var Ge,Be=n(8007),Ue=n(2418),Ve=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function qe(t){try{return t.getBoundingBox()}catch(n){var e=t.fileDirectory;return[0,0,e.ImageWidth,e.ImageLength]}}function We(t){try{return t.getOrigin().slice(0,2)}catch(e){return[0,t.fileDirectory.ImageLength]}}function He(t,e){try{return t.getResolution(e)}catch(n){return[e.fileDirectory.ImageWidth/t.fileDirectory.ImageWidth,e.fileDirectory.ImageHeight/t.fileDirectory.ImageHeight]}}function Xe(t){var e,n,r=t.geoKeys;if(!r)return null;if(r.ProjectedCSTypeGeoKey){var i="EPSG:"+r.ProjectedCSTypeGeoKey;return(e=(0,c.get)(i))||(n=(0,Ue.Ne)(r.ProjLinearUnitsGeoKey))&&(e=new c.Projection({code:i,units:n})),e}return r.GeographicTypeGeoKey?(i="EPSG:"+r.GeographicTypeGeoKey,(e=(0,c.get)(i))||(n=(0,Ue.Ne)(r.GeogAngularUnitsGeoKey))&&(e=new c.Projection({code:i,units:n})),e):null}function Ke(t){return t.getImageCount().then((function(e){for(var n=new Array(e),r=0;r<e;++r)n[r]=t.getImage(r);return Promise.all(n)}))}function Ye(t,e){var n;return n=t.blob?async function(t,e){return Ze.fromSource(new Ie(t),e)}(t.blob):t.overviews?async function(t,e=[],n={},r){const i=await Ze.fromSource(Re(t,n),r),o=await Promise.all(e.map((t=>Ze.fromSource(Re(t,n)))));return new je(i,o)}(t.url,t.overviews,e):async function(t,e={},n){return Ze.fromSource(Re(t,e),n)}(t.url,e),n.then(Ke)}function Qe(t,e,n,r,i){if(Array.isArray(t)){var o=t.length;if(!Array.isArray(e)||o!=e.length){var a=new Error(r);throw i(a),a}for(var s=0;s<o;++s)Qe(t[s],e[s],n,r,i)}else if(Math.abs(t-e)>n*t)throw new Error(r)}function $e(t){return t instanceof Int8Array?-128:t instanceof Int16Array?-32768:t instanceof Int32Array?-2147483648:t instanceof Float32Array?12e-39:0}function Je(t){return t instanceof Int8Array?127:t instanceof Uint8Array||t instanceof Uint8ClampedArray?255:t instanceof Int16Array?32767:t instanceof Uint16Array?65535:t instanceof Int32Array?2147483647:t instanceof Uint32Array?4294967295:t instanceof Float32Array?34e37:255}var tn=function(t){function e(e){var n=t.call(this,{state:"loading",tileGrid:null,projection:null,opaque:e.opaque,transition:e.transition,interpolate:!1!==e.interpolate,wrapX:e.wrapX})||this;n.sourceInfo_=e.sources;var r=n.sourceInfo_.length;n.sourceOptions_=e.sourceOptions,n.sourceImagery_=new Array(r),n.resolutionFactors_=new Array(r),n.samplesPerPixel_,n.nodataValues_,n.metadata_,n.normalize_=!1!==e.normalize,n.addAlpha_=!1,n.error_=null,n.readMethod_=e.convertToRGB?"readRGB":"readRasters",n.setKey(n.sourceInfo_.map((function(t){return t.url})).join(","));for(var i=n,o=new Array(r),a=0;a<r;++a)o[a]=Ye(n.sourceInfo_[a],n.sourceOptions_);return Promise.all(o).then((function(t){i.configure_(t)})).catch((function(t){console.error(t),i.error_=t,i.setState("error")})),n}return Ve(e,t),e.prototype.getError=function(){return this.error_},e.prototype.configure_=function(t){for(var e,n,r,i,a,s=new Array(t.length),l=new Array(t.length),u=new Array(t.length),h=0,p=t.length,d=function(c){var p=t[c],d=p.length,g=void 0,m=void 0,y=new Array(d),v=new Array(d),_=new Array(d);l[c]=new Array(d),u[c]=new Array(d);for(var b=0;b<d;++b){var w=p[b],x=w.getGDALNoData();u[c][b]=w.getGDALMetadata(0),l[c][b]=x;var S=f.sourceInfo_[c].bands;s[c]=S?S.length:w.getSamplesPerPixel();var C=d-(b+1);g||(g=qe(w)),m||(m=We(w));var E=He(w,p[0]);_[C]=E[0];var k=[w.getTileWidth(),w.getTileHeight()];y[C]=k;var A=E[0]/Math.abs(E[1]);v[C]=[k[0],k[1]/A]}if(e?(0,o.Ed)(e,g,e):e=g,n){var P="Origin mismatch for source ".concat(c,", got [").concat(m,"] but expected [").concat(n,"]");Qe(n,m,0,P,f.viewRejector)}else n=m;if(a){a.length-h>_.length&&(h=a.length-_.length);var T=a[a.length-1]/_[_.length-1];f.resolutionFactors_[c]=T;var M=_.map((function(t){return t*T}));P="Resolution mismatch for source ".concat(c,", got [").concat(M,"] but expected [").concat(a,"]"),Qe(a.slice(h,a.length),M,.02,P,f.viewRejector)}else a=_,f.resolutionFactors_[c]=1;r?Qe(r.slice(h,r.length),v,.01,"Tile size mismatch for source ".concat(c),f.viewRejector):r=v,i?Qe(i.slice(h,i.length),y,0,"Tile size mismatch for source ".concat(c),f.viewRejector):i=y,f.sourceImagery_[c]=p.reverse()},f=this,g=0;g<p;++g)d(g);for(var m=0,y=this.sourceImagery_.length;m<y;++m)for(var v=this.sourceImagery_[m];v.length<a.length;)v.unshift(void 0);if(!this.getProjection()){var _=t[0];for(m=_.length-1;m>=0;--m){var b=Xe(_[m]);if(b){this.projection=b;break}}}this.samplesPerPixel_=s,this.nodataValues_=l,this.metadata_=u;t:for(g=0;g<p;++g){if(void 0!==this.sourceInfo_[g].nodata){this.addAlpha_=!0;break}var w=l[g],x=this.sourceInfo_[g].bands;if(x){for(m=0;m<x.length;++m)if(null!==w[x[m]-1]){this.addAlpha_=!0;break t}}else for(var S=0;S<w.length;++S)if(null!==w[S]){this.addAlpha_=!0;break t}}var C=this.addAlpha_?1:0;this.bandCount=s.reduce((function(t,e){return t+e}),0)+C;var E=new z.Z({extent:e,minZoom:h,origin:n,resolutions:a,tileSizes:r});this.tileGrid=E,this.setTileSizes(i),this.setLoader(this.loadTile_.bind(this)),this.setState("ready"),this.viewResolver({projection:this.projection,resolutions:a,center:(0,c.toUserCoordinate)((0,o.qg)(e),this.projection),extent:(0,c.toUserExtent)(e,this.projection),zoom:0})},e.prototype.loadTile_=function(t,e,n){for(var r=this.getTileSize(t),i=this.sourceImagery_.length,o=new Array(i),a=this.addAlpha_,s=this.bandCount,l=this.samplesPerPixel_,u=this.nodataValues_,c=this.sourceInfo_,h=function(i){var a=c[i],s=p.resolutionFactors_[i],l=[Math.round(e*(r[0]*s)),Math.round(n*(r[1]*s)),Math.round((e+1)*(r[0]*s)),Math.round((n+1)*(r[1]*s))],h=p.sourceImagery_[i][t],d=void 0;a.bands&&(d=a.bands.map((function(t){return t-1})));var f;f="nodata"in a&&null!==a.nodata?a.nodata:d?d.map((function(t){return u[i][t]})):u[i],o[i]=h[p.readMethod_]({window:l,width:r[0],height:r[1],samples:d,fillValue:f,pool:(Ge||(Ge=new U),Ge),interleave:!1})},p=this,d=0;d<i;++d)h(d);var f=r[0]*r[1],g=f*s,m=this.normalize_,y=this.metadata_;return Promise.all(o).then((function(t){var e;e=m?new Uint8Array(g):new Float32Array(g);for(var n=0,r=0;r<f;++r){for(var o=a,s=0;s<i;++s){var h=c[s],p=h.min,d=h.max,v=void 0,_=void 0;if(m){var b=y[s][0];void 0===p&&(p=b&&"STATISTICS_MINIMUM"in b?parseFloat(b.STATISTICS_MINIMUM):$e(t[s][0])),void 0===d&&(d=b&&"STATISTICS_MAXIMUM"in b?parseFloat(b.STATISTICS_MAXIMUM):Je(t[s][0])),_=-p*(v=255/(d-p))}for(var w=0;w<l[s];++w){var x,S=t[s][w][r];if(x=m?(0,Be.uZ)(v*S+_,0,255):S,a){var C=h.nodata;if(void 0===C){var E;E=h.bands?h.bands[w]-1:w,C=u[s][E]}var k=isNaN(C);(!k&&S!==C||k&&!isNaN(S))&&(o=!1,e[n]=x)}else e[n]=x;n++}}a&&(o||(e[n]=255),n++)}return e})).catch((function(t){throw console.error(t),t}))},e}(D);tn.prototype.getView;const en=tn;var nn=n(591),rn=n(6487),on=n(9220),an=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),sn="default",ln=function(t){function e(e,n,r,i,o,a,s){var l=t.call(this,n,r,i,o,a,s)||this;return l.zoomifyImage_=null,l.tileSize_=e,l}return an(e,t),e.prototype.getImage=function(){if(this.zoomifyImage_)return this.zoomifyImage_;var e=t.prototype.getImage.call(this);if(this.state==T.Z.LOADED){var n=this.tileSize_;if(e.width==n[0]&&e.height==n[1])return this.zoomifyImage_=e,e;var r=(0,on.E4)(n[0],n[1]);return r.drawImage(e,0,0),this.zoomifyImage_=r.canvas,r.canvas}return e},e}(rn.Z);const un=function(t){function e(e){var n=this,r=e,i=void 0===r.imageSmoothing||r.imageSmoothing;void 0!==r.interpolate&&(i=r.interpolate);var a=r.size,l=void 0!==r.tierSizeCalculation?r.tierSizeCalculation:sn,u=r.tilePixelRatio||1,c=a[0],h=a[1],p=[],d=r.tileSize||nn.S,f=d*u;switch(l){case sn:for(;c>f||h>f;)p.push([Math.ceil(c/f),Math.ceil(h/f)]),f+=f;break;case"truncated":for(var g=c,m=h;g>f||m>f;)p.push([Math.ceil(g/f),Math.ceil(m/f)]),g>>=1,m>>=1;break;default:(0,C.h)(!1,53)}p.push([1,1]),p.reverse();for(var y=[u],v=[0],_=1,b=p.length;_<b;_++)y.push(u<<_),v.push(p[_-1][0]*p[_-1][1]+v[_-1]);y.reverse();var w=new z.Z({tileSize:d,extent:r.extent||[0,-h,c,0],resolutions:y}),x=r.url;x&&-1==x.indexOf("{TileGroup}")&&-1==x.indexOf("{tileIndex}")&&(x+="{TileGroup}/{z}-{x}-{y}.jpg");var S=(0,s.Gk)(x),E=d*u,k=(0,s.Un)(S.map((function(t){return function(e,n,r){if(e){var i=e[0],o=e[1],a=e[2],s=o+a*p[i][0],l={z:i,x:o,y:a,tileIndex:s,TileGroup:"TileGroup"+((s+v[i])/E|0)};return t.replace(/\{(\w+?)\}/g,(function(t,e){return l[e]}))}}}))),A=ln.bind(null,(0,F.Pq)(d*u));(n=t.call(this,{attributions:r.attributions,cacheSize:r.cacheSize,crossOrigin:r.crossOrigin,interpolate:i,projection:r.projection,tilePixelRatio:u,reprojectionErrorThreshold:r.reprojectionErrorThreshold,tileClass:A,tileGrid:w,tileUrlFunction:k,transition:r.transition})||this).zDirection=r.zDirection;var P=k(w.getTileCoordForCoordAndResolution((0,o.qg)(w.getExtent()),y[y.length-1]),1,null),T=new Image;return T.addEventListener("error",function(){E=d,this.changed()}.bind(n)),T.src=P,n}return an(e,t),e}(a.Z);var cn=n(2477),hn=n(2182),pn=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function dn(t){return t.toLocaleString("en",{maximumFractionDigits:10})}const fn=function(t){function e(e){var n=this,r=e||{},i=void 0===r.imageSmoothing||r.imageSmoothing;void 0!==r.interpolate&&(i=r.interpolate);var a=r.url||"";a+=a.lastIndexOf("/")===a.length-1||""===a?"":"/";var s=r.version||cn.L.VERSION2,l=r.sizes||[],u=r.size;(0,C.h)(null!=u&&Array.isArray(u)&&2==u.length&&!isNaN(u[0])&&u[0]>0&&!isNaN(u[1])&&u[1]>0,60);var c,h,p,d=u[0],f=u[1],g=r.tileSize,m=r.tilePixelRatio||1,y=r.format||"jpg",v=r.quality||(r.version==cn.L.VERSION1?"native":"default"),_=r.resolutions||[],b=r.supports||[],w=r.extent||[0,-f,d,0],x=null!=l&&Array.isArray(l)&&l.length>0,S=void 0!==g&&("number"==typeof g&&Number.isInteger(g)&&g>0||Array.isArray(g)&&g.length>0),E=null!=b&&Array.isArray(b)&&((0,hn.q9)(b,"regionByPx")||(0,hn.q9)(b,"regionByPct"))&&((0,hn.q9)(b,"sizeByWh")||(0,hn.q9)(b,"sizeByH")||(0,hn.q9)(b,"sizeByW")||(0,hn.q9)(b,"sizeByPct"));if(_.sort((function(t,e){return e-t})),S||E)if(null!=g&&("number"==typeof g&&Number.isInteger(g)&&g>0?(c=g,h=g):Array.isArray(g)&&g.length>0&&((1==g.length||null==g[1]&&Number.isInteger(g[0]))&&(c=g[0],h=g[0]),2==g.length&&(Number.isInteger(g[0])&&Number.isInteger(g[1])?(c=g[0],h=g[1]):null==g[0]&&Number.isInteger(g[1])&&(c=g[1],h=g[1])))),void 0!==c&&void 0!==h||(c=nn.S,h=nn.S),0==_.length)for(var k=p=Math.max(Math.ceil(Math.log(d/c)/Math.LN2),Math.ceil(Math.log(f/h)/Math.LN2));k>=0;k--)_.push(Math.pow(2,k));else{var A=Math.max.apply(Math,_);p=Math.round(Math.log(A)/Math.LN2)}else if(c=d,h=f,_=[],x){l.sort((function(t,e){return t[0]-e[0]})),p=-1;var P=[];for(k=0;k<l.length;k++){var T=d/l[k][0];_.length>0&&_[_.length-1]==T?P.push(k):(_.push(T),p++)}if(P.length>0)for(k=0;k<P.length;k++)l.splice(P[k]-k,1)}else _.push(1),l.push([d,f]),p=0;var M=new z.Z({tileSize:[c,h],extent:w,origin:(0,o.rL)(w),resolutions:_}),O=ln.bind(null,(0,F.Pq)(g||256).map((function(t){return t*m})));return(n=t.call(this,{attributions:r.attributions,attributionsCollapsible:r.attributionsCollapsible,cacheSize:r.cacheSize,crossOrigin:r.crossOrigin,interpolate:i,projection:r.projection,reprojectionErrorThreshold:r.reprojectionErrorThreshold,state:r.state,tileClass:O,tileGrid:M,tilePixelRatio:r.tilePixelRatio,tileUrlFunction:function(t,e,n){var r,i,o=t[0];if(!(o>p)){var u=t[1],g=t[2],m=_[o];if(!(void 0===u||void 0===g||void 0===m||u<0||Math.ceil(d/m/c)<=u||g<0||Math.ceil(f/m/h)<=g)){if(E||S){var w=u*c*m,C=g*h*m,k=c*m,A=h*m,P=c,T=h;w+k>d&&(k=d-w),C+A>f&&(A=f-C),w+c*m>d&&(P=Math.floor((d-w+m-1)/m)),C+h*m>f&&(T=Math.floor((f-C+m-1)/m)),0==w&&k==d&&0==C&&A==f?r="full":!E||(0,hn.q9)(b,"regionByPx")?r=w+","+C+","+k+","+A:(0,hn.q9)(b,"regionByPct")&&(r="pct:"+dn(w/d*100)+","+dn(C/f*100)+","+dn(k/d*100)+","+dn(A/f*100)),s!=cn.L.VERSION3||E&&!(0,hn.q9)(b,"sizeByWh")?!E||(0,hn.q9)(b,"sizeByW")?i=P+",":(0,hn.q9)(b,"sizeByH")?i=","+T:(0,hn.q9)(b,"sizeByWh")?i=P+","+T:(0,hn.q9)(b,"sizeByPct")&&(i="pct:"+dn(100/m)):i=P+","+T}else if(r="full",x){var M=l[o][0],O=l[o][1];i=s==cn.L.VERSION3?M==d&&O==f?"max":M+","+O:M==d?"full":M+","}else i=s==cn.L.VERSION3?"max":"full";return a+r+"/"+i+"/0/"+v+"."+y}}},transition:r.transition})||this).zDirection=r.zDirection,n}return pn(e,t),e}(a.Z);var gn=n(9025),mn=n(6637),yn=n(3611),vn=n(5078),_n=n(8662),bn=n(1702),wn=n(8196),xn=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Sn=function(t){function e(e,n,r,i,a,s,l){var u=this,c=e.getExtent(),h=n.getExtent(),p=h?(0,o.Ed)(r,h):r,d=(0,o.qg)(p),f=(0,bn.aA)(e,n,d,i),g=yn.m,m=new _n.Z(e,n,p,c,f*g,i),y=s(m.calculateSourceExtent(),f,a),v=y?mn.Z.IDLE:mn.Z.EMPTY,_=y?y.getPixelRatio():1;return(u=t.call(this,r,i,_,v)||this).targetProj_=n,u.maxSourceExtent_=c,u.triangulation_=m,u.targetResolution_=i,u.targetExtent_=r,u.sourceImage_=y,u.sourcePixelRatio_=_,u.interpolate_=l,u.canvas_=null,u.sourceListenerKey_=null,u}return xn(e,t),e.prototype.disposeInternal=function(){this.state==mn.Z.LOADING&&this.unlistenSource_(),t.prototype.disposeInternal.call(this)},e.prototype.getImage=function(){return this.canvas_},e.prototype.getProjection=function(){return this.targetProj_},e.prototype.reproject_=function(){var t=this.sourceImage_.getState();if(t==mn.Z.LOADED){var e=(0,o.dz)(this.targetExtent_)/this.targetResolution_,n=(0,o.Cr)(this.targetExtent_)/this.targetResolution_;this.canvas_=(0,bn.sY)(e,n,this.sourcePixelRatio_,this.sourceImage_.getResolution(),this.maxSourceExtent_,this.targetResolution_,this.targetExtent_,this.triangulation_,[{extent:this.sourceImage_.getExtent(),image:this.sourceImage_.getImage()}],0,void 0,this.interpolate_)}this.state=t,this.changed()},e.prototype.load=function(){if(this.state==mn.Z.IDLE){this.state=mn.Z.LOADING,this.changed();var t=this.sourceImage_.getState();t==mn.Z.LOADED||t==mn.Z.ERROR?this.reproject_():(this.sourceListenerKey_=(0,wn.oL)(this.sourceImage_,_.Z.CHANGE,(function(t){var e=this.sourceImage_.getState();e!=mn.Z.LOADED&&e!=mn.Z.ERROR||(this.unlistenSource_(),this.reproject_())}),this),this.sourceImage_.load())}},e.prototype.unlistenSource_=function(){(0,wn.bN)(this.sourceListenerKey_),this.sourceListenerKey_=null},e}(vn.Z);var Cn=n(9765),En=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),kn=function(t){function e(e,n){var r=t.call(this,e)||this;return r.image=n,r}return En(e,t),e}(gn.ZP);function An(t,e){t.getImage().src=e}const Pn=function(t){function e(e){var n=this,r=void 0===e.imageSmoothing||e.imageSmoothing;return void 0!==e.interpolate&&(r=e.interpolate),(n=t.call(this,{attributions:e.attributions,projection:e.projection,state:e.state,interpolate:r})||this).on,n.once,n.un,n.resolutions_=void 0!==e.resolutions?e.resolutions:null,n.reprojectedImage_=null,n.reprojectedRevision_=0,n}return En(e,t),e.prototype.getResolutions=function(){return this.resolutions_},e.prototype.findNearestResolution=function(t){if(this.resolutions_){var e=(0,hn.h7)(this.resolutions_,t,0);t=this.resolutions_[e]}return t},e.prototype.getImage=function(t,e,n,r){var i=this.getProjection();if(yn.j&&i&&r&&!(0,c.equivalent)(i,r)){if(this.reprojectedImage_){if(this.reprojectedRevision_==this.getRevision()&&(0,c.equivalent)(this.reprojectedImage_.getProjection(),r)&&this.reprojectedImage_.getResolution()==e&&(0,o.fS)(this.reprojectedImage_.getExtent(),t))return this.reprojectedImage_;this.reprojectedImage_.dispose(),this.reprojectedImage_=null}return this.reprojectedImage_=new Sn(i,r,t,e,n,function(t,e,n){return this.getImageInternal(t,e,n,i)}.bind(this),this.getInterpolate()),this.reprojectedRevision_=this.getRevision(),this.reprojectedImage_}return i&&(r=i),this.getImageInternal(t,e,n,r)},e.prototype.getImageInternal=function(t,e,n,r){return(0,E.O3)()},e.prototype.handleImageChange=function(t){var e,n=t.target;switch(n.getState()){case mn.Z.LOADING:this.loading=!0,e="imageloadstart";break;case mn.Z.LOADED:this.loading=!1,e="imageloadend";break;case mn.Z.ERROR:this.loading=!1,e="imageloaderror";break;default:return}this.hasListener(e)&&this.dispatchEvent(new kn(e,n))},e}(Cn.Z);var Tn=n(1667);function Mn(t,e){var n=[];Object.keys(e).forEach((function(t){null!==e[t]&&void 0!==e[t]&&n.push(t+"="+encodeURIComponent(e[t]))}));var r=n.join("&");return(t=-1===(t=t.replace(/[?&]$/,"")).indexOf("?")?t+"?":t+"&")+r}var On=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Rn=function(t){function e(e){var n=this,r=e||{},i=void 0===r.imageSmoothing||r.imageSmoothing;return void 0!==r.interpolate&&(i=r.interpolate),(n=t.call(this,{attributions:r.attributions,interpolate:i,projection:r.projection,resolutions:r.resolutions})||this).crossOrigin_=void 0!==r.crossOrigin?r.crossOrigin:null,n.hidpi_=void 0===r.hidpi||r.hidpi,n.url_=r.url,n.imageLoadFunction_=void 0!==r.imageLoadFunction?r.imageLoadFunction:An,n.params_=r.params||{},n.image_=null,n.imageSize_=[0,0],n.renderedRevision_=0,n.ratio_=void 0!==r.ratio?r.ratio:1.5,n}return On(e,t),e.prototype.getParams=function(){return this.params_},e.prototype.getImageInternal=function(t,e,n,r){if(void 0===this.url_)return null;e=this.findNearestResolution(e),n=this.hidpi_?n:1;var i=this.image_;if(i&&this.renderedRevision_==this.getRevision()&&i.getResolution()==e&&i.getPixelRatio()==n&&(0,o.r4)(i.getExtent(),t))return i;var a={F:"image",FORMAT:"PNG32",TRANSPARENT:!0};(0,m.f0)(a,this.params_);var s=((t=t.slice())[0]+t[2])/2,l=(t[1]+t[3])/2;if(1!=this.ratio_){var u=this.ratio_*(0,o.dz)(t)/2,c=this.ratio_*(0,o.Cr)(t)/2;t[0]=s-u,t[1]=l-c,t[2]=s+u,t[3]=l+c}var h=e/n,p=Math.ceil((0,o.dz)(t)/h),d=Math.ceil((0,o.Cr)(t)/h);t[0]=s-h*p/2,t[2]=s+h*p/2,t[1]=l-h*d/2,t[3]=l+h*d/2,this.imageSize_[0]=p,this.imageSize_[1]=d;var f=this.getRequestUrl_(t,this.imageSize_,n,r,a);return this.image_=new Tn.Z(t,e,n,f,this.crossOrigin_,this.imageLoadFunction_),this.renderedRevision_=this.getRevision(),this.image_.addEventListener(_.Z.CHANGE,this.handleImageChange.bind(this)),this.image_},e.prototype.getImageLoadFunction=function(){return this.imageLoadFunction_},e.prototype.getRequestUrl_=function(t,e,n,r,i){var o=r.getCode().split(/:(?=\d+$)/).pop();i.SIZE=e[0]+","+e[1],i.BBOX=t.join(","),i.BBOXSR=o,i.IMAGESR=o,i.DPI=Math.round(90*n);var a=this.url_,s=a.replace(/MapServer\/?$/,"MapServer/export").replace(/ImageServer\/?$/,"ImageServer/exportImage");return s==a&&(0,C.h)(!1,50),Mn(s,i)},e.prototype.getUrl=function(){return this.url_},e.prototype.setImageLoadFunction=function(t){this.image_=null,this.imageLoadFunction_=t,this.changed()},e.prototype.setUrl=function(t){t!=this.url_&&(this.url_=t,this.image_=null,this.changed())},e.prototype.updateParams=function(t){(0,m.f0)(this.params_,t),this.image_=null,this.changed()},e}(Pn);var In=n(4271),Ln=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Fn=function(t){function e(e){var n=this,r=e||{},i=void 0===r.imageSmoothing||r.imageSmoothing;return void 0!==r.interpolate&&(i=r.interpolate),(n=t.call(this,{attributions:r.attributions,interpolate:i,projection:r.projection,resolutions:r.resolutions,state:r.state})||this).canvasFunction_=r.canvasFunction,n.canvas_=null,n.renderedRevision_=0,n.ratio_=void 0!==r.ratio?r.ratio:1.5,n}return Ln(e,t),e.prototype.getImageInternal=function(t,e,n,r){e=this.findNearestResolution(e);var i=this.canvas_;if(i&&this.renderedRevision_==this.getRevision()&&i.getResolution()==e&&i.getPixelRatio()==n&&(0,o.r4)(i.getExtent(),t))return i;t=t.slice(),(0,o.H9)(t,this.ratio_);var a=[(0,o.dz)(t)/e*n,(0,o.Cr)(t)/e*n],s=this.canvasFunction_.call(this,t,e,n,a,r);return s&&(i=new In.Z(t,e,n,s)),this.canvas_=i,this.renderedRevision_=this.getRevision(),i},e}(Pn);var Nn=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Dn=function(t){function e(e){var n=this,r=void 0===e.imageSmoothing||e.imageSmoothing;return void 0!==e.interpolate&&(r=e.interpolate),(n=t.call(this,{interpolate:r,projection:e.projection,resolutions:e.resolutions})||this).crossOrigin_=void 0!==e.crossOrigin?e.crossOrigin:null,n.displayDpi_=void 0!==e.displayDpi?e.displayDpi:96,n.params_=e.params||{},n.url_=e.url,n.imageLoadFunction_=void 0!==e.imageLoadFunction?e.imageLoadFunction:An,n.hidpi_=void 0===e.hidpi||e.hidpi,n.metersPerUnit_=void 0!==e.metersPerUnit?e.metersPerUnit:1,n.ratio_=void 0!==e.ratio?e.ratio:1,n.useOverlay_=void 0!==e.useOverlay&&e.useOverlay,n.image_=null,n.renderedRevision_=0,n}return Nn(e,t),e.prototype.getParams=function(){return this.params_},e.prototype.getImageInternal=function(t,e,n,r){e=this.findNearestResolution(e),n=this.hidpi_?n:1;var i=this.image_;if(i&&this.renderedRevision_==this.getRevision()&&i.getResolution()==e&&i.getPixelRatio()==n&&(0,o.r4)(i.getExtent(),t))return i;1!=this.ratio_&&(t=t.slice(),(0,o.H9)(t,this.ratio_));var a=[(0,o.dz)(t)/e*n,(0,o.Cr)(t)/e*n];if(void 0!==this.url_){var s=this.getUrl(this.url_,this.params_,t,a,r);(i=new Tn.Z(t,e,n,s,this.crossOrigin_,this.imageLoadFunction_)).addEventListener(_.Z.CHANGE,this.handleImageChange.bind(this))}else i=null;return this.image_=i,this.renderedRevision_=this.getRevision(),i},e.prototype.getImageLoadFunction=function(){return this.imageLoadFunction_},e.prototype.updateParams=function(t){(0,m.f0)(this.params_,t),this.changed()},e.prototype.getUrl=function(t,e,n,r,i){var a=function(t,e,n,r){var i=(0,o.dz)(t),a=(0,o.Cr)(t),s=e[0],l=e[1],u=.0254/r;return l*i>s*a?i*n/(s*u):a*n/(l*u)}(n,r,this.metersPerUnit_,this.displayDpi_),s=(0,o.qg)(n),l={OPERATION:this.useOverlay_?"GETDYNAMICMAPOVERLAYIMAGE":"GETMAPIMAGE",VERSION:"2.0.0",LOCALE:"en",CLIENTAGENT:"ol/source/ImageMapGuide source",CLIP:"1",SETDISPLAYDPI:this.displayDpi_,SETDISPLAYWIDTH:Math.round(r[0]),SETDISPLAYHEIGHT:Math.round(r[1]),SETVIEWSCALE:a,SETVIEWCENTERX:s[0],SETVIEWCENTERY:s[1]};return(0,m.f0)(l,e),Mn(t,l)},e.prototype.setImageLoadFunction=function(t){this.image_=null,this.imageLoadFunction_=t,this.changed()},e}(Pn);var zn=n(3192),Zn=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),jn=function(t){function e(e){var n=this,r=void 0!==e.crossOrigin?e.crossOrigin:null,i=void 0!==e.imageLoadFunction?e.imageLoadFunction:An,o=void 0===e.imageSmoothing||e.imageSmoothing;return void 0!==e.interpolate&&(o=e.interpolate),(n=t.call(this,{attributions:e.attributions,interpolate:o,projection:(0,c.get)(e.projection)})||this).url_=e.url,n.imageExtent_=e.imageExtent,n.image_=new Tn.Z(n.imageExtent_,void 0,1,n.url_,r,i),n.imageSize_=e.imageSize?e.imageSize:null,n.image_.addEventListener(_.Z.CHANGE,n.handleImageChange.bind(n)),n}return Zn(e,t),e.prototype.getImageExtent=function(){return this.imageExtent_},e.prototype.getImageInternal=function(t,e,n,r){return(0,o.kK)(t,this.image_.getExtent())?this.image_:null},e.prototype.getUrl=function(){return this.url_},e.prototype.handleImageChange=function(e){if(this.image_.getState()==mn.Z.LOADED){var n=this.image_.getExtent(),r=this.image_.getImage(),i=void 0,a=void 0;this.imageSize_?(i=this.imageSize_[0],a=this.imageSize_[1]):(i=r.width,a=r.height);var s=(0,o.dz)(n),l=(0,o.Cr)(n),u=s/i,c=l/a,h=i,p=a;if(u>c?h=Math.round(s/c):p=Math.round(l/u),h!==i||p!==a){var d=(0,on.E4)(h,p);this.getInterpolate()||(0,m.f0)(d,zn.$);var f=d.canvas;d.drawImage(r,0,0,i,a,0,0,f.width,f.height),this.image_.setImage(f)}}t.prototype.handleImageChange.call(this,e)},e}(Pn);const Gn=jn;var Bn="1.3.0",Un=n(8580),Vn=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),qn=[101,101],Wn=function(t){function e(e){var n=this,r=e||{},i=void 0===r.imageSmoothing||r.imageSmoothing;return void 0!==r.interpolate&&(i=r.interpolate),(n=t.call(this,{attributions:r.attributions,interpolate:i,projection:r.projection,resolutions:r.resolutions})||this).crossOrigin_=void 0!==r.crossOrigin?r.crossOrigin:null,n.url_=r.url,n.imageLoadFunction_=void 0!==r.imageLoadFunction?r.imageLoadFunction:An,n.params_=r.params||{},n.v13_=!0,n.updateV13_(),n.serverType_=r.serverType,n.hidpi_=void 0===r.hidpi||r.hidpi,n.image_=null,n.imageSize_=[0,0],n.renderedRevision_=0,n.ratio_=void 0!==r.ratio?r.ratio:1.5,n}return Vn(e,t),e.prototype.getFeatureInfoUrl=function(t,e,n,r){if(void 0!==this.url_){var i=(0,c.get)(n),a=this.getProjection();a&&a!==i&&(e=(0,bn.aA)(a,i,t,e),t=(0,c.transform)(t,i,a));var s=(0,o.p8)(t,e,0,qn),l={SERVICE:"WMS",VERSION:Bn,REQUEST:"GetFeatureInfo",FORMAT:"image/png",TRANSPARENT:!0,QUERY_LAYERS:this.params_.LAYERS};(0,m.f0)(l,this.params_,r);var u=(0,Be.GW)((t[0]-s[0])/e,4),h=(0,Be.GW)((s[3]-t[1])/e,4);return l[this.v13_?"I":"X"]=u,l[this.v13_?"J":"Y"]=h,this.getRequestUrl_(s,qn,1,a||i,l)}},e.prototype.getLegendUrl=function(t,e){if(void 0!==this.url_){var n={SERVICE:"WMS",VERSION:Bn,REQUEST:"GetLegendGraphic",FORMAT:"image/png"};if(void 0===e||void 0===e.LAYER){var r=this.params_.LAYERS;if(Array.isArray(r)&&1!==r.length)return;n.LAYER=r}if(void 0!==t){var i=this.getProjection()?this.getProjection().getMetersPerUnit():1;n.SCALE=t*i/28e-5}return(0,m.f0)(n,e),Mn(this.url_,n)}},e.prototype.getParams=function(){return this.params_},e.prototype.getImageInternal=function(t,e,n,r){if(void 0===this.url_)return null;e=this.findNearestResolution(e),1==n||this.hidpi_&&void 0!==this.serverType_||(n=1);var i=e/n,a=(0,o.qg)(t),s=(0,Be.mD)((0,o.dz)(t)/i,4),l=(0,Be.mD)((0,o.Cr)(t)/i,4),u=(0,o.p8)(a,i,0,[s,l]),c=(0,Be.mD)(this.ratio_*(0,o.dz)(t)/i,4),h=(0,Be.mD)(this.ratio_*(0,o.Cr)(t)/i,4),p=(0,o.p8)(a,i,0,[c,h]),d=this.image_;if(d&&this.renderedRevision_==this.getRevision()&&d.getResolution()==e&&d.getPixelRatio()==n&&(0,o.r4)(d.getExtent(),u))return d;var f={SERVICE:"WMS",VERSION:Bn,REQUEST:"GetMap",FORMAT:"image/png",TRANSPARENT:!0};(0,m.f0)(f,this.params_),this.imageSize_[0]=(0,Be.NM)((0,o.dz)(p)/i,4),this.imageSize_[1]=(0,Be.NM)((0,o.Cr)(p)/i,4);var g=this.getRequestUrl_(p,this.imageSize_,n,r,f);return this.image_=new Tn.Z(p,e,n,g,this.crossOrigin_,this.imageLoadFunction_),this.renderedRevision_=this.getRevision(),this.image_.addEventListener(_.Z.CHANGE,this.handleImageChange.bind(this)),this.image_},e.prototype.getImageLoadFunction=function(){return this.imageLoadFunction_},e.prototype.getRequestUrl_=function(t,e,n,r,i){if((0,C.h)(void 0!==this.url_,9),i[this.v13_?"CRS":"SRS"]=r.getCode(),"STYLES"in this.params_||(i.STYLES=""),1!=n)switch(this.serverType_){case"geoserver":var o=90*n+.5|0;"FORMAT_OPTIONS"in i?i.FORMAT_OPTIONS+=";dpi:"+o:i.FORMAT_OPTIONS="dpi:"+o;break;case"mapserver":i.MAP_RESOLUTION=90*n;break;case"carmentaserver":case"qgis":i.DPI=90*n;break;default:(0,C.h)(!1,8)}i.WIDTH=e[0],i.HEIGHT=e[1];var a,s=r.getAxisOrientation();return a=this.v13_&&"ne"==s.substr(0,2)?[t[1],t[0],t[3],t[2]]:t,i.BBOX=a.join(","),Mn(this.url_,i)},e.prototype.getUrl=function(){return this.url_},e.prototype.setImageLoadFunction=function(t){this.image_=null,this.imageLoadFunction_=t,this.changed()},e.prototype.setUrl=function(t){t!=this.url_&&(this.url_=t,this.image_=null,this.changed())},e.prototype.updateParams=function(t){(0,m.f0)(this.params_,t),this.updateV13_(),this.image_=null,this.changed()},e.prototype.updateV13_=function(){var t=this.params_.VERSION||Bn;this.v13_=(0,Un.n)(t,"1.3")>=0},e}(Pn);const Hn=Wn;var Xn=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Kn='&#169; <a href="https://www.openstreetmap.org/copyright" target="_blank">OpenStreetMap</a> contributors.';const Yn=function(t){function e(e){var n,r=e||{},i=void 0===r.imageSmoothing||r.imageSmoothing;void 0!==r.interpolate&&(i=r.interpolate),n=void 0!==r.attributions?r.attributions:[Kn];var o=void 0!==r.crossOrigin?r.crossOrigin:"anonymous",a=void 0!==r.url?r.url:"https://{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png";return t.call(this,{attributions:n,attributionsCollapsible:!1,cacheSize:r.cacheSize,crossOrigin:o,interpolate:i,maxZoom:void 0!==r.maxZoom?r.maxZoom:19,opaque:void 0===r.opaque||r.opaque,reprojectionErrorThreshold:r.reprojectionErrorThreshold,tileLoadFunction:r.tileLoadFunction,transition:r.transition,url:a,wrapX:r.wrapX,zDirection:r.zDirection})||this}return Xn(e,t),e}(g);var Qn=n(5466),$n=n(1716),Jn=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const tr=function(t){function e(e){var n=e||{};return t.call(this,n)||this}return Jn(e,t),e}($n.Z);var er=n(9780),nr=n(6270),rr=n(1091),ir=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),or=function(t){function e(e){var n=t.call(this,e)||this;return n.image_=null,n}return ir(e,t),e.prototype.getImage=function(){return this.image_?this.image_.getImage():null},e.prototype.prepareFrame=function(t){var e=t.layerStatesArray[t.layerIndex],n=t.pixelRatio,r=t.viewState,i=r.resolution,a=this.getLayer().getSource(),s=t.viewHints,l=t.extent;if(void 0!==e.extent&&(l=(0,o.Ed)(l,(0,c.fromUserExtent)(e.extent,r.projection))),!s[nr.Z.ANIMATING]&&!s[nr.Z.INTERACTING]&&!(0,o.xb)(l))if(a){var u=r.projection;if(!yn.j){var h=a.getProjection();h&&(u=h)}var p=a.getImage(l,i,n,u);p&&(this.loadImage(p)?this.image_=p:p.getState()===mn.Z.EMPTY&&(this.image_=null))}else this.image_=null;return!!this.image_},e.prototype.getData=function(t){var e=this.frameState;if(!e)return null;var n=this.getLayer(),r=(0,rr.nn)(e.pixelToCoordinateTransform,t.slice()),i=n.getExtent();if(i&&!(0,o.b8)(i,r))return null;var a=this.image_.getExtent(),s=this.image_.getImage(),l=(0,o.dz)(a),u=Math.floor(s.width*((r[0]-a[0])/l));if(u<0||u>=s.width)return null;var c=(0,o.Cr)(a),h=Math.floor(s.height*((a[3]-r[1])/c));return h<0||h>=s.height?null:this.getImageData(s,u,h)},e.prototype.renderFrame=function(t,e){var n=this.image_,r=n.getExtent(),i=n.getResolution(),a=n.getPixelRatio(),s=t.layerStatesArray[t.layerIndex],l=t.pixelRatio,u=t.viewState,h=u.center,p=l*i/(u.resolution*a),d=t.extent,f=u.resolution,g=u.rotation,y=Math.round((0,o.dz)(d)/f*l),v=Math.round((0,o.Cr)(d)/f*l);(0,rr.qC)(this.pixelTransform,t.size[0]/2,t.size[1]/2,1/l,1/l,g,-y/2,-v/2),(0,rr.nb)(this.inversePixelTransform,this.pixelTransform);var _=(0,rr.BB)(this.pixelTransform);this.useContainer(e,_,this.getBackground(t));var b=this.context,w=b.canvas;w.width!=y||w.height!=v?(w.width=y,w.height=v):this.containerReused||b.clearRect(0,0,y,v);var x=!1,S=!0;if(s.extent){var C=(0,c.fromUserExtent)(s.extent,u.projection);(x=(S=(0,o.kK)(C,t.extent))&&!(0,o.r4)(C,t.extent))&&this.clipUnrotated(b,t,C)}var E=n.getImage(),k=(0,rr.qC)(this.tempTransform,y/2,v/2,p,p,0,a*(r[0]-h[0])/i,a*(h[1]-r[3])/i);this.renderedResolution=i*l/a;var A=E.width*k[0],P=E.height*k[3];if(this.getLayer().getSource().getInterpolate()||(0,m.f0)(b,zn.$),this.preRender(b,t),S&&A>=.5&&P>=.5){var T=k[4],M=k[5],O=s.opacity,R=void 0;1!==O&&(R=b.globalAlpha,b.globalAlpha=O),b.drawImage(E,0,0,+E.width,+E.height,T,M,A,P),1!==O&&(b.globalAlpha=R)}return this.postRender(b,t),x&&b.restore(),(0,m.f0)(b,zn.s),_!==w.style.transform&&(w.style.transform=_),this.container},e}(er.Z);const ar=or;var sr=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const lr=function(t){function e(e){return t.call(this,e)||this}return sr(e,t),e.prototype.createRenderer=function(){return new ar(this)},e.prototype.getData=function(e){return t.prototype.getData.call(this,e)},e}(tr);var ur,cr=n(5952),hr=n(4111),pr=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),dr=!0;try{new ImageData(10,10)}catch(t){dr=!1}function fr(t){var e=!0;try{new ImageData(10,10)}catch(t){e=!1}function n(t,n,r){return e?new ImageData(t,n,r):{data:t,width:n,height:r}}return function(e){var r=e.buffers,i=e.meta,o=e.imageOps,a=e.width,s=e.height,l=r.length,u=r[0].byteLength;if(o){for(var c=new Array(l),h=0;h<l;++h)c[h]=n(new Uint8ClampedArray(r[h]),a,s);return t(c,i).data.buffer}var p=new Uint8ClampedArray(u),d=new Array(l),f=new Array(l);for(h=0;h<l;++h)d[h]=new Uint8ClampedArray(r[h]),f[h]=[0,0,0,0];for(var g=0;g<u;g+=4){for(var m=0;m<l;++m){var y=d[m];f[m][0]=y[g],f[m][1]=y[g+1],f[m][2]=y[g+2],f[m][3]=y[g+3]}var v=t(f,i);p[g]=v[0],p[g+1]=v[1],p[g+2]=v[2],p[g+3]=v[3]}return p.buffer}}function gr(t,e){var n=Object.keys(t.lib||{}).map((function(e){return"var "+e+" = "+t.lib[e].toString()+";"})).concat(["var __minion__ = ("+fr.toString()+")(",t.operation.toString(),");",'self.addEventListener("message", function(event) {'," var buffer = __minion__(event.data);"," self.postMessage({buffer: buffer, meta: event.data.meta}, [buffer]);","});"]),r=new Worker("undefined"==typeof Blob?"data:text/javascript;base64,"+Buffer.from(n.join("\n"),"binary").toString("base64"):URL.createObjectURL(new Blob(n,{type:"text/javascript"})));return r.addEventListener("message",e),r}var mr=function(t){function e(e){var n,r=t.call(this)||this;r._imageOps=!!e.imageOps,n=0===e.threads?0:r._imageOps?1:e.threads||1;var i=new Array(n);if(n)for(var o=0;o<n;++o)i[o]=gr(e,r._onWorkerMessage.bind(r,o));else i[0]=function(t,e){var n=fr(t.operation),r=!1;return{postMessage:function(t){setTimeout((function(){r||e({data:{buffer:n(t),meta:t.meta}})}),0)},terminate:function(){r=!0}}}(e,r._onWorkerMessage.bind(r,0));return r._workers=i,r._queue=[],r._maxQueueLength=e.queue||1/0,r._running=0,r._dataLookup={},r._job=null,r}return pr(e,t),e.prototype.process=function(t,e,n){this._enqueue({inputs:t,meta:e,callback:n}),this._dispatch()},e.prototype._enqueue=function(t){for(this._queue.push(t);this._queue.length>this._maxQueueLength;)this._queue.shift().callback(null,null)},e.prototype._dispatch=function(){if(!this._running&&0!==this._queue.length){var t=this._queue.shift();this._job=t;var e=t.inputs[0].width,n=t.inputs[0].height,r=t.inputs.map((function(t){return t.data.buffer})),i=this._workers.length;if(this._running=i,1!==i)for(var o=t.inputs[0].data.length,a=4*Math.ceil(o/4/i),s=0;s<i;++s){for(var l=s*a,u=[],c=0,h=r.length;c<h;++c)u.push(r[c].slice(l,l+a));this._workers[s].postMessage({buffers:u,meta:t.meta,imageOps:this._imageOps,width:e,height:n},u)}else this._workers[0].postMessage({buffers:r,meta:t.meta,imageOps:this._imageOps,width:e,height:n},r)}},e.prototype._onWorkerMessage=function(t,e){this.disposed||(this._dataLookup[t]=e.data,--this._running,0===this._running&&this._resolveJob())},e.prototype._resolveJob=function(){var t,e,n=this._job,r=this._workers.length;if(1===r)t=new Uint8ClampedArray(this._dataLookup[0].buffer),e=this._dataLookup[0].meta;else{var i=n.inputs[0].data.length;t=new Uint8ClampedArray(i),e=new Array(r);for(var o=4*Math.ceil(i/4/r),a=0;a<r;++a){var s=this._dataLookup[a].buffer,l=a*o;t.set(new Uint8ClampedArray(s),l),e[a]=this._dataLookup[a].meta}}this._job=null,this._dataLookup={},n.callback(null,function(t,e,n){if(dr)return new ImageData(t,e,n);ur||(ur=document.createElement("canvas").getContext("2d"));var r=ur.createImageData(e,n);return r.data.set(t),r}(t,n.inputs[0].width,n.inputs[0].height),e),this._dispatch()},e.prototype.disposeInternal=function(){for(var t=0;t<this._workers.length;++t)this._workers[t].terminate();this._workers.length=0},e}(Qn.Z),yr=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.extent=n.extent,i.resolution=n.viewState.resolution/n.pixelRatio,i.data=r,i}return pr(e,t),e}(gn.ZP),vr=function(t){function e(e){var n=t.call(this,{projection:null})||this;n.on,n.once,n.un,n.processor_=null,n.operationType_=void 0!==e.operationType?e.operationType:"pixel",n.threads_=void 0!==e.threads?e.threads:1,n.layers_=function(t){for(var e=t.length,n=new Array(e),r=0;r<e;++r)n[r]=(i=t[r],o=void 0,i instanceof Cn.Z?i instanceof I.Z?o=new cr.default({source:i}):i instanceof Pn&&(o=new lr({source:i})):o=i,o);var i,o;return n}(e.sources);for(var r,i=n.changed.bind(n),o=0,a=n.layers_.length;o<a;++o)n.layers_[o].addEventListener(_.Z.CHANGE,i);return n.tileQueue_=new hr.Z((function(){return 1}),n.changed.bind(n)),n.requestedFrameState_,n.renderedImageCanvas_=null,n.renderedRevision_,n.frameState_={animate:!1,coordinateToPixelTransform:(0,rr.Ue)(),declutterTree:null,extent:null,index:0,layerIndex:0,layerStatesArray:(r=n.layers_,r.map((function(t){return t.getLayerState()}))),pixelRatio:1,pixelToCoordinateTransform:(0,rr.Ue)(),postRenderFunctions:[],size:[0,0],tileQueue:n.tileQueue_,time:Date.now(),usedTiles:{},viewState:{rotation:0},viewHints:[],wantedTiles:{},mapId:(0,E.sq)(n),renderTargets:{}},n.setAttributions((function(t){for(var n=[],r=0,i=e.sources.length;r<i;++r){var o=e.sources[r],a=(o instanceof Cn.Z?o:o.getSource()).getAttributions();if("function"==typeof a){var s=a(t);n.push.apply(n,s)}}return 0!==n.length?n:null})),void 0!==e.operation&&n.setOperation(e.operation,e.lib),n}return pr(e,t),e.prototype.setOperation=function(t,e){this.processor_&&this.processor_.dispose(),this.processor_=new mr({operation:t,imageOps:"image"===this.operationType_,queue:1,lib:e,threads:this.threads_}),this.changed()},e.prototype.updateFrameState_=function(t,e,n){var r=(0,m.f0)({},this.frameState_);r.viewState=(0,m.f0)({},r.viewState);var i=(0,o.qg)(t);r.extent=t.slice(),r.size[0]=Math.round((0,o.dz)(t)/e),r.size[1]=Math.round((0,o.Cr)(t)/e),r.time=Date.now();var a=r.viewState;return a.center=i,a.projection=n,a.resolution=e,r},e.prototype.allSourcesReady_=function(){for(var t=!0,e=0,n=this.layers_.length;e<n;++e)if("ready"!==this.layers_[e].getSource().getState()){t=!1;break}return t},e.prototype.getImage=function(t,e,n,r){if(!this.allSourcesReady_())return null;var i=this.updateFrameState_(t,e,r);if(this.requestedFrameState_=i,this.renderedImageCanvas_){var a=this.renderedImageCanvas_.getResolution(),s=this.renderedImageCanvas_.getExtent();e===a&&(0,o.fS)(t,s)||(this.renderedImageCanvas_=null)}return this.renderedImageCanvas_&&this.getRevision()===this.renderedRevision_||this.processSources_(),i.tileQueue.loadMoreTiles(16,16),i.animate&&requestAnimationFrame(this.changed.bind(this)),this.renderedImageCanvas_},e.prototype.processSources_=function(){for(var t=this.requestedFrameState_,e=this.layers_.length,n=new Array(e),r=0;r<e;++r){t.layerIndex=r;var i=br(this.layers_[r],t);if(!i)return;n[r]=i}var o={};this.dispatchEvent(new yr("beforeoperations",t,o)),this.processor_.process(n,o,this.onWorkerComplete_.bind(this,t))},e.prototype.onWorkerComplete_=function(t,e,n,r){if(!e&&n){var i=t.extent,a=t.viewState.resolution;if(a===this.requestedFrameState_.viewState.resolution&&(0,o.fS)(i,this.requestedFrameState_.extent)){var s;if(this.renderedImageCanvas_)s=this.renderedImageCanvas_.getImage().getContext("2d");else{var l=Math.round((0,o.dz)(i)/a),u=Math.round((0,o.Cr)(i)/a);s=(0,on.E4)(l,u),this.renderedImageCanvas_=new In.Z(i,a,1,s.canvas)}s.putImageData(n,0,0),this.changed(),this.renderedRevision_=this.getRevision(),this.dispatchEvent(new yr("afteroperations",t,r)),t.animate&&requestAnimationFrame(this.changed.bind(this))}}},e.prototype.disposeInternal=function(){this.processor_&&this.processor_.dispose(),t.prototype.disposeInternal.call(this)},e}(Pn);vr.prototype.dispose;var _r=null;function br(t,e){var n=t.getRenderer();if(!n)throw new Error("Unsupported layer type: "+t);if(!n.prepareFrame(e))return null;var r=e.size[0],i=e.size[1];if(0===r||0===i)return null;var o,a=n.renderFrame(e,null);if(a instanceof HTMLCanvasElement)o=a;else{if(a&&(o=a.firstElementChild),!(o instanceof HTMLCanvasElement))throw new Error("Unsupported rendered element: "+o);if(o.width===r&&o.height===i)return o.getContext("2d").getImageData(0,0,r,i)}if(_r){var s=_r.canvas;s.width!==r||s.height!==i?_r=(0,on.E4)(r,i):_r.clearRect(0,0,r,i)}else _r=(0,on.E4)(r,i);return _r.drawImage(o,0,0,r,i),_r.getImageData(0,0,r,i)}const wr=vr;var xr=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Sr=['Map tiles by <a href="https://stamen.com/" target="_blank">Stamen Design</a>, under <a href="https://creativecommons.org/licenses/by/3.0/" target="_blank">CC BY 3.0</a>.',Kn],Cr={terrain:{extension:"jpg",opaque:!0},"terrain-background":{extension:"jpg",opaque:!0},"terrain-labels":{extension:"png",opaque:!1},"terrain-lines":{extension:"png",opaque:!1},"toner-background":{extension:"png",opaque:!0},toner:{extension:"png",opaque:!0},"toner-hybrid":{extension:"png",opaque:!1},"toner-labels":{extension:"png",opaque:!1},"toner-lines":{extension:"png",opaque:!1},"toner-lite":{extension:"png",opaque:!0},watercolor:{extension:"jpg",opaque:!0}},Er={terrain:{minZoom:0,maxZoom:18},toner:{minZoom:0,maxZoom:20},watercolor:{minZoom:0,maxZoom:18}};const kr=function(t){function e(e){var n=void 0===e.imageSmoothing||e.imageSmoothing;void 0!==e.interpolate&&(n=e.interpolate);var r=e.layer.indexOf("-"),i=-1==r?e.layer:e.layer.slice(0,r),o=Er[i],a=Cr[e.layer],s=void 0!==e.url?e.url:"https://stamen-tiles-{a-d}.a.ssl.fastly.net/"+e.layer+"/{z}/{x}/{y}."+a.extension;return t.call(this,{attributions:Sr,cacheSize:e.cacheSize,crossOrigin:"anonymous",interpolate:n,maxZoom:null!=e.maxZoom?e.maxZoom:o.maxZoom,minZoom:null!=e.minZoom?e.minZoom:o.minZoom,opaque:a.opaque,reprojectionErrorThreshold:e.reprojectionErrorThreshold,tileLoadFunction:e.tileLoadFunction,transition:e.transition,url:s,wrapX:e.wrapX,zDirection:e.zDirection})||this}return xr(e,t),e}(g);var Ar=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Pr=function(t){function e(e){var n=this,r=e||{},i=void 0===r.imageSmoothing||r.imageSmoothing;return void 0!==r.interpolate&&(i=r.interpolate),(n=t.call(this,{attributions:r.attributions,cacheSize:r.cacheSize,crossOrigin:r.crossOrigin,interpolate:i,projection:r.projection,reprojectionErrorThreshold:r.reprojectionErrorThreshold,tileGrid:r.tileGrid,tileLoadFunction:r.tileLoadFunction,url:r.url,urls:r.urls,wrapX:void 0===r.wrapX||r.wrapX,transition:r.transition,zDirection:r.zDirection})||this).params_=r.params||{},n.hidpi_=void 0===r.hidpi||r.hidpi,n.tmpExtent_=(0,o.lJ)(),n.setKey(n.getKeyForParams_()),n}return Ar(e,t),e.prototype.getKeyForParams_=function(){var t=0,e=[];for(var n in this.params_)e[t++]=n+"-"+this.params_[n];return e.join("/")},e.prototype.getParams=function(){return this.params_},e.prototype.getRequestUrl_=function(t,e,n,r,i,o){var a=this.urls;if(a){var s=i.getCode().split(/:(?=\d+$)/).pop();return o.SIZE=e[0]+","+e[1],o.BBOX=n.join(","),o.BBOXSR=s,o.IMAGESR=s,o.DPI=Math.round(o.DPI?o.DPI*r:90*r),Mn((1==a.length?a[0]:a[(0,Be.$W)((0,l.vp)(t),a.length)]).replace(/MapServer\/?$/,"MapServer/export").replace(/ImageServer\/?$/,"ImageServer/exportImage"),o)}},e.prototype.getTilePixelRatio=function(t){return this.hidpi_?t:1},e.prototype.updateParams=function(t){(0,m.f0)(this.params_,t),this.setKey(this.getKeyForParams_())},e.prototype.tileUrlFunction=function(t,e,n){var r=this.getTileGrid();if(r||(r=this.getTileGridForProjection(n)),!(r.getResolutions().length<=t[0])){1==e||this.hidpi_||(e=1);var i=r.getTileCoordExtent(t,this.tmpExtent_),o=(0,F.Pq)(r.getTileSize(t[0]),this.tmpSize);1!=e&&(o=(0,F.bA)(o,e,this.tmpSize));var a={F:"image",FORMAT:"PNG32",TRANSPARENT:!0};return(0,m.f0)(a,this.params_),this.getRequestUrl_(t,o,i,e,n,a)}},e}(a.Z);var Tr=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Mr=function(t){function e(e){var n=this,r=e||{};return n=t.call(this,{opaque:!1,projection:r.projection,tileGrid:r.tileGrid,wrapX:void 0===r.wrapX||r.wrapX,zDirection:r.zDirection,url:r.template||"z:{z} x:{x} y:{y}",tileLoadFunction:function(t,e){var r=t.getTileCoord()[0],i=(0,F.Pq)(n.tileGrid.getTileSize(r)),o=(0,on.E4)(i[0],i[1]);o.strokeStyle="grey",o.strokeRect(.5,.5,i[0]+.5,i[1]+.5),o.fillStyle="grey",o.strokeStyle="white",o.textAlign="center",o.textBaseline="middle",o.font="24px sans-serif",o.lineWidth=4,o.strokeText(e,i[0]/2,i[1]/2,i[0]),o.fillText(e,i[0]/2,i[1]/2,i[0]),t.setImage(o.canvas)}})||this,n}return Tr(e,t),e}(g);const Or=Mr;var Rr=n(789),Ir=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Lr=function(t){function e(e){var n=this,r=e||{},i=void 0===r.imageSmoothing||r.imageSmoothing;void 0!==r.interpolate&&(i=r.interpolate);var a=r.params||{},s=!("TRANSPARENT"in a)||a.TRANSPARENT;return(n=t.call(this,{attributions:r.attributions,attributionsCollapsible:r.attributionsCollapsible,cacheSize:r.cacheSize,crossOrigin:r.crossOrigin,interpolate:i,opaque:!s,projection:r.projection,reprojectionErrorThreshold:r.reprojectionErrorThreshold,tileClass:r.tileClass,tileGrid:r.tileGrid,tileLoadFunction:r.tileLoadFunction,url:r.url,urls:r.urls,wrapX:void 0===r.wrapX||r.wrapX,transition:r.transition,zDirection:r.zDirection})||this).gutter_=void 0!==r.gutter?r.gutter:0,n.params_=a,n.v13_=!0,n.serverType_=r.serverType,n.hidpi_=void 0===r.hidpi||r.hidpi,n.tmpExtent_=(0,o.lJ)(),n.updateV13_(),n.setKey(n.getKeyForParams_()),n}return Ir(e,t),e.prototype.getFeatureInfoUrl=function(t,e,n,r){var i=(0,c.get)(n),a=this.getProjection(),s=this.getTileGrid();s||(s=this.getTileGridForProjection(i));var l=s.getZForResolution(e,this.zDirection),u=s.getTileCoordForCoordAndZ(t,l);if(!(s.getResolutions().length<=u[0])){var h=s.getResolution(u[0]),p=s.getTileCoordExtent(u,this.tmpExtent_),d=(0,F.Pq)(s.getTileSize(u[0]),this.tmpSize),f=this.gutter_;0!==f&&(d=(0,F.f3)(d,f,this.tmpSize),p=(0,o.f3)(p,h*f,p)),a&&a!==i&&(h=(0,bn.aA)(a,i,t,h),p=(0,c.transformExtent)(p,i,a),t=(0,c.transform)(t,i,a));var g={SERVICE:"WMS",VERSION:Bn,REQUEST:"GetFeatureInfo",FORMAT:"image/png",TRANSPARENT:!0,QUERY_LAYERS:this.params_.LAYERS};(0,m.f0)(g,this.params_,r);var y=Math.floor((t[0]-p[0])/h),v=Math.floor((p[3]-t[1])/h);return g[this.v13_?"I":"X"]=y,g[this.v13_?"J":"Y"]=v,this.getRequestUrl_(u,d,p,1,a||i,g)}},e.prototype.getLegendUrl=function(t,e){if(void 0!==this.urls[0]){var n={SERVICE:"WMS",VERSION:Bn,REQUEST:"GetLegendGraphic",FORMAT:"image/png"};if(void 0===e||void 0===e.LAYER){var r=this.params_.LAYERS;if(Array.isArray(r)&&1!==r.length)return;n.LAYER=r}if(void 0!==t){var i=this.getProjection()?this.getProjection().getMetersPerUnit():1;n.SCALE=t*i/28e-5}return(0,m.f0)(n,e),Mn(this.urls[0],n)}},e.prototype.getGutter=function(){return this.gutter_},e.prototype.getParams=function(){return this.params_},e.prototype.getRequestUrl_=function(t,e,n,r,i,o){var a=this.urls;if(a){if(o.WIDTH=e[0],o.HEIGHT=e[1],o[this.v13_?"CRS":"SRS"]=i.getCode(),"STYLES"in this.params_||(o.STYLES=""),1!=r)switch(this.serverType_){case"geoserver":var s=90*r+.5|0;"FORMAT_OPTIONS"in o?o.FORMAT_OPTIONS+=";dpi:"+s:o.FORMAT_OPTIONS="dpi:"+s;break;case"mapserver":o.MAP_RESOLUTION=90*r;break;case"carmentaserver":case"qgis":o.DPI=90*r;break;default:(0,C.h)(!1,52)}var u=i.getAxisOrientation(),c=n;if(this.v13_&&"ne"==u.substr(0,2)){var h=void 0;h=n[0],c[0]=n[1],c[1]=h,h=n[2],c[2]=n[3],c[3]=h}return o.BBOX=c.join(","),Mn(1==a.length?a[0]:a[(0,Be.$W)((0,l.vp)(t),a.length)],o)}},e.prototype.getTilePixelRatio=function(t){return this.hidpi_&&void 0!==this.serverType_?t:1},e.prototype.getKeyForParams_=function(){var t=0,e=[];for(var n in this.params_)e[t++]=n+"-"+this.params_[n];return e.join("/")},e.prototype.updateParams=function(t){(0,m.f0)(this.params_,t),this.updateV13_(),this.setKey(this.getKeyForParams_())},e.prototype.updateV13_=function(){var t=this.params_.VERSION||Bn;this.v13_=(0,Un.n)(t,"1.3")>=0},e.prototype.tileUrlFunction=function(t,e,n){var r=this.getTileGrid();if(r||(r=this.getTileGridForProjection(n)),!(r.getResolutions().length<=t[0])){1==e||this.hidpi_&&void 0!==this.serverType_||(e=1);var i=r.getResolution(t[0]),a=r.getTileCoordExtent(t,this.tmpExtent_),s=(0,F.Pq)(r.getTileSize(t[0]),this.tmpSize),l=this.gutter_;0!==l&&(s=(0,F.f3)(s,l,this.tmpSize),a=(0,o.f3)(a,i*l,a)),1!=e&&(s=(0,F.bA)(s,e,this.tmpSize));var u={SERVICE:"WMS",VERSION:Bn,REQUEST:"GetMap",FORMAT:"image/png",TRANSPARENT:!0};return(0,m.f0)(u,this.params_),this.getRequestUrl_(t,s,a,e,n,u)}},e}(a.Z);const Fr=Lr;var Nr=n(5196),Dr=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),zr=function(t){function e(e,n,r,i,o,a){var s=t.call(this,e,n)||this;return s.src_=r,s.extent_=i,s.preemptive_=o,s.grid_=null,s.keys_=null,s.data_=null,s.jsonp_=a,s}return Dr(e,t),e.prototype.getImage=function(){return null},e.prototype.getData=function(t){if(!this.grid_||!this.keys_)return null;var e=(t[0]-this.extent_[0])/(this.extent_[2]-this.extent_[0]),n=(t[1]-this.extent_[1])/(this.extent_[3]-this.extent_[1]),r=this.grid_[Math.floor((1-n)*this.grid_.length)];if("string"!=typeof r)return null;var i=r.charCodeAt(Math.floor(e*r.length));i>=93&&i--,i>=35&&i--;var o=null;if((i-=32)in this.keys_){var a=this.keys_[i];o=this.data_&&a in this.data_?this.data_[a]:a}return o},e.prototype.forDataAtCoordinate=function(t,e,n){this.state==T.Z.EMPTY&&!0===n?(this.state=T.Z.IDLE,(0,wn.Vx)(this,_.Z.CHANGE,(function(n){e(this.getData(t))}),this),this.loadInternal_()):!0===n?setTimeout(function(){e(this.getData(t))}.bind(this),0):e(this.getData(t))},e.prototype.getKey=function(){return this.src_},e.prototype.handleError_=function(){this.state=T.Z.ERROR,this.changed()},e.prototype.handleLoad_=function(t){this.grid_=t.grid,this.keys_=t.keys,this.data_=t.data,this.state=T.Z.LOADED,this.changed()},e.prototype.loadInternal_=function(){if(this.state==T.Z.IDLE)if(this.state=T.Z.LOADING,this.jsonp_)(0,h.R6)(this.src_,this.handleLoad_.bind(this),this.handleError_.bind(this));else{var t=new XMLHttpRequest;t.addEventListener("load",this.onXHRLoad_.bind(this)),t.addEventListener("error",this.onXHRError_.bind(this)),t.open("GET",this.src_),t.send()}},e.prototype.onXHRLoad_=function(t){var e=t.target;if(!e.status||e.status>=200&&e.status<300){var n=void 0;try{n=JSON.parse(e.responseText)}catch(t){return void this.handleError_()}this.handleLoad_(n)}else this.handleError_()},e.prototype.onXHRError_=function(t){this.handleError_()},e.prototype.load=function(){this.preemptive_?this.loadInternal_():this.setState(T.Z.EMPTY)},e}(P.Z),Zr=function(t){function e(e){var n=t.call(this,{projection:(0,c.get)("EPSG:3857"),state:"loading",zDirection:e.zDirection})||this;if(n.preemptive_=void 0===e.preemptive||e.preemptive,n.tileUrlFunction_=s.vU,n.template_=void 0,n.jsonp_=e.jsonp||!1,e.url)if(n.jsonp_)(0,h.R6)(e.url,n.handleTileJSONResponse.bind(n),n.handleTileJSONError.bind(n));else{var r=new XMLHttpRequest;r.addEventListener("load",n.onXHRLoad_.bind(n)),r.addEventListener("error",n.onXHRError_.bind(n)),r.open("GET",e.url),r.send()}else e.tileJSON?n.handleTileJSONResponse(e.tileJSON):(0,C.h)(!1,51);return n}return Dr(e,t),e.prototype.onXHRLoad_=function(t){var e=t.target;if(!e.status||e.status>=200&&e.status<300){var n=void 0;try{n=JSON.parse(e.responseText)}catch(t){return void this.handleTileJSONError()}this.handleTileJSONResponse(n)}else this.handleTileJSONError()},e.prototype.onXHRError_=function(t){this.handleTileJSONError()},e.prototype.getTemplate=function(){return this.template_},e.prototype.forDataAtCoordinateAndResolution=function(t,e,n,r){if(this.tileGrid){var i=this.tileGrid.getZForResolution(e,this.zDirection),o=this.tileGrid.getTileCoordForCoordAndZ(t,i);this.getTile(o[0],o[1],o[2],1,this.getProjection()).forDataAtCoordinate(t,n,r)}else!0===r?setTimeout((function(){n(null)}),0):n(null)},e.prototype.handleTileJSONError=function(){this.setState("error")},e.prototype.handleTileJSONResponse=function(t){var e,n=(0,c.get)("EPSG:4326"),r=this.getProjection();if(void 0!==t.bounds){var i=(0,c.getTransformFromProjections)(n,r);e=(0,o.Ne)(t.bounds,i)}var a=(0,u.Tl)(r),l=t.minzoom||0,h=t.maxzoom||22,p=(0,u.dl)({extent:a,maxZoom:h,minZoom:l});this.tileGrid=p,this.template_=t.template;var d=t.grids;if(d){if(this.tileUrlFunction_=(0,s.uR)(d,p),void 0!==t.attribution){var f=void 0!==e?e:a;this.setAttributions((function(e){return(0,o.kK)(f,e.extent)?[t.attribution]:null}))}this.setState("ready")}else this.setState("error")},e.prototype.getTile=function(t,e,n,r,i){var o=(0,l.lg)(t,e,n);if(this.tileCache.containsKey(o))return this.tileCache.get(o);var a=[t,e,n],s=this.getTileCoordForTileUrlFunction(a,i),u=this.tileUrlFunction_(s,r,i),c=new zr(a,void 0!==u?T.Z.IDLE:T.Z.EMPTY,void 0!==u?u:"",this.tileGrid.getTileCoordExtent(a),this.preemptive_,this.jsonp_);return this.tileCache.set(o,c),c},e.prototype.useTile=function(t,e,n){var r=(0,l.lg)(t,e,n);this.tileCache.containsKey(r)&&this.tileCache.get(r)},e}(I.Z);const jr=Zr;var Gr=n(2405),Br=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ur=function(t){function e(e){var n=this,r=void 0===e.imageSmoothing||e.imageSmoothing;void 0!==e.interpolate&&(r=e.interpolate);var i=void 0!==e.requestEncoding?e.requestEncoding:"KVP",o=e.tileGrid,a=e.urls;return void 0===a&&void 0!==e.url&&(a=(0,s.Gk)(e.url)),(n=t.call(this,{attributions:e.attributions,attributionsCollapsible:e.attributionsCollapsible,cacheSize:e.cacheSize,crossOrigin:e.crossOrigin,interpolate:r,projection:e.projection,reprojectionErrorThreshold:e.reprojectionErrorThreshold,tileClass:e.tileClass,tileGrid:o,tileLoadFunction:e.tileLoadFunction,tilePixelRatio:e.tilePixelRatio,urls:a,wrapX:void 0!==e.wrapX&&e.wrapX,transition:e.transition,zDirection:e.zDirection})||this).version_=void 0!==e.version?e.version:"1.0.0",n.format_=void 0!==e.format?e.format:"image/jpeg",n.dimensions_=void 0!==e.dimensions?e.dimensions:{},n.layer_=e.layer,n.matrixSet_=e.matrixSet,n.style_=e.style,n.requestEncoding_=i,n.setKey(n.getKeyForDimensions_()),a&&a.length>0&&(n.tileUrlFunction=(0,s.Un)(a.map(n.createFromWMTSTemplate.bind(n)))),n}return Br(e,t),e.prototype.setUrls=function(t){this.urls=t;var e=t.join("\n");this.setTileUrlFunction((0,s.Un)(t.map(this.createFromWMTSTemplate.bind(this))),e)},e.prototype.getDimensions=function(){return this.dimensions_},e.prototype.getFormat=function(){return this.format_},e.prototype.getLayer=function(){return this.layer_},e.prototype.getMatrixSet=function(){return this.matrixSet_},e.prototype.getRequestEncoding=function(){return this.requestEncoding_},e.prototype.getStyle=function(){return this.style_},e.prototype.getVersion=function(){return this.version_},e.prototype.getKeyForDimensions_=function(){var t=0,e=[];for(var n in this.dimensions_)e[t++]=n+"-"+this.dimensions_[n];return e.join("/")},e.prototype.updateDimensions=function(t){(0,m.f0)(this.dimensions_,t),this.setKey(this.getKeyForDimensions_())},e.prototype.createFromWMTSTemplate=function(t){var e=this.requestEncoding_,n={layer:this.layer_,style:this.style_,tilematrixset:this.matrixSet_};"KVP"==e&&(0,m.f0)(n,{Service:"WMTS",Request:"GetTile",Version:this.version_,Format:this.format_}),t="KVP"==e?Mn(t,n):t.replace(/\{(\w+?)\}/g,(function(t,e){return e.toLowerCase()in n?n[e.toLowerCase()]:t}));var r=this.tileGrid,i=this.dimensions_;return function(n,o,a){if(n){var s={TileMatrix:r.getMatrixId(n[0]),TileCol:n[1],TileRow:n[2]};(0,m.f0)(s,i);var l=t;return"KVP"==e?Mn(l,s):l.replace(/\{(\w+?)\}/g,(function(t,e){return s[e]}))}}},e}(a.Z);const Vr=Ur;function qr(t,e){var n=new i.Z(32),r=t.getExtent();return function(i,a){n.expireCache(),r&&(i=(0,o.Ed)(r,i));var s=t.getZForResolution(a),l=[];return t.forEachTileCoord(i,s,(function(t){var r=t.toString();if(!n.containsKey(r)){var i=e(t);n.set(r,i)}l.push(n.get(r))})),l}}},9765:(t,e,n)=>{"use strict";n.d(e,{Z:()=>u});var r,i=n(6414),o=n(2637),a=n(6162),s=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});function l(t){return t?Array.isArray(t)?function(e){return t}:"function"==typeof t?t:function(e){return[t]}:null}const u=function(t){function e(e){var n=t.call(this)||this;n.projection=(0,a.get)(e.projection),n.attributions_=l(e.attributions),n.attributionsCollapsible_=void 0===e.attributionsCollapsible||e.attributionsCollapsible,n.loading=!1,n.state_=void 0!==e.state?e.state:"ready",n.wrapX_=void 0!==e.wrapX&&e.wrapX,n.interpolate_=!!e.interpolate,n.viewResolver=null,n.viewRejector=null;var r=n;return n.viewPromise_=new Promise((function(t,e){r.viewResolver=t,r.viewRejector=e})),n}return s(e,t),e.prototype.getAttributions=function(){return this.attributions_},e.prototype.getAttributionsCollapsible=function(){return this.attributionsCollapsible_},e.prototype.getProjection=function(){return this.projection},e.prototype.getResolutions=function(){return(0,o.O3)()},e.prototype.getView=function(){return this.viewPromise_},e.prototype.getState=function(){return this.state_},e.prototype.getWrapX=function(){return this.wrapX_},e.prototype.getInterpolate=function(){return this.interpolate_},e.prototype.refresh=function(){this.changed()},e.prototype.setAttributions=function(t){this.attributions_=l(t),this.changed()},e.prototype.setState=function(t){this.state_=t,this.changed()},e}(i.Z)},3718:(t,e,n)=>{"use strict";n.d(e,{Z:()=>y,s:()=>m});var r,i=n(9025),o=n(9765),a=n(1403),s=n(3584),l=n(2637),u=n(9162),c=n(6162),h=n(9465),p=n(5035),d=n(8691),f=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),g=function(t){function e(e){var n=t.call(this,{attributions:e.attributions,attributionsCollapsible:e.attributionsCollapsible,projection:e.projection,state:e.state,wrapX:e.wrapX,interpolate:e.interpolate})||this;return n.on,n.once,n.un,n.opaque_=void 0!==e.opaque&&e.opaque,n.tilePixelRatio_=void 0!==e.tilePixelRatio?e.tilePixelRatio:1,n.tileGrid=void 0!==e.tileGrid?e.tileGrid:null,n.tileGrid&&(0,d.Pq)(n.tileGrid.getTileSize(n.tileGrid.getMinZoom()),[256,256]),n.tileCache=new a.Z(e.cacheSize||0),n.tmpSize=[0,0],n.key_=e.key||"",n.tileOptions={transition:e.transition,interpolate:e.interpolate},n.zDirection=e.zDirection?e.zDirection:0,n}return f(e,t),e.prototype.canExpireCache=function(){return this.tileCache.canExpireCache()},e.prototype.expireCache=function(t,e){var n=this.getTileCacheForProjection(t);n&&n.expireCache(e)},e.prototype.forEachLoadedTile=function(t,e,n,r){var i=this.getTileCacheForProjection(t);if(!i)return!1;for(var o,a,l,u=!0,c=n.minX;c<=n.maxX;++c)for(var p=n.minY;p<=n.maxY;++p)a=(0,h.lg)(e,c,p),l=!1,i.containsKey(a)&&(l=(o=i.get(a)).getState()===s.Z.LOADED)&&(l=!1!==r(o)),l||(u=!1);return u},e.prototype.getGutterForProjection=function(t){return 0},e.prototype.getKey=function(){return this.key_},e.prototype.setKey=function(t){this.key_!==t&&(this.key_=t,this.changed())},e.prototype.getOpaque=function(t){return this.opaque_},e.prototype.getResolutions=function(){return this.tileGrid?this.tileGrid.getResolutions():null},e.prototype.getTile=function(t,e,n,r,i){return(0,l.O3)()},e.prototype.getTileGrid=function(){return this.tileGrid},e.prototype.getTileGridForProjection=function(t){return this.tileGrid?this.tileGrid:(0,p.X$)(t)},e.prototype.getTileCacheForProjection=function(t){var e=this.getProjection();return(0,u.h)(null===e||(0,c.equivalent)(e,t),68),this.tileCache},e.prototype.getTilePixelRatio=function(t){return this.tilePixelRatio_},e.prototype.getTilePixelSize=function(t,e,n){var r=this.getTileGridForProjection(n),i=this.getTilePixelRatio(e),o=(0,d.Pq)(r.getTileSize(t),this.tmpSize);return 1==i?o:(0,d.bA)(o,i,this.tmpSize)},e.prototype.getTileCoordForTileUrlFunction=function(t,e){var n=void 0!==e?e:this.getProjection(),r=this.getTileGridForProjection(n);return this.getWrapX()&&n.isGlobal()&&(t=(0,p.Cf)(r,t,n)),(0,h.tE)(t,r)?t:null},e.prototype.clear=function(){this.tileCache.clear()},e.prototype.refresh=function(){this.clear(),t.prototype.refresh.call(this)},e.prototype.updateCacheSize=function(t,e){var n=this.getTileCacheForProjection(e);t>n.highWaterMark&&(n.highWaterMark=t)},e.prototype.useTile=function(t,e,n,r){},e}(o.Z),m=function(t){function e(e,n){var r=t.call(this,e)||this;return r.tile=n,r}return f(e,t),e}(i.ZP);const y=g},2134:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});const r={TILELOADSTART:"tileloadstart",TILELOADEND:"tileloadend",TILELOADERROR:"tileloaderror"}},1739:(t,e,n)=>{"use strict";n.d(e,{Z:()=>y});var r,i=n(2001),o=n(6487),a=n(2467),s=n(1403),l=n(3584),u=n(5196),c=n(3611),h=n(6162),p=n(9465),d=n(5035),f=n(2637),g=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});function m(t,e){t.getImage().src=e}const y=function(t){function e(e){var n=this,r=void 0===e.imageSmoothing||e.imageSmoothing;return void 0!==e.interpolate&&(r=e.interpolate),(n=t.call(this,{attributions:e.attributions,cacheSize:e.cacheSize,opaque:e.opaque,projection:e.projection,state:e.state,tileGrid:e.tileGrid,tileLoadFunction:e.tileLoadFunction?e.tileLoadFunction:m,tilePixelRatio:e.tilePixelRatio,tileUrlFunction:e.tileUrlFunction,url:e.url,urls:e.urls,wrapX:e.wrapX,transition:e.transition,interpolate:r,key:e.key,attributionsCollapsible:e.attributionsCollapsible,zDirection:e.zDirection})||this).crossOrigin=void 0!==e.crossOrigin?e.crossOrigin:null,n.tileClass=void 0!==e.tileClass?e.tileClass:o.Z,n.tileCacheForProjection={},n.tileGridForProjection={},n.reprojectionErrorThreshold_=e.reprojectionErrorThreshold,n.renderReprojectionEdges_=!1,n}return g(e,t),e.prototype.canExpireCache=function(){if(!c.j)return t.prototype.canExpireCache.call(this);if(this.tileCache.canExpireCache())return!0;for(var e in this.tileCacheForProjection)if(this.tileCacheForProjection[e].canExpireCache())return!0;return!1},e.prototype.expireCache=function(e,n){if(c.j){var r=this.getTileCacheForProjection(e);for(var i in this.tileCache.expireCache(this.tileCache==r?n:{}),this.tileCacheForProjection){var o=this.tileCacheForProjection[i];o.expireCache(o==r?n:{})}}else t.prototype.expireCache.call(this,e,n)},e.prototype.getGutterForProjection=function(t){return c.j&&this.getProjection()&&t&&!(0,h.equivalent)(this.getProjection(),t)?0:this.getGutter()},e.prototype.getGutter=function(){return 0},e.prototype.getKey=function(){var e=t.prototype.getKey.call(this);return this.getInterpolate()||(e+=":disable-interpolation"),e},e.prototype.getOpaque=function(e){return!(c.j&&this.getProjection()&&e&&!(0,h.equivalent)(this.getProjection(),e))&&t.prototype.getOpaque.call(this,e)},e.prototype.getTileGridForProjection=function(e){if(!c.j)return t.prototype.getTileGridForProjection.call(this,e);var n=this.getProjection();if(!this.tileGrid||n&&!(0,h.equivalent)(n,e)){var r=(0,f.sq)(e);return r in this.tileGridForProjection||(this.tileGridForProjection[r]=(0,d.X$)(e)),this.tileGridForProjection[r]}return this.tileGrid},e.prototype.getTileCacheForProjection=function(e){if(!c.j)return t.prototype.getTileCacheForProjection.call(this,e);var n=this.getProjection();if(!n||(0,h.equivalent)(n,e))return this.tileCache;var r=(0,f.sq)(e);return r in this.tileCacheForProjection||(this.tileCacheForProjection[r]=new s.Z(this.tileCache.highWaterMark)),this.tileCacheForProjection[r]},e.prototype.createTile_=function(t,e,n,r,o,a){var s=[t,e,n],u=this.getTileCoordForTileUrlFunction(s,o),c=u?this.tileUrlFunction(u,r,o):void 0,h=new this.tileClass(s,void 0!==c?l.Z.IDLE:l.Z.EMPTY,void 0!==c?c:"",this.crossOrigin,this.tileLoadFunction,this.tileOptions);return h.key=a,h.addEventListener(i.Z.CHANGE,this.handleTileChange.bind(this)),h},e.prototype.getTile=function(t,e,n,r,i){var o=this.getProjection();if(c.j&&o&&i&&!(0,h.equivalent)(o,i)){var s=this.getTileCacheForProjection(i),l=[t,e,n],u=void 0,d=(0,p.km)(l);s.containsKey(d)&&(u=s.get(d));var f=this.getKey();if(u&&u.key==f)return u;var g=this.getTileGridForProjection(o),m=this.getTileGridForProjection(i),y=this.getTileCoordForTileUrlFunction(l,i),v=new a.Z(o,g,i,m,l,y,this.getTilePixelRatio(r),this.getGutter(),function(t,e,n,r){return this.getTileInternal(t,e,n,r,o)}.bind(this),this.reprojectionErrorThreshold_,this.renderReprojectionEdges_,this.getInterpolate());return v.key=f,u?(v.interimTile=u,v.refreshInterimChain(),s.replace(d,v)):s.set(d,v),v}return this.getTileInternal(t,e,n,r,o||i)},e.prototype.getTileInternal=function(t,e,n,r,i){var o=null,a=(0,p.lg)(t,e,n),s=this.getKey();if(this.tileCache.containsKey(a)){if((o=this.tileCache.get(a)).key!=s){var u=o;o=this.createTile_(t,e,n,r,i,s),u.getState()==l.Z.IDLE?o.interimTile=u.interimTile:o.interimTile=u,o.refreshInterimChain(),this.tileCache.replace(a,o)}}else o=this.createTile_(t,e,n,r,i,s),this.tileCache.set(a,o);return o},e.prototype.setRenderReprojectionEdges=function(t){if(c.j&&this.renderReprojectionEdges_!=t){for(var e in this.renderReprojectionEdges_=t,this.tileCacheForProjection)this.tileCacheForProjection[e].clear();this.changed()}},e.prototype.setTileGridForProjection=function(t,e){if(c.j){var n=(0,h.get)(t);if(n){var r=(0,f.sq)(n);r in this.tileGridForProjection||(this.tileGridForProjection[r]=e)}}},e}(u.Z)},789:(t,e,n)=>{"use strict";n.d(e,{Z:()=>p});var r,i=n(1739),o=n(6596),a=n(9162),s=n(9759),l=n(5035),u=n(6162),c=n(3022),h=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});const p=function(t){function e(e){var n=this,r=void 0===e.imageSmoothing||e.imageSmoothing;if(void 0!==e.interpolate&&(r=e.interpolate),(n=t.call(this,{attributions:e.attributions,cacheSize:e.cacheSize,crossOrigin:e.crossOrigin,interpolate:r,projection:(0,u.get)("EPSG:3857"),reprojectionErrorThreshold:e.reprojectionErrorThreshold,state:"loading",tileLoadFunction:e.tileLoadFunction,wrapX:void 0===e.wrapX||e.wrapX,transition:e.transition,zDirection:e.zDirection})||this).tileJSON_=null,n.tileSize_=e.tileSize,e.url)if(e.jsonp)(0,c.R6)(e.url,n.handleTileJSONResponse.bind(n),n.handleTileJSONError.bind(n));else{var i=new XMLHttpRequest;i.addEventListener("load",n.onXHRLoad_.bind(n)),i.addEventListener("error",n.onXHRError_.bind(n)),i.open("GET",e.url),i.send()}else e.tileJSON?n.handleTileJSONResponse(e.tileJSON):(0,a.h)(!1,51);return n}return h(e,t),e.prototype.onXHRLoad_=function(t){var e=t.target;if(!e.status||e.status>=200&&e.status<300){var n=void 0;try{n=JSON.parse(e.responseText)}catch(t){return void this.handleTileJSONError()}this.handleTileJSONResponse(n)}else this.handleTileJSONError()},e.prototype.onXHRError_=function(t){this.handleTileJSONError()},e.prototype.getTileJSON=function(){return this.tileJSON_},e.prototype.handleTileJSONResponse=function(t){var e,n=(0,u.get)("EPSG:4326"),r=this.getProjection();if(void 0!==t.bounds){var i=(0,u.getTransformFromProjections)(n,r);e=(0,o.Ne)(t.bounds,i)}var a=(0,l.Tl)(r),c=t.minzoom||0,h=t.maxzoom||22,p=(0,l.dl)({extent:a,maxZoom:h,minZoom:c,tileSize:this.tileSize_});if(this.tileGrid=p,this.tileUrlFunction=(0,s.uR)(t.tiles,p),void 0!==t.attribution&&!this.getAttributions()){var d=void 0!==e?e:a;this.setAttributions((function(e){return(0,o.kK)(d,e.extent)?[t.attribution]:null}))}this.tileJSON_=t,this.setState("ready")},e.prototype.handleTileJSONError=function(){this.setState("error")},e}(i.Z)},5196:(t,e,n)=>{"use strict";n.d(e,{Z:()=>h});var r,i=n(2134),o=n(3718),a=n(3584),s=n(9759),l=n(9465),u=n(2637),c=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});const h=function(t){function e(n){var r=t.call(this,{attributions:n.attributions,cacheSize:n.cacheSize,opaque:n.opaque,projection:n.projection,state:n.state,tileGrid:n.tileGrid,tilePixelRatio:n.tilePixelRatio,wrapX:n.wrapX,transition:n.transition,interpolate:n.interpolate,key:n.key,attributionsCollapsible:n.attributionsCollapsible,zDirection:n.zDirection})||this;return r.generateTileUrlFunction_=r.tileUrlFunction===e.prototype.tileUrlFunction,r.tileLoadFunction=n.tileLoadFunction,n.tileUrlFunction&&(r.tileUrlFunction=n.tileUrlFunction),r.urls=null,n.urls?r.setUrls(n.urls):n.url&&r.setUrl(n.url),r.tileLoadingKeys_={},r}return c(e,t),e.prototype.getTileLoadFunction=function(){return this.tileLoadFunction},e.prototype.getTileUrlFunction=function(){return Object.getPrototypeOf(this).tileUrlFunction===this.tileUrlFunction?this.tileUrlFunction.bind(this):this.tileUrlFunction},e.prototype.getUrls=function(){return this.urls},e.prototype.handleTileChange=function(t){var e,n=t.target,r=(0,u.sq)(n),s=n.getState();s==a.Z.LOADING?(this.tileLoadingKeys_[r]=!0,e=i.Z.TILELOADSTART):r in this.tileLoadingKeys_&&(delete this.tileLoadingKeys_[r],e=s==a.Z.ERROR?i.Z.TILELOADERROR:s==a.Z.LOADED?i.Z.TILELOADEND:void 0),null!=e&&this.dispatchEvent(new o.s(e,n))},e.prototype.setTileLoadFunction=function(t){this.tileCache.clear(),this.tileLoadFunction=t,this.changed()},e.prototype.setTileUrlFunction=function(t,e){this.tileUrlFunction=t,this.tileCache.pruneExceptNewestZ(),void 0!==e?this.setKey(e):this.changed()},e.prototype.setUrl=function(t){var e=(0,s.Gk)(t);this.urls=e,this.setUrls(e)},e.prototype.setUrls=function(t){this.urls=t;var e=t.join("\n");this.generateTileUrlFunction_?this.setTileUrlFunction((0,s.uR)(t,this.tileGrid),e):this.setKey(e)},e.prototype.tileUrlFunction=function(t,e,n){},e.prototype.useTile=function(t,e,n){var r=(0,l.lg)(t,e,n);this.tileCache.containsKey(r)&&this.tileCache.get(r)},e}(o.Z)},5792:(t,e,n)=>{"use strict";n.r(e),n.d(e,{VectorSourceEvent:()=>x,default:()=>C});var r=n(3537),i=n(8523),o=n(9025),a=n(2001),s=n(3606),l=n(7315),u=n(9765),c=n(520),h=n(6764);function p(t,e){return[[-1/0,-1/0,1/0,1/0]]}n(6162);var d,f=n(9162),g=n(6596),m=n(2182),y=n(2637),v=n(6534),_=n(8196),b=n(2740),w=(d=function(t,e){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},d(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}d(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),x=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.feature=n,i.features=r,i}return w(e,t),e}(o.ZP),S=function(t){function e(e){var n=this,i=e||{};(n=t.call(this,{attributions:i.attributions,interpolate:!0,projection:void 0,state:"ready",wrapX:void 0===i.wrapX||i.wrapX})||this).on,n.once,n.un,n.loader_=h.Zn,n.format_=i.format,n.overlaps_=void 0===i.overlaps||i.overlaps,n.url_=i.url,void 0!==i.loader?n.loader_=i.loader:void 0!==n.url_&&((0,f.h)(n.format_,7),n.loader_=(0,b.Be)(n.url_,n.format_)),n.strategy_=void 0!==i.strategy?i.strategy:p;var o,a,s=void 0===i.useSpatialIndex||i.useSpatialIndex;return n.featuresRtree_=s?new l.Z:null,n.loadedExtentsRtree_=new l.Z,n.loadingExtentsCount_=0,n.nullGeometryFeatures_={},n.idIndex_={},n.uidIndex_={},n.featureChangeKeys_={},n.featuresCollection_=null,Array.isArray(i.features)?a=i.features:i.features&&(a=(o=i.features).getArray()),s||void 0!==o||(o=new r.Z(a)),void 0!==a&&n.addFeaturesInternal(a),void 0!==o&&n.bindFeaturesCollection_(o),n}return w(e,t),e.prototype.addFeature=function(t){this.addFeatureInternal(t),this.changed()},e.prototype.addFeatureInternal=function(t){var e=(0,y.sq)(t);if(this.addToIndex_(e,t)){this.setupChangeEvents_(e,t);var n=t.getGeometry();if(n){var r=n.getExtent();this.featuresRtree_&&this.featuresRtree_.insert(r,t)}else this.nullGeometryFeatures_[e]=t;this.dispatchEvent(new x(c.Z.ADDFEATURE,t))}else this.featuresCollection_&&this.featuresCollection_.remove(t)},e.prototype.setupChangeEvents_=function(t,e){this.featureChangeKeys_[t]=[(0,_.oL)(e,a.Z.CHANGE,this.handleFeatureChange_,this),(0,_.oL)(e,s.Z.PROPERTYCHANGE,this.handleFeatureChange_,this)]},e.prototype.addToIndex_=function(t,e){var n=!0,r=e.getId();return void 0!==r&&(r.toString()in this.idIndex_?n=!1:this.idIndex_[r.toString()]=e),n&&((0,f.h)(!(t in this.uidIndex_),30),this.uidIndex_[t]=e),n},e.prototype.addFeatures=function(t){this.addFeaturesInternal(t),this.changed()},e.prototype.addFeaturesInternal=function(t){for(var e=[],n=[],r=[],i=0,o=t.length;i<o;i++){var a=t[i],s=(0,y.sq)(a);this.addToIndex_(s,a)&&n.push(a)}i=0;for(var l=n.length;i<l;i++){a=n[i],s=(0,y.sq)(a),this.setupChangeEvents_(s,a);var u=a.getGeometry();if(u){var h=u.getExtent();e.push(h),r.push(a)}else this.nullGeometryFeatures_[s]=a}if(this.featuresRtree_&&this.featuresRtree_.load(e,r),this.hasListener(c.Z.ADDFEATURE)){i=0;for(var p=n.length;i<p;i++)this.dispatchEvent(new x(c.Z.ADDFEATURE,n[i]))}},e.prototype.bindFeaturesCollection_=function(t){var e=!1;this.addEventListener(c.Z.ADDFEATURE,(function(n){e||(e=!0,t.push(n.feature),e=!1)})),this.addEventListener(c.Z.REMOVEFEATURE,(function(n){e||(e=!0,t.remove(n.feature),e=!1)})),t.addEventListener(i.Z.ADD,function(t){e||(e=!0,this.addFeature(t.element),e=!1)}.bind(this)),t.addEventListener(i.Z.REMOVE,function(t){e||(e=!0,this.removeFeature(t.element),e=!1)}.bind(this)),this.featuresCollection_=t},e.prototype.clear=function(t){if(t){for(var e in this.featureChangeKeys_)this.featureChangeKeys_[e].forEach(_.bN);this.featuresCollection_||(this.featureChangeKeys_={},this.idIndex_={},this.uidIndex_={})}else if(this.featuresRtree_){var n=function(t){this.removeFeatureInternal(t)}.bind(this);for(var r in this.featuresRtree_.forEach(n),this.nullGeometryFeatures_)this.removeFeatureInternal(this.nullGeometryFeatures_[r])}this.featuresCollection_&&this.featuresCollection_.clear(),this.featuresRtree_&&this.featuresRtree_.clear(),this.nullGeometryFeatures_={};var i=new x(c.Z.CLEAR);this.dispatchEvent(i),this.changed()},e.prototype.forEachFeature=function(t){if(this.featuresRtree_)return this.featuresRtree_.forEach(t);this.featuresCollection_&&this.featuresCollection_.forEach(t)},e.prototype.forEachFeatureAtCoordinateDirect=function(t,e){var n=[t[0],t[1],t[0],t[1]];return this.forEachFeatureInExtent(n,(function(n){return n.getGeometry().intersectsCoordinate(t)?e(n):void 0}))},e.prototype.forEachFeatureInExtent=function(t,e){if(this.featuresRtree_)return this.featuresRtree_.forEachInExtent(t,e);this.featuresCollection_&&this.featuresCollection_.forEach(e)},e.prototype.forEachFeatureIntersectingExtent=function(t,e){return this.forEachFeatureInExtent(t,(function(n){if(n.getGeometry().intersectsExtent(t)){var r=e(n);if(r)return r}}))},e.prototype.getFeaturesCollection=function(){return this.featuresCollection_},e.prototype.getFeatures=function(){var t;return this.featuresCollection_?t=this.featuresCollection_.getArray().slice(0):this.featuresRtree_&&(t=this.featuresRtree_.getAll(),(0,v.xb)(this.nullGeometryFeatures_)||(0,m.l7)(t,(0,v.KX)(this.nullGeometryFeatures_))),t},e.prototype.getFeaturesAtCoordinate=function(t){var e=[];return this.forEachFeatureAtCoordinateDirect(t,(function(t){e.push(t)})),e},e.prototype.getFeaturesInExtent=function(t,e){var n=this;if(this.featuresRtree_){if(!(e&&e.canWrapX()&&this.getWrapX()))return this.featuresRtree_.getInExtent(t);var r=(0,g.MV)(t,e);return[].concat.apply([],r.map((function(t){return n.featuresRtree_.getInExtent(t)})))}return this.featuresCollection_?this.featuresCollection_.getArray().slice(0):[]},e.prototype.getClosestFeatureToCoordinate=function(t,e){var n=t[0],r=t[1],i=null,o=[NaN,NaN],a=1/0,s=[-1/0,-1/0,1/0,1/0],l=e||h.uX;return this.featuresRtree_.forEachInExtent(s,(function(t){if(l(t)){var e=t.getGeometry(),u=a;if((a=e.closestPointXY(n,r,o,a))<u){i=t;var c=Math.sqrt(a);s[0]=n-c,s[1]=r-c,s[2]=n+c,s[3]=r+c}}})),i},e.prototype.getExtent=function(t){return this.featuresRtree_.getExtent(t)},e.prototype.getFeatureById=function(t){var e=this.idIndex_[t.toString()];return void 0!==e?e:null},e.prototype.getFeatureByUid=function(t){var e=this.uidIndex_[t];return void 0!==e?e:null},e.prototype.getFormat=function(){return this.format_},e.prototype.getOverlaps=function(){return this.overlaps_},e.prototype.getUrl=function(){return this.url_},e.prototype.handleFeatureChange_=function(t){var e=t.target,n=(0,y.sq)(e),r=e.getGeometry();if(r){var i=r.getExtent();n in this.nullGeometryFeatures_?(delete this.nullGeometryFeatures_[n],this.featuresRtree_&&this.featuresRtree_.insert(i,e)):this.featuresRtree_&&this.featuresRtree_.update(i,e)}else n in this.nullGeometryFeatures_||(this.featuresRtree_&&this.featuresRtree_.remove(e),this.nullGeometryFeatures_[n]=e);var o=e.getId();if(void 0!==o){var a=o.toString();this.idIndex_[a]!==e&&(this.removeFromIdIndex_(e),this.idIndex_[a]=e)}else this.removeFromIdIndex_(e),this.uidIndex_[n]=e;this.changed(),this.dispatchEvent(new x(c.Z.CHANGEFEATURE,e))},e.prototype.hasFeature=function(t){var e=t.getId();return void 0!==e?e in this.idIndex_:(0,y.sq)(t)in this.uidIndex_},e.prototype.isEmpty=function(){return this.featuresRtree_?this.featuresRtree_.isEmpty()&&(0,v.xb)(this.nullGeometryFeatures_):!this.featuresCollection_||0===this.featuresCollection_.getLength()},e.prototype.loadFeatures=function(t,e,n){for(var r=this.loadedExtentsRtree_,i=this.strategy_(t,e,n),o=function(t,o){var s=i[t];r.forEachInExtent(s,(function(t){return(0,g.r4)(t.extent,s)}))||(++a.loadingExtentsCount_,a.dispatchEvent(new x(c.Z.FEATURESLOADSTART)),a.loader_.call(a,s,e,n,function(t){--this.loadingExtentsCount_,this.dispatchEvent(new x(c.Z.FEATURESLOADEND,void 0,t))}.bind(a),function(){--this.loadingExtentsCount_,this.dispatchEvent(new x(c.Z.FEATURESLOADERROR))}.bind(a)),r.insert(s,{extent:s.slice()}))},a=this,s=0,l=i.length;s<l;++s)o(s);this.loading=!(this.loader_.length<4)&&this.loadingExtentsCount_>0},e.prototype.refresh=function(){this.clear(!0),this.loadedExtentsRtree_.clear(),t.prototype.refresh.call(this)},e.prototype.removeLoadedExtent=function(t){var e,n=this.loadedExtentsRtree_;n.forEachInExtent(t,(function(n){if((0,g.fS)(n.extent,t))return e=n,!0})),e&&n.remove(e)},e.prototype.removeFeature=function(t){if(t){var e=(0,y.sq)(t);e in this.nullGeometryFeatures_?delete this.nullGeometryFeatures_[e]:this.featuresRtree_&&this.featuresRtree_.remove(t),this.removeFeatureInternal(t)&&this.changed()}},e.prototype.removeFeatureInternal=function(t){var e=(0,y.sq)(t),n=this.featureChangeKeys_[e];if(n){n.forEach(_.bN),delete this.featureChangeKeys_[e];var r=t.getId();return void 0!==r&&delete this.idIndex_[r.toString()],delete this.uidIndex_[e],this.dispatchEvent(new x(c.Z.REMOVEFEATURE,t)),t}},e.prototype.removeFromIdIndex_=function(t){var e=!1;for(var n in this.idIndex_)if(this.idIndex_[n]===t){delete this.idIndex_[n],e=!0;break}return e},e.prototype.setLoader=function(t){this.loader_=t},e.prototype.setUrl=function(t){(0,f.h)(this.format_,7),this.url_=t,this.setLoader((0,b.Be)(t,this.format_))},e}(u.Z);const C=S},520:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});const r={ADDFEATURE:"addfeature",CHANGEFEATURE:"changefeature",CLEAR:"clear",REMOVEFEATURE:"removefeature",FEATURESLOADSTART:"featuresloadstart",FEATURESLOADEND:"featuresloadend",FEATURESLOADERROR:"featuresloaderror"}},2405:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>_,defaultLoadFunction:()=>b});var r,i=n(2001),o=n(33),a=n(1403),s=n(8948),l=n(3584),u=n(5196),c=n(291),h=n(591),p=n(6596),d=n(5035),f=n(9465),g=n(6534),m=n(2740),y=n(8691),v=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});const _=function(t){function e(e){var n=this,r=e.projection||"EPSG:3857",i=e.extent||(0,d.Tl)(r),s=e.tileGrid||(0,d.dl)({extent:i,maxResolution:e.maxResolution,maxZoom:void 0!==e.maxZoom?e.maxZoom:22,minZoom:e.minZoom,tileSize:e.tileSize||512});return(n=t.call(this,{attributions:e.attributions,attributionsCollapsible:e.attributionsCollapsible,cacheSize:e.cacheSize,interpolate:!0,opaque:!1,projection:r,state:e.state,tileGrid:s,tileLoadFunction:e.tileLoadFunction?e.tileLoadFunction:b,tileUrlFunction:e.tileUrlFunction,url:e.url,urls:e.urls,wrapX:void 0===e.wrapX||e.wrapX,transition:e.transition,zDirection:void 0===e.zDirection?1:e.zDirection})||this).format_=e.format?e.format:null,n.sourceTileCache=new a.Z(n.tileCache.highWaterMark),n.overlaps_=null==e.overlaps||e.overlaps,n.tileClass=e.tileClass?e.tileClass:o.Z,n.tileGrids_={},n}return v(e,t),e.prototype.getFeaturesInExtent=function(t){var e=[],n=this.tileCache;if(0===n.getCount())return e;var r=(0,f.Ul)(n.peekFirstKey())[0],i=this.tileGrid;return n.forEach((function(n){if(n.tileCoord[0]===r&&n.getState()===l.Z.LOADED)for(var o=n.getSourceTiles(),a=0,s=o.length;a<s;++a){var u=o[a],c=u.tileCoord;if((0,p.kK)(t,i.getTileCoordExtent(c))){var h=u.getFeatures();if(h)for(var d=0,f=h.length;d<f;++d){var g=h[d],m=g.getGeometry();(0,p.kK)(t,m.getExtent())&&e.push(g)}}}})),e},e.prototype.getOverlaps=function(){return this.overlaps_},e.prototype.clear=function(){this.tileCache.clear(),this.sourceTileCache.clear()},e.prototype.expireCache=function(e,n){var r=this.getTileCacheForProjection(e),i=Object.keys(n).reduce((function(t,e){var n=(0,f.MY)(e),i=r.peek(n);if(i)for(var o=i.sourceTiles,a=0,s=o.length;a<s;++a)t[o[a].getKey()]=!0;return t}),{});t.prototype.expireCache.call(this,e,n),this.sourceTileCache.expireCache(i)},e.prototype.getSourceTiles=function(t,e,n){var r=this;if(n.getState()===l.Z.IDLE){n.setState(l.Z.LOADING);var o=n.wrappedTileCoord,a=this.getTileGridForProjection(e),s=a.getTileCoordExtent(o),u=o[0],c=a.getResolution(u);(0,p.f3)(s,-c,s);var h=this.tileGrid,d=h.getExtent();d&&(0,p.Ed)(s,d,s);var f=h.getZForResolution(c,this.zDirection);h.forEachTileCoord(s,f,(function(o){var a=r.tileUrlFunction(o,t,e),s=r.sourceTileCache.containsKey(a)?r.sourceTileCache.get(a):new r.tileClass(o,a?l.Z.IDLE:l.Z.EMPTY,a,r.format_,r.tileLoadFunction);n.sourceTiles.push(s);var u=s.getState();if(u<l.Z.LOADED){var c=function(t){r.handleTileChange(t);var e=s.getState();if(e===l.Z.LOADED||e===l.Z.ERROR){var o=s.getKey();o in n.errorTileKeys?s.getState()===l.Z.LOADED&&delete n.errorTileKeys[o]:n.loadingSourceTiles--,e===l.Z.ERROR?n.errorTileKeys[o]=!0:s.removeEventListener(i.Z.CHANGE,c),0===n.loadingSourceTiles&&n.setState((0,g.xb)(n.errorTileKeys)?l.Z.LOADED:l.Z.ERROR)}};s.addEventListener(i.Z.CHANGE,c),n.loadingSourceTiles++}u===l.Z.IDLE&&(s.extent=h.getTileCoordExtent(o),s.projection=e,s.resolution=h.getResolution(o[0]),r.sourceTileCache.set(a,s),s.load())})),n.loadingSourceTiles||n.setState(n.sourceTiles.some((function(t){return t.getState()===l.Z.ERROR}))?l.Z.ERROR:l.Z.LOADED)}return n.sourceTiles},e.prototype.getTile=function(t,e,n,r,i){var o,a=(0,f.lg)(t,e,n),s=this.getKey();if(this.tileCache.containsKey(a)&&(o=this.tileCache.get(a)).key===s)return o;var u=[t,e,n],h=this.getTileCoordForTileUrlFunction(u,i),d=this.getTileGrid().getExtent(),g=this.getTileGridForProjection(i);if(h&&d){var m=g.getTileCoordExtent(h);(0,p.f3)(m,-g.getResolution(t),m),(0,p.kK)(d,m)||(h=null)}var y=!0;if(null!==h){var v=this.tileGrid,_=g.getResolution(t),b=v.getZForResolution(_,1),w=g.getTileCoordExtent(h);(0,p.f3)(w,-_,w),v.forEachTileCoord(w,b,function(t){y=y&&!this.tileUrlFunction(t,r,i)}.bind(this))}var x=new c.Z(u,y?l.Z.EMPTY:l.Z.IDLE,h,this.getSourceTiles.bind(this,r,i));return x.key=s,o?(x.interimTile=o,x.refreshInterimChain(),this.tileCache.replace(a,x)):this.tileCache.set(a,x),x},e.prototype.getTileGridForProjection=function(t){var e=t.getCode(),n=this.tileGrids_[e];if(!n){for(var r=this.tileGrid,i=r.getResolutions().slice(),o=i.map((function(t,e){return r.getOrigin(e)})),a=i.map((function(t,e){return r.getTileSize(e)})),l=h.e+1,u=i.length;u<l;++u)i.push(i[u-1]/2),o.push(o[u-1]),a.push(a[u-1]);n=new s.Z({extent:r.getExtent(),origins:o,resolutions:i,tileSizes:a}),this.tileGrids_[e]=n}return n},e.prototype.getTilePixelRatio=function(t){return t},e.prototype.getTilePixelSize=function(t,e,n){var r=this.getTileGridForProjection(n),i=(0,y.Pq)(r.getTileSize(t),this.tmpSize);return[Math.round(i[0]*e),Math.round(i[1]*e)]},e.prototype.updateCacheSize=function(e,n){t.prototype.updateCacheSize.call(this,2*e,n),this.sourceTileCache.highWaterMark=this.getTileCacheForProjection(n).highWaterMark},e}(u.Z);function b(t,e){t.setLoader((function(n,r,i){(0,m.ov)(e,t.getFormat(),n,r,i,t.onLoad.bind(t),t.onError.bind(t))}))}},1659:(t,e,n)=>{"use strict";n.d(e,{Sp:()=>o,cv:()=>a});var r=n(8007),i=6371008.8;function o(t,e,n){var o=n||i,a=(0,r.Yr)(t[1]),s=(0,r.Yr)(e[1]),l=(s-a)/2,u=(0,r.Yr)(e[0]-t[0])/2,c=Math.sin(l)*Math.sin(l)+Math.sin(u)*Math.sin(u)*Math.cos(a)*Math.cos(s);return 2*o*Math.atan2(Math.sqrt(c),Math.sqrt(1-c))}function a(t,e,n,o){var a=o||i,s=(0,r.Yr)(t[1]),l=(0,r.Yr)(t[0]),u=e/a,c=Math.asin(Math.sin(s)*Math.cos(u)+Math.cos(s)*Math.sin(u)*Math.cos(n)),h=l+Math.atan2(Math.sin(n)*Math.sin(u)*Math.cos(s),Math.cos(u)-Math.sin(s)*Math.sin(c));return[(0,r.Ux)(h),(0,r.Ux)(c)]}},8580:(t,e,n)=>{"use strict";function r(t,e,n){var r=void 0!==n?t.toFixed(n):""+t,i=r.indexOf(".");return(i=-1===i?r.length:i)>e?r:new Array(1+e-i).join("0")+r}function i(t,e){for(var n=(""+t).split("."),r=(""+e).split("."),i=0;i<Math.max(n.length,r.length);i++){var o=parseInt(n[i]||"0",10),a=parseInt(r[i]||"0",10);if(o>a)return 1;if(a>o)return-1}return 0}n.d(e,{n:()=>i,v:()=>r})},8172:(t,e,n)=>{"use strict";n.d(e,{Z:()=>i});var r=n(9162);const i=function(){function t(t){this.highWaterMark=void 0!==t?t:2048,this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null}return t.prototype.canExpireCache=function(){return this.highWaterMark>0&&this.getCount()>this.highWaterMark},t.prototype.expireCache=function(t){for(;this.canExpireCache();)this.pop()},t.prototype.clear=function(){this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null},t.prototype.containsKey=function(t){return this.entries_.hasOwnProperty(t)},t.prototype.forEach=function(t){for(var e=this.oldest_;e;)t(e.value_,e.key_,this),e=e.newer},t.prototype.get=function(t,e){var n=this.entries_[t];return(0,r.h)(void 0!==n,15),n===this.newest_||(n===this.oldest_?(this.oldest_=this.oldest_.newer,this.oldest_.older=null):(n.newer.older=n.older,n.older.newer=n.newer),n.newer=null,n.older=this.newest_,this.newest_.newer=n,this.newest_=n),n.value_},t.prototype.remove=function(t){var e=this.entries_[t];return(0,r.h)(void 0!==e,15),e===this.newest_?(this.newest_=e.older,this.newest_&&(this.newest_.newer=null)):e===this.oldest_?(this.oldest_=e.newer,this.oldest_&&(this.oldest_.older=null)):(e.newer.older=e.older,e.older.newer=e.newer),delete this.entries_[t],--this.count_,e.value_},t.prototype.getCount=function(){return this.count_},t.prototype.getKeys=function(){var t,e=new Array(this.count_),n=0;for(t=this.newest_;t;t=t.older)e[n++]=t.key_;return e},t.prototype.getValues=function(){var t,e=new Array(this.count_),n=0;for(t=this.newest_;t;t=t.older)e[n++]=t.value_;return e},t.prototype.peekLast=function(){return this.oldest_.value_},t.prototype.peekLastKey=function(){return this.oldest_.key_},t.prototype.peekFirstKey=function(){return this.newest_.key_},t.prototype.peek=function(t){if(this.containsKey(t))return this.entries_[t].value_},t.prototype.pop=function(){var t=this.oldest_;return delete this.entries_[t.key_],t.newer&&(t.newer.older=null),this.oldest_=t.newer,this.oldest_||(this.newest_=null),--this.count_,t.value_},t.prototype.replace=function(t,e){this.get(t),this.entries_[t].value_=e},t.prototype.set=function(t,e){(0,r.h)(!(t in this.entries_),16);var n={key_:t,newer:null,older:this.newest_,value_:e};this.newest_?this.newest_.newer=n:this.oldest_=n,this.newest_=n,this.entries_[t]=n,++this.count_},t.prototype.setSize=function(t){this.highWaterMark=t},t}()},7315:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=n(6656),i=n(6596),o=n(2637),a=n(6534);const s=function(){function t(t){this.rbush_=new r(t),this.items_={}}return t.prototype.insert=function(t,e){var n={minX:t[0],minY:t[1],maxX:t[2],maxY:t[3],value:e};this.rbush_.insert(n),this.items_[(0,o.sq)(e)]=n},t.prototype.load=function(t,e){for(var n=new Array(e.length),r=0,i=e.length;r<i;r++){var a=t[r],s=e[r],l={minX:a[0],minY:a[1],maxX:a[2],maxY:a[3],value:s};n[r]=l,this.items_[(0,o.sq)(s)]=l}this.rbush_.load(n)},t.prototype.remove=function(t){var e=(0,o.sq)(t),n=this.items_[e];return delete this.items_[e],null!==this.rbush_.remove(n)},t.prototype.update=function(t,e){var n=this.items_[(0,o.sq)(e)],r=[n.minX,n.minY,n.maxX,n.maxY];(0,i.fS)(r,t)||(this.remove(e),this.insert(t,e))},t.prototype.getAll=function(){return this.rbush_.all().map((function(t){return t.value}))},t.prototype.getInExtent=function(t){var e={minX:t[0],minY:t[1],maxX:t[2],maxY:t[3]};return this.rbush_.search(e).map((function(t){return t.value}))},t.prototype.forEach=function(t){return this.forEach_(this.getAll(),t)},t.prototype.forEachInExtent=function(t,e){return this.forEach_(this.getInExtent(t),e)},t.prototype.forEach_=function(t,e){for(var n,r=0,i=t.length;r<i;r++)if(n=e(t[r]))return n;return n},t.prototype.isEmpty=function(){return(0,a.xb)(this.items_)},t.prototype.clear=function(){this.rbush_.clear(),this.items_={}},t.prototype.getExtent=function(t){var e=this.rbush_.toJSON();return(0,i.T9)(e.minX,e.minY,e.maxX,e.maxY,t)},t.prototype.concat=function(t){for(var e in this.rbush_.load(t.rbush_.all()),t.items_)this.items_[e]=t.items_[e]},t}()},5100:(t,e,n)=>{"use strict";n.r(e),n.d(e,{Circle:()=>r.Z,Fill:()=>i.Z,Icon:()=>o.Z,IconImage:()=>a.Z,Image:()=>s.Z,RegularShape:()=>l.Z,Stroke:()=>u.Z,Style:()=>c.ZP,Text:()=>h.Z});var r=n(3787),i=n(3856),o=n(5218),a=n(4668),s=n(6644),l=n(1352),u=n(2795),c=n(1457),h=n(1545)},3787:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var r,i=n(1352),o=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});const a=function(t){function e(e){var n=e||{};return t.call(this,{points:1/0,fill:n.fill,radius:n.radius,stroke:n.stroke,scale:void 0!==n.scale?n.scale:1,rotation:void 0!==n.rotation?n.rotation:0,rotateWithView:void 0!==n.rotateWithView&&n.rotateWithView,displacement:void 0!==n.displacement?n.displacement:[0,0],declutterMode:n.declutterMode})||this}return o(e,t),e.prototype.clone=function(){var t=this.getScale(),n=new e({fill:this.getFill()?this.getFill().clone():void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,radius:this.getRadius(),scale:Array.isArray(t)?t.slice():t,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()});return n.setOpacity(this.getOpacity()),n},e.prototype.setRadius=function(t){this.radius_=t,this.render()},e}(i.Z)},3856:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});const r=function(){function t(t){var e=t||{};this.color_=void 0!==e.color?e.color:null}return t.prototype.clone=function(){var e=this.getColor();return new t({color:Array.isArray(e)?e.slice():e||void 0})},t.prototype.getColor=function(){return this.color_},t.prototype.setColor=function(t){this.color_=t},t}()},5218:(t,e,n)=>{"use strict";n.d(e,{Z:()=>f});var r,i=n(2001),o=n(9589),a=n(7094),s=n(6637),l=n(6644),u=n(184),c=n(9162),h=n(4668),p=n(2637),d=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});const f=function(t){function e(e){var n=this,r=e||{},i=void 0!==r.opacity?r.opacity:1,l=void 0!==r.rotation?r.rotation:0,d=void 0!==r.scale?r.scale:1,f=void 0!==r.rotateWithView&&r.rotateWithView;(n=t.call(this,{opacity:i,rotation:l,scale:d,displacement:void 0!==r.displacement?r.displacement:[0,0],rotateWithView:f,declutterMode:r.declutterMode})||this).anchor_=void 0!==r.anchor?r.anchor:[.5,.5],n.normalizedAnchor_=null,n.anchorOrigin_=void 0!==r.anchorOrigin?r.anchorOrigin:a.Z.TOP_LEFT,n.anchorXUnits_=void 0!==r.anchorXUnits?r.anchorXUnits:o.Z.FRACTION,n.anchorYUnits_=void 0!==r.anchorYUnits?r.anchorYUnits:o.Z.FRACTION,n.crossOrigin_=void 0!==r.crossOrigin?r.crossOrigin:null;var g=void 0!==r.img?r.img:null;n.imgSize_=r.imgSize;var m=r.src;(0,c.h)(!(void 0!==m&&g),4),(0,c.h)(!g||g&&n.imgSize_,5),void 0!==m&&0!==m.length||!g||(m=g.src||(0,p.sq)(g)),(0,c.h)(void 0!==m&&m.length>0,6);var y=void 0!==r.src?s.Z.IDLE:s.Z.LOADED;return n.color_=void 0!==r.color?(0,u._2)(r.color):null,n.iconImage_=(0,h.U)(g,m,void 0!==n.imgSize_?n.imgSize_:null,n.crossOrigin_,y,n.color_),n.offset_=void 0!==r.offset?r.offset:[0,0],n.offsetOrigin_=void 0!==r.offsetOrigin?r.offsetOrigin:a.Z.TOP_LEFT,n.origin_=null,n.size_=void 0!==r.size?r.size:null,n}return d(e,t),e.prototype.clone=function(){var t=this.getScale();return new e({anchor:this.anchor_.slice(),anchorOrigin:this.anchorOrigin_,anchorXUnits:this.anchorXUnits_,anchorYUnits:this.anchorYUnits_,color:this.color_&&this.color_.slice?this.color_.slice():this.color_||void 0,crossOrigin:this.crossOrigin_,imgSize:this.imgSize_,offset:this.offset_.slice(),offsetOrigin:this.offsetOrigin_,opacity:this.getOpacity(),rotateWithView:this.getRotateWithView(),rotation:this.getRotation(),scale:Array.isArray(t)?t.slice():t,size:null!==this.size_?this.size_.slice():void 0,src:this.getSrc(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()})},e.prototype.getAnchor=function(){var t=this.normalizedAnchor_;if(!t){t=this.anchor_;var e=this.getSize();if(this.anchorXUnits_==o.Z.FRACTION||this.anchorYUnits_==o.Z.FRACTION){if(!e)return null;t=this.anchor_.slice(),this.anchorXUnits_==o.Z.FRACTION&&(t[0]*=e[0]),this.anchorYUnits_==o.Z.FRACTION&&(t[1]*=e[1])}if(this.anchorOrigin_!=a.Z.TOP_LEFT){if(!e)return null;t===this.anchor_&&(t=this.anchor_.slice()),this.anchorOrigin_!=a.Z.TOP_RIGHT&&this.anchorOrigin_!=a.Z.BOTTOM_RIGHT||(t[0]=-t[0]+e[0]),this.anchorOrigin_!=a.Z.BOTTOM_LEFT&&this.anchorOrigin_!=a.Z.BOTTOM_RIGHT||(t[1]=-t[1]+e[1])}this.normalizedAnchor_=t}var n=this.getDisplacement();return[t[0]-n[0],t[1]+n[1]]},e.prototype.setAnchor=function(t){this.anchor_=t,this.normalizedAnchor_=null},e.prototype.getColor=function(){return this.color_},e.prototype.getImage=function(t){return this.iconImage_.getImage(t)},e.prototype.getPixelRatio=function(t){return this.iconImage_.getPixelRatio(t)},e.prototype.getImageSize=function(){return this.iconImage_.getSize()},e.prototype.getImageState=function(){return this.iconImage_.getImageState()},e.prototype.getHitDetectionImage=function(){return this.iconImage_.getHitDetectionImage()},e.prototype.getOrigin=function(){if(this.origin_)return this.origin_;var t=this.offset_;if(this.offsetOrigin_!=a.Z.TOP_LEFT){var e=this.getSize(),n=this.iconImage_.getSize();if(!e||!n)return null;t=t.slice(),this.offsetOrigin_!=a.Z.TOP_RIGHT&&this.offsetOrigin_!=a.Z.BOTTOM_RIGHT||(t[0]=n[0]-e[0]-t[0]),this.offsetOrigin_!=a.Z.BOTTOM_LEFT&&this.offsetOrigin_!=a.Z.BOTTOM_RIGHT||(t[1]=n[1]-e[1]-t[1])}return this.origin_=t,this.origin_},e.prototype.getSrc=function(){return this.iconImage_.getSrc()},e.prototype.getSize=function(){return this.size_?this.size_:this.iconImage_.getSize()},e.prototype.listenImageChange=function(t){this.iconImage_.addEventListener(i.Z.CHANGE,t)},e.prototype.load=function(){this.iconImage_.load()},e.prototype.unlistenImageChange=function(t){this.iconImage_.removeEventListener(i.Z.CHANGE,t)},e}(l.Z)},9589:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});const r={FRACTION:"fraction",PIXELS:"pixels"}},4668:(t,e,n)=>{"use strict";n.d(e,{U:()=>f,Z:()=>g});var r,i=n(952),o=n(2001),a=n(6637),s=n(184),l=n(9220),u=n(823),c=n(1667),h=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),p=null,d=function(t){function e(e,n,r,i,o,a){var s=t.call(this)||this;return s.hitDetectionImage_=null,s.image_=e||new Image,null!==i&&(s.image_.crossOrigin=i),s.canvas_={},s.color_=a,s.unlisten_=null,s.imageState_=o,s.size_=r,s.src_=n,s.tainted_,s}return h(e,t),e.prototype.isTainted_=function(){if(void 0===this.tainted_&&this.imageState_===a.Z.LOADED){p||(p=(0,l.E4)(1,1)),p.drawImage(this.image_,0,0);try{p.getImageData(0,0,1,1),this.tainted_=!1}catch(t){p=null,this.tainted_=!0}}return!0===this.tainted_},e.prototype.dispatchChangeEvent_=function(){this.dispatchEvent(o.Z.CHANGE)},e.prototype.handleImageError_=function(){this.imageState_=a.Z.ERROR,this.unlistenImage_(),this.dispatchChangeEvent_()},e.prototype.handleImageLoad_=function(){this.imageState_=a.Z.LOADED,this.size_?(this.image_.width=this.size_[0],this.image_.height=this.size_[1]):this.size_=[this.image_.width,this.image_.height],this.unlistenImage_(),this.dispatchChangeEvent_()},e.prototype.getImage=function(t){return this.replaceColor_(t),this.canvas_[t]?this.canvas_[t]:this.image_},e.prototype.getPixelRatio=function(t){return this.replaceColor_(t),this.canvas_[t]?t:1},e.prototype.getImageState=function(){return this.imageState_},e.prototype.getHitDetectionImage=function(){if(!this.hitDetectionImage_)if(this.isTainted_()){var t=this.size_[0],e=this.size_[1],n=(0,l.E4)(t,e);n.fillRect(0,0,t,e),this.hitDetectionImage_=n.canvas}else this.hitDetectionImage_=this.image_;return this.hitDetectionImage_},e.prototype.getSize=function(){return this.size_},e.prototype.getSrc=function(){return this.src_},e.prototype.load=function(){if(this.imageState_==a.Z.IDLE){this.imageState_=a.Z.LOADING;try{this.image_.src=this.src_}catch(t){this.handleImageError_()}this.unlisten_=(0,c.K)(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this))}},e.prototype.replaceColor_=function(t){if(this.color_&&!this.canvas_[t]&&this.imageState_===a.Z.LOADED){var e=document.createElement("canvas");this.canvas_[t]=e,e.width=Math.ceil(this.image_.width*t),e.height=Math.ceil(this.image_.height*t);var n=e.getContext("2d");if(n.scale(t,t),n.drawImage(this.image_,0,0),n.globalCompositeOperation="multiply","multiply"===n.globalCompositeOperation||this.isTainted_())n.fillStyle=(0,s.XC)(this.color_),n.fillRect(0,0,e.width/t,e.height/t),n.globalCompositeOperation="destination-in",n.drawImage(this.image_,0,0);else{for(var r=n.getImageData(0,0,e.width,e.height),i=r.data,o=this.color_[0]/255,l=this.color_[1]/255,u=this.color_[2]/255,c=this.color_[3],h=0,p=i.length;h<p;h+=4)i[h]*=o,i[h+1]*=l,i[h+2]*=u,i[h+3]*=c;n.putImageData(r,0,0)}}},e.prototype.unlistenImage_=function(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)},e}(i.Z);function f(t,e,n,r,i,o){var a=u.c.get(e,r,o);return a||(a=new d(t,e,n,r,i,o),u.c.set(e,r,o,a)),a}const g=d},823:(t,e,n)=>{"use strict";n.d(e,{c:()=>o});var r=n(184);function i(t,e,n){return e+":"+t+":"+(n?(0,r.XC)(n):"null")}var o=new(function(){function t(){this.cache_={},this.cacheSize_=0,this.maxCacheSize_=32}return t.prototype.clear=function(){this.cache_={},this.cacheSize_=0},t.prototype.canExpireCache=function(){return this.cacheSize_>this.maxCacheSize_},t.prototype.expire=function(){if(this.canExpireCache()){var t=0;for(var e in this.cache_){var n=this.cache_[e];0!=(3&t++)||n.hasListener()||(delete this.cache_[e],--this.cacheSize_)}}},t.prototype.get=function(t,e,n){var r=i(t,e,n);return r in this.cache_?this.cache_[r]:null},t.prototype.set=function(t,e,n,r){var o=i(t,e,n);this.cache_[o]=r,++this.cacheSize_},t.prototype.setSize=function(t){this.maxCacheSize_=t,this.expire()},t}())},7094:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});const r={BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",TOP_LEFT:"top-left",TOP_RIGHT:"top-right"}},6644:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var r=n(2637),i=n(8691);const o=function(){function t(t){this.opacity_=t.opacity,this.rotateWithView_=t.rotateWithView,this.rotation_=t.rotation,this.scale_=t.scale,this.scaleArray_=(0,i.Pq)(t.scale),this.displacement_=t.displacement,this.declutterMode_=t.declutterMode}return t.prototype.clone=function(){var e=this.getScale();return new t({opacity:this.getOpacity(),scale:Array.isArray(e)?e.slice():e,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()})},t.prototype.getOpacity=function(){return this.opacity_},t.prototype.getRotateWithView=function(){return this.rotateWithView_},t.prototype.getRotation=function(){return this.rotation_},t.prototype.getScale=function(){return this.scale_},t.prototype.getScaleArray=function(){return this.scaleArray_},t.prototype.getDisplacement=function(){return this.displacement_},t.prototype.getDeclutterMode=function(){return this.declutterMode_},t.prototype.getAnchor=function(){return(0,r.O3)()},t.prototype.getImage=function(t){return(0,r.O3)()},t.prototype.getHitDetectionImage=function(){return(0,r.O3)()},t.prototype.getPixelRatio=function(t){return 1},t.prototype.getImageState=function(){return(0,r.O3)()},t.prototype.getImageSize=function(){return(0,r.O3)()},t.prototype.getOrigin=function(){return(0,r.O3)()},t.prototype.getSize=function(){return(0,r.O3)()},t.prototype.setDisplacement=function(t){this.displacement_=t},t.prototype.setOpacity=function(t){this.opacity_=t},t.prototype.setRotateWithView=function(t){this.rotateWithView_=t},t.prototype.setRotation=function(t){this.rotation_=t},t.prototype.setScale=function(t){this.scale_=t,this.scaleArray_=(0,i.Pq)(t)},t.prototype.listenImageChange=function(t){(0,r.O3)()},t.prototype.load=function(){(0,r.O3)()},t.prototype.unlistenImageChange=function(t){(0,r.O3)()},t}()},1352:(t,e,n)=>{"use strict";n.d(e,{Z:()=>h});var r,i=n(6637),o=n(6644),a=n(184),s=n(4907),l=n(9220),u=n(474),c=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});const h=function(t){function e(e){var n=this,r=void 0!==e.rotateWithView&&e.rotateWithView;return(n=t.call(this,{opacity:1,rotateWithView:r,rotation:void 0!==e.rotation?e.rotation:0,scale:void 0!==e.scale?e.scale:1,displacement:void 0!==e.displacement?e.displacement:[0,0],declutterMode:e.declutterMode})||this).canvas_=void 0,n.hitDetectionCanvas_=null,n.fill_=void 0!==e.fill?e.fill:null,n.origin_=[0,0],n.points_=e.points,n.radius_=void 0!==e.radius?e.radius:e.radius1,n.radius2_=e.radius2,n.angle_=void 0!==e.angle?e.angle:0,n.stroke_=void 0!==e.stroke?e.stroke:null,n.size_=null,n.renderOptions_=null,n.render(),n}return c(e,t),e.prototype.clone=function(){var t=this.getScale(),n=new e({fill:this.getFill()?this.getFill().clone():void 0,points:this.getPoints(),radius:this.getRadius(),radius2:this.getRadius2(),angle:this.getAngle(),stroke:this.getStroke()?this.getStroke().clone():void 0,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),scale:Array.isArray(t)?t.slice():t,displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()});return n.setOpacity(this.getOpacity()),n},e.prototype.getAnchor=function(){var t=this.size_;if(!t)return null;var e=this.getDisplacement();return[t[0]/2-e[0],t[1]/2+e[1]]},e.prototype.getAngle=function(){return this.angle_},e.prototype.getFill=function(){return this.fill_},e.prototype.setFill=function(t){this.fill_=t,this.render()},e.prototype.getHitDetectionImage=function(){return this.hitDetectionCanvas_||this.createHitDetectionCanvas_(this.renderOptions_),this.hitDetectionCanvas_},e.prototype.getImage=function(t){var e=this.canvas_[t];if(!e){var n=this.renderOptions_,r=(0,l.E4)(n.size*t,n.size*t);this.draw_(n,r,t),e=r.canvas,this.canvas_[t]=e}return e},e.prototype.getPixelRatio=function(t){return t},e.prototype.getImageSize=function(){return this.size_},e.prototype.getImageState=function(){return i.Z.LOADED},e.prototype.getOrigin=function(){return this.origin_},e.prototype.getPoints=function(){return this.points_},e.prototype.getRadius=function(){return this.radius_},e.prototype.getRadius2=function(){return this.radius2_},e.prototype.getSize=function(){return this.size_},e.prototype.getStroke=function(){return this.stroke_},e.prototype.setStroke=function(t){this.stroke_=t,this.render()},e.prototype.listenImageChange=function(t){},e.prototype.load=function(){},e.prototype.unlistenImageChange=function(t){},e.prototype.calculateLineJoinSize_=function(t,e,n){if(0===e||this.points_===1/0||"bevel"!==t&&"miter"!==t)return e;var r=this.radius_,i=void 0===this.radius2_?r:this.radius2_;if(r<i){var o=r;r=i,i=o}var a=void 0===this.radius2_?this.points_:2*this.points_,s=2*Math.PI/a,l=i*Math.sin(s),u=r-Math.sqrt(i*i-l*l),c=Math.sqrt(l*l+u*u),h=c/l;if("miter"===t&&h<=n)return h*e;var p=e/2/h,d=e/2*(u/c),f=Math.sqrt((r+p)*(r+p)+d*d)-r;if(void 0===this.radius2_||"bevel"===t)return 2*f;var g=r*Math.sin(s),m=i-Math.sqrt(r*r-g*g),y=Math.sqrt(g*g+m*m)/g;if(y<=n){var v=y*e/2-i-r;return 2*Math.max(f,v)}return 2*f},e.prototype.createRenderOptions=function(){var t,e=u.rc,n=0,r=null,i=0,o=0;this.stroke_&&(null===(t=this.stroke_.getColor())&&(t=u.Tx),t=(0,s.y)(t),void 0===(o=this.stroke_.getWidth())&&(o=u.yC),r=this.stroke_.getLineDash(),i=this.stroke_.getLineDashOffset(),void 0===(e=this.stroke_.getLineJoin())&&(e=u.rc),void 0===(n=this.stroke_.getMiterLimit())&&(n=u.V4));var a=this.calculateLineJoinSize_(e,o,n),l=Math.max(this.radius_,this.radius2_||0);return{strokeStyle:t,strokeWidth:o,size:Math.ceil(2*l+a),lineDash:r,lineDashOffset:i,lineJoin:e,miterLimit:n}},e.prototype.render=function(){this.renderOptions_=this.createRenderOptions();var t=this.renderOptions_.size;this.canvas_={},this.size_=[t,t]},e.prototype.draw_=function(t,e,n){if(e.scale(n,n),e.translate(t.size/2,t.size/2),this.createPath_(e),this.fill_){var r=this.fill_.getColor();null===r&&(r=u.bL),e.fillStyle=(0,s.y)(r),e.fill()}this.stroke_&&(e.strokeStyle=t.strokeStyle,e.lineWidth=t.strokeWidth,e.setLineDash&&t.lineDash&&(e.setLineDash(t.lineDash),e.lineDashOffset=t.lineDashOffset),e.lineJoin=t.lineJoin,e.miterLimit=t.miterLimit,e.stroke())},e.prototype.createHitDetectionCanvas_=function(t){if(this.fill_){var e=this.fill_.getColor(),n=0;if("string"==typeof e&&(e=(0,a._2)(e)),null===e?n=1:Array.isArray(e)&&(n=4===e.length?e[3]:1),0===n){var r=(0,l.E4)(t.size,t.size);this.hitDetectionCanvas_=r.canvas,this.drawHitDetectionCanvas_(t,r)}}this.hitDetectionCanvas_||(this.hitDetectionCanvas_=this.getImage(1))},e.prototype.createPath_=function(t){var e=this.points_,n=this.radius_;if(e===1/0)t.arc(0,0,n,0,2*Math.PI);else{var r=void 0===this.radius2_?n:this.radius2_;void 0!==this.radius2_&&(e*=2);for(var i=this.angle_-Math.PI/2,o=2*Math.PI/e,a=0;a<e;a++){var s=i+a*o,l=a%2==0?n:r;t.lineTo(l*Math.cos(s),l*Math.sin(s))}t.closePath()}},e.prototype.drawHitDetectionCanvas_=function(t,e){e.translate(t.size/2,t.size/2),this.createPath_(e),e.fillStyle=u.bL,e.fill(),this.stroke_&&(e.strokeStyle=t.strokeStyle,e.lineWidth=t.strokeWidth,t.lineDash&&(e.setLineDash(t.lineDash),e.lineDashOffset=t.lineDashOffset),e.lineJoin=t.lineJoin,e.miterLimit=t.miterLimit,e.stroke())},e}(o.Z)},2795:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});const r=function(){function t(t){var e=t||{};this.color_=void 0!==e.color?e.color:null,this.lineCap_=e.lineCap,this.lineDash_=void 0!==e.lineDash?e.lineDash:null,this.lineDashOffset_=e.lineDashOffset,this.lineJoin_=e.lineJoin,this.miterLimit_=e.miterLimit,this.width_=e.width}return t.prototype.clone=function(){var e=this.getColor();return new t({color:Array.isArray(e)?e.slice():e||void 0,lineCap:this.getLineCap(),lineDash:this.getLineDash()?this.getLineDash().slice():void 0,lineDashOffset:this.getLineDashOffset(),lineJoin:this.getLineJoin(),miterLimit:this.getMiterLimit(),width:this.getWidth()})},t.prototype.getColor=function(){return this.color_},t.prototype.getLineCap=function(){return this.lineCap_},t.prototype.getLineDash=function(){return this.lineDash_},t.prototype.getLineDashOffset=function(){return this.lineDashOffset_},t.prototype.getLineJoin=function(){return this.lineJoin_},t.prototype.getMiterLimit=function(){return this.miterLimit_},t.prototype.getWidth=function(){return this.width_},t.prototype.setColor=function(t){this.color_=t},t.prototype.setLineCap=function(t){this.lineCap_=t},t.prototype.setLineDash=function(t){this.lineDash_=t},t.prototype.setLineDashOffset=function(t){this.lineDashOffset_=t},t.prototype.setLineJoin=function(t){this.lineJoin_=t},t.prototype.setMiterLimit=function(t){this.miterLimit_=t},t.prototype.setWidth=function(t){this.width_=t},t}()},1457:(t,e,n)=>{"use strict";n.d(e,{J$:()=>l,Ly:()=>h,ZP:()=>d,yF:()=>c});var r=n(3787),i=n(3856),o=n(2795),a=n(9162),s=function(){function t(t){var e=t||{};this.geometry_=null,this.geometryFunction_=p,void 0!==e.geometry&&this.setGeometry(e.geometry),this.fill_=void 0!==e.fill?e.fill:null,this.image_=void 0!==e.image?e.image:null,this.renderer_=void 0!==e.renderer?e.renderer:null,this.hitDetectionRenderer_=void 0!==e.hitDetectionRenderer?e.hitDetectionRenderer:null,this.stroke_=void 0!==e.stroke?e.stroke:null,this.text_=void 0!==e.text?e.text:null,this.zIndex_=e.zIndex}return t.prototype.clone=function(){var e=this.getGeometry();return e&&"object"==typeof e&&(e=e.clone()),new t({geometry:e,fill:this.getFill()?this.getFill().clone():void 0,image:this.getImage()?this.getImage().clone():void 0,renderer:this.getRenderer(),stroke:this.getStroke()?this.getStroke().clone():void 0,text:this.getText()?this.getText().clone():void 0,zIndex:this.getZIndex()})},t.prototype.getRenderer=function(){return this.renderer_},t.prototype.setRenderer=function(t){this.renderer_=t},t.prototype.setHitDetectionRenderer=function(t){this.hitDetectionRenderer_=t},t.prototype.getHitDetectionRenderer=function(){return this.hitDetectionRenderer_},t.prototype.getGeometry=function(){return this.geometry_},t.prototype.getGeometryFunction=function(){return this.geometryFunction_},t.prototype.getFill=function(){return this.fill_},t.prototype.setFill=function(t){this.fill_=t},t.prototype.getImage=function(){return this.image_},t.prototype.setImage=function(t){this.image_=t},t.prototype.getStroke=function(){return this.stroke_},t.prototype.setStroke=function(t){this.stroke_=t},t.prototype.getText=function(){return this.text_},t.prototype.setText=function(t){this.text_=t},t.prototype.getZIndex=function(){return this.zIndex_},t.prototype.setGeometry=function(t){"function"==typeof t?this.geometryFunction_=t:"string"==typeof t?this.geometryFunction_=function(e){return e.get(t)}:t?void 0!==t&&(this.geometryFunction_=function(){return t}):this.geometryFunction_=p,this.geometry_=t},t.prototype.setZIndex=function(t){this.zIndex_=t},t}();function l(t){var e,n;"function"==typeof t?e=t:(Array.isArray(t)?n=t:((0,a.h)("function"==typeof t.getZIndex,41),n=[t]),e=function(){return n});return e}var u=null;function c(t,e){if(!u){var n=new i.Z({color:"rgba(255,255,255,0.4)"}),a=new o.Z({color:"#3399CC",width:1.25});u=[new s({image:new r.Z({fill:n,stroke:a,radius:5}),fill:n,stroke:a})]}return u}function h(){var t={},e=[255,255,255,1],n=[0,153,255,1];return t.Polygon=[new s({fill:new i.Z({color:[255,255,255,.5]})})],t.MultiPolygon=t.Polygon,t.LineString=[new s({stroke:new o.Z({color:e,width:5})}),new s({stroke:new o.Z({color:n,width:3})})],t.MultiLineString=t.LineString,t.Circle=t.Polygon.concat(t.LineString),t.Point=[new s({image:new r.Z({radius:6,fill:new i.Z({color:n}),stroke:new o.Z({color:e,width:1.5})}),zIndex:1/0})],t.MultiPoint=t.Point,t.GeometryCollection=t.Polygon.concat(t.LineString,t.Point),t}function p(t){return t.getGeometry()}const d=s},1545:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var r=n(3856),i=n(5275),o=n(8691);const a=function(){function t(t){var e=t||{};this.font_=e.font,this.rotation_=e.rotation,this.rotateWithView_=e.rotateWithView,this.scale_=e.scale,this.scaleArray_=(0,o.Pq)(void 0!==e.scale?e.scale:1),this.text_=e.text,this.textAlign_=e.textAlign,this.justify_=e.justify,this.textBaseline_=e.textBaseline,this.fill_=void 0!==e.fill?e.fill:new r.Z({color:"#333"}),this.maxAngle_=void 0!==e.maxAngle?e.maxAngle:Math.PI/4,this.placement_=void 0!==e.placement?e.placement:i.Z.POINT,this.overflow_=!!e.overflow,this.stroke_=void 0!==e.stroke?e.stroke:null,this.offsetX_=void 0!==e.offsetX?e.offsetX:0,this.offsetY_=void 0!==e.offsetY?e.offsetY:0,this.backgroundFill_=e.backgroundFill?e.backgroundFill:null,this.backgroundStroke_=e.backgroundStroke?e.backgroundStroke:null,this.padding_=void 0===e.padding?null:e.padding}return t.prototype.clone=function(){var e=this.getScale();return new t({font:this.getFont(),placement:this.getPlacement(),maxAngle:this.getMaxAngle(),overflow:this.getOverflow(),rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),scale:Array.isArray(e)?e.slice():e,text:this.getText(),textAlign:this.getTextAlign(),justify:this.getJustify(),textBaseline:this.getTextBaseline(),fill:this.getFill()?this.getFill().clone():void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,offsetX:this.getOffsetX(),offsetY:this.getOffsetY(),backgroundFill:this.getBackgroundFill()?this.getBackgroundFill().clone():void 0,backgroundStroke:this.getBackgroundStroke()?this.getBackgroundStroke().clone():void 0,padding:this.getPadding()||void 0})},t.prototype.getOverflow=function(){return this.overflow_},t.prototype.getFont=function(){return this.font_},t.prototype.getMaxAngle=function(){return this.maxAngle_},t.prototype.getPlacement=function(){return this.placement_},t.prototype.getOffsetX=function(){return this.offsetX_},t.prototype.getOffsetY=function(){return this.offsetY_},t.prototype.getFill=function(){return this.fill_},t.prototype.getRotateWithView=function(){return this.rotateWithView_},t.prototype.getRotation=function(){return this.rotation_},t.prototype.getScale=function(){return this.scale_},t.prototype.getScaleArray=function(){return this.scaleArray_},t.prototype.getStroke=function(){return this.stroke_},t.prototype.getText=function(){return this.text_},t.prototype.getTextAlign=function(){return this.textAlign_},t.prototype.getJustify=function(){return this.justify_},t.prototype.getTextBaseline=function(){return this.textBaseline_},t.prototype.getBackgroundFill=function(){return this.backgroundFill_},t.prototype.getBackgroundStroke=function(){return this.backgroundStroke_},t.prototype.getPadding=function(){return this.padding_},t.prototype.setOverflow=function(t){this.overflow_=t},t.prototype.setFont=function(t){this.font_=t},t.prototype.setMaxAngle=function(t){this.maxAngle_=t},t.prototype.setOffsetX=function(t){this.offsetX_=t},t.prototype.setOffsetY=function(t){this.offsetY_=t},t.prototype.setPlacement=function(t){this.placement_=t},t.prototype.setRotateWithView=function(t){this.rotateWithView_=t},t.prototype.setFill=function(t){this.fill_=t},t.prototype.setRotation=function(t){this.rotation_=t},t.prototype.setScale=function(t){this.scale_=t,this.scaleArray_=(0,o.Pq)(void 0!==t?t:1)},t.prototype.setStroke=function(t){this.stroke_=t},t.prototype.setText=function(t){this.text_=t},t.prototype.setTextAlign=function(t){this.textAlign_=t},t.prototype.setJustify=function(t){this.justify_=t},t.prototype.setTextBaseline=function(t){this.textBaseline_=t},t.prototype.setBackgroundFill=function(t){this.backgroundFill_=t},t.prototype.setBackgroundStroke=function(t){this.backgroundStroke_=t},t.prototype.setPadding=function(t){this.padding_=t},t}()},5275:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});const r={POINT:"point",LINE:"line"}},9465:(t,e,n)=>{"use strict";function r(t,e,n,r){return void 0!==r?(r[0]=t,r[1]=e,r[2]=n,r):[t,e,n]}function i(t,e,n){return t+"/"+e+"/"+n}function o(t){return i(t[0],t[1],t[2])}function a(t){var e=t.substring(t.lastIndexOf("/")+1,t.length).split(",").map(Number);return i(e[0],e[1],e[2])}function s(t){return t.split("/").map(Number)}function l(t){return(t[1]<<t[0])+t[2]}function u(t,e){var n=t[0],r=t[1],i=t[2];if(e.getMinZoom()>n||n>e.getMaxZoom())return!1;var o=e.getFullTileRange(n);return!o||o.containsXY(r,i)}n.d(e,{MY:()=>a,T9:()=>r,Ul:()=>s,km:()=>o,lg:()=>i,tE:()=>u,vp:()=>l})},5035:(t,e,n)=>{"use strict";n.d(e,{Cf:()=>c,Tl:()=>d,X$:()=>u,dl:()=>h});var r=n(8948),i=n(2418),o=n(591),a=n(6162),s=n(6596),l=n(8691);function u(t){var e=t.getDefaultTileGrid();return e||(e=function(t,e,n,i){return function(t,e,n,i){var o=p(t,undefined,n);return new r.Z({extent:t,origin:(0,s.g0)(t,"top-left"),resolutions:o,tileSize:n})}(d(t),0,void 0)}(t),t.setDefaultTileGrid(e)),e}function c(t,e,n){var r=e[0],i=t.getTileCoordCenter(e),o=d(n);if((0,s.b8)(o,i))return e;var a=(0,s.dz)(o),l=Math.ceil((o[0]-i[0])/a);return i[0]+=a*l,t.getTileCoordForCoordAndZ(i,r)}function h(t){var e=t||{},n=e.extent||(0,a.get)("EPSG:3857").getExtent(),i={extent:n,minZoom:e.minZoom,tileSize:e.tileSize,resolutions:p(n,e.maxZoom,e.tileSize,e.maxResolution)};return new r.Z(i)}function p(t,e,n,r){for(var i=void 0!==e?e:o.e,a=(0,s.Cr)(t),u=(0,s.dz)(t),c=(0,l.Pq)(void 0!==n?n:o.S),h=r>0?r:Math.max(u/c[0],a/c[1]),p=i+1,d=new Array(p),f=0;f<p;++f)d[f]=h/Math.pow(2,f);return d}function d(t){var e=(t=(0,a.get)(t)).getExtent();if(!e){var n=180*a.METERS_PER_UNIT[i.ZP.DEGREES]/t.getMetersPerUnit();e=(0,s.T9)(-n,-n,n,n)}return e}},8948:(t,e,n)=>{"use strict";n.d(e,{Z:()=>d});var r=n(6462),i=n(591),o=n(9162),a=n(8007),s=n(6596),l=n(9465),u=n(7419),c=n(2182),h=n(8691),p=[0,0,0];const d=function(){function t(t){var e;if(this.minZoom=void 0!==t.minZoom?t.minZoom:0,this.resolutions_=t.resolutions,(0,o.h)((0,c.pT)(this.resolutions_,(function(t,e){return e-t}),!0),17),!t.origins)for(var n=0,a=this.resolutions_.length-1;n<a;++n)if(e){if(this.resolutions_[n]/this.resolutions_[n+1]!==e){e=void 0;break}}else e=this.resolutions_[n]/this.resolutions_[n+1];this.zoomFactor_=e,this.maxZoom=this.resolutions_.length-1,this.origin_=void 0!==t.origin?t.origin:null,this.origins_=null,void 0!==t.origins&&(this.origins_=t.origins,(0,o.h)(this.origins_.length==this.resolutions_.length,20));var l=t.extent;void 0===l||this.origin_||this.origins_||(this.origin_=(0,s.rL)(l)),(0,o.h)(!this.origin_&&this.origins_||this.origin_&&!this.origins_,18),this.tileSizes_=null,void 0!==t.tileSizes&&(this.tileSizes_=t.tileSizes,(0,o.h)(this.tileSizes_.length==this.resolutions_.length,19)),this.tileSize_=void 0!==t.tileSize?t.tileSize:this.tileSizes_?null:i.S,(0,o.h)(!this.tileSize_&&this.tileSizes_||this.tileSize_&&!this.tileSizes_,22),this.extent_=void 0!==l?l:null,this.fullTileRanges_=null,this.tmpSize_=[0,0],this.tmpExtent_=[0,0,0,0],void 0!==t.sizes?this.fullTileRanges_=t.sizes.map((function(t,e){var n=new r.Z(Math.min(0,t[0]),Math.max(t[0]-1,-1),Math.min(0,t[1]),Math.max(t[1]-1,-1));if(l){var i=this.getTileRangeForExtentAndZ(l,e);n.minX=Math.max(i.minX,n.minX),n.maxX=Math.min(i.maxX,n.maxX),n.minY=Math.max(i.minY,n.minY),n.maxY=Math.min(i.maxY,n.maxY)}return n}),this):l&&this.calculateTileRanges_(l)}return t.prototype.forEachTileCoord=function(t,e,n){for(var r=this.getTileRangeForExtentAndZ(t,e),i=r.minX,o=r.maxX;i<=o;++i)for(var a=r.minY,s=r.maxY;a<=s;++a)n([e,i,a])},t.prototype.forEachTileCoordParentTileRange=function(t,e,n,i){var o,a,s,l=null,u=t[0]-1;for(2===this.zoomFactor_?(a=t[1],s=t[2]):l=this.getTileCoordExtent(t,i);u>=this.minZoom;){if(2===this.zoomFactor_?(a=Math.floor(a/2),s=Math.floor(s/2),o=(0,r.T)(a,a,s,s,n)):o=this.getTileRangeForExtentAndZ(l,u,n),e(u,o))return!0;--u}return!1},t.prototype.getExtent=function(){return this.extent_},t.prototype.getMaxZoom=function(){return this.maxZoom},t.prototype.getMinZoom=function(){return this.minZoom},t.prototype.getOrigin=function(t){return this.origin_?this.origin_:this.origins_[t]},t.prototype.getResolution=function(t){return this.resolutions_[t]},t.prototype.getResolutions=function(){return this.resolutions_},t.prototype.getTileCoordChildTileRange=function(t,e,n){if(t[0]<this.maxZoom){if(2===this.zoomFactor_){var i=2*t[1],o=2*t[2];return(0,r.T)(i,i+1,o,o+1,e)}var a=this.getTileCoordExtent(t,n||this.tmpExtent_);return this.getTileRangeForExtentAndZ(a,t[0]+1,e)}return null},t.prototype.getTileRangeForTileCoordAndZ=function(t,e,n){if(e>this.maxZoom||e<this.minZoom)return null;var i=t[0],o=t[1],a=t[2];if(e===i)return(0,r.T)(o,a,o,a,n);if(this.zoomFactor_){var s=Math.pow(this.zoomFactor_,e-i),l=Math.floor(o*s),u=Math.floor(a*s);if(e<i)return(0,r.T)(l,l,u,u,n);var c=Math.floor(s*(o+1))-1,h=Math.floor(s*(a+1))-1;return(0,r.T)(l,c,u,h,n)}var p=this.getTileCoordExtent(t,this.tmpExtent_);return this.getTileRangeForExtentAndZ(p,e,n)},t.prototype.getTileRangeExtent=function(t,e,n){var r=this.getOrigin(t),i=this.getResolution(t),o=(0,h.Pq)(this.getTileSize(t),this.tmpSize_),a=r[0]+e.minX*o[0]*i,l=r[0]+(e.maxX+1)*o[0]*i,u=r[1]+e.minY*o[1]*i,c=r[1]+(e.maxY+1)*o[1]*i;return(0,s.T9)(a,u,l,c,n)},t.prototype.getTileRangeForExtentAndZ=function(t,e,n){var i=p;this.getTileCoordForXYAndZ_(t[0],t[3],e,!1,i);var o=i[1],a=i[2];return this.getTileCoordForXYAndZ_(t[2],t[1],e,!0,i),(0,r.T)(o,i[1],a,i[2],n)},t.prototype.getTileCoordCenter=function(t){var e=this.getOrigin(t[0]),n=this.getResolution(t[0]),r=(0,h.Pq)(this.getTileSize(t[0]),this.tmpSize_);return[e[0]+(t[1]+.5)*r[0]*n,e[1]-(t[2]+.5)*r[1]*n]},t.prototype.getTileCoordExtent=function(t,e){var n=this.getOrigin(t[0]),r=this.getResolution(t[0]),i=(0,h.Pq)(this.getTileSize(t[0]),this.tmpSize_),o=n[0]+t[1]*i[0]*r,a=n[1]-(t[2]+1)*i[1]*r,l=o+i[0]*r,u=a+i[1]*r;return(0,s.T9)(o,a,l,u,e)},t.prototype.getTileCoordForCoordAndResolution=function(t,e,n){return this.getTileCoordForXYAndResolution_(t[0],t[1],e,!1,n)},t.prototype.getTileCoordForXYAndResolution_=function(t,e,n,r,i){var o=this.getZForResolution(n),s=n/this.getResolution(o),u=this.getOrigin(o),c=(0,h.Pq)(this.getTileSize(o),this.tmpSize_),p=s*(t-u[0])/n/c[0],d=s*(u[1]-e)/n/c[1];return r?(p=(0,a.mD)(p,5)-1,d=(0,a.mD)(d,5)-1):(p=(0,a.GW)(p,5),d=(0,a.GW)(d,5)),(0,l.T9)(o,p,d,i)},t.prototype.getTileCoordForXYAndZ_=function(t,e,n,r,i){var o=this.getOrigin(n),s=this.getResolution(n),u=(0,h.Pq)(this.getTileSize(n),this.tmpSize_),c=(t-o[0])/s/u[0],p=(o[1]-e)/s/u[1];return r?(c=(0,a.mD)(c,5)-1,p=(0,a.mD)(p,5)-1):(c=(0,a.GW)(c,5),p=(0,a.GW)(p,5)),(0,l.T9)(n,c,p,i)},t.prototype.getTileCoordForCoordAndZ=function(t,e,n){return this.getTileCoordForXYAndZ_(t[0],t[1],e,!1,n)},t.prototype.getTileCoordResolution=function(t){return this.resolutions_[t[0]]},t.prototype.getTileSize=function(t){return this.tileSize_?this.tileSize_:this.tileSizes_[t]},t.prototype.getFullTileRange=function(t){return this.fullTileRanges_?this.fullTileRanges_[t]:this.extent_?this.getTileRangeForExtentAndZ(this.extent_,t):null},t.prototype.getZForResolution=function(t,e){var n=(0,c.h7)(this.resolutions_,t,e||0);return(0,a.uZ)(n,this.minZoom,this.maxZoom)},t.prototype.tileCoordIntersectsViewport=function(t,e){return(0,u.mV)(e,0,e.length,2,this.getTileCoordExtent(t))},t.prototype.calculateTileRanges_=function(t){for(var e=this.resolutions_.length,n=new Array(e),r=this.minZoom;r<e;++r)n[r]=this.getTileRangeForExtentAndZ(t,r);this.fullTileRanges_=n},t}()},591:(t,e,n)=>{"use strict";n.d(e,{S:()=>i,e:()=>r});var r=42,i=256},9759:(t,e,n)=>{"use strict";n.d(e,{Gk:()=>c,Un:()=>l,uR:()=>s,vU:()=>u});var r=n(9162),i=n(8007),o=n(9465);function a(t,e){var n=/\{z\}/g,i=/\{x\}/g,o=/\{y\}/g,a=/\{-y\}/g;return function(s,l,u){return s?t.replace(n,s[0].toString()).replace(i,s[1].toString()).replace(o,s[2].toString()).replace(a,(function(){var t=s[0],n=e.getFullTileRange(t);return(0,r.h)(n,55),(n.getHeight()-s[2]-1).toString()})):void 0}}function s(t,e){for(var n=t.length,r=new Array(n),i=0;i<n;++i)r[i]=a(t[i],e);return l(r)}function l(t){return 1===t.length?t[0]:function(e,n,r){if(e){var a=(0,o.vp)(e),s=(0,i.$W)(a,t.length);return t[s](e,n,r)}}}function u(t,e,n){}function c(t){var e=[],n=/\{([a-z])-([a-z])\}/.exec(t);if(n){var r=n[1].charCodeAt(0),i=n[2].charCodeAt(0),o=void 0;for(o=r;o<=i;++o)e.push(t.replace(n[0],String.fromCharCode(o)));return e}if(n=/\{(\d+)-(\d+)\}/.exec(t)){for(var a=parseInt(n[2],10),s=parseInt(n[1],10);s<=a;s++)e.push(t.replace(n[0],s.toString()));return e}return e.push(t),e}},1091:(t,e,n)=>{"use strict";n.d(e,{BB:()=>v,Iu:()=>g,Jp:()=>u,Ue:()=>s,bA:()=>d,lk:()=>h,mc:()=>l,n3:()=>f,nb:()=>y,nn:()=>p,qC:()=>m});var r,i=n(7119),o=n(9162),a=new Array(6);function s(){return[1,0,0,1,0,0]}function l(t){return c(t,1,0,0,1,0,0)}function u(t,e){var n=t[0],r=t[1],i=t[2],o=t[3],a=t[4],s=t[5],l=e[0],u=e[1],c=e[2],h=e[3],p=e[4],d=e[5];return t[0]=n*l+i*u,t[1]=r*l+o*u,t[2]=n*c+i*h,t[3]=r*c+o*h,t[4]=n*p+i*d+a,t[5]=r*p+o*d+s,t}function c(t,e,n,r,i,o,a){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=o,t[5]=a,t}function h(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function p(t,e){var n=e[0],r=e[1];return e[0]=t[0]*n+t[2]*r+t[4],e[1]=t[1]*n+t[3]*r+t[5],e}function d(t,e,n){return u(t,c(a,e,0,0,n,0,0))}function f(t,e,n){return c(t,e,0,0,n,0,0)}function g(t,e,n){return u(t,c(a,1,0,0,1,e,n))}function m(t,e,n,r,i,o,a,s){var l=Math.sin(o),u=Math.cos(o);return t[0]=r*u,t[1]=i*l,t[2]=-r*l,t[3]=i*u,t[4]=a*r*u-s*r*l+e,t[5]=a*i*l+s*i*u+n,t}function y(t,e){var n,r=(n=e)[0]*n[3]-n[1]*n[2];(0,o.h)(0!==r,32);var i=e[0],a=e[1],s=e[2],l=e[3],u=e[4],c=e[5];return t[0]=l/r,t[1]=-a/r,t[2]=-s/r,t[3]=i/r,t[4]=(s*c-l*u)/r,t[5]=-(i*c-a*u)/r,t}function v(t){var e="matrix("+t.join(", ")+")";if(i.Id)return e;var n=r||(r=document.createElement("div"));return n.style.transform=e,n.style.transform}},2637:(t,e,n)=>{"use strict";function r(){return function(){throw new Error("Unimplemented abstract method.")}()}n.d(e,{O3:()=>r,q4:()=>a,sq:()=>o});var i=0;function o(t){return t.ol_uid||(t.ol_uid=String(++i))}var a="6.15.1"},4238:t=>{"use strict";t.exports=JSON.parse('{"en_US":{"total_ascend":"%1$s total ascent","total_descend":"%1$s total descent","way_contains_ford":"Route includes fords","way_contains_ferry":"Route includes ferries","way_contains_private":"Route with private roads","way_contains_toll":"Route has tolls","way_crosses_border":"Route crosses a country border","way_contains":"Route includes %1$s","tracks":"unpaved dirt roads","steps":"steps","start_label":"Start","intermediate_label":"Intermediate","end_label":"End","set_start":"From here","set_intermediate":"Via point","set_end":"To here","center_map":"Center map","show_coords":"Show coordinates","query_osm":"Query OSM","route":"Route","add_to_route":"Add Location","delete_from_route":"Delete from Route","open_custom_model_box":"Open custom model box","help_custom_model":"Help","apply_custom_model":"Apply","exclude_motorway_example":"Exclude Motorway","limit_speed_example":"Limit Speed","exclude_area_example":"Exclude Area","combined_example":"Combined Example","examples_custom_model":"Examples","marker":"Marker","gh_offline_info":"GraphHopper API offline?","refresh_button":"Refresh page","server_status":"Status","zoom_in":"Zoom in","zoom_out":"Zoom out","drag_to_reorder":"Drag to reorder","route_timed_out":"Route calculation timed out","route_request_failed":"Route request failed","current_location":"Current Location","searching_location":"Searching location","searching_location_failed":"Searching location failed","via_hint":"Via","from_hint":"From","gpx_export_button":"GPX Export","gpx_button":"GPX","hide_button":"Hide","details_button":"Details","to_hint":"To","route_info":"%1$s will take %2$s","search_button":"Search","more_button":"more","pt_route_info":"arrives at %1$s with %2$s transfers (%3$s)","pt_route_info_walking":"arrives at %1$s with just walking (%2$s)","locations_not_found":"Routing not possible. Location(s) not found in the area.","search_with_nominatim":"Search with Nominatim","powered_by":"Powered by","bike":"Bike","racingbike":"Racing Bike","mtb":"MTB","car":"Car","foot":"Foot","hike":"Hike","small_truck":"Small Truck","bus":"Bus","truck":"Truck","staticlink":"static link","motorcycle":"Motorcycle","back_to_map":"Back","distance_unit":"Distances are in %1$s"},"ar":{"total_ascend":"%1$s اجمالى صعود","total_descend":"%1$s اجمالى نزول","way_contains_ford":"انتبه ، هناك مخاضة على الطريق","way_contains_ferry":"استخدم العبارة","way_contains_private":"طريق خاص","way_contains_toll":"طريق برسم عبور","way_crosses_border":"","way_contains":"","tracks":"","steps":"","start_label":"البداية","intermediate_label":"نقطة عبور","end_label":"النهاية","set_start":"ادخل نقطة بدء","set_intermediate":"ادخل نقطة عبور","set_end":"ادخل نقطة وصول","center_map":"اجعل وسط الخريطة هنا","show_coords":"اظهر الاحداثيات","query_osm":"","route":"المسار","add_to_route":"","delete_from_route":"احذف من المسار","open_custom_model_box":"","help_custom_model":"","apply_custom_model":"","exclude_motorway_example":"","limit_speed_example":"","exclude_area_example":"","combined_example":"","examples_custom_model":"","marker":"رمز او علامة","gh_offline_info":" واجهة برمجة التطبيقات (API) بلا اتصال؟","refresh_button":"اعادة تنشيط","server_status":"الحالة","zoom_in":"تكبير","zoom_out":"تصغير","drag_to_reorder":"اسحب لاعادة الترتيب","route_timed_out":"","route_request_failed":"","current_location":"","searching_location":"","searching_location_failed":"","via_hint":"خلال","from_hint":"من","gpx_export_button":"GPX التصدير","gpx_button":"","hide_button":"","details_button":"","to_hint":"إلي","route_info":"%1$s ستاخذ %2$s","search_button":"ابحث","more_button":"المزيد","pt_route_info":"وصول سعت %1$s مع %2$s انتقال (%3$s)","pt_route_info_walking":"الوصول عند %1$s مشياً (%2$s)","locations_not_found":"لا يوجد طريق من هذه المنطقة","search_with_nominatim":"","powered_by":"","bike":"دراجة","racingbike":"دراجة سباق","mtb":"دراجة جبلية","car":"سيارة","foot":"مشياً","hike":"نزهة","small_truck":"شاحنة صغيرة","bus":"باص","truck":"شاحنة","staticlink":"رابط ثابت","motorcycle":"دراجة نارية","back_to_map":"","distance_unit":""},"ast":{"total_ascend":"%1$s d\'ascensu total","total_descend":"%1$s de descensu total","way_contains_ford":"hai un vau nel camín","way_contains_ferry":"","way_contains_private":"","way_contains_toll":"","way_crosses_border":"","way_contains":"","tracks":"","steps":"","start_label":"Principiu","intermediate_label":"Intermediu","end_label":"Final","set_start":"Poner como principiu","set_intermediate":"Poner como intermediu","set_end":"Poner como final","center_map":"Centrar el mapa equí","show_coords":"Ver coordenaes","query_osm":"","route":"Ruta","add_to_route":"","delete_from_route":"Quitar de la ruta","open_custom_model_box":"","help_custom_model":"","apply_custom_model":"","exclude_motorway_example":"","limit_speed_example":"","exclude_area_example":"","combined_example":"","examples_custom_model":"","marker":"Marcador","gh_offline_info":"¿Cayó la API de GraphHopper?","refresh_button":"Refrescar la páxina","server_status":"Estáu","zoom_in":"Averar","zoom_out":"Alloñar","drag_to_reorder":"Abasnar pa cambiar l\'orde","route_timed_out":"","route_request_failed":"","current_location":"","searching_location":"","searching_location_failed":"","via_hint":"Pasando per","from_hint":"Dende","gpx_export_button":"Esportar GPX","gpx_button":"","hide_button":"","details_button":"","to_hint":"Fasta","route_info":"%1$s tardaràs %2$s","search_button":"Buscar","more_button":"más","pt_route_info":"llegada a les %1$s con %2$s tresbordos (%3$s)","pt_route_info_walking":"llegada a les %1$s sólo caminando (%2$s)","locations_not_found":"Nun se puede trazar una ruta. Dalgún llugar nun s\'alcuentra nel área","search_with_nominatim":"","powered_by":"","bike":"Bicicleta","racingbike":"Bici de carreres","mtb":"Bici de montaña","car":"Coche","foot":"A pie","hike":"Senderismu","small_truck":"Camioneta","bus":"Autobús","truck":"Camión","staticlink":"enllaz estáticu","motorcycle":"Motocicleta","back_to_map":"","distance_unit":""},"bg":{"total_ascend":"%1$s общо изкачване","total_descend":"%1$s общо слизане","way_contains_ford":"Внимание, на пътя има брод","way_contains_ferry":"вземете ферибота","way_contains_private":"частен път","way_contains_toll":"път с такса","way_crosses_border":"","way_contains":"","tracks":"","steps":"","start_label":"Начална точка","intermediate_label":"Междинна точка","end_label":"Крайна точка","set_start":"Избиране като начална точка","set_intermediate":"Избиране като междинна точка","set_end":"Избиране като крайна точка","center_map":"Центриране на картата тук","show_coords":"Показване на координатите","query_osm":"","route":"Маршрут","add_to_route":"","delete_from_route":"Премахване от маршрута","open_custom_model_box":"","help_custom_model":"","apply_custom_model":"","exclude_motorway_example":"","limit_speed_example":"","exclude_area_example":"","combined_example":"","examples_custom_model":"","marker":"Значка","gh_offline_info":"ППИ на GraphHopper е без мрежа?","refresh_button":"Презареждане на страницата","server_status":"Състояние","zoom_in":"Увеличаване","zoom_out":"Намаляване","drag_to_reorder":"Влачете за преподреждане","route_timed_out":"Времето за изчисляване на маршрут изтече","route_request_failed":"Заявката за маршрут е неуспешна","current_location":"Текущо местоположение","searching_location":"","searching_location_failed":"","via_hint":"През","from_hint":"От","gpx_export_button":"Изнасяне като GPX","gpx_button":"","hide_button":"","details_button":"","to_hint":"До","route_info":"%1$s ще отнемат %2$s","search_button":"Търсене","more_button":"повече","pt_route_info":"пристига в %1$s с %2$s прекачвания (%3$s)","pt_route_info_walking":"пристига в %1$s само с ходене (%2$s)","locations_not_found":"Не са изтеглени упътвания. Търсеното местоположение не е открито.","search_with_nominatim":"","powered_by":"","bike":"Велосипед","racingbike":"Състезателно колело","mtb":"Планинско колело","car":"Автомобил","foot":"Пеша","hike":"Планински преход","small_truck":"Малък камион","bus":"Автобус","truck":"Камион","staticlink":"Постоянна препратка","motorcycle":"Мотоциклет","back_to_map":"","distance_unit":""},"bn_BN":{"total_ascend":"","total_descend":"","way_contains_ford":"","way_contains_ferry":"","way_contains_private":"","way_contains_toll":"","way_crosses_border":"","way_contains":"","tracks":"","steps":"","start_label":"","intermediate_label":"","end_label":"","set_start":"","set_intermediate":"","set_end":"","center_map":"","show_coords":"","query_osm":"","route":"","add_to_route":"","delete_from_route":"","open_custom_model_box":"","help_custom_model":"","apply_custom_model":"","exclude_motorway_example":"","limit_speed_example":"","exclude_area_example":"","combined_example":"","examples_custom_model":"","marker":"","gh_offline_info":"","refresh_button":"","server_status":"","zoom_in":"","zoom_out":"","drag_to_reorder":"","route_timed_out":"","route_request_failed":"","current_location":"","searching_location":"","searching_location_failed":"","via_hint":"","from_hint":"","gpx_export_button":"","gpx_button":"","hide_button":"","details_button":"","to_hint":"","route_info":"","search_button":"","more_button":"","pt_route_info":"","pt_route_info_walking":"","locations_not_found":"","search_with_nominatim":"","powered_by":"","bike":"","racingbike":"","mtb":"","car":"","foot":"","hike":"","small_truck":"","bus":"","truck":"","staticlink":"","motorcycle":"","back_to_map":"","distance_unit":""},"ca":{"total_ascend":"%1$s de pujada total","total_descend":"%1$s de baixada total","way_contains_ford":"hi ha un gual en el camí","way_contains_ferry":"Agafa el ferri","way_contains_private":"camí privat","way_contains_toll":"via de peatge","way_crosses_border":"","way_contains":"","tracks":"","steps":"","start_label":"Punt d\'inici","intermediate_label":"Punt intermig","end_label":"Punt final","set_start":"Defineix com a punt d\'inici","set_intermediate":"Defineix com a punt intermig","set_end":"Defineix com a punt final","center_map":"Centra el mapa","show_coords":"Mostra les coordenades","query_osm":"","route":"Ruta","add_to_route":"","delete_from_route":"Suprimeix el punt de la ruta","open_custom_model_box":"","help_custom_model":"","apply_custom_model":"","exclude_motorway_example":"","limit_speed_example":"","exclude_area_example":"","combined_example":"","examples_custom_model":"","marker":"Marcador","gh_offline_info":"L\'API GraphHopper no té connexió ?","refresh_button":"Actualitza la pàgina","server_status":"Estat","zoom_in":"Apropa","zoom_out":"Allunya","drag_to_reorder":"Arrossega per canviar l\'ordre","route_timed_out":"S\'ha esgotat el temps de càlcul de la ruta","route_request_failed":"Ha fallat la resolució de la ruta.","current_location":"","searching_location":"","searching_location_failed":"","via_hint":"Passant per","from_hint":"Des de","gpx_export_button":"Exporta a GPX","gpx_button":"","hide_button":"","details_button":"","to_hint":"Cap a","route_info":"%1$s trigaràs %2$s","search_button":"Cerca","more_button":"més","pt_route_info":"arriba a les %1$s amb %2$s transbordaments (%3$s)","pt_route_info_walking":"arriba caminant a les %1$s (%2$s)","locations_not_found":"No hi ha cap ruta. El destí no es troba dins l\'àrea.","search_with_nominatim":"","powered_by":"","bike":"Bicicleta","racingbike":"Bicicleta de curses","mtb":"Bicicleta de muntanya","car":"Cotxe","foot":"A peu","hike":"Senderisme","small_truck":"Camioneta","bus":"Autobús","truck":"Camió","staticlink":"Enllaç","motorcycle":"Motocicleta","back_to_map":"","distance_unit":""},"cs_CZ":{"total_ascend":"Celkové stoupání %1$s","total_descend":"Celkové klesání %1$s","way_contains_ford":"na cestě je brod","way_contains_ferry":"","way_contains_private":"","way_contains_toll":"","way_crosses_border":"","way_contains":"","tracks":"","steps":"","start_label":"Start","intermediate_label":"Zastávka","end_label":"Cíl","set_start":"Nastavit jako start","set_intermediate":"Nastavit jako zastávku","set_end":"Nastavit jako cíl","center_map":"Vycentrovat sem mapu","show_coords":"Zobrazit souřadnice","query_osm":"","route":"Trasa","add_to_route":"","delete_from_route":"Odstranit z trasy","open_custom_model_box":"","help_custom_model":"","apply_custom_model":"","exclude_motorway_example":"","limit_speed_example":"","exclude_area_example":"","combined_example":"","examples_custom_model":"","marker":"Značka","gh_offline_info":"API GraphHopper je offline?","refresh_button":"Obnovit stránku","server_status":"Stav","zoom_in":"Přiblížit","zoom_out":"Oddálit","drag_to_reorder":"Přetažením změníte pořadí","route_timed_out":"","route_request_failed":"","current_location":"","searching_location":"","searching_location_failed":"","via_hint":"Přes ","from_hint":"Z","gpx_export_button":"Export do GPX","gpx_button":"","hide_button":"","details_button":"","to_hint":"Do","route_info":"%1$s bude trvat %2$s","search_button":"Vyhledat","more_button":"více","pt_route_info":"dorazí v %1$s, %2$s přestup(y) (%3$s) ","pt_route_info_walking":"dorazí v %1$s (%2$s)","locations_not_found":"Navigování není dostupné. Pozice nenalezena v této oblasti.","search_with_nominatim":"","powered_by":"","bike":"Kolo","racingbike":"Závodní kolo","mtb":"Horské kolo","car":"Automobil","foot":"Pěšky","hike":"Turistika","small_truck":"Dodávka","bus":"Autobus","truck":"Nákladní automobil","staticlink":"neměnný odkaz","motorcycle":"Motocykl","back_to_map":"","distance_unit":""},"da_DK":{"total_ascend":"%1$s samlet stigning","total_descend":"%1$s samlet fald","way_contains_ford":"der er et vadested undervejs","way_contains_ferry":"","way_contains_private":"","way_contains_toll":"","way_crosses_border":"","way_contains":"","tracks":"","steps":"","start_label":"Start","intermediate_label":"Via","end_label":"Mål","set_start":"Sæt som start","set_intermediate":"Sæt via","set_end":"Sæt som mål","center_map":"Centrer kort her","show_coords":"Vis koordinater","query_osm":"","route":"Rute","add_to_route":"","delete_from_route":"Fjern fra rute","open_custom_model_box":"","help_custom_model":"","apply_custom_model":"","exclude_motorway_example":"","limit_speed_example":"","exclude_area_example":"","combined_example":"","examples_custom_model":"","marker":"Markør","gh_offline_info":"Er GraphHopper API offline?","refresh_button":"Genindlæs siden","server_status":"Status","zoom_in":"Zoom ind","zoom_out":"Zoom ud","drag_to_reorder":"Træk for at ændre rækkefølgen","route_timed_out":"","route_request_failed":"","current_location":"","searching_location":"","searching_location_failed":"","via_hint":"Via","from_hint":"Fra ","gpx_export_button":"Eksportér GPX-fil","gpx_button":"","hide_button":"","details_button":"","to_hint":"Til","route_info":"%1$s med køretid %2$s","search_button":"Søg","more_button":"mere","pt_route_info":"ankommer %1$s med %2$s omstigninger (%3$s)","pt_route_info_walking":"ankommer til fods %1$s (%2$s)","locations_not_found":"Kan ikke beregne ruten. Lokation(erne) kan ikke findes i området.","search_with_nominatim":"","powered_by":"","bike":"Cykel","racingbike":"Racercykel","mtb":"Mountain bike","car":"Bil","foot":"Gang","hike":"Vandre","small_truck":"Varevogn","bus":"Bus","truck":"Lastbil","staticlink":"statisk link","motorcycle":"Motorcykel","back_to_map":"","distance_unit":""},"de_DE":{"total_ascend":"%1$s Gesamtaufstieg","total_descend":"%1$s Gesamtabstieg","way_contains_ford":"Eine Furt muss überquert werden","way_contains_ferry":"Route erfordert Fährennutzung","way_contains_private":"Route mit Privatwegen","way_contains_toll":"Route mit mautpflichtigen Straßen","way_crosses_border":"Route überquert Landesgrenzen","way_contains":"Auf der Route sind %1$s","tracks":"unbefestigte Feldwege","steps":"Treppen","start_label":"Start","intermediate_label":"Zwischenziel","end_label":"Ziel","set_start":"Von hier","set_intermediate":"Zwischenziel","set_end":"Bis hier","center_map":"Zentriere Karte","show_coords":"Zeige Koordinaten","query_osm":"OSM Anfragen","route":"Route","add_to_route":"Ziel hinzufügen","delete_from_route":"Lösche aus Route","open_custom_model_box":"Öffne custom model Kasten","help_custom_model":"Hilfe","apply_custom_model":"Anwenden","exclude_motorway_example":"Autobahn vermeiden","limit_speed_example":"Max. Geschwindigkeit","exclude_area_example":"Gebiet umfahren","combined_example":"Kombiniertes Bsp","examples_custom_model":"Beispiele","marker":"Marker","gh_offline_info":"Ist die GraphHopper API offline?","refresh_button":"Lade Seite neu","server_status":"Status","zoom_in":"Vergrössern","zoom_out":"Verkleinern","drag_to_reorder":"Zum Ändern der Reihenfolge ziehen","route_timed_out":"Zeitlimit für Routenberechnung überschritten","route_request_failed":"Route konnte nicht berechnet werden","current_location":"Aktueller Standort","searching_location":"Suche Standort","searching_location_failed":"Standortsuche fehlgeschlagen","via_hint":"Über","from_hint":"Von","gpx_export_button":"GPX Export","gpx_button":"","hide_button":"Weniger","details_button":"Details","to_hint":"Nach","route_info":"%1$s werden %2$s brauchen","search_button":"Suche","more_button":"mehr","pt_route_info":"Ankunft %1$s mit %2$s Umstiegen (%3$s)","pt_route_info_walking":"Ankunft zu Fuß %1$s (%2$s)","locations_not_found":"Routing war nicht möglich. Ort(e) nicht gefunden in diesem Gebiet.","search_with_nominatim":"Suche mit Nominatim","powered_by":"Powered by","bike":"Fahrrad","racingbike":"Rennrad","mtb":"Mountainbike","car":"Auto","foot":"Zu Fuß","hike":"Wandern","small_truck":"Kleintransporter","bus":"Bus","truck":"LKW","staticlink":"Link","motorcycle":"Motorrad","back_to_map":"Zurück","distance_unit":"Distanzen sind in %1$s"},"el":{"total_ascend":"%1$s συνολική ανάβαση","total_descend":"%1$s συνολική κατάβαση","way_contains_ford":"υπάρχει πέρασμα στο δρόμο","way_contains_ferry":"χρησιμοποιήστε το ferry","way_contains_private":"ιδιωτικός δρόμος","way_contains_toll":"δρόμος με διόδια","way_crosses_border":"","way_contains":"","tracks":"","steps":"","start_label":"Αφετηρία","intermediate_label":"Ενδιάμεσο σημείο","end_label":"Προορισμός","set_start":"Ορισμός αφετηρίας","set_intermediate":"Ορισμός ενδιάμεσου σημείου","set_end":"Ορισμός προορισμού","center_map":"Κεντράρισμα χάρτη εδώ","show_coords":"Εμφάνιση συντεταγμένων","query_osm":"","route":"Διαδρομή","add_to_route":"","delete_from_route":"Αφαίρεση από διαδρομή","open_custom_model_box":"","help_custom_model":"","apply_custom_model":"","exclude_motorway_example":"","limit_speed_example":"","exclude_area_example":"","combined_example":"","examples_custom_model":"","marker":"Σημάδι","gh_offline_info":"GraphHopper API offline?","refresh_button":"Ανανέωση σελίδας","server_status":"Κατάσταση","zoom_in":"Μεγέθυνση","zoom_out":"Σμίκρυνση","drag_to_reorder":"Σύρετε για αναδιάταξη","route_timed_out":"Ο υπολογισμός διαδρομής απέτυχε λόγω εξάντλησης χρόνου","route_request_failed":"Ο υπολογισμός διαδρομής απέτυχε","current_location":"Τωρινή τοποθεσία","searching_location":"Αναζήτηση τοποθεσίας","searching_location_failed":"Η αναζήτηση τοποθεσίας απέτυχε","via_hint":"Μέσω","from_hint":"Αφετηρία","gpx_export_button":"Εξαγωγή GPX","gpx_button":"","hide_button":"","details_button":"","to_hint":"Προορισμός","route_info":"%1$s σε %2$s","search_button":"Αναζήτηση","more_button":"περισσότερα","pt_route_info":"φτάνει στις %1$s με %2$s μεταβιβάσεις (%3$s)","pt_route_info_walking":"φτάνει στις %1$s απλά περπατώντας (%2$s)","locations_not_found":"Η δρομολόγηση δεν είναι δυνατή. Οι τοποθεσίες δεν βρέθηκαν στην περιοχή.","search_with_nominatim":"","powered_by":"","bike":"Ποδήλατο","racingbike":"Αγωνιστικό ποδήλατο","mtb":"Ποδήλατο βουνού","car":"Αυτοκίνητο","foot":"Πεζός","hike":"Πεζοπορία","small_truck":"Μικρό φορτηγό","bus":"Λεωφορείο","truck":"Φορτηγό","staticlink":"στατική διεύθυνση","motorcycle":"Μοτοσυκλέτα","back_to_map":"","distance_unit":""},"eo":{"total_ascend":"%1$s supreniro tute","total_descend":"%1$s malsupreniro tute","way_contains_ford":"travadejo sur la kurso","way_contains_ferry":"enpramiĝu","way_contains_private":"privata vojo","way_contains_toll":"pegenda vojo","way_crosses_border":"","way_contains":"","tracks":"","steps":"","start_label":"Komenco","intermediate_label":"Intercelo","end_label":"Celo!","set_start":"Agordi kiel komencon","set_intermediate":"Agordi kiel intercelon","set_end":"Agordi kiel celon","center_map":"Centrigi mapon ĉi tien","show_coords":"Montri koordinatojn","query_osm":"","route":"Kurso","add_to_route":"","delete_from_route":"Forigi el la kurso","open_custom_model_box":"","help_custom_model":"","apply_custom_model":"","exclude_motorway_example":"","limit_speed_example":"","exclude_area_example":"","combined_example":"","examples_custom_model":"","marker":"Marko","gh_offline_info":"Eble GraphHopper-API malfunkcias?","refresh_button":"Aktualigi paĝon","server_status":"Stato","zoom_in":"Pligrandigi","zoom_out":"Malgrandigi","drag_to_reorder":"Trenu por reordigi","route_timed_out":"","route_request_failed":"","current_location":"","searching_location":"","searching_location_failed":"","via_hint":"Tra","from_hint":"El","gpx_export_button":"Elporti GPX","gpx_button":"","hide_button":"","details_button":"","to_hint":"Al","route_info":"%1$s daŭros %2$s","search_button":"Serĉi","more_button":"pli","pt_route_info":"alveno je %1$s kun %2$s transveturiliĝoj (%3$s)","pt_route_info_walking":"alveno je %1$s nur perpiede (%2$s)","locations_not_found":"Vojdifinado ne eblas. Ne trovis loko(j)n en la ĉirkaŭaĵo.","search_with_nominatim":"","powered_by":"","bike":"Biciklo","racingbike":"Sporta biciklo","mtb":"Montara biciklo","car":"Aŭto","foot":"Piede","hike":"Marŝade","small_truck":"Eta kamiono","bus":"Aŭtobuso","truck":"Kamiono","staticlink":"konstanta ligilo","motorcycle":"Motorciklo","back_to_map":"","distance_unit":""},"es":{"total_ascend":"Ascender %1$s en total","total_descend":"Descender %1$s en total","way_contains_ford":"hay un vado en el camino","way_contains_ferry":"toma el ferry","way_contains_private":"carretera privada","way_contains_toll":"carretera con peaje","way_crosses_border":"","way_contains":"","tracks":"","steps":"","start_label":"Punto de partida","intermediate_label":"Punto intermedio","end_label":"Punto de finalización","set_start":"Fijar como partida","set_intermediate":"Fijar como punto intermedio","set_end":"Fijar como finalización","center_map":"Centrar mapa aquí","show_coords":"Mostrar coordenadas","query_osm":"","route":"Ruta","add_to_route":"","delete_from_route":"Borrar punto de ruta","open_custom_model_box":"","help_custom_model":"","apply_custom_model":"","exclude_motorway_example":"","limit_speed_example":"","exclude_area_example":"","combined_example":"","examples_custom_model":"","marker":"Marcador","gh_offline_info":"¿API de GraphHopper sin conexión?","refresh_button":"Actualizar página","server_status":"Estado","zoom_in":"Acercar","zoom_out":"Alejar","drag_to_reorder":"Arrastra para cambiar el orden","route_timed_out":"Se ha agotado el tiempo de cálculo de la ruta","route_request_failed":"Solicitud de ruta fallida","current_location":"","searching_location":"","searching_location_failed":"","via_hint":"Pasando por","from_hint":"Desde","gpx_export_button":"Exportar GPX","gpx_button":"","hide_button":"","details_button":"","to_hint":"Hasta","route_info":"%1$s tardará %2$s ","search_button":"Buscar","more_button":"más","pt_route_info":"llega a las %1$s con %2$s transferencias (%3$s)","pt_route_info_walking":"llega sólo caminando a las %1$s (%2$s)","locations_not_found":"No se ha encontrado la ruta. El destino no se encuentra en el área.","search_with_nominatim":"","powered_by":"","bike":"Bicicleta","racingbike":"Bicicleta de carrera","mtb":"Bicicleta de montaña","car":"Automóvil","foot":"A pie","hike":"Senderismo","small_truck":"Camioneta","bus":"Autobús","truck":"Camión","staticlink":"enlace estático","motorcycle":"Motocicleta","back_to_map":"","distance_unit":""},"fa":{"total_ascend":"مجموع صعود %1$s","total_descend":"مجموع نزول %1$s","way_contains_ford":"در طول مسیر گُدار وجود دارد","way_contains_ferry":"","way_contains_private":"","way_contains_toll":"","way_crosses_border":"","way_contains":"","tracks":"","steps":"","start_label":"آغاز","intermediate_label":"نقطهٔ میانی","end_label":"پایان","set_start":"انتخاب نقطهٔ آغاز","set_intermediate":"انتخاب نقطهٔ میانی","set_end":"انتخاب نقطهٔ پایان","center_map":"اینجا مرکز نقشه شود","show_coords":"مختصات اینجا","query_osm":"","route":"مسیر","add_to_route":"","delete_from_route":"از مسیر حذف شود","open_custom_model_box":"","help_custom_model":"","apply_custom_model":"","exclude_motorway_example":"","limit_speed_example":"","exclude_area_example":"","combined_example":"","examples_custom_model":"","marker":"نشانه","gh_offline_info":"گراف‌هاپر در دسترس نیست؟","refresh_button":"تازه‌سازی صفحه","server_status":"وضعیت","zoom_in":"بزرگ‌نمایی","zoom_out":"کوچک‌نمایی","drag_to_reorder":"برای مرتب‌سازی جابه‌جا کنید","route_timed_out":"","route_request_failed":"","current_location":"","searching_location":"","searching_location_failed":"","via_hint":"با گذر از","from_hint":"از","gpx_export_button":"دریافت در قالب GPX","gpx_button":"","hide_button":"","details_button":"","to_hint":"به","route_info":"%1$s %2$s طول می‌کشد","search_button":"جست‌وجو","more_button":"بیشتر","pt_route_info":"با %2$s جابه‌جایی در ساعت %1$s می‌رسید (%3$s)","pt_route_info_walking":"ساعت %1$s می‌رسید، فقط پیاده (%2$s)","locations_not_found":"مسیریابی ممکن نیست. مکان(ها) در ناحیهٔ موردنظر پیدا نشد.","search_with_nominatim":"","powered_by":"","bike":"دوچرخه","racingbike":"دوچرخه کورسی","mtb":"دوچرخه کوهستان","car":"ماشین","foot":"پیاده‌روی","hike":"پیاده‌گردی","small_truck":"وانت","bus":"اتوبوس","truck":"کامیون","staticlink":"پیوند ثابت","motorcycle":"موتورسیکلت","back_to_map":"","distance_unit":""},"fil":{"total_ascend":"","total_descend":"","way_contains_ford":"","way_contains_ferry":"","way_contains_private":"","way_contains_toll":"","way_crosses_border":"","way_contains":"","tracks":"","steps":"","start_label":"","intermediate_label":"","end_label":"","set_start":"","set_intermediate":"","set_end":"","center_map":"","show_coords":"","query_osm":"","route":"","add_to_route":"","delete_from_route":"","open_custom_model_box":"","help_custom_model":"","apply_custom_model":"","exclude_motorway_example":"","limit_speed_example":"","exclude_area_example":"","combined_example":"","examples_custom_model":"","marker":"","gh_offline_info":"","refresh_button":"","server_status":"","zoom_in":"","zoom_out":"","drag_to_reorder":"","route_timed_out":"","route_request_failed":"","current_location":"","searching_location":"","searching_location_failed":"","via_hint":"","from_hint":"mula sa ","gpx_export_button":"GPX Export","gpx_button":"","hide_button":"","details_button":"","to_hint":"upang sa","route_info":"%1$s ay magdadala sa %2$s","search_button":"Paghahanap","more_button":"mas","pt_route_info":"","pt_route_info_walking":"","locations_not_found":"Routing hindi maaari, hindi nahanap Lokasyon sa lugar.","search_with_nominatim":"","powered_by":"","bike":"Bike","racingbike":"Racing Bike","mtb":"Mountain Bike","car":"kotse","foot":"lumakad","hike":"","small_truck":"","bus":"","truck":"","staticlink":"static link","motorcycle":"motorsiklo","back_to_map":"","distance_unit":""},"fi":{"total_ascend":"nousu yhteensä %1$s","total_descend":"lasku yhteensä %1$s","way_contains_ford":"Huomio, reitillä on kahlaamo","way_contains_ferry":"käytä lauttaa","way_contains_private":"yksityinen tie","way_contains_toll":"maksullinen tie","way_crosses_border":"","way_contains":"","tracks":"","steps":"","start_label":"Lähtöpaikka","intermediate_label":"Välikohde","end_label":"Päätepiste","set_start":"Merkitse lähtöpaikaksi","set_intermediate":"Merkitse välikohteeksi","set_end":"Merkitse päätepisteeksi","center_map":"Keskitä kartta tähän","show_coords":"Näytä koordinaatit","query_osm":"","route":"Reitti","add_to_route":"","delete_from_route":"Poista reitistä","open_custom_model_box":"","help_custom_model":"","apply_custom_model":"","exclude_motorway_example":"","limit_speed_example":"","exclude_area_example":"","combined_example":"","examples_custom_model":"","marker":"Merkki","gh_offline_info":"Ei yhteyttä GraphHopper-palvelimeen","refresh_button":"Päivitä sivu","server_status":"Tilanne","zoom_in":"Lähennä","zoom_out":"Loitonna","drag_to_reorder":"Järjestele vetämällä","route_timed_out":"Reitin laskenan aikaraja ylittyi","route_request_failed":"Reittipyyntö epäonnistui","current_location":"Nykyinen paikka","searching_location":"Paikkaa haetaan","searching_location_failed":"Paikan haku epäonnistui","via_hint":"Reittipiste","from_hint":"Lähtöpaikka","gpx_export_button":"GPX-tuonti","gpx_button":"","hide_button":"","details_button":"","to_hint":"Määränpää","route_info":"%1$s kestää %2$s","search_button":"Etsi","more_button":"lisää","pt_route_info":"saapuu kello %1$s, %2$s vaihtoa (%3$s)","pt_route_info_walking":"saapuu kello %1$s, vain kävely (%3$s)","locations_not_found":"Reittiohjeiden luonti epäonnistui. Paikkaa ei löydy tältä alueelta.","search_with_nominatim":"","powered_by":"","bike":"Pyörä","racingbike":"Kilpapyörä","mtb":"Maastopyörä","car":"Auto","foot":"Kävely","hike":"Patikointi","small_truck":"Pieni kuorma-auto","bus":"Linja-auto","truck":"Kuorma-auto","staticlink":"yhteys","motorcycle":"Moottoripyörällä","back_to_map":"","distance_unit":""},"fr_FR":{"total_ascend":"%1$s de dénivelé positif","total_descend":"%1$s de dénivelé négatif","way_contains_ford":"cet itinéraire comprend un passage à gué","way_contains_ferry":"prenez le bateau","way_contains_private":"chemin privé","way_contains_toll":"route à péage","way_crosses_border":"","way_contains":"","tracks":"","steps":"","start_label":"Départ","intermediate_label":"Point intermédiaire","end_label":"Arrivée","set_start":"Départ de l\'itinéraire ici","set_intermediate":"Ajouter un point intermédiaire","set_end":"Arrivée de l\'itinéraire ici","center_map":"Centrer la carte ici","show_coords":"Afficher les coordonnées","query_osm":"","route":"Itinéraire","add_to_route":"","delete_from_route":"Supprimer ce point de l\'itinéraire","open_custom_model_box":"","help_custom_model":"","apply_custom_model":"","exclude_motorway_example":"","limit_speed_example":"","exclude_area_example":"","combined_example":"","examples_custom_model":"","marker":"Marqueur","gh_offline_info":"GraphHopper API hors connexion?","refresh_button":"Rafraîchir","server_status":"Statut","zoom_in":"Zoom avant","zoom_out":"Zoom arrière","drag_to_reorder":"Faire glisser pour réorganiser","route_timed_out":"Le calcul de l\'itinéraire a expiré","route_request_failed":"Échec du calcul de l\'itinéraire","current_location":"Localisation actuelle","searching_location":"Chercher localisation","searching_location_failed":"Recherche de localisation échouée","via_hint":"Via","from_hint":"De","gpx_export_button":"Export GPX","gpx_button":"","hide_button":"","details_button":"","to_hint":"À","route_info":"%1$s durera %2$s ","search_button":"Rechercher","more_button":"plus","pt_route_info":"arrivée à %1$s avec %2$s changements (%3$s)","pt_route_info_walking":"arrivée à pied à %1$s (%2$s)","locations_not_found":"Calcul d\'itinéraire impossible. Position(s) non trouvée(s) dans la zone.","search_with_nominatim":"","powered_by":"","bike":"Vélo","racingbike":"Vélo de course","mtb":"VTT","car":"Voiture","foot":"À pied","hike":"Randonnée pédestre","small_truck":"Camionnette","bus":"Bus","truck":"Camion","staticlink":"Lien","motorcycle":"Moto","back_to_map":"","distance_unit":""},"fr_CH":{"total_ascend":"%1$s de dénivelé positif","total_descend":"%1$s de dénivelé négatif","way_contains_ford":"cet itinéraire comprend un passage à gué","way_contains_ferry":"prenez le bateau","way_contains_private":"chemin privé","way_contains_toll":"route à péage","way_crosses_border":"","way_contains":"","tracks":"","steps":"","start_label":"Départ","intermediate_label":"Point intermédiaire","end_label":"Arrivée","set_start":"Départ de l\'itinéraire ici","set_intermediate":"Ajouter un point intermédiaire","set_end":"Arrivée de l\'itinéraire ici","center_map":"Centrer la carte ici","show_coords":"Afficher les coordonnées","query_osm":"","route":"Itinéraire","add_to_route":"","delete_from_route":"Supprimer ce point de l\'itinéraire","open_custom_model_box":"","help_custom_model":"","apply_custom_model":"","exclude_motorway_example":"","limit_speed_example":"","exclude_area_example":"","combined_example":"","examples_custom_model":"","marker":"Marqueur","gh_offline_info":"GraphHopper API hors connexion?","refresh_button":"Rafraîchir","server_status":"Statut","zoom_in":"Zoom avant","zoom_out":"Zoom arrière","drag_to_reorder":"Faire glisser pour réorganiser","route_timed_out":"Le calcul de l\'itinéraire a expiré","route_request_failed":"Échec du calcul de l\'itinéraire","current_location":"Localisation actuelle","searching_location":"Chercher localisation","searching_location_failed":"Recherche de localisation échouée","via_hint":"Via","from_hint":"De","gpx_export_button":"Export GPX","gpx_button":"","hide_button":"","details_button":"","to_hint":"À","route_info":"%1$s durera %2$s ","search_button":"Rechercher","more_button":"plus","pt_route_info":"arrivée à %1$s avec %2$s changements (%3$s)","pt_route_info_walking":"arrivée à pied à %1$s (%2$s)","locations_not_found":"Calcul d\'itinéraire impossible. Position(s) non trouvée(s) dans la zone.","search_with_nominatim":"","powered_by":"","bike":"Vélo","racingbike":"Vélo de course","mtb":"VTT","car":"Voiture","foot":"À pied","hike":"Randonnée pédestre","small_truck":"Camionnette","bus":"Bus","truck":"Camion","staticlink":"Lien","motorcycle":"Moto","back_to_map":"","distance_unit":""},"gl":{"total_ascend":"","total_descend":"","way_contains_ford":"","way_contains_ferry":"","way_contains_private":"","way_contains_toll":"","way_crosses_border":"","way_contains":"","tracks":"","steps":"","start_label":"","intermediate_label":"","end_label":"","set_start":"","set_intermediate":"","set_end":"","center_map":"","show_coords":"","query_osm":"","route":"","add_to_route":"","delete_from_route":"","open_custom_model_box":"","help_custom_model":"","apply_custom_model":"","exclude_motorway_example":"","limit_speed_example":"","exclude_area_example":"","combined_example":"","examples_custom_model":"","marker":"","gh_offline_info":"","refresh_button":"","server_status":"","zoom_in":"","zoom_out":"","drag_to_reorder":"","route_timed_out":"","route_request_failed":"","current_location":"","searching_location":"","searching_location_failed":"","via_hint":"Vía","from_hint":"dende","gpx_export_button":"GPX Exportación","gpx_button":"","hide_button":"","details_button":"","to_hint":"ata","route_info":"%1$s tardará %2$s","search_button":"buscar","more_button":"máis","pt_route_info":"","pt_route_info_walking":"","locations_not_found":"Non se atopou a ruta. O destino non se atopa na área","search_with_nominatim":"","powered_by":"","bike":"Bicicleta","racingbike":"Bicleta de carreiras","mtb":"Bicicleta de montaña","car":"automóbil","foot":"A pé","hike":"","small_truck":"","bus":"","truck":"","staticlink":"Enlace","motorcycle":"Motocicleta","back_to_map":"","distance_unit":""},"he":{"total_ascend":"עלייה כוללת של %1$s","total_descend":"ירידה כוללת של %1$s","way_contains_ford":"יש מעבר מים לאורך הדרך","way_contains_ferry":"","way_contains_private":"","way_contains_toll":"","way_crosses_border":"","way_contains":"","tracks":"","steps":"","start_label":"התחלה","intermediate_label":"אמצע","end_label":"סוף","set_start":"הגדרה כהתחלה","set_intermediate":"הגדרה כאמצע","set_end":"הגדרה כסוף","center_map":"למרכז את המפה לכאן","show_coords":"הצגת נקודות ציון","query_osm":"","route":"דרך","add_to_route":"","delete_from_route":"מחיקה מהדרך","open_custom_model_box":"","help_custom_model":"","apply_custom_model":"","exclude_motorway_example":"","limit_speed_example":"","exclude_area_example":"","combined_example":"","examples_custom_model":"","marker":"הדגשה","gh_offline_info":"‏ GraphHopper API לא מקוון?","refresh_button":"רענון הדף","server_status":"מצב","zoom_in":"התקרבות","zoom_out":"התרחקות","drag_to_reorder":"יש לגרור כדי לסדר מחדש","route_timed_out":"","route_request_failed":"","current_location":"","searching_location":"","searching_location_failed":"","via_hint":"דרך","from_hint":"מוצא","gpx_export_button":"ייצוא GPX","gpx_button":"","hide_button":"","details_button":"","to_hint":"יעד","route_info":"%1$s ייקחו %2$s","search_button":"חיפוש","more_button":"עוד","pt_route_info":"מגיע ב־%1$s עם %2$s החלפות (%3$s)","pt_route_info_walking":"מגיע ב־%1$s עם הליכה (%3$s)","locations_not_found":"אין נתיב ישיר אל היעד. המיקום לא נמצא באזור.","search_with_nominatim":"","powered_by":"","bike":"אופניים","racingbike":"מסלולי אופניים","mtb":"אופני הרים","car":"מכונית","foot":"רגל","hike":"טיול רגלי","small_truck":"משאית קטנה","bus":"אוטובוס","truck":"משאית","staticlink":"קישור קבוע","motorcycle":"אופנוע","back_to_map":"","distance_unit":""},"hr_HR":{"total_ascend":"%1$s ukupni uspon","total_descend":"","way_contains_ford":"","way_contains_ferry":"","way_contains_private":"","way_contains_toll":"","way_crosses_border":"","way_contains":"","tracks":"","steps":"","start_label":"Početak","intermediate_label":"Posrednik","end_label":"Kraj","set_start":"Postavi kao početak","set_intermediate":"Postavi kao posrednik","set_end":"Postavi kao kraj","center_map":"Postavi kao centar karte","show_coords":"Prikaži koordinate","query_osm":"","route":"Ruta","add_to_route":"","delete_from_route":"Izbriši iz rute","open_custom_model_box":"","help_custom_model":"","apply_custom_model":"","exclude_motorway_example":"","limit_speed_example":"","exclude_area_example":"","combined_example":"","examples_custom_model":"","marker":"Oznaka","gh_offline_info":"GraphHopper API nedostupan","refresh_button":"Osvježi stranicu","server_status":"Status","zoom_in":"","zoom_out":"","drag_to_reorder":"","route_timed_out":"","route_request_failed":"","current_location":"","searching_location":"","searching_location_failed":"","via_hint":"Preko","from_hint":"Od","gpx_export_button":"Izvezi kao GPX","gpx_button":"","hide_button":"","details_button":"","to_hint":"Do","route_info":"%1$s trajat će %2$s","search_button":"Pretraži","more_button":"više","pt_route_info":"","pt_route_info_walking":"","locations_not_found":"Rutiranje nije moguće. Lokacije nisu pronađene na ovome području.","search_with_nominatim":"","powered_by":"","bike":"Bicikl","racingbike":"Trkaći motocikl","mtb":"Brdski bicikl","car":"Automobil","foot":"Pješak","hike":"","small_truck":"Mali kamion","bus":"Autobus","truck":"Kamion","staticlink":"statička poveznica","motorcycle":"Motocikl","back_to_map":"","distance_unit":""},"hsb":{"total_ascend":"","total_descend":"","way_contains_ford":"","way_contains_ferry":"","way_contains_private":"","way_contains_toll":"","way_crosses_border":"","way_contains":"","tracks":"","steps":"","start_label":"","intermediate_label":"","end_label":"","set_start":"","set_intermediate":"","set_end":"","center_map":"","show_coords":"","query_osm":"","route":"","add_to_route":"","delete_from_route":"","open_custom_model_box":"","help_custom_model":"","apply_custom_model":"","exclude_motorway_example":"","limit_speed_example":"","exclude_area_example":"","combined_example":"","examples_custom_model":"","marker":"","gh_offline_info":"","refresh_button":"","server_status":"","zoom_in":"","zoom_out":"","drag_to_reorder":"","route_timed_out":"","route_request_failed":"","current_location":"","searching_location":"","searching_location_failed":"","via_hint":"přez","from_hint":"wot","gpx_export_button":"eksport do GPX","gpx_button":"","hide_button":"","details_button":"","to_hint":"do","route_info":"za %1$s so trjeba %2$s","search_button":"pytaj","more_button":"wjac","pt_route_info":"","pt_route_info_walking":"","locations_not_found":"Čara njeje móžna. Městno so w tutej kónčinje njenamaka.","search_with_nominatim":"","powered_by":"","bike":"koleso","racingbike":"wubědźowanske koleso","mtb":"mountainbike","car":"awto","foot":"pěši","hike":"","small_truck":"","bus":"","truck":"","staticlink":"link","motorcycle":"motorske","back_to_map":"","distance_unit":""},"hu_HU":{"total_ascend":"Összes szintemelkedés: %1$s","total_descend":"Összes szintcsökkenés: %1$s","way_contains_ford":"gázló van az útvonalon","way_contains_ferry":"","way_contains_private":"","way_contains_toll":"","way_crosses_border":"","way_contains":"","tracks":"","steps":"","start_label":"Indulás","intermediate_label":"Köztes célpont","end_label":"Célpont","set_start":"Beállítás kiindulási pontnak","set_intermediate":"Beállítás köztes célpontnak","set_end":"Beállítás célpontnak","center_map":"Beállítás a térkép középpontjának","show_coords":"Pozíció megjelenítése","query_osm":"","route":"Útvonal","add_to_route":"","delete_from_route":"Eltávolítás az útvonalról","open_custom_model_box":"","help_custom_model":"","apply_custom_model":"","exclude_motorway_example":"","limit_speed_example":"","exclude_area_example":"","combined_example":"","examples_custom_model":"","marker":"Jelölő","gh_offline_info":"Lehet, hogy a GraphHopper API nem érhető el?","refresh_button":"Oldal frissítése","server_status":"Állapot","zoom_in":"Nagyítás","zoom_out":"Kicsinyítés","drag_to_reorder":"Húzza el az átrendezéshez","route_timed_out":"","route_request_failed":"","current_location":"","searching_location":"","searching_location_failed":"","via_hint":"Ezen keresztül","from_hint":"Innen","gpx_export_button":"GPX export","gpx_button":"","hide_button":"","details_button":"","to_hint":"Ide","route_info":"%1$s ennyi ideig tart: %2$s","search_button":"Keresés","more_button":"tovább","pt_route_info":"érkezés %1$s órakor, %2$s átszállással (%3$s)","pt_route_info_walking":"érkezés %1$s órakor, csak gyalog (%2$s)","locations_not_found":"Útvonaltervezés nem lehetséges. A megadott hely(ek) nem található(k) meg a területen.","search_with_nominatim":"","powered_by":"","bike":"Kerékpár","racingbike":"Versenykerékpár","mtb":"Hegyi kerékpár","car":"Autó","foot":"Gyalogos","hike":"Túrázás","small_truck":"Kisteherautó","bus":"Busz","truck":"Teherautó","staticlink":"Statikus hivatkozás","motorcycle":"Motorkerékpár","back_to_map":"","distance_unit":""},"in_ID":{"total_ascend":"naik dengan jarak %1$s","total_descend":"turun dengan jarak %1$s","way_contains_ford":"terdapat jalan untuk dilewati","way_contains_ferry":"","way_contains_private":"","way_contains_toll":"","way_crosses_border":"","way_contains":"","tracks":"","steps":"","start_label":"Mulai","intermediate_label":"Antara","end_label":"Akhir","set_start":"Atur sebagai titik mulai","set_intermediate":"Atur sebagai titik antara","set_end":"Atur sebagai titik akhir","center_map":"Tengahkan Peta","show_coords":"Tampilkan koordinat","query_osm":"","route":"Rute","add_to_route":"","delete_from_route":"Hapus dari rute","open_custom_model_box":"","help_custom_model":"","apply_custom_model":"","exclude_motorway_example":"","limit_speed_example":"","exclude_area_example":"","combined_example":"","examples_custom_model":"","marker":"Titik","gh_offline_info":"Pelayanan API Graphhopper dalam kondisi offline","refresh_button":"Perbarui Halaman","server_status":"Status","zoom_in":"Perbesaran","zoom_out":"Pengecilan","drag_to_reorder":"Drag untuk mengatur urutan","route_timed_out":"","route_request_failed":"","current_location":"","searching_location":"","searching_location_failed":"","via_hint":"melalui","from_hint":"dari","gpx_export_button":"Ekspor GPX","gpx_button":"","hide_button":"","details_button":"","to_hint":"ke","route_info":"%1$s berada dalam waktu %2$s","search_button":"pencarian","more_button":"lebih lanjut","pt_route_info":"sampai pada %1$s dengan %2$s jarak (%3$s)","pt_route_info_walking":"sampai pada %1$s dengan berjalan kaki (%2$s)","locations_not_found":"Penentuan rute tidak dapat dilakukan. Lokasi tidak ditemukan","search_with_nominatim":"","powered_by":"","bike":"Sepeda","racingbike":"Sepeda Balap","mtb":"Sepeda Gunung","car":"Mobil","foot":"Jalan Kaki","hike":"Mendaki","small_truck":"Truk Kecil","bus":"Bus","truck":"Truk","staticlink":"Jalur tetap","motorcycle":"Motor","back_to_map":"","distance_unit":""},"it":{"total_ascend":"%1$s di dislivello positivo","total_descend":"%1$s di dislivello negativo","way_contains_ford":"c\'é un guado sulla strada","way_contains_ferry":"","way_contains_private":"","way_contains_toll":"","way_crosses_border":"","way_contains":"","tracks":"","steps":"","start_label":"Partenza","intermediate_label":"Punto intermedio","end_label":"Arrivo","set_start":"Imposta partenza","set_intermediate":"Imposta punto intermedio","set_end":"Imposta arrivo","center_map":"Centra la mappa qui","show_coords":"Mostra coordinate","query_osm":"","route":"Itinerario","add_to_route":"","delete_from_route":"Elimina dall\'itinerario","open_custom_model_box":"","help_custom_model":"","apply_custom_model":"","exclude_motorway_example":"","limit_speed_example":"","exclude_area_example":"","combined_example":"","examples_custom_model":"","marker":"Marker","gh_offline_info":"Servizio GraphHopper non disponibile?","refresh_button":"Ricarica pagina","server_status":"Stato","zoom_in":"Zoom avanti","zoom_out":"Zoom indietro","drag_to_reorder":"Trascina per riordinare","route_timed_out":"","route_request_failed":"","current_location":"","searching_location":"","searching_location_failed":"","via_hint":"attraverso","from_hint":"Da","gpx_export_button":"Esporta GPX","gpx_button":"","hide_button":"","details_button":"","to_hint":"A","route_info":"%1$s in %2$s","search_button":"Ricerca","more_button":"altro","pt_route_info":"arrivato alle %1$s con %2$s trasferimenti (%3$s)","pt_route_info_walking":"arrivato alle %1$s solocamminando (%2$s)","locations_not_found":"Percorso non calcolabile. Località non trovata(e) nell\'area.","search_with_nominatim":"","powered_by":"","bike":"Bicicletta","racingbike":"Bici da corsa","mtb":"Mountainbike","car":"Auto","foot":"A piedi","hike":"Scarpinata","small_truck":"Furgone","bus":"Tram","truck":"Camion","staticlink":"permalink","motorcycle":"Moto","back_to_map":"","distance_unit":""},"ja":{"total_ascend":"","total_descend":"","way_contains_ford":"","way_contains_ferry":"","way_contains_private":"","way_contains_toll":"","way_crosses_border":"","way_contains":"","tracks":"","steps":"","start_label":"","intermediate_label":"","end_label":"","set_start":"","set_intermediate":"","set_end":"","center_map":"","show_coords":"座標を表示","query_osm":"","route":"経路","add_to_route":"","delete_from_route":"経路から取り除く","open_custom_model_box":"","help_custom_model":"","apply_custom_model":"","exclude_motorway_example":"","limit_speed_example":"","exclude_area_example":"","combined_example":"","examples_custom_model":"","marker":"ピン","gh_offline_info":"サーバに接続できませんでした","refresh_button":"更新","server_status":"ステータス","zoom_in":"拡大","zoom_out":"縮小","drag_to_reorder":"","route_timed_out":"","route_request_failed":"","current_location":"","searching_location":"","searching_location_failed":"","via_hint":"経由","from_hint":"出発地点","gpx_export_button":"GPX形式でエクスポート","gpx_button":"","hide_button":"","details_button":"","to_hint":"目的地点","route_info":"%1$s 所要時間 %2$s","search_button":"検索","more_button":"詳細","pt_route_info":"","pt_route_info_walking":"","locations_not_found":"経路を検索できませんでした.指定の地点が存在しません.","search_with_nominatim":"","powered_by":"","bike":"自転車","racingbike":"レースバイク","mtb":"マウンテンバイク","car":"車","foot":"徒歩","hike":"","small_truck":"","bus":"","truck":"","staticlink":"パーマリンク","motorcycle":"オートバイ","back_to_map":"","distance_unit":""},"ko":{"total_ascend":"오르막길 총 %1$s","total_descend":"내리막길 총 %1$s","way_contains_ford":"경로에 여울이 있습니다","way_contains_ferry":"페리 승선","way_contains_private":"사유 도로","way_contains_toll":"유료 도로","way_crosses_border":"","way_contains":"","tracks":"","steps":"","start_label":"출발지","intermediate_label":"경유지","end_label":"도착지","set_start":"출발지로 설정","set_intermediate":"경유지로 설정","set_end":"도착지로 설정","center_map":"여기를 지도의 중심으로 설정","show_coords":"좌표 보기","query_osm":"","route":"경로","add_to_route":"","delete_from_route":"경로에서 삭제","open_custom_model_box":"","help_custom_model":"","apply_custom_model":"","exclude_motorway_example":"","limit_speed_example":"","exclude_area_example":"","combined_example":"","examples_custom_model":"","marker":"핀","gh_offline_info":"GraphHopper API에 연결할 수 없습니다.","refresh_button":"새로고침","server_status":"상태","zoom_in":"확대","zoom_out":"축소","drag_to_reorder":"드래그하여 재정렬","route_timed_out":"경로 탐색 시간 초과","route_request_failed":"경로 탐색 요청 실패","current_location":"현재 위치","searching_location":"위치 탐색","searching_location_failed":"위티 탐색 실패","via_hint":"경유","from_hint":"출발","gpx_export_button":"GPX 내보내기","gpx_button":"","hide_button":"","details_button":"","to_hint":"도착","route_info":"%1$s %2$s 소요","search_button":"탐색","more_button":"더보기","pt_route_info":"%1$s회 환승, %2$s에 도착 (%3$s)","pt_route_info_walking":"도보 이용, %1$s에 도착 (%2$s)","locations_not_found":"경로를 탐색할 수 없습니다. 이 지역에서 위치를 찾을 수 없습니다.","search_with_nominatim":"","powered_by":"","bike":"자전거","racingbike":"경주용 자전거","mtb":"산악자전거","car":"자동차","foot":"도보","hike":"하이킹","small_truck":"소형 트럭","bus":"버스","truck":"트럭","staticlink":"정적 링크","motorcycle":"모터사이클","back_to_map":"","distance_unit":""},"lt_LT":{"total_ascend":"","total_descend":"","way_contains_ford":"","way_contains_ferry":"","way_contains_private":"","way_contains_toll":"","way_crosses_border":"","way_contains":"","tracks":"","steps":"","start_label":"Pradėti","intermediate_label":"","end_label":"Baigti","set_start":"Pasirinkti pradžią čia","set_intermediate":"","set_end":"Pasirinkti pabaigą čia","center_map":"Centruoti žemėlapį čia","show_coords":"Rodyti koordinates","query_osm":"","route":"Maršrutas","add_to_route":"","delete_from_route":"Ištrinti iš maršruto","open_custom_model_box":"","help_custom_model":"","apply_custom_model":"","exclude_motorway_example":"","limit_speed_example":"","exclude_area_example":"","combined_example":"","examples_custom_model":"","marker":"Žymeklis","gh_offline_info":"GraphHopper API nepasiekiamas?","refresh_button":"Atnaujinti puslapį","server_status":"Būsena","zoom_in":"Priartinti","zoom_out":"Atitolinti","drag_to_reorder":"Tempkite, kad pakeistumėte eilės tvarką","route_timed_out":"","route_request_failed":"","current_location":"","searching_location":"","searching_location_failed":"","via_hint":"Per","from_hint":"Nuo","gpx_export_button":"GPX eksportas","gpx_button":"","hide_button":"","details_button":"","to_hint":"Iki","route_info":"%1$s užtruksite %2$s","search_button":"Ieškoti","more_button":"dar","pt_route_info":"Atvyksta %1$s su %2$s persėdimais (%3$s)","pt_route_info_walking":"Atvyksta %1$s, su ėjimu pėščiomis (%2$s)","locations_not_found":"Neįmanoma sukurti maršruto. Nurodyti taškai nerasti šioje zonoje.","search_with_nominatim":"","powered_by":"","bike":"Dviratis","racingbike":"Plentinis dviratis","mtb":"MTB dviratis","car":"Automobilis","foot":"Pėsčiomis","hike":"","small_truck":"Mažas sunkvežimis","bus":"Autobusas","truck":"Sunkvežimis","staticlink":"statinė nuoroda","motorcycle":"Motociklas","back_to_map":"","distance_unit":""},"ne":{"total_ascend":"","total_descend":"","way_contains_ford":"","way_contains_ferry":"","way_contains_private":"","way_contains_toll":"","way_crosses_border":"","way_contains":"","tracks":"","steps":"","start_label":"","intermediate_label":"","end_label":"","set_start":"","set_intermediate":"","set_end":"","center_map":"","show_coords":"","query_osm":"","route":"","add_to_route":"","delete_from_route":"","open_custom_model_box":"","help_custom_model":"","apply_custom_model":"","exclude_motorway_example":"","limit_speed_example":"","exclude_area_example":"","combined_example":"","examples_custom_model":"","marker":"","gh_offline_info":"","refresh_button":"","server_status":"","zoom_in":"","zoom_out":"","drag_to_reorder":"","route_timed_out":"","route_request_failed":"","current_location":"","searching_location":"","searching_location_failed":"","via_hint":"बाट","from_hint":"सुरु ","gpx_export_button":"GPX मा परिबर्तन गर्नुहोस","gpx_button":"","hide_button":"","details_button":"","to_hint":"अन्त्य","route_info":"%1$s को लागि %2$s लाग्नेछ","search_button":"खोज ","more_button":"अझै","pt_route_info":"","pt_route_info_walking":"","locations_not_found":"ठाउँ नभेटीनाले बाटो पत्ता लगाउन सकिएन","search_with_nominatim":"","powered_by":"","bike":"बाईक ","racingbike":"छिटो गतिका बाईक","mtb":"माउन्टेन बाईक","car":"गाडी","foot":"पैदल","hike":"","small_truck":"","bus":"","truck":"","staticlink":"ईस्ट्यातिक लिंक","motorcycle":"मोटरसाइकल ","back_to_map":"","distance_unit":""},"nl":{"total_ascend":"%1$s totale klim","total_descend":"%1$s totale daling","way_contains_ford":"Er is een doorwaadbare plaats","way_contains_ferry":"","way_contains_private":"","way_contains_toll":"","way_crosses_border":"","way_contains":"","tracks":"","steps":"","start_label":"Start","intermediate_label":"Tussenstop","end_label":"Einde","set_start":"Stel in als startpunt","set_intermediate":"Stel in als tussenstop","set_end":"Stel in als einde","center_map":"Centreer de kaart hier","show_coords":"Laat coordinaten zien","query_osm":"","route":"Route","add_to_route":"","delete_from_route":"Van route verwijderen","open_custom_model_box":"","help_custom_model":"","apply_custom_model":"","exclude_motorway_example":"","limit_speed_example":"","exclude_area_example":"","combined_example":"","examples_custom_model":"","marker":"Pin","gh_offline_info":"GrabHopper API offline?","refresh_button":"Ververs pagina","server_status":"Status","zoom_in":"Zoom in","zoom_out":"Zoom uit","drag_to_reorder":"Slepen om opnieuw te organiseren","route_timed_out":"","route_request_failed":"","current_location":"","searching_location":"","searching_location_failed":"","via_hint":"via","from_hint":"van","gpx_export_button":"GPX export","gpx_button":"","hide_button":"","details_button":"","to_hint":"naar","route_info":"%1$s duurt %2$s","search_button":"zoek","more_button":"meer","pt_route_info":"aankomst om %1$s met %2$s overstappen (%3$s)","pt_route_info_walking":"aankomst om %1$s te voet (%2$s)","locations_not_found":"Route niet mogelijk. Locatie(s) niet gevonden.","search_with_nominatim":"","powered_by":"","bike":"fiets","racingbike":"racefiets","mtb":"mountainbike","car":"auto","foot":"te voet","hike":"wandelen","small_truck":"kleine vrachtwagen","bus":"bus","truck":"vrachtwagen","staticlink":"statische link","motorcycle":"motorfiets","back_to_map":"","distance_unit":""},"pl_PL":{"total_ascend":"%1$s podejść ogółem","total_descend":"%1$s zejść ogółem","way_contains_ford":"bród na trasie","way_contains_ferry":"","way_contains_private":"","way_contains_toll":"","way_crosses_border":"","way_contains":"","tracks":"","steps":"","start_label":"Początek","intermediate_label":"Punkt pośredni","end_label":"Cel","set_start":"Ustaw jako początek","set_intermediate":"Ustaw jako punkt pośredni","set_end":"Ustaw jako cel","center_map":"Centruj mapę tutaj","show_coords":"Pokaż współrzędne","query_osm":"","route":"Trasa","add_to_route":"","delete_from_route":"Usuń z trasy","open_custom_model_box":"","help_custom_model":"","apply_custom_model":"","exclude_motorway_example":"","limit_speed_example":"","exclude_area_example":"","combined_example":"","examples_custom_model":"","marker":"Znacznik","gh_offline_info":"GraphHopper API nie działa?","refresh_button":"Odśwież stronę","server_status":"Stan","zoom_in":"Przybliż","zoom_out":"Oddal","drag_to_reorder":"Przeciągnij, aby przestawić","route_timed_out":"","route_request_failed":"","current_location":"","searching_location":"","searching_location_failed":"","via_hint":"Przez","from_hint":"Z","gpx_export_button":"Eksportuj GPX","gpx_button":"","hide_button":"","details_button":"","to_hint":"Do","route_info":"%1$s zajmie %2$s","search_button":"Szukaj","more_button":"więcej","pt_route_info":"przybycie o %1$s z %2$s przesiadkami (%3$s)","pt_route_info_walking":"przybycie o %1$s pieszo (%2$s)","locations_not_found":"Nie można wyznaczyć trasy. Lokalizacja(e) nie została(y) znalezione. ","search_with_nominatim":"","powered_by":"","bike":"Rower","racingbike":"Rower wyścigowy","mtb":"Rower górski","car":"Samochod","foot":"Pieszo","hike":"Szlakiem turystycznym","small_truck":"Mała ciężarówka","bus":"Autobus","truck":"Ciężarówka","staticlink":"link","motorcycle":"Motocykl","back_to_map":"","distance_unit":""},"pt_BR":{"total_ascend":"subida de %1$s","total_descend":"descida de %1$s","way_contains_ford":"","way_contains_ferry":"","way_contains_private":"","way_contains_toll":"","way_crosses_border":"","way_contains":"","tracks":"","steps":"","start_label":"Início","intermediate_label":"Intermediário","end_label":"Fim","set_start":"Definir como início","set_intermediate":"Definir como intermediário","set_end":"Definir como fim","center_map":"Centralizar o mapa aqui","show_coords":"Mostrar coordenadas","query_osm":"","route":"Rota","add_to_route":"","delete_from_route":"Remover da rota","open_custom_model_box":"","help_custom_model":"","apply_custom_model":"","exclude_motorway_example":"","limit_speed_example":"","exclude_area_example":"","combined_example":"","examples_custom_model":"","marker":"Marca","gh_offline_info":"API do GraphHopper offline?","refresh_button":"Recarregar página","server_status":"Status","zoom_in":"Ampliar","zoom_out":"Reduzir zoom","drag_to_reorder":"Arraste para reordenar","route_timed_out":"","route_request_failed":"","current_location":"","searching_location":"","searching_location_failed":"","via_hint":"Via","from_hint":"De","gpx_export_button":"Exportar GPX","gpx_button":"","hide_button":"","details_button":"","to_hint":"Para","route_info":"%1$s levará %2$s","search_button":"Pesquisar","more_button":"mais","pt_route_info":"chega às %1$s com %2$s trocas (%3$s)","pt_route_info_walking":"chega às %1$s caminhando (%2$s)","locations_not_found":"Rota inviável. Localização(ões) não encontrada(s) na área.","search_with_nominatim":"","powered_by":"","bike":"Bicicleta","racingbike":"Bicicleta de corrida","mtb":"Mountainbike","car":"Carro","foot":"A pé","hike":"Caminhada","small_truck":"Caminhão pequeno","bus":"Ônibus","truck":"Caminhão","staticlink":"Link estático","motorcycle":"Motocicleta","back_to_map":"","distance_unit":""},"pt_PT":{"total_ascend":"subida de %1$s","total_descend":"descida de %1$s","way_contains_ford":"","way_contains_ferry":"","way_contains_private":"","way_contains_toll":"","way_crosses_border":"","way_contains":"","tracks":"","steps":"","start_label":"","intermediate_label":"","end_label":"","set_start":"","set_intermediate":"","set_end":"","center_map":"","show_coords":"Mostrar coordenadas","query_osm":"","route":"","add_to_route":"","delete_from_route":"","open_custom_model_box":"","help_custom_model":"","apply_custom_model":"","exclude_motorway_example":"","limit_speed_example":"","exclude_area_example":"","combined_example":"","examples_custom_model":"","marker":"","gh_offline_info":"","refresh_button":"","server_status":"","zoom_in":"","zoom_out":"","drag_to_reorder":"","route_timed_out":"","route_request_failed":"","current_location":"","searching_location":"","searching_location_failed":"","via_hint":"Por","from_hint":"De","gpx_export_button":"Exportar GPX","gpx_button":"","hide_button":"","details_button":"","to_hint":"Para","route_info":"%1$s irá demorar %2$s","search_button":"Pesquisar","more_button":"mais","pt_route_info":"","pt_route_info_walking":"","locations_not_found":"Roteamento impossível. Localização(ões) não encontrada(s) na área.","search_with_nominatim":"","powered_by":"","bike":"Bicicleta","racingbike":"Bicicleta de corrida","mtb":"Bicicleta de montanha","car":"Carro","foot":"A pé","hike":"Caminhada","small_truck":"Camião pequeno","bus":"Autocarro","truck":"Camião","staticlink":"Ligação permanente","motorcycle":"Motocicleta","back_to_map":"","distance_unit":""},"ro":{"total_ascend":"urcare %1$s","total_descend":"coborâre %1$s","way_contains_ford":"","way_contains_ferry":"","way_contains_private":"","way_contains_toll":"","way_crosses_border":"","way_contains":"","tracks":"","steps":"","start_label":"Pornire","intermediate_label":"Intermediar","end_label":"Sfârșit","set_start":"Selectează ca punct de pornire","set_intermediate":"Selectează ca punct intermediar","set_end":"Selectează ca punct de sosire","center_map":"Centrează harta aici","show_coords":"Arată coordonatele","query_osm":"","route":"Intinerariu","add_to_route":"","delete_from_route":"Șterge din intinerariu","open_custom_model_box":"","help_custom_model":"","apply_custom_model":"","exclude_motorway_example":"","limit_speed_example":"","exclude_area_example":"","combined_example":"","examples_custom_model":"","marker":"Punct de interes","gh_offline_info":"Serverul GraphHopper API este disponibil?","refresh_button":"Reîmprospătează pagina","server_status":"Disponibilitate","zoom_in":"Mărește","zoom_out":"Micșorează","drag_to_reorder":"","route_timed_out":"","route_request_failed":"","current_location":"","searching_location":"","searching_location_failed":"","via_hint":"Prin","from_hint":"De la","gpx_export_button":"Exportă GPX","gpx_button":"","hide_button":"","details_button":"","to_hint":"La","route_info":"%1$s durează %2$s","search_button":"Caută","more_button":"mai mult","pt_route_info":"","pt_route_info_walking":"","locations_not_found":"Traseul nu este posibil. Locul(locurile) nu pot fi găsite în zonă.","search_with_nominatim":"","powered_by":"","bike":"bicicletă","racingbike":"bicicletă de curse","mtb":"Mountainbike","car":"mașină","foot":"pe jos","hike":"Drumeție","small_truck":"Camionetă","bus":"Autobuz","truck":"Camion","staticlink":"link","motorcycle":"Motocicletă","back_to_map":"","distance_unit":""},"ru":{"total_ascend":"подъём на %1$s","total_descend":"спуск на %1$s","way_contains_ford":"На пути есть брод","way_contains_ferry":"садитесь на паром","way_contains_private":"частная дорога","way_contains_toll":"платная дорога","way_crosses_border":"","way_contains":"","tracks":"","steps":"","start_label":"Начало","intermediate_label":"Промежуточная точка","end_label":"Конец","set_start":"Установить начало здесь","set_intermediate":"Установить промежуточной точкой","set_end":"Установить конец здесь","center_map":"Сдвинуть карту сюда ","show_coords":"Показать координаты ","query_osm":"","route":"Маршрут","add_to_route":"","delete_from_route":"Удалить из маршрута","open_custom_model_box":"","help_custom_model":"","apply_custom_model":"","exclude_motorway_example":"","limit_speed_example":"","exclude_area_example":"","combined_example":"","examples_custom_model":"","marker":"Значок","gh_offline_info":"GraphHopper API недоступен?","refresh_button":"Обновить страницу","server_status":"Статус сервера","zoom_in":"Приблизить ","zoom_out":"Отдалить","drag_to_reorder":"Переместите путевую точку","route_timed_out":"","route_request_failed":"","current_location":"","searching_location":"","searching_location_failed":"","via_hint":"Через","from_hint":"От","gpx_export_button":"Экспорт GPX","gpx_button":"","hide_button":"","details_button":"","to_hint":"До","route_info":"%1$s займет %2$s","search_button":"Поиск","more_button":"еще","pt_route_info":"Прибытие в %1$s с %2$s пересадками (%3$s)","pt_route_info_walking":"Прибытие в %1$s пешком (%2$s) ","locations_not_found":"Построить маршрут невозможно. Не определено местоположение.","search_with_nominatim":"","powered_by":"","bike":"Велосипед","racingbike":"Гоночный велосипед","mtb":"Горный велосипед","car":"Автомобиль","foot":"Пешком","hike":"Пеший туризм","small_truck":"Лёгкий грузовик","bus":"Автобус","truck":"Грузовой автомобиль","staticlink":"Постоянная ссылка","motorcycle":"Мотоцикл","back_to_map":"","distance_unit":""},"sk":{"total_ascend":"%1$s yüksəliş","total_descend":"%1$s eniş","way_contains_ford":"Yolda keçid var","way_contains_ferry":"Bərəyə minin","way_contains_private":"özəl yol","way_contains_toll":"ödənişli yol","way_crosses_border":"","way_contains":"","tracks":"","steps":"","start_label":"Başlanğıc","intermediate_label":"Ara nöqtə","end_label":"Son","set_start":"Başlanğıcını burada təyin edin","set_intermediate":"Ara nöqtə olaraq təyin edin","set_end":"Bitmə məntəqəsi olaraq təyin edin","center_map":"Xəritənin mərkəzini bura təyin edin","show_coords":"Koordinatları göstər","query_osm":"","route":"Marşrut","add_to_route":"","delete_from_route":"Marşrutdan sil","open_custom_model_box":"","help_custom_model":"","apply_custom_model":"","exclude_motorway_example":"","limit_speed_example":"","exclude_area_example":"","combined_example":"","examples_custom_model":"","marker":"İşarələyici","gh_offline_info":"GraphHopper APİ ilə bağlantı qurulmadı?","refresh_button":"Səhifəni yeniləyin","server_status":"Server statusu","zoom_in":"Yaxınlaşdır","zoom_out":"Uzaqlaşdır","drag_to_reorder":"Yol nöqtəsini köçürün","route_timed_out":"Marşrutun hesablanma vaxtı keçdi","route_request_failed":"Marşrut qurulması baş tutmadı","current_location":"Hazırki yer","searching_location":"Məkan axtarışı","searching_location_failed":"Məkan axtarış baş tutmadı","via_hint":"vasitəsilə","from_hint":"-dan","gpx_export_button":"GPX ixrac","gpx_button":"","hide_button":"","details_button":"","to_hint":"-dək","route_info":"məsafə - %1$s vaxt - %2$s","search_button":"Axtarış","more_button":"daha","pt_route_info":"Təxmini çatma vaxtı %1$s transfer - %2$s (%3$s)","pt_route_info_walking":"Piyada olaraq təxmini çatma vaxtı %1$s ( %2$s)","locations_not_found":"Marşrut qurulmağı mümkün deyil. Yer müəyyən edilməyib.","search_with_nominatim":"","powered_by":"","bike":"Velosiped","racingbike":"Yarış velosipedi","mtb":"Dağ velosipedi","car":"Avtomobil","foot":"Piyada","hike":"Gəzinti","small_truck":"yüngül yük maşını","bus":"Avtobus","truck":"Yük maşını","staticlink":"Daimi keçid","motorcycle":"Motosiklet","back_to_map":"","distance_unit":""},"sl_SI":{"total_ascend":"%1$s celkové stúpanie","total_descend":"%1$s celkové klesanie","way_contains_ford":"popri ceste sa nachádza brod","way_contains_ferry":"","way_contains_private":"","way_contains_toll":"","way_crosses_border":"","way_contains":"","tracks":"","steps":"","start_label":"Začiatok","intermediate_label":"Bod trasy","end_label":"Koniec","set_start":"Nastaviť ako začiatok","set_intermediate":"Nastaviť ako bod trasy","set_end":"Nastaviť ako koniec","center_map":"Vycentrovať mapu sem","show_coords":"Zobraziť súradnice","query_osm":"","route":"Trasa","add_to_route":"","delete_from_route":"Odstrániť z trasy","open_custom_model_box":"","help_custom_model":"","apply_custom_model":"","exclude_motorway_example":"","limit_speed_example":"","exclude_area_example":"","combined_example":"","examples_custom_model":"","marker":"Značka","gh_offline_info":"GraphHopper API bez pripojenia?","refresh_button":"Obnoviť stránku","server_status":"Stav","zoom_in":"Priblížiť","zoom_out":"Oddialiť","drag_to_reorder":"Ťahaj pre zmenu poradia","route_timed_out":"","route_request_failed":"","current_location":"","searching_location":"","searching_location_failed":"","via_hint":"Cez","from_hint":"Odkiaľ","gpx_export_button":"Export do GPX","gpx_button":"","hide_button":"","details_button":"","to_hint":"Kam","route_info":"%1$s zaberie %2$s","search_button":"Vyhľadať","more_button":"viac","pt_route_info":"","pt_route_info_walking":"príchod o %1$s iba chôdzou (%2$s)","locations_not_found":"Navigovanie nie je možné. Umiestnenie nebolo nájdené v oblasti.","search_with_nominatim":"","powered_by":"","bike":"Bicykel","racingbike":"Cestný bicykel","mtb":"Horský bicykel","car":"Automobil","foot":"Pešo","hike":"Túra","small_truck":"Dodávka","bus":"Autobus","truck":"Jazdná súprava","staticlink":"nemenný odkaz","motorcycle":"Motocykel","back_to_map":"","distance_unit":""},"sr_RS":{"total_ascend":"Skupni vzpon: %1$s","total_descend":"Skupni spust: %1$s","way_contains_ford":"Na poti je pregaz","way_contains_ferry":"","way_contains_private":"","way_contains_toll":"","way_crosses_border":"","way_contains":"","tracks":"","steps":"","start_label":"Začetna točka","intermediate_label":"Vmesna točka","end_label":"Končna točka","set_start":"Nastavi kot začetno točko","set_intermediate":"Nastavi kot vmesno točko","set_end":"Nastavi kot končno točko","center_map":"Premakni na sredino","show_coords":"Prikaži koordinate","query_osm":"","route":"Pot","add_to_route":"","delete_from_route":"Izbriši iz poti","open_custom_model_box":"","help_custom_model":"","apply_custom_model":"","exclude_motorway_example":"","limit_speed_example":"","exclude_area_example":"","combined_example":"","examples_custom_model":"","marker":"Oznaka","gh_offline_info":"Je API GraphHopper morda izklopljen?","refresh_button":"Osveži stran","server_status":"Stanje","zoom_in":"Povečaj","zoom_out":"Pomanjšaj","drag_to_reorder":"Povlecite za spremembo vrstnega reda","route_timed_out":"","route_request_failed":"","current_location":"","searching_location":"","searching_location_failed":"","via_hint":"Preko","from_hint":"Od ","gpx_export_button":"Izvozi GPX","gpx_button":"","hide_button":"","details_button":"","to_hint":"Do","route_info":"%1$s bo trajalo %2$s","search_button":"Išči","more_button":"več","pt_route_info":"prispe ob %1$s s/z %2$s-imi prestopi (%3$s)","pt_route_info_walking":"prispe ob %1$s s samo hojo (%3$s)","locations_not_found":"Usmerjanje ni mogoče. Lokacije ni bilo mogoče najti na tem območju.","search_with_nominatim":"","powered_by":"","bike":"Kolo","racingbike":"Cestno kolo","mtb":"Gorsko kolo","car":"Avto","foot":"Hoja","hike":"Pohodništvo","small_truck":"Majhen tovornjak","bus":"Avtobus","truck":"Tovornjak","staticlink":"Povezava","motorcycle":"Motorno kolo","back_to_map":"","distance_unit":""},"sv_SE":{"total_ascend":"%1$s ukupni uspon","total_descend":"","way_contains_ford":"","way_contains_ferry":"","way_contains_private":"","way_contains_toll":"","way_crosses_border":"","way_contains":"","tracks":"","steps":"","start_label":"Početak","intermediate_label":"Prelazni","end_label":"Kraj","set_start":"Postavi kao početak","set_intermediate":"Postavi kao prelazni","set_end":"Postavi kao kraj","center_map":"Postavi kao centar karte","show_coords":"Prikaži koordinate","query_osm":"","route":"Ruta","add_to_route":"","delete_from_route":"Izbriši iz rute","open_custom_model_box":"","help_custom_model":"","apply_custom_model":"","exclude_motorway_example":"","limit_speed_example":"","exclude_area_example":"","combined_example":"","examples_custom_model":"","marker":"Oznaka","gh_offline_info":"GraphHopper API nedostupan","refresh_button":"Osveži stranicu","server_status":"Status","zoom_in":"","zoom_out":"","drag_to_reorder":"","route_timed_out":"","route_request_failed":"","current_location":"","searching_location":"","searching_location_failed":"","via_hint":"Preko","from_hint":"Od","gpx_export_button":"Izvezi kao GPX","gpx_button":"","hide_button":"","details_button":"","to_hint":"Do","route_info":"%1$s trajaće %2$s","search_button":"Pretraži","more_button":"više","pt_route_info":"","pt_route_info_walking":"","locations_not_found":"Rutiranje nije moguće. Lokacije nisu pronađene na ovome području.","search_with_nominatim":"","powered_by":"","bike":"Bicikl","racingbike":"Trkački motocikl","mtb":"Brdski bicikl","car":"Automobil","foot":"Pešak","hike":"","small_truck":"Mali kamion","bus":"Autobus","truck":"Kamion","staticlink":"statička veza","motorcycle":"Motocikl","back_to_map":"","distance_unit":""},"tr":{"total_ascend":"%1$s stigning","total_descend":"%1$s nedstigning","way_contains_ford":"Observera att det finns ett vadställe längs rutten","way_contains_ferry":"Ta färjan","way_contains_private":"Privat väg","way_contains_toll":"Avgiftsbelagd väg","way_crosses_border":"","way_contains":"","tracks":"","steps":"","start_label":"Start","intermediate_label":"delmål","end_label":"mål","set_start":"Ange som start","set_intermediate":"ange delmål","set_end":"Ange som mål","center_map":"Centrera kartan här","show_coords":"Visa koordinater","query_osm":"","route":"Rutt","add_to_route":"","delete_from_route":"Ta bort från rutt","open_custom_model_box":"","help_custom_model":"","apply_custom_model":"","exclude_motorway_example":"","limit_speed_example":"","exclude_area_example":"","combined_example":"","examples_custom_model":"","marker":"Markör","gh_offline_info":"GrabHopper API offline?","refresh_button":"Ladda om sida","server_status":"Status","zoom_in":"Zooma in","zoom_out":"Zooma ut","drag_to_reorder":"Dra för att ändra ordning","route_timed_out":"","route_request_failed":"","current_location":"","searching_location":"","searching_location_failed":"","via_hint":"Via","from_hint":"Från","gpx_export_button":"exportera GPX-fil","gpx_button":"","hide_button":"","details_button":"","to_hint":"Till","route_info":"%1$s med körtid %2$s","search_button":"Sök","more_button":"fler","pt_route_info":"","pt_route_info_walking":"","locations_not_found":"Kan inte beräkna rutt. Platsen eller platserna kan inte hittas i området.","search_with_nominatim":"","powered_by":"","bike":"Cykel","racingbike":"Tävlingscykel","mtb":"Mountain bike","car":"Bil","foot":"Gång","hike":"Vandra","small_truck":"lätt lastbil","bus":"Buss","truck":"Lastbil","staticlink":"direktlänk","motorcycle":"Motorcykel","back_to_map":"","distance_unit":""},"uk":{"total_ascend":"%1$s toplam tırmanış","total_descend":"%1$s toplam alçalış","way_contains_ford":"Dikkat, yolda bir sığ yer var","way_contains_ferry":"feribota bin","way_contains_private":"özel yol ","way_contains_toll":"paralı yol","way_crosses_border":"","way_contains":"","tracks":"","steps":"","start_label":"Başlangıç","intermediate_label":"Orta","end_label":"Son","set_start":"Başlangıç olarak ayarla","set_intermediate":"Orta olarak ayarla","set_end":"Bitiş olarak ayarla","center_map":"Haritayı buraya ortala","show_coords":"Koordinatları göster","query_osm":"","route":"Rota","add_to_route":"","delete_from_route":"Rotadan kaldır","open_custom_model_box":"","help_custom_model":"","apply_custom_model":"","exclude_motorway_example":"","limit_speed_example":"","exclude_area_example":"","combined_example":"","examples_custom_model":"","marker":"İşaretçi","gh_offline_info":"GraphHopper API çevrimdışı?","refresh_button":"Sayfayı yinele","server_status":"Durum","zoom_in":"Yakınlaştır","zoom_out":"Uzaklaştır ","drag_to_reorder":"Yeniden sıralamak için sürükle bırak","route_timed_out":"","route_request_failed":"","current_location":"","searching_location":"","searching_location_failed":"","via_hint":"Yoluyla","from_hint":"Şuradan","gpx_export_button":"GPX dışa aktar","gpx_button":"","hide_button":"","details_button":"","to_hint":"Yönüne","route_info":"%1$s alacak %2$s","search_button":"Ara","more_button":"daha fazlası","pt_route_info":"%2$s aktarma ile varış saati %1$s (%3$s)","pt_route_info_walking":"yürüyerek varış saati %1$s (%2$s)","locations_not_found":"Rota planlanamadı. Bölgede yer bulunamadı.","search_with_nominatim":"","powered_by":"","bike":"Bisiklet","racingbike":"Yarış Bisikleti","mtb":"Dağ Bisikleti","car":"Otomobil","foot":"Yürüyerek","hike":"Doğa yürüyüşü","small_truck":"Kamyonet","bus":"Otobüs","truck":"Kamyon","staticlink":"durağan bağlantı","motorcycle":"motosiklet","back_to_map":"","distance_unit":""},"vi_VN":{"total_ascend":"%1$s загалом підйому","total_descend":"%1$s загалом спуску","way_contains_ford":"На шляху є брід","way_contains_ferry":"","way_contains_private":"","way_contains_toll":"","way_crosses_border":"","way_contains":"","tracks":"","steps":"","start_label":"Початок","intermediate_label":"Проміжна точка","end_label":"Кінець","set_start":"Встановити початок","set_intermediate":"Додати проміжну точку","set_end":"Встановити кінець","center_map":"Відцентрувати мапу тут","show_coords":"Показати координати","query_osm":"","route":"Маршрут","add_to_route":"","delete_from_route":"Вилучити з маршруту","open_custom_model_box":"","help_custom_model":"","apply_custom_model":"","exclude_motorway_example":"","limit_speed_example":"","exclude_area_example":"","combined_example":"","examples_custom_model":"","marker":"Значок","gh_offline_info":"GraphHopper API в офлайн режимі?","refresh_button":"Оновити сторінку","server_status":"Стан","zoom_in":"Наблизити","zoom_out":"Віддалити","drag_to_reorder":"Перемістіть шляхову точку","route_timed_out":"","route_request_failed":"","current_location":"","searching_location":"","searching_location_failed":"","via_hint":"через","from_hint":"Від","gpx_export_button":"Експорт в GPX","gpx_button":"","hide_button":"","details_button":"","to_hint":"До","route_info":"%1$s займе %2$s","search_button":"Пошук","more_button":"ще","pt_route_info":"Прибуття до %1$s з %2$s пересадками (%3$s)","pt_route_info_walking":"Прибуття до %1$s пішки (%2$s) ","locations_not_found":"Побудова маршруту неможлива. Місцезнаходження не визначено.","search_with_nominatim":"","powered_by":"","bike":"Велосипед","racingbike":"Шосейний велосипед","mtb":"Гірський велосипед","car":"Автомобіль","foot":"Пішки","hike":"Пішохідний туризм","small_truck":"Мала вантажівка","bus":"Автобус","truck":"Велика вантажівка","staticlink":"статичне посилання","motorcycle":"Мотоцикл","back_to_map":"","distance_unit":""},"zh_CN":{"total_ascend":"Đi tiếp %1$s nữa","total_descend":"Tổng số hạ %1$s ","way_contains_ford":"Chú ý, có khúc sông cạn trên đường","way_contains_ferry":"","way_contains_private":"","way_contains_toll":"đường thu phí","way_crosses_border":"","way_contains":"","tracks":"","steps":"","start_label":"Điểm bắt đầu","intermediate_label":"Điểm trung gian","end_label":"Điểm kết thúc","set_start":"Chọn điểm bắt đầu","set_intermediate":"Chọn điểm trung gian","set_end":"Chọn điểm kết thúc","center_map":"Trung tâm bản đồ","show_coords":"Xem tọa độ","query_osm":"","route":"Lộ trình","add_to_route":"","delete_from_route":"Xóa khỏi tuyến đường","open_custom_model_box":"","help_custom_model":"","apply_custom_model":"","exclude_motorway_example":"","limit_speed_example":"","exclude_area_example":"","combined_example":"","examples_custom_model":"","marker":"Đánh dấu","gh_offline_info":"Mất kết nối với GH API","refresh_button":"Làm mới lại trang","server_status":"Tình trạng Server","zoom_in":"Phóng to","zoom_out":"Thu nhỏ","drag_to_reorder":"Kéo để sắp xếp lại","route_timed_out":"","route_request_failed":"","current_location":"","searching_location":"","searching_location_failed":"","via_hint":"Qua","from_hint":"Từ","gpx_export_button":"Xuất GPX","gpx_button":"","hide_button":"","details_button":"","to_hint":"Đến","route_info":"%1$s mất %2$s","search_button":"Tìm","more_button":"thêm","pt_route_info":"Đến lúc %1$s với %2$s phương tiện(tuyến) (%3$s )","pt_route_info_walking":"Đến lúc %1$s chỉ bằng cách đi bộ (%2$s)","locations_not_found":"Không tìm thấy lộ trình! Các điểm đã chọn không tìm thấy trong vùng này.","search_with_nominatim":"","powered_by":"","bike":"Xe đạp","racingbike":"Xe đạp đua","mtb":"Xe leo núi","car":"Ô tô","foot":"Đi bộ","hike":"Đi bộ đường dài","small_truck":"Xe tải nhỏ","bus":"Xe buýt","truck":"Xe tải","staticlink":"liên kết tĩnh","motorcycle":"Mô tô","back_to_map":"","distance_unit":""},"zh_HK":{"total_ascend":"总上升%1$s","total_descend":"总下降%1$s","way_contains_ford":"路径中包含河滩","way_contains_ferry":"","way_contains_private":"","way_contains_toll":"","way_crosses_border":"","way_contains":"","tracks":"","steps":"","start_label":"起点","intermediate_label":"途经点","end_label":"终点","set_start":"设置为起点","set_intermediate":"设置为途经点","set_end":"设置为终点","center_map":"地图居中到这里","show_coords":"显示坐标","query_osm":"","route":"路线","add_to_route":"","delete_from_route":"从线路中移除","open_custom_model_box":"","help_custom_model":"","apply_custom_model":"","exclude_motorway_example":"","limit_speed_example":"","exclude_area_example":"","combined_example":"","examples_custom_model":"","marker":"标记","gh_offline_info":"无法链接GraphHopper API","refresh_button":"刷新网页","server_status":"状态","zoom_in":"放大","zoom_out":"缩小","drag_to_reorder":"拖动可重新排序","route_timed_out":"","route_request_failed":"","current_location":"","searching_location":"","searching_location_failed":"","via_hint":"途经点","from_hint":"起点","gpx_export_button":"GPX导出","gpx_button":"","hide_button":"","details_button":"","to_hint":"终点","route_info":"%1$s 的路线,需要 %2$s 时间","search_button":"搜索","more_button":"更多","pt_route_info":"","pt_route_info_walking":"步行(%2$s), %1$s到达","locations_not_found":"地点未找到","search_with_nominatim":"","powered_by":"","bike":"自行车","racingbike":"竞技自行车","mtb":"山地自行车","car":"驾车","foot":"步行","hike":"徒步","small_truck":"小火车","bus":"公交车","truck":"卡车","staticlink":"静态链接","motorcycle":"摩托车","back_to_map":"","distance_unit":""},"zh_TW":{"total_ascend":"總共上昇 %1$s","total_descend":"總共下降 %1$s","way_contains_ford":"","way_contains_ferry":"","way_contains_private":"","way_contains_toll":"","way_crosses_border":"","way_contains":"","tracks":"","steps":"","start_label":"起點","intermediate_label":"途經點","end_label":"目的地","set_start":"設置為起點","set_intermediate":"設置為途經點","set_end":"設置為目的地","center_map":"","show_coords":"顯示坐標","query_osm":"","route":"路線","add_to_route":"","delete_from_route":"從路線移除","open_custom_model_box":"","help_custom_model":"","apply_custom_model":"","exclude_motorway_example":"","limit_speed_example":"","exclude_area_example":"","combined_example":"","examples_custom_model":"","marker":"標記","gh_offline_info":"無法連接 GraphHopper API","refresh_button":"刷新網頁","server_status":"狀況","zoom_in":"放大","zoom_out":"縮小","drag_to_reorder":"","route_timed_out":"","route_request_failed":"","current_location":"","searching_location":"","searching_location_failed":"","via_hint":"途經","from_hint":"起點","gpx_export_button":"GPX格式輸出","gpx_button":"","hide_button":"","details_button":"","to_hint":"目的地","route_info":"%1$s 需時 %2$s","search_button":"搜尋","more_button":"更多","pt_route_info":"","pt_route_info_walking":"","locations_not_found":"找不到起點/目的地","search_with_nominatim":"","powered_by":"","bike":"單車","racingbike":"競技單車","mtb":"越野單車","car":"汽車","foot":"步行","hike":"","small_truck":"小型貨車","bus":"巴士","truck":"貨車","staticlink":"鏈接","motorcycle":"電單車","back_to_map":"","distance_unit":""}}')}},r={};function i(t){var e=r[t];if(void 0!==e)return e.exports;var o=r[t]={id:t,exports:{}};return n[t].call(o.exports,o,o.exports,i),o.exports}i.m=n,i.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return i.d(e,{a:e}),e},i.d=(t,e)=>{for(var n in e)i.o(e,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},i.f={},i.e=t=>Promise.all(Object.keys(i.f).reduce(((e,n)=>(i.f[n](t,e),e)),[])),i.u=t=>t+".bundle.js",i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),t={},e="@graphhopper/graphhopper-maps-bundle:",i.l=(n,r,o,a)=>{if(t[n])t[n].push(r);else{var s,l;if(void 0!==o)for(var u=document.getElementsByTagName("script"),c=0;c<u.length;c++){var h=u[c];if(h.getAttribute("src")==n||h.getAttribute("data-webpack")==e+o){s=h;break}}s||(l=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,i.nc&&s.setAttribute("nonce",i.nc),s.setAttribute("data-webpack",e+o),s.src=n),t[n]=[r];var p=(e,r)=>{s.onerror=s.onload=null,clearTimeout(d);var i=t[n];if(delete t[n],s.parentNode&&s.parentNode.removeChild(s),i&&i.forEach((t=>t(r))),e)return e(r)},d=setTimeout(p.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=p.bind(null,s.onerror),s.onload=p.bind(null,s.onload),l&&document.head.appendChild(s)}},i.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{var t;i.g.importScripts&&(t=i.g.location+"");var e=i.g.document;if(!t&&e&&(e.currentScript&&(t=e.currentScript.src),!t)){var n=e.getElementsByTagName("script");n.length&&(t=n[n.length-1].src)}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),i.p=t})(),(()=>{i.b=document.baseURI||self.location.href;var t={179:0};i.f.j=(e,n)=>{var r=i.o(t,e)?t[e]:void 0;if(0!==r)if(r)n.push(r[2]);else{var o=new Promise(((n,i)=>r=t[e]=[n,i]));n.push(r[2]=o);var a=i.p+i.u(e),s=new Error;i.l(a,(n=>{if(i.o(t,e)&&(0!==(r=t[e])&&(t[e]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),a=n&&n.target&&n.target.src;s.message="Loading chunk "+e+" failed.\n("+o+": "+a+")",s.name="ChunkLoadError",s.type=o,s.request=a,r[1](s)}}),"chunk-"+e,e)}};var e=(e,n)=>{var r,o,[a,s,l]=n,u=0;if(a.some((e=>0!==t[e]))){for(r in s)i.o(s,r)&&(i.m[r]=s[r]);l&&l(i)}for(e&&e(n);u<a.length;u++)o=a[u],i.o(t,o)&&t[o]&&t[o][0](),t[o]=0},n=self.webpackChunk_graphhopper_graphhopper_maps_bundle=self.webpackChunk_graphhopper_graphhopper_maps_bundle||[];n.forEach(e.bind(null,0)),n.push=e.bind(null,n.push.bind(n))})(),i.nc=void 0,(()=>{"use strict";const t=i(3940),e=t.__importDefault(i(9526)),n=i(4470),r=i(6645),o=t.__importDefault(i(8957)),a=i(1018),s=t.__importDefault(i(4395)),l=t.__importDefault(i(8334)),u=t.__importDefault(i(5655)),c=t.__importDefault(i(8512)),h=t.__importDefault(i(5546)),p=t.__importDefault(i(9931)),d=t.__importDefault(i(8545)),f=t.__importDefault(i(4123)),g=t.__importStar(i(5746)),m=i(858),y=t.__importDefault(i(2707)),v=i(6019),_=t.__importDefault(i(4732)),b=t.__importDefault(i(500)),w=new URL(window.location.href),x=w.searchParams.get("locale");(0,r.setTranslation)(x||navigator.language);const S=w.searchParams.has("key")?w.searchParams.get("key"):g.keys.graphhopper;(0,m.setApi)(g.api,S||"");const C=w.searchParams.get("custom_model"),E=new c.default((0,m.getApi)(),C),k=new l.default(E);(0,a.setStores)({settingsStore:new b.default,queryStore:E,routeStore:k,infoStore:new u.default,errorStore:new h.default,mapOptionsStore:new p.default,pathDetailsStore:new d.default,mapFeatureStore:new _.default}),(0,v.setMap)((0,v.createMap)()),s.default.register((0,a.getSettingsStore)()),s.default.register((0,a.getQueryStore)()),s.default.register((0,a.getRouteStore)()),s.default.register((0,a.getApiInfoStore)()),s.default.register((0,a.getErrorStore)()),s.default.register((0,a.getMapOptionsStore)()),s.default.register((0,a.getPathDetailsStore)()),s.default.register((0,a.getMapFeatureStore)());const A=window.matchMedia("(max-width: 44rem)"),P=new y.default((0,v.getMap)(),k,(()=>A.matches));s.default.register(P),(0,m.getApi)().infoWithDispatch(),new f.default((0,a.getQueryStore)(),(0,a.getMapOptionsStore)()).parseUrlAndReplaceQuery();const T=document.createElement("div");T.id="root",T.style.height="100%",document.body.appendChild(T),(0,n.createRoot)(T).render(e.default.createElement(o.default,null))})()})();