react-swipe-map 1.0.2 → 1.0.3
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.
- package/README.md +210 -59
- package/dist/index.es.js +25645 -24042
- package/dist/index.umd.js +240 -85
- package/dist/style.css +1 -1
- package/package.json +2 -2
package/dist/index.umd.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
(function(fn,A){typeof exports=="object"&&typeof module<"u"?A(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],A):(fn=typeof globalThis<"u"?globalThis:fn||self,A(fn.ReactPersonalCard={},fn.React,fn.ReactDOM))})(this,function(fn,A,Ln){"use strict";var nC=Object.defineProperty;var rC=(fn,A,Ln)=>A in fn?nC(fn,A,{enumerable:!0,configurable:!0,writable:!0,value:Ln}):fn[A]=Ln;var q=(fn,A,Ln)=>(rC(fn,typeof A!="symbol"?A+"":A,Ln),Ln);var Bc=document.createElement("style");Bc.textContent=`.leaflet-pane,.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-tile-container,.leaflet-pane>svg,.leaflet-pane>canvas,.leaflet-zoom-box,.leaflet-image-layer,.leaflet-layer{position:absolute;left:0;top:0}.leaflet-container{overflow:hidden}.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow{-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-user-drag:none}.leaflet-tile::selection{background:transparent}.leaflet-safari .leaflet-tile{image-rendering:-webkit-optimize-contrast}.leaflet-safari .leaflet-tile-container{width:1600px;height:1600px;-webkit-transform-origin:0 0}.leaflet-marker-icon,.leaflet-marker-shadow{display:block}.leaflet-container .leaflet-overlay-pane svg{max-width:none!important;max-height:none!important}.leaflet-container .leaflet-marker-pane img,.leaflet-container .leaflet-shadow-pane img,.leaflet-container .leaflet-tile-pane img,.leaflet-container img.leaflet-image-layer,.leaflet-container .leaflet-tile{max-width:none!important;max-height:none!important;width:auto;padding:0}.leaflet-container img.leaflet-tile{mix-blend-mode:plus-lighter}.leaflet-container.leaflet-touch-zoom{-ms-touch-action:pan-x pan-y;touch-action:pan-x pan-y}.leaflet-container.leaflet-touch-drag{-ms-touch-action:pinch-zoom;touch-action:none;touch-action:pinch-zoom}.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom{-ms-touch-action:none;touch-action:none}.leaflet-container{-webkit-tap-highlight-color:transparent}.leaflet-container a{-webkit-tap-highlight-color:rgba(51,181,229,.4)}.leaflet-tile{filter:inherit;visibility:hidden}.leaflet-tile-loaded{visibility:inherit}.leaflet-zoom-box{width:0;height:0;-moz-box-sizing:border-box;box-sizing:border-box;z-index:800}.leaflet-overlay-pane svg{-moz-user-select:none}.leaflet-pane{z-index:400}.leaflet-tile-pane{z-index:200}.leaflet-overlay-pane{z-index:400}.leaflet-shadow-pane{z-index:500}.leaflet-marker-pane{z-index:600}.leaflet-tooltip-pane{z-index:650}.leaflet-popup-pane{z-index:700}.leaflet-map-pane canvas{z-index:100}.leaflet-map-pane svg{z-index:200}.leaflet-vml-shape{width:1px;height:1px}.lvml{behavior:url(#default#VML);display:inline-block;position:absolute}.leaflet-control{position:relative;z-index:800;pointer-events:visiblePainted;pointer-events:auto}.leaflet-top,.leaflet-bottom{position:absolute;z-index:1000;pointer-events:none}.leaflet-top{top:0}.leaflet-right{right:0}.leaflet-bottom{bottom:0}.leaflet-left{left:0}.leaflet-control{float:left;clear:both}.leaflet-right .leaflet-control{float:right}.leaflet-top .leaflet-control{margin-top:10px}.leaflet-bottom .leaflet-control{margin-bottom:10px}.leaflet-left .leaflet-control{margin-left:10px}.leaflet-right .leaflet-control{margin-right:10px}.leaflet-fade-anim .leaflet-popup{opacity:0;-webkit-transition:opacity .2s linear;-moz-transition:opacity .2s linear;transition:opacity .2s linear}.leaflet-fade-anim .leaflet-map-pane .leaflet-popup{opacity:1}.leaflet-zoom-animated{-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0}svg.leaflet-zoom-animated{will-change:transform}.leaflet-zoom-anim .leaflet-zoom-animated{-webkit-transition:-webkit-transform .25s cubic-bezier(0,0,.25,1);-moz-transition:-moz-transform .25s cubic-bezier(0,0,.25,1);transition:transform .25s cubic-bezier(0,0,.25,1)}.leaflet-zoom-anim .leaflet-tile,.leaflet-pan-anim .leaflet-tile{-webkit-transition:none;-moz-transition:none;transition:none}.leaflet-zoom-anim .leaflet-zoom-hide{visibility:hidden}.leaflet-interactive{cursor:pointer}.leaflet-grab{cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.leaflet-crosshair,.leaflet-crosshair .leaflet-interactive{cursor:crosshair}.leaflet-popup-pane,.leaflet-control{cursor:auto}.leaflet-dragging .leaflet-grab,.leaflet-dragging .leaflet-grab .leaflet-interactive,.leaflet-dragging .leaflet-marker-draggable{cursor:move;cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-image-layer,.leaflet-pane>svg path,.leaflet-tile-container{pointer-events:none}.leaflet-marker-icon.leaflet-interactive,.leaflet-image-layer.leaflet-interactive,.leaflet-pane>svg path.leaflet-interactive,svg.leaflet-image-layer.leaflet-interactive path{pointer-events:visiblePainted;pointer-events:auto}.leaflet-container{background:#ddd;outline-offset:1px}.leaflet-container a{color:#0078a8}.leaflet-zoom-box{border:2px dotted #38f;background:rgba(255,255,255,.5)}.leaflet-container{font-family:Helvetica Neue,Arial,Helvetica,sans-serif;font-size:12px;font-size:.75rem;line-height:1.5}.leaflet-bar{box-shadow:0 1px 5px #000000a6;border-radius:4px}.leaflet-bar a{background-color:#fff;border-bottom:1px solid #ccc;width:26px;height:26px;line-height:26px;display:block;text-align:center;text-decoration:none;color:#000}.leaflet-bar a,.leaflet-control-layers-toggle{background-position:50% 50%;background-repeat:no-repeat;display:block}.leaflet-bar a:hover,.leaflet-bar a:focus{background-color:#f4f4f4}.leaflet-bar a:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.leaflet-bar a:last-child{border-bottom-left-radius:4px;border-bottom-right-radius:4px;border-bottom:none}.leaflet-bar a.leaflet-disabled{cursor:default;background-color:#f4f4f4;color:#bbb}.leaflet-touch .leaflet-bar a{width:30px;height:30px;line-height:30px}.leaflet-touch .leaflet-bar a:first-child{border-top-left-radius:2px;border-top-right-radius:2px}.leaflet-touch .leaflet-bar a:last-child{border-bottom-left-radius:2px;border-bottom-right-radius:2px}.leaflet-control-zoom-in,.leaflet-control-zoom-out{font:700 18px Lucida Console,Monaco,monospace;text-indent:1px}.leaflet-touch .leaflet-control-zoom-in,.leaflet-touch .leaflet-control-zoom-out{font-size:22px}.leaflet-control-layers{box-shadow:0 1px 5px #0006;background:#fff;border-radius:5px}.leaflet-control-layers-toggle{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAQAAAADQ4RFAAACf0lEQVR4AY1UM3gkARTePdvdoTxXKc+qTl3aU5U6b2Kbkz3Gtq3Zw6ziLGNPzrYx7946Tr6/ee/XeCQ4D3ykPtL5tHno4n0d/h3+xfuWHGLX81cn7r0iTNzjr7LrlxCqPtkbTQEHeqOrTy4Yyt3VCi/IOB0v7rVC7q45Q3Gr5K6jt+3Gl5nCoDD4MtO+j96Wu8atmhGqcNGHObuf8OM/x3AMx38+4Z2sPqzCxRFK2aF2e5Jol56XTLyggAMTL56XOMoS1W4pOyjUcGGQdZxU6qRh7B9Zp+PfpOFlqt0zyDZckPi1ttmIp03jX8gyJ8a/PG2yutpS/Vol7peZIbZcKBAEEheEIAgFbDkz5H6Zrkm2hVWGiXKiF4Ycw0RWKdtC16Q7qe3X4iOMxruonzegJzWaXFrU9utOSsLUmrc0YjeWYjCW4PDMADElpJSSQ0vQvA1Tm6/JlKnqFs1EGyZiFCqnRZTEJJJiKRYzVYzJck2Rm6P4iH+cmSY0YzimYa8l0EtTODFWhcMIMVqdsI2uiTvKmTisIDHJ3od5GILVhBCarCfVRmo4uTjkhrhzkiBV7SsaqS+TzrzM1qpGGUFt28pIySQHR6h7F6KSwGWm97ay+Z+ZqMcEjEWebE7wxCSQwpkhJqoZA5ivCdZDjJepuJ9IQjGGUmuXJdBFUygxVqVsxFsLMbDe8ZbDYVCGKxs+W080max1hFCarCfV+C1KATwcnvE9gRRuMP2prdbWGowm1KB1y+zwMMENkM755cJ2yPDtqhTI6ED1M/82yIDtC/4j4BijjeObflpO9I9MwXTCsSX8jWAFeHr05WoLTJ5G8IQVS/7vwR6ohirYM7f6HzYpogfS3R2OAAAAAElFTkSuQmCC);width:36px;height:36px}.leaflet-retina .leaflet-control-layers-toggle{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAQAAABvcdNgAAAEsklEQVR4AWL4TydIhpZK1kpWOlg0w3ZXP6D2soBtG42jeI6ZmQTHzAxiTbSJsYLjO9HhP+WOmcuhciVnmHVQcJnp7DFvScowZorad/+V/fVzMdMT2g9Cv9guXGv/7pYOrXh2U+RRR3dSd9JRx6bIFc/ekqHI29JC6pJ5ZEh1yWkhkbcFeSjxgx3L2m1cb1C7bceyxA+CNjT/Ifff+/kDk2u/w/33/IeCMOSaWZ4glosqT3DNnNZQ7Cs58/3Ce5HL78iZH/vKVIaYlqzfdLu8Vi7dnvUbEza5Idt36tquZFldl6N5Z/POLof0XLK61mZCmJSWjVF9tEjUluu74IUXvgttuVIHE7YxSkaYhJZam7yiM9Pv82JYfl9nptxZaxMJE4YSPty+vF0+Y2up9d3wwijfjZbabqm/3bZ9ecKHsiGmRflnn1MW4pjHf9oLufyn2z3y1D6n8g8TZhxyzipLNPnAUpsOiuWimg52psrTZYnOWYNDTMuWBWa0tJb4rgq1UvmutpaYEbZlwU3CLJm/ayYjHW5/h7xWLn9Hh1vepDkyf7dE7MtT5LR4e7yYpHrkhOUpEfssBLq2pPhAqoSWKUkk7EDqkmK6RrCEzqDjhNDWNE+XSMvkJRDWlZTmCW0l0PHQGRZY5t1L83kT0Y3l2SItk5JAWHl2dCOBm+fPu3fo5/3v61RMCO9Jx2EEYYhb0rmNQMX/vm7gqOEJLcXTGw3CAuRNeyaPWwjR8PRqKQ1PDA/dpv+on9Shox52WFnx0KY8onHayrJzm87i5h9xGw/tfkev0jGsQizqezUKjk12hBMKJ4kbCqGPVNXudyyrShovGw5CgxsRICxF6aRmSjlBnHRzg7Gx8fKqEubI2rahQYdR1YgDIRQO7JvQyD52hoIQx0mxa0ODtW2Iozn1le2iIRdzwWewedyZzewidueOGqlsn1MvcnQpuVwLGG3/IR1hIKxCjelIDZ8ldqWz25jWAsnldEnK0Zxro19TGVb2ffIZEsIO89EIEDvKMPrzmBOQcKQ+rroye6NgRRxqR4U8EAkz0CL6uSGOm6KQCdWjvjRiSP1BPalCRS5iQYiEIvxuBMJEWgzSoHADcVMuN7IuqqTeyUPq22qFimFtxDyBBJEwNyt6TM88blFHao/6tWWhuuOM4SAK4EI4QmFHA+SEyWlp4EQoJ13cYGzMu7yszEIBOm2rVmHUNqwAIQabISNMRstmdhNWcFLsSm+0tjJH1MdRxO5Nx0WDMhCtgD6OKgZeljJqJKc9po8juskR9XN0Y1lZ3mWjLR9JCO1jRDMd0fpYC2VnvjBSEFg7wBENc0R9HFlb0xvF1+TBEpF68d+DHR6IOWVv2BECtxo46hOFUBd/APU57WIoEwJhIi2CdpyZX0m93BZicktMj1AS9dClteUFAUNUIEygRZCtik5zSxI9MubTBH1GOiHsiLJ3OCoSZkILa9PxiN0EbvhsAo8tdAf9Seepd36lGWHmtNANTv5Jd0z4QYyeo/UEJqxKRpg5LZx6btLPsOaEmdMyxYdlc8LMaJnikDlhclqmPiQnTEpLUIZEwkRagjYkEibQErwhkTAKCLQEbUgkzJQWc/0PstHHcfEdQ+UAAAAASUVORK5CYII=);background-size:26px 26px}.leaflet-touch .leaflet-control-layers-toggle{width:44px;height:44px}.leaflet-control-layers .leaflet-control-layers-list,.leaflet-control-layers-expanded .leaflet-control-layers-toggle{display:none}.leaflet-control-layers-expanded .leaflet-control-layers-list{display:block;position:relative}.leaflet-control-layers-expanded{padding:6px 10px 6px 6px;color:#333;background:#fff}.leaflet-control-layers-scrollbar{overflow-y:scroll;overflow-x:hidden;padding-right:5px}.leaflet-control-layers-selector{margin-top:2px;position:relative;top:1px}.leaflet-control-layers label{display:block;font-size:13px;font-size:1.08333em}.leaflet-control-layers-separator{height:0;border-top:1px solid #ddd;margin:5px -10px 5px -6px}.leaflet-default-icon-path{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAApCAYAAADAk4LOAAAFgUlEQVR4Aa1XA5BjWRTN2oW17d3YaZtr2962HUzbDNpjszW24mRt28p47v7zq/bXZtrp/lWnXr337j3nPCe85NcypgSFdugCpW5YoDAMRaIMqRi6aKq5E3YqDQO3qAwjVWrD8Ncq/RBpykd8oZUb/kaJutow8r1aP9II0WmLKLIsJyv1w/kqw9Ch2MYdB++12Onxee/QMwvf4/Dk/Lfp/i4nxTXtOoQ4pW5Aj7wpici1A9erdAN2OH64x8OSP9j3Ft3b7aWkTg/Fm91siTra0f9on5sQr9INejH6CUUUpavjFNq1B+Oadhxmnfa8RfEmN8VNAsQhPqF55xHkMzz3jSmChWU6f7/XZKNH+9+hBLOHYozuKQPxyMPUKkrX/K0uWnfFaJGS1QPRtZsOPtr3NsW0uyh6NNCOkU3Yz+bXbT3I8G3xE5EXLXtCXbbqwCO9zPQYPRTZ5vIDXD7U+w7rFDEoUUf7ibHIR4y6bLVPXrz8JVZEql13trxwue/uDivd3fkWRbS6/IA2bID4uk0UpF1N8qLlbBlXs4Ee7HLTfV1j54APvODnSfOWBqtKVvjgLKzF5YdEk5ewRkGlK0i33Eofffc7HT56jD7/6U+qH3Cx7SBLNntH5YIPvODnyfIXZYRVDPqgHtLs5ABHD3YzLuespb7t79FY34DjMwrVrcTuwlT55YMPvOBnRrJ4VXTdNnYug5ucHLBjEpt30701A3Ts+HEa73u6dT3FNWwflY86eMHPk+Yu+i6pzUpRrW7SNDg5JHR4KapmM5Wv2E8Tfcb1HoqqHMHU+uWDD7zg54mz5/2BSnizi9T1Dg4QQXLToGNCkb6tb1NU+QAlGr1++eADrzhn/u8Q2YZhQVlZ5+CAOtqfbhmaUCS1ezNFVm2imDbPmPng5wmz+gwh+oHDce0eUtQ6OGDIyR0uUhUsoO3vfDmmgOezH0mZN59x7MBi++WDL1g/eEiU3avlidO671bkLfwbw5XV2P8Pzo0ydy4t2/0eu33xYSOMOD8hTf4CrBtGMSoXfPLchX+J0ruSePw3LZeK0juPJbYzrhkH0io7B3k164hiGvawhOKMLkrQLyVpZg8rHFW7E2uHOL888IBPlNZ1FPzstSJM694fWr6RwpvcJK60+0HCILTBzZLFNdtAzJaohze60T8qBzyh5ZuOg5e7uwQppofEmf2++DYvmySqGBuKaicF1blQjhuHdvCIMvp8whTTfZzI7RldpwtSzL+F1+wkdZ2TBOW2gIF88PBTzD/gpeREAMEbxnJcaJHNHrpzji0gQCS6hdkEeYt9DF/2qPcEC8RM28Hwmr3sdNyht00byAut2k3gufWNtgtOEOFGUwcXWNDbdNbpgBGxEvKkOQsxivJx33iow0Vw5S6SVTrpVq11ysA2Rp7gTfPfktc6zhtXBBC+adRLshf6sG2RfHPZ5EAc4sVZ83yCN00Fk/4kggu40ZTvIEm5g24qtU4KjBrx/BTTH8ifVASAG7gKrnWxJDcU7x8X6Ecczhm3o6YicvsLXWfh3Ch1W0k8x0nXF+0fFxgt4phz8QvypiwCCFKMqXCnqXExjq10beH+UUA7+nG6mdG/Pu0f3LgFcGrl2s0kNNjpmoJ9o4B29CMO8dMT4Q5ox8uitF6fqsrJOr8qnwNbRzv6hSnG5wP+64C7h9lp30hKNtKdWjtdkbuPA19nJ7Tz3zR/ibgARbhb4AlhavcBebmTHcFl2fvYEnW0ox9xMxKBS8btJ+KiEbq9zA4RthQXDhPa0T9TEe69gWupwc6uBUphquXgf+/FrIjweHQS4/pduMe5ERUMHUd9xv8ZR98CxkS4F2n3EUrUZ10EYNw7BWm9x1GiPssi3GgiGRDKWRYZfXlON+dfNbM+GgIwYdwAAAAASUVORK5CYII=)}.leaflet-container .leaflet-control-attribution{background:#fff;background:rgba(255,255,255,.8);margin:0}.leaflet-control-attribution,.leaflet-control-scale-line{padding:0 5px;color:#333;line-height:1.4}.leaflet-control-attribution a{text-decoration:none}.leaflet-control-attribution a:hover,.leaflet-control-attribution a:focus{text-decoration:underline}.leaflet-attribution-flag{display:inline!important;vertical-align:baseline!important;width:1em;height:.6669em}.leaflet-left .leaflet-control-scale{margin-left:5px}.leaflet-bottom .leaflet-control-scale{margin-bottom:5px}.leaflet-control-scale-line{border:2px solid #777;border-top:none;line-height:1.1;padding:2px 5px 1px;white-space:nowrap;-moz-box-sizing:border-box;box-sizing:border-box;background:rgba(255,255,255,.8);text-shadow:1px 1px #fff}.leaflet-control-scale-line:not(:first-child){border-top:2px solid #777;border-bottom:none;margin-top:-2px}.leaflet-control-scale-line:not(:first-child):not(:last-child){border-bottom:2px solid #777}.leaflet-touch .leaflet-control-attribution,.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{box-shadow:none}.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{border:2px solid rgba(0,0,0,.2);background-clip:padding-box}.leaflet-popup{position:absolute;text-align:center;margin-bottom:20px}.leaflet-popup-content-wrapper{padding:1px;text-align:left;border-radius:12px}.leaflet-popup-content{margin:13px 24px 13px 20px;line-height:1.3;font-size:13px;font-size:1.08333em;min-height:1px}.leaflet-popup-content p{margin:1.3em 0}.leaflet-popup-tip-container{width:40px;height:20px;position:absolute;left:50%;margin-top:-1px;margin-left:-20px;overflow:hidden;pointer-events:none}.leaflet-popup-tip{width:17px;height:17px;padding:1px;margin:-10px auto 0;pointer-events:auto;-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.leaflet-popup-content-wrapper,.leaflet-popup-tip{background:white;color:#333;box-shadow:0 3px 14px #0006}.leaflet-container a.leaflet-popup-close-button{position:absolute;top:0;right:0;border:none;text-align:center;width:24px;height:24px;font:16px/24px Tahoma,Verdana,sans-serif;color:#757575;text-decoration:none;background:transparent}.leaflet-container a.leaflet-popup-close-button:hover,.leaflet-container a.leaflet-popup-close-button:focus{color:#585858}.leaflet-popup-scrolled{overflow:auto}.leaflet-oldie .leaflet-popup-content-wrapper{-ms-zoom:1}.leaflet-oldie .leaflet-popup-tip{width:24px;margin:0 auto;-ms-filter:"progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";filter:progid:DXImageTransform.Microsoft.Matrix(M11=.70710678,M12=.70710678,M21=-.70710678,M22=.70710678)}.leaflet-oldie .leaflet-control-zoom,.leaflet-oldie .leaflet-control-layers,.leaflet-oldie .leaflet-popup-content-wrapper,.leaflet-oldie .leaflet-popup-tip{border:1px solid #999}.leaflet-div-icon{background:#fff;border:1px solid #666}.leaflet-tooltip{position:absolute;padding:6px;background-color:#fff;border:1px solid #fff;border-radius:3px;color:#222;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none;box-shadow:0 1px 3px #0006}.leaflet-tooltip.leaflet-interactive{cursor:pointer;pointer-events:auto}.leaflet-tooltip-top:before,.leaflet-tooltip-bottom:before,.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{position:absolute;pointer-events:none;border:6px solid transparent;background:transparent;content:""}.leaflet-tooltip-bottom{margin-top:6px}.leaflet-tooltip-top{margin-top:-6px}.leaflet-tooltip-bottom:before,.leaflet-tooltip-top:before{left:50%;margin-left:-6px}.leaflet-tooltip-top:before{bottom:0;margin-bottom:-12px;border-top-color:#fff}.leaflet-tooltip-bottom:before{top:0;margin-top:-12px;margin-left:-6px;border-bottom-color:#fff}.leaflet-tooltip-left{margin-left:-6px}.leaflet-tooltip-right{margin-left:6px}.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{top:50%;margin-top:-6px}.leaflet-tooltip-left:before{right:0;margin-right:-12px;border-left-color:#fff}.leaflet-tooltip-right:before{left:0;margin-left:-12px;border-right-color:#fff}@media print{.leaflet-control{-webkit-print-color-adjust:exact;print-color-adjust:exact}}.leaflet-sbs-range{position:absolute;top:50%;width:100%;z-index:999}.leaflet-sbs-divider{position:absolute;top:0;bottom:0;left:50%;margin-left:-2px;width:4px;background-color:#fff;pointer-events:none;z-index:999}.leaflet-sbs-range{-webkit-appearance:none;display:inline-block!important;vertical-align:middle;height:0;padding:0;margin:0;border:0;background:rgba(0,0,0,.25);min-width:100px;cursor:pointer;pointer-events:none;z-index:999}.leaflet-sbs-range::-ms-fill-upper{background:transparent}.leaflet-sbs-range::-ms-fill-lower{background:rgba(255,255,255,.25)}.leaflet-sbs-range::-moz-range-track{opacity:0}.leaflet-sbs-range::-ms-track{opacity:0}.leaflet-sbs-range::-ms-tooltip{display:none}.leaflet-sbs-range::-webkit-slider-thumb{-webkit-appearance:none;margin:0;padding:0;background:#fff;height:40px;width:40px;border-radius:20px;cursor:ew-resize;pointer-events:auto;border:1px solid #ddd;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAMAAAC5zwKfAAAABlBMVEV9fX3///+Kct39AAAAAnRSTlP/AOW3MEoAAAA9SURBVFjD7dehDQAwDANBZ/+l2wmKoiqR7pHRcaeaCxAIBAL/g7k9JxAIBAKBQCAQCAQC14H+MhAIBE4CD3fOFvGVBzhZAAAAAElFTkSuQmCC);background-position:50% 50%;background-repeat:no-repeat;background-size:40px 40px}.leaflet-sbs-range::-ms-thumb{margin:0;padding:0;background:#fff;height:40px;width:40px;border-radius:20px;cursor:ew-resize;pointer-events:auto;border:1px solid #ddd;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAMAAAC5zwKfAAAABlBMVEV9fX3///+Kct39AAAAAnRSTlP/AOW3MEoAAAA9SURBVFjD7dehDQAwDANBZ/+l2wmKoiqR7pHRcaeaCxAIBAL/g7k9JxAIBAKBQCAQCAQC14H+MhAIBE4CD3fOFvGVBzhZAAAAAElFTkSuQmCC);background-position:50% 50%;background-repeat:no-repeat;background-size:40px 40px}.leaflet-sbs-range::-moz-range-thumb{padding:0;right:0;background:#fff;height:40px;width:40px;border-radius:20px;cursor:ew-resize;pointer-events:auto;border:1px solid #ddd;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAMAAAC5zwKfAAAABlBMVEV9fX3///+Kct39AAAAAnRSTlP/AOW3MEoAAAA9SURBVFjD7dehDQAwDANBZ/+l2wmKoiqR7pHRcaeaCxAIBAL/g7k9JxAIBAKBQCAQCAQC14H+MhAIBE4CD3fOFvGVBzhZAAAAAElFTkSuQmCC);background-position:50% 50%;background-repeat:no-repeat;background-size:40px 40px}.leaflet-sbs-range:disabled::-moz-range-thumb{cursor:default}.leaflet-sbs-range:disabled::-ms-thumb{cursor:default}.leaflet-sbs-range:disabled::-webkit-slider-thumb{cursor:default}.leaflet-sbs-range:disabled{cursor:default}.leaflet-sbs-range:focus{outline:none!important}.leaflet-sbs-range::-moz-focus-outer{border:0}.switch-map-mode{width:30px;height:30px;background-color:#fff;border-radius:2px;text-align:center;font-size:20px;display:flex;align-items:center;justify-content:center}.switch-map-mode .map-icon{width:25px;height:25px}.select-base-map-button{width:30px;height:30px;background-color:#fff;border-radius:2px;text-align:center;font-size:20px;cursor:pointer;display:flex;align-items:center;justify-content:center}
|
|
2
|
-
`,document.head.appendChild(
|
|
1
|
+
(function(ce,ji){typeof exports=="object"&&typeof module<"u"?ji(require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["react","react-dom"],ji):(ce=typeof globalThis<"u"?globalThis:ce||self,ji(ce.React,ce.ReactDOM))})(this,function(ce,ji){"use strict";var KO=Object.defineProperty;var YO=(ce,ji,Hs)=>ji in ce?KO(ce,ji,{enumerable:!0,configurable:!0,writable:!0,value:Hs}):ce[ji]=Hs;var Io=(ce,ji,Hs)=>(YO(ce,typeof ji!="symbol"?ji+"":ji,Hs),Hs);var Hs=document.createElement("style");Hs.textContent=`:root{font-family:system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#242424;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}body{margin:0;display:flex;place-items:center;min-width:320px;min-height:100vh}h1{font-size:3.2em;line-height:1.1}button{border-radius:8px;border:1px solid transparent;padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;background-color:#1a1a1a;cursor:pointer;transition:border-color .25s}button:hover{border-color:#646cff}button:focus,button:focus-visible{outline:4px auto -webkit-focus-ring-color}@media (prefers-color-scheme: light){:root{color:#213547;background-color:#fff}a:hover{color:#747bff}button{background-color:#f9f9f9}}.leaflet-pane,.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-tile-container,.leaflet-pane>svg,.leaflet-pane>canvas,.leaflet-zoom-box,.leaflet-image-layer,.leaflet-layer{position:absolute;left:0;top:0}.leaflet-container{overflow:hidden}.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow{-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-user-drag:none}.leaflet-tile::selection{background:transparent}.leaflet-safari .leaflet-tile{image-rendering:-webkit-optimize-contrast}.leaflet-safari .leaflet-tile-container{width:1600px;height:1600px;-webkit-transform-origin:0 0}.leaflet-marker-icon,.leaflet-marker-shadow{display:block}.leaflet-container .leaflet-overlay-pane svg{max-width:none!important;max-height:none!important}.leaflet-container .leaflet-marker-pane img,.leaflet-container .leaflet-shadow-pane img,.leaflet-container .leaflet-tile-pane img,.leaflet-container img.leaflet-image-layer,.leaflet-container .leaflet-tile{max-width:none!important;max-height:none!important;width:auto;padding:0}.leaflet-container img.leaflet-tile{mix-blend-mode:plus-lighter}.leaflet-container.leaflet-touch-zoom{-ms-touch-action:pan-x pan-y;touch-action:pan-x pan-y}.leaflet-container.leaflet-touch-drag{-ms-touch-action:pinch-zoom;touch-action:none;touch-action:pinch-zoom}.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom{-ms-touch-action:none;touch-action:none}.leaflet-container{-webkit-tap-highlight-color:transparent}.leaflet-container a{-webkit-tap-highlight-color:rgba(51,181,229,.4)}.leaflet-tile{filter:inherit;visibility:hidden}.leaflet-tile-loaded{visibility:inherit}.leaflet-zoom-box{width:0;height:0;-moz-box-sizing:border-box;box-sizing:border-box;z-index:800}.leaflet-overlay-pane svg{-moz-user-select:none}.leaflet-pane{z-index:400}.leaflet-tile-pane{z-index:200}.leaflet-overlay-pane{z-index:400}.leaflet-shadow-pane{z-index:500}.leaflet-marker-pane{z-index:600}.leaflet-tooltip-pane{z-index:650}.leaflet-popup-pane{z-index:700}.leaflet-map-pane canvas{z-index:100}.leaflet-map-pane svg{z-index:200}.leaflet-vml-shape{width:1px;height:1px}.lvml{behavior:url(#default#VML);display:inline-block;position:absolute}.leaflet-control{position:relative;z-index:800;pointer-events:visiblePainted;pointer-events:auto}.leaflet-top,.leaflet-bottom{position:absolute;z-index:1000;pointer-events:none}.leaflet-top{top:0}.leaflet-right{right:0}.leaflet-bottom{bottom:0}.leaflet-left{left:0}.leaflet-control{float:left;clear:both}.leaflet-right .leaflet-control{float:right}.leaflet-top .leaflet-control{margin-top:10px}.leaflet-bottom .leaflet-control{margin-bottom:10px}.leaflet-left .leaflet-control{margin-left:10px}.leaflet-right .leaflet-control{margin-right:10px}.leaflet-fade-anim .leaflet-popup{opacity:0;-webkit-transition:opacity .2s linear;-moz-transition:opacity .2s linear;transition:opacity .2s linear}.leaflet-fade-anim .leaflet-map-pane .leaflet-popup{opacity:1}.leaflet-zoom-animated{-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0}svg.leaflet-zoom-animated{will-change:transform}.leaflet-zoom-anim .leaflet-zoom-animated{-webkit-transition:-webkit-transform .25s cubic-bezier(0,0,.25,1);-moz-transition:-moz-transform .25s cubic-bezier(0,0,.25,1);transition:transform .25s cubic-bezier(0,0,.25,1)}.leaflet-zoom-anim .leaflet-tile,.leaflet-pan-anim .leaflet-tile{-webkit-transition:none;-moz-transition:none;transition:none}.leaflet-zoom-anim .leaflet-zoom-hide{visibility:hidden}.leaflet-interactive{cursor:pointer}.leaflet-grab{cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.leaflet-crosshair,.leaflet-crosshair .leaflet-interactive{cursor:crosshair}.leaflet-popup-pane,.leaflet-control{cursor:auto}.leaflet-dragging .leaflet-grab,.leaflet-dragging .leaflet-grab .leaflet-interactive,.leaflet-dragging .leaflet-marker-draggable{cursor:move;cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-image-layer,.leaflet-pane>svg path,.leaflet-tile-container{pointer-events:none}.leaflet-marker-icon.leaflet-interactive,.leaflet-image-layer.leaflet-interactive,.leaflet-pane>svg path.leaflet-interactive,svg.leaflet-image-layer.leaflet-interactive path{pointer-events:visiblePainted;pointer-events:auto}.leaflet-container{background:#ddd;outline-offset:1px}.leaflet-container a{color:#0078a8}.leaflet-zoom-box{border:2px dotted #38f;background:rgba(255,255,255,.5)}.leaflet-container{font-family:Helvetica Neue,Arial,Helvetica,sans-serif;font-size:12px;font-size:.75rem;line-height:1.5}.leaflet-bar{box-shadow:0 1px 5px #000000a6;border-radius:4px}.leaflet-bar a{background-color:#fff;border-bottom:1px solid #ccc;width:26px;height:26px;line-height:26px;display:block;text-align:center;text-decoration:none;color:#000}.leaflet-bar a,.leaflet-control-layers-toggle{background-position:50% 50%;background-repeat:no-repeat;display:block}.leaflet-bar a:hover,.leaflet-bar a:focus{background-color:#f4f4f4}.leaflet-bar a:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.leaflet-bar a:last-child{border-bottom-left-radius:4px;border-bottom-right-radius:4px;border-bottom:none}.leaflet-bar a.leaflet-disabled{cursor:default;background-color:#f4f4f4;color:#bbb}.leaflet-touch .leaflet-bar a{width:30px;height:30px;line-height:30px}.leaflet-touch .leaflet-bar a:first-child{border-top-left-radius:2px;border-top-right-radius:2px}.leaflet-touch .leaflet-bar a:last-child{border-bottom-left-radius:2px;border-bottom-right-radius:2px}.leaflet-control-zoom-in,.leaflet-control-zoom-out{font:700 18px Lucida Console,Monaco,monospace;text-indent:1px}.leaflet-touch .leaflet-control-zoom-in,.leaflet-touch .leaflet-control-zoom-out{font-size:22px}.leaflet-control-layers{box-shadow:0 1px 5px #0006;background:#fff;border-radius:5px}.leaflet-control-layers-toggle{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAQAAAADQ4RFAAACf0lEQVR4AY1UM3gkARTePdvdoTxXKc+qTl3aU5U6b2Kbkz3Gtq3Zw6ziLGNPzrYx7946Tr6/ee/XeCQ4D3ykPtL5tHno4n0d/h3+xfuWHGLX81cn7r0iTNzjr7LrlxCqPtkbTQEHeqOrTy4Yyt3VCi/IOB0v7rVC7q45Q3Gr5K6jt+3Gl5nCoDD4MtO+j96Wu8atmhGqcNGHObuf8OM/x3AMx38+4Z2sPqzCxRFK2aF2e5Jol56XTLyggAMTL56XOMoS1W4pOyjUcGGQdZxU6qRh7B9Zp+PfpOFlqt0zyDZckPi1ttmIp03jX8gyJ8a/PG2yutpS/Vol7peZIbZcKBAEEheEIAgFbDkz5H6Zrkm2hVWGiXKiF4Ycw0RWKdtC16Q7qe3X4iOMxruonzegJzWaXFrU9utOSsLUmrc0YjeWYjCW4PDMADElpJSSQ0vQvA1Tm6/JlKnqFs1EGyZiFCqnRZTEJJJiKRYzVYzJck2Rm6P4iH+cmSY0YzimYa8l0EtTODFWhcMIMVqdsI2uiTvKmTisIDHJ3od5GILVhBCarCfVRmo4uTjkhrhzkiBV7SsaqS+TzrzM1qpGGUFt28pIySQHR6h7F6KSwGWm97ay+Z+ZqMcEjEWebE7wxCSQwpkhJqoZA5ivCdZDjJepuJ9IQjGGUmuXJdBFUygxVqVsxFsLMbDe8ZbDYVCGKxs+W080max1hFCarCfV+C1KATwcnvE9gRRuMP2prdbWGowm1KB1y+zwMMENkM755cJ2yPDtqhTI6ED1M/82yIDtC/4j4BijjeObflpO9I9MwXTCsSX8jWAFeHr05WoLTJ5G8IQVS/7vwR6ohirYM7f6HzYpogfS3R2OAAAAAElFTkSuQmCC);width:36px;height:36px}.leaflet-retina .leaflet-control-layers-toggle{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAQAAABvcdNgAAAEsklEQVR4AWL4TydIhpZK1kpWOlg0w3ZXP6D2soBtG42jeI6ZmQTHzAxiTbSJsYLjO9HhP+WOmcuhciVnmHVQcJnp7DFvScowZorad/+V/fVzMdMT2g9Cv9guXGv/7pYOrXh2U+RRR3dSd9JRx6bIFc/ekqHI29JC6pJ5ZEh1yWkhkbcFeSjxgx3L2m1cb1C7bceyxA+CNjT/Ifff+/kDk2u/w/33/IeCMOSaWZ4glosqT3DNnNZQ7Cs58/3Ce5HL78iZH/vKVIaYlqzfdLu8Vi7dnvUbEza5Idt36tquZFldl6N5Z/POLof0XLK61mZCmJSWjVF9tEjUluu74IUXvgttuVIHE7YxSkaYhJZam7yiM9Pv82JYfl9nptxZaxMJE4YSPty+vF0+Y2up9d3wwijfjZbabqm/3bZ9ecKHsiGmRflnn1MW4pjHf9oLufyn2z3y1D6n8g8TZhxyzipLNPnAUpsOiuWimg52psrTZYnOWYNDTMuWBWa0tJb4rgq1UvmutpaYEbZlwU3CLJm/ayYjHW5/h7xWLn9Hh1vepDkyf7dE7MtT5LR4e7yYpHrkhOUpEfssBLq2pPhAqoSWKUkk7EDqkmK6RrCEzqDjhNDWNE+XSMvkJRDWlZTmCW0l0PHQGRZY5t1L83kT0Y3l2SItk5JAWHl2dCOBm+fPu3fo5/3v61RMCO9Jx2EEYYhb0rmNQMX/vm7gqOEJLcXTGw3CAuRNeyaPWwjR8PRqKQ1PDA/dpv+on9Shox52WFnx0KY8onHayrJzm87i5h9xGw/tfkev0jGsQizqezUKjk12hBMKJ4kbCqGPVNXudyyrShovGw5CgxsRICxF6aRmSjlBnHRzg7Gx8fKqEubI2rahQYdR1YgDIRQO7JvQyD52hoIQx0mxa0ODtW2Iozn1le2iIRdzwWewedyZzewidueOGqlsn1MvcnQpuVwLGG3/IR1hIKxCjelIDZ8ldqWz25jWAsnldEnK0Zxro19TGVb2ffIZEsIO89EIEDvKMPrzmBOQcKQ+rroye6NgRRxqR4U8EAkz0CL6uSGOm6KQCdWjvjRiSP1BPalCRS5iQYiEIvxuBMJEWgzSoHADcVMuN7IuqqTeyUPq22qFimFtxDyBBJEwNyt6TM88blFHao/6tWWhuuOM4SAK4EI4QmFHA+SEyWlp4EQoJ13cYGzMu7yszEIBOm2rVmHUNqwAIQabISNMRstmdhNWcFLsSm+0tjJH1MdRxO5Nx0WDMhCtgD6OKgZeljJqJKc9po8juskR9XN0Y1lZ3mWjLR9JCO1jRDMd0fpYC2VnvjBSEFg7wBENc0R9HFlb0xvF1+TBEpF68d+DHR6IOWVv2BECtxo46hOFUBd/APU57WIoEwJhIi2CdpyZX0m93BZicktMj1AS9dClteUFAUNUIEygRZCtik5zSxI9MubTBH1GOiHsiLJ3OCoSZkILa9PxiN0EbvhsAo8tdAf9Seepd36lGWHmtNANTv5Jd0z4QYyeo/UEJqxKRpg5LZx6btLPsOaEmdMyxYdlc8LMaJnikDlhclqmPiQnTEpLUIZEwkRagjYkEibQErwhkTAKCLQEbUgkzJQWc/0PstHHcfEdQ+UAAAAASUVORK5CYII=);background-size:26px 26px}.leaflet-touch .leaflet-control-layers-toggle{width:44px;height:44px}.leaflet-control-layers .leaflet-control-layers-list,.leaflet-control-layers-expanded .leaflet-control-layers-toggle{display:none}.leaflet-control-layers-expanded .leaflet-control-layers-list{display:block;position:relative}.leaflet-control-layers-expanded{padding:6px 10px 6px 6px;color:#333;background:#fff}.leaflet-control-layers-scrollbar{overflow-y:scroll;overflow-x:hidden;padding-right:5px}.leaflet-control-layers-selector{margin-top:2px;position:relative;top:1px}.leaflet-control-layers label{display:block;font-size:13px;font-size:1.08333em}.leaflet-control-layers-separator{height:0;border-top:1px solid #ddd;margin:5px -10px 5px -6px}.leaflet-default-icon-path{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAApCAYAAADAk4LOAAAFgUlEQVR4Aa1XA5BjWRTN2oW17d3YaZtr2962HUzbDNpjszW24mRt28p47v7zq/bXZtrp/lWnXr337j3nPCe85NcypgSFdugCpW5YoDAMRaIMqRi6aKq5E3YqDQO3qAwjVWrD8Ncq/RBpykd8oZUb/kaJutow8r1aP9II0WmLKLIsJyv1w/kqw9Ch2MYdB++12Onxee/QMwvf4/Dk/Lfp/i4nxTXtOoQ4pW5Aj7wpici1A9erdAN2OH64x8OSP9j3Ft3b7aWkTg/Fm91siTra0f9on5sQr9INejH6CUUUpavjFNq1B+Oadhxmnfa8RfEmN8VNAsQhPqF55xHkMzz3jSmChWU6f7/XZKNH+9+hBLOHYozuKQPxyMPUKkrX/K0uWnfFaJGS1QPRtZsOPtr3NsW0uyh6NNCOkU3Yz+bXbT3I8G3xE5EXLXtCXbbqwCO9zPQYPRTZ5vIDXD7U+w7rFDEoUUf7ibHIR4y6bLVPXrz8JVZEql13trxwue/uDivd3fkWRbS6/IA2bID4uk0UpF1N8qLlbBlXs4Ee7HLTfV1j54APvODnSfOWBqtKVvjgLKzF5YdEk5ewRkGlK0i33Eofffc7HT56jD7/6U+qH3Cx7SBLNntH5YIPvODnyfIXZYRVDPqgHtLs5ABHD3YzLuespb7t79FY34DjMwrVrcTuwlT55YMPvOBnRrJ4VXTdNnYug5ucHLBjEpt30701A3Ts+HEa73u6dT3FNWwflY86eMHPk+Yu+i6pzUpRrW7SNDg5JHR4KapmM5Wv2E8Tfcb1HoqqHMHU+uWDD7zg54mz5/2BSnizi9T1Dg4QQXLToGNCkb6tb1NU+QAlGr1++eADrzhn/u8Q2YZhQVlZ5+CAOtqfbhmaUCS1ezNFVm2imDbPmPng5wmz+gwh+oHDce0eUtQ6OGDIyR0uUhUsoO3vfDmmgOezH0mZN59x7MBi++WDL1g/eEiU3avlidO671bkLfwbw5XV2P8Pzo0ydy4t2/0eu33xYSOMOD8hTf4CrBtGMSoXfPLchX+J0ruSePw3LZeK0juPJbYzrhkH0io7B3k164hiGvawhOKMLkrQLyVpZg8rHFW7E2uHOL888IBPlNZ1FPzstSJM694fWr6RwpvcJK60+0HCILTBzZLFNdtAzJaohze60T8qBzyh5ZuOg5e7uwQppofEmf2++DYvmySqGBuKaicF1blQjhuHdvCIMvp8whTTfZzI7RldpwtSzL+F1+wkdZ2TBOW2gIF88PBTzD/gpeREAMEbxnJcaJHNHrpzji0gQCS6hdkEeYt9DF/2qPcEC8RM28Hwmr3sdNyht00byAut2k3gufWNtgtOEOFGUwcXWNDbdNbpgBGxEvKkOQsxivJx33iow0Vw5S6SVTrpVq11ysA2Rp7gTfPfktc6zhtXBBC+adRLshf6sG2RfHPZ5EAc4sVZ83yCN00Fk/4kggu40ZTvIEm5g24qtU4KjBrx/BTTH8ifVASAG7gKrnWxJDcU7x8X6Ecczhm3o6YicvsLXWfh3Ch1W0k8x0nXF+0fFxgt4phz8QvypiwCCFKMqXCnqXExjq10beH+UUA7+nG6mdG/Pu0f3LgFcGrl2s0kNNjpmoJ9o4B29CMO8dMT4Q5ox8uitF6fqsrJOr8qnwNbRzv6hSnG5wP+64C7h9lp30hKNtKdWjtdkbuPA19nJ7Tz3zR/ibgARbhb4AlhavcBebmTHcFl2fvYEnW0ox9xMxKBS8btJ+KiEbq9zA4RthQXDhPa0T9TEe69gWupwc6uBUphquXgf+/FrIjweHQS4/pduMe5ERUMHUd9xv8ZR98CxkS4F2n3EUrUZ10EYNw7BWm9x1GiPssi3GgiGRDKWRYZfXlON+dfNbM+GgIwYdwAAAAASUVORK5CYII=)}.leaflet-container .leaflet-control-attribution{background:#fff;background:rgba(255,255,255,.8);margin:0}.leaflet-control-attribution,.leaflet-control-scale-line{padding:0 5px;color:#333;line-height:1.4}.leaflet-control-attribution a{text-decoration:none}.leaflet-control-attribution a:hover,.leaflet-control-attribution a:focus{text-decoration:underline}.leaflet-attribution-flag{display:inline!important;vertical-align:baseline!important;width:1em;height:.6669em}.leaflet-left .leaflet-control-scale{margin-left:5px}.leaflet-bottom .leaflet-control-scale{margin-bottom:5px}.leaflet-control-scale-line{border:2px solid #777;border-top:none;line-height:1.1;padding:2px 5px 1px;white-space:nowrap;-moz-box-sizing:border-box;box-sizing:border-box;background:rgba(255,255,255,.8);text-shadow:1px 1px #fff}.leaflet-control-scale-line:not(:first-child){border-top:2px solid #777;border-bottom:none;margin-top:-2px}.leaflet-control-scale-line:not(:first-child):not(:last-child){border-bottom:2px solid #777}.leaflet-touch .leaflet-control-attribution,.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{box-shadow:none}.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{border:2px solid rgba(0,0,0,.2);background-clip:padding-box}.leaflet-popup{position:absolute;text-align:center;margin-bottom:20px}.leaflet-popup-content-wrapper{padding:1px;text-align:left;border-radius:12px}.leaflet-popup-content{margin:13px 24px 13px 20px;line-height:1.3;font-size:13px;font-size:1.08333em;min-height:1px}.leaflet-popup-content p{margin:1.3em 0}.leaflet-popup-tip-container{width:40px;height:20px;position:absolute;left:50%;margin-top:-1px;margin-left:-20px;overflow:hidden;pointer-events:none}.leaflet-popup-tip{width:17px;height:17px;padding:1px;margin:-10px auto 0;pointer-events:auto;-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.leaflet-popup-content-wrapper,.leaflet-popup-tip{background:white;color:#333;box-shadow:0 3px 14px #0006}.leaflet-container a.leaflet-popup-close-button{position:absolute;top:0;right:0;border:none;text-align:center;width:24px;height:24px;font:16px/24px Tahoma,Verdana,sans-serif;color:#757575;text-decoration:none;background:transparent}.leaflet-container a.leaflet-popup-close-button:hover,.leaflet-container a.leaflet-popup-close-button:focus{color:#585858}.leaflet-popup-scrolled{overflow:auto}.leaflet-oldie .leaflet-popup-content-wrapper{-ms-zoom:1}.leaflet-oldie .leaflet-popup-tip{width:24px;margin:0 auto;-ms-filter:"progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";filter:progid:DXImageTransform.Microsoft.Matrix(M11=.70710678,M12=.70710678,M21=-.70710678,M22=.70710678)}.leaflet-oldie .leaflet-control-zoom,.leaflet-oldie .leaflet-control-layers,.leaflet-oldie .leaflet-popup-content-wrapper,.leaflet-oldie .leaflet-popup-tip{border:1px solid #999}.leaflet-div-icon{background:#fff;border:1px solid #666}.leaflet-tooltip{position:absolute;padding:6px;background-color:#fff;border:1px solid #fff;border-radius:3px;color:#222;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none;box-shadow:0 1px 3px #0006}.leaflet-tooltip.leaflet-interactive{cursor:pointer;pointer-events:auto}.leaflet-tooltip-top:before,.leaflet-tooltip-bottom:before,.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{position:absolute;pointer-events:none;border:6px solid transparent;background:transparent;content:""}.leaflet-tooltip-bottom{margin-top:6px}.leaflet-tooltip-top{margin-top:-6px}.leaflet-tooltip-bottom:before,.leaflet-tooltip-top:before{left:50%;margin-left:-6px}.leaflet-tooltip-top:before{bottom:0;margin-bottom:-12px;border-top-color:#fff}.leaflet-tooltip-bottom:before{top:0;margin-top:-12px;margin-left:-6px;border-bottom-color:#fff}.leaflet-tooltip-left{margin-left:-6px}.leaflet-tooltip-right{margin-left:6px}.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{top:50%;margin-top:-6px}.leaflet-tooltip-left:before{right:0;margin-right:-12px;border-left-color:#fff}.leaflet-tooltip-right:before{left:0;margin-left:-12px;border-right-color:#fff}@media print{.leaflet-control{-webkit-print-color-adjust:exact;print-color-adjust:exact}}.app-container{width:calc(100vw - 20px);height:calc(100vh - 20px);display:flex;background-color:#f5f5f5;gap:10px;padding:10px}.app-content{width:70%;height:100%}.app-right{width:30%;height:100%;background-color:#fff}
|
|
2
|
+
`,document.head.appendChild(Hs);function Uw(s){const u=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(s){for(const h in s)if(h!=="default"){const d=Object.getOwnPropertyDescriptor(s,h);Object.defineProperty(u,h,d.get?d:{enumerable:!0,get:()=>s[h]})}}return u.default=s,Object.freeze(u)}const X=Uw(ce);var ku=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ug(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}var Vh={exports:{}},ec={};/**
|
|
3
3
|
* @license React
|
|
4
4
|
* react-jsx-runtime.production.min.js
|
|
5
5
|
*
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*
|
|
8
8
|
* This source code is licensed under the MIT license found in the
|
|
9
9
|
* LICENSE file in the root directory of this source tree.
|
|
10
|
-
*/var
|
|
10
|
+
*/var Qg;function Qw(){if(Qg)return ec;Qg=1;var s=ce,u=Symbol.for("react.element"),h=Symbol.for("react.fragment"),d=Object.prototype.hasOwnProperty,y=s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,k={key:!0,ref:!0,__self:!0,__source:!0};function M(T,H,Z){var v,V={},K=null,pe=null;Z!==void 0&&(K=""+Z),H.key!==void 0&&(K=""+H.key),H.ref!==void 0&&(pe=H.ref);for(v in H)d.call(H,v)&&!k.hasOwnProperty(v)&&(V[v]=H[v]);if(T&&T.defaultProps)for(v in H=T.defaultProps,H)V[v]===void 0&&(V[v]=H[v]);return{$$typeof:u,type:T,key:K,ref:pe,props:V,_owner:y.current}}return ec.Fragment=h,ec.jsx=M,ec.jsxs=M,ec}var tc={};/**
|
|
11
11
|
* @license React
|
|
12
12
|
* react-jsx-runtime.development.js
|
|
13
13
|
*
|
|
@@ -15,25 +15,232 @@
|
|
|
15
15
|
*
|
|
16
16
|
* This source code is licensed under the MIT license found in the
|
|
17
17
|
* LICENSE file in the root directory of this source tree.
|
|
18
|
-
*/var
|
|
19
|
-
`+
|
|
20
|
-
`),
|
|
21
|
-
`),
|
|
22
|
-
`+
|
|
18
|
+
*/var Jg;function Jw(){return Jg||(Jg=1,process.env.NODE_ENV!=="production"&&function(){var s=ce,u=Symbol.for("react.element"),h=Symbol.for("react.portal"),d=Symbol.for("react.fragment"),y=Symbol.for("react.strict_mode"),k=Symbol.for("react.profiler"),M=Symbol.for("react.provider"),T=Symbol.for("react.context"),H=Symbol.for("react.forward_ref"),Z=Symbol.for("react.suspense"),v=Symbol.for("react.suspense_list"),V=Symbol.for("react.memo"),K=Symbol.for("react.lazy"),pe=Symbol.for("react.offscreen"),de=Symbol.iterator,re="@@iterator";function ne(G){if(G===null||typeof G!="object")return null;var Ce=de&&G[de]||G[re];return typeof Ce=="function"?Ce:null}var ue=s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function ge(G){{for(var Ce=arguments.length,De=new Array(Ce>1?Ce-1:0),Ke=1;Ke<Ce;Ke++)De[Ke-1]=arguments[Ke];ve("error",G,De)}}function ve(G,Ce,De){{var Ke=ue.ReactDebugCurrentFrame,Bt=Ke.getStackAddendum();Bt!==""&&(Ce+="%s",De=De.concat([Bt]));var _n=De.map(function(xt){return String(xt)});_n.unshift("Warning: "+Ce),Function.prototype.apply.call(console[G],console,_n)}}var xe=!1,Ie=!1,Ue=!1,Pe=!1,Oe=!1,wt;wt=Symbol.for("react.module.reference");function dt(G){return!!(typeof G=="string"||typeof G=="function"||G===d||G===k||Oe||G===y||G===Z||G===v||Pe||G===pe||xe||Ie||Ue||typeof G=="object"&&G!==null&&(G.$$typeof===K||G.$$typeof===V||G.$$typeof===M||G.$$typeof===T||G.$$typeof===H||G.$$typeof===wt||G.getModuleId!==void 0))}function Be(G,Ce,De){var Ke=G.displayName;if(Ke)return Ke;var Bt=Ce.displayName||Ce.name||"";return Bt!==""?De+"("+Bt+")":De}function et(G){return G.displayName||"Context"}function lt(G){if(G==null)return null;if(typeof G.tag=="number"&&ge("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof G=="function")return G.displayName||G.name||null;if(typeof G=="string")return G;switch(G){case d:return"Fragment";case h:return"Portal";case k:return"Profiler";case y:return"StrictMode";case Z:return"Suspense";case v:return"SuspenseList"}if(typeof G=="object")switch(G.$$typeof){case T:var Ce=G;return et(Ce)+".Consumer";case M:var De=G;return et(De._context)+".Provider";case H:return Be(G,G.render,"ForwardRef");case V:var Ke=G.displayName||null;return Ke!==null?Ke:lt(G.type)||"Memo";case K:{var Bt=G,_n=Bt._payload,xt=Bt._init;try{return lt(xt(_n))}catch{return null}}}return null}var ot=Object.assign,Pt=0,Ut,gt,Te,mn,He,Ot,Lt;function dn(){}dn.__reactDisabledLog=!0;function Je(){{if(Pt===0){Ut=console.log,gt=console.info,Te=console.warn,mn=console.error,He=console.group,Ot=console.groupCollapsed,Lt=console.groupEnd;var G={configurable:!0,enumerable:!0,value:dn,writable:!0};Object.defineProperties(console,{info:G,log:G,warn:G,error:G,group:G,groupCollapsed:G,groupEnd:G})}Pt++}}function Ct(){{if(Pt--,Pt===0){var G={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:ot({},G,{value:Ut}),info:ot({},G,{value:gt}),warn:ot({},G,{value:Te}),error:ot({},G,{value:mn}),group:ot({},G,{value:He}),groupCollapsed:ot({},G,{value:Ot}),groupEnd:ot({},G,{value:Lt})})}Pt<0&&ge("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var bt=ue.ReactCurrentDispatcher,Ye;function Rt(G,Ce,De){{if(Ye===void 0)try{throw Error()}catch(Bt){var Ke=Bt.stack.trim().match(/\n( *(at )?)/);Ye=Ke&&Ke[1]||""}return`
|
|
19
|
+
`+Ye+G}}var Ht=!1,On;{var Dn=typeof WeakMap=="function"?WeakMap:Map;On=new Dn}function ho(G,Ce){if(!G||Ht)return"";{var De=On.get(G);if(De!==void 0)return De}var Ke;Ht=!0;var Bt=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var _n;_n=bt.current,bt.current=null,Je();try{if(Ce){var xt=function(){throw Error()};if(Object.defineProperty(xt.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(xt,[])}catch(To){Ke=To}Reflect.construct(G,[],xt)}else{try{xt.call()}catch(To){Ke=To}G.call(xt.prototype)}}else{try{throw Error()}catch(To){Ke=To}G()}}catch(To){if(To&&Ke&&typeof To.stack=="string"){for(var kt=To.stack.split(`
|
|
20
|
+
`),qn=Ke.stack.split(`
|
|
21
|
+
`),nn=kt.length-1,Bn=qn.length-1;nn>=1&&Bn>=0&&kt[nn]!==qn[Bn];)Bn--;for(;nn>=1&&Bn>=0;nn--,Bn--)if(kt[nn]!==qn[Bn]){if(nn!==1||Bn!==1)do if(nn--,Bn--,Bn<0||kt[nn]!==qn[Bn]){var Re=`
|
|
22
|
+
`+kt[nn].replace(" at new "," at ");return G.displayName&&Re.includes("<anonymous>")&&(Re=Re.replace("<anonymous>",G.displayName)),typeof G=="function"&&On.set(G,Re),Re}while(nn>=1&&Bn>=0);break}}}finally{Ht=!1,bt.current=_n,Ct(),Error.prepareStackTrace=Bt}var zo=G?G.displayName||G.name:"",Bi=zo?Rt(zo):"";return typeof G=="function"&&On.set(G,Bi),Bi}function gn(G,Ce,De){return ho(G,!1)}function vt(G){var Ce=G.prototype;return!!(Ce&&Ce.isReactComponent)}function Tt(G,Ce,De){if(G==null)return"";if(typeof G=="function")return ho(G,vt(G));if(typeof G=="string")return Rt(G);switch(G){case Z:return Rt("Suspense");case v:return Rt("SuspenseList")}if(typeof G=="object")switch(G.$$typeof){case H:return gn(G.render);case V:return Tt(G.type,Ce,De);case K:{var Ke=G,Bt=Ke._payload,_n=Ke._init;try{return Tt(_n(Bt),Ce,De)}catch{}}}return""}var vn=Object.prototype.hasOwnProperty,En={},jn=ue.ReactDebugCurrentFrame;function Zn(G){if(G){var Ce=G._owner,De=Tt(G.type,G._source,Ce?Ce.type:null);jn.setExtraStackFrame(De)}else jn.setExtraStackFrame(null)}function eo(G,Ce,De,Ke,Bt){{var _n=Function.call.bind(vn);for(var xt in G)if(_n(G,xt)){var kt=void 0;try{if(typeof G[xt]!="function"){var qn=Error((Ke||"React class")+": "+De+" type `"+xt+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof G[xt]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw qn.name="Invariant Violation",qn}kt=G[xt](Ce,xt,Ke,De,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(nn){kt=nn}kt&&!(kt instanceof Error)&&(Zn(Bt),ge("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",Ke||"React class",De,xt,typeof kt),Zn(null)),kt instanceof Error&&!(kt.message in En)&&(En[kt.message]=!0,Zn(Bt),ge("Failed %s type: %s",De,kt.message),Zn(null))}}}var to=Array.isArray;function Ri(G){return to(G)}function Jn(G){{var Ce=typeof Symbol=="function"&&Symbol.toStringTag,De=Ce&&G[Symbol.toStringTag]||G.constructor.name||"Object";return De}}function Kn(G){try{return ii(G),!1}catch{return!0}}function ii(G){return""+G}function fo(G){if(Kn(G))return ge("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Jn(G)),ii(G)}var hi=ue.ReactCurrentOwner,zi={key:!0,ref:!0,__self:!0,__source:!0},Si,yn,xo;xo={};function Vn(G){if(vn.call(G,"ref")){var Ce=Object.getOwnPropertyDescriptor(G,"ref").get;if(Ce&&Ce.isReactWarning)return!1}return G.ref!==void 0}function fi(G){if(vn.call(G,"key")){var Ce=Object.getOwnPropertyDescriptor(G,"key").get;if(Ce&&Ce.isReactWarning)return!1}return G.key!==void 0}function no(G,Ce){if(typeof G.ref=="string"&&hi.current&&Ce&&hi.current.stateNode!==Ce){var De=lt(hi.current.type);xo[De]||(ge('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',lt(hi.current.type),G.ref),xo[De]=!0)}}function tn(G,Ce){{var De=function(){Si||(Si=!0,ge("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",Ce))};De.isReactWarning=!0,Object.defineProperty(G,"key",{get:De,configurable:!0})}}function Fn(G,Ce){{var De=function(){yn||(yn=!0,ge("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",Ce))};De.isReactWarning=!0,Object.defineProperty(G,"ref",{get:De,configurable:!0})}}var po=function(G,Ce,De,Ke,Bt,_n,xt){var kt={$$typeof:u,type:G,key:Ce,ref:De,props:xt,_owner:_n};return kt._store={},Object.defineProperty(kt._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(kt,"_self",{configurable:!1,enumerable:!1,writable:!1,value:Ke}),Object.defineProperty(kt,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Bt}),Object.freeze&&(Object.freeze(kt.props),Object.freeze(kt)),kt};function Wn(G,Ce,De,Ke,Bt){{var _n,xt={},kt=null,qn=null;De!==void 0&&(fo(De),kt=""+De),fi(Ce)&&(fo(Ce.key),kt=""+Ce.key),Vn(Ce)&&(qn=Ce.ref,no(Ce,Bt));for(_n in Ce)vn.call(Ce,_n)&&!zi.hasOwnProperty(_n)&&(xt[_n]=Ce[_n]);if(G&&G.defaultProps){var nn=G.defaultProps;for(_n in nn)xt[_n]===void 0&&(xt[_n]=nn[_n])}if(kt||qn){var Bn=typeof G=="function"?G.displayName||G.name||"Unknown":G;kt&&tn(xt,Bn),qn&&Fn(xt,Bn)}return po(G,kt,qn,Bt,Ke,hi.current,xt)}}var Wt=ue.ReactCurrentOwner,pi=ue.ReactDebugCurrentFrame;function Rn(G){if(G){var Ce=G._owner,De=Tt(G.type,G._source,Ce?Ce.type:null);pi.setExtraStackFrame(De)}else pi.setExtraStackFrame(null)}var oo;oo=!1;function ri(G){return typeof G=="object"&&G!==null&&G.$$typeof===u}function In(){{if(Wt.current){var G=lt(Wt.current.type);if(G)return`
|
|
23
23
|
|
|
24
|
-
Check the render method of \``+
|
|
24
|
+
Check the render method of \``+G+"`."}return""}}function Mo(G){{if(G!==void 0){var Ce=G.fileName.replace(/^.*[\\\/]/,""),De=G.lineNumber;return`
|
|
25
25
|
|
|
26
|
-
Check your code at `+
|
|
26
|
+
Check your code at `+Ce+":"+De+"."}return""}}var or={};function pr(G){{var Ce=In();if(!Ce){var De=typeof G=="string"?G:G.displayName||G.name;De&&(Ce=`
|
|
27
27
|
|
|
28
|
-
Check the top-level render call using <`+
|
|
28
|
+
Check the top-level render call using <`+De+">.")}return Ce}}function ir(G,Ce){{if(!G._store||G._store.validated||G.key!=null)return;G._store.validated=!0;var De=pr(Ce);if(or[De])return;or[De]=!0;var Ke="";G&&G._owner&&G._owner!==Wt.current&&(Ke=" It was passed a child from "+lt(G._owner.type)+"."),Rn(G),ge('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',De,Ke),Rn(null)}}function Zi(G,Ce){{if(typeof G!="object")return;if(Ri(G))for(var De=0;De<G.length;De++){var Ke=G[De];ri(Ke)&&ir(Ke,Ce)}else if(ri(G))G._store&&(G._store.validated=!0);else if(G){var Bt=ne(G);if(typeof Bt=="function"&&Bt!==G.entries)for(var _n=Bt.call(G),xt;!(xt=_n.next()).done;)ri(xt.value)&&ir(xt.value,Ce)}}}function mo(G){{var Ce=G.type;if(Ce==null||typeof Ce=="string")return;var De;if(typeof Ce=="function")De=Ce.propTypes;else if(typeof Ce=="object"&&(Ce.$$typeof===H||Ce.$$typeof===V))De=Ce.propTypes;else return;if(De){var Ke=lt(Ce);eo(De,G.props,"prop",Ke,G)}else if(Ce.PropTypes!==void 0&&!oo){oo=!0;var Bt=lt(Ce);ge("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Bt||"Unknown")}typeof Ce.getDefaultProps=="function"&&!Ce.getDefaultProps.isReactClassApproved&&ge("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function mi(G){{for(var Ce=Object.keys(G.props),De=0;De<Ce.length;De++){var Ke=Ce[De];if(Ke!=="children"&&Ke!=="key"){Rn(G),ge("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",Ke),Rn(null);break}}G.ref!==null&&(Rn(G),ge("Invalid attribute `ref` supplied to `React.Fragment`."),Rn(null))}}var gi={};function Go(G,Ce,De,Ke,Bt,_n){{var xt=dt(G);if(!xt){var kt="";(G===void 0||typeof G=="object"&&G!==null&&Object.keys(G).length===0)&&(kt+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var qn=Mo(Bt);qn?kt+=qn:kt+=In();var nn;G===null?nn="null":Ri(G)?nn="array":G!==void 0&&G.$$typeof===u?(nn="<"+(lt(G.type)||"Unknown")+" />",kt=" Did you accidentally export a JSX literal instead of a component?"):nn=typeof G,ge("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",nn,kt)}var Bn=Wn(G,Ce,De,Bt,_n);if(Bn==null)return Bn;if(xt){var Re=Ce.children;if(Re!==void 0)if(Ke)if(Ri(Re)){for(var zo=0;zo<Re.length;zo++)Zi(Re[zo],G);Object.freeze&&Object.freeze(Re)}else ge("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Zi(Re,G)}if(vn.call(Ce,"key")){var Bi=lt(G),To=Object.keys(Ce).filter(function(Ho){return Ho!=="key"}),vi=To.length>0?"{key: someKey, "+To.join(": ..., ")+": ...}":"{key: someKey}";if(!gi[Bi+vi]){var si=To.length>0?"{"+To.join(": ..., ")+": ...}":"{}";ge(`A props object containing a "key" prop is being spread into JSX:
|
|
29
29
|
let props = %s;
|
|
30
30
|
<%s {...props} />
|
|
31
31
|
React keys must be passed directly to JSX without using spread:
|
|
32
32
|
let props = %s;
|
|
33
|
-
<%s key={someKey} {...props} />`,
|
|
33
|
+
<%s key={someKey} {...props} />`,vi,Bi,si,Bi),gi[Bi+vi]=!0}}return G===d?mi(Bn):mo(Bn),Bn}}function Po(G,Ce,De){return Go(G,Ce,De,!0)}function it(G,Ce,De){return Go(G,Ce,De,!1)}var Ei=it,Fo=Po;tc.Fragment=d,tc.jsx=Ei,tc.jsxs=Fo}()),tc}process.env.NODE_ENV==="production"?Vh.exports=Qw():Vh.exports=Jw();var is=Vh.exports,Iu,Mu=ji;if(process.env.NODE_ENV==="production")Iu=Mu.createRoot,Mu.hydrateRoot;else{var Kg=Mu.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;Iu=function(s,u){Kg.usingClientEntryPoint=!0;try{return Mu.createRoot(s,u)}finally{Kg.usingClientEntryPoint=!1}}}const XO="";var Wh={exports:{}};/* @preserve
|
|
34
34
|
* Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com
|
|
35
35
|
* (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade
|
|
36
|
-
*/(function(e,n){(function(r,o){o(n)})(nm,function(r){var o="1.9.4";function s(t){var i,a,u,p;for(a=1,u=arguments.length;a<u;a++){p=arguments[a];for(i in p)t[i]=p[i]}return t}var l=Object.create||function(){function t(){}return function(i){return t.prototype=i,new t}}();function c(t,i){var a=Array.prototype.slice;if(t.bind)return t.bind.apply(t,a.call(arguments,1));var u=a.call(arguments,2);return function(){return t.apply(i,u.length?u.concat(a.call(arguments)):arguments)}}var d=0;function h(t){return"_leaflet_id"in t||(t._leaflet_id=++d),t._leaflet_id}function g(t,i,a){var u,p,w,O;return O=function(){u=!1,p&&(w.apply(a,p),p=!1)},w=function(){u?p=arguments:(t.apply(a,arguments),setTimeout(O,i),u=!0)},w}function m(t,i,a){var u=i[1],p=i[0],w=u-p;return t===u&&a?t:((t-p)%w+w)%w+p}function v(){return!1}function y(t,i){if(i===!1)return t;var a=Math.pow(10,i===void 0?6:i);return Math.round(t*a)/a}function C(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function _(t){return C(t).split(/\s+/)}function x(t,i){Object.prototype.hasOwnProperty.call(t,"options")||(t.options=t.options?l(t.options):{});for(var a in i)t.options[a]=i[a];return t.options}function b(t,i,a){var u=[];for(var p in t)u.push(encodeURIComponent(a?p.toUpperCase():p)+"="+encodeURIComponent(t[p]));return(!i||i.indexOf("?")===-1?"?":"&")+u.join("&")}var E=/\{ *([\w_ -]+) *\}/g;function S(t,i){return t.replace(E,function(a,u){var p=i[u];if(p===void 0)throw new Error("No value provided for variable "+a);return typeof p=="function"&&(p=p(i)),p})}var P=Array.isArray||function(t){return Object.prototype.toString.call(t)==="[object Array]"};function I(t,i){for(var a=0;a<t.length;a++)if(t[a]===i)return a;return-1}var M="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function k(t){return window["webkit"+t]||window["moz"+t]||window["ms"+t]}var N=0;function R(t){var i=+new Date,a=Math.max(0,16-(i-N));return N=i+a,window.setTimeout(t,a)}var B=window.requestAnimationFrame||k("RequestAnimationFrame")||R,z=window.cancelAnimationFrame||k("CancelAnimationFrame")||k("CancelRequestAnimationFrame")||function(t){window.clearTimeout(t)};function $(t,i,a){if(a&&B===R)t.call(i);else return B.call(window,c(t,i))}function j(t){t&&z.call(window,t)}var V={__proto__:null,extend:s,create:l,bind:c,get lastId(){return d},stamp:h,throttle:g,wrapNum:m,falseFn:v,formatNum:y,trim:C,splitWords:_,setOptions:x,getParamString:b,template:S,isArray:P,indexOf:I,emptyImageUrl:M,requestFn:B,cancelFn:z,requestAnimFrame:$,cancelAnimFrame:j};function W(){}W.extend=function(t){var i=function(){x(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},a=i.__super__=this.prototype,u=l(a);u.constructor=i,i.prototype=u;for(var p in this)Object.prototype.hasOwnProperty.call(this,p)&&p!=="prototype"&&p!=="__super__"&&(i[p]=this[p]);return t.statics&&s(i,t.statics),t.includes&&(F(t.includes),s.apply(null,[u].concat(t.includes))),s(u,t),delete u.statics,delete u.includes,u.options&&(u.options=a.options?l(a.options):{},s(u.options,t.options)),u._initHooks=[],u.callInitHooks=function(){if(!this._initHooksCalled){a.callInitHooks&&a.callInitHooks.call(this),this._initHooksCalled=!0;for(var w=0,O=u._initHooks.length;w<O;w++)u._initHooks[w].call(this)}},i},W.include=function(t){var i=this.prototype.options;return s(this.prototype,t),t.options&&(this.prototype.options=i,this.mergeOptions(t.options)),this},W.mergeOptions=function(t){return s(this.prototype.options,t),this},W.addInitHook=function(t){var i=Array.prototype.slice.call(arguments,1),a=typeof t=="function"?t:function(){this[t].apply(this,i)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(a),this};function F(t){if(!(typeof L>"u"||!L||!L.Mixin)){t=P(t)?t:[t];for(var i=0;i<t.length;i++)t[i]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",new Error().stack)}}var X={on:function(t,i,a){if(typeof t=="object")for(var u in t)this._on(u,t[u],i);else{t=_(t);for(var p=0,w=t.length;p<w;p++)this._on(t[p],i,a)}return this},off:function(t,i,a){if(!arguments.length)delete this._events;else if(typeof t=="object")for(var u in t)this._off(u,t[u],i);else{t=_(t);for(var p=arguments.length===1,w=0,O=t.length;w<O;w++)p?this._off(t[w]):this._off(t[w],i,a)}return this},_on:function(t,i,a,u){if(typeof i!="function"){console.warn("wrong listener type: "+typeof i);return}if(this._listens(t,i,a)===!1){a===this&&(a=void 0);var p={fn:i,ctx:a};u&&(p.once=!0),this._events=this._events||{},this._events[t]=this._events[t]||[],this._events[t].push(p)}},_off:function(t,i,a){var u,p,w;if(this._events&&(u=this._events[t],!!u)){if(arguments.length===1){if(this._firingCount)for(p=0,w=u.length;p<w;p++)u[p].fn=v;delete this._events[t];return}if(typeof i!="function"){console.warn("wrong listener type: "+typeof i);return}var O=this._listens(t,i,a);if(O!==!1){var D=u[O];this._firingCount&&(D.fn=v,this._events[t]=u=u.slice()),u.splice(O,1)}}},fire:function(t,i,a){if(!this.listens(t,a))return this;var u=s({},i,{type:t,target:this,sourceTarget:i&&i.sourceTarget||this});if(this._events){var p=this._events[t];if(p){this._firingCount=this._firingCount+1||1;for(var w=0,O=p.length;w<O;w++){var D=p[w],H=D.fn;D.once&&this.off(t,H,D.ctx),H.call(D.ctx||this,u)}this._firingCount--}}return a&&this._propagateEvent(u),this},listens:function(t,i,a,u){typeof t!="string"&&console.warn('"string" type argument expected');var p=i;typeof i!="function"&&(u=!!i,p=void 0,a=void 0);var w=this._events&&this._events[t];if(w&&w.length&&this._listens(t,p,a)!==!1)return!0;if(u){for(var O in this._eventParents)if(this._eventParents[O].listens(t,i,a,u))return!0}return!1},_listens:function(t,i,a){if(!this._events)return!1;var u=this._events[t]||[];if(!i)return!!u.length;a===this&&(a=void 0);for(var p=0,w=u.length;p<w;p++)if(u[p].fn===i&&u[p].ctx===a)return p;return!1},once:function(t,i,a){if(typeof t=="object")for(var u in t)this._on(u,t[u],i,!0);else{t=_(t);for(var p=0,w=t.length;p<w;p++)this._on(t[p],i,a,!0)}return this},addEventParent:function(t){return this._eventParents=this._eventParents||{},this._eventParents[h(t)]=t,this},removeEventParent:function(t){return this._eventParents&&delete this._eventParents[h(t)],this},_propagateEvent:function(t){for(var i in this._eventParents)this._eventParents[i].fire(t.type,s({layer:t.target,propagatedFrom:t.target},t),!0)}};X.addEventListener=X.on,X.removeEventListener=X.clearAllEventListeners=X.off,X.addOneTimeEventListener=X.once,X.fireEvent=X.fire,X.hasEventListeners=X.listens;var J=W.extend(X);function Z(t,i,a){this.x=a?Math.round(t):t,this.y=a?Math.round(i):i}var le=Math.trunc||function(t){return t>0?Math.floor(t):Math.ceil(t)};Z.prototype={clone:function(){return new Z(this.x,this.y)},add:function(t){return this.clone()._add(G(t))},_add:function(t){return this.x+=t.x,this.y+=t.y,this},subtract:function(t){return this.clone()._subtract(G(t))},_subtract:function(t){return this.x-=t.x,this.y-=t.y,this},divideBy:function(t){return this.clone()._divideBy(t)},_divideBy:function(t){return this.x/=t,this.y/=t,this},multiplyBy:function(t){return this.clone()._multiplyBy(t)},_multiplyBy:function(t){return this.x*=t,this.y*=t,this},scaleBy:function(t){return new Z(this.x*t.x,this.y*t.y)},unscaleBy:function(t){return new Z(this.x/t.x,this.y/t.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=le(this.x),this.y=le(this.y),this},distanceTo:function(t){t=G(t);var i=t.x-this.x,a=t.y-this.y;return Math.sqrt(i*i+a*a)},equals:function(t){return t=G(t),t.x===this.x&&t.y===this.y},contains:function(t){return t=G(t),Math.abs(t.x)<=Math.abs(this.x)&&Math.abs(t.y)<=Math.abs(this.y)},toString:function(){return"Point("+y(this.x)+", "+y(this.y)+")"}};function G(t,i,a){return t instanceof Z?t:P(t)?new Z(t[0],t[1]):t==null?t:typeof t=="object"&&"x"in t&&"y"in t?new Z(t.x,t.y):new Z(t,i,a)}function ie(t,i){if(t)for(var a=i?[t,i]:t,u=0,p=a.length;u<p;u++)this.extend(a[u])}ie.prototype={extend:function(t){var i,a;if(!t)return this;if(t instanceof Z||typeof t[0]=="number"||"x"in t)i=a=G(t);else if(t=ne(t),i=t.min,a=t.max,!i||!a)return this;return!this.min&&!this.max?(this.min=i.clone(),this.max=a.clone()):(this.min.x=Math.min(i.x,this.min.x),this.max.x=Math.max(a.x,this.max.x),this.min.y=Math.min(i.y,this.min.y),this.max.y=Math.max(a.y,this.max.y)),this},getCenter:function(t){return G((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,t)},getBottomLeft:function(){return G(this.min.x,this.max.y)},getTopRight:function(){return G(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(t){var i,a;return typeof t[0]=="number"||t instanceof Z?t=G(t):t=ne(t),t instanceof ie?(i=t.min,a=t.max):i=a=t,i.x>=this.min.x&&a.x<=this.max.x&&i.y>=this.min.y&&a.y<=this.max.y},intersects:function(t){t=ne(t);var i=this.min,a=this.max,u=t.min,p=t.max,w=p.x>=i.x&&u.x<=a.x,O=p.y>=i.y&&u.y<=a.y;return w&&O},overlaps:function(t){t=ne(t);var i=this.min,a=this.max,u=t.min,p=t.max,w=p.x>i.x&&u.x<a.x,O=p.y>i.y&&u.y<a.y;return w&&O},isValid:function(){return!!(this.min&&this.max)},pad:function(t){var i=this.min,a=this.max,u=Math.abs(i.x-a.x)*t,p=Math.abs(i.y-a.y)*t;return ne(G(i.x-u,i.y-p),G(a.x+u,a.y+p))},equals:function(t){return t?(t=ne(t),this.min.equals(t.getTopLeft())&&this.max.equals(t.getBottomRight())):!1}};function ne(t,i){return!t||t instanceof ie?t:new ie(t,i)}function de(t,i){if(t)for(var a=i?[t,i]:t,u=0,p=a.length;u<p;u++)this.extend(a[u])}de.prototype={extend:function(t){var i=this._southWest,a=this._northEast,u,p;if(t instanceof ee)u=t,p=t;else if(t instanceof de){if(u=t._southWest,p=t._northEast,!u||!p)return this}else return t?this.extend(K(t)||oe(t)):this;return!i&&!a?(this._southWest=new ee(u.lat,u.lng),this._northEast=new ee(p.lat,p.lng)):(i.lat=Math.min(u.lat,i.lat),i.lng=Math.min(u.lng,i.lng),a.lat=Math.max(p.lat,a.lat),a.lng=Math.max(p.lng,a.lng)),this},pad:function(t){var i=this._southWest,a=this._northEast,u=Math.abs(i.lat-a.lat)*t,p=Math.abs(i.lng-a.lng)*t;return new de(new ee(i.lat-u,i.lng-p),new ee(a.lat+u,a.lng+p))},getCenter:function(){return new ee((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new ee(this.getNorth(),this.getWest())},getSouthEast:function(){return new ee(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(t){typeof t[0]=="number"||t instanceof ee||"lat"in t?t=K(t):t=oe(t);var i=this._southWest,a=this._northEast,u,p;return t instanceof de?(u=t.getSouthWest(),p=t.getNorthEast()):u=p=t,u.lat>=i.lat&&p.lat<=a.lat&&u.lng>=i.lng&&p.lng<=a.lng},intersects:function(t){t=oe(t);var i=this._southWest,a=this._northEast,u=t.getSouthWest(),p=t.getNorthEast(),w=p.lat>=i.lat&&u.lat<=a.lat,O=p.lng>=i.lng&&u.lng<=a.lng;return w&&O},overlaps:function(t){t=oe(t);var i=this._southWest,a=this._northEast,u=t.getSouthWest(),p=t.getNorthEast(),w=p.lat>i.lat&&u.lat<a.lat,O=p.lng>i.lng&&u.lng<a.lng;return w&&O},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(t,i){return t?(t=oe(t),this._southWest.equals(t.getSouthWest(),i)&&this._northEast.equals(t.getNorthEast(),i)):!1},isValid:function(){return!!(this._southWest&&this._northEast)}};function oe(t,i){return t instanceof de?t:new de(t,i)}function ee(t,i,a){if(isNaN(t)||isNaN(i))throw new Error("Invalid LatLng object: ("+t+", "+i+")");this.lat=+t,this.lng=+i,a!==void 0&&(this.alt=+a)}ee.prototype={equals:function(t,i){if(!t)return!1;t=K(t);var a=Math.max(Math.abs(this.lat-t.lat),Math.abs(this.lng-t.lng));return a<=(i===void 0?1e-9:i)},toString:function(t){return"LatLng("+y(this.lat,t)+", "+y(this.lng,t)+")"},distanceTo:function(t){return se.distance(this,K(t))},wrap:function(){return se.wrapLatLng(this)},toBounds:function(t){var i=180*t/40075017,a=i/Math.cos(Math.PI/180*this.lat);return oe([this.lat-i,this.lng-a],[this.lat+i,this.lng+a])},clone:function(){return new ee(this.lat,this.lng,this.alt)}};function K(t,i,a){return t instanceof ee?t:P(t)&&typeof t[0]!="object"?t.length===3?new ee(t[0],t[1],t[2]):t.length===2?new ee(t[0],t[1]):null:t==null?t:typeof t=="object"&&"lat"in t?new ee(t.lat,"lng"in t?t.lng:t.lon,t.alt):i===void 0?null:new ee(t,i,a)}var Y={latLngToPoint:function(t,i){var a=this.projection.project(t),u=this.scale(i);return this.transformation._transform(a,u)},pointToLatLng:function(t,i){var a=this.scale(i),u=this.transformation.untransform(t,a);return this.projection.unproject(u)},project:function(t){return this.projection.project(t)},unproject:function(t){return this.projection.unproject(t)},scale:function(t){return 256*Math.pow(2,t)},zoom:function(t){return Math.log(t/256)/Math.LN2},getProjectedBounds:function(t){if(this.infinite)return null;var i=this.projection.bounds,a=this.scale(t),u=this.transformation.transform(i.min,a),p=this.transformation.transform(i.max,a);return new ie(u,p)},infinite:!1,wrapLatLng:function(t){var i=this.wrapLng?m(t.lng,this.wrapLng,!0):t.lng,a=this.wrapLat?m(t.lat,this.wrapLat,!0):t.lat,u=t.alt;return new ee(a,i,u)},wrapLatLngBounds:function(t){var i=t.getCenter(),a=this.wrapLatLng(i),u=i.lat-a.lat,p=i.lng-a.lng;if(u===0&&p===0)return t;var w=t.getSouthWest(),O=t.getNorthEast(),D=new ee(w.lat-u,w.lng-p),H=new ee(O.lat-u,O.lng-p);return new de(D,H)}},se=s({},Y,{wrapLng:[-180,180],R:6371e3,distance:function(t,i){var a=Math.PI/180,u=t.lat*a,p=i.lat*a,w=Math.sin((i.lat-t.lat)*a/2),O=Math.sin((i.lng-t.lng)*a/2),D=w*w+Math.cos(u)*Math.cos(p)*O*O,H=2*Math.atan2(Math.sqrt(D),Math.sqrt(1-D));return this.R*H}}),fe=6378137,xe={R:fe,MAX_LATITUDE:85.0511287798,project:function(t){var i=Math.PI/180,a=this.MAX_LATITUDE,u=Math.max(Math.min(a,t.lat),-a),p=Math.sin(u*i);return new Z(this.R*t.lng*i,this.R*Math.log((1+p)/(1-p))/2)},unproject:function(t){var i=180/Math.PI;return new ee((2*Math.atan(Math.exp(t.y/this.R))-Math.PI/2)*i,t.x*i/this.R)},bounds:function(){var t=fe*Math.PI;return new ie([-t,-t],[t,t])}()};function Se(t,i,a,u){if(P(t)){this._a=t[0],this._b=t[1],this._c=t[2],this._d=t[3];return}this._a=t,this._b=i,this._c=a,this._d=u}Se.prototype={transform:function(t,i){return this._transform(t.clone(),i)},_transform:function(t,i){return i=i||1,t.x=i*(this._a*t.x+this._b),t.y=i*(this._c*t.y+this._d),t},untransform:function(t,i){return i=i||1,new Z((t.x/i-this._b)/this._a,(t.y/i-this._d)/this._c)}};function Te(t,i,a,u){return new Se(t,i,a,u)}var Ce=s({},se,{code:"EPSG:3857",projection:xe,transformation:function(){var t=.5/(Math.PI*xe.R);return Te(t,.5,-t,.5)}()}),te=s({},Ce,{code:"EPSG:900913"});function we(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function Pe(t,i){var a="",u,p,w,O,D,H;for(u=0,w=t.length;u<w;u++){for(D=t[u],p=0,O=D.length;p<O;p++)H=D[p],a+=(p?"L":"M")+H.x+" "+H.y;a+=i?ve.svg?"z":"x":""}return a||"M0 0"}var Ae=document.documentElement.style,Ze="ActiveXObject"in window,Be=Ze&&!document.addEventListener,nt="msLaunchUri"in navigator&&!("documentMode"in document),Ge=xt("webkit"),Ke=xt("android"),ze=xt("android 2")||xt("android 3"),De=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),ot=Ke&&xt("Google")&&De<537&&!("AudioNode"in window),St=!!window.opera,pt=!nt&&xt("chrome"),dt=xt("gecko")&&!Ge&&!St&&!Ze,mt=!pt&&xt("safari"),Oe=xt("phantom"),he="OTransition"in Ae,_e=navigator.platform.indexOf("Win")===0,rt=Ze&&"transition"in Ae,$e="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!ze,ge="MozPerspective"in Ae,Qe=!window.L_DISABLE_3D&&(rt||$e||ge)&&!he&&!Oe,Ve=typeof orientation<"u"||xt("mobile"),Ye=Ve&&Ge,Nt=Ve&&$e,Ht=!window.PointerEvent&&window.MSPointerEvent,vt=!!(window.PointerEvent||Ht),Et="ontouchstart"in window||!!window.TouchEvent,kt=!window.L_NO_TOUCH&&(Et||vt),Je=Ve&&St,rn=Ve&&dt,mn=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,on=function(){var t=!1;try{var i=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("testPassiveEventSupport",v,i),window.removeEventListener("testPassiveEventSupport",v,i)}catch{}return t}(),an=function(){return!!document.createElement("canvas").getContext}(),ln=!!(document.createElementNS&&we("svg").createSVGRect),cn=!!ln&&function(){var t=document.createElement("div");return t.innerHTML="<svg/>",(t.firstChild&&t.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"}(),Vt=!ln&&function(){try{var t=document.createElement("div");t.innerHTML='<v:shape adj="1"/>';var i=t.firstChild;return i.style.behavior="url(#default#VML)",i&&typeof i.adj=="object"}catch{return!1}}(),Jt=navigator.platform.indexOf("Mac")===0,Lt=navigator.platform.indexOf("Linux")===0;function xt(t){return navigator.userAgent.toLowerCase().indexOf(t)>=0}var ve={ie:Ze,ielt9:Be,edge:nt,webkit:Ge,android:Ke,android23:ze,androidStock:ot,opera:St,chrome:pt,gecko:dt,safari:mt,phantom:Oe,opera12:he,win:_e,ie3d:rt,webkit3d:$e,gecko3d:ge,any3d:Qe,mobile:Ve,mobileWebkit:Ye,mobileWebkit3d:Nt,msPointer:Ht,pointer:vt,touch:kt,touchNative:Et,mobileOpera:Je,mobileGecko:rn,retina:mn,passiveEvents:on,canvas:an,svg:ln,vml:Vt,inlineSvg:cn,mac:Jt,linux:Lt},Wt=ve.msPointer?"MSPointerDown":"pointerdown",jt=ve.msPointer?"MSPointerMove":"pointermove",T=ve.msPointer?"MSPointerUp":"pointerup",U=ve.msPointer?"MSPointerCancel":"pointercancel",re={touchstart:Wt,touchmove:jt,touchend:T,touchcancel:U},ue={touchstart:Gt,touchmove:yt,touchend:yt,touchcancel:yt},Ee={},ye=!1;function ae(t,i,a){return i==="touchstart"&>(),ue[i]?(a=ue[i].bind(this,a),t.addEventListener(re[i],a,!1),a):(console.warn("wrong event specified:",i),v)}function pe(t,i,a){if(!re[i]){console.warn("wrong event specified:",i);return}t.removeEventListener(re[i],a,!1)}function We(t){Ee[t.pointerId]=t}function Fe(t){Ee[t.pointerId]&&(Ee[t.pointerId]=t)}function et(t){delete Ee[t.pointerId]}function gt(){ye||(document.addEventListener(Wt,We,!0),document.addEventListener(jt,Fe,!0),document.addEventListener(T,et,!0),document.addEventListener(U,et,!0),ye=!0)}function yt(t,i){if(i.pointerType!==(i.MSPOINTER_TYPE_MOUSE||"mouse")){i.touches=[];for(var a in Ee)i.touches.push(Ee[a]);i.changedTouches=[i],t(i)}}function Gt(t,i){i.MSPOINTER_TYPE_TOUCH&&i.pointerType===i.MSPOINTER_TYPE_TOUCH&&en(i),yt(t,i)}function wt(t){var i={},a,u;for(u in t)a=t[u],i[u]=a&&a.bind?a.bind(t):a;return t=i,i.type="dblclick",i.detail=2,i.isTrusted=!1,i._simulated=!0,i}var Kt=200;function Qt(t,i){t.addEventListener("dblclick",i);var a=0,u;function p(w){if(w.detail!==1){u=w.detail;return}if(!(w.pointerType==="mouse"||w.sourceCapabilities&&!w.sourceCapabilities.firesTouchEvents)){var O=vp(w);if(!(O.some(function(H){return H instanceof HTMLLabelElement&&H.attributes.for})&&!O.some(function(H){return H instanceof HTMLInputElement||H instanceof HTMLSelectElement}))){var D=Date.now();D-a<=Kt?(u++,u===2&&i(wt(w))):u=1,a=D}}}return t.addEventListener("click",p),{dblclick:i,simDblclick:p}}function br(t,i){t.removeEventListener("dblclick",i.dblclick),t.removeEventListener("click",i.simDblclick)}var ir=Dn(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),Bn=Dn(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),_r=Bn==="webkitTransition"||Bn==="OTransition"?Bn+"End":"transitionend";function wo(t){return typeof t=="string"?document.getElementById(t):t}function Me(t,i){var a=t.style[i]||t.currentStyle&&t.currentStyle[i];if((!a||a==="auto")&&document.defaultView){var u=document.defaultView.getComputedStyle(t,null);a=u?u[i]:null}return a==="auto"?null:a}function Ne(t,i,a){var u=document.createElement(t);return u.className=i||"",a&&a.appendChild(u),u}function Ue(t){var i=t.parentNode;i&&i.removeChild(t)}function Tn(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function gn(t){var i=t.parentNode;i&&i.lastChild!==t&&i.appendChild(t)}function zn(t){var i=t.parentNode;i&&i.firstChild!==t&&i.insertBefore(t,i.firstChild)}function Co(t,i){if(t.classList!==void 0)return t.classList.contains(i);var a=me(t);return a.length>0&&new RegExp("(^|\\s)"+i+"(\\s|$)").test(a)}function He(t,i){if(t.classList!==void 0)for(var a=_(i),u=0,p=a.length;u<p;u++)t.classList.add(a[u]);else if(!Co(t,i)){var w=me(t);Dr(t,(w?w+" ":"")+i)}}function Ct(t,i){t.classList!==void 0?t.classList.remove(i):Dr(t,C((" "+me(t)+" ").replace(" "+i+" "," ")))}function Dr(t,i){t.className.baseVal===void 0?t.className=i:t.className.baseVal=i}function me(t){return t.correspondingElement&&(t=t.correspondingElement),t.className.baseVal===void 0?t.className:t.className.baseVal}function ke(t,i){"opacity"in t.style?t.style.opacity=i:"filter"in t.style&&Yt(t,i)}function Yt(t,i){var a=!1,u="DXImageTransform.Microsoft.Alpha";try{a=t.filters.item(u)}catch{if(i===1)return}i=Math.round(i*100),a?(a.Enabled=i!==100,a.Opacity=i):t.style.filter+=" progid:"+u+"(opacity="+i+")"}function Dn(t){for(var i=document.documentElement.style,a=0;a<t.length;a++)if(t[a]in i)return t[a];return!1}function un(t,i,a){var u=i||new Z(0,0);t.style[ir]=(ve.ie3d?"translate("+u.x+"px,"+u.y+"px)":"translate3d("+u.x+"px,"+u.y+"px,0)")+(a?" scale("+a+")":"")}function Pt(t,i){t._leaflet_pos=i,ve.any3d?un(t,i):(t.style.left=i.x+"px",t.style.top=i.y+"px")}function sr(t){return t._leaflet_pos||new Z(0,0)}var xr,pi,mc;if("onselectstart"in document)xr=function(){je(window,"selectstart",en)},pi=function(){bt(window,"selectstart",en)};else{var mi=Dn(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);xr=function(){if(mi){var t=document.documentElement.style;mc=t[mi],t[mi]="none"}},pi=function(){mi&&(document.documentElement.style[mi]=mc,mc=void 0)}}function gc(){je(window,"dragstart",en)}function vc(){bt(window,"dragstart",en)}var As,yc;function bc(t){for(;t.tabIndex===-1;)t=t.parentNode;t.style&&(Ms(),As=t,yc=t.style.outlineStyle,t.style.outlineStyle="none",je(window,"keydown",Ms))}function Ms(){As&&(As.style.outlineStyle=yc,As=void 0,yc=void 0,bt(window,"keydown",Ms))}function mp(t){do t=t.parentNode;while((!t.offsetWidth||!t.offsetHeight)&&t!==document.body);return t}function _c(t){var i=t.getBoundingClientRect();return{x:i.width/t.offsetWidth||1,y:i.height/t.offsetHeight||1,boundingClientRect:i}}var lw={__proto__:null,TRANSFORM:ir,TRANSITION:Bn,TRANSITION_END:_r,get:wo,getStyle:Me,create:Ne,remove:Ue,empty:Tn,toFront:gn,toBack:zn,hasClass:Co,addClass:He,removeClass:Ct,setClass:Dr,getClass:me,setOpacity:ke,testProp:Dn,setTransform:un,setPosition:Pt,getPosition:sr,get disableTextSelection(){return xr},get enableTextSelection(){return pi},disableImageDrag:gc,enableImageDrag:vc,preventOutline:bc,restoreOutline:Ms,getSizedParentNode:mp,getScale:_c};function je(t,i,a,u){if(i&&typeof i=="object")for(var p in i)wc(t,p,i[p],a);else{i=_(i);for(var w=0,O=i.length;w<O;w++)wc(t,i[w],a,u)}return this}var jn="_leaflet_events";function bt(t,i,a,u){if(arguments.length===1)gp(t),delete t[jn];else if(i&&typeof i=="object")for(var p in i)Cc(t,p,i[p],a);else if(i=_(i),arguments.length===2)gp(t,function(D){return I(i,D)!==-1});else for(var w=0,O=i.length;w<O;w++)Cc(t,i[w],a,u);return this}function gp(t,i){for(var a in t[jn]){var u=a.split(/\d/)[0];(!i||i(u))&&Cc(t,u,null,null,a)}}var xc={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function wc(t,i,a,u){var p=i+h(a)+(u?"_"+h(u):"");if(t[jn]&&t[jn][p])return this;var w=function(D){return a.call(u||t,D||window.event)},O=w;!ve.touchNative&&ve.pointer&&i.indexOf("touch")===0?w=ae(t,i,w):ve.touch&&i==="dblclick"?w=Qt(t,w):"addEventListener"in t?i==="touchstart"||i==="touchmove"||i==="wheel"||i==="mousewheel"?t.addEventListener(xc[i]||i,w,ve.passiveEvents?{passive:!1}:!1):i==="mouseenter"||i==="mouseleave"?(w=function(D){D=D||window.event,Ec(t,D)&&O(D)},t.addEventListener(xc[i],w,!1)):t.addEventListener(i,O,!1):t.attachEvent("on"+i,w),t[jn]=t[jn]||{},t[jn][p]=w}function Cc(t,i,a,u,p){p=p||i+h(a)+(u?"_"+h(u):"");var w=t[jn]&&t[jn][p];if(!w)return this;!ve.touchNative&&ve.pointer&&i.indexOf("touch")===0?pe(t,i,w):ve.touch&&i==="dblclick"?br(t,w):"removeEventListener"in t?t.removeEventListener(xc[i]||i,w,!1):t.detachEvent("on"+i,w),t[jn][p]=null}function Fr(t){return t.stopPropagation?t.stopPropagation():t.originalEvent?t.originalEvent._stopped=!0:t.cancelBubble=!0,this}function Sc(t){return wc(t,"wheel",Fr),this}function gi(t){return je(t,"mousedown touchstart dblclick contextmenu",Fr),t._leaflet_disable_click=!0,this}function en(t){return t.preventDefault?t.preventDefault():t.returnValue=!1,this}function Hr(t){return en(t),Fr(t),this}function vp(t){if(t.composedPath)return t.composedPath();for(var i=[],a=t.target;a;)i.push(a),a=a.parentNode;return i}function yp(t,i){if(!i)return new Z(t.clientX,t.clientY);var a=_c(i),u=a.boundingClientRect;return new Z((t.clientX-u.left)/a.x-i.clientLeft,(t.clientY-u.top)/a.y-i.clientTop)}var cw=ve.linux&&ve.chrome?window.devicePixelRatio:ve.mac?window.devicePixelRatio*3:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function bp(t){return ve.edge?t.wheelDeltaY/2:t.deltaY&&t.deltaMode===0?-t.deltaY/cw:t.deltaY&&t.deltaMode===1?-t.deltaY*20:t.deltaY&&t.deltaMode===2?-t.deltaY*60:t.deltaX||t.deltaZ?0:t.wheelDelta?(t.wheelDeltaY||t.wheelDelta)/2:t.detail&&Math.abs(t.detail)<32765?-t.detail*20:t.detail?t.detail/-32765*60:0}function Ec(t,i){var a=i.relatedTarget;if(!a)return!0;try{for(;a&&a!==t;)a=a.parentNode}catch{return!1}return a!==t}var uw={__proto__:null,on:je,off:bt,stopPropagation:Fr,disableScrollPropagation:Sc,disableClickPropagation:gi,preventDefault:en,stop:Hr,getPropagationPath:vp,getMousePosition:yp,getWheelDelta:bp,isExternalTarget:Ec,addListener:je,removeListener:bt},_p=J.extend({run:function(t,i,a,u){this.stop(),this._el=t,this._inProgress=!0,this._duration=a||.25,this._easeOutPower=1/Math.max(u||.5,.2),this._startPos=sr(t),this._offset=i.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=$(this._animate,this),this._step()},_step:function(t){var i=+new Date-this._startTime,a=this._duration*1e3;i<a?this._runFrame(this._easeOut(i/a),t):(this._runFrame(1),this._complete())},_runFrame:function(t,i){var a=this._startPos.add(this._offset.multiplyBy(t));i&&a._round(),Pt(this._el,a),this.fire("step")},_complete:function(){j(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(t){return 1-Math.pow(1-t,this._easeOutPower)}}),it=J.extend({options:{crs:Ce,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(t,i){i=x(this,i),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(t),this._initLayout(),this._onResize=c(this._onResize,this),this._initEvents(),i.maxBounds&&this.setMaxBounds(i.maxBounds),i.zoom!==void 0&&(this._zoom=this._limitZoom(i.zoom)),i.center&&i.zoom!==void 0&&this.setView(K(i.center),i.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=Bn&&ve.any3d&&!ve.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),je(this._proxy,_r,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(t,i,a){if(i=i===void 0?this._zoom:this._limitZoom(i),t=this._limitCenter(K(t),i,this.options.maxBounds),a=a||{},this._stop(),this._loaded&&!a.reset&&a!==!0){a.animate!==void 0&&(a.zoom=s({animate:a.animate},a.zoom),a.pan=s({animate:a.animate,duration:a.duration},a.pan));var u=this._zoom!==i?this._tryAnimatedZoom&&this._tryAnimatedZoom(t,i,a.zoom):this._tryAnimatedPan(t,a.pan);if(u)return clearTimeout(this._sizeTimer),this}return this._resetView(t,i,a.pan&&a.pan.noMoveStart),this},setZoom:function(t,i){return this._loaded?this.setView(this.getCenter(),t,{zoom:i}):(this._zoom=t,this)},zoomIn:function(t,i){return t=t||(ve.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+t,i)},zoomOut:function(t,i){return t=t||(ve.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-t,i)},setZoomAround:function(t,i,a){var u=this.getZoomScale(i),p=this.getSize().divideBy(2),w=t instanceof Z?t:this.latLngToContainerPoint(t),O=w.subtract(p).multiplyBy(1-1/u),D=this.containerPointToLatLng(p.add(O));return this.setView(D,i,{zoom:a})},_getBoundsCenterZoom:function(t,i){i=i||{},t=t.getBounds?t.getBounds():oe(t);var a=G(i.paddingTopLeft||i.padding||[0,0]),u=G(i.paddingBottomRight||i.padding||[0,0]),p=this.getBoundsZoom(t,!1,a.add(u));if(p=typeof i.maxZoom=="number"?Math.min(i.maxZoom,p):p,p===1/0)return{center:t.getCenter(),zoom:p};var w=u.subtract(a).divideBy(2),O=this.project(t.getSouthWest(),p),D=this.project(t.getNorthEast(),p),H=this.unproject(O.add(D).divideBy(2).add(w),p);return{center:H,zoom:p}},fitBounds:function(t,i){if(t=oe(t),!t.isValid())throw new Error("Bounds are not valid.");var a=this._getBoundsCenterZoom(t,i);return this.setView(a.center,a.zoom,i)},fitWorld:function(t){return this.fitBounds([[-90,-180],[90,180]],t)},panTo:function(t,i){return this.setView(t,this._zoom,{pan:i})},panBy:function(t,i){if(t=G(t).round(),i=i||{},!t.x&&!t.y)return this.fire("moveend");if(i.animate!==!0&&!this.getSize().contains(t))return this._resetView(this.unproject(this.project(this.getCenter()).add(t)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new _p,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),i.noMoveStart||this.fire("movestart"),i.animate!==!1){He(this._mapPane,"leaflet-pan-anim");var a=this._getMapPanePos().subtract(t).round();this._panAnim.run(this._mapPane,a,i.duration||.25,i.easeLinearity)}else this._rawPanBy(t),this.fire("move").fire("moveend");return this},flyTo:function(t,i,a){if(a=a||{},a.animate===!1||!ve.any3d)return this.setView(t,i,a);this._stop();var u=this.project(this.getCenter()),p=this.project(t),w=this.getSize(),O=this._zoom;t=K(t),i=i===void 0?O:i;var D=Math.max(w.x,w.y),H=D*this.getZoomScale(O,i),Q=p.distanceTo(u)||1,be=1.42,Re=be*be;function Xe(Bt){var Vs=Bt?-1:1,Xw=Bt?H:D,Jw=H*H-D*D+Vs*Re*Re*Q*Q,eC=2*Xw*Re*Q,$c=Jw/eC,em=Math.sqrt($c*$c+1)-$c,tC=em<1e-9?-18:Math.log(em);return tC}function dn(Bt){return(Math.exp(Bt)-Math.exp(-Bt))/2}function Xt(Bt){return(Math.exp(Bt)+Math.exp(-Bt))/2}function Mn(Bt){return dn(Bt)/Xt(Bt)}var vn=Xe(0);function Ao(Bt){return D*(Xt(vn)/Xt(vn+be*Bt))}function Gw(Bt){return D*(Xt(vn)*Mn(vn+be*Bt)-dn(vn))/Re}function Kw(Bt){return 1-Math.pow(1-Bt,1.5)}var Qw=Date.now(),Xp=(Xe(1)-vn)/be,Yw=a.duration?1e3*a.duration:1e3*Xp*.8;function Jp(){var Bt=(Date.now()-Qw)/Yw,Vs=Kw(Bt)*Xp;Bt<=1?(this._flyToFrame=$(Jp,this),this._move(this.unproject(u.add(p.subtract(u).multiplyBy(Gw(Vs)/Q)),O),this.getScaleZoom(D/Ao(Vs),O),{flyTo:!0})):this._move(t,i)._moveEnd(!0)}return this._moveStart(!0,a.noMoveStart),Jp.call(this),this},flyToBounds:function(t,i){var a=this._getBoundsCenterZoom(t,i);return this.flyTo(a.center,a.zoom,i)},setMaxBounds:function(t){return t=oe(t),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),t.isValid()?(this.options.maxBounds=t,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom:function(t){var i=this.options.minZoom;return this.options.minZoom=t,this._loaded&&i!==t&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(t):this},setMaxZoom:function(t){var i=this.options.maxZoom;return this.options.maxZoom=t,this._loaded&&i!==t&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(t):this},panInsideBounds:function(t,i){this._enforcingBounds=!0;var a=this.getCenter(),u=this._limitCenter(a,this._zoom,oe(t));return a.equals(u)||this.panTo(u,i),this._enforcingBounds=!1,this},panInside:function(t,i){i=i||{};var a=G(i.paddingTopLeft||i.padding||[0,0]),u=G(i.paddingBottomRight||i.padding||[0,0]),p=this.project(this.getCenter()),w=this.project(t),O=this.getPixelBounds(),D=ne([O.min.add(a),O.max.subtract(u)]),H=D.getSize();if(!D.contains(w)){this._enforcingBounds=!0;var Q=w.subtract(D.getCenter()),be=D.extend(w).getSize().subtract(H);p.x+=Q.x<0?-be.x:be.x,p.y+=Q.y<0?-be.y:be.y,this.panTo(this.unproject(p),i),this._enforcingBounds=!1}return this},invalidateSize:function(t){if(!this._loaded)return this;t=s({animate:!1,pan:!0},t===!0?{animate:!0}:t);var i=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var a=this.getSize(),u=i.divideBy(2).round(),p=a.divideBy(2).round(),w=u.subtract(p);return!w.x&&!w.y?this:(t.animate&&t.pan?this.panBy(w):(t.pan&&this._rawPanBy(w),this.fire("move"),t.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(c(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:i,newSize:a}))},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(t){if(t=this._locateOptions=s({timeout:1e4,watch:!1},t),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var i=c(this._handleGeolocationResponse,this),a=c(this._handleGeolocationError,this);return t.watch?this._locationWatchId=navigator.geolocation.watchPosition(i,a,t):navigator.geolocation.getCurrentPosition(i,a,t),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(t){if(this._container._leaflet_id){var i=t.code,a=t.message||(i===1?"permission denied":i===2?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:i,message:"Geolocation error: "+a+"."})}},_handleGeolocationResponse:function(t){if(this._container._leaflet_id){var i=t.coords.latitude,a=t.coords.longitude,u=new ee(i,a),p=u.toBounds(t.coords.accuracy*2),w=this._locateOptions;if(w.setView){var O=this.getBoundsZoom(p);this.setView(u,w.maxZoom?Math.min(O,w.maxZoom):O)}var D={latlng:u,bounds:p,timestamp:t.timestamp};for(var H in t.coords)typeof t.coords[H]=="number"&&(D[H]=t.coords[H]);this.fire("locationfound",D)}},addHandler:function(t,i){if(!i)return this;var a=this[t]=new i(this);return this._handlers.push(a),this.options[t]&&a.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch{this._container._leaflet_id=void 0,this._containerId=void 0}this._locationWatchId!==void 0&&this.stopLocate(),this._stop(),Ue(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(j(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload");var t;for(t in this._layers)this._layers[t].remove();for(t in this._panes)Ue(this._panes[t]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(t,i){var a="leaflet-pane"+(t?" leaflet-"+t.replace("Pane","")+"-pane":""),u=Ne("div",a,i||this._mapPane);return t&&(this._panes[t]=u),u},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var t=this.getPixelBounds(),i=this.unproject(t.getBottomLeft()),a=this.unproject(t.getTopRight());return new de(i,a)},getMinZoom:function(){return this.options.minZoom===void 0?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===void 0?this._layersMaxZoom===void 0?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(t,i,a){t=oe(t),a=G(a||[0,0]);var u=this.getZoom()||0,p=this.getMinZoom(),w=this.getMaxZoom(),O=t.getNorthWest(),D=t.getSouthEast(),H=this.getSize().subtract(a),Q=ne(this.project(D,u),this.project(O,u)).getSize(),be=ve.any3d?this.options.zoomSnap:1,Re=H.x/Q.x,Xe=H.y/Q.y,dn=i?Math.max(Re,Xe):Math.min(Re,Xe);return u=this.getScaleZoom(dn,u),be&&(u=Math.round(u/(be/100))*(be/100),u=i?Math.ceil(u/be)*be:Math.floor(u/be)*be),Math.max(p,Math.min(w,u))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new Z(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(t,i){var a=this._getTopLeftPoint(t,i);return new ie(a,a.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(t){return this.options.crs.getProjectedBounds(t===void 0?this.getZoom():t)},getPane:function(t){return typeof t=="string"?this._panes[t]:t},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(t,i){var a=this.options.crs;return i=i===void 0?this._zoom:i,a.scale(t)/a.scale(i)},getScaleZoom:function(t,i){var a=this.options.crs;i=i===void 0?this._zoom:i;var u=a.zoom(t*a.scale(i));return isNaN(u)?1/0:u},project:function(t,i){return i=i===void 0?this._zoom:i,this.options.crs.latLngToPoint(K(t),i)},unproject:function(t,i){return i=i===void 0?this._zoom:i,this.options.crs.pointToLatLng(G(t),i)},layerPointToLatLng:function(t){var i=G(t).add(this.getPixelOrigin());return this.unproject(i)},latLngToLayerPoint:function(t){var i=this.project(K(t))._round();return i._subtract(this.getPixelOrigin())},wrapLatLng:function(t){return this.options.crs.wrapLatLng(K(t))},wrapLatLngBounds:function(t){return this.options.crs.wrapLatLngBounds(oe(t))},distance:function(t,i){return this.options.crs.distance(K(t),K(i))},containerPointToLayerPoint:function(t){return G(t).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(t){return G(t).add(this._getMapPanePos())},containerPointToLatLng:function(t){var i=this.containerPointToLayerPoint(G(t));return this.layerPointToLatLng(i)},latLngToContainerPoint:function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(K(t)))},mouseEventToContainerPoint:function(t){return yp(t,this._container)},mouseEventToLayerPoint:function(t){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(t))},mouseEventToLatLng:function(t){return this.layerPointToLatLng(this.mouseEventToLayerPoint(t))},_initContainer:function(t){var i=this._container=wo(t);if(i){if(i._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");je(i,"scroll",this._onScroll,this),this._containerId=h(i)},_initLayout:function(){var t=this._container;this._fadeAnimated=this.options.fadeAnimation&&ve.any3d,He(t,"leaflet-container"+(ve.touch?" leaflet-touch":"")+(ve.retina?" leaflet-retina":"")+(ve.ielt9?" leaflet-oldie":"")+(ve.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var i=Me(t,"position");i!=="absolute"&&i!=="relative"&&i!=="fixed"&&i!=="sticky"&&(t.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var t=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),Pt(this._mapPane,new Z(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(He(t.markerPane,"leaflet-zoom-hide"),He(t.shadowPane,"leaflet-zoom-hide"))},_resetView:function(t,i,a){Pt(this._mapPane,new Z(0,0));var u=!this._loaded;this._loaded=!0,i=this._limitZoom(i),this.fire("viewprereset");var p=this._zoom!==i;this._moveStart(p,a)._move(t,i)._moveEnd(p),this.fire("viewreset"),u&&this.fire("load")},_moveStart:function(t,i){return t&&this.fire("zoomstart"),i||this.fire("movestart"),this},_move:function(t,i,a,u){i===void 0&&(i=this._zoom);var p=this._zoom!==i;return this._zoom=i,this._lastCenter=t,this._pixelOrigin=this._getNewPixelOrigin(t),u?a&&a.pinch&&this.fire("zoom",a):((p||a&&a.pinch)&&this.fire("zoom",a),this.fire("move",a)),this},_moveEnd:function(t){return t&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return j(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(t){Pt(this._mapPane,this._getMapPanePos().subtract(t))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(t){this._targets={},this._targets[h(this._container)]=this;var i=t?bt:je;i(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&i(window,"resize",this._onResize,this),ve.any3d&&this.options.transform3DLimit&&(t?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){j(this._resizeRequest),this._resizeRequest=$(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var t=this._getMapPanePos();Math.max(Math.abs(t.x),Math.abs(t.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(t,i){for(var a=[],u,p=i==="mouseout"||i==="mouseover",w=t.target||t.srcElement,O=!1;w;){if(u=this._targets[h(w)],u&&(i==="click"||i==="preclick")&&this._draggableMoved(u)){O=!0;break}if(u&&u.listens(i,!0)&&(p&&!Ec(w,t)||(a.push(u),p))||w===this._container)break;w=w.parentNode}return!a.length&&!O&&!p&&this.listens(i,!0)&&(a=[this]),a},_isClickDisabled:function(t){for(;t&&t!==this._container;){if(t._leaflet_disable_click)return!0;t=t.parentNode}},_handleDOMEvent:function(t){var i=t.target||t.srcElement;if(!(!this._loaded||i._leaflet_disable_events||t.type==="click"&&this._isClickDisabled(i))){var a=t.type;a==="mousedown"&&bc(i),this._fireDOMEvent(t,a)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(t,i,a){if(t.type==="click"){var u=s({},t);u.type="preclick",this._fireDOMEvent(u,u.type,a)}var p=this._findEventTargets(t,i);if(a){for(var w=[],O=0;O<a.length;O++)a[O].listens(i,!0)&&w.push(a[O]);p=w.concat(p)}if(p.length){i==="contextmenu"&&en(t);var D=p[0],H={originalEvent:t};if(t.type!=="keypress"&&t.type!=="keydown"&&t.type!=="keyup"){var Q=D.getLatLng&&(!D._radius||D._radius<=10);H.containerPoint=Q?this.latLngToContainerPoint(D.getLatLng()):this.mouseEventToContainerPoint(t),H.layerPoint=this.containerPointToLayerPoint(H.containerPoint),H.latlng=Q?D.getLatLng():this.layerPointToLatLng(H.layerPoint)}for(O=0;O<p.length;O++)if(p[O].fire(i,H,!0),H.originalEvent._stopped||p[O].options.bubblingMouseEvents===!1&&I(this._mouseEvents,i)!==-1)return}},_draggableMoved:function(t){return t=t.dragging&&t.dragging.enabled()?t:this,t.dragging&&t.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var t=0,i=this._handlers.length;t<i;t++)this._handlers[t].disable()},whenReady:function(t,i){return this._loaded?t.call(i||this,{target:this}):this.on("load",t,i),this},_getMapPanePos:function(){return sr(this._mapPane)||new Z(0,0)},_moved:function(){var t=this._getMapPanePos();return t&&!t.equals([0,0])},_getTopLeftPoint:function(t,i){var a=t&&i!==void 0?this._getNewPixelOrigin(t,i):this.getPixelOrigin();return a.subtract(this._getMapPanePos())},_getNewPixelOrigin:function(t,i){var a=this.getSize()._divideBy(2);return this.project(t,i)._subtract(a)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(t,i,a){var u=this._getNewPixelOrigin(a,i);return this.project(t,i)._subtract(u)},_latLngBoundsToNewLayerBounds:function(t,i,a){var u=this._getNewPixelOrigin(a,i);return ne([this.project(t.getSouthWest(),i)._subtract(u),this.project(t.getNorthWest(),i)._subtract(u),this.project(t.getSouthEast(),i)._subtract(u),this.project(t.getNorthEast(),i)._subtract(u)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(t){return this.latLngToLayerPoint(t).subtract(this._getCenterLayerPoint())},_limitCenter:function(t,i,a){if(!a)return t;var u=this.project(t,i),p=this.getSize().divideBy(2),w=new ie(u.subtract(p),u.add(p)),O=this._getBoundsOffset(w,a,i);return Math.abs(O.x)<=1&&Math.abs(O.y)<=1?t:this.unproject(u.add(O),i)},_limitOffset:function(t,i){if(!i)return t;var a=this.getPixelBounds(),u=new ie(a.min.add(t),a.max.add(t));return t.add(this._getBoundsOffset(u,i))},_getBoundsOffset:function(t,i,a){var u=ne(this.project(i.getNorthEast(),a),this.project(i.getSouthWest(),a)),p=u.min.subtract(t.min),w=u.max.subtract(t.max),O=this._rebound(p.x,-w.x),D=this._rebound(p.y,-w.y);return new Z(O,D)},_rebound:function(t,i){return t+i>0?Math.round(t-i)/2:Math.max(0,Math.ceil(t))-Math.max(0,Math.floor(i))},_limitZoom:function(t){var i=this.getMinZoom(),a=this.getMaxZoom(),u=ve.any3d?this.options.zoomSnap:1;return u&&(t=Math.round(t/u)*u),Math.max(i,Math.min(a,t))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){Ct(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(t,i){var a=this._getCenterOffset(t)._trunc();return(i&&i.animate)!==!0&&!this.getSize().contains(a)?!1:(this.panBy(a,i),!0)},_createAnimProxy:function(){var t=this._proxy=Ne("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(t),this.on("zoomanim",function(i){var a=ir,u=this._proxy.style[a];un(this._proxy,this.project(i.center,i.zoom),this.getZoomScale(i.zoom,1)),u===this._proxy.style[a]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){Ue(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var t=this.getCenter(),i=this.getZoom();un(this._proxy,this.project(t,i),this.getZoomScale(i,1))},_catchTransitionEnd:function(t){this._animatingZoom&&t.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(t,i,a){if(this._animatingZoom)return!0;if(a=a||{},!this._zoomAnimated||a.animate===!1||this._nothingToAnimate()||Math.abs(i-this._zoom)>this.options.zoomAnimationThreshold)return!1;var u=this.getZoomScale(i),p=this._getCenterOffset(t)._divideBy(1-1/u);return a.animate!==!0&&!this.getSize().contains(p)?!1:($(function(){this._moveStart(!0,a.noMoveStart||!1)._animateZoom(t,i,!0)},this),!0)},_animateZoom:function(t,i,a,u){this._mapPane&&(a&&(this._animatingZoom=!0,this._animateToCenter=t,this._animateToZoom=i,He(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:t,zoom:i,noUpdate:u}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(c(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&Ct(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}});function dw(t,i){return new it(t,i)}var Fn=W.extend({options:{position:"topright"},initialize:function(t){x(this,t)},getPosition:function(){return this.options.position},setPosition:function(t){var i=this._map;return i&&i.removeControl(this),this.options.position=t,i&&i.addControl(this),this},getContainer:function(){return this._container},addTo:function(t){this.remove(),this._map=t;var i=this._container=this.onAdd(t),a=this.getPosition(),u=t._controlCorners[a];return He(i,"leaflet-control"),a.indexOf("bottom")!==-1?u.insertBefore(i,u.firstChild):u.appendChild(i),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(Ue(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(t){this._map&&t&&t.screenX>0&&t.screenY>0&&this._map.getContainer().focus()}}),vi=function(t){return new Fn(t)};it.include({addControl:function(t){return t.addTo(this),this},removeControl:function(t){return t.remove(),this},_initControlPos:function(){var t=this._controlCorners={},i="leaflet-",a=this._controlContainer=Ne("div",i+"control-container",this._container);function u(p,w){var O=i+p+" "+i+w;t[p+w]=Ne("div",O,a)}u("top","left"),u("top","right"),u("bottom","left"),u("bottom","right")},_clearControlPos:function(){for(var t in this._controlCorners)Ue(this._controlCorners[t]);Ue(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var xp=Fn.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(t,i,a,u){return a<u?-1:u<a?1:0}},initialize:function(t,i,a){x(this,a),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1;for(var u in t)this._addLayer(t[u],u);for(u in i)this._addLayer(i[u],u,!0)},onAdd:function(t){this._initLayout(),this._update(),this._map=t,t.on("zoomend",this._checkDisabledLayers,this);for(var i=0;i<this._layers.length;i++)this._layers[i].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(t){return Fn.prototype.addTo.call(this,t),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var t=0;t<this._layers.length;t++)this._layers[t].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(t,i){return this._addLayer(t,i),this._map?this._update():this},addOverlay:function(t,i){return this._addLayer(t,i,!0),this._map?this._update():this},removeLayer:function(t){t.off("add remove",this._onLayerChange,this);var i=this._getLayer(h(t));return i&&this._layers.splice(this._layers.indexOf(i),1),this._map?this._update():this},expand:function(){He(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var t=this._map.getSize().y-(this._container.offsetTop+50);return t<this._section.clientHeight?(He(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=t+"px"):Ct(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return Ct(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var t="leaflet-control-layers",i=this._container=Ne("div",t),a=this.options.collapsed;i.setAttribute("aria-haspopup",!0),gi(i),Sc(i);var u=this._section=Ne("section",t+"-list");a&&(this._map.on("click",this.collapse,this),je(i,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var p=this._layersLink=Ne("a",t+"-toggle",i);p.href="#",p.title="Layers",p.setAttribute("role","button"),je(p,{keydown:function(w){w.keyCode===13&&this._expandSafely()},click:function(w){en(w),this._expandSafely()}},this),a||this.expand(),this._baseLayersList=Ne("div",t+"-base",u),this._separator=Ne("div",t+"-separator",u),this._overlaysList=Ne("div",t+"-overlays",u),i.appendChild(u)},_getLayer:function(t){for(var i=0;i<this._layers.length;i++)if(this._layers[i]&&h(this._layers[i].layer)===t)return this._layers[i]},_addLayer:function(t,i,a){this._map&&t.on("add remove",this._onLayerChange,this),this._layers.push({layer:t,name:i,overlay:a}),this.options.sortLayers&&this._layers.sort(c(function(u,p){return this.options.sortFunction(u.layer,p.layer,u.name,p.name)},this)),this.options.autoZIndex&&t.setZIndex&&(this._lastZIndex++,t.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;Tn(this._baseLayersList),Tn(this._overlaysList),this._layerControlInputs=[];var t,i,a,u,p=0;for(a=0;a<this._layers.length;a++)u=this._layers[a],this._addItem(u),i=i||u.overlay,t=t||!u.overlay,p+=u.overlay?0:1;return this.options.hideSingleBase&&(t=t&&p>1,this._baseLayersList.style.display=t?"":"none"),this._separator.style.display=i&&t?"":"none",this},_onLayerChange:function(t){this._handlingClick||this._update();var i=this._getLayer(h(t.target)),a=i.overlay?t.type==="add"?"overlayadd":"overlayremove":t.type==="add"?"baselayerchange":null;a&&this._map.fire(a,i)},_createRadioElement:function(t,i){var a='<input type="radio" class="leaflet-control-layers-selector" name="'+t+'"'+(i?' checked="checked"':"")+"/>",u=document.createElement("div");return u.innerHTML=a,u.firstChild},_addItem:function(t){var i=document.createElement("label"),a=this._map.hasLayer(t.layer),u;t.overlay?(u=document.createElement("input"),u.type="checkbox",u.className="leaflet-control-layers-selector",u.defaultChecked=a):u=this._createRadioElement("leaflet-base-layers_"+h(this),a),this._layerControlInputs.push(u),u.layerId=h(t.layer),je(u,"click",this._onInputClick,this);var p=document.createElement("span");p.innerHTML=" "+t.name;var w=document.createElement("span");i.appendChild(w),w.appendChild(u),w.appendChild(p);var O=t.overlay?this._overlaysList:this._baseLayersList;return O.appendChild(i),this._checkDisabledLayers(),i},_onInputClick:function(){if(!this._preventClick){var t=this._layerControlInputs,i,a,u=[],p=[];this._handlingClick=!0;for(var w=t.length-1;w>=0;w--)i=t[w],a=this._getLayer(i.layerId).layer,i.checked?u.push(a):i.checked||p.push(a);for(w=0;w<p.length;w++)this._map.hasLayer(p[w])&&this._map.removeLayer(p[w]);for(w=0;w<u.length;w++)this._map.hasLayer(u[w])||this._map.addLayer(u[w]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var t=this._layerControlInputs,i,a,u=this._map.getZoom(),p=t.length-1;p>=0;p--)i=t[p],a=this._getLayer(i.layerId).layer,i.disabled=a.options.minZoom!==void 0&&u<a.options.minZoom||a.options.maxZoom!==void 0&&u>a.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var t=this._section;this._preventClick=!0,je(t,"click",en),this.expand();var i=this;setTimeout(function(){bt(t,"click",en),i._preventClick=!1})}}),fw=function(t,i,a){return new xp(t,i,a)},Pc=Fn.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">−</span>',zoomOutTitle:"Zoom out"},onAdd:function(t){var i="leaflet-control-zoom",a=Ne("div",i+" leaflet-bar"),u=this.options;return this._zoomInButton=this._createButton(u.zoomInText,u.zoomInTitle,i+"-in",a,this._zoomIn),this._zoomOutButton=this._createButton(u.zoomOutText,u.zoomOutTitle,i+"-out",a,this._zoomOut),this._updateDisabled(),t.on("zoomend zoomlevelschange",this._updateDisabled,this),a},onRemove:function(t){t.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(t){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(t.shiftKey?3:1))},_zoomOut:function(t){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(t.shiftKey?3:1))},_createButton:function(t,i,a,u,p){var w=Ne("a",a,u);return w.innerHTML=t,w.href="#",w.title=i,w.setAttribute("role","button"),w.setAttribute("aria-label",i),gi(w),je(w,"click",Hr),je(w,"click",p,this),je(w,"click",this._refocusOnMap,this),w},_updateDisabled:function(){var t=this._map,i="leaflet-disabled";Ct(this._zoomInButton,i),Ct(this._zoomOutButton,i),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||t._zoom===t.getMinZoom())&&(He(this._zoomOutButton,i),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||t._zoom===t.getMaxZoom())&&(He(this._zoomInButton,i),this._zoomInButton.setAttribute("aria-disabled","true"))}});it.mergeOptions({zoomControl:!0}),it.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new Pc,this.addControl(this.zoomControl))});var hw=function(t){return new Pc(t)},wp=Fn.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(t){var i="leaflet-control-scale",a=Ne("div",i),u=this.options;return this._addScales(u,i+"-line",a),t.on(u.updateWhenIdle?"moveend":"move",this._update,this),t.whenReady(this._update,this),a},onRemove:function(t){t.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(t,i,a){t.metric&&(this._mScale=Ne("div",i,a)),t.imperial&&(this._iScale=Ne("div",i,a))},_update:function(){var t=this._map,i=t.getSize().y/2,a=t.distance(t.containerPointToLatLng([0,i]),t.containerPointToLatLng([this.options.maxWidth,i]));this._updateScales(a)},_updateScales:function(t){this.options.metric&&t&&this._updateMetric(t),this.options.imperial&&t&&this._updateImperial(t)},_updateMetric:function(t){var i=this._getRoundNum(t),a=i<1e3?i+" m":i/1e3+" km";this._updateScale(this._mScale,a,i/t)},_updateImperial:function(t){var i=t*3.2808399,a,u,p;i>5280?(a=i/5280,u=this._getRoundNum(a),this._updateScale(this._iScale,u+" mi",u/a)):(p=this._getRoundNum(i),this._updateScale(this._iScale,p+" ft",p/i))},_updateScale:function(t,i,a){t.style.width=Math.round(this.options.maxWidth*a)+"px",t.innerHTML=i},_getRoundNum:function(t){var i=Math.pow(10,(Math.floor(t)+"").length-1),a=t/i;return a=a>=10?10:a>=5?5:a>=3?3:a>=2?2:1,i*a}}),pw=function(t){return new wp(t)},mw='<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8" class="leaflet-attribution-flag"><path fill="#4C7BE1" d="M0 0h12v4H0z"/><path fill="#FFD500" d="M0 4h12v3H0z"/><path fill="#E0BC00" d="M0 7h12v1H0z"/></svg>',Ic=Fn.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(ve.inlineSvg?mw+" ":"")+"Leaflet</a>"},initialize:function(t){x(this,t),this._attributions={}},onAdd:function(t){t.attributionControl=this,this._container=Ne("div","leaflet-control-attribution"),gi(this._container);for(var i in t._layers)t._layers[i].getAttribution&&this.addAttribution(t._layers[i].getAttribution());return this._update(),t.on("layeradd",this._addAttribution,this),this._container},onRemove:function(t){t.off("layeradd",this._addAttribution,this)},_addAttribution:function(t){t.layer.getAttribution&&(this.addAttribution(t.layer.getAttribution()),t.layer.once("remove",function(){this.removeAttribution(t.layer.getAttribution())},this))},setPrefix:function(t){return this.options.prefix=t,this._update(),this},addAttribution:function(t){return t?(this._attributions[t]||(this._attributions[t]=0),this._attributions[t]++,this._update(),this):this},removeAttribution:function(t){return t?(this._attributions[t]&&(this._attributions[t]--,this._update()),this):this},_update:function(){if(this._map){var t=[];for(var i in this._attributions)this._attributions[i]&&t.push(i);var a=[];this.options.prefix&&a.push(this.options.prefix),t.length&&a.push(t.join(", ")),this._container.innerHTML=a.join(' <span aria-hidden="true">|</span> ')}}});it.mergeOptions({attributionControl:!0}),it.addInitHook(function(){this.options.attributionControl&&new Ic().addTo(this)});var gw=function(t){return new Ic(t)};Fn.Layers=xp,Fn.Zoom=Pc,Fn.Scale=wp,Fn.Attribution=Ic,vi.layers=fw,vi.zoom=hw,vi.scale=pw,vi.attribution=gw;var Zn=W.extend({initialize:function(t){this._map=t},enable:function(){return this._enabled?this:(this._enabled=!0,this.addHooks(),this)},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});Zn.addTo=function(t,i){return t.addHandler(i,this),this};var vw={Events:X},Cp=ve.touch?"touchstart mousedown":"mousedown",wr=J.extend({options:{clickTolerance:3},initialize:function(t,i,a,u){x(this,u),this._element=t,this._dragStartTarget=i||t,this._preventOutline=a},enable:function(){this._enabled||(je(this._dragStartTarget,Cp,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(wr._dragging===this&&this.finishDrag(!0),bt(this._dragStartTarget,Cp,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(t){if(this._enabled&&(this._moved=!1,!Co(this._element,"leaflet-zoom-anim"))){if(t.touches&&t.touches.length!==1){wr._dragging===this&&this.finishDrag();return}if(!(wr._dragging||t.shiftKey||t.which!==1&&t.button!==1&&!t.touches)&&(wr._dragging=this,this._preventOutline&&bc(this._element),gc(),xr(),!this._moving)){this.fire("down");var i=t.touches?t.touches[0]:t,a=mp(this._element);this._startPoint=new Z(i.clientX,i.clientY),this._startPos=sr(this._element),this._parentScale=_c(a);var u=t.type==="mousedown";je(document,u?"mousemove":"touchmove",this._onMove,this),je(document,u?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(t){if(this._enabled){if(t.touches&&t.touches.length>1){this._moved=!0;return}var i=t.touches&&t.touches.length===1?t.touches[0]:t,a=new Z(i.clientX,i.clientY)._subtract(this._startPoint);!a.x&&!a.y||Math.abs(a.x)+Math.abs(a.y)<this.options.clickTolerance||(a.x/=this._parentScale.x,a.y/=this._parentScale.y,en(t),this._moved||(this.fire("dragstart"),this._moved=!0,He(document.body,"leaflet-dragging"),this._lastTarget=t.target||t.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),He(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(a),this._moving=!0,this._lastEvent=t,this._updatePosition())}},_updatePosition:function(){var t={originalEvent:this._lastEvent};this.fire("predrag",t),Pt(this._element,this._newPos),this.fire("drag",t)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(t){Ct(document.body,"leaflet-dragging"),this._lastTarget&&(Ct(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),bt(document,"mousemove touchmove",this._onMove,this),bt(document,"mouseup touchend touchcancel",this._onUp,this),vc(),pi();var i=this._moved&&this._moving;this._moving=!1,wr._dragging=!1,i&&this.fire("dragend",{noInertia:t,distance:this._newPos.distanceTo(this._startPos)})}});function Sp(t,i,a){var u,p=[1,4,2,8],w,O,D,H,Q,be,Re,Xe;for(w=0,be=t.length;w<be;w++)t[w]._code=Vr(t[w],i);for(D=0;D<4;D++){for(Re=p[D],u=[],w=0,be=t.length,O=be-1;w<be;O=w++)H=t[w],Q=t[O],H._code&Re?Q._code&Re||(Xe=Ls(Q,H,Re,i,a),Xe._code=Vr(Xe,i),u.push(Xe)):(Q._code&Re&&(Xe=Ls(Q,H,Re,i,a),Xe._code=Vr(Xe,i),u.push(Xe)),u.push(H));t=u}return t}function Ep(t,i){var a,u,p,w,O,D,H,Q,be;if(!t||t.length===0)throw new Error("latlngs not passed");An(t)||(console.warn("latlngs are not flat! Only the first ring will be used"),t=t[0]);var Re=K([0,0]),Xe=oe(t),dn=Xe.getNorthWest().distanceTo(Xe.getSouthWest())*Xe.getNorthEast().distanceTo(Xe.getNorthWest());dn<1700&&(Re=Tc(t));var Xt=t.length,Mn=[];for(a=0;a<Xt;a++){var vn=K(t[a]);Mn.push(i.project(K([vn.lat-Re.lat,vn.lng-Re.lng])))}for(D=H=Q=0,a=0,u=Xt-1;a<Xt;u=a++)p=Mn[a],w=Mn[u],O=p.y*w.x-w.y*p.x,H+=(p.x+w.x)*O,Q+=(p.y+w.y)*O,D+=O*3;D===0?be=Mn[0]:be=[H/D,Q/D];var Ao=i.unproject(G(be));return K([Ao.lat+Re.lat,Ao.lng+Re.lng])}function Tc(t){for(var i=0,a=0,u=0,p=0;p<t.length;p++){var w=K(t[p]);i+=w.lat,a+=w.lng,u++}return K([i/u,a/u])}var yw={__proto__:null,clipPolygon:Sp,polygonCenter:Ep,centroid:Tc};function Pp(t,i){if(!i||!t.length)return t.slice();var a=i*i;return t=xw(t,a),t=_w(t,a),t}function Ip(t,i,a){return Math.sqrt(yi(t,i,a,!0))}function bw(t,i,a){return yi(t,i,a)}function _w(t,i){var a=t.length,u=typeof Uint8Array!=void 0+""?Uint8Array:Array,p=new u(a);p[0]=p[a-1]=1,Ac(t,p,i,0,a-1);var w,O=[];for(w=0;w<a;w++)p[w]&&O.push(t[w]);return O}function Ac(t,i,a,u,p){var w=0,O,D,H;for(D=u+1;D<=p-1;D++)H=yi(t[D],t[u],t[p],!0),H>w&&(O=D,w=H);w>a&&(i[O]=1,Ac(t,i,a,u,O),Ac(t,i,a,O,p))}function xw(t,i){for(var a=[t[0]],u=1,p=0,w=t.length;u<w;u++)ww(t[u],t[p])>i&&(a.push(t[u]),p=u);return p<w-1&&a.push(t[w-1]),a}var Tp;function Ap(t,i,a,u,p){var w=u?Tp:Vr(t,a),O=Vr(i,a),D,H,Q;for(Tp=O;;){if(!(w|O))return[t,i];if(w&O)return!1;D=w||O,H=Ls(t,i,D,a,p),Q=Vr(H,a),D===w?(t=H,w=Q):(i=H,O=Q)}}function Ls(t,i,a,u,p){var w=i.x-t.x,O=i.y-t.y,D=u.min,H=u.max,Q,be;return a&8?(Q=t.x+w*(H.y-t.y)/O,be=H.y):a&4?(Q=t.x+w*(D.y-t.y)/O,be=D.y):a&2?(Q=H.x,be=t.y+O*(H.x-t.x)/w):a&1&&(Q=D.x,be=t.y+O*(D.x-t.x)/w),new Z(Q,be,p)}function Vr(t,i){var a=0;return t.x<i.min.x?a|=1:t.x>i.max.x&&(a|=2),t.y<i.min.y?a|=4:t.y>i.max.y&&(a|=8),a}function ww(t,i){var a=i.x-t.x,u=i.y-t.y;return a*a+u*u}function yi(t,i,a,u){var p=i.x,w=i.y,O=a.x-p,D=a.y-w,H=O*O+D*D,Q;return H>0&&(Q=((t.x-p)*O+(t.y-w)*D)/H,Q>1?(p=a.x,w=a.y):Q>0&&(p+=O*Q,w+=D*Q)),O=t.x-p,D=t.y-w,u?O*O+D*D:new Z(p,w)}function An(t){return!P(t[0])||typeof t[0][0]!="object"&&typeof t[0][0]<"u"}function Mp(t){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),An(t)}function Lp(t,i){var a,u,p,w,O,D,H,Q;if(!t||t.length===0)throw new Error("latlngs not passed");An(t)||(console.warn("latlngs are not flat! Only the first ring will be used"),t=t[0]);var be=K([0,0]),Re=oe(t),Xe=Re.getNorthWest().distanceTo(Re.getSouthWest())*Re.getNorthEast().distanceTo(Re.getNorthWest());Xe<1700&&(be=Tc(t));var dn=t.length,Xt=[];for(a=0;a<dn;a++){var Mn=K(t[a]);Xt.push(i.project(K([Mn.lat-be.lat,Mn.lng-be.lng])))}for(a=0,u=0;a<dn-1;a++)u+=Xt[a].distanceTo(Xt[a+1])/2;if(u===0)Q=Xt[0];else for(a=0,w=0;a<dn-1;a++)if(O=Xt[a],D=Xt[a+1],p=O.distanceTo(D),w+=p,w>u){H=(w-u)/p,Q=[D.x-H*(D.x-O.x),D.y-H*(D.y-O.y)];break}var vn=i.unproject(G(Q));return K([vn.lat+be.lat,vn.lng+be.lng])}var Cw={__proto__:null,simplify:Pp,pointToSegmentDistance:Ip,closestPointOnSegment:bw,clipSegment:Ap,_getEdgeIntersection:Ls,_getBitCode:Vr,_sqClosestPointOnSegment:yi,isFlat:An,_flat:Mp,polylineCenter:Lp},Mc={project:function(t){return new Z(t.lng,t.lat)},unproject:function(t){return new ee(t.y,t.x)},bounds:new ie([-180,-90],[180,90])},Lc={R:6378137,R_MINOR:6356752314245179e-9,bounds:new ie([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(t){var i=Math.PI/180,a=this.R,u=t.lat*i,p=this.R_MINOR/a,w=Math.sqrt(1-p*p),O=w*Math.sin(u),D=Math.tan(Math.PI/4-u/2)/Math.pow((1-O)/(1+O),w/2);return u=-a*Math.log(Math.max(D,1e-10)),new Z(t.lng*i*a,u)},unproject:function(t){for(var i=180/Math.PI,a=this.R,u=this.R_MINOR/a,p=Math.sqrt(1-u*u),w=Math.exp(-t.y/a),O=Math.PI/2-2*Math.atan(w),D=0,H=.1,Q;D<15&&Math.abs(H)>1e-7;D++)Q=p*Math.sin(O),Q=Math.pow((1-Q)/(1+Q),p/2),H=Math.PI/2-2*Math.atan(w*Q)-O,O+=H;return new ee(O*i,t.x*i/a)}},Sw={__proto__:null,LonLat:Mc,Mercator:Lc,SphericalMercator:xe},Ew=s({},se,{code:"EPSG:3395",projection:Lc,transformation:function(){var t=.5/(Math.PI*Lc.R);return Te(t,.5,-t,.5)}()}),Op=s({},se,{code:"EPSG:4326",projection:Mc,transformation:Te(1/180,1,-1/180,.5)}),Pw=s({},Y,{projection:Mc,transformation:Te(1,0,-1,0),scale:function(t){return Math.pow(2,t)},zoom:function(t){return Math.log(t)/Math.LN2},distance:function(t,i){var a=i.lng-t.lng,u=i.lat-t.lat;return Math.sqrt(a*a+u*u)},infinite:!0});Y.Earth=se,Y.EPSG3395=Ew,Y.EPSG3857=Ce,Y.EPSG900913=te,Y.EPSG4326=Op,Y.Simple=Pw;var Hn=J.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(t){return t.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(t){return t&&t.removeLayer(this),this},getPane:function(t){return this._map.getPane(t?this.options[t]||t:this.options.pane)},addInteractiveTarget:function(t){return this._map._targets[h(t)]=this,this},removeInteractiveTarget:function(t){return delete this._map._targets[h(t)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(t){var i=t.target;if(i.hasLayer(this)){if(this._map=i,this._zoomAnimated=i._zoomAnimated,this.getEvents){var a=this.getEvents();i.on(a,this),this.once("remove",function(){i.off(a,this)},this)}this.onAdd(i),this.fire("add"),i.fire("layeradd",{layer:this})}}});it.include({addLayer:function(t){if(!t._layerAdd)throw new Error("The provided object is not a Layer.");var i=h(t);return this._layers[i]?this:(this._layers[i]=t,t._mapToAdd=this,t.beforeAdd&&t.beforeAdd(this),this.whenReady(t._layerAdd,t),this)},removeLayer:function(t){var i=h(t);return this._layers[i]?(this._loaded&&t.onRemove(this),delete this._layers[i],this._loaded&&(this.fire("layerremove",{layer:t}),t.fire("remove")),t._map=t._mapToAdd=null,this):this},hasLayer:function(t){return h(t)in this._layers},eachLayer:function(t,i){for(var a in this._layers)t.call(i,this._layers[a]);return this},_addLayers:function(t){t=t?P(t)?t:[t]:[];for(var i=0,a=t.length;i<a;i++)this.addLayer(t[i])},_addZoomLimit:function(t){(!isNaN(t.options.maxZoom)||!isNaN(t.options.minZoom))&&(this._zoomBoundLayers[h(t)]=t,this._updateZoomLevels())},_removeZoomLimit:function(t){var i=h(t);this._zoomBoundLayers[i]&&(delete this._zoomBoundLayers[i],this._updateZoomLevels())},_updateZoomLevels:function(){var t=1/0,i=-1/0,a=this._getZoomSpan();for(var u in this._zoomBoundLayers){var p=this._zoomBoundLayers[u].options;t=p.minZoom===void 0?t:Math.min(t,p.minZoom),i=p.maxZoom===void 0?i:Math.max(i,p.maxZoom)}this._layersMaxZoom=i===-1/0?void 0:i,this._layersMinZoom=t===1/0?void 0:t,a!==this._getZoomSpan()&&this.fire("zoomlevelschange"),this.options.maxZoom===void 0&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),this.options.minZoom===void 0&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var So=Hn.extend({initialize:function(t,i){x(this,i),this._layers={};var a,u;if(t)for(a=0,u=t.length;a<u;a++)this.addLayer(t[a])},addLayer:function(t){var i=this.getLayerId(t);return this._layers[i]=t,this._map&&this._map.addLayer(t),this},removeLayer:function(t){var i=t in this._layers?t:this.getLayerId(t);return this._map&&this._layers[i]&&this._map.removeLayer(this._layers[i]),delete this._layers[i],this},hasLayer:function(t){var i=typeof t=="number"?t:this.getLayerId(t);return i in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(t){var i=Array.prototype.slice.call(arguments,1),a,u;for(a in this._layers)u=this._layers[a],u[t]&&u[t].apply(u,i);return this},onAdd:function(t){this.eachLayer(t.addLayer,t)},onRemove:function(t){this.eachLayer(t.removeLayer,t)},eachLayer:function(t,i){for(var a in this._layers)t.call(i,this._layers[a]);return this},getLayer:function(t){return this._layers[t]},getLayers:function(){var t=[];return this.eachLayer(t.push,t),t},setZIndex:function(t){return this.invoke("setZIndex",t)},getLayerId:function(t){return h(t)}}),Iw=function(t,i){return new So(t,i)},ar=So.extend({addLayer:function(t){return this.hasLayer(t)?this:(t.addEventParent(this),So.prototype.addLayer.call(this,t),this.fire("layeradd",{layer:t}))},removeLayer:function(t){return this.hasLayer(t)?(t in this._layers&&(t=this._layers[t]),t.removeEventParent(this),So.prototype.removeLayer.call(this,t),this.fire("layerremove",{layer:t})):this},setStyle:function(t){return this.invoke("setStyle",t)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var t=new de;for(var i in this._layers){var a=this._layers[i];t.extend(a.getBounds?a.getBounds():a.getLatLng())}return t}}),Tw=function(t,i){return new ar(t,i)},Eo=W.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(t){x(this,t)},createIcon:function(t){return this._createIcon("icon",t)},createShadow:function(t){return this._createIcon("shadow",t)},_createIcon:function(t,i){var a=this._getIconUrl(t);if(!a){if(t==="icon")throw new Error("iconUrl not set in Icon options (see the docs).");return null}var u=this._createImg(a,i&&i.tagName==="IMG"?i:null);return this._setIconStyles(u,t),(this.options.crossOrigin||this.options.crossOrigin==="")&&(u.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),u},_setIconStyles:function(t,i){var a=this.options,u=a[i+"Size"];typeof u=="number"&&(u=[u,u]);var p=G(u),w=G(i==="shadow"&&a.shadowAnchor||a.iconAnchor||p&&p.divideBy(2,!0));t.className="leaflet-marker-"+i+" "+(a.className||""),w&&(t.style.marginLeft=-w.x+"px",t.style.marginTop=-w.y+"px"),p&&(t.style.width=p.x+"px",t.style.height=p.y+"px")},_createImg:function(t,i){return i=i||document.createElement("img"),i.src=t,i},_getIconUrl:function(t){return ve.retina&&this.options[t+"RetinaUrl"]||this.options[t+"Url"]}});function Aw(t){return new Eo(t)}var bi=Eo.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(t){return typeof bi.imagePath!="string"&&(bi.imagePath=this._detectIconPath()),(this.options.imagePath||bi.imagePath)+Eo.prototype._getIconUrl.call(this,t)},_stripUrl:function(t){var i=function(a,u,p){var w=u.exec(a);return w&&w[p]};return t=i(t,/^url\((['"])?(.+)\1\)$/,2),t&&i(t,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var t=Ne("div","leaflet-default-icon-path",document.body),i=Me(t,"background-image")||Me(t,"backgroundImage");if(document.body.removeChild(t),i=this._stripUrl(i),i)return i;var a=document.querySelector('link[href$="leaflet.css"]');return a?a.href.substring(0,a.href.length-11-1):""}}),Np=Zn.extend({initialize:function(t){this._marker=t},addHooks:function(){var t=this._marker._icon;this._draggable||(this._draggable=new wr(t,t,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),He(t,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&Ct(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(t){var i=this._marker,a=i._map,u=this._marker.options.autoPanSpeed,p=this._marker.options.autoPanPadding,w=sr(i._icon),O=a.getPixelBounds(),D=a.getPixelOrigin(),H=ne(O.min._subtract(D).add(p),O.max._subtract(D).subtract(p));if(!H.contains(w)){var Q=G((Math.max(H.max.x,w.x)-H.max.x)/(O.max.x-H.max.x)-(Math.min(H.min.x,w.x)-H.min.x)/(O.min.x-H.min.x),(Math.max(H.max.y,w.y)-H.max.y)/(O.max.y-H.max.y)-(Math.min(H.min.y,w.y)-H.min.y)/(O.min.y-H.min.y)).multiplyBy(u);a.panBy(Q,{animate:!1}),this._draggable._newPos._add(Q),this._draggable._startPos._add(Q),Pt(i._icon,this._draggable._newPos),this._onDrag(t),this._panRequest=$(this._adjustPan.bind(this,t))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(t){this._marker.options.autoPan&&(j(this._panRequest),this._panRequest=$(this._adjustPan.bind(this,t)))},_onDrag:function(t){var i=this._marker,a=i._shadow,u=sr(i._icon),p=i._map.layerPointToLatLng(u);a&&Pt(a,u),i._latlng=p,t.latlng=p,t.oldLatLng=this._oldLatLng,i.fire("move",t).fire("drag",t)},_onDragEnd:function(t){j(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",t)}}),Os=Hn.extend({options:{icon:new bi,interactive:!0,keyboard:!0,title:"",alt:"Marker",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:!1,autoPanOnFocus:!0,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(t,i){x(this,i),this._latlng=K(t)},onAdd:function(t){this._zoomAnimated=this._zoomAnimated&&t.options.markerZoomAnimation,this._zoomAnimated&&t.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(t){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&t.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(t){var i=this._latlng;return this._latlng=K(t),this.update(),this.fire("move",{oldLatLng:i,latlng:this._latlng})},setZIndexOffset:function(t){return this.options.zIndexOffset=t,this.update()},getIcon:function(){return this.options.icon},setIcon:function(t){return this.options.icon=t,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){if(this._icon&&this._map){var t=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(t)}return this},_initIcon:function(){var t=this.options,i="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),a=t.icon.createIcon(this._icon),u=!1;a!==this._icon&&(this._icon&&this._removeIcon(),u=!0,t.title&&(a.title=t.title),a.tagName==="IMG"&&(a.alt=t.alt||"")),He(a,i),t.keyboard&&(a.tabIndex="0",a.setAttribute("role","button")),this._icon=a,t.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&je(a,"focus",this._panOnFocus,this);var p=t.icon.createShadow(this._shadow),w=!1;p!==this._shadow&&(this._removeShadow(),w=!0),p&&(He(p,i),p.alt=""),this._shadow=p,t.opacity<1&&this._updateOpacity(),u&&this.getPane().appendChild(this._icon),this._initInteraction(),p&&w&&this.getPane(t.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&bt(this._icon,"focus",this._panOnFocus,this),Ue(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&Ue(this._shadow),this._shadow=null},_setPos:function(t){this._icon&&Pt(this._icon,t),this._shadow&&Pt(this._shadow,t),this._zIndex=t.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(t){this._icon&&(this._icon.style.zIndex=this._zIndex+t)},_animateZoom:function(t){var i=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center).round();this._setPos(i)},_initInteraction:function(){if(this.options.interactive&&(He(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),Np)){var t=this.options.draggable;this.dragging&&(t=this.dragging.enabled(),this.dragging.disable()),this.dragging=new Np(this),t&&this.dragging.enable()}},setOpacity:function(t){return this.options.opacity=t,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var t=this.options.opacity;this._icon&&ke(this._icon,t),this._shadow&&ke(this._shadow,t)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var t=this._map;if(t){var i=this.options.icon.options,a=i.iconSize?G(i.iconSize):G(0,0),u=i.iconAnchor?G(i.iconAnchor):G(0,0);t.panInside(this._latlng,{paddingTopLeft:u,paddingBottomRight:a.subtract(u)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function Mw(t,i){return new Os(t,i)}var Cr=Hn.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:!0,bubblingMouseEvents:!0},beforeAdd:function(t){this._renderer=t.getRenderer(this)},onAdd:function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){return this._map&&this._renderer._updatePath(this),this},setStyle:function(t){return x(this,t),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&t&&Object.prototype.hasOwnProperty.call(t,"weight")&&this._updateBounds()),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+(this._renderer.options.tolerance||0)}}),Ns=Cr.extend({options:{fill:!0,radius:10},initialize:function(t,i){x(this,i),this._latlng=K(t),this._radius=this.options.radius},setLatLng:function(t){var i=this._latlng;return this._latlng=K(t),this.redraw(),this.fire("move",{oldLatLng:i,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(t){return this.options.radius=this._radius=t,this.redraw()},getRadius:function(){return this._radius},setStyle:function(t){var i=t&&t.radius||this._radius;return Cr.prototype.setStyle.call(this,t),this.setRadius(i),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var t=this._radius,i=this._radiusY||t,a=this._clickTolerance(),u=[t+a,i+a];this._pxBounds=new ie(this._point.subtract(u),this._point.add(u))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(t){return t.distanceTo(this._point)<=this._radius+this._clickTolerance()}});function Lw(t,i){return new Ns(t,i)}var Oc=Ns.extend({initialize:function(t,i,a){if(typeof i=="number"&&(i=s({},a,{radius:i})),x(this,i),this._latlng=K(t),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(t){return this._mRadius=t,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var t=[this._radius,this._radiusY||this._radius];return new de(this._map.layerPointToLatLng(this._point.subtract(t)),this._map.layerPointToLatLng(this._point.add(t)))},setStyle:Cr.prototype.setStyle,_project:function(){var t=this._latlng.lng,i=this._latlng.lat,a=this._map,u=a.options.crs;if(u.distance===se.distance){var p=Math.PI/180,w=this._mRadius/se.R/p,O=a.project([i+w,t]),D=a.project([i-w,t]),H=O.add(D).divideBy(2),Q=a.unproject(H).lat,be=Math.acos((Math.cos(w*p)-Math.sin(i*p)*Math.sin(Q*p))/(Math.cos(i*p)*Math.cos(Q*p)))/p;(isNaN(be)||be===0)&&(be=w/Math.cos(Math.PI/180*i)),this._point=H.subtract(a.getPixelOrigin()),this._radius=isNaN(be)?0:H.x-a.project([Q,t-be]).x,this._radiusY=H.y-O.y}else{var Re=u.unproject(u.project(this._latlng).subtract([this._mRadius,0]));this._point=a.latLngToLayerPoint(this._latlng),this._radius=this._point.x-a.latLngToLayerPoint(Re).x}this._updateBounds()}});function Ow(t,i,a){return new Oc(t,i,a)}var lr=Cr.extend({options:{smoothFactor:1,noClip:!1},initialize:function(t,i){x(this,i),this._setLatLngs(t)},getLatLngs:function(){return this._latlngs},setLatLngs:function(t){return this._setLatLngs(t),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(t){for(var i=1/0,a=null,u=yi,p,w,O=0,D=this._parts.length;O<D;O++)for(var H=this._parts[O],Q=1,be=H.length;Q<be;Q++){p=H[Q-1],w=H[Q];var Re=u(t,p,w,!0);Re<i&&(i=Re,a=u(t,p,w))}return a&&(a.distance=Math.sqrt(i)),a},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return Lp(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(t,i){return i=i||this._defaultShape(),t=K(t),i.push(t),this._bounds.extend(t),this.redraw()},_setLatLngs:function(t){this._bounds=new de,this._latlngs=this._convertLatLngs(t)},_defaultShape:function(){return An(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(t){for(var i=[],a=An(t),u=0,p=t.length;u<p;u++)a?(i[u]=K(t[u]),this._bounds.extend(i[u])):i[u]=this._convertLatLngs(t[u]);return i},_project:function(){var t=new ie;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,t),this._bounds.isValid()&&t.isValid()&&(this._rawPxBounds=t,this._updateBounds())},_updateBounds:function(){var t=this._clickTolerance(),i=new Z(t,t);this._rawPxBounds&&(this._pxBounds=new ie([this._rawPxBounds.min.subtract(i),this._rawPxBounds.max.add(i)]))},_projectLatlngs:function(t,i,a){var u=t[0]instanceof ee,p=t.length,w,O;if(u){for(O=[],w=0;w<p;w++)O[w]=this._map.latLngToLayerPoint(t[w]),a.extend(O[w]);i.push(O)}else for(w=0;w<p;w++)this._projectLatlngs(t[w],i,a)},_clipPoints:function(){var t=this._renderer._bounds;if(this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(t))){if(this.options.noClip){this._parts=this._rings;return}var i=this._parts,a,u,p,w,O,D,H;for(a=0,p=0,w=this._rings.length;a<w;a++)for(H=this._rings[a],u=0,O=H.length;u<O-1;u++)D=Ap(H[u],H[u+1],t,u,!0),D&&(i[p]=i[p]||[],i[p].push(D[0]),(D[1]!==H[u+1]||u===O-2)&&(i[p].push(D[1]),p++))}},_simplifyPoints:function(){for(var t=this._parts,i=this.options.smoothFactor,a=0,u=t.length;a<u;a++)t[a]=Pp(t[a],i)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(t,i){var a,u,p,w,O,D,H=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(a=0,w=this._parts.length;a<w;a++)for(D=this._parts[a],u=0,O=D.length,p=O-1;u<O;p=u++)if(!(!i&&u===0)&&Ip(t,D[p],D[u])<=H)return!0;return!1}});function Nw(t,i){return new lr(t,i)}lr._flat=Mp;var Po=lr.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return Ep(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(t){var i=lr.prototype._convertLatLngs.call(this,t),a=i.length;return a>=2&&i[0]instanceof ee&&i[0].equals(i[a-1])&&i.pop(),i},_setLatLngs:function(t){lr.prototype._setLatLngs.call(this,t),An(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return An(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var t=this._renderer._bounds,i=this.options.weight,a=new Z(i,i);if(t=new ie(t.min.subtract(a),t.max.add(a)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(t))){if(this.options.noClip){this._parts=this._rings;return}for(var u=0,p=this._rings.length,w;u<p;u++)w=Sp(this._rings[u],t,!0),w.length&&this._parts.push(w)}},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(t){var i=!1,a,u,p,w,O,D,H,Q;if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(w=0,H=this._parts.length;w<H;w++)for(a=this._parts[w],O=0,Q=a.length,D=Q-1;O<Q;D=O++)u=a[O],p=a[D],u.y>t.y!=p.y>t.y&&t.x<(p.x-u.x)*(t.y-u.y)/(p.y-u.y)+u.x&&(i=!i);return i||lr.prototype._containsPoint.call(this,t,!0)}});function kw(t,i){return new Po(t,i)}var cr=ar.extend({initialize:function(t,i){x(this,i),this._layers={},t&&this.addData(t)},addData:function(t){var i=P(t)?t:t.features,a,u,p;if(i){for(a=0,u=i.length;a<u;a++)p=i[a],(p.geometries||p.geometry||p.features||p.coordinates)&&this.addData(p);return this}var w=this.options;if(w.filter&&!w.filter(t))return this;var O=ks(t,w);return O?(O.feature=Bs(t),O.defaultOptions=O.options,this.resetStyle(O),w.onEachFeature&&w.onEachFeature(t,O),this.addLayer(O)):this},resetStyle:function(t){return t===void 0?this.eachLayer(this.resetStyle,this):(t.options=s({},t.defaultOptions),this._setLayerStyle(t,this.options.style),this)},setStyle:function(t){return this.eachLayer(function(i){this._setLayerStyle(i,t)},this)},_setLayerStyle:function(t,i){t.setStyle&&(typeof i=="function"&&(i=i(t.feature)),t.setStyle(i))}});function ks(t,i){var a=t.type==="Feature"?t.geometry:t,u=a?a.coordinates:null,p=[],w=i&&i.pointToLayer,O=i&&i.coordsToLatLng||Nc,D,H,Q,be;if(!u&&!a)return null;switch(a.type){case"Point":return D=O(u),kp(w,t,D,i);case"MultiPoint":for(Q=0,be=u.length;Q<be;Q++)D=O(u[Q]),p.push(kp(w,t,D,i));return new ar(p);case"LineString":case"MultiLineString":return H=Rs(u,a.type==="LineString"?0:1,O),new lr(H,i);case"Polygon":case"MultiPolygon":return H=Rs(u,a.type==="Polygon"?1:2,O),new Po(H,i);case"GeometryCollection":for(Q=0,be=a.geometries.length;Q<be;Q++){var Re=ks({geometry:a.geometries[Q],type:"Feature",properties:t.properties},i);Re&&p.push(Re)}return new ar(p);case"FeatureCollection":for(Q=0,be=a.features.length;Q<be;Q++){var Xe=ks(a.features[Q],i);Xe&&p.push(Xe)}return new ar(p);default:throw new Error("Invalid GeoJSON object.")}}function kp(t,i,a,u){return t?t(i,a):new Os(a,u&&u.markersInheritOptions&&u)}function Nc(t){return new ee(t[1],t[0],t[2])}function Rs(t,i,a){for(var u=[],p=0,w=t.length,O;p<w;p++)O=i?Rs(t[p],i-1,a):(a||Nc)(t[p]),u.push(O);return u}function kc(t,i){return t=K(t),t.alt!==void 0?[y(t.lng,i),y(t.lat,i),y(t.alt,i)]:[y(t.lng,i),y(t.lat,i)]}function $s(t,i,a,u){for(var p=[],w=0,O=t.length;w<O;w++)p.push(i?$s(t[w],An(t[w])?0:i-1,a,u):kc(t[w],u));return!i&&a&&p.length>0&&p.push(p[0].slice()),p}function Io(t,i){return t.feature?s({},t.feature,{geometry:i}):Bs(i)}function Bs(t){return t.type==="Feature"||t.type==="FeatureCollection"?t:{type:"Feature",properties:{},geometry:t}}var Rc={toGeoJSON:function(t){return Io(this,{type:"Point",coordinates:kc(this.getLatLng(),t)})}};Os.include(Rc),Oc.include(Rc),Ns.include(Rc),lr.include({toGeoJSON:function(t){var i=!An(this._latlngs),a=$s(this._latlngs,i?1:0,!1,t);return Io(this,{type:(i?"Multi":"")+"LineString",coordinates:a})}}),Po.include({toGeoJSON:function(t){var i=!An(this._latlngs),a=i&&!An(this._latlngs[0]),u=$s(this._latlngs,a?2:i?1:0,!0,t);return i||(u=[u]),Io(this,{type:(a?"Multi":"")+"Polygon",coordinates:u})}}),So.include({toMultiPoint:function(t){var i=[];return this.eachLayer(function(a){i.push(a.toGeoJSON(t).geometry.coordinates)}),Io(this,{type:"MultiPoint",coordinates:i})},toGeoJSON:function(t){var i=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(i==="MultiPoint")return this.toMultiPoint(t);var a=i==="GeometryCollection",u=[];return this.eachLayer(function(p){if(p.toGeoJSON){var w=p.toGeoJSON(t);if(a)u.push(w.geometry);else{var O=Bs(w);O.type==="FeatureCollection"?u.push.apply(u,O.features):u.push(O)}}}),a?Io(this,{geometries:u,type:"GeometryCollection"}):{type:"FeatureCollection",features:u}}});function Rp(t,i){return new cr(t,i)}var Rw=Rp,zs=Hn.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(t,i,a){this._url=t,this._bounds=oe(i),x(this,a)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(He(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){Ue(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(t){return this.options.opacity=t,this._image&&this._updateOpacity(),this},setStyle:function(t){return t.opacity&&this.setOpacity(t.opacity),this},bringToFront:function(){return this._map&&gn(this._image),this},bringToBack:function(){return this._map&&zn(this._image),this},setUrl:function(t){return this._url=t,this._image&&(this._image.src=t),this},setBounds:function(t){return this._bounds=oe(t),this._map&&this._reset(),this},getEvents:function(){var t={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var t=this._url.tagName==="IMG",i=this._image=t?this._url:Ne("img");if(He(i,"leaflet-image-layer"),this._zoomAnimated&&He(i,"leaflet-zoom-animated"),this.options.className&&He(i,this.options.className),i.onselectstart=v,i.onmousemove=v,i.onload=c(this.fire,this,"load"),i.onerror=c(this._overlayOnError,this,"error"),(this.options.crossOrigin||this.options.crossOrigin==="")&&(i.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),t){this._url=i.src;return}i.src=this._url,i.alt=this.options.alt},_animateZoom:function(t){var i=this._map.getZoomScale(t.zoom),a=this._map._latLngBoundsToNewLayerBounds(this._bounds,t.zoom,t.center).min;un(this._image,a,i)},_reset:function(){var t=this._image,i=new ie(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),a=i.getSize();Pt(t,i.min),t.style.width=a.x+"px",t.style.height=a.y+"px"},_updateOpacity:function(){ke(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var t=this.options.errorOverlayUrl;t&&this._url!==t&&(this._url=t,this._image.src=t)},getCenter:function(){return this._bounds.getCenter()}}),$w=function(t,i,a){return new zs(t,i,a)},$p=zs.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var t=this._url.tagName==="VIDEO",i=this._image=t?this._url:Ne("video");if(He(i,"leaflet-image-layer"),this._zoomAnimated&&He(i,"leaflet-zoom-animated"),this.options.className&&He(i,this.options.className),i.onselectstart=v,i.onmousemove=v,i.onloadeddata=c(this.fire,this,"load"),t){for(var a=i.getElementsByTagName("source"),u=[],p=0;p<a.length;p++)u.push(a[p].src);this._url=a.length>0?u:[i.src];return}P(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(i.style,"objectFit")&&(i.style.objectFit="fill"),i.autoplay=!!this.options.autoplay,i.loop=!!this.options.loop,i.muted=!!this.options.muted,i.playsInline=!!this.options.playsInline;for(var w=0;w<this._url.length;w++){var O=Ne("source");O.src=this._url[w],i.appendChild(O)}}});function Bw(t,i,a){return new $p(t,i,a)}var Bp=zs.extend({_initImage:function(){var t=this._image=this._url;He(t,"leaflet-image-layer"),this._zoomAnimated&&He(t,"leaflet-zoom-animated"),this.options.className&&He(t,this.options.className),t.onselectstart=v,t.onmousemove=v}});function zw(t,i,a){return new Bp(t,i,a)}var Un=Hn.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(t,i){t&&(t instanceof ee||P(t))?(this._latlng=K(t),x(this,i)):(x(this,t),this._source=i),this.options.content&&(this._content=this.options.content)},openOn:function(t){return t=arguments.length?t:this._source._map,t.hasLayer(this)||t.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(t){return this._map?this.close():(arguments.length?this._source=t:t=this._source,this._prepareOpen(),this.openOn(t._map)),this},onAdd:function(t){this._zoomAnimated=t._zoomAnimated,this._container||this._initLayout(),t._fadeAnimated&&ke(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),t._fadeAnimated&&ke(this._container,1),this.bringToFront(),this.options.interactive&&(He(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(t){t._fadeAnimated?(ke(this._container,0),this._removeTimeout=setTimeout(c(Ue,void 0,this._container),200)):Ue(this._container),this.options.interactive&&(Ct(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(t){return this._latlng=K(t),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(t){return this._content=t,this.update(),this},getElement:function(){return this._container},update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},getEvents:function(){var t={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&gn(this._container),this},bringToBack:function(){return this._map&&zn(this._container),this},_prepareOpen:function(t){var i=this._source;if(!i._map)return!1;if(i instanceof ar){i=null;var a=this._source._layers;for(var u in a)if(a[u]._map){i=a[u];break}if(!i)return!1;this._source=i}if(!t)if(i.getCenter)t=i.getCenter();else if(i.getLatLng)t=i.getLatLng();else if(i.getBounds)t=i.getBounds().getCenter();else throw new Error("Unable to get source layer LatLng.");return this.setLatLng(t),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var t=this._contentNode,i=typeof this._content=="function"?this._content(this._source||this):this._content;if(typeof i=="string")t.innerHTML=i;else{for(;t.hasChildNodes();)t.removeChild(t.firstChild);t.appendChild(i)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var t=this._map.latLngToLayerPoint(this._latlng),i=G(this.options.offset),a=this._getAnchor();this._zoomAnimated?Pt(this._container,t.add(a)):i=i.add(t).add(a);var u=this._containerBottom=-i.y,p=this._containerLeft=-Math.round(this._containerWidth/2)+i.x;this._container.style.bottom=u+"px",this._container.style.left=p+"px"}},_getAnchor:function(){return[0,0]}});it.include({_initOverlay:function(t,i,a,u){var p=i;return p instanceof t||(p=new t(u).setContent(i)),a&&p.setLatLng(a),p}}),Hn.include({_initOverlay:function(t,i,a,u){var p=a;return p instanceof t?(x(p,u),p._source=this):(p=i&&!u?i:new t(u,this),p.setContent(a)),p}});var Ds=Un.extend({options:{pane:"popupPane",offset:[0,7],maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,closeOnEscapeKey:!0,className:""},openOn:function(t){return t=arguments.length?t:this._source._map,!t.hasLayer(this)&&t._popup&&t._popup.options.autoClose&&t.removeLayer(t._popup),t._popup=this,Un.prototype.openOn.call(this,t)},onAdd:function(t){Un.prototype.onAdd.call(this,t),t.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof Cr||this._source.on("preclick",Fr))},onRemove:function(t){Un.prototype.onRemove.call(this,t),t.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof Cr||this._source.off("preclick",Fr))},getEvents:function(){var t=Un.prototype.getEvents.call(this);return(this.options.closeOnClick!==void 0?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(t.preclick=this.close),this.options.keepInView&&(t.moveend=this._adjustPan),t},_initLayout:function(){var t="leaflet-popup",i=this._container=Ne("div",t+" "+(this.options.className||"")+" leaflet-zoom-animated"),a=this._wrapper=Ne("div",t+"-content-wrapper",i);if(this._contentNode=Ne("div",t+"-content",a),gi(i),Sc(this._contentNode),je(i,"contextmenu",Fr),this._tipContainer=Ne("div",t+"-tip-container",i),this._tip=Ne("div",t+"-tip",this._tipContainer),this.options.closeButton){var u=this._closeButton=Ne("a",t+"-close-button",i);u.setAttribute("role","button"),u.setAttribute("aria-label","Close popup"),u.href="#close",u.innerHTML='<span aria-hidden="true">×</span>',je(u,"click",function(p){en(p),this.close()},this)}},_updateLayout:function(){var t=this._contentNode,i=t.style;i.width="",i.whiteSpace="nowrap";var a=t.offsetWidth;a=Math.min(a,this.options.maxWidth),a=Math.max(a,this.options.minWidth),i.width=a+1+"px",i.whiteSpace="",i.height="";var u=t.offsetHeight,p=this.options.maxHeight,w="leaflet-popup-scrolled";p&&u>p?(i.height=p+"px",He(t,w)):Ct(t,w),this._containerWidth=this._container.offsetWidth},_animateZoom:function(t){var i=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),a=this._getAnchor();Pt(this._container,i.add(a))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning){this._autopanning=!1;return}var t=this._map,i=parseInt(Me(this._container,"marginBottom"),10)||0,a=this._container.offsetHeight+i,u=this._containerWidth,p=new Z(this._containerLeft,-a-this._containerBottom);p._add(sr(this._container));var w=t.layerPointToContainerPoint(p),O=G(this.options.autoPanPadding),D=G(this.options.autoPanPaddingTopLeft||O),H=G(this.options.autoPanPaddingBottomRight||O),Q=t.getSize(),be=0,Re=0;w.x+u+H.x>Q.x&&(be=w.x+u-Q.x+H.x),w.x-be-D.x<0&&(be=w.x-D.x),w.y+a+H.y>Q.y&&(Re=w.y+a-Q.y+H.y),w.y-Re-D.y<0&&(Re=w.y-D.y),(be||Re)&&(this.options.keepInView&&(this._autopanning=!0),t.fire("autopanstart").panBy([be,Re]))}},_getAnchor:function(){return G(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),Dw=function(t,i){return new Ds(t,i)};it.mergeOptions({closePopupOnClick:!0}),it.include({openPopup:function(t,i,a){return this._initOverlay(Ds,t,i,a).openOn(this),this},closePopup:function(t){return t=arguments.length?t:this._popup,t&&t.close(),this}}),Hn.include({bindPopup:function(t,i){return this._popup=this._initOverlay(Ds,this._popup,t,i),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(t){return this._popup&&(this instanceof ar||(this._popup._source=this),this._popup._prepareOpen(t||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return this._popup?this._popup.isOpen():!1},setPopupContent:function(t){return this._popup&&this._popup.setContent(t),this},getPopup:function(){return this._popup},_openPopup:function(t){if(!(!this._popup||!this._map)){Hr(t);var i=t.layer||t.target;if(this._popup._source===i&&!(i instanceof Cr)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(t.latlng);return}this._popup._source=i,this.openPopup(t.latlng)}},_movePopup:function(t){this._popup.setLatLng(t.latlng)},_onKeyPress:function(t){t.originalEvent.keyCode===13&&this._openPopup(t)}});var Fs=Un.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(t){Un.prototype.onAdd.call(this,t),this.setOpacity(this.options.opacity),t.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(t){Un.prototype.onRemove.call(this,t),t.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var t=Un.prototype.getEvents.call(this);return this.options.permanent||(t.preclick=this.close),t},_initLayout:function(){var t="leaflet-tooltip",i=t+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=Ne("div",i),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+h(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(t){var i,a,u=this._map,p=this._container,w=u.latLngToContainerPoint(u.getCenter()),O=u.layerPointToContainerPoint(t),D=this.options.direction,H=p.offsetWidth,Q=p.offsetHeight,be=G(this.options.offset),Re=this._getAnchor();D==="top"?(i=H/2,a=Q):D==="bottom"?(i=H/2,a=0):D==="center"?(i=H/2,a=Q/2):D==="right"?(i=0,a=Q/2):D==="left"?(i=H,a=Q/2):O.x<w.x?(D="right",i=0,a=Q/2):(D="left",i=H+(be.x+Re.x)*2,a=Q/2),t=t.subtract(G(i,a,!0)).add(be).add(Re),Ct(p,"leaflet-tooltip-right"),Ct(p,"leaflet-tooltip-left"),Ct(p,"leaflet-tooltip-top"),Ct(p,"leaflet-tooltip-bottom"),He(p,"leaflet-tooltip-"+D),Pt(p,t)},_updatePosition:function(){var t=this._map.latLngToLayerPoint(this._latlng);this._setPosition(t)},setOpacity:function(t){this.options.opacity=t,this._container&&ke(this._container,t)},_animateZoom:function(t){var i=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center);this._setPosition(i)},_getAnchor:function(){return G(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),Fw=function(t,i){return new Fs(t,i)};it.include({openTooltip:function(t,i,a){return this._initOverlay(Fs,t,i,a).openOn(this),this},closeTooltip:function(t){return t.close(),this}}),Hn.include({bindTooltip:function(t,i){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(Fs,this._tooltip,t,i),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(t){if(!(!t&&this._tooltipHandlersAdded)){var i=t?"off":"on",a={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?a.add=this._openTooltip:(a.mouseover=this._openTooltip,a.mouseout=this.closeTooltip,a.click=this._openTooltip,this._map?this._addFocusListeners():a.add=this._addFocusListeners),this._tooltip.options.sticky&&(a.mousemove=this._moveTooltip),this[i](a),this._tooltipHandlersAdded=!t}},openTooltip:function(t){return this._tooltip&&(this instanceof ar||(this._tooltip._source=this),this._tooltip._prepareOpen(t)&&(this._tooltip.openOn(this._map),this.getElement?this._setAriaDescribedByOnLayer(this):this.eachLayer&&this.eachLayer(this._setAriaDescribedByOnLayer,this))),this},closeTooltip:function(){if(this._tooltip)return this._tooltip.close()},toggleTooltip:function(){return this._tooltip&&this._tooltip.toggle(this),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(t){return this._tooltip&&this._tooltip.setContent(t),this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},_addFocusListenersOnLayer:function(t){var i=typeof t.getElement=="function"&&t.getElement();i&&(je(i,"focus",function(){this._tooltip._source=t,this.openTooltip()},this),je(i,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(t){var i=typeof t.getElement=="function"&&t.getElement();i&&i.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(t){if(!(!this._tooltip||!this._map)){if(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag){this._openOnceFlag=!0;var i=this;this._map.once("moveend",function(){i._openOnceFlag=!1,i._openTooltip(t)});return}this._tooltip._source=t.layer||t.target,this.openTooltip(this._tooltip.options.sticky?t.latlng:void 0)}},_moveTooltip:function(t){var i=t.latlng,a,u;this._tooltip.options.sticky&&t.originalEvent&&(a=this._map.mouseEventToContainerPoint(t.originalEvent),u=this._map.containerPointToLayerPoint(a),i=this._map.layerPointToLatLng(u)),this._tooltip.setLatLng(i)}});var zp=Eo.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(t){var i=t&&t.tagName==="DIV"?t:document.createElement("div"),a=this.options;if(a.html instanceof Element?(Tn(i),i.appendChild(a.html)):i.innerHTML=a.html!==!1?a.html:"",a.bgPos){var u=G(a.bgPos);i.style.backgroundPosition=-u.x+"px "+-u.y+"px"}return this._setIconStyles(i,"icon"),i},createShadow:function(){return null}});function Hw(t){return new zp(t)}Eo.Default=bi;var _i=Hn.extend({options:{tileSize:256,opacity:1,updateWhenIdle:ve.mobile,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize:function(t){x(this,t)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(t){t._addZoomLimit(this)},onRemove:function(t){this._removeAllTiles(),Ue(this._container),t._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(gn(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(zn(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(t){return this.options.opacity=t,this._updateOpacity(),this},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var t=this._clampZoom(this._map.getZoom());t!==this._tileZoom&&(this._tileZoom=t,this._updateLevels()),this._update()}return this},getEvents:function(){var t={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=g(this._onMoveEnd,this.options.updateInterval,this)),t.move=this._onMove),this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},createTile:function(){return document.createElement("div")},getTileSize:function(){var t=this.options.tileSize;return t instanceof Z?t:new Z(t,t)},_updateZIndex:function(){this._container&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(t){for(var i=this.getPane().children,a=-t(-1/0,1/0),u=0,p=i.length,w;u<p;u++)w=i[u].style.zIndex,i[u]!==this._container&&w&&(a=t(a,+w));isFinite(a)&&(this.options.zIndex=a+t(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!ve.ielt9){ke(this._container,this.options.opacity);var t=+new Date,i=!1,a=!1;for(var u in this._tiles){var p=this._tiles[u];if(!(!p.current||!p.loaded)){var w=Math.min(1,(t-p.loaded)/200);ke(p.el,w),w<1?i=!0:(p.active?a=!0:this._onOpaqueTile(p),p.active=!0)}}a&&!this._noPrune&&this._pruneTiles(),i&&(j(this._fadeFrame),this._fadeFrame=$(this._updateOpacity,this))}},_onOpaqueTile:v,_initContainer:function(){this._container||(this._container=Ne("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var t=this._tileZoom,i=this.options.maxZoom;if(t!==void 0){for(var a in this._levels)a=Number(a),this._levels[a].el.children.length||a===t?(this._levels[a].el.style.zIndex=i-Math.abs(t-a),this._onUpdateLevel(a)):(Ue(this._levels[a].el),this._removeTilesAtZoom(a),this._onRemoveLevel(a),delete this._levels[a]);var u=this._levels[t],p=this._map;return u||(u=this._levels[t]={},u.el=Ne("div","leaflet-tile-container leaflet-zoom-animated",this._container),u.el.style.zIndex=i,u.origin=p.project(p.unproject(p.getPixelOrigin()),t).round(),u.zoom=t,this._setZoomTransform(u,p.getCenter(),p.getZoom()),v(u.el.offsetWidth),this._onCreateLevel(u)),this._level=u,u}},_onUpdateLevel:v,_onRemoveLevel:v,_onCreateLevel:v,_pruneTiles:function(){if(this._map){var t,i,a=this._map.getZoom();if(a>this.options.maxZoom||a<this.options.minZoom){this._removeAllTiles();return}for(t in this._tiles)i=this._tiles[t],i.retain=i.current;for(t in this._tiles)if(i=this._tiles[t],i.current&&!i.active){var u=i.coords;this._retainParent(u.x,u.y,u.z,u.z-5)||this._retainChildren(u.x,u.y,u.z,u.z+2)}for(t in this._tiles)this._tiles[t].retain||this._removeTile(t)}},_removeTilesAtZoom:function(t){for(var i in this._tiles)this._tiles[i].coords.z===t&&this._removeTile(i)},_removeAllTiles:function(){for(var t in this._tiles)this._removeTile(t)},_invalidateAll:function(){for(var t in this._levels)Ue(this._levels[t].el),this._onRemoveLevel(Number(t)),delete this._levels[t];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(t,i,a,u){var p=Math.floor(t/2),w=Math.floor(i/2),O=a-1,D=new Z(+p,+w);D.z=+O;var H=this._tileCoordsToKey(D),Q=this._tiles[H];return Q&&Q.active?(Q.retain=!0,!0):(Q&&Q.loaded&&(Q.retain=!0),O>u?this._retainParent(p,w,O,u):!1)},_retainChildren:function(t,i,a,u){for(var p=2*t;p<2*t+2;p++)for(var w=2*i;w<2*i+2;w++){var O=new Z(p,w);O.z=a+1;var D=this._tileCoordsToKey(O),H=this._tiles[D];if(H&&H.active){H.retain=!0;continue}else H&&H.loaded&&(H.retain=!0);a+1<u&&this._retainChildren(p,w,a+1,u)}},_resetView:function(t){var i=t&&(t.pinch||t.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),i,i)},_animateZoom:function(t){this._setView(t.center,t.zoom,!0,t.noUpdate)},_clampZoom:function(t){var i=this.options;return i.minNativeZoom!==void 0&&t<i.minNativeZoom?i.minNativeZoom:i.maxNativeZoom!==void 0&&i.maxNativeZoom<t?i.maxNativeZoom:t},_setView:function(t,i,a,u){var p=Math.round(i);this.options.maxZoom!==void 0&&p>this.options.maxZoom||this.options.minZoom!==void 0&&p<this.options.minZoom?p=void 0:p=this._clampZoom(p);var w=this.options.updateWhenZooming&&p!==this._tileZoom;(!u||w)&&(this._tileZoom=p,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),p!==void 0&&this._update(t),a||this._pruneTiles(),this._noPrune=!!a),this._setZoomTransforms(t,i)},_setZoomTransforms:function(t,i){for(var a in this._levels)this._setZoomTransform(this._levels[a],t,i)},_setZoomTransform:function(t,i,a){var u=this._map.getZoomScale(a,t.zoom),p=t.origin.multiplyBy(u).subtract(this._map._getNewPixelOrigin(i,a)).round();ve.any3d?un(t.el,p,u):Pt(t.el,p)},_resetGrid:function(){var t=this._map,i=t.options.crs,a=this._tileSize=this.getTileSize(),u=this._tileZoom,p=this._map.getPixelWorldBounds(this._tileZoom);p&&(this._globalTileRange=this._pxBoundsToTileRange(p)),this._wrapX=i.wrapLng&&!this.options.noWrap&&[Math.floor(t.project([0,i.wrapLng[0]],u).x/a.x),Math.ceil(t.project([0,i.wrapLng[1]],u).x/a.y)],this._wrapY=i.wrapLat&&!this.options.noWrap&&[Math.floor(t.project([i.wrapLat[0],0],u).y/a.x),Math.ceil(t.project([i.wrapLat[1],0],u).y/a.y)]},_onMoveEnd:function(){!this._map||this._map._animatingZoom||this._update()},_getTiledPixelBounds:function(t){var i=this._map,a=i._animatingZoom?Math.max(i._animateToZoom,i.getZoom()):i.getZoom(),u=i.getZoomScale(a,this._tileZoom),p=i.project(t,this._tileZoom).floor(),w=i.getSize().divideBy(u*2);return new ie(p.subtract(w),p.add(w))},_update:function(t){var i=this._map;if(i){var a=this._clampZoom(i.getZoom());if(t===void 0&&(t=i.getCenter()),this._tileZoom!==void 0){var u=this._getTiledPixelBounds(t),p=this._pxBoundsToTileRange(u),w=p.getCenter(),O=[],D=this.options.keepBuffer,H=new ie(p.getBottomLeft().subtract([D,-D]),p.getTopRight().add([D,-D]));if(!(isFinite(p.min.x)&&isFinite(p.min.y)&&isFinite(p.max.x)&&isFinite(p.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var Q in this._tiles){var be=this._tiles[Q].coords;(be.z!==this._tileZoom||!H.contains(new Z(be.x,be.y)))&&(this._tiles[Q].current=!1)}if(Math.abs(a-this._tileZoom)>1){this._setView(t,a);return}for(var Re=p.min.y;Re<=p.max.y;Re++)for(var Xe=p.min.x;Xe<=p.max.x;Xe++){var dn=new Z(Xe,Re);if(dn.z=this._tileZoom,!!this._isValidTile(dn)){var Xt=this._tiles[this._tileCoordsToKey(dn)];Xt?Xt.current=!0:O.push(dn)}}if(O.sort(function(vn,Ao){return vn.distanceTo(w)-Ao.distanceTo(w)}),O.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var Mn=document.createDocumentFragment();for(Xe=0;Xe<O.length;Xe++)this._addTile(O[Xe],Mn);this._level.el.appendChild(Mn)}}}},_isValidTile:function(t){var i=this._map.options.crs;if(!i.infinite){var a=this._globalTileRange;if(!i.wrapLng&&(t.x<a.min.x||t.x>a.max.x)||!i.wrapLat&&(t.y<a.min.y||t.y>a.max.y))return!1}if(!this.options.bounds)return!0;var u=this._tileCoordsToBounds(t);return oe(this.options.bounds).overlaps(u)},_keyToBounds:function(t){return this._tileCoordsToBounds(this._keyToTileCoords(t))},_tileCoordsToNwSe:function(t){var i=this._map,a=this.getTileSize(),u=t.scaleBy(a),p=u.add(a),w=i.unproject(u,t.z),O=i.unproject(p,t.z);return[w,O]},_tileCoordsToBounds:function(t){var i=this._tileCoordsToNwSe(t),a=new de(i[0],i[1]);return this.options.noWrap||(a=this._map.wrapLatLngBounds(a)),a},_tileCoordsToKey:function(t){return t.x+":"+t.y+":"+t.z},_keyToTileCoords:function(t){var i=t.split(":"),a=new Z(+i[0],+i[1]);return a.z=+i[2],a},_removeTile:function(t){var i=this._tiles[t];i&&(Ue(i.el),delete this._tiles[t],this.fire("tileunload",{tile:i.el,coords:this._keyToTileCoords(t)}))},_initTile:function(t){He(t,"leaflet-tile");var i=this.getTileSize();t.style.width=i.x+"px",t.style.height=i.y+"px",t.onselectstart=v,t.onmousemove=v,ve.ielt9&&this.options.opacity<1&&ke(t,this.options.opacity)},_addTile:function(t,i){var a=this._getTilePos(t),u=this._tileCoordsToKey(t),p=this.createTile(this._wrapCoords(t),c(this._tileReady,this,t));this._initTile(p),this.createTile.length<2&&$(c(this._tileReady,this,t,null,p)),Pt(p,a),this._tiles[u]={el:p,coords:t,current:!0},i.appendChild(p),this.fire("tileloadstart",{tile:p,coords:t})},_tileReady:function(t,i,a){i&&this.fire("tileerror",{error:i,tile:a,coords:t});var u=this._tileCoordsToKey(t);a=this._tiles[u],a&&(a.loaded=+new Date,this._map._fadeAnimated?(ke(a.el,0),j(this._fadeFrame),this._fadeFrame=$(this._updateOpacity,this)):(a.active=!0,this._pruneTiles()),i||(He(a.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:a.el,coords:t})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),ve.ielt9||!this._map._fadeAnimated?$(this._pruneTiles,this):setTimeout(c(this._pruneTiles,this),250)))},_getTilePos:function(t){return t.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(t){var i=new Z(this._wrapX?m(t.x,this._wrapX):t.x,this._wrapY?m(t.y,this._wrapY):t.y);return i.z=t.z,i},_pxBoundsToTileRange:function(t){var i=this.getTileSize();return new ie(t.min.unscaleBy(i).floor(),t.max.unscaleBy(i).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var t in this._tiles)if(!this._tiles[t].loaded)return!1;return!0}});function Vw(t){return new _i(t)}var To=_i.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(t,i){this._url=t,i=x(this,i),i.detectRetina&&ve.retina&&i.maxZoom>0?(i.tileSize=Math.floor(i.tileSize/2),i.zoomReverse?(i.zoomOffset--,i.minZoom=Math.min(i.maxZoom,i.minZoom+1)):(i.zoomOffset++,i.maxZoom=Math.max(i.minZoom,i.maxZoom-1)),i.minZoom=Math.max(0,i.minZoom)):i.zoomReverse?i.minZoom=Math.min(i.maxZoom,i.minZoom):i.maxZoom=Math.max(i.minZoom,i.maxZoom),typeof i.subdomains=="string"&&(i.subdomains=i.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(t,i){return this._url===t&&i===void 0&&(i=!0),this._url=t,i||this.redraw(),this},createTile:function(t,i){var a=document.createElement("img");return je(a,"load",c(this._tileOnLoad,this,i,a)),je(a,"error",c(this._tileOnError,this,i,a)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(a.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(a.referrerPolicy=this.options.referrerPolicy),a.alt="",a.src=this.getTileUrl(t),a},getTileUrl:function(t){var i={r:ve.retina?"@2x":"",s:this._getSubdomain(t),x:t.x,y:t.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var a=this._globalTileRange.max.y-t.y;this.options.tms&&(i.y=a),i["-y"]=a}return S(this._url,s(i,this.options))},_tileOnLoad:function(t,i){ve.ielt9?setTimeout(c(t,this,null,i),0):t(null,i)},_tileOnError:function(t,i,a){var u=this.options.errorTileUrl;u&&i.getAttribute("src")!==u&&(i.src=u),t(a,i)},_onTileRemove:function(t){t.tile.onload=null},_getZoomForUrl:function(){var t=this._tileZoom,i=this.options.maxZoom,a=this.options.zoomReverse,u=this.options.zoomOffset;return a&&(t=i-t),t+u},_getSubdomain:function(t){var i=Math.abs(t.x+t.y)%this.options.subdomains.length;return this.options.subdomains[i]},_abortLoading:function(){var t,i;for(t in this._tiles)if(this._tiles[t].coords.z!==this._tileZoom&&(i=this._tiles[t].el,i.onload=v,i.onerror=v,!i.complete)){i.src=M;var a=this._tiles[t].coords;Ue(i),delete this._tiles[t],this.fire("tileabort",{tile:i,coords:a})}},_removeTile:function(t){var i=this._tiles[t];if(i)return i.el.setAttribute("src",M),_i.prototype._removeTile.call(this,t)},_tileReady:function(t,i,a){if(!(!this._map||a&&a.getAttribute("src")===M))return _i.prototype._tileReady.call(this,t,i,a)}});function Dp(t,i){return new To(t,i)}var Fp=To.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(t,i){this._url=t;var a=s({},this.defaultWmsParams);for(var u in i)u in this.options||(a[u]=i[u]);i=x(this,i);var p=i.detectRetina&&ve.retina?2:1,w=this.getTileSize();a.width=w.x*p,a.height=w.y*p,this.wmsParams=a},onAdd:function(t){this._crs=this.options.crs||t.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var i=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[i]=this._crs.code,To.prototype.onAdd.call(this,t)},getTileUrl:function(t){var i=this._tileCoordsToNwSe(t),a=this._crs,u=ne(a.project(i[0]),a.project(i[1])),p=u.min,w=u.max,O=(this._wmsVersion>=1.3&&this._crs===Op?[p.y,p.x,w.y,w.x]:[p.x,p.y,w.x,w.y]).join(","),D=To.prototype.getTileUrl.call(this,t);return D+b(this.wmsParams,D,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+O},setParams:function(t,i){return s(this.wmsParams,t),i||this.redraw(),this}});function Ww(t,i){return new Fp(t,i)}To.WMS=Fp,Dp.wms=Ww;var ur=Hn.extend({options:{padding:.1},initialize:function(t){x(this,t),h(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),He(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var t={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(t.zoomanim=this._onAnimZoom),t},_onAnimZoom:function(t){this._updateTransform(t.center,t.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(t,i){var a=this._map.getZoomScale(i,this._zoom),u=this._map.getSize().multiplyBy(.5+this.options.padding),p=this._map.project(this._center,i),w=u.multiplyBy(-a).add(p).subtract(this._map._getNewPixelOrigin(t,i));ve.any3d?un(this._container,w,a):Pt(this._container,w)},_reset:function(){this._update(),this._updateTransform(this._center,this._zoom);for(var t in this._layers)this._layers[t]._reset()},_onZoomEnd:function(){for(var t in this._layers)this._layers[t]._project()},_updatePaths:function(){for(var t in this._layers)this._layers[t]._update()},_update:function(){var t=this.options.padding,i=this._map.getSize(),a=this._map.containerPointToLayerPoint(i.multiplyBy(-t)).round();this._bounds=new ie(a,a.add(i.multiplyBy(1+t*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),Hp=ur.extend({options:{tolerance:0},getEvents:function(){var t=ur.prototype.getEvents.call(this);return t.viewprereset=this._onViewPreReset,t},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){ur.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var t=this._container=document.createElement("canvas");je(t,"mousemove",this._onMouseMove,this),je(t,"click dblclick mousedown mouseup contextmenu",this._onClick,this),je(t,"mouseout",this._handleMouseOut,this),t._leaflet_disable_events=!0,this._ctx=t.getContext("2d")},_destroyContainer:function(){j(this._redrawRequest),delete this._ctx,Ue(this._container),bt(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var t;this._redrawBounds=null;for(var i in this._layers)t=this._layers[i],t._update();this._redraw()}},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){ur.prototype._update.call(this);var t=this._bounds,i=this._container,a=t.getSize(),u=ve.retina?2:1;Pt(i,t.min),i.width=u*a.x,i.height=u*a.y,i.style.width=a.x+"px",i.style.height=a.y+"px",ve.retina&&this._ctx.scale(2,2),this._ctx.translate(-t.min.x,-t.min.y),this.fire("update")}},_reset:function(){ur.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(t){this._updateDashArray(t),this._layers[h(t)]=t;var i=t._order={layer:t,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=i),this._drawLast=i,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(t){this._requestRedraw(t)},_removePath:function(t){var i=t._order,a=i.next,u=i.prev;a?a.prev=u:this._drawLast=u,u?u.next=a:this._drawFirst=a,delete t._order,delete this._layers[h(t)],this._requestRedraw(t)},_updatePath:function(t){this._extendRedrawBounds(t),t._project(),t._update(),this._requestRedraw(t)},_updateStyle:function(t){this._updateDashArray(t),this._requestRedraw(t)},_updateDashArray:function(t){if(typeof t.options.dashArray=="string"){var i=t.options.dashArray.split(/[, ]+/),a=[],u,p;for(p=0;p<i.length;p++){if(u=Number(i[p]),isNaN(u))return;a.push(u)}t.options._dashArray=a}else t.options._dashArray=t.options.dashArray},_requestRedraw:function(t){this._map&&(this._extendRedrawBounds(t),this._redrawRequest=this._redrawRequest||$(this._redraw,this))},_extendRedrawBounds:function(t){if(t._pxBounds){var i=(t.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new ie,this._redrawBounds.extend(t._pxBounds.min.subtract([i,i])),this._redrawBounds.extend(t._pxBounds.max.add([i,i]))}},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var t=this._redrawBounds;if(t){var i=t.getSize();this._ctx.clearRect(t.min.x,t.min.y,i.x,i.y)}else this._ctx.save(),this._ctx.setTransform(1,0,0,1,0,0),this._ctx.clearRect(0,0,this._container.width,this._container.height),this._ctx.restore()},_draw:function(){var t,i=this._redrawBounds;if(this._ctx.save(),i){var a=i.getSize();this._ctx.beginPath(),this._ctx.rect(i.min.x,i.min.y,a.x,a.y),this._ctx.clip()}this._drawing=!0;for(var u=this._drawFirst;u;u=u.next)t=u.layer,(!i||t._pxBounds&&t._pxBounds.intersects(i))&&t._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(t,i){if(this._drawing){var a,u,p,w,O=t._parts,D=O.length,H=this._ctx;if(D){for(H.beginPath(),a=0;a<D;a++){for(u=0,p=O[a].length;u<p;u++)w=O[a][u],H[u?"lineTo":"moveTo"](w.x,w.y);i&&H.closePath()}this._fillStroke(H,t)}}},_updateCircle:function(t){if(!(!this._drawing||t._empty())){var i=t._point,a=this._ctx,u=Math.max(Math.round(t._radius),1),p=(Math.max(Math.round(t._radiusY),1)||u)/u;p!==1&&(a.save(),a.scale(1,p)),a.beginPath(),a.arc(i.x,i.y/p,u,0,Math.PI*2,!1),p!==1&&a.restore(),this._fillStroke(a,t)}},_fillStroke:function(t,i){var a=i.options;a.fill&&(t.globalAlpha=a.fillOpacity,t.fillStyle=a.fillColor||a.color,t.fill(a.fillRule||"evenodd")),a.stroke&&a.weight!==0&&(t.setLineDash&&t.setLineDash(i.options&&i.options._dashArray||[]),t.globalAlpha=a.opacity,t.lineWidth=a.weight,t.strokeStyle=a.color,t.lineCap=a.lineCap,t.lineJoin=a.lineJoin,t.stroke())},_onClick:function(t){for(var i=this._map.mouseEventToLayerPoint(t),a,u,p=this._drawFirst;p;p=p.next)a=p.layer,a.options.interactive&&a._containsPoint(i)&&(!(t.type==="click"||t.type==="preclick")||!this._map._draggableMoved(a))&&(u=a);this._fireEvent(u?[u]:!1,t)},_onMouseMove:function(t){if(!(!this._map||this._map.dragging.moving()||this._map._animatingZoom)){var i=this._map.mouseEventToLayerPoint(t);this._handleMouseHover(t,i)}},_handleMouseOut:function(t){var i=this._hoveredLayer;i&&(Ct(this._container,"leaflet-interactive"),this._fireEvent([i],t,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(t,i){if(!this._mouseHoverThrottled){for(var a,u,p=this._drawFirst;p;p=p.next)a=p.layer,a.options.interactive&&a._containsPoint(i)&&(u=a);u!==this._hoveredLayer&&(this._handleMouseOut(t),u&&(He(this._container,"leaflet-interactive"),this._fireEvent([u],t,"mouseover"),this._hoveredLayer=u)),this._fireEvent(this._hoveredLayer?[this._hoveredLayer]:!1,t),this._mouseHoverThrottled=!0,setTimeout(c(function(){this._mouseHoverThrottled=!1},this),32)}},_fireEvent:function(t,i,a){this._map._fireDOMEvent(i,a||i.type,t)},_bringToFront:function(t){var i=t._order;if(i){var a=i.next,u=i.prev;if(a)a.prev=u;else return;u?u.next=a:a&&(this._drawFirst=a),i.prev=this._drawLast,this._drawLast.next=i,i.next=null,this._drawLast=i,this._requestRedraw(t)}},_bringToBack:function(t){var i=t._order;if(i){var a=i.next,u=i.prev;if(u)u.next=a;else return;a?a.prev=u:u&&(this._drawLast=u),i.prev=null,i.next=this._drawFirst,this._drawFirst.prev=i,this._drawFirst=i,this._requestRedraw(t)}}});function Vp(t){return ve.canvas?new Hp(t):null}var xi=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(t){return document.createElement("<lvml:"+t+' class="lvml">')}}catch{}return function(t){return document.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),jw={_initContainer:function(){this._container=Ne("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(ur.prototype._update.call(this),this.fire("update"))},_initPath:function(t){var i=t._container=xi("shape");He(i,"leaflet-vml-shape "+(this.options.className||"")),i.coordsize="1 1",t._path=xi("path"),i.appendChild(t._path),this._updateStyle(t),this._layers[h(t)]=t},_addPath:function(t){var i=t._container;this._container.appendChild(i),t.options.interactive&&t.addInteractiveTarget(i)},_removePath:function(t){var i=t._container;Ue(i),t.removeInteractiveTarget(i),delete this._layers[h(t)]},_updateStyle:function(t){var i=t._stroke,a=t._fill,u=t.options,p=t._container;p.stroked=!!u.stroke,p.filled=!!u.fill,u.stroke?(i||(i=t._stroke=xi("stroke")),p.appendChild(i),i.weight=u.weight+"px",i.color=u.color,i.opacity=u.opacity,u.dashArray?i.dashStyle=P(u.dashArray)?u.dashArray.join(" "):u.dashArray.replace(/( *, *)/g," "):i.dashStyle="",i.endcap=u.lineCap.replace("butt","flat"),i.joinstyle=u.lineJoin):i&&(p.removeChild(i),t._stroke=null),u.fill?(a||(a=t._fill=xi("fill")),p.appendChild(a),a.color=u.fillColor||u.color,a.opacity=u.fillOpacity):a&&(p.removeChild(a),t._fill=null)},_updateCircle:function(t){var i=t._point.round(),a=Math.round(t._radius),u=Math.round(t._radiusY||a);this._setPath(t,t._empty()?"M0 0":"AL "+i.x+","+i.y+" "+a+","+u+" 0,"+65535*360)},_setPath:function(t,i){t._path.v=i},_bringToFront:function(t){gn(t._container)},_bringToBack:function(t){zn(t._container)}},Hs=ve.vml?xi:we,wi=ur.extend({_initContainer:function(){this._container=Hs("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=Hs("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){Ue(this._container),bt(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){ur.prototype._update.call(this);var t=this._bounds,i=t.getSize(),a=this._container;(!this._svgSize||!this._svgSize.equals(i))&&(this._svgSize=i,a.setAttribute("width",i.x),a.setAttribute("height",i.y)),Pt(a,t.min),a.setAttribute("viewBox",[t.min.x,t.min.y,i.x,i.y].join(" ")),this.fire("update")}},_initPath:function(t){var i=t._path=Hs("path");t.options.className&&He(i,t.options.className),t.options.interactive&&He(i,"leaflet-interactive"),this._updateStyle(t),this._layers[h(t)]=t},_addPath:function(t){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(t._path),t.addInteractiveTarget(t._path)},_removePath:function(t){Ue(t._path),t.removeInteractiveTarget(t._path),delete this._layers[h(t)]},_updatePath:function(t){t._project(),t._update()},_updateStyle:function(t){var i=t._path,a=t.options;i&&(a.stroke?(i.setAttribute("stroke",a.color),i.setAttribute("stroke-opacity",a.opacity),i.setAttribute("stroke-width",a.weight),i.setAttribute("stroke-linecap",a.lineCap),i.setAttribute("stroke-linejoin",a.lineJoin),a.dashArray?i.setAttribute("stroke-dasharray",a.dashArray):i.removeAttribute("stroke-dasharray"),a.dashOffset?i.setAttribute("stroke-dashoffset",a.dashOffset):i.removeAttribute("stroke-dashoffset")):i.setAttribute("stroke","none"),a.fill?(i.setAttribute("fill",a.fillColor||a.color),i.setAttribute("fill-opacity",a.fillOpacity),i.setAttribute("fill-rule",a.fillRule||"evenodd")):i.setAttribute("fill","none"))},_updatePoly:function(t,i){this._setPath(t,Pe(t._parts,i))},_updateCircle:function(t){var i=t._point,a=Math.max(Math.round(t._radius),1),u=Math.max(Math.round(t._radiusY),1)||a,p="a"+a+","+u+" 0 1,0 ",w=t._empty()?"M0 0":"M"+(i.x-a)+","+i.y+p+a*2+",0 "+p+-a*2+",0 ";this._setPath(t,w)},_setPath:function(t,i){t._path.setAttribute("d",i)},_bringToFront:function(t){gn(t._path)},_bringToBack:function(t){zn(t._path)}});ve.vml&&wi.include(jw);function Wp(t){return ve.svg||ve.vml?new wi(t):null}it.include({getRenderer:function(t){var i=t.options.renderer||this._getPaneRenderer(t.options.pane)||this.options.renderer||this._renderer;return i||(i=this._renderer=this._createRenderer()),this.hasLayer(i)||this.addLayer(i),i},_getPaneRenderer:function(t){if(t==="overlayPane"||t===void 0)return!1;var i=this._paneRenderers[t];return i===void 0&&(i=this._createRenderer({pane:t}),this._paneRenderers[t]=i),i},_createRenderer:function(t){return this.options.preferCanvas&&Vp(t)||Wp(t)}});var jp=Po.extend({initialize:function(t,i){Po.prototype.initialize.call(this,this._boundsToLatLngs(t),i)},setBounds:function(t){return this.setLatLngs(this._boundsToLatLngs(t))},_boundsToLatLngs:function(t){return t=oe(t),[t.getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}});function Zw(t,i){return new jp(t,i)}wi.create=Hs,wi.pointsToPath=Pe,cr.geometryToLayer=ks,cr.coordsToLatLng=Nc,cr.coordsToLatLngs=Rs,cr.latLngToCoords=kc,cr.latLngsToCoords=$s,cr.getFeature=Io,cr.asFeature=Bs,it.mergeOptions({boxZoom:!0});var Zp=Zn.extend({initialize:function(t){this._map=t,this._container=t._container,this._pane=t._panes.overlayPane,this._resetStateTimeout=0,t.on("unload",this._destroy,this)},addHooks:function(){je(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){bt(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){Ue(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){this._resetStateTimeout!==0&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(t){if(!t.shiftKey||t.which!==1&&t.button!==1)return!1;this._clearDeferredResetState(),this._resetState(),xr(),gc(),this._startPoint=this._map.mouseEventToContainerPoint(t),je(document,{contextmenu:Hr,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(t){this._moved||(this._moved=!0,this._box=Ne("div","leaflet-zoom-box",this._container),He(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(t);var i=new ie(this._point,this._startPoint),a=i.getSize();Pt(this._box,i.min),this._box.style.width=a.x+"px",this._box.style.height=a.y+"px"},_finish:function(){this._moved&&(Ue(this._box),Ct(this._container,"leaflet-crosshair")),pi(),vc(),bt(document,{contextmenu:Hr,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(t){if(!(t.which!==1&&t.button!==1)&&(this._finish(),!!this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(c(this._resetState,this),0);var i=new de(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(i).fire("boxzoomend",{boxZoomBounds:i})}},_onKeyDown:function(t){t.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});it.addInitHook("addHandler","boxZoom",Zp),it.mergeOptions({doubleClickZoom:!0});var Up=Zn.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(t){var i=this._map,a=i.getZoom(),u=i.options.zoomDelta,p=t.originalEvent.shiftKey?a-u:a+u;i.options.doubleClickZoom==="center"?i.setZoom(p):i.setZoomAround(t.containerPoint,p)}});it.addInitHook("addHandler","doubleClickZoom",Up),it.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var qp=Zn.extend({addHooks:function(){if(!this._draggable){var t=this._map;this._draggable=new wr(t._mapPane,t._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),t.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),t.on("zoomend",this._onZoomEnd,this),t.whenReady(this._onZoomEnd,this))}He(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){Ct(this._map._container,"leaflet-grab"),Ct(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var t=this._map;if(t._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var i=oe(this._map.options.maxBounds);this._offsetLimit=ne(this._map.latLngToContainerPoint(i.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(i.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;t.fire("movestart").fire("dragstart"),t.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(t){if(this._map.options.inertia){var i=this._lastTime=+new Date,a=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(a),this._times.push(i),this._prunePositions(i)}this._map.fire("move",t).fire("drag",t)},_prunePositions:function(t){for(;this._positions.length>1&&t-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var t=this._map.getSize().divideBy(2),i=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=i.subtract(t).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(t,i){return t-(t-i)*this._viscosity},_onPreDragLimit:function(){if(!(!this._viscosity||!this._offsetLimit)){var t=this._draggable._newPos.subtract(this._draggable._startPos),i=this._offsetLimit;t.x<i.min.x&&(t.x=this._viscousLimit(t.x,i.min.x)),t.y<i.min.y&&(t.y=this._viscousLimit(t.y,i.min.y)),t.x>i.max.x&&(t.x=this._viscousLimit(t.x,i.max.x)),t.y>i.max.y&&(t.y=this._viscousLimit(t.y,i.max.y)),this._draggable._newPos=this._draggable._startPos.add(t)}},_onPreDragWrap:function(){var t=this._worldWidth,i=Math.round(t/2),a=this._initialWorldOffset,u=this._draggable._newPos.x,p=(u-i+a)%t+i-a,w=(u+i+a)%t-i-a,O=Math.abs(p+a)<Math.abs(w+a)?p:w;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=O},_onDragEnd:function(t){var i=this._map,a=i.options,u=!a.inertia||t.noInertia||this._times.length<2;if(i.fire("dragend",t),u)i.fire("moveend");else{this._prunePositions(+new Date);var p=this._lastPos.subtract(this._positions[0]),w=(this._lastTime-this._times[0])/1e3,O=a.easeLinearity,D=p.multiplyBy(O/w),H=D.distanceTo([0,0]),Q=Math.min(a.inertiaMaxSpeed,H),be=D.multiplyBy(Q/H),Re=Q/(a.inertiaDeceleration*O),Xe=be.multiplyBy(-Re/2).round();!Xe.x&&!Xe.y?i.fire("moveend"):(Xe=i._limitOffset(Xe,i.options.maxBounds),$(function(){i.panBy(Xe,{duration:Re,easeLinearity:O,noMoveStart:!0,animate:!0})}))}}});it.addInitHook("addHandler","dragging",qp),it.mergeOptions({keyboard:!0,keyboardPanDelta:80});var Gp=Zn.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(t){this._map=t,this._setPanDelta(t.options.keyboardPanDelta),this._setZoomDelta(t.options.zoomDelta)},addHooks:function(){var t=this._map._container;t.tabIndex<=0&&(t.tabIndex="0"),je(t,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),bt(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(!this._focused){var t=document.body,i=document.documentElement,a=t.scrollTop||i.scrollTop,u=t.scrollLeft||i.scrollLeft;this._map._container.focus(),window.scrollTo(u,a)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(t){var i=this._panKeys={},a=this.keyCodes,u,p;for(u=0,p=a.left.length;u<p;u++)i[a.left[u]]=[-1*t,0];for(u=0,p=a.right.length;u<p;u++)i[a.right[u]]=[t,0];for(u=0,p=a.down.length;u<p;u++)i[a.down[u]]=[0,t];for(u=0,p=a.up.length;u<p;u++)i[a.up[u]]=[0,-1*t]},_setZoomDelta:function(t){var i=this._zoomKeys={},a=this.keyCodes,u,p;for(u=0,p=a.zoomIn.length;u<p;u++)i[a.zoomIn[u]]=t;for(u=0,p=a.zoomOut.length;u<p;u++)i[a.zoomOut[u]]=-t},_addHooks:function(){je(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){bt(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(t){if(!(t.altKey||t.ctrlKey||t.metaKey)){var i=t.keyCode,a=this._map,u;if(i in this._panKeys){if(!a._panAnim||!a._panAnim._inProgress)if(u=this._panKeys[i],t.shiftKey&&(u=G(u).multiplyBy(3)),a.options.maxBounds&&(u=a._limitOffset(G(u),a.options.maxBounds)),a.options.worldCopyJump){var p=a.wrapLatLng(a.unproject(a.project(a.getCenter()).add(u)));a.panTo(p)}else a.panBy(u)}else if(i in this._zoomKeys)a.setZoom(a.getZoom()+(t.shiftKey?3:1)*this._zoomKeys[i]);else if(i===27&&a._popup&&a._popup.options.closeOnEscapeKey)a.closePopup();else return;Hr(t)}}});it.addInitHook("addHandler","keyboard",Gp),it.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var Kp=Zn.extend({addHooks:function(){je(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){bt(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(t){var i=bp(t),a=this._map.options.wheelDebounceTime;this._delta+=i,this._lastMousePos=this._map.mouseEventToContainerPoint(t),this._startTime||(this._startTime=+new Date);var u=Math.max(a-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(c(this._performZoom,this),u),Hr(t)},_performZoom:function(){var t=this._map,i=t.getZoom(),a=this._map.options.zoomSnap||0;t._stop();var u=this._delta/(this._map.options.wheelPxPerZoomLevel*4),p=4*Math.log(2/(1+Math.exp(-Math.abs(u))))/Math.LN2,w=a?Math.ceil(p/a)*a:p,O=t._limitZoom(i+(this._delta>0?w:-w))-i;this._delta=0,this._startTime=null,O&&(t.options.scrollWheelZoom==="center"?t.setZoom(i+O):t.setZoomAround(this._lastMousePos,i+O))}});it.addInitHook("addHandler","scrollWheelZoom",Kp);var Uw=600;it.mergeOptions({tapHold:ve.touchNative&&ve.safari&&ve.mobile,tapTolerance:15});var Qp=Zn.extend({addHooks:function(){je(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){bt(this._map._container,"touchstart",this._onDown,this)},_onDown:function(t){if(clearTimeout(this._holdTimeout),t.touches.length===1){var i=t.touches[0];this._startPos=this._newPos=new Z(i.clientX,i.clientY),this._holdTimeout=setTimeout(c(function(){this._cancel(),this._isTapValid()&&(je(document,"touchend",en),je(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",i))},this),Uw),je(document,"touchend touchcancel contextmenu",this._cancel,this),je(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function t(){bt(document,"touchend",en),bt(document,"touchend touchcancel",t)},_cancel:function(){clearTimeout(this._holdTimeout),bt(document,"touchend touchcancel contextmenu",this._cancel,this),bt(document,"touchmove",this._onMove,this)},_onMove:function(t){var i=t.touches[0];this._newPos=new Z(i.clientX,i.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(t,i){var a=new MouseEvent(t,{bubbles:!0,cancelable:!0,view:window,screenX:i.screenX,screenY:i.screenY,clientX:i.clientX,clientY:i.clientY});a._simulated=!0,i.target.dispatchEvent(a)}});it.addInitHook("addHandler","tapHold",Qp),it.mergeOptions({touchZoom:ve.touch,bounceAtZoomLimits:!0});var Yp=Zn.extend({addHooks:function(){He(this._map._container,"leaflet-touch-zoom"),je(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){Ct(this._map._container,"leaflet-touch-zoom"),bt(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(t){var i=this._map;if(!(!t.touches||t.touches.length!==2||i._animatingZoom||this._zooming)){var a=i.mouseEventToContainerPoint(t.touches[0]),u=i.mouseEventToContainerPoint(t.touches[1]);this._centerPoint=i.getSize()._divideBy(2),this._startLatLng=i.containerPointToLatLng(this._centerPoint),i.options.touchZoom!=="center"&&(this._pinchStartLatLng=i.containerPointToLatLng(a.add(u)._divideBy(2))),this._startDist=a.distanceTo(u),this._startZoom=i.getZoom(),this._moved=!1,this._zooming=!0,i._stop(),je(document,"touchmove",this._onTouchMove,this),je(document,"touchend touchcancel",this._onTouchEnd,this),en(t)}},_onTouchMove:function(t){if(!(!t.touches||t.touches.length!==2||!this._zooming)){var i=this._map,a=i.mouseEventToContainerPoint(t.touches[0]),u=i.mouseEventToContainerPoint(t.touches[1]),p=a.distanceTo(u)/this._startDist;if(this._zoom=i.getScaleZoom(p,this._startZoom),!i.options.bounceAtZoomLimits&&(this._zoom<i.getMinZoom()&&p<1||this._zoom>i.getMaxZoom()&&p>1)&&(this._zoom=i._limitZoom(this._zoom)),i.options.touchZoom==="center"){if(this._center=this._startLatLng,p===1)return}else{var w=a._add(u)._divideBy(2)._subtract(this._centerPoint);if(p===1&&w.x===0&&w.y===0)return;this._center=i.unproject(i.project(this._pinchStartLatLng,this._zoom).subtract(w),this._zoom)}this._moved||(i._moveStart(!0,!1),this._moved=!0),j(this._animRequest);var O=c(i._move,i,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=$(O,this,!0),en(t)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,j(this._animRequest),bt(document,"touchmove",this._onTouchMove,this),bt(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))}});it.addInitHook("addHandler","touchZoom",Yp),it.BoxZoom=Zp,it.DoubleClickZoom=Up,it.Drag=qp,it.Keyboard=Gp,it.ScrollWheelZoom=Kp,it.TapHold=Qp,it.TouchZoom=Yp,r.Bounds=ie,r.Browser=ve,r.CRS=Y,r.Canvas=Hp,r.Circle=Oc,r.CircleMarker=Ns,r.Class=W,r.Control=Fn,r.DivIcon=zp,r.DivOverlay=Un,r.DomEvent=uw,r.DomUtil=lw,r.Draggable=wr,r.Evented=J,r.FeatureGroup=ar,r.GeoJSON=cr,r.GridLayer=_i,r.Handler=Zn,r.Icon=Eo,r.ImageOverlay=zs,r.LatLng=ee,r.LatLngBounds=de,r.Layer=Hn,r.LayerGroup=So,r.LineUtil=Cw,r.Map=it,r.Marker=Os,r.Mixin=vw,r.Path=Cr,r.Point=Z,r.PolyUtil=yw,r.Polygon=Po,r.Polyline=lr,r.Popup=Ds,r.PosAnimation=_p,r.Projection=Sw,r.Rectangle=jp,r.Renderer=ur,r.SVG=wi,r.SVGOverlay=Bp,r.TileLayer=To,r.Tooltip=Fs,r.Transformation=Se,r.Util=V,r.VideoOverlay=$p,r.bind=c,r.bounds=ne,r.canvas=Vp,r.circle=Ow,r.circleMarker=Lw,r.control=vi,r.divIcon=Hw,r.extend=s,r.featureGroup=Tw,r.geoJSON=Rp,r.geoJson=Rw,r.gridLayer=Vw,r.icon=Aw,r.imageOverlay=$w,r.latLng=K,r.latLngBounds=oe,r.layerGroup=Iw,r.map=dw,r.marker=Mw,r.point=G,r.polygon=kw,r.polyline=Nw,r.popup=Dw,r.rectangle=Zw,r.setOptions=x,r.stamp=h,r.svg=Wp,r.svgOverlay=zw,r.tileLayer=Dp,r.tooltip=Fw,r.transformation=Te,r.version=o,r.videoOverlay=Bw;var qw=window.L;r.noConflict=function(){return window.L=qw,this},window.L=r})})(js,js.exports);var Fc=js.exports;const tn=rm(Fc),oC="",iC="",sC="";var It=Fc,Hc,Vc;function Wc(e){return"oninput"in e?"input":"change"}function Ci(){Hc=this._map.dragging.enabled(),Vc=this._map.tap&&this._map.tap.enabled(),this._map.dragging.disable(),this._map.tap&&this._map.tap.disable()}function Si(e){this._refocusOnMap(e),Hc&&this._map.dragging.enable(),Vc&&this._map.tap.enable()}function jc(e){return e==="undefined"?[]:Array.isArray(e)?e:[e]}function sm(){}It.Control.SideBySide=It.Control.extend({options:{thumbSize:42,padding:0},initialize:function(e,n,r){this.setLeftLayers(e),this.setRightLayers(n),It.setOptions(this,r)},getPosition:function(){var e=this._range.value,n=(.5-e)*(2*this.options.padding+this.options.thumbSize);return this._map.getSize().x*e+n},setPosition:sm,includes:It.Evented.prototype||It.Mixin.Events,addTo:function(e){this.remove(),this._map=e;var n=this._container=It.DomUtil.create("div","leaflet-sbs",e._controlContainer);this._divider=It.DomUtil.create("div","leaflet-sbs-divider",n);var r=this._range=It.DomUtil.create("input","leaflet-sbs-range",n);return r.type="range",r.min=0,r.max=1,r.step="any",r.value=.5,r.style.paddingLeft=r.style.paddingRight=this.options.padding+"px",this._addEvents(),this._updateLayers(),this},remove:function(){return this._map?(this._leftLayer&&(this._leftLayer.getPane().style.clip=""),this._rightLayer&&(this._rightLayer.getPane().style.clip=""),this._removeEvents(),It.DomUtil.remove(this._container),this._map=null,this):this},setLeftLayers:function(e){return this._leftLayers=jc(e),this._updateLayers(),this},setRightLayers:function(e){return this._rightLayers=jc(e),this._updateLayers(),this},_updateClip:function(){var e=this._map,n=e.containerPointToLayerPoint([0,0]),r=e.containerPointToLayerPoint(e.getSize()),o=n.x+this.getPosition(),s=this.getPosition();this._divider.style.left=s+"px",this.fire("dividermove",{x:s});var l="rect("+[n.y,o,r.y,n.x].join("px,")+"px)",c="rect("+[n.y,r.x,r.y,o].join("px,")+"px)";this._leftLayer&&(this._leftLayer.getPane().style.clip=l),this._rightLayer&&(this._rightLayer.getPane().style.clip=c)},_updateLayers:function(){if(!this._map)return this;var e=this._leftLayer,n=this._rightLayer;this._leftLayer=this._rightLayer=null,this._leftLayers.forEach(function(r){this._map.hasLayer(r)&&(this._leftLayer=r)},this),this._rightLayers.forEach(function(r){this._map.hasLayer(r)&&(this._rightLayer=r)},this),e!==this._leftLayer&&(e&&this.fire("leftlayerremove",{layer:e}),this._leftLayer&&this.fire("leftlayeradd",{layer:this._leftLayer})),n!==this._rightLayer&&(n&&this.fire("rightlayerremove",{layer:n}),this._rightLayer&&this.fire("rightlayeradd",{layer:this._rightLayer})),this._updateClip()},_addEvents:function(){var e=this._range,n=this._map;!n||!e||(n.on("move",this._updateClip,this),n.on("layeradd layerremove",this._updateLayers,this),It.DomEvent.on(e,Wc(e),this._updateClip,this),It.DomEvent.on(e,"touchstart",Ci,this),It.DomEvent.on(e,"touchend",Si,this),It.DomEvent.on(e,"mousedown",Ci,this),It.DomEvent.on(e,"mouseup",Si,this))},_removeEvents:function(){var e=this._range,n=this._map;e&&(It.DomEvent.off(e,Wc(e),this._updateClip,this),It.DomEvent.off(e,"touchstart",Ci,this),It.DomEvent.off(e,"touchend",Si,this),It.DomEvent.off(e,"mousedown",Ci,this),It.DomEvent.off(e,"mouseup",Si,this)),n&&(n.off("layeradd layerremove",this._updateLayers,this),n.off("move",this._updateClip,this))}}),It.control.sideBySide=function(e,n,r){return new It.Control.SideBySide(e,n,r)},It.Control.SideBySide;const Zc=({zoomLevel:e})=>Zt.jsx("div",{style:{width:"30px",height:"30px",backgroundColor:"white",borderRadius:"2px",textAlign:"center",fontSize:"20px"},children:e});function ft(e){const n=f.useRef(e);return n.current=e,f.useCallback((...o)=>{var s;return(s=n.current)==null?void 0:s.call(n,...o)},[])}function yn(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}const Uc=process.env.NODE_ENV!=="test"&&yn()?f.useLayoutEffect:f.useEffect,sn=(e,n)=>{const r=f.useRef(!0);Uc(()=>e(r.current),n),Uc(()=>(r.current=!1,()=>{r.current=!0}),[])},Zs=e=>{const n=f.useRef(!1),[r,o]=f.useState(e);f.useEffect(()=>(n.current=!1,()=>{n.current=!0}),[]);function s(l,c){c&&n.current||o(l)}return[r,s]};function qn(e,n){const[r,o]=A.useState(e),s=n!==void 0?n:r;return sn(l=>{l||o(n)},[n]),[s,o]}var Us={exports:{}},at={};/**
|
|
36
|
+
*/(function(s,u){(function(h,d){d(u)})(ku,function(h){var d="1.9.4";function y(t){var a,f,_,C;for(f=1,_=arguments.length;f<_;f++){C=arguments[f];for(a in C)t[a]=C[a]}return t}var k=Object.create||function(){function t(){}return function(a){return t.prototype=a,new t}}();function M(t,a){var f=Array.prototype.slice;if(t.bind)return t.bind.apply(t,f.call(arguments,1));var _=f.call(arguments,2);return function(){return t.apply(a,_.length?_.concat(f.call(arguments)):arguments)}}var T=0;function H(t){return"_leaflet_id"in t||(t._leaflet_id=++T),t._leaflet_id}function Z(t,a,f){var _,C,z,Q;return Q=function(){_=!1,C&&(z.apply(f,C),C=!1)},z=function(){_?C=arguments:(t.apply(f,arguments),setTimeout(Q,a),_=!0)},z}function v(t,a,f){var _=a[1],C=a[0],z=_-C;return t===_&&f?t:((t-C)%z+z)%z+C}function V(){return!1}function K(t,a){if(a===!1)return t;var f=Math.pow(10,a===void 0?6:a);return Math.round(t*f)/f}function pe(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function de(t){return pe(t).split(/\s+/)}function re(t,a){Object.prototype.hasOwnProperty.call(t,"options")||(t.options=t.options?k(t.options):{});for(var f in a)t.options[f]=a[f];return t.options}function ne(t,a,f){var _=[];for(var C in t)_.push(encodeURIComponent(f?C.toUpperCase():C)+"="+encodeURIComponent(t[C]));return(!a||a.indexOf("?")===-1?"?":"&")+_.join("&")}var ue=/\{ *([\w_ -]+) *\}/g;function ge(t,a){return t.replace(ue,function(f,_){var C=a[_];if(C===void 0)throw new Error("No value provided for variable "+f);return typeof C=="function"&&(C=C(a)),C})}var ve=Array.isArray||function(t){return Object.prototype.toString.call(t)==="[object Array]"};function xe(t,a){for(var f=0;f<t.length;f++)if(t[f]===a)return f;return-1}var Ie="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function Ue(t){return window["webkit"+t]||window["moz"+t]||window["ms"+t]}var Pe=0;function Oe(t){var a=+new Date,f=Math.max(0,16-(a-Pe));return Pe=a+f,window.setTimeout(t,f)}var wt=window.requestAnimationFrame||Ue("RequestAnimationFrame")||Oe,dt=window.cancelAnimationFrame||Ue("CancelAnimationFrame")||Ue("CancelRequestAnimationFrame")||function(t){window.clearTimeout(t)};function Be(t,a,f){if(f&&wt===Oe)t.call(a);else return wt.call(window,M(t,a))}function et(t){t&&dt.call(window,t)}var lt={__proto__:null,extend:y,create:k,bind:M,get lastId(){return T},stamp:H,throttle:Z,wrapNum:v,falseFn:V,formatNum:K,trim:pe,splitWords:de,setOptions:re,getParamString:ne,template:ge,isArray:ve,indexOf:xe,emptyImageUrl:Ie,requestFn:wt,cancelFn:dt,requestAnimFrame:Be,cancelAnimFrame:et};function ot(){}ot.extend=function(t){var a=function(){re(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},f=a.__super__=this.prototype,_=k(f);_.constructor=a,a.prototype=_;for(var C in this)Object.prototype.hasOwnProperty.call(this,C)&&C!=="prototype"&&C!=="__super__"&&(a[C]=this[C]);return t.statics&&y(a,t.statics),t.includes&&(Pt(t.includes),y.apply(null,[_].concat(t.includes))),y(_,t),delete _.statics,delete _.includes,_.options&&(_.options=f.options?k(f.options):{},y(_.options,t.options)),_._initHooks=[],_.callInitHooks=function(){if(!this._initHooksCalled){f.callInitHooks&&f.callInitHooks.call(this),this._initHooksCalled=!0;for(var z=0,Q=_._initHooks.length;z<Q;z++)_._initHooks[z].call(this)}},a},ot.include=function(t){var a=this.prototype.options;return y(this.prototype,t),t.options&&(this.prototype.options=a,this.mergeOptions(t.options)),this},ot.mergeOptions=function(t){return y(this.prototype.options,t),this},ot.addInitHook=function(t){var a=Array.prototype.slice.call(arguments,1),f=typeof t=="function"?t:function(){this[t].apply(this,a)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(f),this};function Pt(t){if(!(typeof L>"u"||!L||!L.Mixin)){t=ve(t)?t:[t];for(var a=0;a<t.length;a++)t[a]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",new Error().stack)}}var Ut={on:function(t,a,f){if(typeof t=="object")for(var _ in t)this._on(_,t[_],a);else{t=de(t);for(var C=0,z=t.length;C<z;C++)this._on(t[C],a,f)}return this},off:function(t,a,f){if(!arguments.length)delete this._events;else if(typeof t=="object")for(var _ in t)this._off(_,t[_],a);else{t=de(t);for(var C=arguments.length===1,z=0,Q=t.length;z<Q;z++)C?this._off(t[z]):this._off(t[z],a,f)}return this},_on:function(t,a,f,_){if(typeof a!="function"){console.warn("wrong listener type: "+typeof a);return}if(this._listens(t,a,f)===!1){f===this&&(f=void 0);var C={fn:a,ctx:f};_&&(C.once=!0),this._events=this._events||{},this._events[t]=this._events[t]||[],this._events[t].push(C)}},_off:function(t,a,f){var _,C,z;if(this._events&&(_=this._events[t],!!_)){if(arguments.length===1){if(this._firingCount)for(C=0,z=_.length;C<z;C++)_[C].fn=V;delete this._events[t];return}if(typeof a!="function"){console.warn("wrong listener type: "+typeof a);return}var Q=this._listens(t,a,f);if(Q!==!1){var ie=_[Q];this._firingCount&&(ie.fn=V,this._events[t]=_=_.slice()),_.splice(Q,1)}}},fire:function(t,a,f){if(!this.listens(t,f))return this;var _=y({},a,{type:t,target:this,sourceTarget:a&&a.sourceTarget||this});if(this._events){var C=this._events[t];if(C){this._firingCount=this._firingCount+1||1;for(var z=0,Q=C.length;z<Q;z++){var ie=C[z],fe=ie.fn;ie.once&&this.off(t,fe,ie.ctx),fe.call(ie.ctx||this,_)}this._firingCount--}}return f&&this._propagateEvent(_),this},listens:function(t,a,f,_){typeof t!="string"&&console.warn('"string" type argument expected');var C=a;typeof a!="function"&&(_=!!a,C=void 0,f=void 0);var z=this._events&&this._events[t];if(z&&z.length&&this._listens(t,C,f)!==!1)return!0;if(_){for(var Q in this._eventParents)if(this._eventParents[Q].listens(t,a,f,_))return!0}return!1},_listens:function(t,a,f){if(!this._events)return!1;var _=this._events[t]||[];if(!a)return!!_.length;f===this&&(f=void 0);for(var C=0,z=_.length;C<z;C++)if(_[C].fn===a&&_[C].ctx===f)return C;return!1},once:function(t,a,f){if(typeof t=="object")for(var _ in t)this._on(_,t[_],a,!0);else{t=de(t);for(var C=0,z=t.length;C<z;C++)this._on(t[C],a,f,!0)}return this},addEventParent:function(t){return this._eventParents=this._eventParents||{},this._eventParents[H(t)]=t,this},removeEventParent:function(t){return this._eventParents&&delete this._eventParents[H(t)],this},_propagateEvent:function(t){for(var a in this._eventParents)this._eventParents[a].fire(t.type,y({layer:t.target,propagatedFrom:t.target},t),!0)}};Ut.addEventListener=Ut.on,Ut.removeEventListener=Ut.clearAllEventListeners=Ut.off,Ut.addOneTimeEventListener=Ut.once,Ut.fireEvent=Ut.fire,Ut.hasEventListeners=Ut.listens;var gt=ot.extend(Ut);function Te(t,a,f){this.x=f?Math.round(t):t,this.y=f?Math.round(a):a}var mn=Math.trunc||function(t){return t>0?Math.floor(t):Math.ceil(t)};Te.prototype={clone:function(){return new Te(this.x,this.y)},add:function(t){return this.clone()._add(He(t))},_add:function(t){return this.x+=t.x,this.y+=t.y,this},subtract:function(t){return this.clone()._subtract(He(t))},_subtract:function(t){return this.x-=t.x,this.y-=t.y,this},divideBy:function(t){return this.clone()._divideBy(t)},_divideBy:function(t){return this.x/=t,this.y/=t,this},multiplyBy:function(t){return this.clone()._multiplyBy(t)},_multiplyBy:function(t){return this.x*=t,this.y*=t,this},scaleBy:function(t){return new Te(this.x*t.x,this.y*t.y)},unscaleBy:function(t){return new Te(this.x/t.x,this.y/t.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=mn(this.x),this.y=mn(this.y),this},distanceTo:function(t){t=He(t);var a=t.x-this.x,f=t.y-this.y;return Math.sqrt(a*a+f*f)},equals:function(t){return t=He(t),t.x===this.x&&t.y===this.y},contains:function(t){return t=He(t),Math.abs(t.x)<=Math.abs(this.x)&&Math.abs(t.y)<=Math.abs(this.y)},toString:function(){return"Point("+K(this.x)+", "+K(this.y)+")"}};function He(t,a,f){return t instanceof Te?t:ve(t)?new Te(t[0],t[1]):t==null?t:typeof t=="object"&&"x"in t&&"y"in t?new Te(t.x,t.y):new Te(t,a,f)}function Ot(t,a){if(t)for(var f=a?[t,a]:t,_=0,C=f.length;_<C;_++)this.extend(f[_])}Ot.prototype={extend:function(t){var a,f;if(!t)return this;if(t instanceof Te||typeof t[0]=="number"||"x"in t)a=f=He(t);else if(t=Lt(t),a=t.min,f=t.max,!a||!f)return this;return!this.min&&!this.max?(this.min=a.clone(),this.max=f.clone()):(this.min.x=Math.min(a.x,this.min.x),this.max.x=Math.max(f.x,this.max.x),this.min.y=Math.min(a.y,this.min.y),this.max.y=Math.max(f.y,this.max.y)),this},getCenter:function(t){return He((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,t)},getBottomLeft:function(){return He(this.min.x,this.max.y)},getTopRight:function(){return He(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(t){var a,f;return typeof t[0]=="number"||t instanceof Te?t=He(t):t=Lt(t),t instanceof Ot?(a=t.min,f=t.max):a=f=t,a.x>=this.min.x&&f.x<=this.max.x&&a.y>=this.min.y&&f.y<=this.max.y},intersects:function(t){t=Lt(t);var a=this.min,f=this.max,_=t.min,C=t.max,z=C.x>=a.x&&_.x<=f.x,Q=C.y>=a.y&&_.y<=f.y;return z&&Q},overlaps:function(t){t=Lt(t);var a=this.min,f=this.max,_=t.min,C=t.max,z=C.x>a.x&&_.x<f.x,Q=C.y>a.y&&_.y<f.y;return z&&Q},isValid:function(){return!!(this.min&&this.max)},pad:function(t){var a=this.min,f=this.max,_=Math.abs(a.x-f.x)*t,C=Math.abs(a.y-f.y)*t;return Lt(He(a.x-_,a.y-C),He(f.x+_,f.y+C))},equals:function(t){return t?(t=Lt(t),this.min.equals(t.getTopLeft())&&this.max.equals(t.getBottomRight())):!1}};function Lt(t,a){return!t||t instanceof Ot?t:new Ot(t,a)}function dn(t,a){if(t)for(var f=a?[t,a]:t,_=0,C=f.length;_<C;_++)this.extend(f[_])}dn.prototype={extend:function(t){var a=this._southWest,f=this._northEast,_,C;if(t instanceof Ct)_=t,C=t;else if(t instanceof dn){if(_=t._southWest,C=t._northEast,!_||!C)return this}else return t?this.extend(bt(t)||Je(t)):this;return!a&&!f?(this._southWest=new Ct(_.lat,_.lng),this._northEast=new Ct(C.lat,C.lng)):(a.lat=Math.min(_.lat,a.lat),a.lng=Math.min(_.lng,a.lng),f.lat=Math.max(C.lat,f.lat),f.lng=Math.max(C.lng,f.lng)),this},pad:function(t){var a=this._southWest,f=this._northEast,_=Math.abs(a.lat-f.lat)*t,C=Math.abs(a.lng-f.lng)*t;return new dn(new Ct(a.lat-_,a.lng-C),new Ct(f.lat+_,f.lng+C))},getCenter:function(){return new Ct((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new Ct(this.getNorth(),this.getWest())},getSouthEast:function(){return new Ct(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(t){typeof t[0]=="number"||t instanceof Ct||"lat"in t?t=bt(t):t=Je(t);var a=this._southWest,f=this._northEast,_,C;return t instanceof dn?(_=t.getSouthWest(),C=t.getNorthEast()):_=C=t,_.lat>=a.lat&&C.lat<=f.lat&&_.lng>=a.lng&&C.lng<=f.lng},intersects:function(t){t=Je(t);var a=this._southWest,f=this._northEast,_=t.getSouthWest(),C=t.getNorthEast(),z=C.lat>=a.lat&&_.lat<=f.lat,Q=C.lng>=a.lng&&_.lng<=f.lng;return z&&Q},overlaps:function(t){t=Je(t);var a=this._southWest,f=this._northEast,_=t.getSouthWest(),C=t.getNorthEast(),z=C.lat>a.lat&&_.lat<f.lat,Q=C.lng>a.lng&&_.lng<f.lng;return z&&Q},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(t,a){return t?(t=Je(t),this._southWest.equals(t.getSouthWest(),a)&&this._northEast.equals(t.getNorthEast(),a)):!1},isValid:function(){return!!(this._southWest&&this._northEast)}};function Je(t,a){return t instanceof dn?t:new dn(t,a)}function Ct(t,a,f){if(isNaN(t)||isNaN(a))throw new Error("Invalid LatLng object: ("+t+", "+a+")");this.lat=+t,this.lng=+a,f!==void 0&&(this.alt=+f)}Ct.prototype={equals:function(t,a){if(!t)return!1;t=bt(t);var f=Math.max(Math.abs(this.lat-t.lat),Math.abs(this.lng-t.lng));return f<=(a===void 0?1e-9:a)},toString:function(t){return"LatLng("+K(this.lat,t)+", "+K(this.lng,t)+")"},distanceTo:function(t){return Rt.distance(this,bt(t))},wrap:function(){return Rt.wrapLatLng(this)},toBounds:function(t){var a=180*t/40075017,f=a/Math.cos(Math.PI/180*this.lat);return Je([this.lat-a,this.lng-f],[this.lat+a,this.lng+f])},clone:function(){return new Ct(this.lat,this.lng,this.alt)}};function bt(t,a,f){return t instanceof Ct?t:ve(t)&&typeof t[0]!="object"?t.length===3?new Ct(t[0],t[1],t[2]):t.length===2?new Ct(t[0],t[1]):null:t==null?t:typeof t=="object"&&"lat"in t?new Ct(t.lat,"lng"in t?t.lng:t.lon,t.alt):a===void 0?null:new Ct(t,a,f)}var Ye={latLngToPoint:function(t,a){var f=this.projection.project(t),_=this.scale(a);return this.transformation._transform(f,_)},pointToLatLng:function(t,a){var f=this.scale(a),_=this.transformation.untransform(t,f);return this.projection.unproject(_)},project:function(t){return this.projection.project(t)},unproject:function(t){return this.projection.unproject(t)},scale:function(t){return 256*Math.pow(2,t)},zoom:function(t){return Math.log(t/256)/Math.LN2},getProjectedBounds:function(t){if(this.infinite)return null;var a=this.projection.bounds,f=this.scale(t),_=this.transformation.transform(a.min,f),C=this.transformation.transform(a.max,f);return new Ot(_,C)},infinite:!1,wrapLatLng:function(t){var a=this.wrapLng?v(t.lng,this.wrapLng,!0):t.lng,f=this.wrapLat?v(t.lat,this.wrapLat,!0):t.lat,_=t.alt;return new Ct(f,a,_)},wrapLatLngBounds:function(t){var a=t.getCenter(),f=this.wrapLatLng(a),_=a.lat-f.lat,C=a.lng-f.lng;if(_===0&&C===0)return t;var z=t.getSouthWest(),Q=t.getNorthEast(),ie=new Ct(z.lat-_,z.lng-C),fe=new Ct(Q.lat-_,Q.lng-C);return new dn(ie,fe)}},Rt=y({},Ye,{wrapLng:[-180,180],R:6371e3,distance:function(t,a){var f=Math.PI/180,_=t.lat*f,C=a.lat*f,z=Math.sin((a.lat-t.lat)*f/2),Q=Math.sin((a.lng-t.lng)*f/2),ie=z*z+Math.cos(_)*Math.cos(C)*Q*Q,fe=2*Math.atan2(Math.sqrt(ie),Math.sqrt(1-ie));return this.R*fe}}),Ht=6378137,On={R:Ht,MAX_LATITUDE:85.0511287798,project:function(t){var a=Math.PI/180,f=this.MAX_LATITUDE,_=Math.max(Math.min(f,t.lat),-f),C=Math.sin(_*a);return new Te(this.R*t.lng*a,this.R*Math.log((1+C)/(1-C))/2)},unproject:function(t){var a=180/Math.PI;return new Ct((2*Math.atan(Math.exp(t.y/this.R))-Math.PI/2)*a,t.x*a/this.R)},bounds:function(){var t=Ht*Math.PI;return new Ot([-t,-t],[t,t])}()};function Dn(t,a,f,_){if(ve(t)){this._a=t[0],this._b=t[1],this._c=t[2],this._d=t[3];return}this._a=t,this._b=a,this._c=f,this._d=_}Dn.prototype={transform:function(t,a){return this._transform(t.clone(),a)},_transform:function(t,a){return a=a||1,t.x=a*(this._a*t.x+this._b),t.y=a*(this._c*t.y+this._d),t},untransform:function(t,a){return a=a||1,new Te((t.x/a-this._b)/this._a,(t.y/a-this._d)/this._c)}};function ho(t,a,f,_){return new Dn(t,a,f,_)}var gn=y({},Rt,{code:"EPSG:3857",projection:On,transformation:function(){var t=.5/(Math.PI*On.R);return ho(t,.5,-t,.5)}()}),vt=y({},gn,{code:"EPSG:900913"});function Tt(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function vn(t,a){var f="",_,C,z,Q,ie,fe;for(_=0,z=t.length;_<z;_++){for(ie=t[_],C=0,Q=ie.length;C<Q;C++)fe=ie[C],f+=(C?"L":"M")+fe.x+" "+fe.y;f+=a?it.svg?"z":"x":""}return f||"M0 0"}var En=document.documentElement.style,jn="ActiveXObject"in window,Zn=jn&&!document.addEventListener,eo="msLaunchUri"in navigator&&!("documentMode"in document),to=Po("webkit"),Ri=Po("android"),Jn=Po("android 2")||Po("android 3"),Kn=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),ii=Ri&&Po("Google")&&Kn<537&&!("AudioNode"in window),fo=!!window.opera,hi=!eo&&Po("chrome"),zi=Po("gecko")&&!to&&!fo&&!jn,Si=!hi&&Po("safari"),yn=Po("phantom"),xo="OTransition"in En,Vn=navigator.platform.indexOf("Win")===0,fi=jn&&"transition"in En,no="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!Jn,tn="MozPerspective"in En,Fn=!window.L_DISABLE_3D&&(fi||no||tn)&&!xo&&!yn,po=typeof orientation<"u"||Po("mobile"),Wn=po&&to,Wt=po&&no,pi=!window.PointerEvent&&window.MSPointerEvent,Rn=!!(window.PointerEvent||pi),oo="ontouchstart"in window||!!window.TouchEvent,ri=!window.L_NO_TOUCH&&(oo||Rn),In=po&&fo,Mo=po&&zi,or=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,pr=function(){var t=!1;try{var a=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("testPassiveEventSupport",V,a),window.removeEventListener("testPassiveEventSupport",V,a)}catch{}return t}(),ir=function(){return!!document.createElement("canvas").getContext}(),Zi=!!(document.createElementNS&&Tt("svg").createSVGRect),mo=!!Zi&&function(){var t=document.createElement("div");return t.innerHTML="<svg/>",(t.firstChild&&t.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"}(),mi=!Zi&&function(){try{var t=document.createElement("div");t.innerHTML='<v:shape adj="1"/>';var a=t.firstChild;return a.style.behavior="url(#default#VML)",a&&typeof a.adj=="object"}catch{return!1}}(),gi=navigator.platform.indexOf("Mac")===0,Go=navigator.platform.indexOf("Linux")===0;function Po(t){return navigator.userAgent.toLowerCase().indexOf(t)>=0}var it={ie:jn,ielt9:Zn,edge:eo,webkit:to,android:Ri,android23:Jn,androidStock:ii,opera:fo,chrome:hi,gecko:zi,safari:Si,phantom:yn,opera12:xo,win:Vn,ie3d:fi,webkit3d:no,gecko3d:tn,any3d:Fn,mobile:po,mobileWebkit:Wn,mobileWebkit3d:Wt,msPointer:pi,pointer:Rn,touch:ri,touchNative:oo,mobileOpera:In,mobileGecko:Mo,retina:or,passiveEvents:pr,canvas:ir,svg:Zi,vml:mi,inlineSvg:mo,mac:gi,linux:Go},Ei=it.msPointer?"MSPointerDown":"pointerdown",Fo=it.msPointer?"MSPointerMove":"pointermove",G=it.msPointer?"MSPointerUp":"pointerup",Ce=it.msPointer?"MSPointerCancel":"pointercancel",De={touchstart:Ei,touchmove:Fo,touchend:G,touchcancel:Ce},Ke={touchstart:Bi,touchmove:zo,touchend:zo,touchcancel:zo},Bt={},_n=!1;function xt(t,a,f){return a==="touchstart"&&Re(),Ke[a]?(f=Ke[a].bind(this,f),t.addEventListener(De[a],f,!1),f):(console.warn("wrong event specified:",a),V)}function kt(t,a,f){if(!De[a]){console.warn("wrong event specified:",a);return}t.removeEventListener(De[a],f,!1)}function qn(t){Bt[t.pointerId]=t}function nn(t){Bt[t.pointerId]&&(Bt[t.pointerId]=t)}function Bn(t){delete Bt[t.pointerId]}function Re(){_n||(document.addEventListener(Ei,qn,!0),document.addEventListener(Fo,nn,!0),document.addEventListener(G,Bn,!0),document.addEventListener(Ce,Bn,!0),_n=!0)}function zo(t,a){if(a.pointerType!==(a.MSPOINTER_TYPE_MOUSE||"mouse")){a.touches=[];for(var f in Bt)a.touches.push(Bt[f]);a.changedTouches=[a],t(a)}}function Bi(t,a){a.MSPOINTER_TYPE_TOUCH&&a.pointerType===a.MSPOINTER_TYPE_TOUCH&&Uo(a),zo(t,a)}function To(t){var a={},f,_;for(_ in t)f=t[_],a[_]=f&&f.bind?f.bind(t):f;return t=a,a.type="dblclick",a.detail=2,a.isTrusted=!1,a._simulated=!0,a}var vi=200;function si(t,a){t.addEventListener("dblclick",a);var f=0,_;function C(z){if(z.detail!==1){_=z.detail;return}if(!(z.pointerType==="mouse"||z.sourceCapabilities&&!z.sourceCapabilities.firesTouchEvents)){var Q=al(z);if(!(Q.some(function(fe){return fe instanceof HTMLLabelElement&&fe.attributes.for})&&!Q.some(function(fe){return fe instanceof HTMLInputElement||fe instanceof HTMLSelectElement}))){var ie=Date.now();ie-f<=vi?(_++,_===2&&a(To(z))):_=1,f=ie}}}return t.addEventListener("click",C),{dblclick:a,simDblclick:C}}function Ho(t,a){t.removeEventListener("dblclick",a.dblclick),t.removeEventListener("click",a.simDblclick)}var Er=Ki(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),rr=Ki(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),Hr=rr==="webkitTransition"||rr==="OTransition"?rr+"End":"transitionend";function jr(t){return typeof t=="string"?document.getElementById(t):t}function zt(t,a){var f=t.style[a]||t.currentStyle&&t.currentStyle[a];if((!f||f==="auto")&&document.defaultView){var _=document.defaultView.getComputedStyle(t,null);f=_?_[a]:null}return f==="auto"?null:f}function yt(t,a,f){var _=document.createElement(t);return _.className=a||"",f&&f.appendChild(_),_}function Yt(t){var a=t.parentNode;a&&a.removeChild(t)}function Vi(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function Wi(t){var a=t.parentNode;a&&a.lastChild!==t&&a.appendChild(t)}function Gn(t){var a=t.parentNode;a&&a.firstChild!==t&&a.insertBefore(t,a.firstChild)}function ks(t,a){if(t.classList!==void 0)return t.classList.contains(a);var f=Xe(t);return f.length>0&&new RegExp("(^|\\s)"+a+"(\\s|$)").test(f)}function jt(t,a){if(t.classList!==void 0)for(var f=de(a),_=0,C=f.length;_<C;_++)t.classList.add(f[_]);else if(!ks(t,a)){var z=Xe(t);Is(t,(z?z+" ":"")+a)}}function io(t,a){t.classList!==void 0?t.classList.remove(a):Is(t,pe((" "+Xe(t)+" ").replace(" "+a+" "," ")))}function Is(t,a){t.className.baseVal===void 0?t.className=a:t.className.baseVal=a}function Xe(t){return t.correspondingElement&&(t=t.correspondingElement),t.className.baseVal===void 0?t.className:t.className.baseVal}function Nt(t,a){"opacity"in t.style?t.style.opacity=a:"filter"in t.style&&ai(t,a)}function ai(t,a){var f=!1,_="DXImageTransform.Microsoft.Alpha";try{f=t.filters.item(_)}catch{if(a===1)return}a=Math.round(a*100),f?(f.Enabled=a!==100,f.Opacity=a):t.style.filter+=" progid:"+_+"(opacity="+a+")"}function Ki(t){for(var a=document.documentElement.style,f=0;f<t.length;f++)if(t[f]in a)return t[f];return!1}function Pi(t,a,f){var _=a||new Te(0,0);t.style[Er]=(it.ie3d?"translate("+_.x+"px,"+_.y+"px)":"translate3d("+_.x+"px,"+_.y+"px,0)")+(f?" scale("+f+")":"")}function go(t,a){t._leaflet_pos=a,it.any3d?Pi(t,a):(t.style.left=a.x+"px",t.style.top=a.y+"px")}function Zr(t){return t._leaflet_pos||new Te(0,0)}var Pr,Gs,rl;if("onselectstart"in document)Pr=function(){on(window,"selectstart",Uo)},Gs=function(){vo(window,"selectstart",Uo)};else{var Vr=Ki(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);Pr=function(){if(Vr){var t=document.documentElement.style;rl=t[Vr],t[Vr]="none"}},Gs=function(){Vr&&(document.documentElement.style[Vr]=rl,rl=void 0)}}function Ec(){on(window,"dragstart",Uo)}function kr(){vo(window,"dragstart",Uo)}var ss,Pc;function pa(t){for(;t.tabIndex===-1;)t=t.parentNode;t.style&&(ma(),ss=t,Pc=t.style.outlineStyle,t.style.outlineStyle="none",on(window,"keydown",ma))}function ma(){ss&&(ss.style.outlineStyle=Pc,ss=void 0,Pc=void 0,vo(window,"keydown",ma))}function hd(t){do t=t.parentNode;while((!t.offsetWidth||!t.offsetHeight)&&t!==document.body);return t}function ga(t){var a=t.getBoundingClientRect();return{x:a.width/t.offsetWidth||1,y:a.height/t.offsetHeight||1,boundingClientRect:a}}var Wr={__proto__:null,TRANSFORM:Er,TRANSITION:rr,TRANSITION_END:Hr,get:jr,getStyle:zt,create:yt,remove:Yt,empty:Vi,toFront:Wi,toBack:Gn,hasClass:ks,addClass:jt,removeClass:io,setClass:Is,getClass:Xe,setOpacity:Nt,testProp:Ki,setTransform:Pi,setPosition:go,getPosition:Zr,get disableTextSelection(){return Pr},get enableTextSelection(){return Gs},disableImageDrag:Ec,enableImageDrag:kr,preventOutline:pa,restoreOutline:ma,getSizedParentNode:hd,getScale:ga};function on(t,a,f,_){if(a&&typeof a=="object")for(var C in a)va(t,C,a[C],f);else{a=de(a);for(var z=0,Q=a.length;z<Q;z++)va(t,a[z],f,_)}return this}var yi="_leaflet_events";function vo(t,a,f,_){if(arguments.length===1)Us(t),delete t[yi];else if(a&&typeof a=="object")for(var C in a)Ic(t,C,a[C],f);else if(a=de(a),arguments.length===2)Us(t,function(ie){return xe(a,ie)!==-1});else for(var z=0,Q=a.length;z<Q;z++)Ic(t,a[z],f,_);return this}function Us(t,a){for(var f in t[yi]){var _=f.split(/\d/)[0];(!a||a(_))&&Ic(t,_,null,null,f)}}var kc={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function va(t,a,f,_){var C=a+H(f)+(_?"_"+H(_):"");if(t[yi]&&t[yi][C])return this;var z=function(ie){return f.call(_||t,ie||window.event)},Q=z;!it.touchNative&&it.pointer&&a.indexOf("touch")===0?z=xt(t,a,z):it.touch&&a==="dblclick"?z=si(t,z):"addEventListener"in t?a==="touchstart"||a==="touchmove"||a==="wheel"||a==="mousewheel"?t.addEventListener(kc[a]||a,z,it.passiveEvents?{passive:!1}:!1):a==="mouseenter"||a==="mouseleave"?(z=function(ie){ie=ie||window.event,Mc(t,ie)&&Q(ie)},t.addEventListener(kc[a],z,!1)):t.addEventListener(a,Q,!1):t.attachEvent("on"+a,z),t[yi]=t[yi]||{},t[yi][C]=z}function Ic(t,a,f,_,C){C=C||a+H(f)+(_?"_"+H(_):"");var z=t[yi]&&t[yi][C];if(!z)return this;!it.touchNative&&it.pointer&&a.indexOf("touch")===0?kt(t,a,z):it.touch&&a==="dblclick"?Ho(t,z):"removeEventListener"in t?t.removeEventListener(kc[a]||a,z,!1):t.detachEvent("on"+a,z),t[yi][C]=null}function as(t){return t.stopPropagation?t.stopPropagation():t.originalEvent?t.originalEvent._stopped=!0:t.cancelBubble=!0,this}function sl(t){return va(t,"wheel",as),this}function Ms(t){return on(t,"mousedown touchstart dblclick contextmenu",as),t._leaflet_disable_click=!0,this}function Uo(t){return t.preventDefault?t.preventDefault():t.returnValue=!1,this}function Ts(t){return Uo(t),as(t),this}function al(t){if(t.composedPath)return t.composedPath();for(var a=[],f=t.target;f;)a.push(f),f=f.parentNode;return a}function fd(t,a){if(!a)return new Te(t.clientX,t.clientY);var f=ga(a),_=f.boundingClientRect;return new Te((t.clientX-_.left)/f.x-a.clientLeft,(t.clientY-_.top)/f.y-a.clientTop)}var pd=it.linux&&it.chrome?window.devicePixelRatio:it.mac?window.devicePixelRatio*3:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function Qs(t){return it.edge?t.wheelDeltaY/2:t.deltaY&&t.deltaMode===0?-t.deltaY/pd:t.deltaY&&t.deltaMode===1?-t.deltaY*20:t.deltaY&&t.deltaMode===2?-t.deltaY*60:t.deltaX||t.deltaZ?0:t.wheelDelta?(t.wheelDeltaY||t.wheelDelta)/2:t.detail&&Math.abs(t.detail)<32765?-t.detail*20:t.detail?t.detail/-32765*60:0}function Mc(t,a){var f=a.relatedTarget;if(!f)return!0;try{for(;f&&f!==t;)f=f.parentNode}catch{return!1}return f!==t}var Tc={__proto__:null,on,off:vo,stopPropagation:as,disableScrollPropagation:sl,disableClickPropagation:Ms,preventDefault:Uo,stop:Ts,getPropagationPath:al,getMousePosition:fd,getWheelDelta:Qs,isExternalTarget:Mc,addListener:on,removeListener:vo},$t=gt.extend({run:function(t,a,f,_){this.stop(),this._el=t,this._inProgress=!0,this._duration=f||.25,this._easeOutPower=1/Math.max(_||.5,.2),this._startPos=Zr(t),this._offset=a.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=Be(this._animate,this),this._step()},_step:function(t){var a=+new Date-this._startTime,f=this._duration*1e3;a<f?this._runFrame(this._easeOut(a/f),t):(this._runFrame(1),this._complete())},_runFrame:function(t,a){var f=this._startPos.add(this._offset.multiplyBy(t));a&&f._round(),go(this._el,f),this.fire("step")},_complete:function(){et(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(t){return 1-Math.pow(1-t,this._easeOutPower)}}),Mn=gt.extend({options:{crs:gn,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(t,a){a=re(this,a),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(t),this._initLayout(),this._onResize=M(this._onResize,this),this._initEvents(),a.maxBounds&&this.setMaxBounds(a.maxBounds),a.zoom!==void 0&&(this._zoom=this._limitZoom(a.zoom)),a.center&&a.zoom!==void 0&&this.setView(bt(a.center),a.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=rr&&it.any3d&&!it.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),on(this._proxy,Hr,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(t,a,f){if(a=a===void 0?this._zoom:this._limitZoom(a),t=this._limitCenter(bt(t),a,this.options.maxBounds),f=f||{},this._stop(),this._loaded&&!f.reset&&f!==!0){f.animate!==void 0&&(f.zoom=y({animate:f.animate},f.zoom),f.pan=y({animate:f.animate,duration:f.duration},f.pan));var _=this._zoom!==a?this._tryAnimatedZoom&&this._tryAnimatedZoom(t,a,f.zoom):this._tryAnimatedPan(t,f.pan);if(_)return clearTimeout(this._sizeTimer),this}return this._resetView(t,a,f.pan&&f.pan.noMoveStart),this},setZoom:function(t,a){return this._loaded?this.setView(this.getCenter(),t,{zoom:a}):(this._zoom=t,this)},zoomIn:function(t,a){return t=t||(it.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+t,a)},zoomOut:function(t,a){return t=t||(it.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-t,a)},setZoomAround:function(t,a,f){var _=this.getZoomScale(a),C=this.getSize().divideBy(2),z=t instanceof Te?t:this.latLngToContainerPoint(t),Q=z.subtract(C).multiplyBy(1-1/_),ie=this.containerPointToLatLng(C.add(Q));return this.setView(ie,a,{zoom:f})},_getBoundsCenterZoom:function(t,a){a=a||{},t=t.getBounds?t.getBounds():Je(t);var f=He(a.paddingTopLeft||a.padding||[0,0]),_=He(a.paddingBottomRight||a.padding||[0,0]),C=this.getBoundsZoom(t,!1,f.add(_));if(C=typeof a.maxZoom=="number"?Math.min(a.maxZoom,C):C,C===1/0)return{center:t.getCenter(),zoom:C};var z=_.subtract(f).divideBy(2),Q=this.project(t.getSouthWest(),C),ie=this.project(t.getNorthEast(),C),fe=this.unproject(Q.add(ie).divideBy(2).add(z),C);return{center:fe,zoom:C}},fitBounds:function(t,a){if(t=Je(t),!t.isValid())throw new Error("Bounds are not valid.");var f=this._getBoundsCenterZoom(t,a);return this.setView(f.center,f.zoom,a)},fitWorld:function(t){return this.fitBounds([[-90,-180],[90,180]],t)},panTo:function(t,a){return this.setView(t,this._zoom,{pan:a})},panBy:function(t,a){if(t=He(t).round(),a=a||{},!t.x&&!t.y)return this.fire("moveend");if(a.animate!==!0&&!this.getSize().contains(t))return this._resetView(this.unproject(this.project(this.getCenter()).add(t)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new $t,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),a.noMoveStart||this.fire("movestart"),a.animate!==!1){jt(this._mapPane,"leaflet-pan-anim");var f=this._getMapPanePos().subtract(t).round();this._panAnim.run(this._mapPane,f,a.duration||.25,a.easeLinearity)}else this._rawPanBy(t),this.fire("move").fire("moveend");return this},flyTo:function(t,a,f){if(f=f||{},f.animate===!1||!it.any3d)return this.setView(t,a,f);this._stop();var _=this.project(this.getCenter()),C=this.project(t),z=this.getSize(),Q=this._zoom;t=bt(t),a=a===void 0?Q:a;var ie=Math.max(z.x,z.y),fe=ie*this.getZoomScale(Q,a),Le=C.distanceTo(_)||1,ct=1.42,Dt=ct*ct;function hn(Vo){var Sl=Vo?-1:1,Nd=Vo?fe:ie,$p=fe*fe-ie*ie+Sl*Dt*Dt*Le*Le,Dp=2*Nd*Dt*Le,qc=$p/Dp,Gc=Math.sqrt(qc*qc+1)-qc,Fp=Gc<1e-9?-18:Math.log(Gc);return Fp}function $i(Vo){return(Math.exp(Vo)-Math.exp(-Vo))/2}function Zo(Vo){return(Math.exp(Vo)+Math.exp(-Vo))/2}function ar(Vo){return $i(Vo)/Zo(Vo)}var Ui=hn(0);function ia(Vo){return ie*(Zo(Ui)/Zo(Ui+ct*Vo))}function Rd(Vo){return ie*(Zo(Ui)*ar(Ui+ct*Vo)-$i(Ui))/Dt}function zd(Vo){return 1-Math.pow(1-Vo,1.5)}var Bd=Date.now(),Cl=(hn(1)-Ui)/ct,Yi=f.duration?1e3*f.duration:1e3*Cl*.8;function Wc(){var Vo=(Date.now()-Bd)/Yi,Sl=zd(Vo)*Cl;Vo<=1?(this._flyToFrame=Be(Wc,this),this._move(this.unproject(_.add(C.subtract(_).multiplyBy(Rd(Sl)/Le)),Q),this.getScaleZoom(ie/ia(Sl),Q),{flyTo:!0})):this._move(t,a)._moveEnd(!0)}return this._moveStart(!0,f.noMoveStart),Wc.call(this),this},flyToBounds:function(t,a){var f=this._getBoundsCenterZoom(t,a);return this.flyTo(f.center,f.zoom,a)},setMaxBounds:function(t){return t=Je(t),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),t.isValid()?(this.options.maxBounds=t,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom:function(t){var a=this.options.minZoom;return this.options.minZoom=t,this._loaded&&a!==t&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(t):this},setMaxZoom:function(t){var a=this.options.maxZoom;return this.options.maxZoom=t,this._loaded&&a!==t&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(t):this},panInsideBounds:function(t,a){this._enforcingBounds=!0;var f=this.getCenter(),_=this._limitCenter(f,this._zoom,Je(t));return f.equals(_)||this.panTo(_,a),this._enforcingBounds=!1,this},panInside:function(t,a){a=a||{};var f=He(a.paddingTopLeft||a.padding||[0,0]),_=He(a.paddingBottomRight||a.padding||[0,0]),C=this.project(this.getCenter()),z=this.project(t),Q=this.getPixelBounds(),ie=Lt([Q.min.add(f),Q.max.subtract(_)]),fe=ie.getSize();if(!ie.contains(z)){this._enforcingBounds=!0;var Le=z.subtract(ie.getCenter()),ct=ie.extend(z).getSize().subtract(fe);C.x+=Le.x<0?-ct.x:ct.x,C.y+=Le.y<0?-ct.y:ct.y,this.panTo(this.unproject(C),a),this._enforcingBounds=!1}return this},invalidateSize:function(t){if(!this._loaded)return this;t=y({animate:!1,pan:!0},t===!0?{animate:!0}:t);var a=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var f=this.getSize(),_=a.divideBy(2).round(),C=f.divideBy(2).round(),z=_.subtract(C);return!z.x&&!z.y?this:(t.animate&&t.pan?this.panBy(z):(t.pan&&this._rawPanBy(z),this.fire("move"),t.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(M(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:a,newSize:f}))},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(t){if(t=this._locateOptions=y({timeout:1e4,watch:!1},t),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var a=M(this._handleGeolocationResponse,this),f=M(this._handleGeolocationError,this);return t.watch?this._locationWatchId=navigator.geolocation.watchPosition(a,f,t):navigator.geolocation.getCurrentPosition(a,f,t),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(t){if(this._container._leaflet_id){var a=t.code,f=t.message||(a===1?"permission denied":a===2?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:a,message:"Geolocation error: "+f+"."})}},_handleGeolocationResponse:function(t){if(this._container._leaflet_id){var a=t.coords.latitude,f=t.coords.longitude,_=new Ct(a,f),C=_.toBounds(t.coords.accuracy*2),z=this._locateOptions;if(z.setView){var Q=this.getBoundsZoom(C);this.setView(_,z.maxZoom?Math.min(Q,z.maxZoom):Q)}var ie={latlng:_,bounds:C,timestamp:t.timestamp};for(var fe in t.coords)typeof t.coords[fe]=="number"&&(ie[fe]=t.coords[fe]);this.fire("locationfound",ie)}},addHandler:function(t,a){if(!a)return this;var f=this[t]=new a(this);return this._handlers.push(f),this.options[t]&&f.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch{this._container._leaflet_id=void 0,this._containerId=void 0}this._locationWatchId!==void 0&&this.stopLocate(),this._stop(),Yt(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(et(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload");var t;for(t in this._layers)this._layers[t].remove();for(t in this._panes)Yt(this._panes[t]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(t,a){var f="leaflet-pane"+(t?" leaflet-"+t.replace("Pane","")+"-pane":""),_=yt("div",f,a||this._mapPane);return t&&(this._panes[t]=_),_},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var t=this.getPixelBounds(),a=this.unproject(t.getBottomLeft()),f=this.unproject(t.getTopRight());return new dn(a,f)},getMinZoom:function(){return this.options.minZoom===void 0?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===void 0?this._layersMaxZoom===void 0?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(t,a,f){t=Je(t),f=He(f||[0,0]);var _=this.getZoom()||0,C=this.getMinZoom(),z=this.getMaxZoom(),Q=t.getNorthWest(),ie=t.getSouthEast(),fe=this.getSize().subtract(f),Le=Lt(this.project(ie,_),this.project(Q,_)).getSize(),ct=it.any3d?this.options.zoomSnap:1,Dt=fe.x/Le.x,hn=fe.y/Le.y,$i=a?Math.max(Dt,hn):Math.min(Dt,hn);return _=this.getScaleZoom($i,_),ct&&(_=Math.round(_/(ct/100))*(ct/100),_=a?Math.ceil(_/ct)*ct:Math.floor(_/ct)*ct),Math.max(C,Math.min(z,_))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new Te(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(t,a){var f=this._getTopLeftPoint(t,a);return new Ot(f,f.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(t){return this.options.crs.getProjectedBounds(t===void 0?this.getZoom():t)},getPane:function(t){return typeof t=="string"?this._panes[t]:t},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(t,a){var f=this.options.crs;return a=a===void 0?this._zoom:a,f.scale(t)/f.scale(a)},getScaleZoom:function(t,a){var f=this.options.crs;a=a===void 0?this._zoom:a;var _=f.zoom(t*f.scale(a));return isNaN(_)?1/0:_},project:function(t,a){return a=a===void 0?this._zoom:a,this.options.crs.latLngToPoint(bt(t),a)},unproject:function(t,a){return a=a===void 0?this._zoom:a,this.options.crs.pointToLatLng(He(t),a)},layerPointToLatLng:function(t){var a=He(t).add(this.getPixelOrigin());return this.unproject(a)},latLngToLayerPoint:function(t){var a=this.project(bt(t))._round();return a._subtract(this.getPixelOrigin())},wrapLatLng:function(t){return this.options.crs.wrapLatLng(bt(t))},wrapLatLngBounds:function(t){return this.options.crs.wrapLatLngBounds(Je(t))},distance:function(t,a){return this.options.crs.distance(bt(t),bt(a))},containerPointToLayerPoint:function(t){return He(t).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(t){return He(t).add(this._getMapPanePos())},containerPointToLatLng:function(t){var a=this.containerPointToLayerPoint(He(t));return this.layerPointToLatLng(a)},latLngToContainerPoint:function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(bt(t)))},mouseEventToContainerPoint:function(t){return fd(t,this._container)},mouseEventToLayerPoint:function(t){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(t))},mouseEventToLatLng:function(t){return this.layerPointToLatLng(this.mouseEventToLayerPoint(t))},_initContainer:function(t){var a=this._container=jr(t);if(a){if(a._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");on(a,"scroll",this._onScroll,this),this._containerId=H(a)},_initLayout:function(){var t=this._container;this._fadeAnimated=this.options.fadeAnimation&&it.any3d,jt(t,"leaflet-container"+(it.touch?" leaflet-touch":"")+(it.retina?" leaflet-retina":"")+(it.ielt9?" leaflet-oldie":"")+(it.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var a=zt(t,"position");a!=="absolute"&&a!=="relative"&&a!=="fixed"&&a!=="sticky"&&(t.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var t=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),go(this._mapPane,new Te(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(jt(t.markerPane,"leaflet-zoom-hide"),jt(t.shadowPane,"leaflet-zoom-hide"))},_resetView:function(t,a,f){go(this._mapPane,new Te(0,0));var _=!this._loaded;this._loaded=!0,a=this._limitZoom(a),this.fire("viewprereset");var C=this._zoom!==a;this._moveStart(C,f)._move(t,a)._moveEnd(C),this.fire("viewreset"),_&&this.fire("load")},_moveStart:function(t,a){return t&&this.fire("zoomstart"),a||this.fire("movestart"),this},_move:function(t,a,f,_){a===void 0&&(a=this._zoom);var C=this._zoom!==a;return this._zoom=a,this._lastCenter=t,this._pixelOrigin=this._getNewPixelOrigin(t),_?f&&f.pinch&&this.fire("zoom",f):((C||f&&f.pinch)&&this.fire("zoom",f),this.fire("move",f)),this},_moveEnd:function(t){return t&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return et(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(t){go(this._mapPane,this._getMapPanePos().subtract(t))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(t){this._targets={},this._targets[H(this._container)]=this;var a=t?vo:on;a(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&a(window,"resize",this._onResize,this),it.any3d&&this.options.transform3DLimit&&(t?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){et(this._resizeRequest),this._resizeRequest=Be(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var t=this._getMapPanePos();Math.max(Math.abs(t.x),Math.abs(t.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(t,a){for(var f=[],_,C=a==="mouseout"||a==="mouseover",z=t.target||t.srcElement,Q=!1;z;){if(_=this._targets[H(z)],_&&(a==="click"||a==="preclick")&&this._draggableMoved(_)){Q=!0;break}if(_&&_.listens(a,!0)&&(C&&!Mc(z,t)||(f.push(_),C))||z===this._container)break;z=z.parentNode}return!f.length&&!Q&&!C&&this.listens(a,!0)&&(f=[this]),f},_isClickDisabled:function(t){for(;t&&t!==this._container;){if(t._leaflet_disable_click)return!0;t=t.parentNode}},_handleDOMEvent:function(t){var a=t.target||t.srcElement;if(!(!this._loaded||a._leaflet_disable_events||t.type==="click"&&this._isClickDisabled(a))){var f=t.type;f==="mousedown"&&pa(a),this._fireDOMEvent(t,f)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(t,a,f){if(t.type==="click"){var _=y({},t);_.type="preclick",this._fireDOMEvent(_,_.type,f)}var C=this._findEventTargets(t,a);if(f){for(var z=[],Q=0;Q<f.length;Q++)f[Q].listens(a,!0)&&z.push(f[Q]);C=z.concat(C)}if(C.length){a==="contextmenu"&&Uo(t);var ie=C[0],fe={originalEvent:t};if(t.type!=="keypress"&&t.type!=="keydown"&&t.type!=="keyup"){var Le=ie.getLatLng&&(!ie._radius||ie._radius<=10);fe.containerPoint=Le?this.latLngToContainerPoint(ie.getLatLng()):this.mouseEventToContainerPoint(t),fe.layerPoint=this.containerPointToLayerPoint(fe.containerPoint),fe.latlng=Le?ie.getLatLng():this.layerPointToLatLng(fe.layerPoint)}for(Q=0;Q<C.length;Q++)if(C[Q].fire(a,fe,!0),fe.originalEvent._stopped||C[Q].options.bubblingMouseEvents===!1&&xe(this._mouseEvents,a)!==-1)return}},_draggableMoved:function(t){return t=t.dragging&&t.dragging.enabled()?t:this,t.dragging&&t.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var t=0,a=this._handlers.length;t<a;t++)this._handlers[t].disable()},whenReady:function(t,a){return this._loaded?t.call(a||this,{target:this}):this.on("load",t,a),this},_getMapPanePos:function(){return Zr(this._mapPane)||new Te(0,0)},_moved:function(){var t=this._getMapPanePos();return t&&!t.equals([0,0])},_getTopLeftPoint:function(t,a){var f=t&&a!==void 0?this._getNewPixelOrigin(t,a):this.getPixelOrigin();return f.subtract(this._getMapPanePos())},_getNewPixelOrigin:function(t,a){var f=this.getSize()._divideBy(2);return this.project(t,a)._subtract(f)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(t,a,f){var _=this._getNewPixelOrigin(f,a);return this.project(t,a)._subtract(_)},_latLngBoundsToNewLayerBounds:function(t,a,f){var _=this._getNewPixelOrigin(f,a);return Lt([this.project(t.getSouthWest(),a)._subtract(_),this.project(t.getNorthWest(),a)._subtract(_),this.project(t.getSouthEast(),a)._subtract(_),this.project(t.getNorthEast(),a)._subtract(_)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(t){return this.latLngToLayerPoint(t).subtract(this._getCenterLayerPoint())},_limitCenter:function(t,a,f){if(!f)return t;var _=this.project(t,a),C=this.getSize().divideBy(2),z=new Ot(_.subtract(C),_.add(C)),Q=this._getBoundsOffset(z,f,a);return Math.abs(Q.x)<=1&&Math.abs(Q.y)<=1?t:this.unproject(_.add(Q),a)},_limitOffset:function(t,a){if(!a)return t;var f=this.getPixelBounds(),_=new Ot(f.min.add(t),f.max.add(t));return t.add(this._getBoundsOffset(_,a))},_getBoundsOffset:function(t,a,f){var _=Lt(this.project(a.getNorthEast(),f),this.project(a.getSouthWest(),f)),C=_.min.subtract(t.min),z=_.max.subtract(t.max),Q=this._rebound(C.x,-z.x),ie=this._rebound(C.y,-z.y);return new Te(Q,ie)},_rebound:function(t,a){return t+a>0?Math.round(t-a)/2:Math.max(0,Math.ceil(t))-Math.max(0,Math.floor(a))},_limitZoom:function(t){var a=this.getMinZoom(),f=this.getMaxZoom(),_=it.any3d?this.options.zoomSnap:1;return _&&(t=Math.round(t/_)*_),Math.max(a,Math.min(f,t))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){io(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(t,a){var f=this._getCenterOffset(t)._trunc();return(a&&a.animate)!==!0&&!this.getSize().contains(f)?!1:(this.panBy(f,a),!0)},_createAnimProxy:function(){var t=this._proxy=yt("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(t),this.on("zoomanim",function(a){var f=Er,_=this._proxy.style[f];Pi(this._proxy,this.project(a.center,a.zoom),this.getZoomScale(a.zoom,1)),_===this._proxy.style[f]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){Yt(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var t=this.getCenter(),a=this.getZoom();Pi(this._proxy,this.project(t,a),this.getZoomScale(a,1))},_catchTransitionEnd:function(t){this._animatingZoom&&t.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(t,a,f){if(this._animatingZoom)return!0;if(f=f||{},!this._zoomAnimated||f.animate===!1||this._nothingToAnimate()||Math.abs(a-this._zoom)>this.options.zoomAnimationThreshold)return!1;var _=this.getZoomScale(a),C=this._getCenterOffset(t)._divideBy(1-1/_);return f.animate!==!0&&!this.getSize().contains(C)?!1:(Be(function(){this._moveStart(!0,f.noMoveStart||!1)._animateZoom(t,a,!0)},this),!0)},_animateZoom:function(t,a,f,_){this._mapPane&&(f&&(this._animatingZoom=!0,this._animateToCenter=t,this._animateToZoom=a,jt(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:t,zoom:a,noUpdate:_}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(M(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&io(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}});function Cp(t,a){return new Mn(t,a)}var qi=ot.extend({options:{position:"topright"},initialize:function(t){re(this,t)},getPosition:function(){return this.options.position},setPosition:function(t){var a=this._map;return a&&a.removeControl(this),this.options.position=t,a&&a.addControl(this),this},getContainer:function(){return this._container},addTo:function(t){this.remove(),this._map=t;var a=this._container=this.onAdd(t),f=this.getPosition(),_=t._controlCorners[f];return jt(a,"leaflet-control"),f.indexOf("bottom")!==-1?_.insertBefore(a,_.firstChild):_.appendChild(a),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(Yt(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(t){this._map&&t&&t.screenX>0&&t.screenY>0&&this._map.getContainer().focus()}}),ya=function(t){return new qi(t)};Mn.include({addControl:function(t){return t.addTo(this),this},removeControl:function(t){return t.remove(),this},_initControlPos:function(){var t=this._controlCorners={},a="leaflet-",f=this._controlContainer=yt("div",a+"control-container",this._container);function _(C,z){var Q=a+C+" "+a+z;t[C+z]=yt("div",Q,f)}_("top","left"),_("top","right"),_("bottom","left"),_("bottom","right")},_clearControlPos:function(){for(var t in this._controlCorners)Yt(this._controlCorners[t]);Yt(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var Lc=qi.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(t,a,f,_){return f<_?-1:_<f?1:0}},initialize:function(t,a,f){re(this,f),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1;for(var _ in t)this._addLayer(t[_],_);for(_ in a)this._addLayer(a[_],_,!0)},onAdd:function(t){this._initLayout(),this._update(),this._map=t,t.on("zoomend",this._checkDisabledLayers,this);for(var a=0;a<this._layers.length;a++)this._layers[a].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(t){return qi.prototype.addTo.call(this,t),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var t=0;t<this._layers.length;t++)this._layers[t].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(t,a){return this._addLayer(t,a),this._map?this._update():this},addOverlay:function(t,a){return this._addLayer(t,a,!0),this._map?this._update():this},removeLayer:function(t){t.off("add remove",this._onLayerChange,this);var a=this._getLayer(H(t));return a&&this._layers.splice(this._layers.indexOf(a),1),this._map?this._update():this},expand:function(){jt(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var t=this._map.getSize().y-(this._container.offsetTop+50);return t<this._section.clientHeight?(jt(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=t+"px"):io(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return io(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var t="leaflet-control-layers",a=this._container=yt("div",t),f=this.options.collapsed;a.setAttribute("aria-haspopup",!0),Ms(a),sl(a);var _=this._section=yt("section",t+"-list");f&&(this._map.on("click",this.collapse,this),on(a,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var C=this._layersLink=yt("a",t+"-toggle",a);C.href="#",C.title="Layers",C.setAttribute("role","button"),on(C,{keydown:function(z){z.keyCode===13&&this._expandSafely()},click:function(z){Uo(z),this._expandSafely()}},this),f||this.expand(),this._baseLayersList=yt("div",t+"-base",_),this._separator=yt("div",t+"-separator",_),this._overlaysList=yt("div",t+"-overlays",_),a.appendChild(_)},_getLayer:function(t){for(var a=0;a<this._layers.length;a++)if(this._layers[a]&&H(this._layers[a].layer)===t)return this._layers[a]},_addLayer:function(t,a,f){this._map&&t.on("add remove",this._onLayerChange,this),this._layers.push({layer:t,name:a,overlay:f}),this.options.sortLayers&&this._layers.sort(M(function(_,C){return this.options.sortFunction(_.layer,C.layer,_.name,C.name)},this)),this.options.autoZIndex&&t.setZIndex&&(this._lastZIndex++,t.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;Vi(this._baseLayersList),Vi(this._overlaysList),this._layerControlInputs=[];var t,a,f,_,C=0;for(f=0;f<this._layers.length;f++)_=this._layers[f],this._addItem(_),a=a||_.overlay,t=t||!_.overlay,C+=_.overlay?0:1;return this.options.hideSingleBase&&(t=t&&C>1,this._baseLayersList.style.display=t?"":"none"),this._separator.style.display=a&&t?"":"none",this},_onLayerChange:function(t){this._handlingClick||this._update();var a=this._getLayer(H(t.target)),f=a.overlay?t.type==="add"?"overlayadd":"overlayremove":t.type==="add"?"baselayerchange":null;f&&this._map.fire(f,a)},_createRadioElement:function(t,a){var f='<input type="radio" class="leaflet-control-layers-selector" name="'+t+'"'+(a?' checked="checked"':"")+"/>",_=document.createElement("div");return _.innerHTML=f,_.firstChild},_addItem:function(t){var a=document.createElement("label"),f=this._map.hasLayer(t.layer),_;t.overlay?(_=document.createElement("input"),_.type="checkbox",_.className="leaflet-control-layers-selector",_.defaultChecked=f):_=this._createRadioElement("leaflet-base-layers_"+H(this),f),this._layerControlInputs.push(_),_.layerId=H(t.layer),on(_,"click",this._onInputClick,this);var C=document.createElement("span");C.innerHTML=" "+t.name;var z=document.createElement("span");a.appendChild(z),z.appendChild(_),z.appendChild(C);var Q=t.overlay?this._overlaysList:this._baseLayersList;return Q.appendChild(a),this._checkDisabledLayers(),a},_onInputClick:function(){if(!this._preventClick){var t=this._layerControlInputs,a,f,_=[],C=[];this._handlingClick=!0;for(var z=t.length-1;z>=0;z--)a=t[z],f=this._getLayer(a.layerId).layer,a.checked?_.push(f):a.checked||C.push(f);for(z=0;z<C.length;z++)this._map.hasLayer(C[z])&&this._map.removeLayer(C[z]);for(z=0;z<_.length;z++)this._map.hasLayer(_[z])||this._map.addLayer(_[z]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var t=this._layerControlInputs,a,f,_=this._map.getZoom(),C=t.length-1;C>=0;C--)a=t[C],f=this._getLayer(a.layerId).layer,a.disabled=f.options.minZoom!==void 0&&_<f.options.minZoom||f.options.maxZoom!==void 0&&_>f.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var t=this._section;this._preventClick=!0,on(t,"click",Uo),this.expand();var a=this;setTimeout(function(){vo(t,"click",Uo),a._preventClick=!1})}}),Sp=function(t,a,f){return new Lc(t,a,f)},_a=qi.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">−</span>',zoomOutTitle:"Zoom out"},onAdd:function(t){var a="leaflet-control-zoom",f=yt("div",a+" leaflet-bar"),_=this.options;return this._zoomInButton=this._createButton(_.zoomInText,_.zoomInTitle,a+"-in",f,this._zoomIn),this._zoomOutButton=this._createButton(_.zoomOutText,_.zoomOutTitle,a+"-out",f,this._zoomOut),this._updateDisabled(),t.on("zoomend zoomlevelschange",this._updateDisabled,this),f},onRemove:function(t){t.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(t){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(t.shiftKey?3:1))},_zoomOut:function(t){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(t.shiftKey?3:1))},_createButton:function(t,a,f,_,C){var z=yt("a",f,_);return z.innerHTML=t,z.href="#",z.title=a,z.setAttribute("role","button"),z.setAttribute("aria-label",a),Ms(z),on(z,"click",Ts),on(z,"click",C,this),on(z,"click",this._refocusOnMap,this),z},_updateDisabled:function(){var t=this._map,a="leaflet-disabled";io(this._zoomInButton,a),io(this._zoomOutButton,a),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||t._zoom===t.getMinZoom())&&(jt(this._zoomOutButton,a),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||t._zoom===t.getMaxZoom())&&(jt(this._zoomInButton,a),this._zoomInButton.setAttribute("aria-disabled","true"))}});Mn.mergeOptions({zoomControl:!0}),Mn.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new _a,this.addControl(this.zoomControl))});var Ep=function(t){return new _a(t)},md=qi.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(t){var a="leaflet-control-scale",f=yt("div",a),_=this.options;return this._addScales(_,a+"-line",f),t.on(_.updateWhenIdle?"moveend":"move",this._update,this),t.whenReady(this._update,this),f},onRemove:function(t){t.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(t,a,f){t.metric&&(this._mScale=yt("div",a,f)),t.imperial&&(this._iScale=yt("div",a,f))},_update:function(){var t=this._map,a=t.getSize().y/2,f=t.distance(t.containerPointToLatLng([0,a]),t.containerPointToLatLng([this.options.maxWidth,a]));this._updateScales(f)},_updateScales:function(t){this.options.metric&&t&&this._updateMetric(t),this.options.imperial&&t&&this._updateImperial(t)},_updateMetric:function(t){var a=this._getRoundNum(t),f=a<1e3?a+" m":a/1e3+" km";this._updateScale(this._mScale,f,a/t)},_updateImperial:function(t){var a=t*3.2808399,f,_,C;a>5280?(f=a/5280,_=this._getRoundNum(f),this._updateScale(this._iScale,_+" mi",_/f)):(C=this._getRoundNum(a),this._updateScale(this._iScale,C+" ft",C/a))},_updateScale:function(t,a,f){t.style.width=Math.round(this.options.maxWidth*f)+"px",t.innerHTML=a},_getRoundNum:function(t){var a=Math.pow(10,(Math.floor(t)+"").length-1),f=t/a;return f=f>=10?10:f>=5?5:f>=3?3:f>=2?2:1,a*f}}),ll=function(t){return new md(t)},Ac='<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8" class="leaflet-attribution-flag"><path fill="#4C7BE1" d="M0 0h12v4H0z"/><path fill="#FFD500" d="M0 4h12v3H0z"/><path fill="#E0BC00" d="M0 7h12v1H0z"/></svg>',Oc=qi.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(it.inlineSvg?Ac+" ":"")+"Leaflet</a>"},initialize:function(t){re(this,t),this._attributions={}},onAdd:function(t){t.attributionControl=this,this._container=yt("div","leaflet-control-attribution"),Ms(this._container);for(var a in t._layers)t._layers[a].getAttribution&&this.addAttribution(t._layers[a].getAttribution());return this._update(),t.on("layeradd",this._addAttribution,this),this._container},onRemove:function(t){t.off("layeradd",this._addAttribution,this)},_addAttribution:function(t){t.layer.getAttribution&&(this.addAttribution(t.layer.getAttribution()),t.layer.once("remove",function(){this.removeAttribution(t.layer.getAttribution())},this))},setPrefix:function(t){return this.options.prefix=t,this._update(),this},addAttribution:function(t){return t?(this._attributions[t]||(this._attributions[t]=0),this._attributions[t]++,this._update(),this):this},removeAttribution:function(t){return t?(this._attributions[t]&&(this._attributions[t]--,this._update()),this):this},_update:function(){if(this._map){var t=[];for(var a in this._attributions)this._attributions[a]&&t.push(a);var f=[];this.options.prefix&&f.push(this.options.prefix),t.length&&f.push(t.join(", ")),this._container.innerHTML=f.join(' <span aria-hidden="true">|</span> ')}}});Mn.mergeOptions({attributionControl:!0}),Mn.addInitHook(function(){this.options.attributionControl&&new Oc().addTo(this)});var Pp=function(t){return new Oc(t)};qi.Layers=Lc,qi.Zoom=_a,qi.Scale=md,qi.Attribution=Oc,ya.layers=Sp,ya.zoom=Ep,ya.scale=ll,ya.attribution=Pp;var ki=ot.extend({initialize:function(t){this._map=t},enable:function(){return this._enabled?this:(this._enabled=!0,this.addHooks(),this)},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});ki.addTo=function(t,a){return t.addHandler(a,this),this};var kp={Events:Ut},gd=it.touch?"touchstart mousedown":"mousedown",ls=gt.extend({options:{clickTolerance:3},initialize:function(t,a,f,_){re(this,_),this._element=t,this._dragStartTarget=a||t,this._preventOutline=f},enable:function(){this._enabled||(on(this._dragStartTarget,gd,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(ls._dragging===this&&this.finishDrag(!0),vo(this._dragStartTarget,gd,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(t){if(this._enabled&&(this._moved=!1,!ks(this._element,"leaflet-zoom-anim"))){if(t.touches&&t.touches.length!==1){ls._dragging===this&&this.finishDrag();return}if(!(ls._dragging||t.shiftKey||t.which!==1&&t.button!==1&&!t.touches)&&(ls._dragging=this,this._preventOutline&&pa(this._element),Ec(),Pr(),!this._moving)){this.fire("down");var a=t.touches?t.touches[0]:t,f=hd(this._element);this._startPoint=new Te(a.clientX,a.clientY),this._startPos=Zr(this._element),this._parentScale=ga(f);var _=t.type==="mousedown";on(document,_?"mousemove":"touchmove",this._onMove,this),on(document,_?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(t){if(this._enabled){if(t.touches&&t.touches.length>1){this._moved=!0;return}var a=t.touches&&t.touches.length===1?t.touches[0]:t,f=new Te(a.clientX,a.clientY)._subtract(this._startPoint);!f.x&&!f.y||Math.abs(f.x)+Math.abs(f.y)<this.options.clickTolerance||(f.x/=this._parentScale.x,f.y/=this._parentScale.y,Uo(t),this._moved||(this.fire("dragstart"),this._moved=!0,jt(document.body,"leaflet-dragging"),this._lastTarget=t.target||t.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),jt(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(f),this._moving=!0,this._lastEvent=t,this._updatePosition())}},_updatePosition:function(){var t={originalEvent:this._lastEvent};this.fire("predrag",t),go(this._element,this._newPos),this.fire("drag",t)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(t){io(document.body,"leaflet-dragging"),this._lastTarget&&(io(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),vo(document,"mousemove touchmove",this._onMove,this),vo(document,"mouseup touchend touchcancel",this._onUp,this),kr(),Gs();var a=this._moved&&this._moving;this._moving=!1,ls._dragging=!1,a&&this.fire("dragend",{noInertia:t,distance:this._newPos.distanceTo(this._startPos)})}});function vd(t,a,f){var _,C=[1,4,2,8],z,Q,ie,fe,Le,ct,Dt,hn;for(z=0,ct=t.length;z<ct;z++)t[z]._code=cs(t[z],a);for(ie=0;ie<4;ie++){for(Dt=C[ie],_=[],z=0,ct=t.length,Q=ct-1;z<ct;Q=z++)fe=t[z],Le=t[Q],fe._code&Dt?Le._code&Dt||(hn=dl(Le,fe,Dt,a,f),hn._code=cs(hn,a),_.push(hn)):(Le._code&Dt&&(hn=dl(Le,fe,Dt,a,f),hn._code=cs(hn,a),_.push(hn)),_.push(fe));t=_}return t}function yd(t,a){var f,_,C,z,Q,ie,fe,Le,ct;if(!t||t.length===0)throw new Error("latlngs not passed");Gi(t)||(console.warn("latlngs are not flat! Only the first ring will be used"),t=t[0]);var Dt=bt([0,0]),hn=Je(t),$i=hn.getNorthWest().distanceTo(hn.getSouthWest())*hn.getNorthEast().distanceTo(hn.getNorthWest());$i<1700&&(Dt=Rc(t));var Zo=t.length,ar=[];for(f=0;f<Zo;f++){var Ui=bt(t[f]);ar.push(a.project(bt([Ui.lat-Dt.lat,Ui.lng-Dt.lng])))}for(ie=fe=Le=0,f=0,_=Zo-1;f<Zo;_=f++)C=ar[f],z=ar[_],Q=C.y*z.x-z.y*C.x,fe+=(C.x+z.x)*Q,Le+=(C.y+z.y)*Q,ie+=Q*3;ie===0?ct=ar[0]:ct=[fe/ie,Le/ie];var ia=a.unproject(He(ct));return bt([ia.lat+Dt.lat,ia.lng+Dt.lng])}function Rc(t){for(var a=0,f=0,_=0,C=0;C<t.length;C++){var z=bt(t[C]);a+=z.lat,f+=z.lng,_++}return bt([a/_,f/_])}var Ip={__proto__:null,clipPolygon:vd,polygonCenter:yd,centroid:Rc};function _d(t,a){if(!a||!t.length)return t.slice();var f=a*a;return t=zc(t,f),t=Un(t,f),t}function yo(t,a,f){return Math.sqrt(Js(t,a,f,!0))}function ba(t,a,f){return Js(t,a,f)}function Un(t,a){var f=t.length,_=typeof Uint8Array!=void 0+""?Uint8Array:Array,C=new _(f);C[0]=C[f-1]=1,cl(t,C,a,0,f-1);var z,Q=[];for(z=0;z<f;z++)C[z]&&Q.push(t[z]);return Q}function cl(t,a,f,_,C){var z=0,Q,ie,fe;for(ie=_+1;ie<=C-1;ie++)fe=Js(t[ie],t[_],t[C],!0),fe>z&&(Q=ie,z=fe);z>f&&(a[Q]=1,cl(t,a,f,_,Q),cl(t,a,f,Q,C))}function zc(t,a){for(var f=[t[0]],_=1,C=0,z=t.length;_<z;_++)Mp(t[_],t[C])>a&&(f.push(t[_]),C=_);return C<z-1&&f.push(t[z-1]),f}var ul;function bd(t,a,f,_,C){var z=_?ul:cs(t,f),Q=cs(a,f),ie,fe,Le;for(ul=Q;;){if(!(z|Q))return[t,a];if(z&Q)return!1;ie=z||Q,fe=dl(t,a,ie,f,C),Le=cs(fe,f),ie===z?(t=fe,z=Le):(a=fe,Q=Le)}}function dl(t,a,f,_,C){var z=a.x-t.x,Q=a.y-t.y,ie=_.min,fe=_.max,Le,ct;return f&8?(Le=t.x+z*(fe.y-t.y)/Q,ct=fe.y):f&4?(Le=t.x+z*(ie.y-t.y)/Q,ct=ie.y):f&2?(Le=fe.x,ct=t.y+Q*(fe.x-t.x)/z):f&1&&(Le=ie.x,ct=t.y+Q*(ie.x-t.x)/z),new Te(Le,ct,C)}function cs(t,a){var f=0;return t.x<a.min.x?f|=1:t.x>a.max.x&&(f|=2),t.y<a.min.y?f|=4:t.y>a.max.y&&(f|=8),f}function Mp(t,a){var f=a.x-t.x,_=a.y-t.y;return f*f+_*_}function Js(t,a,f,_){var C=a.x,z=a.y,Q=f.x-C,ie=f.y-z,fe=Q*Q+ie*ie,Le;return fe>0&&(Le=((t.x-C)*Q+(t.y-z)*ie)/fe,Le>1?(C=f.x,z=f.y):Le>0&&(C+=Q*Le,z+=ie*Le)),Q=t.x-C,ie=t.y-z,_?Q*Q+ie*ie:new Te(C,z)}function Gi(t){return!ve(t[0])||typeof t[0][0]!="object"&&typeof t[0][0]<"u"}function hl(t){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),Gi(t)}function xd(t,a){var f,_,C,z,Q,ie,fe,Le;if(!t||t.length===0)throw new Error("latlngs not passed");Gi(t)||(console.warn("latlngs are not flat! Only the first ring will be used"),t=t[0]);var ct=bt([0,0]),Dt=Je(t),hn=Dt.getNorthWest().distanceTo(Dt.getSouthWest())*Dt.getNorthEast().distanceTo(Dt.getNorthWest());hn<1700&&(ct=Rc(t));var $i=t.length,Zo=[];for(f=0;f<$i;f++){var ar=bt(t[f]);Zo.push(a.project(bt([ar.lat-ct.lat,ar.lng-ct.lng])))}for(f=0,_=0;f<$i-1;f++)_+=Zo[f].distanceTo(Zo[f+1])/2;if(_===0)Le=Zo[0];else for(f=0,z=0;f<$i-1;f++)if(Q=Zo[f],ie=Zo[f+1],C=Q.distanceTo(ie),z+=C,z>_){fe=(z-_)/C,Le=[ie.x-fe*(ie.x-Q.x),ie.y-fe*(ie.y-Q.y)];break}var Ui=a.unproject(He(Le));return bt([Ui.lat+ct.lat,Ui.lng+ct.lng])}var wd={__proto__:null,simplify:_d,pointToSegmentDistance:yo,closestPointOnSegment:ba,clipSegment:bd,_getEdgeIntersection:dl,_getBitCode:cs,_sqClosestPointOnSegment:Js,isFlat:Gi,_flat:hl,polylineCenter:xd},mr={project:function(t){return new Te(t.lng,t.lat)},unproject:function(t){return new Ct(t.y,t.x)},bounds:new Ot([-180,-90],[180,90])},rn={R:6378137,R_MINOR:6356752314245179e-9,bounds:new Ot([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(t){var a=Math.PI/180,f=this.R,_=t.lat*a,C=this.R_MINOR/f,z=Math.sqrt(1-C*C),Q=z*Math.sin(_),ie=Math.tan(Math.PI/4-_/2)/Math.pow((1-Q)/(1+Q),z/2);return _=-f*Math.log(Math.max(ie,1e-10)),new Te(t.lng*a*f,_)},unproject:function(t){for(var a=180/Math.PI,f=this.R,_=this.R_MINOR/f,C=Math.sqrt(1-_*_),z=Math.exp(-t.y/f),Q=Math.PI/2-2*Math.atan(z),ie=0,fe=.1,Le;ie<15&&Math.abs(fe)>1e-7;ie++)Le=C*Math.sin(Q),Le=Math.pow((1-Le)/(1+Le),C/2),fe=Math.PI/2-2*Math.atan(z*Le)-Q,Q+=fe;return new Ct(Q*a,t.x*a/f)}},fl={__proto__:null,LonLat:mr,Mercator:rn,SphericalMercator:On},Qo=y({},Rt,{code:"EPSG:3395",projection:rn,transformation:function(){var t=.5/(Math.PI*rn.R);return ho(t,.5,-t,.5)}()}),us=y({},Rt,{code:"EPSG:4326",projection:mr,transformation:ho(1/180,1,-1/180,.5)}),gr=y({},Ye,{projection:mr,transformation:ho(1,0,-1,0),scale:function(t){return Math.pow(2,t)},zoom:function(t){return Math.log(t)/Math.LN2},distance:function(t,a){var f=a.lng-t.lng,_=a.lat-t.lat;return Math.sqrt(f*f+_*_)},infinite:!0});Ye.Earth=Rt,Ye.EPSG3395=Qo,Ye.EPSG3857=gn,Ye.EPSG900913=vt,Ye.EPSG4326=us,Ye.Simple=gr;var sr=gt.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(t){return t.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(t){return t&&t.removeLayer(this),this},getPane:function(t){return this._map.getPane(t?this.options[t]||t:this.options.pane)},addInteractiveTarget:function(t){return this._map._targets[H(t)]=this,this},removeInteractiveTarget:function(t){return delete this._map._targets[H(t)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(t){var a=t.target;if(a.hasLayer(this)){if(this._map=a,this._zoomAnimated=a._zoomAnimated,this.getEvents){var f=this.getEvents();a.on(f,this),this.once("remove",function(){a.off(f,this)},this)}this.onAdd(a),this.fire("add"),a.fire("layeradd",{layer:this})}}});Mn.include({addLayer:function(t){if(!t._layerAdd)throw new Error("The provided object is not a Layer.");var a=H(t);return this._layers[a]?this:(this._layers[a]=t,t._mapToAdd=this,t.beforeAdd&&t.beforeAdd(this),this.whenReady(t._layerAdd,t),this)},removeLayer:function(t){var a=H(t);return this._layers[a]?(this._loaded&&t.onRemove(this),delete this._layers[a],this._loaded&&(this.fire("layerremove",{layer:t}),t.fire("remove")),t._map=t._mapToAdd=null,this):this},hasLayer:function(t){return H(t)in this._layers},eachLayer:function(t,a){for(var f in this._layers)t.call(a,this._layers[f]);return this},_addLayers:function(t){t=t?ve(t)?t:[t]:[];for(var a=0,f=t.length;a<f;a++)this.addLayer(t[a])},_addZoomLimit:function(t){(!isNaN(t.options.maxZoom)||!isNaN(t.options.minZoom))&&(this._zoomBoundLayers[H(t)]=t,this._updateZoomLevels())},_removeZoomLimit:function(t){var a=H(t);this._zoomBoundLayers[a]&&(delete this._zoomBoundLayers[a],this._updateZoomLevels())},_updateZoomLevels:function(){var t=1/0,a=-1/0,f=this._getZoomSpan();for(var _ in this._zoomBoundLayers){var C=this._zoomBoundLayers[_].options;t=C.minZoom===void 0?t:Math.min(t,C.minZoom),a=C.maxZoom===void 0?a:Math.max(a,C.maxZoom)}this._layersMaxZoom=a===-1/0?void 0:a,this._layersMinZoom=t===1/0?void 0:t,f!==this._getZoomSpan()&&this.fire("zoomlevelschange"),this.options.maxZoom===void 0&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),this.options.minZoom===void 0&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var Ir=sr.extend({initialize:function(t,a){re(this,a),this._layers={};var f,_;if(t)for(f=0,_=t.length;f<_;f++)this.addLayer(t[f])},addLayer:function(t){var a=this.getLayerId(t);return this._layers[a]=t,this._map&&this._map.addLayer(t),this},removeLayer:function(t){var a=t in this._layers?t:this.getLayerId(t);return this._map&&this._layers[a]&&this._map.removeLayer(this._layers[a]),delete this._layers[a],this},hasLayer:function(t){var a=typeof t=="number"?t:this.getLayerId(t);return a in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(t){var a=Array.prototype.slice.call(arguments,1),f,_;for(f in this._layers)_=this._layers[f],_[t]&&_[t].apply(_,a);return this},onAdd:function(t){this.eachLayer(t.addLayer,t)},onRemove:function(t){this.eachLayer(t.removeLayer,t)},eachLayer:function(t,a){for(var f in this._layers)t.call(a,this._layers[f]);return this},getLayer:function(t){return this._layers[t]},getLayers:function(){var t=[];return this.eachLayer(t.push,t),t},setZIndex:function(t){return this.invoke("setZIndex",t)},getLayerId:function(t){return H(t)}}),Tp=function(t,a){return new Ir(t,a)},Mr=Ir.extend({addLayer:function(t){return this.hasLayer(t)?this:(t.addEventParent(this),Ir.prototype.addLayer.call(this,t),this.fire("layeradd",{layer:t}))},removeLayer:function(t){return this.hasLayer(t)?(t in this._layers&&(t=this._layers[t]),t.removeEventParent(this),Ir.prototype.removeLayer.call(this,t),this.fire("layerremove",{layer:t})):this},setStyle:function(t){return this.invoke("setStyle",t)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var t=new dn;for(var a in this._layers){var f=this._layers[a];t.extend(f.getBounds?f.getBounds():f.getLatLng())}return t}}),pl=function(t,a){return new Mr(t,a)},vr=ot.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(t){re(this,t)},createIcon:function(t){return this._createIcon("icon",t)},createShadow:function(t){return this._createIcon("shadow",t)},_createIcon:function(t,a){var f=this._getIconUrl(t);if(!f){if(t==="icon")throw new Error("iconUrl not set in Icon options (see the docs).");return null}var _=this._createImg(f,a&&a.tagName==="IMG"?a:null);return this._setIconStyles(_,t),(this.options.crossOrigin||this.options.crossOrigin==="")&&(_.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),_},_setIconStyles:function(t,a){var f=this.options,_=f[a+"Size"];typeof _=="number"&&(_=[_,_]);var C=He(_),z=He(a==="shadow"&&f.shadowAnchor||f.iconAnchor||C&&C.divideBy(2,!0));t.className="leaflet-marker-"+a+" "+(f.className||""),z&&(t.style.marginLeft=-z.x+"px",t.style.marginTop=-z.y+"px"),C&&(t.style.width=C.x+"px",t.style.height=C.y+"px")},_createImg:function(t,a){return a=a||document.createElement("img"),a.src=t,a},_getIconUrl:function(t){return it.retina&&this.options[t+"RetinaUrl"]||this.options[t+"Url"]}});function Cd(t){return new vr(t)}var Ii=vr.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(t){return typeof Ii.imagePath!="string"&&(Ii.imagePath=this._detectIconPath()),(this.options.imagePath||Ii.imagePath)+vr.prototype._getIconUrl.call(this,t)},_stripUrl:function(t){var a=function(f,_,C){var z=_.exec(f);return z&&z[C]};return t=a(t,/^url\((['"])?(.+)\1\)$/,2),t&&a(t,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var t=yt("div","leaflet-default-icon-path",document.body),a=zt(t,"background-image")||zt(t,"backgroundImage");if(document.body.removeChild(t),a=this._stripUrl(a),a)return a;var f=document.querySelector('link[href$="leaflet.css"]');return f?f.href.substring(0,f.href.length-11-1):""}}),Bo=ki.extend({initialize:function(t){this._marker=t},addHooks:function(){var t=this._marker._icon;this._draggable||(this._draggable=new ls(t,t,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),jt(t,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&io(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(t){var a=this._marker,f=a._map,_=this._marker.options.autoPanSpeed,C=this._marker.options.autoPanPadding,z=Zr(a._icon),Q=f.getPixelBounds(),ie=f.getPixelOrigin(),fe=Lt(Q.min._subtract(ie).add(C),Q.max._subtract(ie).subtract(C));if(!fe.contains(z)){var Le=He((Math.max(fe.max.x,z.x)-fe.max.x)/(Q.max.x-fe.max.x)-(Math.min(fe.min.x,z.x)-fe.min.x)/(Q.min.x-fe.min.x),(Math.max(fe.max.y,z.y)-fe.max.y)/(Q.max.y-fe.max.y)-(Math.min(fe.min.y,z.y)-fe.min.y)/(Q.min.y-fe.min.y)).multiplyBy(_);f.panBy(Le,{animate:!1}),this._draggable._newPos._add(Le),this._draggable._startPos._add(Le),go(a._icon,this._draggable._newPos),this._onDrag(t),this._panRequest=Be(this._adjustPan.bind(this,t))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(t){this._marker.options.autoPan&&(et(this._panRequest),this._panRequest=Be(this._adjustPan.bind(this,t)))},_onDrag:function(t){var a=this._marker,f=a._shadow,_=Zr(a._icon),C=a._map.layerPointToLatLng(_);f&&go(f,_),a._latlng=C,t.latlng=C,t.oldLatLng=this._oldLatLng,a.fire("move",t).fire("drag",t)},_onDragEnd:function(t){et(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",t)}}),qr=sr.extend({options:{icon:new Ii,interactive:!0,keyboard:!0,title:"",alt:"Marker",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:!1,autoPanOnFocus:!0,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(t,a){re(this,a),this._latlng=bt(t)},onAdd:function(t){this._zoomAnimated=this._zoomAnimated&&t.options.markerZoomAnimation,this._zoomAnimated&&t.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(t){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&t.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(t){var a=this._latlng;return this._latlng=bt(t),this.update(),this.fire("move",{oldLatLng:a,latlng:this._latlng})},setZIndexOffset:function(t){return this.options.zIndexOffset=t,this.update()},getIcon:function(){return this.options.icon},setIcon:function(t){return this.options.icon=t,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){if(this._icon&&this._map){var t=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(t)}return this},_initIcon:function(){var t=this.options,a="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),f=t.icon.createIcon(this._icon),_=!1;f!==this._icon&&(this._icon&&this._removeIcon(),_=!0,t.title&&(f.title=t.title),f.tagName==="IMG"&&(f.alt=t.alt||"")),jt(f,a),t.keyboard&&(f.tabIndex="0",f.setAttribute("role","button")),this._icon=f,t.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&on(f,"focus",this._panOnFocus,this);var C=t.icon.createShadow(this._shadow),z=!1;C!==this._shadow&&(this._removeShadow(),z=!0),C&&(jt(C,a),C.alt=""),this._shadow=C,t.opacity<1&&this._updateOpacity(),_&&this.getPane().appendChild(this._icon),this._initInteraction(),C&&z&&this.getPane(t.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&vo(this._icon,"focus",this._panOnFocus,this),Yt(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&Yt(this._shadow),this._shadow=null},_setPos:function(t){this._icon&&go(this._icon,t),this._shadow&&go(this._shadow,t),this._zIndex=t.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(t){this._icon&&(this._icon.style.zIndex=this._zIndex+t)},_animateZoom:function(t){var a=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center).round();this._setPos(a)},_initInteraction:function(){if(this.options.interactive&&(jt(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),Bo)){var t=this.options.draggable;this.dragging&&(t=this.dragging.enabled(),this.dragging.disable()),this.dragging=new Bo(this),t&&this.dragging.enable()}},setOpacity:function(t){return this.options.opacity=t,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var t=this.options.opacity;this._icon&&Nt(this._icon,t),this._shadow&&Nt(this._shadow,t)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var t=this._map;if(t){var a=this.options.icon.options,f=a.iconSize?He(a.iconSize):He(0,0),_=a.iconAnchor?He(a.iconAnchor):He(0,0);t.panInside(this._latlng,{paddingTopLeft:_,paddingBottomRight:f.subtract(_)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function ml(t,a){return new qr(t,a)}var Ni=sr.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:!0,bubblingMouseEvents:!0},beforeAdd:function(t){this._renderer=t.getRenderer(this)},onAdd:function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){return this._map&&this._renderer._updatePath(this),this},setStyle:function(t){return re(this,t),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&t&&Object.prototype.hasOwnProperty.call(t,"weight")&&this._updateBounds()),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+(this._renderer.options.tolerance||0)}}),Gr=Ni.extend({options:{fill:!0,radius:10},initialize:function(t,a){re(this,a),this._latlng=bt(t),this._radius=this.options.radius},setLatLng:function(t){var a=this._latlng;return this._latlng=bt(t),this.redraw(),this.fire("move",{oldLatLng:a,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(t){return this.options.radius=this._radius=t,this.redraw()},getRadius:function(){return this._radius},setStyle:function(t){var a=t&&t.radius||this._radius;return Ni.prototype.setStyle.call(this,t),this.setRadius(a),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var t=this._radius,a=this._radiusY||t,f=this._clickTolerance(),_=[t+f,a+f];this._pxBounds=new Ot(this._point.subtract(_),this._point.add(_))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(t){return t.distanceTo(this._point)<=this._radius+this._clickTolerance()}});function Lp(t,a){return new Gr(t,a)}var Bc=Gr.extend({initialize:function(t,a,f){if(typeof a=="number"&&(a=y({},f,{radius:a})),re(this,a),this._latlng=bt(t),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(t){return this._mRadius=t,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var t=[this._radius,this._radiusY||this._radius];return new dn(this._map.layerPointToLatLng(this._point.subtract(t)),this._map.layerPointToLatLng(this._point.add(t)))},setStyle:Ni.prototype.setStyle,_project:function(){var t=this._latlng.lng,a=this._latlng.lat,f=this._map,_=f.options.crs;if(_.distance===Rt.distance){var C=Math.PI/180,z=this._mRadius/Rt.R/C,Q=f.project([a+z,t]),ie=f.project([a-z,t]),fe=Q.add(ie).divideBy(2),Le=f.unproject(fe).lat,ct=Math.acos((Math.cos(z*C)-Math.sin(a*C)*Math.sin(Le*C))/(Math.cos(a*C)*Math.cos(Le*C)))/C;(isNaN(ct)||ct===0)&&(ct=z/Math.cos(Math.PI/180*a)),this._point=fe.subtract(f.getPixelOrigin()),this._radius=isNaN(ct)?0:fe.x-f.project([Le,t-ct]).x,this._radiusY=fe.y-Q.y}else{var Dt=_.unproject(_.project(this._latlng).subtract([this._mRadius,0]));this._point=f.latLngToLayerPoint(this._latlng),this._radius=this._point.x-f.latLngToLayerPoint(Dt).x}this._updateBounds()}});function yr(t,a,f){return new Bc(t,a,f)}var Mi=Ni.extend({options:{smoothFactor:1,noClip:!1},initialize:function(t,a){re(this,a),this._setLatLngs(t)},getLatLngs:function(){return this._latlngs},setLatLngs:function(t){return this._setLatLngs(t),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(t){for(var a=1/0,f=null,_=Js,C,z,Q=0,ie=this._parts.length;Q<ie;Q++)for(var fe=this._parts[Q],Le=1,ct=fe.length;Le<ct;Le++){C=fe[Le-1],z=fe[Le];var Dt=_(t,C,z,!0);Dt<a&&(a=Dt,f=_(t,C,z))}return f&&(f.distance=Math.sqrt(a)),f},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return xd(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(t,a){return a=a||this._defaultShape(),t=bt(t),a.push(t),this._bounds.extend(t),this.redraw()},_setLatLngs:function(t){this._bounds=new dn,this._latlngs=this._convertLatLngs(t)},_defaultShape:function(){return Gi(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(t){for(var a=[],f=Gi(t),_=0,C=t.length;_<C;_++)f?(a[_]=bt(t[_]),this._bounds.extend(a[_])):a[_]=this._convertLatLngs(t[_]);return a},_project:function(){var t=new Ot;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,t),this._bounds.isValid()&&t.isValid()&&(this._rawPxBounds=t,this._updateBounds())},_updateBounds:function(){var t=this._clickTolerance(),a=new Te(t,t);this._rawPxBounds&&(this._pxBounds=new Ot([this._rawPxBounds.min.subtract(a),this._rawPxBounds.max.add(a)]))},_projectLatlngs:function(t,a,f){var _=t[0]instanceof Ct,C=t.length,z,Q;if(_){for(Q=[],z=0;z<C;z++)Q[z]=this._map.latLngToLayerPoint(t[z]),f.extend(Q[z]);a.push(Q)}else for(z=0;z<C;z++)this._projectLatlngs(t[z],a,f)},_clipPoints:function(){var t=this._renderer._bounds;if(this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(t))){if(this.options.noClip){this._parts=this._rings;return}var a=this._parts,f,_,C,z,Q,ie,fe;for(f=0,C=0,z=this._rings.length;f<z;f++)for(fe=this._rings[f],_=0,Q=fe.length;_<Q-1;_++)ie=bd(fe[_],fe[_+1],t,_,!0),ie&&(a[C]=a[C]||[],a[C].push(ie[0]),(ie[1]!==fe[_+1]||_===Q-2)&&(a[C].push(ie[1]),C++))}},_simplifyPoints:function(){for(var t=this._parts,a=this.options.smoothFactor,f=0,_=t.length;f<_;f++)t[f]=_d(t[f],a)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(t,a){var f,_,C,z,Q,ie,fe=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(f=0,z=this._parts.length;f<z;f++)for(ie=this._parts[f],_=0,Q=ie.length,C=Q-1;_<Q;C=_++)if(!(!a&&_===0)&&yo(t,ie[C],ie[_])<=fe)return!0;return!1}});function gl(t,a){return new Mi(t,a)}Mi._flat=hl;var Ur=Mi.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return yd(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(t){var a=Mi.prototype._convertLatLngs.call(this,t),f=a.length;return f>=2&&a[0]instanceof Ct&&a[0].equals(a[f-1])&&a.pop(),a},_setLatLngs:function(t){Mi.prototype._setLatLngs.call(this,t),Gi(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return Gi(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var t=this._renderer._bounds,a=this.options.weight,f=new Te(a,a);if(t=new Ot(t.min.subtract(f),t.max.add(f)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(t))){if(this.options.noClip){this._parts=this._rings;return}for(var _=0,C=this._rings.length,z;_<C;_++)z=vd(this._rings[_],t,!0),z.length&&this._parts.push(z)}},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(t){var a=!1,f,_,C,z,Q,ie,fe,Le;if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(z=0,fe=this._parts.length;z<fe;z++)for(f=this._parts[z],Q=0,Le=f.length,ie=Le-1;Q<Le;ie=Q++)_=f[Q],C=f[ie],_.y>t.y!=C.y>t.y&&t.x<(C.x-_.x)*(t.y-_.y)/(C.y-_.y)+_.x&&(a=!a);return a||Mi.prototype._containsPoint.call(this,t,!0)}});function xa(t,a){return new Ur(t,a)}var Qr=Mr.extend({initialize:function(t,a){re(this,a),this._layers={},t&&this.addData(t)},addData:function(t){var a=ve(t)?t:t.features,f,_,C;if(a){for(f=0,_=a.length;f<_;f++)C=a[f],(C.geometries||C.geometry||C.features||C.coordinates)&&this.addData(C);return this}var z=this.options;if(z.filter&&!z.filter(t))return this;var Q=vl(t,z);return Q?(Q.feature=Ca(t),Q.defaultOptions=Q.options,this.resetStyle(Q),z.onEachFeature&&z.onEachFeature(t,Q),this.addLayer(Q)):this},resetStyle:function(t){return t===void 0?this.eachLayer(this.resetStyle,this):(t.options=y({},t.defaultOptions),this._setLayerStyle(t,this.options.style),this)},setStyle:function(t){return this.eachLayer(function(a){this._setLayerStyle(a,t)},this)},_setLayerStyle:function(t,a){t.setStyle&&(typeof a=="function"&&(a=a(t.feature)),t.setStyle(a))}});function vl(t,a){var f=t.type==="Feature"?t.geometry:t,_=f?f.coordinates:null,C=[],z=a&&a.pointToLayer,Q=a&&a.coordsToLatLng||Nc,ie,fe,Le,ct;if(!_&&!f)return null;switch(f.type){case"Point":return ie=Q(_),yl(z,t,ie,a);case"MultiPoint":for(Le=0,ct=_.length;Le<ct;Le++)ie=Q(_[Le]),C.push(yl(z,t,ie,a));return new Mr(C);case"LineString":case"MultiLineString":return fe=_l(_,f.type==="LineString"?0:1,Q),new Mi(fe,a);case"Polygon":case"MultiPolygon":return fe=_l(_,f.type==="Polygon"?1:2,Q),new Ur(fe,a);case"GeometryCollection":for(Le=0,ct=f.geometries.length;Le<ct;Le++){var Dt=vl({geometry:f.geometries[Le],type:"Feature",properties:t.properties},a);Dt&&C.push(Dt)}return new Mr(C);case"FeatureCollection":for(Le=0,ct=f.features.length;Le<ct;Le++){var hn=vl(f.features[Le],a);hn&&C.push(hn)}return new Mr(C);default:throw new Error("Invalid GeoJSON object.")}}function yl(t,a,f,_){return t?t(a,f):new qr(f,_&&_.markersInheritOptions&&_)}function Nc(t){return new Ct(t[1],t[0],t[2])}function _l(t,a,f){for(var _=[],C=0,z=t.length,Q;C<z;C++)Q=a?_l(t[C],a-1,f):(f||Nc)(t[C]),_.push(Q);return _}function wa(t,a){return t=bt(t),t.alt!==void 0?[K(t.lng,a),K(t.lat,a),K(t.alt,a)]:[K(t.lng,a),K(t.lat,a)]}function bl(t,a,f,_){for(var C=[],z=0,Q=t.length;z<Q;z++)C.push(a?bl(t[z],Gi(t[z])?0:a-1,f,_):wa(t[z],_));return!a&&f&&C.length>0&&C.push(C[0].slice()),C}function Ks(t,a){return t.feature?y({},t.feature,{geometry:a}):Ca(a)}function Ca(t){return t.type==="Feature"||t.type==="FeatureCollection"?t:{type:"Feature",properties:{},geometry:t}}var Ys={toGeoJSON:function(t){return Ks(this,{type:"Point",coordinates:wa(this.getLatLng(),t)})}};qr.include(Ys),Bc.include(Ys),Gr.include(Ys),Mi.include({toGeoJSON:function(t){var a=!Gi(this._latlngs),f=bl(this._latlngs,a?1:0,!1,t);return Ks(this,{type:(a?"Multi":"")+"LineString",coordinates:f})}}),Ur.include({toGeoJSON:function(t){var a=!Gi(this._latlngs),f=a&&!Gi(this._latlngs[0]),_=bl(this._latlngs,f?2:a?1:0,!0,t);return a||(_=[_]),Ks(this,{type:(f?"Multi":"")+"Polygon",coordinates:_})}}),Ir.include({toMultiPoint:function(t){var a=[];return this.eachLayer(function(f){a.push(f.toGeoJSON(t).geometry.coordinates)}),Ks(this,{type:"MultiPoint",coordinates:a})},toGeoJSON:function(t){var a=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(a==="MultiPoint")return this.toMultiPoint(t);var f=a==="GeometryCollection",_=[];return this.eachLayer(function(C){if(C.toGeoJSON){var z=C.toGeoJSON(t);if(f)_.push(z.geometry);else{var Q=Ca(z);Q.type==="FeatureCollection"?_.push.apply(_,Q.features):_.push(Q)}}}),f?Ks(this,{geometries:_,type:"GeometryCollection"}):{type:"FeatureCollection",features:_}}});function $c(t,a){return new Qr(t,a)}var Ap=$c,Sa=sr.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(t,a,f){this._url=t,this._bounds=Je(a),re(this,f)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(jt(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){Yt(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(t){return this.options.opacity=t,this._image&&this._updateOpacity(),this},setStyle:function(t){return t.opacity&&this.setOpacity(t.opacity),this},bringToFront:function(){return this._map&&Wi(this._image),this},bringToBack:function(){return this._map&&Gn(this._image),this},setUrl:function(t){return this._url=t,this._image&&(this._image.src=t),this},setBounds:function(t){return this._bounds=Je(t),this._map&&this._reset(),this},getEvents:function(){var t={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var t=this._url.tagName==="IMG",a=this._image=t?this._url:yt("img");if(jt(a,"leaflet-image-layer"),this._zoomAnimated&&jt(a,"leaflet-zoom-animated"),this.options.className&&jt(a,this.options.className),a.onselectstart=V,a.onmousemove=V,a.onload=M(this.fire,this,"load"),a.onerror=M(this._overlayOnError,this,"error"),(this.options.crossOrigin||this.options.crossOrigin==="")&&(a.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),t){this._url=a.src;return}a.src=this._url,a.alt=this.options.alt},_animateZoom:function(t){var a=this._map.getZoomScale(t.zoom),f=this._map._latLngBoundsToNewLayerBounds(this._bounds,t.zoom,t.center).min;Pi(this._image,f,a)},_reset:function(){var t=this._image,a=new Ot(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),f=a.getSize();go(t,a.min),t.style.width=f.x+"px",t.style.height=f.y+"px"},_updateOpacity:function(){Nt(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var t=this.options.errorOverlayUrl;t&&this._url!==t&&(this._url=t,this._image.src=t)},getCenter:function(){return this._bounds.getCenter()}}),Sd=function(t,a,f){return new Sa(t,a,f)},Xs=Sa.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var t=this._url.tagName==="VIDEO",a=this._image=t?this._url:yt("video");if(jt(a,"leaflet-image-layer"),this._zoomAnimated&&jt(a,"leaflet-zoom-animated"),this.options.className&&jt(a,this.options.className),a.onselectstart=V,a.onmousemove=V,a.onloadeddata=M(this.fire,this,"load"),t){for(var f=a.getElementsByTagName("source"),_=[],C=0;C<f.length;C++)_.push(f[C].src);this._url=f.length>0?_:[a.src];return}ve(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(a.style,"objectFit")&&(a.style.objectFit="fill"),a.autoplay=!!this.options.autoplay,a.loop=!!this.options.loop,a.muted=!!this.options.muted,a.playsInline=!!this.options.playsInline;for(var z=0;z<this._url.length;z++){var Q=yt("source");Q.src=this._url[z],a.appendChild(Q)}}});function Ed(t,a,f){return new Xs(t,a,f)}var Pd=Sa.extend({_initImage:function(){var t=this._image=this._url;jt(t,"leaflet-image-layer"),this._zoomAnimated&&jt(t,"leaflet-zoom-animated"),this.options.className&&jt(t,this.options.className),t.onselectstart=V,t.onmousemove=V}});function Op(t,a,f){return new Pd(t,a,f)}var _r=sr.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(t,a){t&&(t instanceof Ct||ve(t))?(this._latlng=bt(t),re(this,a)):(re(this,t),this._source=a),this.options.content&&(this._content=this.options.content)},openOn:function(t){return t=arguments.length?t:this._source._map,t.hasLayer(this)||t.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(t){return this._map?this.close():(arguments.length?this._source=t:t=this._source,this._prepareOpen(),this.openOn(t._map)),this},onAdd:function(t){this._zoomAnimated=t._zoomAnimated,this._container||this._initLayout(),t._fadeAnimated&&Nt(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),t._fadeAnimated&&Nt(this._container,1),this.bringToFront(),this.options.interactive&&(jt(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(t){t._fadeAnimated?(Nt(this._container,0),this._removeTimeout=setTimeout(M(Yt,void 0,this._container),200)):Yt(this._container),this.options.interactive&&(io(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(t){return this._latlng=bt(t),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(t){return this._content=t,this.update(),this},getElement:function(){return this._container},update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},getEvents:function(){var t={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&Wi(this._container),this},bringToBack:function(){return this._map&&Gn(this._container),this},_prepareOpen:function(t){var a=this._source;if(!a._map)return!1;if(a instanceof Mr){a=null;var f=this._source._layers;for(var _ in f)if(f[_]._map){a=f[_];break}if(!a)return!1;this._source=a}if(!t)if(a.getCenter)t=a.getCenter();else if(a.getLatLng)t=a.getLatLng();else if(a.getBounds)t=a.getBounds().getCenter();else throw new Error("Unable to get source layer LatLng.");return this.setLatLng(t),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var t=this._contentNode,a=typeof this._content=="function"?this._content(this._source||this):this._content;if(typeof a=="string")t.innerHTML=a;else{for(;t.hasChildNodes();)t.removeChild(t.firstChild);t.appendChild(a)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var t=this._map.latLngToLayerPoint(this._latlng),a=He(this.options.offset),f=this._getAnchor();this._zoomAnimated?go(this._container,t.add(f)):a=a.add(t).add(f);var _=this._containerBottom=-a.y,C=this._containerLeft=-Math.round(this._containerWidth/2)+a.x;this._container.style.bottom=_+"px",this._container.style.left=C+"px"}},_getAnchor:function(){return[0,0]}});Mn.include({_initOverlay:function(t,a,f,_){var C=a;return C instanceof t||(C=new t(_).setContent(a)),f&&C.setLatLng(f),C}}),sr.include({_initOverlay:function(t,a,f,_){var C=f;return C instanceof t?(re(C,_),C._source=this):(C=a&&!_?a:new t(_,this),C.setContent(f)),C}});var xl=_r.extend({options:{pane:"popupPane",offset:[0,7],maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,closeOnEscapeKey:!0,className:""},openOn:function(t){return t=arguments.length?t:this._source._map,!t.hasLayer(this)&&t._popup&&t._popup.options.autoClose&&t.removeLayer(t._popup),t._popup=this,_r.prototype.openOn.call(this,t)},onAdd:function(t){_r.prototype.onAdd.call(this,t),t.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof Ni||this._source.on("preclick",as))},onRemove:function(t){_r.prototype.onRemove.call(this,t),t.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof Ni||this._source.off("preclick",as))},getEvents:function(){var t=_r.prototype.getEvents.call(this);return(this.options.closeOnClick!==void 0?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(t.preclick=this.close),this.options.keepInView&&(t.moveend=this._adjustPan),t},_initLayout:function(){var t="leaflet-popup",a=this._container=yt("div",t+" "+(this.options.className||"")+" leaflet-zoom-animated"),f=this._wrapper=yt("div",t+"-content-wrapper",a);if(this._contentNode=yt("div",t+"-content",f),Ms(a),sl(this._contentNode),on(a,"contextmenu",as),this._tipContainer=yt("div",t+"-tip-container",a),this._tip=yt("div",t+"-tip",this._tipContainer),this.options.closeButton){var _=this._closeButton=yt("a",t+"-close-button",a);_.setAttribute("role","button"),_.setAttribute("aria-label","Close popup"),_.href="#close",_.innerHTML='<span aria-hidden="true">×</span>',on(_,"click",function(C){Uo(C),this.close()},this)}},_updateLayout:function(){var t=this._contentNode,a=t.style;a.width="",a.whiteSpace="nowrap";var f=t.offsetWidth;f=Math.min(f,this.options.maxWidth),f=Math.max(f,this.options.minWidth),a.width=f+1+"px",a.whiteSpace="",a.height="";var _=t.offsetHeight,C=this.options.maxHeight,z="leaflet-popup-scrolled";C&&_>C?(a.height=C+"px",jt(t,z)):io(t,z),this._containerWidth=this._container.offsetWidth},_animateZoom:function(t){var a=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),f=this._getAnchor();go(this._container,a.add(f))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning){this._autopanning=!1;return}var t=this._map,a=parseInt(zt(this._container,"marginBottom"),10)||0,f=this._container.offsetHeight+a,_=this._containerWidth,C=new Te(this._containerLeft,-f-this._containerBottom);C._add(Zr(this._container));var z=t.layerPointToContainerPoint(C),Q=He(this.options.autoPanPadding),ie=He(this.options.autoPanPaddingTopLeft||Q),fe=He(this.options.autoPanPaddingBottomRight||Q),Le=t.getSize(),ct=0,Dt=0;z.x+_+fe.x>Le.x&&(ct=z.x+_-Le.x+fe.x),z.x-ct-ie.x<0&&(ct=z.x-ie.x),z.y+f+fe.y>Le.y&&(Dt=z.y+f-Le.y+fe.y),z.y-Dt-ie.y<0&&(Dt=z.y-ie.y),(ct||Dt)&&(this.options.keepInView&&(this._autopanning=!0),t.fire("autopanstart").panBy([ct,Dt]))}},_getAnchor:function(){return He(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),Rp=function(t,a){return new xl(t,a)};Mn.mergeOptions({closePopupOnClick:!0}),Mn.include({openPopup:function(t,a,f){return this._initOverlay(xl,t,a,f).openOn(this),this},closePopup:function(t){return t=arguments.length?t:this._popup,t&&t.close(),this}}),sr.include({bindPopup:function(t,a){return this._popup=this._initOverlay(xl,this._popup,t,a),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(t){return this._popup&&(this instanceof Mr||(this._popup._source=this),this._popup._prepareOpen(t||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return this._popup?this._popup.isOpen():!1},setPopupContent:function(t){return this._popup&&this._popup.setContent(t),this},getPopup:function(){return this._popup},_openPopup:function(t){if(!(!this._popup||!this._map)){Ts(t);var a=t.layer||t.target;if(this._popup._source===a&&!(a instanceof Ni)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(t.latlng);return}this._popup._source=a,this.openPopup(t.latlng)}},_movePopup:function(t){this._popup.setLatLng(t.latlng)},_onKeyPress:function(t){t.originalEvent.keyCode===13&&this._openPopup(t)}});var Ea=_r.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(t){_r.prototype.onAdd.call(this,t),this.setOpacity(this.options.opacity),t.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(t){_r.prototype.onRemove.call(this,t),t.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var t=_r.prototype.getEvents.call(this);return this.options.permanent||(t.preclick=this.close),t},_initLayout:function(){var t="leaflet-tooltip",a=t+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=yt("div",a),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+H(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(t){var a,f,_=this._map,C=this._container,z=_.latLngToContainerPoint(_.getCenter()),Q=_.layerPointToContainerPoint(t),ie=this.options.direction,fe=C.offsetWidth,Le=C.offsetHeight,ct=He(this.options.offset),Dt=this._getAnchor();ie==="top"?(a=fe/2,f=Le):ie==="bottom"?(a=fe/2,f=0):ie==="center"?(a=fe/2,f=Le/2):ie==="right"?(a=0,f=Le/2):ie==="left"?(a=fe,f=Le/2):Q.x<z.x?(ie="right",a=0,f=Le/2):(ie="left",a=fe+(ct.x+Dt.x)*2,f=Le/2),t=t.subtract(He(a,f,!0)).add(ct).add(Dt),io(C,"leaflet-tooltip-right"),io(C,"leaflet-tooltip-left"),io(C,"leaflet-tooltip-top"),io(C,"leaflet-tooltip-bottom"),jt(C,"leaflet-tooltip-"+ie),go(C,t)},_updatePosition:function(){var t=this._map.latLngToLayerPoint(this._latlng);this._setPosition(t)},setOpacity:function(t){this.options.opacity=t,this._container&&Nt(this._container,t)},_animateZoom:function(t){var a=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center);this._setPosition(a)},_getAnchor:function(){return He(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),kd=function(t,a){return new Ea(t,a)};Mn.include({openTooltip:function(t,a,f){return this._initOverlay(Ea,t,a,f).openOn(this),this},closeTooltip:function(t){return t.close(),this}}),sr.include({bindTooltip:function(t,a){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(Ea,this._tooltip,t,a),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(t){if(!(!t&&this._tooltipHandlersAdded)){var a=t?"off":"on",f={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?f.add=this._openTooltip:(f.mouseover=this._openTooltip,f.mouseout=this.closeTooltip,f.click=this._openTooltip,this._map?this._addFocusListeners():f.add=this._addFocusListeners),this._tooltip.options.sticky&&(f.mousemove=this._moveTooltip),this[a](f),this._tooltipHandlersAdded=!t}},openTooltip:function(t){return this._tooltip&&(this instanceof Mr||(this._tooltip._source=this),this._tooltip._prepareOpen(t)&&(this._tooltip.openOn(this._map),this.getElement?this._setAriaDescribedByOnLayer(this):this.eachLayer&&this.eachLayer(this._setAriaDescribedByOnLayer,this))),this},closeTooltip:function(){if(this._tooltip)return this._tooltip.close()},toggleTooltip:function(){return this._tooltip&&this._tooltip.toggle(this),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(t){return this._tooltip&&this._tooltip.setContent(t),this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},_addFocusListenersOnLayer:function(t){var a=typeof t.getElement=="function"&&t.getElement();a&&(on(a,"focus",function(){this._tooltip._source=t,this.openTooltip()},this),on(a,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(t){var a=typeof t.getElement=="function"&&t.getElement();a&&a.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(t){if(!(!this._tooltip||!this._map)){if(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag){this._openOnceFlag=!0;var a=this;this._map.once("moveend",function(){a._openOnceFlag=!1,a._openTooltip(t)});return}this._tooltip._source=t.layer||t.target,this.openTooltip(this._tooltip.options.sticky?t.latlng:void 0)}},_moveTooltip:function(t){var a=t.latlng,f,_;this._tooltip.options.sticky&&t.originalEvent&&(f=this._map.mouseEventToContainerPoint(t.originalEvent),_=this._map.containerPointToLayerPoint(f),a=this._map.layerPointToLatLng(_)),this._tooltip.setLatLng(a)}});var ds=vr.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(t){var a=t&&t.tagName==="DIV"?t:document.createElement("div"),f=this.options;if(f.html instanceof Element?(Vi(a),a.appendChild(f.html)):a.innerHTML=f.html!==!1?f.html:"",f.bgPos){var _=He(f.bgPos);a.style.backgroundPosition=-_.x+"px "+-_.y+"px"}return this._setIconStyles(a,"icon"),a},createShadow:function(){return null}});function Id(t){return new ds(t)}vr.Default=Ii;var Pa=sr.extend({options:{tileSize:256,opacity:1,updateWhenIdle:it.mobile,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize:function(t){re(this,t)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(t){t._addZoomLimit(this)},onRemove:function(t){this._removeAllTiles(),Yt(this._container),t._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(Wi(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(Gn(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(t){return this.options.opacity=t,this._updateOpacity(),this},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var t=this._clampZoom(this._map.getZoom());t!==this._tileZoom&&(this._tileZoom=t,this._updateLevels()),this._update()}return this},getEvents:function(){var t={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=Z(this._onMoveEnd,this.options.updateInterval,this)),t.move=this._onMove),this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},createTile:function(){return document.createElement("div")},getTileSize:function(){var t=this.options.tileSize;return t instanceof Te?t:new Te(t,t)},_updateZIndex:function(){this._container&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(t){for(var a=this.getPane().children,f=-t(-1/0,1/0),_=0,C=a.length,z;_<C;_++)z=a[_].style.zIndex,a[_]!==this._container&&z&&(f=t(f,+z));isFinite(f)&&(this.options.zIndex=f+t(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!it.ielt9){Nt(this._container,this.options.opacity);var t=+new Date,a=!1,f=!1;for(var _ in this._tiles){var C=this._tiles[_];if(!(!C.current||!C.loaded)){var z=Math.min(1,(t-C.loaded)/200);Nt(C.el,z),z<1?a=!0:(C.active?f=!0:this._onOpaqueTile(C),C.active=!0)}}f&&!this._noPrune&&this._pruneTiles(),a&&(et(this._fadeFrame),this._fadeFrame=Be(this._updateOpacity,this))}},_onOpaqueTile:V,_initContainer:function(){this._container||(this._container=yt("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var t=this._tileZoom,a=this.options.maxZoom;if(t!==void 0){for(var f in this._levels)f=Number(f),this._levels[f].el.children.length||f===t?(this._levels[f].el.style.zIndex=a-Math.abs(t-f),this._onUpdateLevel(f)):(Yt(this._levels[f].el),this._removeTilesAtZoom(f),this._onRemoveLevel(f),delete this._levels[f]);var _=this._levels[t],C=this._map;return _||(_=this._levels[t]={},_.el=yt("div","leaflet-tile-container leaflet-zoom-animated",this._container),_.el.style.zIndex=a,_.origin=C.project(C.unproject(C.getPixelOrigin()),t).round(),_.zoom=t,this._setZoomTransform(_,C.getCenter(),C.getZoom()),V(_.el.offsetWidth),this._onCreateLevel(_)),this._level=_,_}},_onUpdateLevel:V,_onRemoveLevel:V,_onCreateLevel:V,_pruneTiles:function(){if(this._map){var t,a,f=this._map.getZoom();if(f>this.options.maxZoom||f<this.options.minZoom){this._removeAllTiles();return}for(t in this._tiles)a=this._tiles[t],a.retain=a.current;for(t in this._tiles)if(a=this._tiles[t],a.current&&!a.active){var _=a.coords;this._retainParent(_.x,_.y,_.z,_.z-5)||this._retainChildren(_.x,_.y,_.z,_.z+2)}for(t in this._tiles)this._tiles[t].retain||this._removeTile(t)}},_removeTilesAtZoom:function(t){for(var a in this._tiles)this._tiles[a].coords.z===t&&this._removeTile(a)},_removeAllTiles:function(){for(var t in this._tiles)this._removeTile(t)},_invalidateAll:function(){for(var t in this._levels)Yt(this._levels[t].el),this._onRemoveLevel(Number(t)),delete this._levels[t];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(t,a,f,_){var C=Math.floor(t/2),z=Math.floor(a/2),Q=f-1,ie=new Te(+C,+z);ie.z=+Q;var fe=this._tileCoordsToKey(ie),Le=this._tiles[fe];return Le&&Le.active?(Le.retain=!0,!0):(Le&&Le.loaded&&(Le.retain=!0),Q>_?this._retainParent(C,z,Q,_):!1)},_retainChildren:function(t,a,f,_){for(var C=2*t;C<2*t+2;C++)for(var z=2*a;z<2*a+2;z++){var Q=new Te(C,z);Q.z=f+1;var ie=this._tileCoordsToKey(Q),fe=this._tiles[ie];if(fe&&fe.active){fe.retain=!0;continue}else fe&&fe.loaded&&(fe.retain=!0);f+1<_&&this._retainChildren(C,z,f+1,_)}},_resetView:function(t){var a=t&&(t.pinch||t.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),a,a)},_animateZoom:function(t){this._setView(t.center,t.zoom,!0,t.noUpdate)},_clampZoom:function(t){var a=this.options;return a.minNativeZoom!==void 0&&t<a.minNativeZoom?a.minNativeZoom:a.maxNativeZoom!==void 0&&a.maxNativeZoom<t?a.maxNativeZoom:t},_setView:function(t,a,f,_){var C=Math.round(a);this.options.maxZoom!==void 0&&C>this.options.maxZoom||this.options.minZoom!==void 0&&C<this.options.minZoom?C=void 0:C=this._clampZoom(C);var z=this.options.updateWhenZooming&&C!==this._tileZoom;(!_||z)&&(this._tileZoom=C,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),C!==void 0&&this._update(t),f||this._pruneTiles(),this._noPrune=!!f),this._setZoomTransforms(t,a)},_setZoomTransforms:function(t,a){for(var f in this._levels)this._setZoomTransform(this._levels[f],t,a)},_setZoomTransform:function(t,a,f){var _=this._map.getZoomScale(f,t.zoom),C=t.origin.multiplyBy(_).subtract(this._map._getNewPixelOrigin(a,f)).round();it.any3d?Pi(t.el,C,_):go(t.el,C)},_resetGrid:function(){var t=this._map,a=t.options.crs,f=this._tileSize=this.getTileSize(),_=this._tileZoom,C=this._map.getPixelWorldBounds(this._tileZoom);C&&(this._globalTileRange=this._pxBoundsToTileRange(C)),this._wrapX=a.wrapLng&&!this.options.noWrap&&[Math.floor(t.project([0,a.wrapLng[0]],_).x/f.x),Math.ceil(t.project([0,a.wrapLng[1]],_).x/f.y)],this._wrapY=a.wrapLat&&!this.options.noWrap&&[Math.floor(t.project([a.wrapLat[0],0],_).y/f.x),Math.ceil(t.project([a.wrapLat[1],0],_).y/f.y)]},_onMoveEnd:function(){!this._map||this._map._animatingZoom||this._update()},_getTiledPixelBounds:function(t){var a=this._map,f=a._animatingZoom?Math.max(a._animateToZoom,a.getZoom()):a.getZoom(),_=a.getZoomScale(f,this._tileZoom),C=a.project(t,this._tileZoom).floor(),z=a.getSize().divideBy(_*2);return new Ot(C.subtract(z),C.add(z))},_update:function(t){var a=this._map;if(a){var f=this._clampZoom(a.getZoom());if(t===void 0&&(t=a.getCenter()),this._tileZoom!==void 0){var _=this._getTiledPixelBounds(t),C=this._pxBoundsToTileRange(_),z=C.getCenter(),Q=[],ie=this.options.keepBuffer,fe=new Ot(C.getBottomLeft().subtract([ie,-ie]),C.getTopRight().add([ie,-ie]));if(!(isFinite(C.min.x)&&isFinite(C.min.y)&&isFinite(C.max.x)&&isFinite(C.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var Le in this._tiles){var ct=this._tiles[Le].coords;(ct.z!==this._tileZoom||!fe.contains(new Te(ct.x,ct.y)))&&(this._tiles[Le].current=!1)}if(Math.abs(f-this._tileZoom)>1){this._setView(t,f);return}for(var Dt=C.min.y;Dt<=C.max.y;Dt++)for(var hn=C.min.x;hn<=C.max.x;hn++){var $i=new Te(hn,Dt);if($i.z=this._tileZoom,!!this._isValidTile($i)){var Zo=this._tiles[this._tileCoordsToKey($i)];Zo?Zo.current=!0:Q.push($i)}}if(Q.sort(function(Ui,ia){return Ui.distanceTo(z)-ia.distanceTo(z)}),Q.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var ar=document.createDocumentFragment();for(hn=0;hn<Q.length;hn++)this._addTile(Q[hn],ar);this._level.el.appendChild(ar)}}}},_isValidTile:function(t){var a=this._map.options.crs;if(!a.infinite){var f=this._globalTileRange;if(!a.wrapLng&&(t.x<f.min.x||t.x>f.max.x)||!a.wrapLat&&(t.y<f.min.y||t.y>f.max.y))return!1}if(!this.options.bounds)return!0;var _=this._tileCoordsToBounds(t);return Je(this.options.bounds).overlaps(_)},_keyToBounds:function(t){return this._tileCoordsToBounds(this._keyToTileCoords(t))},_tileCoordsToNwSe:function(t){var a=this._map,f=this.getTileSize(),_=t.scaleBy(f),C=_.add(f),z=a.unproject(_,t.z),Q=a.unproject(C,t.z);return[z,Q]},_tileCoordsToBounds:function(t){var a=this._tileCoordsToNwSe(t),f=new dn(a[0],a[1]);return this.options.noWrap||(f=this._map.wrapLatLngBounds(f)),f},_tileCoordsToKey:function(t){return t.x+":"+t.y+":"+t.z},_keyToTileCoords:function(t){var a=t.split(":"),f=new Te(+a[0],+a[1]);return f.z=+a[2],f},_removeTile:function(t){var a=this._tiles[t];a&&(Yt(a.el),delete this._tiles[t],this.fire("tileunload",{tile:a.el,coords:this._keyToTileCoords(t)}))},_initTile:function(t){jt(t,"leaflet-tile");var a=this.getTileSize();t.style.width=a.x+"px",t.style.height=a.y+"px",t.onselectstart=V,t.onmousemove=V,it.ielt9&&this.options.opacity<1&&Nt(t,this.options.opacity)},_addTile:function(t,a){var f=this._getTilePos(t),_=this._tileCoordsToKey(t),C=this.createTile(this._wrapCoords(t),M(this._tileReady,this,t));this._initTile(C),this.createTile.length<2&&Be(M(this._tileReady,this,t,null,C)),go(C,f),this._tiles[_]={el:C,coords:t,current:!0},a.appendChild(C),this.fire("tileloadstart",{tile:C,coords:t})},_tileReady:function(t,a,f){a&&this.fire("tileerror",{error:a,tile:f,coords:t});var _=this._tileCoordsToKey(t);f=this._tiles[_],f&&(f.loaded=+new Date,this._map._fadeAnimated?(Nt(f.el,0),et(this._fadeFrame),this._fadeFrame=Be(this._updateOpacity,this)):(f.active=!0,this._pruneTiles()),a||(jt(f.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:f.el,coords:t})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),it.ielt9||!this._map._fadeAnimated?Be(this._pruneTiles,this):setTimeout(M(this._pruneTiles,this),250)))},_getTilePos:function(t){return t.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(t){var a=new Te(this._wrapX?v(t.x,this._wrapX):t.x,this._wrapY?v(t.y,this._wrapY):t.y);return a.z=t.z,a},_pxBoundsToTileRange:function(t){var a=this.getTileSize();return new Ot(t.min.unscaleBy(a).floor(),t.max.unscaleBy(a).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var t in this._tiles)if(!this._tiles[t].loaded)return!1;return!0}});function zp(t){return new Pa(t)}var ea=Pa.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(t,a){this._url=t,a=re(this,a),a.detectRetina&&it.retina&&a.maxZoom>0?(a.tileSize=Math.floor(a.tileSize/2),a.zoomReverse?(a.zoomOffset--,a.minZoom=Math.min(a.maxZoom,a.minZoom+1)):(a.zoomOffset++,a.maxZoom=Math.max(a.minZoom,a.maxZoom-1)),a.minZoom=Math.max(0,a.minZoom)):a.zoomReverse?a.minZoom=Math.min(a.maxZoom,a.minZoom):a.maxZoom=Math.max(a.minZoom,a.maxZoom),typeof a.subdomains=="string"&&(a.subdomains=a.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(t,a){return this._url===t&&a===void 0&&(a=!0),this._url=t,a||this.redraw(),this},createTile:function(t,a){var f=document.createElement("img");return on(f,"load",M(this._tileOnLoad,this,a,f)),on(f,"error",M(this._tileOnError,this,a,f)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(f.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(f.referrerPolicy=this.options.referrerPolicy),f.alt="",f.src=this.getTileUrl(t),f},getTileUrl:function(t){var a={r:it.retina?"@2x":"",s:this._getSubdomain(t),x:t.x,y:t.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var f=this._globalTileRange.max.y-t.y;this.options.tms&&(a.y=f),a["-y"]=f}return ge(this._url,y(a,this.options))},_tileOnLoad:function(t,a){it.ielt9?setTimeout(M(t,this,null,a),0):t(null,a)},_tileOnError:function(t,a,f){var _=this.options.errorTileUrl;_&&a.getAttribute("src")!==_&&(a.src=_),t(f,a)},_onTileRemove:function(t){t.tile.onload=null},_getZoomForUrl:function(){var t=this._tileZoom,a=this.options.maxZoom,f=this.options.zoomReverse,_=this.options.zoomOffset;return f&&(t=a-t),t+_},_getSubdomain:function(t){var a=Math.abs(t.x+t.y)%this.options.subdomains.length;return this.options.subdomains[a]},_abortLoading:function(){var t,a;for(t in this._tiles)if(this._tiles[t].coords.z!==this._tileZoom&&(a=this._tiles[t].el,a.onload=V,a.onerror=V,!a.complete)){a.src=Ie;var f=this._tiles[t].coords;Yt(a),delete this._tiles[t],this.fire("tileabort",{tile:a,coords:f})}},_removeTile:function(t){var a=this._tiles[t];if(a)return a.el.setAttribute("src",Ie),Pa.prototype._removeTile.call(this,t)},_tileReady:function(t,a,f){if(!(!this._map||f&&f.getAttribute("src")===Ie))return Pa.prototype._tileReady.call(this,t,a,f)}});function Dc(t,a){return new ea(t,a)}var Fc=ea.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(t,a){this._url=t;var f=y({},this.defaultWmsParams);for(var _ in a)_ in this.options||(f[_]=a[_]);a=re(this,a);var C=a.detectRetina&&it.retina?2:1,z=this.getTileSize();f.width=z.x*C,f.height=z.y*C,this.wmsParams=f},onAdd:function(t){this._crs=this.options.crs||t.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var a=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[a]=this._crs.code,ea.prototype.onAdd.call(this,t)},getTileUrl:function(t){var a=this._tileCoordsToNwSe(t),f=this._crs,_=Lt(f.project(a[0]),f.project(a[1])),C=_.min,z=_.max,Q=(this._wmsVersion>=1.3&&this._crs===us?[C.y,C.x,z.y,z.x]:[C.x,C.y,z.x,z.y]).join(","),ie=ea.prototype.getTileUrl.call(this,t);return ie+ne(this.wmsParams,ie,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+Q},setParams:function(t,a){return y(this.wmsParams,t),a||this.redraw(),this}});function Hc(t,a){return new Fc(t,a)}ea.WMS=Fc,Dc.wms=Hc;var Jr=sr.extend({options:{padding:.1},initialize:function(t){re(this,t),H(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),jt(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var t={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(t.zoomanim=this._onAnimZoom),t},_onAnimZoom:function(t){this._updateTransform(t.center,t.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(t,a){var f=this._map.getZoomScale(a,this._zoom),_=this._map.getSize().multiplyBy(.5+this.options.padding),C=this._map.project(this._center,a),z=_.multiplyBy(-f).add(C).subtract(this._map._getNewPixelOrigin(t,a));it.any3d?Pi(this._container,z,f):go(this._container,z)},_reset:function(){this._update(),this._updateTransform(this._center,this._zoom);for(var t in this._layers)this._layers[t]._reset()},_onZoomEnd:function(){for(var t in this._layers)this._layers[t]._project()},_updatePaths:function(){for(var t in this._layers)this._layers[t]._update()},_update:function(){var t=this.options.padding,a=this._map.getSize(),f=this._map.containerPointToLayerPoint(a.multiplyBy(-t)).round();this._bounds=new Ot(f,f.add(a.multiplyBy(1+t*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),jc=Jr.extend({options:{tolerance:0},getEvents:function(){var t=Jr.prototype.getEvents.call(this);return t.viewprereset=this._onViewPreReset,t},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){Jr.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var t=this._container=document.createElement("canvas");on(t,"mousemove",this._onMouseMove,this),on(t,"click dblclick mousedown mouseup contextmenu",this._onClick,this),on(t,"mouseout",this._handleMouseOut,this),t._leaflet_disable_events=!0,this._ctx=t.getContext("2d")},_destroyContainer:function(){et(this._redrawRequest),delete this._ctx,Yt(this._container),vo(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var t;this._redrawBounds=null;for(var a in this._layers)t=this._layers[a],t._update();this._redraw()}},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){Jr.prototype._update.call(this);var t=this._bounds,a=this._container,f=t.getSize(),_=it.retina?2:1;go(a,t.min),a.width=_*f.x,a.height=_*f.y,a.style.width=f.x+"px",a.style.height=f.y+"px",it.retina&&this._ctx.scale(2,2),this._ctx.translate(-t.min.x,-t.min.y),this.fire("update")}},_reset:function(){Jr.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(t){this._updateDashArray(t),this._layers[H(t)]=t;var a=t._order={layer:t,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=a),this._drawLast=a,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(t){this._requestRedraw(t)},_removePath:function(t){var a=t._order,f=a.next,_=a.prev;f?f.prev=_:this._drawLast=_,_?_.next=f:this._drawFirst=f,delete t._order,delete this._layers[H(t)],this._requestRedraw(t)},_updatePath:function(t){this._extendRedrawBounds(t),t._project(),t._update(),this._requestRedraw(t)},_updateStyle:function(t){this._updateDashArray(t),this._requestRedraw(t)},_updateDashArray:function(t){if(typeof t.options.dashArray=="string"){var a=t.options.dashArray.split(/[, ]+/),f=[],_,C;for(C=0;C<a.length;C++){if(_=Number(a[C]),isNaN(_))return;f.push(_)}t.options._dashArray=f}else t.options._dashArray=t.options.dashArray},_requestRedraw:function(t){this._map&&(this._extendRedrawBounds(t),this._redrawRequest=this._redrawRequest||Be(this._redraw,this))},_extendRedrawBounds:function(t){if(t._pxBounds){var a=(t.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new Ot,this._redrawBounds.extend(t._pxBounds.min.subtract([a,a])),this._redrawBounds.extend(t._pxBounds.max.add([a,a]))}},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var t=this._redrawBounds;if(t){var a=t.getSize();this._ctx.clearRect(t.min.x,t.min.y,a.x,a.y)}else this._ctx.save(),this._ctx.setTransform(1,0,0,1,0,0),this._ctx.clearRect(0,0,this._container.width,this._container.height),this._ctx.restore()},_draw:function(){var t,a=this._redrawBounds;if(this._ctx.save(),a){var f=a.getSize();this._ctx.beginPath(),this._ctx.rect(a.min.x,a.min.y,f.x,f.y),this._ctx.clip()}this._drawing=!0;for(var _=this._drawFirst;_;_=_.next)t=_.layer,(!a||t._pxBounds&&t._pxBounds.intersects(a))&&t._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(t,a){if(this._drawing){var f,_,C,z,Q=t._parts,ie=Q.length,fe=this._ctx;if(ie){for(fe.beginPath(),f=0;f<ie;f++){for(_=0,C=Q[f].length;_<C;_++)z=Q[f][_],fe[_?"lineTo":"moveTo"](z.x,z.y);a&&fe.closePath()}this._fillStroke(fe,t)}}},_updateCircle:function(t){if(!(!this._drawing||t._empty())){var a=t._point,f=this._ctx,_=Math.max(Math.round(t._radius),1),C=(Math.max(Math.round(t._radiusY),1)||_)/_;C!==1&&(f.save(),f.scale(1,C)),f.beginPath(),f.arc(a.x,a.y/C,_,0,Math.PI*2,!1),C!==1&&f.restore(),this._fillStroke(f,t)}},_fillStroke:function(t,a){var f=a.options;f.fill&&(t.globalAlpha=f.fillOpacity,t.fillStyle=f.fillColor||f.color,t.fill(f.fillRule||"evenodd")),f.stroke&&f.weight!==0&&(t.setLineDash&&t.setLineDash(a.options&&a.options._dashArray||[]),t.globalAlpha=f.opacity,t.lineWidth=f.weight,t.strokeStyle=f.color,t.lineCap=f.lineCap,t.lineJoin=f.lineJoin,t.stroke())},_onClick:function(t){for(var a=this._map.mouseEventToLayerPoint(t),f,_,C=this._drawFirst;C;C=C.next)f=C.layer,f.options.interactive&&f._containsPoint(a)&&(!(t.type==="click"||t.type==="preclick")||!this._map._draggableMoved(f))&&(_=f);this._fireEvent(_?[_]:!1,t)},_onMouseMove:function(t){if(!(!this._map||this._map.dragging.moving()||this._map._animatingZoom)){var a=this._map.mouseEventToLayerPoint(t);this._handleMouseHover(t,a)}},_handleMouseOut:function(t){var a=this._hoveredLayer;a&&(io(this._container,"leaflet-interactive"),this._fireEvent([a],t,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(t,a){if(!this._mouseHoverThrottled){for(var f,_,C=this._drawFirst;C;C=C.next)f=C.layer,f.options.interactive&&f._containsPoint(a)&&(_=f);_!==this._hoveredLayer&&(this._handleMouseOut(t),_&&(jt(this._container,"leaflet-interactive"),this._fireEvent([_],t,"mouseover"),this._hoveredLayer=_)),this._fireEvent(this._hoveredLayer?[this._hoveredLayer]:!1,t),this._mouseHoverThrottled=!0,setTimeout(M(function(){this._mouseHoverThrottled=!1},this),32)}},_fireEvent:function(t,a,f){this._map._fireDOMEvent(a,f||a.type,t)},_bringToFront:function(t){var a=t._order;if(a){var f=a.next,_=a.prev;if(f)f.prev=_;else return;_?_.next=f:f&&(this._drawFirst=f),a.prev=this._drawLast,this._drawLast.next=a,a.next=null,this._drawLast=a,this._requestRedraw(t)}},_bringToBack:function(t){var a=t._order;if(a){var f=a.next,_=a.prev;if(_)_.next=f;else return;f?f.prev=_:_&&(this._drawLast=_),a.prev=null,a.next=this._drawFirst,this._drawFirst.prev=a,this._drawFirst=a,this._requestRedraw(t)}}});function wl(t){return it.canvas?new jc(t):null}var ta=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(t){return document.createElement("<lvml:"+t+' class="lvml">')}}catch{}return function(t){return document.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),Bp={_initContainer:function(){this._container=yt("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(Jr.prototype._update.call(this),this.fire("update"))},_initPath:function(t){var a=t._container=ta("shape");jt(a,"leaflet-vml-shape "+(this.options.className||"")),a.coordsize="1 1",t._path=ta("path"),a.appendChild(t._path),this._updateStyle(t),this._layers[H(t)]=t},_addPath:function(t){var a=t._container;this._container.appendChild(a),t.options.interactive&&t.addInteractiveTarget(a)},_removePath:function(t){var a=t._container;Yt(a),t.removeInteractiveTarget(a),delete this._layers[H(t)]},_updateStyle:function(t){var a=t._stroke,f=t._fill,_=t.options,C=t._container;C.stroked=!!_.stroke,C.filled=!!_.fill,_.stroke?(a||(a=t._stroke=ta("stroke")),C.appendChild(a),a.weight=_.weight+"px",a.color=_.color,a.opacity=_.opacity,_.dashArray?a.dashStyle=ve(_.dashArray)?_.dashArray.join(" "):_.dashArray.replace(/( *, *)/g," "):a.dashStyle="",a.endcap=_.lineCap.replace("butt","flat"),a.joinstyle=_.lineJoin):a&&(C.removeChild(a),t._stroke=null),_.fill?(f||(f=t._fill=ta("fill")),C.appendChild(f),f.color=_.fillColor||_.color,f.opacity=_.fillOpacity):f&&(C.removeChild(f),t._fill=null)},_updateCircle:function(t){var a=t._point.round(),f=Math.round(t._radius),_=Math.round(t._radiusY||f);this._setPath(t,t._empty()?"M0 0":"AL "+a.x+","+a.y+" "+f+","+_+" 0,"+65535*360)},_setPath:function(t,a){t._path.v=a},_bringToFront:function(t){Wi(t._container)},_bringToBack:function(t){Gn(t._container)}},na=it.vml?ta:Tt,ka=Jr.extend({_initContainer:function(){this._container=na("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=na("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){Yt(this._container),vo(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){Jr.prototype._update.call(this);var t=this._bounds,a=t.getSize(),f=this._container;(!this._svgSize||!this._svgSize.equals(a))&&(this._svgSize=a,f.setAttribute("width",a.x),f.setAttribute("height",a.y)),go(f,t.min),f.setAttribute("viewBox",[t.min.x,t.min.y,a.x,a.y].join(" ")),this.fire("update")}},_initPath:function(t){var a=t._path=na("path");t.options.className&&jt(a,t.options.className),t.options.interactive&&jt(a,"leaflet-interactive"),this._updateStyle(t),this._layers[H(t)]=t},_addPath:function(t){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(t._path),t.addInteractiveTarget(t._path)},_removePath:function(t){Yt(t._path),t.removeInteractiveTarget(t._path),delete this._layers[H(t)]},_updatePath:function(t){t._project(),t._update()},_updateStyle:function(t){var a=t._path,f=t.options;a&&(f.stroke?(a.setAttribute("stroke",f.color),a.setAttribute("stroke-opacity",f.opacity),a.setAttribute("stroke-width",f.weight),a.setAttribute("stroke-linecap",f.lineCap),a.setAttribute("stroke-linejoin",f.lineJoin),f.dashArray?a.setAttribute("stroke-dasharray",f.dashArray):a.removeAttribute("stroke-dasharray"),f.dashOffset?a.setAttribute("stroke-dashoffset",f.dashOffset):a.removeAttribute("stroke-dashoffset")):a.setAttribute("stroke","none"),f.fill?(a.setAttribute("fill",f.fillColor||f.color),a.setAttribute("fill-opacity",f.fillOpacity),a.setAttribute("fill-rule",f.fillRule||"evenodd")):a.setAttribute("fill","none"))},_updatePoly:function(t,a){this._setPath(t,vn(t._parts,a))},_updateCircle:function(t){var a=t._point,f=Math.max(Math.round(t._radius),1),_=Math.max(Math.round(t._radiusY),1)||f,C="a"+f+","+_+" 0 1,0 ",z=t._empty()?"M0 0":"M"+(a.x-f)+","+a.y+C+f*2+",0 "+C+-f*2+",0 ";this._setPath(t,z)},_setPath:function(t,a){t._path.setAttribute("d",a)},_bringToFront:function(t){Wi(t._path)},_bringToBack:function(t){Gn(t._path)}});it.vml&&ka.include(Bp);function Md(t){return it.svg||it.vml?new ka(t):null}Mn.include({getRenderer:function(t){var a=t.options.renderer||this._getPaneRenderer(t.options.pane)||this.options.renderer||this._renderer;return a||(a=this._renderer=this._createRenderer()),this.hasLayer(a)||this.addLayer(a),a},_getPaneRenderer:function(t){if(t==="overlayPane"||t===void 0)return!1;var a=this._paneRenderers[t];return a===void 0&&(a=this._createRenderer({pane:t}),this._paneRenderers[t]=a),a},_createRenderer:function(t){return this.options.preferCanvas&&wl(t)||Md(t)}});var Qn=Ur.extend({initialize:function(t,a){Ur.prototype.initialize.call(this,this._boundsToLatLngs(t),a)},setBounds:function(t){return this.setLatLngs(this._boundsToLatLngs(t))},_boundsToLatLngs:function(t){return t=Je(t),[t.getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}});function oa(t,a){return new Qn(t,a)}ka.create=na,ka.pointsToPath=vn,Qr.geometryToLayer=vl,Qr.coordsToLatLng=Nc,Qr.coordsToLatLngs=_l,Qr.latLngToCoords=wa,Qr.latLngsToCoords=bl,Qr.getFeature=Ks,Qr.asFeature=Ca,Mn.mergeOptions({boxZoom:!0});var No=ki.extend({initialize:function(t){this._map=t,this._container=t._container,this._pane=t._panes.overlayPane,this._resetStateTimeout=0,t.on("unload",this._destroy,this)},addHooks:function(){on(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){vo(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){Yt(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){this._resetStateTimeout!==0&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(t){if(!t.shiftKey||t.which!==1&&t.button!==1)return!1;this._clearDeferredResetState(),this._resetState(),Pr(),Ec(),this._startPoint=this._map.mouseEventToContainerPoint(t),on(document,{contextmenu:Ts,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(t){this._moved||(this._moved=!0,this._box=yt("div","leaflet-zoom-box",this._container),jt(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(t);var a=new Ot(this._point,this._startPoint),f=a.getSize();go(this._box,a.min),this._box.style.width=f.x+"px",this._box.style.height=f.y+"px"},_finish:function(){this._moved&&(Yt(this._box),io(this._container,"leaflet-crosshair")),Gs(),kr(),vo(document,{contextmenu:Ts,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(t){if(!(t.which!==1&&t.button!==1)&&(this._finish(),!!this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(M(this._resetState,this),0);var a=new dn(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(a).fire("boxzoomend",{boxZoomBounds:a})}},_onKeyDown:function(t){t.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});Mn.addInitHook("addHandler","boxZoom",No),Mn.mergeOptions({doubleClickZoom:!0});var Td=ki.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(t){var a=this._map,f=a.getZoom(),_=a.options.zoomDelta,C=t.originalEvent.shiftKey?f-_:f+_;a.options.doubleClickZoom==="center"?a.setZoom(C):a.setZoomAround(t.containerPoint,C)}});Mn.addInitHook("addHandler","doubleClickZoom",Td),Mn.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var Ld=ki.extend({addHooks:function(){if(!this._draggable){var t=this._map;this._draggable=new ls(t._mapPane,t._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),t.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),t.on("zoomend",this._onZoomEnd,this),t.whenReady(this._onZoomEnd,this))}jt(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){io(this._map._container,"leaflet-grab"),io(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var t=this._map;if(t._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var a=Je(this._map.options.maxBounds);this._offsetLimit=Lt(this._map.latLngToContainerPoint(a.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(a.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;t.fire("movestart").fire("dragstart"),t.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(t){if(this._map.options.inertia){var a=this._lastTime=+new Date,f=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(f),this._times.push(a),this._prunePositions(a)}this._map.fire("move",t).fire("drag",t)},_prunePositions:function(t){for(;this._positions.length>1&&t-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var t=this._map.getSize().divideBy(2),a=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=a.subtract(t).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(t,a){return t-(t-a)*this._viscosity},_onPreDragLimit:function(){if(!(!this._viscosity||!this._offsetLimit)){var t=this._draggable._newPos.subtract(this._draggable._startPos),a=this._offsetLimit;t.x<a.min.x&&(t.x=this._viscousLimit(t.x,a.min.x)),t.y<a.min.y&&(t.y=this._viscousLimit(t.y,a.min.y)),t.x>a.max.x&&(t.x=this._viscousLimit(t.x,a.max.x)),t.y>a.max.y&&(t.y=this._viscousLimit(t.y,a.max.y)),this._draggable._newPos=this._draggable._startPos.add(t)}},_onPreDragWrap:function(){var t=this._worldWidth,a=Math.round(t/2),f=this._initialWorldOffset,_=this._draggable._newPos.x,C=(_-a+f)%t+a-f,z=(_+a+f)%t-a-f,Q=Math.abs(C+f)<Math.abs(z+f)?C:z;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=Q},_onDragEnd:function(t){var a=this._map,f=a.options,_=!f.inertia||t.noInertia||this._times.length<2;if(a.fire("dragend",t),_)a.fire("moveend");else{this._prunePositions(+new Date);var C=this._lastPos.subtract(this._positions[0]),z=(this._lastTime-this._times[0])/1e3,Q=f.easeLinearity,ie=C.multiplyBy(Q/z),fe=ie.distanceTo([0,0]),Le=Math.min(f.inertiaMaxSpeed,fe),ct=ie.multiplyBy(Le/fe),Dt=Le/(f.inertiaDeceleration*Q),hn=ct.multiplyBy(-Dt/2).round();!hn.x&&!hn.y?a.fire("moveend"):(hn=a._limitOffset(hn,a.options.maxBounds),Be(function(){a.panBy(hn,{duration:Dt,easeLinearity:Q,noMoveStart:!0,animate:!0})}))}}});Mn.addInitHook("addHandler","dragging",Ld),Mn.mergeOptions({keyboard:!0,keyboardPanDelta:80});var Ad=ki.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(t){this._map=t,this._setPanDelta(t.options.keyboardPanDelta),this._setZoomDelta(t.options.zoomDelta)},addHooks:function(){var t=this._map._container;t.tabIndex<=0&&(t.tabIndex="0"),on(t,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),vo(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(!this._focused){var t=document.body,a=document.documentElement,f=t.scrollTop||a.scrollTop,_=t.scrollLeft||a.scrollLeft;this._map._container.focus(),window.scrollTo(_,f)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(t){var a=this._panKeys={},f=this.keyCodes,_,C;for(_=0,C=f.left.length;_<C;_++)a[f.left[_]]=[-1*t,0];for(_=0,C=f.right.length;_<C;_++)a[f.right[_]]=[t,0];for(_=0,C=f.down.length;_<C;_++)a[f.down[_]]=[0,t];for(_=0,C=f.up.length;_<C;_++)a[f.up[_]]=[0,-1*t]},_setZoomDelta:function(t){var a=this._zoomKeys={},f=this.keyCodes,_,C;for(_=0,C=f.zoomIn.length;_<C;_++)a[f.zoomIn[_]]=t;for(_=0,C=f.zoomOut.length;_<C;_++)a[f.zoomOut[_]]=-t},_addHooks:function(){on(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){vo(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(t){if(!(t.altKey||t.ctrlKey||t.metaKey)){var a=t.keyCode,f=this._map,_;if(a in this._panKeys){if(!f._panAnim||!f._panAnim._inProgress)if(_=this._panKeys[a],t.shiftKey&&(_=He(_).multiplyBy(3)),f.options.maxBounds&&(_=f._limitOffset(He(_),f.options.maxBounds)),f.options.worldCopyJump){var C=f.wrapLatLng(f.unproject(f.project(f.getCenter()).add(_)));f.panTo(C)}else f.panBy(_)}else if(a in this._zoomKeys)f.setZoom(f.getZoom()+(t.shiftKey?3:1)*this._zoomKeys[a]);else if(a===27&&f._popup&&f._popup.options.closeOnEscapeKey)f.closePopup();else return;Ts(t)}}});Mn.addInitHook("addHandler","keyboard",Ad),Mn.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var Zc=ki.extend({addHooks:function(){on(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){vo(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(t){var a=Qs(t),f=this._map.options.wheelDebounceTime;this._delta+=a,this._lastMousePos=this._map.mouseEventToContainerPoint(t),this._startTime||(this._startTime=+new Date);var _=Math.max(f-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(M(this._performZoom,this),_),Ts(t)},_performZoom:function(){var t=this._map,a=t.getZoom(),f=this._map.options.zoomSnap||0;t._stop();var _=this._delta/(this._map.options.wheelPxPerZoomLevel*4),C=4*Math.log(2/(1+Math.exp(-Math.abs(_))))/Math.LN2,z=f?Math.ceil(C/f)*f:C,Q=t._limitZoom(a+(this._delta>0?z:-z))-a;this._delta=0,this._startTime=null,Q&&(t.options.scrollWheelZoom==="center"?t.setZoom(a+Q):t.setZoomAround(this._lastMousePos,a+Q))}});Mn.addInitHook("addHandler","scrollWheelZoom",Zc);var Np=600;Mn.mergeOptions({tapHold:it.touchNative&&it.safari&&it.mobile,tapTolerance:15});var Vc=ki.extend({addHooks:function(){on(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){vo(this._map._container,"touchstart",this._onDown,this)},_onDown:function(t){if(clearTimeout(this._holdTimeout),t.touches.length===1){var a=t.touches[0];this._startPos=this._newPos=new Te(a.clientX,a.clientY),this._holdTimeout=setTimeout(M(function(){this._cancel(),this._isTapValid()&&(on(document,"touchend",Uo),on(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",a))},this),Np),on(document,"touchend touchcancel contextmenu",this._cancel,this),on(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function t(){vo(document,"touchend",Uo),vo(document,"touchend touchcancel",t)},_cancel:function(){clearTimeout(this._holdTimeout),vo(document,"touchend touchcancel contextmenu",this._cancel,this),vo(document,"touchmove",this._onMove,this)},_onMove:function(t){var a=t.touches[0];this._newPos=new Te(a.clientX,a.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(t,a){var f=new MouseEvent(t,{bubbles:!0,cancelable:!0,view:window,screenX:a.screenX,screenY:a.screenY,clientX:a.clientX,clientY:a.clientY});f._simulated=!0,a.target.dispatchEvent(f)}});Mn.addInitHook("addHandler","tapHold",Vc),Mn.mergeOptions({touchZoom:it.touch,bounceAtZoomLimits:!0});var jo=ki.extend({addHooks:function(){jt(this._map._container,"leaflet-touch-zoom"),on(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){io(this._map._container,"leaflet-touch-zoom"),vo(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(t){var a=this._map;if(!(!t.touches||t.touches.length!==2||a._animatingZoom||this._zooming)){var f=a.mouseEventToContainerPoint(t.touches[0]),_=a.mouseEventToContainerPoint(t.touches[1]);this._centerPoint=a.getSize()._divideBy(2),this._startLatLng=a.containerPointToLatLng(this._centerPoint),a.options.touchZoom!=="center"&&(this._pinchStartLatLng=a.containerPointToLatLng(f.add(_)._divideBy(2))),this._startDist=f.distanceTo(_),this._startZoom=a.getZoom(),this._moved=!1,this._zooming=!0,a._stop(),on(document,"touchmove",this._onTouchMove,this),on(document,"touchend touchcancel",this._onTouchEnd,this),Uo(t)}},_onTouchMove:function(t){if(!(!t.touches||t.touches.length!==2||!this._zooming)){var a=this._map,f=a.mouseEventToContainerPoint(t.touches[0]),_=a.mouseEventToContainerPoint(t.touches[1]),C=f.distanceTo(_)/this._startDist;if(this._zoom=a.getScaleZoom(C,this._startZoom),!a.options.bounceAtZoomLimits&&(this._zoom<a.getMinZoom()&&C<1||this._zoom>a.getMaxZoom()&&C>1)&&(this._zoom=a._limitZoom(this._zoom)),a.options.touchZoom==="center"){if(this._center=this._startLatLng,C===1)return}else{var z=f._add(_)._divideBy(2)._subtract(this._centerPoint);if(C===1&&z.x===0&&z.y===0)return;this._center=a.unproject(a.project(this._pinchStartLatLng,this._zoom).subtract(z),this._zoom)}this._moved||(a._moveStart(!0,!1),this._moved=!0),et(this._animRequest);var Q=M(a._move,a,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=Be(Q,this,!0),Uo(t)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,et(this._animRequest),vo(document,"touchmove",this._onTouchMove,this),vo(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))}});Mn.addInitHook("addHandler","touchZoom",jo),Mn.BoxZoom=No,Mn.DoubleClickZoom=Td,Mn.Drag=Ld,Mn.Keyboard=Ad,Mn.ScrollWheelZoom=Zc,Mn.TapHold=Vc,Mn.TouchZoom=jo,h.Bounds=Ot,h.Browser=it,h.CRS=Ye,h.Canvas=jc,h.Circle=Bc,h.CircleMarker=Gr,h.Class=ot,h.Control=qi,h.DivIcon=ds,h.DivOverlay=_r,h.DomEvent=Tc,h.DomUtil=Wr,h.Draggable=ls,h.Evented=gt,h.FeatureGroup=Mr,h.GeoJSON=Qr,h.GridLayer=Pa,h.Handler=ki,h.Icon=vr,h.ImageOverlay=Sa,h.LatLng=Ct,h.LatLngBounds=dn,h.Layer=sr,h.LayerGroup=Ir,h.LineUtil=wd,h.Map=Mn,h.Marker=qr,h.Mixin=kp,h.Path=Ni,h.Point=Te,h.PolyUtil=Ip,h.Polygon=Ur,h.Polyline=Mi,h.Popup=xl,h.PosAnimation=$t,h.Projection=fl,h.Rectangle=Qn,h.Renderer=Jr,h.SVG=ka,h.SVGOverlay=Pd,h.TileLayer=ea,h.Tooltip=Ea,h.Transformation=Dn,h.Util=lt,h.VideoOverlay=Xs,h.bind=M,h.bounds=Lt,h.canvas=wl,h.circle=yr,h.circleMarker=Lp,h.control=ya,h.divIcon=Id,h.extend=y,h.featureGroup=pl,h.geoJSON=$c,h.geoJson=Ap,h.gridLayer=zp,h.icon=Cd,h.imageOverlay=Sd,h.latLng=bt,h.latLngBounds=Je,h.layerGroup=Tp,h.map=Cp,h.marker=ml,h.point=He,h.polygon=xa,h.polyline=gl,h.popup=Rp,h.rectangle=oa,h.setOptions=re,h.stamp=H,h.svg=Md,h.svgOverlay=Op,h.tileLayer=Dc,h.tooltip=kd,h.transformation=ho,h.version=d,h.videoOverlay=Ed;var Od=window.L;h.noConflict=function(){return window.L=Od,this},window.L=h})})(Wh,Wh.exports);var Kw=Wh.exports;const Yg=Ug(Kw),eR="",tR="",Yw="data:image/png;base64,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",Xw="data:image/png;base64,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",eC="data:image/png;base64,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";var qh={exports:{}};(function(s,u){(function(h,d){d(u,ce,ji)})(ku,function(h,d,y){var k=Object.defineProperty,M=(e,o,i)=>o in e?k(e,o,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[o]=i,T=(e,o,i)=>(M(e,typeof o!="symbol"?o+"":o,i),i),H=document.createElement("style");H.textContent=`.leaflet-pane,.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-tile-container,.leaflet-pane>svg,.leaflet-pane>canvas,.leaflet-zoom-box,.leaflet-image-layer,.leaflet-layer{position:absolute;left:0;top:0}.leaflet-container{overflow:hidden}.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow{-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-user-drag:none}.leaflet-tile::selection{background:transparent}.leaflet-safari .leaflet-tile{image-rendering:-webkit-optimize-contrast}.leaflet-safari .leaflet-tile-container{width:1600px;height:1600px;-webkit-transform-origin:0 0}.leaflet-marker-icon,.leaflet-marker-shadow{display:block}.leaflet-container .leaflet-overlay-pane svg{max-width:none!important;max-height:none!important}.leaflet-container .leaflet-marker-pane img,.leaflet-container .leaflet-shadow-pane img,.leaflet-container .leaflet-tile-pane img,.leaflet-container img.leaflet-image-layer,.leaflet-container .leaflet-tile{max-width:none!important;max-height:none!important;width:auto;padding:0}.leaflet-container img.leaflet-tile{mix-blend-mode:plus-lighter}.leaflet-container.leaflet-touch-zoom{-ms-touch-action:pan-x pan-y;touch-action:pan-x pan-y}.leaflet-container.leaflet-touch-drag{-ms-touch-action:pinch-zoom;touch-action:none;touch-action:pinch-zoom}.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom{-ms-touch-action:none;touch-action:none}.leaflet-container{-webkit-tap-highlight-color:transparent}.leaflet-container a{-webkit-tap-highlight-color:rgba(51,181,229,.4)}.leaflet-tile{filter:inherit;visibility:hidden}.leaflet-tile-loaded{visibility:inherit}.leaflet-zoom-box{width:0;height:0;-moz-box-sizing:border-box;box-sizing:border-box;z-index:800}.leaflet-overlay-pane svg{-moz-user-select:none}.leaflet-pane{z-index:400}.leaflet-tile-pane{z-index:200}.leaflet-overlay-pane{z-index:400}.leaflet-shadow-pane{z-index:500}.leaflet-marker-pane{z-index:600}.leaflet-tooltip-pane{z-index:650}.leaflet-popup-pane{z-index:700}.leaflet-map-pane canvas{z-index:100}.leaflet-map-pane svg{z-index:200}.leaflet-vml-shape{width:1px;height:1px}.lvml{behavior:url(#default#VML);display:inline-block;position:absolute}.leaflet-control{position:relative;z-index:800;pointer-events:visiblePainted;pointer-events:auto}.leaflet-top,.leaflet-bottom{position:absolute;z-index:1000;pointer-events:none}.leaflet-top{top:0}.leaflet-right{right:0}.leaflet-bottom{bottom:0}.leaflet-left{left:0}.leaflet-control{float:left;clear:both}.leaflet-right .leaflet-control{float:right}.leaflet-top .leaflet-control{margin-top:10px}.leaflet-bottom .leaflet-control{margin-bottom:10px}.leaflet-left .leaflet-control{margin-left:10px}.leaflet-right .leaflet-control{margin-right:10px}.leaflet-fade-anim .leaflet-popup{opacity:0;-webkit-transition:opacity .2s linear;-moz-transition:opacity .2s linear;transition:opacity .2s linear}.leaflet-fade-anim .leaflet-map-pane .leaflet-popup{opacity:1}.leaflet-zoom-animated{-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0}svg.leaflet-zoom-animated{will-change:transform}.leaflet-zoom-anim .leaflet-zoom-animated{-webkit-transition:-webkit-transform .25s cubic-bezier(0,0,.25,1);-moz-transition:-moz-transform .25s cubic-bezier(0,0,.25,1);transition:transform .25s cubic-bezier(0,0,.25,1)}.leaflet-zoom-anim .leaflet-tile,.leaflet-pan-anim .leaflet-tile{-webkit-transition:none;-moz-transition:none;transition:none}.leaflet-zoom-anim .leaflet-zoom-hide{visibility:hidden}.leaflet-interactive{cursor:pointer}.leaflet-grab{cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.leaflet-crosshair,.leaflet-crosshair .leaflet-interactive{cursor:crosshair}.leaflet-popup-pane,.leaflet-control{cursor:auto}.leaflet-dragging .leaflet-grab,.leaflet-dragging .leaflet-grab .leaflet-interactive,.leaflet-dragging .leaflet-marker-draggable{cursor:move;cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-image-layer,.leaflet-pane>svg path,.leaflet-tile-container{pointer-events:none}.leaflet-marker-icon.leaflet-interactive,.leaflet-image-layer.leaflet-interactive,.leaflet-pane>svg path.leaflet-interactive,svg.leaflet-image-layer.leaflet-interactive path{pointer-events:visiblePainted;pointer-events:auto}.leaflet-container{background:#ddd;outline-offset:1px}.leaflet-container a{color:#0078a8}.leaflet-zoom-box{border:2px dotted #38f;background:rgba(255,255,255,.5)}.leaflet-container{font-family:Helvetica Neue,Arial,Helvetica,sans-serif;font-size:12px;font-size:.75rem;line-height:1.5}.leaflet-bar{box-shadow:0 1px 5px #000000a6;border-radius:4px}.leaflet-bar a{background-color:#fff;border-bottom:1px solid #ccc;width:26px;height:26px;line-height:26px;display:block;text-align:center;text-decoration:none;color:#000}.leaflet-bar a,.leaflet-control-layers-toggle{background-position:50% 50%;background-repeat:no-repeat;display:block}.leaflet-bar a:hover,.leaflet-bar a:focus{background-color:#f4f4f4}.leaflet-bar a:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.leaflet-bar a:last-child{border-bottom-left-radius:4px;border-bottom-right-radius:4px;border-bottom:none}.leaflet-bar a.leaflet-disabled{cursor:default;background-color:#f4f4f4;color:#bbb}.leaflet-touch .leaflet-bar a{width:30px;height:30px;line-height:30px}.leaflet-touch .leaflet-bar a:first-child{border-top-left-radius:2px;border-top-right-radius:2px}.leaflet-touch .leaflet-bar a:last-child{border-bottom-left-radius:2px;border-bottom-right-radius:2px}.leaflet-control-zoom-in,.leaflet-control-zoom-out{font:700 18px Lucida Console,Monaco,monospace;text-indent:1px}.leaflet-touch .leaflet-control-zoom-in,.leaflet-touch .leaflet-control-zoom-out{font-size:22px}.leaflet-control-layers{box-shadow:0 1px 5px #0006;background:#fff;border-radius:5px}.leaflet-control-layers-toggle{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAQAAAADQ4RFAAACf0lEQVR4AY1UM3gkARTePdvdoTxXKc+qTl3aU5U6b2Kbkz3Gtq3Zw6ziLGNPzrYx7946Tr6/ee/XeCQ4D3ykPtL5tHno4n0d/h3+xfuWHGLX81cn7r0iTNzjr7LrlxCqPtkbTQEHeqOrTy4Yyt3VCi/IOB0v7rVC7q45Q3Gr5K6jt+3Gl5nCoDD4MtO+j96Wu8atmhGqcNGHObuf8OM/x3AMx38+4Z2sPqzCxRFK2aF2e5Jol56XTLyggAMTL56XOMoS1W4pOyjUcGGQdZxU6qRh7B9Zp+PfpOFlqt0zyDZckPi1ttmIp03jX8gyJ8a/PG2yutpS/Vol7peZIbZcKBAEEheEIAgFbDkz5H6Zrkm2hVWGiXKiF4Ycw0RWKdtC16Q7qe3X4iOMxruonzegJzWaXFrU9utOSsLUmrc0YjeWYjCW4PDMADElpJSSQ0vQvA1Tm6/JlKnqFs1EGyZiFCqnRZTEJJJiKRYzVYzJck2Rm6P4iH+cmSY0YzimYa8l0EtTODFWhcMIMVqdsI2uiTvKmTisIDHJ3od5GILVhBCarCfVRmo4uTjkhrhzkiBV7SsaqS+TzrzM1qpGGUFt28pIySQHR6h7F6KSwGWm97ay+Z+ZqMcEjEWebE7wxCSQwpkhJqoZA5ivCdZDjJepuJ9IQjGGUmuXJdBFUygxVqVsxFsLMbDe8ZbDYVCGKxs+W080max1hFCarCfV+C1KATwcnvE9gRRuMP2prdbWGowm1KB1y+zwMMENkM755cJ2yPDtqhTI6ED1M/82yIDtC/4j4BijjeObflpO9I9MwXTCsSX8jWAFeHr05WoLTJ5G8IQVS/7vwR6ohirYM7f6HzYpogfS3R2OAAAAAElFTkSuQmCC);width:36px;height:36px}.leaflet-retina .leaflet-control-layers-toggle{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAQAAABvcdNgAAAEsklEQVR4AWL4TydIhpZK1kpWOlg0w3ZXP6D2soBtG42jeI6ZmQTHzAxiTbSJsYLjO9HhP+WOmcuhciVnmHVQcJnp7DFvScowZorad/+V/fVzMdMT2g9Cv9guXGv/7pYOrXh2U+RRR3dSd9JRx6bIFc/ekqHI29JC6pJ5ZEh1yWkhkbcFeSjxgx3L2m1cb1C7bceyxA+CNjT/Ifff+/kDk2u/w/33/IeCMOSaWZ4glosqT3DNnNZQ7Cs58/3Ce5HL78iZH/vKVIaYlqzfdLu8Vi7dnvUbEza5Idt36tquZFldl6N5Z/POLof0XLK61mZCmJSWjVF9tEjUluu74IUXvgttuVIHE7YxSkaYhJZam7yiM9Pv82JYfl9nptxZaxMJE4YSPty+vF0+Y2up9d3wwijfjZbabqm/3bZ9ecKHsiGmRflnn1MW4pjHf9oLufyn2z3y1D6n8g8TZhxyzipLNPnAUpsOiuWimg52psrTZYnOWYNDTMuWBWa0tJb4rgq1UvmutpaYEbZlwU3CLJm/ayYjHW5/h7xWLn9Hh1vepDkyf7dE7MtT5LR4e7yYpHrkhOUpEfssBLq2pPhAqoSWKUkk7EDqkmK6RrCEzqDjhNDWNE+XSMvkJRDWlZTmCW0l0PHQGRZY5t1L83kT0Y3l2SItk5JAWHl2dCOBm+fPu3fo5/3v61RMCO9Jx2EEYYhb0rmNQMX/vm7gqOEJLcXTGw3CAuRNeyaPWwjR8PRqKQ1PDA/dpv+on9Shox52WFnx0KY8onHayrJzm87i5h9xGw/tfkev0jGsQizqezUKjk12hBMKJ4kbCqGPVNXudyyrShovGw5CgxsRICxF6aRmSjlBnHRzg7Gx8fKqEubI2rahQYdR1YgDIRQO7JvQyD52hoIQx0mxa0ODtW2Iozn1le2iIRdzwWewedyZzewidueOGqlsn1MvcnQpuVwLGG3/IR1hIKxCjelIDZ8ldqWz25jWAsnldEnK0Zxro19TGVb2ffIZEsIO89EIEDvKMPrzmBOQcKQ+rroye6NgRRxqR4U8EAkz0CL6uSGOm6KQCdWjvjRiSP1BPalCRS5iQYiEIvxuBMJEWgzSoHADcVMuN7IuqqTeyUPq22qFimFtxDyBBJEwNyt6TM88blFHao/6tWWhuuOM4SAK4EI4QmFHA+SEyWlp4EQoJ13cYGzMu7yszEIBOm2rVmHUNqwAIQabISNMRstmdhNWcFLsSm+0tjJH1MdRxO5Nx0WDMhCtgD6OKgZeljJqJKc9po8juskR9XN0Y1lZ3mWjLR9JCO1jRDMd0fpYC2VnvjBSEFg7wBENc0R9HFlb0xvF1+TBEpF68d+DHR6IOWVv2BECtxo46hOFUBd/APU57WIoEwJhIi2CdpyZX0m93BZicktMj1AS9dClteUFAUNUIEygRZCtik5zSxI9MubTBH1GOiHsiLJ3OCoSZkILa9PxiN0EbvhsAo8tdAf9Seepd36lGWHmtNANTv5Jd0z4QYyeo/UEJqxKRpg5LZx6btLPsOaEmdMyxYdlc8LMaJnikDlhclqmPiQnTEpLUIZEwkRagjYkEibQErwhkTAKCLQEbUgkzJQWc/0PstHHcfEdQ+UAAAAASUVORK5CYII=);background-size:26px 26px}.leaflet-touch .leaflet-control-layers-toggle{width:44px;height:44px}.leaflet-control-layers .leaflet-control-layers-list,.leaflet-control-layers-expanded .leaflet-control-layers-toggle{display:none}.leaflet-control-layers-expanded .leaflet-control-layers-list{display:block;position:relative}.leaflet-control-layers-expanded{padding:6px 10px 6px 6px;color:#333;background:#fff}.leaflet-control-layers-scrollbar{overflow-y:scroll;overflow-x:hidden;padding-right:5px}.leaflet-control-layers-selector{margin-top:2px;position:relative;top:1px}.leaflet-control-layers label{display:block;font-size:13px;font-size:1.08333em}.leaflet-control-layers-separator{height:0;border-top:1px solid #ddd;margin:5px -10px 5px -6px}.leaflet-default-icon-path{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAApCAYAAADAk4LOAAAFgUlEQVR4Aa1XA5BjWRTN2oW17d3YaZtr2962HUzbDNpjszW24mRt28p47v7zq/bXZtrp/lWnXr337j3nPCe85NcypgSFdugCpW5YoDAMRaIMqRi6aKq5E3YqDQO3qAwjVWrD8Ncq/RBpykd8oZUb/kaJutow8r1aP9II0WmLKLIsJyv1w/kqw9Ch2MYdB++12Onxee/QMwvf4/Dk/Lfp/i4nxTXtOoQ4pW5Aj7wpici1A9erdAN2OH64x8OSP9j3Ft3b7aWkTg/Fm91siTra0f9on5sQr9INejH6CUUUpavjFNq1B+Oadhxmnfa8RfEmN8VNAsQhPqF55xHkMzz3jSmChWU6f7/XZKNH+9+hBLOHYozuKQPxyMPUKkrX/K0uWnfFaJGS1QPRtZsOPtr3NsW0uyh6NNCOkU3Yz+bXbT3I8G3xE5EXLXtCXbbqwCO9zPQYPRTZ5vIDXD7U+w7rFDEoUUf7ibHIR4y6bLVPXrz8JVZEql13trxwue/uDivd3fkWRbS6/IA2bID4uk0UpF1N8qLlbBlXs4Ee7HLTfV1j54APvODnSfOWBqtKVvjgLKzF5YdEk5ewRkGlK0i33Eofffc7HT56jD7/6U+qH3Cx7SBLNntH5YIPvODnyfIXZYRVDPqgHtLs5ABHD3YzLuespb7t79FY34DjMwrVrcTuwlT55YMPvOBnRrJ4VXTdNnYug5ucHLBjEpt30701A3Ts+HEa73u6dT3FNWwflY86eMHPk+Yu+i6pzUpRrW7SNDg5JHR4KapmM5Wv2E8Tfcb1HoqqHMHU+uWDD7zg54mz5/2BSnizi9T1Dg4QQXLToGNCkb6tb1NU+QAlGr1++eADrzhn/u8Q2YZhQVlZ5+CAOtqfbhmaUCS1ezNFVm2imDbPmPng5wmz+gwh+oHDce0eUtQ6OGDIyR0uUhUsoO3vfDmmgOezH0mZN59x7MBi++WDL1g/eEiU3avlidO671bkLfwbw5XV2P8Pzo0ydy4t2/0eu33xYSOMOD8hTf4CrBtGMSoXfPLchX+J0ruSePw3LZeK0juPJbYzrhkH0io7B3k164hiGvawhOKMLkrQLyVpZg8rHFW7E2uHOL888IBPlNZ1FPzstSJM694fWr6RwpvcJK60+0HCILTBzZLFNdtAzJaohze60T8qBzyh5ZuOg5e7uwQppofEmf2++DYvmySqGBuKaicF1blQjhuHdvCIMvp8whTTfZzI7RldpwtSzL+F1+wkdZ2TBOW2gIF88PBTzD/gpeREAMEbxnJcaJHNHrpzji0gQCS6hdkEeYt9DF/2qPcEC8RM28Hwmr3sdNyht00byAut2k3gufWNtgtOEOFGUwcXWNDbdNbpgBGxEvKkOQsxivJx33iow0Vw5S6SVTrpVq11ysA2Rp7gTfPfktc6zhtXBBC+adRLshf6sG2RfHPZ5EAc4sVZ83yCN00Fk/4kggu40ZTvIEm5g24qtU4KjBrx/BTTH8ifVASAG7gKrnWxJDcU7x8X6Ecczhm3o6YicvsLXWfh3Ch1W0k8x0nXF+0fFxgt4phz8QvypiwCCFKMqXCnqXExjq10beH+UUA7+nG6mdG/Pu0f3LgFcGrl2s0kNNjpmoJ9o4B29CMO8dMT4Q5ox8uitF6fqsrJOr8qnwNbRzv6hSnG5wP+64C7h9lp30hKNtKdWjtdkbuPA19nJ7Tz3zR/ibgARbhb4AlhavcBebmTHcFl2fvYEnW0ox9xMxKBS8btJ+KiEbq9zA4RthQXDhPa0T9TEe69gWupwc6uBUphquXgf+/FrIjweHQS4/pduMe5ERUMHUd9xv8ZR98CxkS4F2n3EUrUZ10EYNw7BWm9x1GiPssi3GgiGRDKWRYZfXlON+dfNbM+GgIwYdwAAAAASUVORK5CYII=)}.leaflet-container .leaflet-control-attribution{background:#fff;background:rgba(255,255,255,.8);margin:0}.leaflet-control-attribution,.leaflet-control-scale-line{padding:0 5px;color:#333;line-height:1.4}.leaflet-control-attribution a{text-decoration:none}.leaflet-control-attribution a:hover,.leaflet-control-attribution a:focus{text-decoration:underline}.leaflet-attribution-flag{display:inline!important;vertical-align:baseline!important;width:1em;height:.6669em}.leaflet-left .leaflet-control-scale{margin-left:5px}.leaflet-bottom .leaflet-control-scale{margin-bottom:5px}.leaflet-control-scale-line{border:2px solid #777;border-top:none;line-height:1.1;padding:2px 5px 1px;white-space:nowrap;-moz-box-sizing:border-box;box-sizing:border-box;background:rgba(255,255,255,.8);text-shadow:1px 1px #fff}.leaflet-control-scale-line:not(:first-child){border-top:2px solid #777;border-bottom:none;margin-top:-2px}.leaflet-control-scale-line:not(:first-child):not(:last-child){border-bottom:2px solid #777}.leaflet-touch .leaflet-control-attribution,.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{box-shadow:none}.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{border:2px solid rgba(0,0,0,.2);background-clip:padding-box}.leaflet-popup{position:absolute;text-align:center;margin-bottom:20px}.leaflet-popup-content-wrapper{padding:1px;text-align:left;border-radius:12px}.leaflet-popup-content{margin:13px 24px 13px 20px;line-height:1.3;font-size:13px;font-size:1.08333em;min-height:1px}.leaflet-popup-content p{margin:1.3em 0}.leaflet-popup-tip-container{width:40px;height:20px;position:absolute;left:50%;margin-top:-1px;margin-left:-20px;overflow:hidden;pointer-events:none}.leaflet-popup-tip{width:17px;height:17px;padding:1px;margin:-10px auto 0;pointer-events:auto;-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.leaflet-popup-content-wrapper,.leaflet-popup-tip{background:white;color:#333;box-shadow:0 3px 14px #0006}.leaflet-container a.leaflet-popup-close-button{position:absolute;top:0;right:0;border:none;text-align:center;width:24px;height:24px;font:16px/24px Tahoma,Verdana,sans-serif;color:#757575;text-decoration:none;background:transparent}.leaflet-container a.leaflet-popup-close-button:hover,.leaflet-container a.leaflet-popup-close-button:focus{color:#585858}.leaflet-popup-scrolled{overflow:auto}.leaflet-oldie .leaflet-popup-content-wrapper{-ms-zoom:1}.leaflet-oldie .leaflet-popup-tip{width:24px;margin:0 auto;-ms-filter:"progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";filter:progid:DXImageTransform.Microsoft.Matrix(M11=.70710678,M12=.70710678,M21=-.70710678,M22=.70710678)}.leaflet-oldie .leaflet-control-zoom,.leaflet-oldie .leaflet-control-layers,.leaflet-oldie .leaflet-popup-content-wrapper,.leaflet-oldie .leaflet-popup-tip{border:1px solid #999}.leaflet-div-icon{background:#fff;border:1px solid #666}.leaflet-tooltip{position:absolute;padding:6px;background-color:#fff;border:1px solid #fff;border-radius:3px;color:#222;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none;box-shadow:0 1px 3px #0006}.leaflet-tooltip.leaflet-interactive{cursor:pointer;pointer-events:auto}.leaflet-tooltip-top:before,.leaflet-tooltip-bottom:before,.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{position:absolute;pointer-events:none;border:6px solid transparent;background:transparent;content:""}.leaflet-tooltip-bottom{margin-top:6px}.leaflet-tooltip-top{margin-top:-6px}.leaflet-tooltip-bottom:before,.leaflet-tooltip-top:before{left:50%;margin-left:-6px}.leaflet-tooltip-top:before{bottom:0;margin-bottom:-12px;border-top-color:#fff}.leaflet-tooltip-bottom:before{top:0;margin-top:-12px;margin-left:-6px;border-bottom-color:#fff}.leaflet-tooltip-left{margin-left:-6px}.leaflet-tooltip-right{margin-left:6px}.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{top:50%;margin-top:-6px}.leaflet-tooltip-left:before{right:0;margin-right:-12px;border-left-color:#fff}.leaflet-tooltip-right:before{left:0;margin-left:-12px;border-right-color:#fff}@media print{.leaflet-control{-webkit-print-color-adjust:exact;print-color-adjust:exact}}.leaflet-sbs-range{position:absolute;top:50%;width:100%;z-index:999}.leaflet-sbs-divider{position:absolute;top:0;bottom:0;left:50%;margin-left:-2px;width:4px;background-color:#fff;pointer-events:none;z-index:999}.leaflet-sbs-range{-webkit-appearance:none;display:inline-block!important;vertical-align:middle;height:0;padding:0;margin:0;border:0;background:rgba(0,0,0,.25);min-width:100px;cursor:pointer;pointer-events:none;z-index:999}.leaflet-sbs-range::-ms-fill-upper{background:transparent}.leaflet-sbs-range::-ms-fill-lower{background:rgba(255,255,255,.25)}.leaflet-sbs-range::-moz-range-track{opacity:0}.leaflet-sbs-range::-ms-track{opacity:0}.leaflet-sbs-range::-ms-tooltip{display:none}.leaflet-sbs-range::-webkit-slider-thumb{-webkit-appearance:none;margin:0;padding:0;background:#fff;height:40px;width:40px;border-radius:20px;cursor:ew-resize;pointer-events:auto;border:1px solid #ddd;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAMAAAC5zwKfAAAABlBMVEV9fX3///+Kct39AAAAAnRSTlP/AOW3MEoAAAA9SURBVFjD7dehDQAwDANBZ/+l2wmKoiqR7pHRcaeaCxAIBAL/g7k9JxAIBAKBQCAQCAQC14H+MhAIBE4CD3fOFvGVBzhZAAAAAElFTkSuQmCC);background-position:50% 50%;background-repeat:no-repeat;background-size:40px 40px}.leaflet-sbs-range::-ms-thumb{margin:0;padding:0;background:#fff;height:40px;width:40px;border-radius:20px;cursor:ew-resize;pointer-events:auto;border:1px solid #ddd;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAMAAAC5zwKfAAAABlBMVEV9fX3///+Kct39AAAAAnRSTlP/AOW3MEoAAAA9SURBVFjD7dehDQAwDANBZ/+l2wmKoiqR7pHRcaeaCxAIBAL/g7k9JxAIBAKBQCAQCAQC14H+MhAIBE4CD3fOFvGVBzhZAAAAAElFTkSuQmCC);background-position:50% 50%;background-repeat:no-repeat;background-size:40px 40px}.leaflet-sbs-range::-moz-range-thumb{padding:0;right:0;background:#fff;height:40px;width:40px;border-radius:20px;cursor:ew-resize;pointer-events:auto;border:1px solid #ddd;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAMAAAC5zwKfAAAABlBMVEV9fX3///+Kct39AAAAAnRSTlP/AOW3MEoAAAA9SURBVFjD7dehDQAwDANBZ/+l2wmKoiqR7pHRcaeaCxAIBAL/g7k9JxAIBAKBQCAQCAQC14H+MhAIBE4CD3fOFvGVBzhZAAAAAElFTkSuQmCC);background-position:50% 50%;background-repeat:no-repeat;background-size:40px 40px}.leaflet-sbs-range:disabled::-moz-range-thumb{cursor:default}.leaflet-sbs-range:disabled::-ms-thumb{cursor:default}.leaflet-sbs-range:disabled::-webkit-slider-thumb{cursor:default}.leaflet-sbs-range:disabled{cursor:default}.leaflet-sbs-range:focus{outline:none!important}.leaflet-sbs-range::-moz-focus-outer{border:0}.switch-map-mode{width:30px;height:30px;background-color:#fff;border-radius:2px;text-align:center;font-size:20px;display:flex;align-items:center;justify-content:center}.switch-map-mode .map-icon{width:25px;height:25px}.select-base-map-button{width:30px;height:30px;background-color:#fff;border-radius:2px;text-align:center;font-size:20px;cursor:pointer;display:flex;align-items:center;justify-content:center}
|
|
37
|
+
`,document.head.appendChild(H);function Z(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const i in e)if(i!=="default"){const r=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(o,i,r.get?r:{enumerable:!0,get:()=>e[i]})}}return o.default=e,Object.freeze(o)}const v=Z(d);var V=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof ku<"u"?ku:typeof self<"u"?self:{};function K(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var pe={exports:{}},de={};/**
|
|
38
|
+
* @license React
|
|
39
|
+
* react-jsx-runtime.production.min.js
|
|
40
|
+
*
|
|
41
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
42
|
+
*
|
|
43
|
+
* This source code is licensed under the MIT license found in the
|
|
44
|
+
* LICENSE file in the root directory of this source tree.
|
|
45
|
+
*/var re;function ne(){if(re)return de;re=1;var e=d,o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,c=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,m={key:!0,ref:!0,__self:!0,__source:!0};function g(x,w,P){var E,I={},O=null,$=null;P!==void 0&&(O=""+P),w.key!==void 0&&(O=""+w.key),w.ref!==void 0&&($=w.ref);for(E in w)r.call(w,E)&&!m.hasOwnProperty(E)&&(I[E]=w[E]);if(x&&x.defaultProps)for(E in w=x.defaultProps,w)I[E]===void 0&&(I[E]=w[E]);return{$$typeof:o,type:x,key:O,ref:$,props:I,_owner:c.current}}return de.Fragment=i,de.jsx=g,de.jsxs=g,de}var ue={};/**
|
|
46
|
+
* @license React
|
|
47
|
+
* react-jsx-runtime.development.js
|
|
48
|
+
*
|
|
49
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
50
|
+
*
|
|
51
|
+
* This source code is licensed under the MIT license found in the
|
|
52
|
+
* LICENSE file in the root directory of this source tree.
|
|
53
|
+
*/var ge;function ve(){return ge||(ge=1,process.env.NODE_ENV!=="production"&&function(){var e=d,o=Symbol.for("react.element"),i=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),m=Symbol.for("react.profiler"),g=Symbol.for("react.provider"),x=Symbol.for("react.context"),w=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),E=Symbol.for("react.suspense_list"),I=Symbol.for("react.memo"),O=Symbol.for("react.lazy"),$=Symbol.for("react.offscreen"),R=Symbol.iterator,A="@@iterator";function N(q){if(q===null||typeof q!="object")return null;var Ee=R&&q[R]||q[A];return typeof Ee=="function"?Ee:null}var F=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function D(q){{for(var Ee=arguments.length,Ze=new Array(Ee>1?Ee-1:0),nt=1;nt<Ee;nt++)Ze[nt-1]=arguments[nt];W("error",q,Ze)}}function W(q,Ee,Ze){{var nt=F.ReactDebugCurrentFrame,qe=nt.getStackAddendum();qe!==""&&(Ee+="%s",Ze=Ze.concat([qe]));var Mt=Ze.map(function(Qe){return String(Qe)});Mt.unshift("Warning: "+Ee),Function.prototype.apply.call(console[q],console,Mt)}}var U=!1,j=!1,ee=!1,te=!1,Y=!1,ae;ae=Symbol.for("react.module.reference");function he(q){return!!(typeof q=="string"||typeof q=="function"||q===r||q===m||Y||q===c||q===P||q===E||te||q===$||U||j||ee||typeof q=="object"&&q!==null&&(q.$$typeof===O||q.$$typeof===I||q.$$typeof===g||q.$$typeof===x||q.$$typeof===w||q.$$typeof===ae||q.getModuleId!==void 0))}function oe(q,Ee,Ze){var nt=q.displayName;if(nt)return nt;var qe=Ee.displayName||Ee.name||"";return qe!==""?Ze+"("+qe+")":Ze}function be(q){return q.displayName||"Context"}function ye(q){if(q==null)return null;if(typeof q.tag=="number"&&D("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof q=="function")return q.displayName||q.name||null;if(typeof q=="string")return q;switch(q){case r:return"Fragment";case i:return"Portal";case m:return"Profiler";case c:return"StrictMode";case P:return"Suspense";case E:return"SuspenseList"}if(typeof q=="object")switch(q.$$typeof){case x:var Ee=q;return be(Ee)+".Consumer";case g:var Ze=q;return be(Ze._context)+".Provider";case w:return oe(q,q.render,"ForwardRef");case I:var nt=q.displayName||null;return nt!==null?nt:ye(q.type)||"Memo";case O:{var qe=q,Mt=qe._payload,Qe=qe._init;try{return ye(Qe(Mt))}catch{return null}}}return null}var Me=Object.assign,le=0,we,Fe,_e,st,ke,Ne,rt;function We(){}We.__reactDisabledLog=!0;function Ge(){{if(le===0){we=console.log,Fe=console.info,_e=console.warn,st=console.error,ke=console.group,Ne=console.groupCollapsed,rt=console.groupEnd;var q={configurable:!0,enumerable:!0,value:We,writable:!0};Object.defineProperties(console,{info:q,log:q,warn:q,error:q,group:q,groupCollapsed:q,groupEnd:q})}le++}}function ze(){{if(le--,le===0){var q={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Me({},q,{value:we}),info:Me({},q,{value:Fe}),warn:Me({},q,{value:_e}),error:Me({},q,{value:st}),group:Me({},q,{value:ke}),groupCollapsed:Me({},q,{value:Ne}),groupEnd:Me({},q,{value:rt})})}le<0&&D("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Se=F.ReactCurrentDispatcher,je;function tt(q,Ee,Ze){{if(je===void 0)try{throw Error()}catch(qe){var nt=qe.stack.trim().match(/\n( *(at )?)/);je=nt&&nt[1]||""}return`
|
|
54
|
+
`+je+q}}var ut=!1,At;{var St=typeof WeakMap=="function"?WeakMap:Map;At=new St}function Ft(q,Ee){if(!q||ut)return"";{var Ze=At.get(q);if(Ze!==void 0)return Ze}var nt;ut=!0;var qe=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Mt;Mt=Se.current,Se.current=null,Ge();try{if(Ee){var Qe=function(){throw Error()};if(Object.defineProperty(Qe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Qe,[])}catch(co){nt=co}Reflect.construct(q,[],Qe)}else{try{Qe.call()}catch(co){nt=co}q.call(Qe.prototype)}}else{try{throw Error()}catch(co){nt=co}q()}}catch(co){if(co&&nt&&typeof co.stack=="string"){for(var _t=co.stack.split(`
|
|
55
|
+
`),Sn=nt.stack.split(`
|
|
56
|
+
`),fn=_t.length-1,$n=Sn.length-1;fn>=1&&$n>=0&&_t[fn]!==Sn[$n];)$n--;for(;fn>=1&&$n>=0;fn--,$n--)if(_t[fn]!==Sn[$n]){if(fn!==1||$n!==1)do if(fn--,$n--,$n<0||_t[fn]!==Sn[$n]){var Ao=`
|
|
57
|
+
`+_t[fn].replace(" at new "," at ");return q.displayName&&Ao.includes("<anonymous>")&&(Ao=Ao.replace("<anonymous>",q.displayName)),typeof q=="function"&&At.set(q,Ao),Ao}while(fn>=1&&$n>=0);break}}}finally{ut=!1,Se.current=Mt,ze(),Error.prepareStackTrace=qe}var Oo=q?q.displayName||q.name:"",Xo=Oo?tt(Oo):"";return typeof q=="function"&&At.set(q,Xo),Xo}function It(q,Ee,Ze){return Ft(q,!1)}function Ve(q){var Ee=q.prototype;return!!(Ee&&Ee.isReactComponent)}function qt(q,Ee,Ze){if(q==null)return"";if(typeof q=="function")return Ft(q,Ve(q));if(typeof q=="string")return tt(q);switch(q){case P:return tt("Suspense");case E:return tt("SuspenseList")}if(typeof q=="object")switch(q.$$typeof){case w:return It(q.render);case I:return qt(q.type,Ee,Ze);case O:{var nt=q,qe=nt._payload,Mt=nt._init;try{return qt(Mt(qe),Ee,Ze)}catch{}}}return""}var ht=Object.prototype.hasOwnProperty,Kt={},bn=F.ReactDebugCurrentFrame;function ln(q){if(q){var Ee=q._owner,Ze=qt(q.type,q._source,Ee?Ee.type:null);bn.setExtraStackFrame(Ze)}else bn.setExtraStackFrame(null)}function Tn(q,Ee,Ze,nt,qe){{var Mt=Function.call.bind(ht);for(var Qe in q)if(Mt(q,Qe)){var _t=void 0;try{if(typeof q[Qe]!="function"){var Sn=Error((nt||"React class")+": "+Ze+" type `"+Qe+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof q[Qe]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Sn.name="Invariant Violation",Sn}_t=q[Qe](Ee,Qe,nt,Ze,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(fn){_t=fn}_t&&!(_t instanceof Error)&&(ln(qe),D("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",nt||"React class",Ze,Qe,typeof _t),ln(null)),_t instanceof Error&&!(_t.message in Kt)&&(Kt[_t.message]=!0,ln(qe),D("Failed %s type: %s",Ze,_t.message),ln(null))}}}var Xt=Array.isArray;function xn(q){return Xt(q)}function Yn(q){{var Ee=typeof Symbol=="function"&&Symbol.toStringTag,Ze=Ee&&q[Symbol.toStringTag]||q.constructor.name||"Object";return Ze}}function Qt(q){try{return sn(q),!1}catch{return!0}}function sn(q){return""+q}function Lo(q){if(Qt(q))return D("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Yn(q)),sn(q)}var wo=F.ReactCurrentOwner,lo={key:!0,ref:!0,__self:!0,__source:!0},Co,en,at;at={};function ft(q){if(ht.call(q,"ref")){var Ee=Object.getOwnPropertyDescriptor(q,"ref").get;if(Ee&&Ee.isReactWarning)return!1}return q.ref!==void 0}function Nn(q){if(ht.call(q,"key")){var Ee=Object.getOwnPropertyDescriptor(q,"key").get;if(Ee&&Ee.isReactWarning)return!1}return q.key!==void 0}function Ln(q,Ee){if(typeof q.ref=="string"&&wo.current&&Ee&&wo.current.stateNode!==Ee){var Ze=ye(wo.current.type);at[Ze]||(D('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',ye(wo.current.type),q.ref),at[Ze]=!0)}}function Et(q,Ee){{var Ze=function(){Co||(Co=!0,D("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",Ee))};Ze.isReactWarning=!0,Object.defineProperty(q,"key",{get:Ze,configurable:!0})}}function cn(q,Ee){{var Ze=function(){en||(en=!0,D("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",Ee))};Ze.isReactWarning=!0,Object.defineProperty(q,"ref",{get:Ze,configurable:!0})}}var Vt=function(q,Ee,Ze,nt,qe,Mt,Qe){var _t={$$typeof:o,type:q,key:Ee,ref:Ze,props:Qe,_owner:Mt};return _t._store={},Object.defineProperty(_t._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(_t,"_self",{configurable:!1,enumerable:!1,writable:!1,value:nt}),Object.defineProperty(_t,"_source",{configurable:!1,enumerable:!1,writable:!1,value:qe}),Object.freeze&&(Object.freeze(_t.props),Object.freeze(_t)),_t};function Cn(q,Ee,Ze,nt,qe){{var Mt,Qe={},_t=null,Sn=null;Ze!==void 0&&(Lo(Ze),_t=""+Ze),Nn(Ee)&&(Lo(Ee.key),_t=""+Ee.key),ft(Ee)&&(Sn=Ee.ref,Ln(Ee,qe));for(Mt in Ee)ht.call(Ee,Mt)&&!lo.hasOwnProperty(Mt)&&(Qe[Mt]=Ee[Mt]);if(q&&q.defaultProps){var fn=q.defaultProps;for(Mt in fn)Qe[Mt]===void 0&&(Qe[Mt]=fn[Mt])}if(_t||Sn){var $n=typeof q=="function"?q.displayName||q.name||"Unknown":q;_t&&Et(Qe,$n),Sn&&cn(Qe,$n)}return Vt(q,_t,Sn,qe,nt,wo.current,Qe)}}var Jo=F.ReactCurrentOwner,li=F.ReactDebugCurrentFrame;function ko(q){if(q){var Ee=q._owner,Ze=qt(q.type,q._source,Ee?Ee.type:null);li.setExtraStackFrame(Ze)}else li.setExtraStackFrame(null)}var $o;$o=!1;function bi(q){return typeof q=="object"&&q!==null&&q.$$typeof===o}function Pn(){{if(Jo.current){var q=ye(Jo.current.type);if(q)return`
|
|
58
|
+
|
|
59
|
+
Check the render method of \``+q+"`."}return""}}function Ji(q){{if(q!==void 0){var Ee=q.fileName.replace(/^.*[\\\/]/,""),Ze=q.lineNumber;return`
|
|
60
|
+
|
|
61
|
+
Check your code at `+Ee+":"+Ze+"."}return""}}var cr={};function Ar(q){{var Ee=Pn();if(!Ee){var Ze=typeof q=="string"?q:q.displayName||q.name;Ze&&(Ee=`
|
|
62
|
+
|
|
63
|
+
Check the top-level render call using <`+Ze+">.")}return Ee}}function Di(q,Ee){{if(!q._store||q._store.validated||q.key!=null)return;q._store.validated=!0;var Ze=Ar(Ee);if(cr[Ze])return;cr[Ze]=!0;var nt="";q&&q._owner&&q._owner!==Jo.current&&(nt=" It was passed a child from "+ye(q._owner.type)+"."),ko(q),D('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',Ze,nt),ko(null)}}function Fi(q,Ee){{if(typeof q!="object")return;if(xn(q))for(var Ze=0;Ze<q.length;Ze++){var nt=q[Ze];bi(nt)&&Di(nt,Ee)}else if(bi(q))q._store&&(q._store.validated=!0);else if(q){var qe=N(q);if(typeof qe=="function"&&qe!==q.entries)for(var Mt=qe.call(q),Qe;!(Qe=Mt.next()).done;)bi(Qe.value)&&Di(Qe.value,Ee)}}}function Xi(q){{var Ee=q.type;if(Ee==null||typeof Ee=="string")return;var Ze;if(typeof Ee=="function")Ze=Ee.propTypes;else if(typeof Ee=="object"&&(Ee.$$typeof===w||Ee.$$typeof===I))Ze=Ee.propTypes;else return;if(Ze){var nt=ye(Ee);Tn(Ze,q.props,"prop",nt,q)}else if(Ee.PropTypes!==void 0&&!$o){$o=!0;var qe=ye(Ee);D("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",qe||"Unknown")}typeof Ee.getDefaultProps=="function"&&!Ee.getDefaultProps.isReactClassApproved&&D("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ur(q){{for(var Ee=Object.keys(q.props),Ze=0;Ze<Ee.length;Ze++){var nt=Ee[Ze];if(nt!=="children"&&nt!=="key"){ko(q),D("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",nt),ko(null);break}}q.ref!==null&&(ko(q),D("Invalid attribute `ref` supplied to `React.Fragment`."),ko(null))}}var Ko={};function xi(q,Ee,Ze,nt,qe,Mt){{var Qe=he(q);if(!Qe){var _t="";(q===void 0||typeof q=="object"&&q!==null&&Object.keys(q).length===0)&&(_t+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Sn=Ji(qe);Sn?_t+=Sn:_t+=Pn();var fn;q===null?fn="null":xn(q)?fn="array":q!==void 0&&q.$$typeof===o?(fn="<"+(ye(q.type)||"Unknown")+" />",_t=" Did you accidentally export a JSX literal instead of a component?"):fn=typeof q,D("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",fn,_t)}var $n=Cn(q,Ee,Ze,qe,Mt);if($n==null)return $n;if(Qe){var Ao=Ee.children;if(Ao!==void 0)if(nt)if(xn(Ao)){for(var Oo=0;Oo<Ao.length;Oo++)Fi(Ao[Oo],q);Object.freeze&&Object.freeze(Ao)}else D("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Fi(Ao,q)}if(ht.call(Ee,"key")){var Xo=ye(q),co=Object.keys(Ee).filter(function(Xr){return Xr!=="key"}),Or=co.length>0?"{key: someKey, "+co.join(": ..., ")+": ...}":"{key: someKey}";if(!Ko[Xo+Or]){var ei=co.length>0?"{"+co.join(": ..., ")+": ...}":"{}";D(`A props object containing a "key" prop is being spread into JSX:
|
|
64
|
+
let props = %s;
|
|
65
|
+
<%s {...props} />
|
|
66
|
+
React keys must be passed directly to JSX without using spread:
|
|
67
|
+
let props = %s;
|
|
68
|
+
<%s key={someKey} {...props} />`,Or,Xo,ei,Xo),Ko[Xo+Or]=!0}}return q===r?ur($n):Xi($n),$n}}function bo(q,Ee,Ze){return xi(q,Ee,Ze,!0)}function pt(q,Ee,Ze){return xi(q,Ee,Ze,!1)}var Li=pt,Yo=bo;ue.Fragment=r,ue.jsx=Li,ue.jsxs=Yo}()),ue}process.env.NODE_ENV==="production"?pe.exports=ne():pe.exports=ve();var xe=pe.exports,Ie={exports:{}};/* @preserve
|
|
69
|
+
* Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com
|
|
70
|
+
* (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade
|
|
71
|
+
*/(function(e,o){(function(i,r){r(o)})(V,function(i){var r="1.9.4";function c(n){var l,p,b,S;for(p=1,b=arguments.length;p<b;p++){S=arguments[p];for(l in S)n[l]=S[l]}return n}var m=Object.create||function(){function n(){}return function(l){return n.prototype=l,new n}}();function g(n,l){var p=Array.prototype.slice;if(n.bind)return n.bind.apply(n,p.call(arguments,1));var b=p.call(arguments,2);return function(){return n.apply(l,b.length?b.concat(p.call(arguments)):arguments)}}var x=0;function w(n){return"_leaflet_id"in n||(n._leaflet_id=++x),n._leaflet_id}function P(n,l,p){var b,S,B,J;return J=function(){b=!1,S&&(B.apply(p,S),S=!1)},B=function(){b?S=arguments:(n.apply(p,arguments),setTimeout(J,l),b=!0)},B}function E(n,l,p){var b=l[1],S=l[0],B=b-S;return n===b&&p?n:((n-S)%B+B)%B+S}function I(){return!1}function O(n,l){if(l===!1)return n;var p=Math.pow(10,l===void 0?6:l);return Math.round(n*p)/p}function $(n){return n.trim?n.trim():n.replace(/^\s+|\s+$/g,"")}function R(n){return $(n).split(/\s+/)}function A(n,l){Object.prototype.hasOwnProperty.call(n,"options")||(n.options=n.options?m(n.options):{});for(var p in l)n.options[p]=l[p];return n.options}function N(n,l,p){var b=[];for(var S in n)b.push(encodeURIComponent(p?S.toUpperCase():S)+"="+encodeURIComponent(n[S]));return(!l||l.indexOf("?")===-1?"?":"&")+b.join("&")}var F=/\{ *([\w_ -]+) *\}/g;function D(n,l){return n.replace(F,function(p,b){var S=l[b];if(S===void 0)throw new Error("No value provided for variable "+p);return typeof S=="function"&&(S=S(l)),S})}var W=Array.isArray||function(n){return Object.prototype.toString.call(n)==="[object Array]"};function U(n,l){for(var p=0;p<n.length;p++)if(n[p]===l)return p;return-1}var j="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function ee(n){return window["webkit"+n]||window["moz"+n]||window["ms"+n]}var te=0;function Y(n){var l=+new Date,p=Math.max(0,16-(l-te));return te=l+p,window.setTimeout(n,p)}var ae=window.requestAnimationFrame||ee("RequestAnimationFrame")||Y,he=window.cancelAnimationFrame||ee("CancelAnimationFrame")||ee("CancelRequestAnimationFrame")||function(n){window.clearTimeout(n)};function oe(n,l,p){if(p&&ae===Y)n.call(l);else return ae.call(window,g(n,l))}function be(n){n&&he.call(window,n)}var ye={__proto__:null,extend:c,create:m,bind:g,get lastId(){return x},stamp:w,throttle:P,wrapNum:E,falseFn:I,formatNum:O,trim:$,splitWords:R,setOptions:A,getParamString:N,template:D,isArray:W,indexOf:U,emptyImageUrl:j,requestFn:ae,cancelFn:he,requestAnimFrame:oe,cancelAnimFrame:be};function Me(){}Me.extend=function(n){var l=function(){A(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},p=l.__super__=this.prototype,b=m(p);b.constructor=l,l.prototype=b;for(var S in this)Object.prototype.hasOwnProperty.call(this,S)&&S!=="prototype"&&S!=="__super__"&&(l[S]=this[S]);return n.statics&&c(l,n.statics),n.includes&&(le(n.includes),c.apply(null,[b].concat(n.includes))),c(b,n),delete b.statics,delete b.includes,b.options&&(b.options=p.options?m(p.options):{},c(b.options,n.options)),b._initHooks=[],b.callInitHooks=function(){if(!this._initHooksCalled){p.callInitHooks&&p.callInitHooks.call(this),this._initHooksCalled=!0;for(var B=0,J=b._initHooks.length;B<J;B++)b._initHooks[B].call(this)}},l},Me.include=function(n){var l=this.prototype.options;return c(this.prototype,n),n.options&&(this.prototype.options=l,this.mergeOptions(n.options)),this},Me.mergeOptions=function(n){return c(this.prototype.options,n),this},Me.addInitHook=function(n){var l=Array.prototype.slice.call(arguments,1),p=typeof n=="function"?n:function(){this[n].apply(this,l)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(p),this};function le(n){if(!(typeof L>"u"||!L||!L.Mixin)){n=W(n)?n:[n];for(var l=0;l<n.length;l++)n[l]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",new Error().stack)}}var we={on:function(n,l,p){if(typeof n=="object")for(var b in n)this._on(b,n[b],l);else{n=R(n);for(var S=0,B=n.length;S<B;S++)this._on(n[S],l,p)}return this},off:function(n,l,p){if(!arguments.length)delete this._events;else if(typeof n=="object")for(var b in n)this._off(b,n[b],l);else{n=R(n);for(var S=arguments.length===1,B=0,J=n.length;B<J;B++)S?this._off(n[B]):this._off(n[B],l,p)}return this},_on:function(n,l,p,b){if(typeof l!="function"){console.warn("wrong listener type: "+typeof l);return}if(this._listens(n,l,p)===!1){p===this&&(p=void 0);var S={fn:l,ctx:p};b&&(S.once=!0),this._events=this._events||{},this._events[n]=this._events[n]||[],this._events[n].push(S)}},_off:function(n,l,p){var b,S,B;if(this._events&&(b=this._events[n],!!b)){if(arguments.length===1){if(this._firingCount)for(S=0,B=b.length;S<B;S++)b[S].fn=I;delete this._events[n];return}if(typeof l!="function"){console.warn("wrong listener type: "+typeof l);return}var J=this._listens(n,l,p);if(J!==!1){var se=b[J];this._firingCount&&(se.fn=I,this._events[n]=b=b.slice()),b.splice(J,1)}}},fire:function(n,l,p){if(!this.listens(n,p))return this;var b=c({},l,{type:n,target:this,sourceTarget:l&&l.sourceTarget||this});if(this._events){var S=this._events[n];if(S){this._firingCount=this._firingCount+1||1;for(var B=0,J=S.length;B<J;B++){var se=S[B],me=se.fn;se.once&&this.off(n,me,se.ctx),me.call(se.ctx||this,b)}this._firingCount--}}return p&&this._propagateEvent(b),this},listens:function(n,l,p,b){typeof n!="string"&&console.warn('"string" type argument expected');var S=l;typeof l!="function"&&(b=!!l,S=void 0,p=void 0);var B=this._events&&this._events[n];if(B&&B.length&&this._listens(n,S,p)!==!1)return!0;if(b){for(var J in this._eventParents)if(this._eventParents[J].listens(n,l,p,b))return!0}return!1},_listens:function(n,l,p){if(!this._events)return!1;var b=this._events[n]||[];if(!l)return!!b.length;p===this&&(p=void 0);for(var S=0,B=b.length;S<B;S++)if(b[S].fn===l&&b[S].ctx===p)return S;return!1},once:function(n,l,p){if(typeof n=="object")for(var b in n)this._on(b,n[b],l,!0);else{n=R(n);for(var S=0,B=n.length;S<B;S++)this._on(n[S],l,p,!0)}return this},addEventParent:function(n){return this._eventParents=this._eventParents||{},this._eventParents[w(n)]=n,this},removeEventParent:function(n){return this._eventParents&&delete this._eventParents[w(n)],this},_propagateEvent:function(n){for(var l in this._eventParents)this._eventParents[l].fire(n.type,c({layer:n.target,propagatedFrom:n.target},n),!0)}};we.addEventListener=we.on,we.removeEventListener=we.clearAllEventListeners=we.off,we.addOneTimeEventListener=we.once,we.fireEvent=we.fire,we.hasEventListeners=we.listens;var Fe=Me.extend(we);function _e(n,l,p){this.x=p?Math.round(n):n,this.y=p?Math.round(l):l}var st=Math.trunc||function(n){return n>0?Math.floor(n):Math.ceil(n)};_e.prototype={clone:function(){return new _e(this.x,this.y)},add:function(n){return this.clone()._add(ke(n))},_add:function(n){return this.x+=n.x,this.y+=n.y,this},subtract:function(n){return this.clone()._subtract(ke(n))},_subtract:function(n){return this.x-=n.x,this.y-=n.y,this},divideBy:function(n){return this.clone()._divideBy(n)},_divideBy:function(n){return this.x/=n,this.y/=n,this},multiplyBy:function(n){return this.clone()._multiplyBy(n)},_multiplyBy:function(n){return this.x*=n,this.y*=n,this},scaleBy:function(n){return new _e(this.x*n.x,this.y*n.y)},unscaleBy:function(n){return new _e(this.x/n.x,this.y/n.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=st(this.x),this.y=st(this.y),this},distanceTo:function(n){n=ke(n);var l=n.x-this.x,p=n.y-this.y;return Math.sqrt(l*l+p*p)},equals:function(n){return n=ke(n),n.x===this.x&&n.y===this.y},contains:function(n){return n=ke(n),Math.abs(n.x)<=Math.abs(this.x)&&Math.abs(n.y)<=Math.abs(this.y)},toString:function(){return"Point("+O(this.x)+", "+O(this.y)+")"}};function ke(n,l,p){return n instanceof _e?n:W(n)?new _e(n[0],n[1]):n==null?n:typeof n=="object"&&"x"in n&&"y"in n?new _e(n.x,n.y):new _e(n,l,p)}function Ne(n,l){if(n)for(var p=l?[n,l]:n,b=0,S=p.length;b<S;b++)this.extend(p[b])}Ne.prototype={extend:function(n){var l,p;if(!n)return this;if(n instanceof _e||typeof n[0]=="number"||"x"in n)l=p=ke(n);else if(n=rt(n),l=n.min,p=n.max,!l||!p)return this;return!this.min&&!this.max?(this.min=l.clone(),this.max=p.clone()):(this.min.x=Math.min(l.x,this.min.x),this.max.x=Math.max(p.x,this.max.x),this.min.y=Math.min(l.y,this.min.y),this.max.y=Math.max(p.y,this.max.y)),this},getCenter:function(n){return ke((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,n)},getBottomLeft:function(){return ke(this.min.x,this.max.y)},getTopRight:function(){return ke(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(n){var l,p;return typeof n[0]=="number"||n instanceof _e?n=ke(n):n=rt(n),n instanceof Ne?(l=n.min,p=n.max):l=p=n,l.x>=this.min.x&&p.x<=this.max.x&&l.y>=this.min.y&&p.y<=this.max.y},intersects:function(n){n=rt(n);var l=this.min,p=this.max,b=n.min,S=n.max,B=S.x>=l.x&&b.x<=p.x,J=S.y>=l.y&&b.y<=p.y;return B&&J},overlaps:function(n){n=rt(n);var l=this.min,p=this.max,b=n.min,S=n.max,B=S.x>l.x&&b.x<p.x,J=S.y>l.y&&b.y<p.y;return B&&J},isValid:function(){return!!(this.min&&this.max)},pad:function(n){var l=this.min,p=this.max,b=Math.abs(l.x-p.x)*n,S=Math.abs(l.y-p.y)*n;return rt(ke(l.x-b,l.y-S),ke(p.x+b,p.y+S))},equals:function(n){return n?(n=rt(n),this.min.equals(n.getTopLeft())&&this.max.equals(n.getBottomRight())):!1}};function rt(n,l){return!n||n instanceof Ne?n:new Ne(n,l)}function We(n,l){if(n)for(var p=l?[n,l]:n,b=0,S=p.length;b<S;b++)this.extend(p[b])}We.prototype={extend:function(n){var l=this._southWest,p=this._northEast,b,S;if(n instanceof ze)b=n,S=n;else if(n instanceof We){if(b=n._southWest,S=n._northEast,!b||!S)return this}else return n?this.extend(Se(n)||Ge(n)):this;return!l&&!p?(this._southWest=new ze(b.lat,b.lng),this._northEast=new ze(S.lat,S.lng)):(l.lat=Math.min(b.lat,l.lat),l.lng=Math.min(b.lng,l.lng),p.lat=Math.max(S.lat,p.lat),p.lng=Math.max(S.lng,p.lng)),this},pad:function(n){var l=this._southWest,p=this._northEast,b=Math.abs(l.lat-p.lat)*n,S=Math.abs(l.lng-p.lng)*n;return new We(new ze(l.lat-b,l.lng-S),new ze(p.lat+b,p.lng+S))},getCenter:function(){return new ze((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new ze(this.getNorth(),this.getWest())},getSouthEast:function(){return new ze(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(n){typeof n[0]=="number"||n instanceof ze||"lat"in n?n=Se(n):n=Ge(n);var l=this._southWest,p=this._northEast,b,S;return n instanceof We?(b=n.getSouthWest(),S=n.getNorthEast()):b=S=n,b.lat>=l.lat&&S.lat<=p.lat&&b.lng>=l.lng&&S.lng<=p.lng},intersects:function(n){n=Ge(n);var l=this._southWest,p=this._northEast,b=n.getSouthWest(),S=n.getNorthEast(),B=S.lat>=l.lat&&b.lat<=p.lat,J=S.lng>=l.lng&&b.lng<=p.lng;return B&&J},overlaps:function(n){n=Ge(n);var l=this._southWest,p=this._northEast,b=n.getSouthWest(),S=n.getNorthEast(),B=S.lat>l.lat&&b.lat<p.lat,J=S.lng>l.lng&&b.lng<p.lng;return B&&J},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(n,l){return n?(n=Ge(n),this._southWest.equals(n.getSouthWest(),l)&&this._northEast.equals(n.getNorthEast(),l)):!1},isValid:function(){return!!(this._southWest&&this._northEast)}};function Ge(n,l){return n instanceof We?n:new We(n,l)}function ze(n,l,p){if(isNaN(n)||isNaN(l))throw new Error("Invalid LatLng object: ("+n+", "+l+")");this.lat=+n,this.lng=+l,p!==void 0&&(this.alt=+p)}ze.prototype={equals:function(n,l){if(!n)return!1;n=Se(n);var p=Math.max(Math.abs(this.lat-n.lat),Math.abs(this.lng-n.lng));return p<=(l===void 0?1e-9:l)},toString:function(n){return"LatLng("+O(this.lat,n)+", "+O(this.lng,n)+")"},distanceTo:function(n){return tt.distance(this,Se(n))},wrap:function(){return tt.wrapLatLng(this)},toBounds:function(n){var l=180*n/40075017,p=l/Math.cos(Math.PI/180*this.lat);return Ge([this.lat-l,this.lng-p],[this.lat+l,this.lng+p])},clone:function(){return new ze(this.lat,this.lng,this.alt)}};function Se(n,l,p){return n instanceof ze?n:W(n)&&typeof n[0]!="object"?n.length===3?new ze(n[0],n[1],n[2]):n.length===2?new ze(n[0],n[1]):null:n==null?n:typeof n=="object"&&"lat"in n?new ze(n.lat,"lng"in n?n.lng:n.lon,n.alt):l===void 0?null:new ze(n,l,p)}var je={latLngToPoint:function(n,l){var p=this.projection.project(n),b=this.scale(l);return this.transformation._transform(p,b)},pointToLatLng:function(n,l){var p=this.scale(l),b=this.transformation.untransform(n,p);return this.projection.unproject(b)},project:function(n){return this.projection.project(n)},unproject:function(n){return this.projection.unproject(n)},scale:function(n){return 256*Math.pow(2,n)},zoom:function(n){return Math.log(n/256)/Math.LN2},getProjectedBounds:function(n){if(this.infinite)return null;var l=this.projection.bounds,p=this.scale(n),b=this.transformation.transform(l.min,p),S=this.transformation.transform(l.max,p);return new Ne(b,S)},infinite:!1,wrapLatLng:function(n){var l=this.wrapLng?E(n.lng,this.wrapLng,!0):n.lng,p=this.wrapLat?E(n.lat,this.wrapLat,!0):n.lat,b=n.alt;return new ze(p,l,b)},wrapLatLngBounds:function(n){var l=n.getCenter(),p=this.wrapLatLng(l),b=l.lat-p.lat,S=l.lng-p.lng;if(b===0&&S===0)return n;var B=n.getSouthWest(),J=n.getNorthEast(),se=new ze(B.lat-b,B.lng-S),me=new ze(J.lat-b,J.lng-S);return new We(se,me)}},tt=c({},je,{wrapLng:[-180,180],R:6371e3,distance:function(n,l){var p=Math.PI/180,b=n.lat*p,S=l.lat*p,B=Math.sin((l.lat-n.lat)*p/2),J=Math.sin((l.lng-n.lng)*p/2),se=B*B+Math.cos(b)*Math.cos(S)*J*J,me=2*Math.atan2(Math.sqrt(se),Math.sqrt(1-se));return this.R*me}}),ut=6378137,At={R:ut,MAX_LATITUDE:85.0511287798,project:function(n){var l=Math.PI/180,p=this.MAX_LATITUDE,b=Math.max(Math.min(p,n.lat),-p),S=Math.sin(b*l);return new _e(this.R*n.lng*l,this.R*Math.log((1+S)/(1-S))/2)},unproject:function(n){var l=180/Math.PI;return new ze((2*Math.atan(Math.exp(n.y/this.R))-Math.PI/2)*l,n.x*l/this.R)},bounds:function(){var n=ut*Math.PI;return new Ne([-n,-n],[n,n])}()};function St(n,l,p,b){if(W(n)){this._a=n[0],this._b=n[1],this._c=n[2],this._d=n[3];return}this._a=n,this._b=l,this._c=p,this._d=b}St.prototype={transform:function(n,l){return this._transform(n.clone(),l)},_transform:function(n,l){return l=l||1,n.x=l*(this._a*n.x+this._b),n.y=l*(this._c*n.y+this._d),n},untransform:function(n,l){return l=l||1,new _e((n.x/l-this._b)/this._a,(n.y/l-this._d)/this._c)}};function Ft(n,l,p,b){return new St(n,l,p,b)}var It=c({},tt,{code:"EPSG:3857",projection:At,transformation:function(){var n=.5/(Math.PI*At.R);return Ft(n,.5,-n,.5)}()}),Ve=c({},It,{code:"EPSG:900913"});function qt(n){return document.createElementNS("http://www.w3.org/2000/svg",n)}function ht(n,l){var p="",b,S,B,J,se,me;for(b=0,B=n.length;b<B;b++){for(se=n[b],S=0,J=se.length;S<J;S++)me=se[S],p+=(S?"L":"M")+me.x+" "+me.y;p+=l?pt.svg?"z":"x":""}return p||"M0 0"}var Kt=document.documentElement.style,bn="ActiveXObject"in window,ln=bn&&!document.addEventListener,Tn="msLaunchUri"in navigator&&!("documentMode"in document),Xt=bo("webkit"),xn=bo("android"),Yn=bo("android 2")||bo("android 3"),Qt=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),sn=xn&&bo("Google")&&Qt<537&&!("AudioNode"in window),Lo=!!window.opera,wo=!Tn&&bo("chrome"),lo=bo("gecko")&&!Xt&&!Lo&&!bn,Co=!wo&&bo("safari"),en=bo("phantom"),at="OTransition"in Kt,ft=navigator.platform.indexOf("Win")===0,Nn=bn&&"transition"in Kt,Ln="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!Yn,Et="MozPerspective"in Kt,cn=!window.L_DISABLE_3D&&(Nn||Ln||Et)&&!at&&!en,Vt=typeof orientation<"u"||bo("mobile"),Cn=Vt&&Xt,Jo=Vt&&Ln,li=!window.PointerEvent&&window.MSPointerEvent,ko=!!(window.PointerEvent||li),$o="ontouchstart"in window||!!window.TouchEvent,bi=!window.L_NO_TOUCH&&($o||ko),Pn=Vt&&Lo,Ji=Vt&&lo,cr=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,Ar=function(){var n=!1;try{var l=Object.defineProperty({},"passive",{get:function(){n=!0}});window.addEventListener("testPassiveEventSupport",I,l),window.removeEventListener("testPassiveEventSupport",I,l)}catch{}return n}(),Di=function(){return!!document.createElement("canvas").getContext}(),Fi=!!(document.createElementNS&&qt("svg").createSVGRect),Xi=!!Fi&&function(){var n=document.createElement("div");return n.innerHTML="<svg/>",(n.firstChild&&n.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"}(),ur=!Fi&&function(){try{var n=document.createElement("div");n.innerHTML='<v:shape adj="1"/>';var l=n.firstChild;return l.style.behavior="url(#default#VML)",l&&typeof l.adj=="object"}catch{return!1}}(),Ko=navigator.platform.indexOf("Mac")===0,xi=navigator.platform.indexOf("Linux")===0;function bo(n){return navigator.userAgent.toLowerCase().indexOf(n)>=0}var pt={ie:bn,ielt9:ln,edge:Tn,webkit:Xt,android:xn,android23:Yn,androidStock:sn,opera:Lo,chrome:wo,gecko:lo,safari:Co,phantom:en,opera12:at,win:ft,ie3d:Nn,webkit3d:Ln,gecko3d:Et,any3d:cn,mobile:Vt,mobileWebkit:Cn,mobileWebkit3d:Jo,msPointer:li,pointer:ko,touch:bi,touchNative:$o,mobileOpera:Pn,mobileGecko:Ji,retina:cr,passiveEvents:Ar,canvas:Di,svg:Fi,vml:ur,inlineSvg:Xi,mac:Ko,linux:xi},Li=pt.msPointer?"MSPointerDown":"pointerdown",Yo=pt.msPointer?"MSPointerMove":"pointermove",q=pt.msPointer?"MSPointerUp":"pointerup",Ee=pt.msPointer?"MSPointerCancel":"pointercancel",Ze={touchstart:Li,touchmove:Yo,touchend:q,touchcancel:Ee},nt={touchstart:Xo,touchmove:Oo,touchend:Oo,touchcancel:Oo},qe={},Mt=!1;function Qe(n,l,p){return l==="touchstart"&&Ao(),nt[l]?(p=nt[l].bind(this,p),n.addEventListener(Ze[l],p,!1),p):(console.warn("wrong event specified:",l),I)}function _t(n,l,p){if(!Ze[l]){console.warn("wrong event specified:",l);return}n.removeEventListener(Ze[l],p,!1)}function Sn(n){qe[n.pointerId]=n}function fn(n){qe[n.pointerId]&&(qe[n.pointerId]=n)}function $n(n){delete qe[n.pointerId]}function Ao(){Mt||(document.addEventListener(Li,Sn,!0),document.addEventListener(Yo,fn,!0),document.addEventListener(q,$n,!0),document.addEventListener(Ee,$n,!0),Mt=!0)}function Oo(n,l){if(l.pointerType!==(l.MSPOINTER_TYPE_MOUSE||"mouse")){l.touches=[];for(var p in qe)l.touches.push(qe[p]);l.changedTouches=[l],n(l)}}function Xo(n,l){l.MSPOINTER_TYPE_TOUCH&&l.pointerType===l.MSPOINTER_TYPE_TOUCH&&Hi(l),Oo(n,l)}function co(n){var l={},p,b;for(b in n)p=n[b],l[b]=p&&p.bind?p.bind(n):p;return n=l,l.type="dblclick",l.detail=2,l.isTrusted=!1,l._simulated=!0,l}var Or=200;function ei(n,l){n.addEventListener("dblclick",l);var p=0,b;function S(B){if(B.detail!==1){b=B.detail;return}if(!(B.pointerType==="mouse"||B.sourceCapabilities&&!B.sourceCapabilities.firesTouchEvents)){var J=uw(B);if(!(J.some(function(me){return me instanceof HTMLLabelElement&&me.attributes.for})&&!J.some(function(me){return me instanceof HTMLInputElement||me instanceof HTMLSelectElement}))){var se=Date.now();se-p<=Or?(b++,b===2&&l(co(B))):b=1,p=se}}}return n.addEventListener("click",S),{dblclick:l,simDblclick:S}}function Xr(n,l){n.removeEventListener("dblclick",l.dblclick),n.removeEventListener("click",l.simDblclick)}var Ba=$a(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),Jt=$a(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),Ai=Jt==="webkitTransition"||Jt==="OTransition"?Jt+"End":"transitionend";function wi(n){return typeof n=="string"?document.getElementById(n):n}function es(n,l){var p=n.style[l]||n.currentStyle&&n.currentStyle[l];if((!p||p==="auto")&&document.defaultView){var b=document.defaultView.getComputedStyle(n,null);p=b?b[l]:null}return p==="auto"?null:p}function wn(n,l,p){var b=document.createElement(n);return b.className=l||"",p&&p.appendChild(b),b}function uo(n){var l=n.parentNode;l&&l.removeChild(n)}function ps(n){for(;n.firstChild;)n.removeChild(n.firstChild)}function ts(n){var l=n.parentNode;l&&l.lastChild!==n&&l.appendChild(n)}function ms(n){var l=n.parentNode;l&&l.firstChild!==n&&l.insertBefore(n,l.firstChild)}function Na(n,l){if(n.classList!==void 0)return n.classList.contains(l);var p=ti(n);return p.length>0&&new RegExp("(^|\\s)"+l+"(\\s|$)").test(p)}function an(n,l){if(n.classList!==void 0)for(var p=R(l),b=0,S=p.length;b<S;b++)n.classList.add(p[b]);else if(!Na(n,l)){var B=ti(n);An(n,(B?B+" ":"")+l)}}function $e(n,l){n.classList!==void 0?n.classList.remove(l):An(n,$((" "+ti(n)+" ").replace(" "+l+" "," ")))}function An(n,l){n.className.baseVal===void 0?n.className=l:n.className.baseVal=l}function ti(n){return n.correspondingElement&&(n=n.correspondingElement),n.className.baseVal===void 0?n.className:n.className.baseVal}function ci(n,l){"opacity"in n.style?n.style.opacity=l:"filter"in n.style&&la(n,l)}function la(n,l){var p=!1,b="DXImageTransform.Microsoft.Alpha";try{p=n.filters.item(b)}catch{if(l===1)return}l=Math.round(l*100),p?(p.Enabled=l!==100,p.Opacity=l):n.style.filter+=" progid:"+b+"(opacity="+l+")"}function $a(n){for(var l=document.documentElement.style,p=0;p<n.length;p++)if(n[p]in l)return n[p];return!1}function Bs(n,l,p){var b=l||new _e(0,0);n.style[Ba]=(pt.ie3d?"translate("+b.x+"px,"+b.y+"px)":"translate3d("+b.x+"px,"+b.y+"px,0)")+(p?" scale("+p+")":"")}function Do(n,l){n._leaflet_pos=l,pt.any3d?Bs(n,l):(n.style.left=l.x+"px",n.style.top=l.y+"px")}function Da(n){return n._leaflet_pos||new _e(0,0)}var vu,yu,Eg;if("onselectstart"in document)vu=function(){un(window,"selectstart",Hi)},yu=function(){So(window,"selectstart",Hi)};else{var _u=$a(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);vu=function(){if(_u){var n=document.documentElement.style;Eg=n[_u],n[_u]="none"}},yu=function(){_u&&(document.documentElement.style[_u]=Eg,Eg=void 0)}}function Pg(){un(window,"dragstart",Hi)}function kg(){So(window,"dragstart",Hi)}var Th,Ig;function Mg(n){for(;n.tabIndex===-1;)n=n.parentNode;n.style&&(Lh(),Th=n,Ig=n.style.outlineStyle,n.style.outlineStyle="none",un(window,"keydown",Lh))}function Lh(){Th&&(Th.style.outlineStyle=Ig,Th=void 0,Ig=void 0,So(window,"keydown",Lh))}function lw(n){do n=n.parentNode;while((!n.offsetWidth||!n.offsetHeight)&&n!==document.body);return n}function Tg(n){var l=n.getBoundingClientRect();return{x:l.width/n.offsetWidth||1,y:l.height/n.offsetHeight||1,boundingClientRect:l}}var oO={__proto__:null,TRANSFORM:Ba,TRANSITION:Jt,TRANSITION_END:Ai,get:wi,getStyle:es,create:wn,remove:uo,empty:ps,toFront:ts,toBack:ms,hasClass:Na,addClass:an,removeClass:$e,setClass:An,getClass:ti,setOpacity:ci,testProp:$a,setTransform:Bs,setPosition:Do,getPosition:Da,get disableTextSelection(){return vu},get enableTextSelection(){return yu},disableImageDrag:Pg,enableImageDrag:kg,preventOutline:Mg,restoreOutline:Lh,getSizedParentNode:lw,getScale:Tg};function un(n,l,p,b){if(l&&typeof l=="object")for(var S in l)Ag(n,S,l[S],p);else{l=R(l);for(var B=0,J=l.length;B<J;B++)Ag(n,l[B],p,b)}return this}var gs="_leaflet_events";function So(n,l,p,b){if(arguments.length===1)cw(n),delete n[gs];else if(l&&typeof l=="object")for(var S in l)Og(n,S,l[S],p);else if(l=R(l),arguments.length===2)cw(n,function(se){return U(l,se)!==-1});else for(var B=0,J=l.length;B<J;B++)Og(n,l[B],p,b);return this}function cw(n,l){for(var p in n[gs]){var b=p.split(/\d/)[0];(!l||l(b))&&Og(n,b,null,null,p)}}var Lg={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function Ag(n,l,p,b){var S=l+w(p)+(b?"_"+w(b):"");if(n[gs]&&n[gs][S])return this;var B=function(se){return p.call(b||n,se||window.event)},J=B;!pt.touchNative&&pt.pointer&&l.indexOf("touch")===0?B=Qe(n,l,B):pt.touch&&l==="dblclick"?B=ei(n,B):"addEventListener"in n?l==="touchstart"||l==="touchmove"||l==="wheel"||l==="mousewheel"?n.addEventListener(Lg[l]||l,B,pt.passiveEvents?{passive:!1}:!1):l==="mouseenter"||l==="mouseleave"?(B=function(se){se=se||window.event,zg(n,se)&&J(se)},n.addEventListener(Lg[l],B,!1)):n.addEventListener(l,J,!1):n.attachEvent("on"+l,B),n[gs]=n[gs]||{},n[gs][S]=B}function Og(n,l,p,b,S){S=S||l+w(p)+(b?"_"+w(b):"");var B=n[gs]&&n[gs][S];if(!B)return this;!pt.touchNative&&pt.pointer&&l.indexOf("touch")===0?_t(n,l,B):pt.touch&&l==="dblclick"?Xr(n,B):"removeEventListener"in n?n.removeEventListener(Lg[l]||l,B,!1):n.detachEvent("on"+l,B),n[gs][S]=null}function Fa(n){return n.stopPropagation?n.stopPropagation():n.originalEvent?n.originalEvent._stopped=!0:n.cancelBubble=!0,this}function Rg(n){return Ag(n,"wheel",Fa),this}function bu(n){return un(n,"mousedown touchstart dblclick contextmenu",Fa),n._leaflet_disable_click=!0,this}function Hi(n){return n.preventDefault?n.preventDefault():n.returnValue=!1,this}function Ha(n){return Hi(n),Fa(n),this}function uw(n){if(n.composedPath)return n.composedPath();for(var l=[],p=n.target;p;)l.push(p),p=p.parentNode;return l}function dw(n,l){if(!l)return new _e(n.clientX,n.clientY);var p=Tg(l),b=p.boundingClientRect;return new _e((n.clientX-b.left)/p.x-l.clientLeft,(n.clientY-b.top)/p.y-l.clientTop)}var iO=pt.linux&&pt.chrome?window.devicePixelRatio:pt.mac?window.devicePixelRatio*3:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function hw(n){return pt.edge?n.wheelDeltaY/2:n.deltaY&&n.deltaMode===0?-n.deltaY/iO:n.deltaY&&n.deltaMode===1?-n.deltaY*20:n.deltaY&&n.deltaMode===2?-n.deltaY*60:n.deltaX||n.deltaZ?0:n.wheelDelta?(n.wheelDeltaY||n.wheelDelta)/2:n.detail&&Math.abs(n.detail)<32765?-n.detail*20:n.detail?n.detail/-32765*60:0}function zg(n,l){var p=l.relatedTarget;if(!p)return!0;try{for(;p&&p!==n;)p=p.parentNode}catch{return!1}return p!==n}var rO={__proto__:null,on:un,off:So,stopPropagation:Fa,disableScrollPropagation:Rg,disableClickPropagation:bu,preventDefault:Hi,stop:Ha,getPropagationPath:uw,getMousePosition:dw,getWheelDelta:hw,isExternalTarget:zg,addListener:un,removeListener:So},fw=Fe.extend({run:function(n,l,p,b){this.stop(),this._el=n,this._inProgress=!0,this._duration=p||.25,this._easeOutPower=1/Math.max(b||.5,.2),this._startPos=Da(n),this._offset=l.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=oe(this._animate,this),this._step()},_step:function(n){var l=+new Date-this._startTime,p=this._duration*1e3;l<p?this._runFrame(this._easeOut(l/p),n):(this._runFrame(1),this._complete())},_runFrame:function(n,l){var p=this._startPos.add(this._offset.multiplyBy(n));l&&p._round(),Do(this._el,p),this.fire("step")},_complete:function(){be(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(n){return 1-Math.pow(1-n,this._easeOutPower)}}),Hn=Fe.extend({options:{crs:It,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(n,l){l=A(this,l),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(n),this._initLayout(),this._onResize=g(this._onResize,this),this._initEvents(),l.maxBounds&&this.setMaxBounds(l.maxBounds),l.zoom!==void 0&&(this._zoom=this._limitZoom(l.zoom)),l.center&&l.zoom!==void 0&&this.setView(Se(l.center),l.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=Jt&&pt.any3d&&!pt.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),un(this._proxy,Ai,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(n,l,p){if(l=l===void 0?this._zoom:this._limitZoom(l),n=this._limitCenter(Se(n),l,this.options.maxBounds),p=p||{},this._stop(),this._loaded&&!p.reset&&p!==!0){p.animate!==void 0&&(p.zoom=c({animate:p.animate},p.zoom),p.pan=c({animate:p.animate,duration:p.duration},p.pan));var b=this._zoom!==l?this._tryAnimatedZoom&&this._tryAnimatedZoom(n,l,p.zoom):this._tryAnimatedPan(n,p.pan);if(b)return clearTimeout(this._sizeTimer),this}return this._resetView(n,l,p.pan&&p.pan.noMoveStart),this},setZoom:function(n,l){return this._loaded?this.setView(this.getCenter(),n,{zoom:l}):(this._zoom=n,this)},zoomIn:function(n,l){return n=n||(pt.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+n,l)},zoomOut:function(n,l){return n=n||(pt.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-n,l)},setZoomAround:function(n,l,p){var b=this.getZoomScale(l),S=this.getSize().divideBy(2),B=n instanceof _e?n:this.latLngToContainerPoint(n),J=B.subtract(S).multiplyBy(1-1/b),se=this.containerPointToLatLng(S.add(J));return this.setView(se,l,{zoom:p})},_getBoundsCenterZoom:function(n,l){l=l||{},n=n.getBounds?n.getBounds():Ge(n);var p=ke(l.paddingTopLeft||l.padding||[0,0]),b=ke(l.paddingBottomRight||l.padding||[0,0]),S=this.getBoundsZoom(n,!1,p.add(b));if(S=typeof l.maxZoom=="number"?Math.min(l.maxZoom,S):S,S===1/0)return{center:n.getCenter(),zoom:S};var B=b.subtract(p).divideBy(2),J=this.project(n.getSouthWest(),S),se=this.project(n.getNorthEast(),S),me=this.unproject(J.add(se).divideBy(2).add(B),S);return{center:me,zoom:S}},fitBounds:function(n,l){if(n=Ge(n),!n.isValid())throw new Error("Bounds are not valid.");var p=this._getBoundsCenterZoom(n,l);return this.setView(p.center,p.zoom,l)},fitWorld:function(n){return this.fitBounds([[-90,-180],[90,180]],n)},panTo:function(n,l){return this.setView(n,this._zoom,{pan:l})},panBy:function(n,l){if(n=ke(n).round(),l=l||{},!n.x&&!n.y)return this.fire("moveend");if(l.animate!==!0&&!this.getSize().contains(n))return this._resetView(this.unproject(this.project(this.getCenter()).add(n)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new fw,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),l.noMoveStart||this.fire("movestart"),l.animate!==!1){an(this._mapPane,"leaflet-pan-anim");var p=this._getMapPanePos().subtract(n).round();this._panAnim.run(this._mapPane,p,l.duration||.25,l.easeLinearity)}else this._rawPanBy(n),this.fire("move").fire("moveend");return this},flyTo:function(n,l,p){if(p=p||{},p.animate===!1||!pt.any3d)return this.setView(n,l,p);this._stop();var b=this.project(this.getCenter()),S=this.project(n),B=this.getSize(),J=this._zoom;n=Se(n),l=l===void 0?J:l;var se=Math.max(B.x,B.y),me=se*this.getZoomScale(J,l),Ae=S.distanceTo(b)||1,mt=1.42,Gt=mt*mt;function kn(ui){var Zh=ui?-1:1,GO=ui?me:se,UO=me*me-se*se+Zh*Gt*Gt*Ae*Ae,QO=2*GO*Gt*Ae,qg=UO/QO,Gw=Math.sqrt(qg*qg+1)-qg,JO=Gw<1e-9?-18:Math.log(Gw);return JO}function er(ui){return(Math.exp(ui)-Math.exp(-ui))/2}function Oi(ui){return(Math.exp(ui)+Math.exp(-ui))/2}function zr(ui){return er(ui)/Oi(ui)}var dr=kn(0);function Xl(ui){return se*(Oi(dr)/Oi(dr+mt*ui))}function ZO(ui){return se*(Oi(dr)*zr(dr+mt*ui)-er(dr))/Gt}function VO(ui){return 1-Math.pow(1-ui,1.5)}var WO=Date.now(),Ww=(kn(1)-dr)/mt,qO=p.duration?1e3*p.duration:1e3*Ww*.8;function qw(){var ui=(Date.now()-WO)/qO,Zh=VO(ui)*Ww;ui<=1?(this._flyToFrame=oe(qw,this),this._move(this.unproject(b.add(S.subtract(b).multiplyBy(ZO(Zh)/Ae)),J),this.getScaleZoom(se/Xl(Zh),J),{flyTo:!0})):this._move(n,l)._moveEnd(!0)}return this._moveStart(!0,p.noMoveStart),qw.call(this),this},flyToBounds:function(n,l){var p=this._getBoundsCenterZoom(n,l);return this.flyTo(p.center,p.zoom,l)},setMaxBounds:function(n){return n=Ge(n),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),n.isValid()?(this.options.maxBounds=n,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom:function(n){var l=this.options.minZoom;return this.options.minZoom=n,this._loaded&&l!==n&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(n):this},setMaxZoom:function(n){var l=this.options.maxZoom;return this.options.maxZoom=n,this._loaded&&l!==n&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(n):this},panInsideBounds:function(n,l){this._enforcingBounds=!0;var p=this.getCenter(),b=this._limitCenter(p,this._zoom,Ge(n));return p.equals(b)||this.panTo(b,l),this._enforcingBounds=!1,this},panInside:function(n,l){l=l||{};var p=ke(l.paddingTopLeft||l.padding||[0,0]),b=ke(l.paddingBottomRight||l.padding||[0,0]),S=this.project(this.getCenter()),B=this.project(n),J=this.getPixelBounds(),se=rt([J.min.add(p),J.max.subtract(b)]),me=se.getSize();if(!se.contains(B)){this._enforcingBounds=!0;var Ae=B.subtract(se.getCenter()),mt=se.extend(B).getSize().subtract(me);S.x+=Ae.x<0?-mt.x:mt.x,S.y+=Ae.y<0?-mt.y:mt.y,this.panTo(this.unproject(S),l),this._enforcingBounds=!1}return this},invalidateSize:function(n){if(!this._loaded)return this;n=c({animate:!1,pan:!0},n===!0?{animate:!0}:n);var l=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var p=this.getSize(),b=l.divideBy(2).round(),S=p.divideBy(2).round(),B=b.subtract(S);return!B.x&&!B.y?this:(n.animate&&n.pan?this.panBy(B):(n.pan&&this._rawPanBy(B),this.fire("move"),n.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(g(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:l,newSize:p}))},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(n){if(n=this._locateOptions=c({timeout:1e4,watch:!1},n),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var l=g(this._handleGeolocationResponse,this),p=g(this._handleGeolocationError,this);return n.watch?this._locationWatchId=navigator.geolocation.watchPosition(l,p,n):navigator.geolocation.getCurrentPosition(l,p,n),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(n){if(this._container._leaflet_id){var l=n.code,p=n.message||(l===1?"permission denied":l===2?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:l,message:"Geolocation error: "+p+"."})}},_handleGeolocationResponse:function(n){if(this._container._leaflet_id){var l=n.coords.latitude,p=n.coords.longitude,b=new ze(l,p),S=b.toBounds(n.coords.accuracy*2),B=this._locateOptions;if(B.setView){var J=this.getBoundsZoom(S);this.setView(b,B.maxZoom?Math.min(J,B.maxZoom):J)}var se={latlng:b,bounds:S,timestamp:n.timestamp};for(var me in n.coords)typeof n.coords[me]=="number"&&(se[me]=n.coords[me]);this.fire("locationfound",se)}},addHandler:function(n,l){if(!l)return this;var p=this[n]=new l(this);return this._handlers.push(p),this.options[n]&&p.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch{this._container._leaflet_id=void 0,this._containerId=void 0}this._locationWatchId!==void 0&&this.stopLocate(),this._stop(),uo(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(be(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload");var n;for(n in this._layers)this._layers[n].remove();for(n in this._panes)uo(this._panes[n]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(n,l){var p="leaflet-pane"+(n?" leaflet-"+n.replace("Pane","")+"-pane":""),b=wn("div",p,l||this._mapPane);return n&&(this._panes[n]=b),b},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var n=this.getPixelBounds(),l=this.unproject(n.getBottomLeft()),p=this.unproject(n.getTopRight());return new We(l,p)},getMinZoom:function(){return this.options.minZoom===void 0?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===void 0?this._layersMaxZoom===void 0?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(n,l,p){n=Ge(n),p=ke(p||[0,0]);var b=this.getZoom()||0,S=this.getMinZoom(),B=this.getMaxZoom(),J=n.getNorthWest(),se=n.getSouthEast(),me=this.getSize().subtract(p),Ae=rt(this.project(se,b),this.project(J,b)).getSize(),mt=pt.any3d?this.options.zoomSnap:1,Gt=me.x/Ae.x,kn=me.y/Ae.y,er=l?Math.max(Gt,kn):Math.min(Gt,kn);return b=this.getScaleZoom(er,b),mt&&(b=Math.round(b/(mt/100))*(mt/100),b=l?Math.ceil(b/mt)*mt:Math.floor(b/mt)*mt),Math.max(S,Math.min(B,b))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new _e(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(n,l){var p=this._getTopLeftPoint(n,l);return new Ne(p,p.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(n){return this.options.crs.getProjectedBounds(n===void 0?this.getZoom():n)},getPane:function(n){return typeof n=="string"?this._panes[n]:n},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(n,l){var p=this.options.crs;return l=l===void 0?this._zoom:l,p.scale(n)/p.scale(l)},getScaleZoom:function(n,l){var p=this.options.crs;l=l===void 0?this._zoom:l;var b=p.zoom(n*p.scale(l));return isNaN(b)?1/0:b},project:function(n,l){return l=l===void 0?this._zoom:l,this.options.crs.latLngToPoint(Se(n),l)},unproject:function(n,l){return l=l===void 0?this._zoom:l,this.options.crs.pointToLatLng(ke(n),l)},layerPointToLatLng:function(n){var l=ke(n).add(this.getPixelOrigin());return this.unproject(l)},latLngToLayerPoint:function(n){var l=this.project(Se(n))._round();return l._subtract(this.getPixelOrigin())},wrapLatLng:function(n){return this.options.crs.wrapLatLng(Se(n))},wrapLatLngBounds:function(n){return this.options.crs.wrapLatLngBounds(Ge(n))},distance:function(n,l){return this.options.crs.distance(Se(n),Se(l))},containerPointToLayerPoint:function(n){return ke(n).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(n){return ke(n).add(this._getMapPanePos())},containerPointToLatLng:function(n){var l=this.containerPointToLayerPoint(ke(n));return this.layerPointToLatLng(l)},latLngToContainerPoint:function(n){return this.layerPointToContainerPoint(this.latLngToLayerPoint(Se(n)))},mouseEventToContainerPoint:function(n){return dw(n,this._container)},mouseEventToLayerPoint:function(n){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(n))},mouseEventToLatLng:function(n){return this.layerPointToLatLng(this.mouseEventToLayerPoint(n))},_initContainer:function(n){var l=this._container=wi(n);if(l){if(l._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");un(l,"scroll",this._onScroll,this),this._containerId=w(l)},_initLayout:function(){var n=this._container;this._fadeAnimated=this.options.fadeAnimation&&pt.any3d,an(n,"leaflet-container"+(pt.touch?" leaflet-touch":"")+(pt.retina?" leaflet-retina":"")+(pt.ielt9?" leaflet-oldie":"")+(pt.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var l=es(n,"position");l!=="absolute"&&l!=="relative"&&l!=="fixed"&&l!=="sticky"&&(n.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var n=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),Do(this._mapPane,new _e(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(an(n.markerPane,"leaflet-zoom-hide"),an(n.shadowPane,"leaflet-zoom-hide"))},_resetView:function(n,l,p){Do(this._mapPane,new _e(0,0));var b=!this._loaded;this._loaded=!0,l=this._limitZoom(l),this.fire("viewprereset");var S=this._zoom!==l;this._moveStart(S,p)._move(n,l)._moveEnd(S),this.fire("viewreset"),b&&this.fire("load")},_moveStart:function(n,l){return n&&this.fire("zoomstart"),l||this.fire("movestart"),this},_move:function(n,l,p,b){l===void 0&&(l=this._zoom);var S=this._zoom!==l;return this._zoom=l,this._lastCenter=n,this._pixelOrigin=this._getNewPixelOrigin(n),b?p&&p.pinch&&this.fire("zoom",p):((S||p&&p.pinch)&&this.fire("zoom",p),this.fire("move",p)),this},_moveEnd:function(n){return n&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return be(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(n){Do(this._mapPane,this._getMapPanePos().subtract(n))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(n){this._targets={},this._targets[w(this._container)]=this;var l=n?So:un;l(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&l(window,"resize",this._onResize,this),pt.any3d&&this.options.transform3DLimit&&(n?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){be(this._resizeRequest),this._resizeRequest=oe(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var n=this._getMapPanePos();Math.max(Math.abs(n.x),Math.abs(n.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(n,l){for(var p=[],b,S=l==="mouseout"||l==="mouseover",B=n.target||n.srcElement,J=!1;B;){if(b=this._targets[w(B)],b&&(l==="click"||l==="preclick")&&this._draggableMoved(b)){J=!0;break}if(b&&b.listens(l,!0)&&(S&&!zg(B,n)||(p.push(b),S))||B===this._container)break;B=B.parentNode}return!p.length&&!J&&!S&&this.listens(l,!0)&&(p=[this]),p},_isClickDisabled:function(n){for(;n&&n!==this._container;){if(n._leaflet_disable_click)return!0;n=n.parentNode}},_handleDOMEvent:function(n){var l=n.target||n.srcElement;if(!(!this._loaded||l._leaflet_disable_events||n.type==="click"&&this._isClickDisabled(l))){var p=n.type;p==="mousedown"&&Mg(l),this._fireDOMEvent(n,p)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(n,l,p){if(n.type==="click"){var b=c({},n);b.type="preclick",this._fireDOMEvent(b,b.type,p)}var S=this._findEventTargets(n,l);if(p){for(var B=[],J=0;J<p.length;J++)p[J].listens(l,!0)&&B.push(p[J]);S=B.concat(S)}if(S.length){l==="contextmenu"&&Hi(n);var se=S[0],me={originalEvent:n};if(n.type!=="keypress"&&n.type!=="keydown"&&n.type!=="keyup"){var Ae=se.getLatLng&&(!se._radius||se._radius<=10);me.containerPoint=Ae?this.latLngToContainerPoint(se.getLatLng()):this.mouseEventToContainerPoint(n),me.layerPoint=this.containerPointToLayerPoint(me.containerPoint),me.latlng=Ae?se.getLatLng():this.layerPointToLatLng(me.layerPoint)}for(J=0;J<S.length;J++)if(S[J].fire(l,me,!0),me.originalEvent._stopped||S[J].options.bubblingMouseEvents===!1&&U(this._mouseEvents,l)!==-1)return}},_draggableMoved:function(n){return n=n.dragging&&n.dragging.enabled()?n:this,n.dragging&&n.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var n=0,l=this._handlers.length;n<l;n++)this._handlers[n].disable()},whenReady:function(n,l){return this._loaded?n.call(l||this,{target:this}):this.on("load",n,l),this},_getMapPanePos:function(){return Da(this._mapPane)||new _e(0,0)},_moved:function(){var n=this._getMapPanePos();return n&&!n.equals([0,0])},_getTopLeftPoint:function(n,l){var p=n&&l!==void 0?this._getNewPixelOrigin(n,l):this.getPixelOrigin();return p.subtract(this._getMapPanePos())},_getNewPixelOrigin:function(n,l){var p=this.getSize()._divideBy(2);return this.project(n,l)._subtract(p)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(n,l,p){var b=this._getNewPixelOrigin(p,l);return this.project(n,l)._subtract(b)},_latLngBoundsToNewLayerBounds:function(n,l,p){var b=this._getNewPixelOrigin(p,l);return rt([this.project(n.getSouthWest(),l)._subtract(b),this.project(n.getNorthWest(),l)._subtract(b),this.project(n.getSouthEast(),l)._subtract(b),this.project(n.getNorthEast(),l)._subtract(b)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(n){return this.latLngToLayerPoint(n).subtract(this._getCenterLayerPoint())},_limitCenter:function(n,l,p){if(!p)return n;var b=this.project(n,l),S=this.getSize().divideBy(2),B=new Ne(b.subtract(S),b.add(S)),J=this._getBoundsOffset(B,p,l);return Math.abs(J.x)<=1&&Math.abs(J.y)<=1?n:this.unproject(b.add(J),l)},_limitOffset:function(n,l){if(!l)return n;var p=this.getPixelBounds(),b=new Ne(p.min.add(n),p.max.add(n));return n.add(this._getBoundsOffset(b,l))},_getBoundsOffset:function(n,l,p){var b=rt(this.project(l.getNorthEast(),p),this.project(l.getSouthWest(),p)),S=b.min.subtract(n.min),B=b.max.subtract(n.max),J=this._rebound(S.x,-B.x),se=this._rebound(S.y,-B.y);return new _e(J,se)},_rebound:function(n,l){return n+l>0?Math.round(n-l)/2:Math.max(0,Math.ceil(n))-Math.max(0,Math.floor(l))},_limitZoom:function(n){var l=this.getMinZoom(),p=this.getMaxZoom(),b=pt.any3d?this.options.zoomSnap:1;return b&&(n=Math.round(n/b)*b),Math.max(l,Math.min(p,n))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){$e(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(n,l){var p=this._getCenterOffset(n)._trunc();return(l&&l.animate)!==!0&&!this.getSize().contains(p)?!1:(this.panBy(p,l),!0)},_createAnimProxy:function(){var n=this._proxy=wn("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(n),this.on("zoomanim",function(l){var p=Ba,b=this._proxy.style[p];Bs(this._proxy,this.project(l.center,l.zoom),this.getZoomScale(l.zoom,1)),b===this._proxy.style[p]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){uo(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var n=this.getCenter(),l=this.getZoom();Bs(this._proxy,this.project(n,l),this.getZoomScale(l,1))},_catchTransitionEnd:function(n){this._animatingZoom&&n.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(n,l,p){if(this._animatingZoom)return!0;if(p=p||{},!this._zoomAnimated||p.animate===!1||this._nothingToAnimate()||Math.abs(l-this._zoom)>this.options.zoomAnimationThreshold)return!1;var b=this.getZoomScale(l),S=this._getCenterOffset(n)._divideBy(1-1/b);return p.animate!==!0&&!this.getSize().contains(S)?!1:(oe(function(){this._moveStart(!0,p.noMoveStart||!1)._animateZoom(n,l,!0)},this),!0)},_animateZoom:function(n,l,p,b){this._mapPane&&(p&&(this._animatingZoom=!0,this._animateToCenter=n,this._animateToZoom=l,an(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:n,zoom:l,noUpdate:b}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(g(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&$e(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}});function sO(n,l){return new Hn(n,l)}var ns=Me.extend({options:{position:"topright"},initialize:function(n){A(this,n)},getPosition:function(){return this.options.position},setPosition:function(n){var l=this._map;return l&&l.removeControl(this),this.options.position=n,l&&l.addControl(this),this},getContainer:function(){return this._container},addTo:function(n){this.remove(),this._map=n;var l=this._container=this.onAdd(n),p=this.getPosition(),b=n._controlCorners[p];return an(l,"leaflet-control"),p.indexOf("bottom")!==-1?b.insertBefore(l,b.firstChild):b.appendChild(l),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(uo(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(n){this._map&&n&&n.screenX>0&&n.screenY>0&&this._map.getContainer().focus()}}),xu=function(n){return new ns(n)};Hn.include({addControl:function(n){return n.addTo(this),this},removeControl:function(n){return n.remove(),this},_initControlPos:function(){var n=this._controlCorners={},l="leaflet-",p=this._controlContainer=wn("div",l+"control-container",this._container);function b(S,B){var J=l+S+" "+l+B;n[S+B]=wn("div",J,p)}b("top","left"),b("top","right"),b("bottom","left"),b("bottom","right")},_clearControlPos:function(){for(var n in this._controlCorners)uo(this._controlCorners[n]);uo(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var pw=ns.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(n,l,p,b){return p<b?-1:b<p?1:0}},initialize:function(n,l,p){A(this,p),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1;for(var b in n)this._addLayer(n[b],b);for(b in l)this._addLayer(l[b],b,!0)},onAdd:function(n){this._initLayout(),this._update(),this._map=n,n.on("zoomend",this._checkDisabledLayers,this);for(var l=0;l<this._layers.length;l++)this._layers[l].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(n){return ns.prototype.addTo.call(this,n),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var n=0;n<this._layers.length;n++)this._layers[n].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(n,l){return this._addLayer(n,l),this._map?this._update():this},addOverlay:function(n,l){return this._addLayer(n,l,!0),this._map?this._update():this},removeLayer:function(n){n.off("add remove",this._onLayerChange,this);var l=this._getLayer(w(n));return l&&this._layers.splice(this._layers.indexOf(l),1),this._map?this._update():this},expand:function(){an(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var n=this._map.getSize().y-(this._container.offsetTop+50);return n<this._section.clientHeight?(an(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=n+"px"):$e(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return $e(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var n="leaflet-control-layers",l=this._container=wn("div",n),p=this.options.collapsed;l.setAttribute("aria-haspopup",!0),bu(l),Rg(l);var b=this._section=wn("section",n+"-list");p&&(this._map.on("click",this.collapse,this),un(l,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var S=this._layersLink=wn("a",n+"-toggle",l);S.href="#",S.title="Layers",S.setAttribute("role","button"),un(S,{keydown:function(B){B.keyCode===13&&this._expandSafely()},click:function(B){Hi(B),this._expandSafely()}},this),p||this.expand(),this._baseLayersList=wn("div",n+"-base",b),this._separator=wn("div",n+"-separator",b),this._overlaysList=wn("div",n+"-overlays",b),l.appendChild(b)},_getLayer:function(n){for(var l=0;l<this._layers.length;l++)if(this._layers[l]&&w(this._layers[l].layer)===n)return this._layers[l]},_addLayer:function(n,l,p){this._map&&n.on("add remove",this._onLayerChange,this),this._layers.push({layer:n,name:l,overlay:p}),this.options.sortLayers&&this._layers.sort(g(function(b,S){return this.options.sortFunction(b.layer,S.layer,b.name,S.name)},this)),this.options.autoZIndex&&n.setZIndex&&(this._lastZIndex++,n.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;ps(this._baseLayersList),ps(this._overlaysList),this._layerControlInputs=[];var n,l,p,b,S=0;for(p=0;p<this._layers.length;p++)b=this._layers[p],this._addItem(b),l=l||b.overlay,n=n||!b.overlay,S+=b.overlay?0:1;return this.options.hideSingleBase&&(n=n&&S>1,this._baseLayersList.style.display=n?"":"none"),this._separator.style.display=l&&n?"":"none",this},_onLayerChange:function(n){this._handlingClick||this._update();var l=this._getLayer(w(n.target)),p=l.overlay?n.type==="add"?"overlayadd":"overlayremove":n.type==="add"?"baselayerchange":null;p&&this._map.fire(p,l)},_createRadioElement:function(n,l){var p='<input type="radio" class="leaflet-control-layers-selector" name="'+n+'"'+(l?' checked="checked"':"")+"/>",b=document.createElement("div");return b.innerHTML=p,b.firstChild},_addItem:function(n){var l=document.createElement("label"),p=this._map.hasLayer(n.layer),b;n.overlay?(b=document.createElement("input"),b.type="checkbox",b.className="leaflet-control-layers-selector",b.defaultChecked=p):b=this._createRadioElement("leaflet-base-layers_"+w(this),p),this._layerControlInputs.push(b),b.layerId=w(n.layer),un(b,"click",this._onInputClick,this);var S=document.createElement("span");S.innerHTML=" "+n.name;var B=document.createElement("span");l.appendChild(B),B.appendChild(b),B.appendChild(S);var J=n.overlay?this._overlaysList:this._baseLayersList;return J.appendChild(l),this._checkDisabledLayers(),l},_onInputClick:function(){if(!this._preventClick){var n=this._layerControlInputs,l,p,b=[],S=[];this._handlingClick=!0;for(var B=n.length-1;B>=0;B--)l=n[B],p=this._getLayer(l.layerId).layer,l.checked?b.push(p):l.checked||S.push(p);for(B=0;B<S.length;B++)this._map.hasLayer(S[B])&&this._map.removeLayer(S[B]);for(B=0;B<b.length;B++)this._map.hasLayer(b[B])||this._map.addLayer(b[B]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var n=this._layerControlInputs,l,p,b=this._map.getZoom(),S=n.length-1;S>=0;S--)l=n[S],p=this._getLayer(l.layerId).layer,l.disabled=p.options.minZoom!==void 0&&b<p.options.minZoom||p.options.maxZoom!==void 0&&b>p.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var n=this._section;this._preventClick=!0,un(n,"click",Hi),this.expand();var l=this;setTimeout(function(){So(n,"click",Hi),l._preventClick=!1})}}),aO=function(n,l,p){return new pw(n,l,p)},Bg=ns.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">−</span>',zoomOutTitle:"Zoom out"},onAdd:function(n){var l="leaflet-control-zoom",p=wn("div",l+" leaflet-bar"),b=this.options;return this._zoomInButton=this._createButton(b.zoomInText,b.zoomInTitle,l+"-in",p,this._zoomIn),this._zoomOutButton=this._createButton(b.zoomOutText,b.zoomOutTitle,l+"-out",p,this._zoomOut),this._updateDisabled(),n.on("zoomend zoomlevelschange",this._updateDisabled,this),p},onRemove:function(n){n.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(n){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(n.shiftKey?3:1))},_zoomOut:function(n){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(n.shiftKey?3:1))},_createButton:function(n,l,p,b,S){var B=wn("a",p,b);return B.innerHTML=n,B.href="#",B.title=l,B.setAttribute("role","button"),B.setAttribute("aria-label",l),bu(B),un(B,"click",Ha),un(B,"click",S,this),un(B,"click",this._refocusOnMap,this),B},_updateDisabled:function(){var n=this._map,l="leaflet-disabled";$e(this._zoomInButton,l),$e(this._zoomOutButton,l),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||n._zoom===n.getMinZoom())&&(an(this._zoomOutButton,l),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||n._zoom===n.getMaxZoom())&&(an(this._zoomInButton,l),this._zoomInButton.setAttribute("aria-disabled","true"))}});Hn.mergeOptions({zoomControl:!0}),Hn.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new Bg,this.addControl(this.zoomControl))});var lO=function(n){return new Bg(n)},mw=ns.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(n){var l="leaflet-control-scale",p=wn("div",l),b=this.options;return this._addScales(b,l+"-line",p),n.on(b.updateWhenIdle?"moveend":"move",this._update,this),n.whenReady(this._update,this),p},onRemove:function(n){n.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(n,l,p){n.metric&&(this._mScale=wn("div",l,p)),n.imperial&&(this._iScale=wn("div",l,p))},_update:function(){var n=this._map,l=n.getSize().y/2,p=n.distance(n.containerPointToLatLng([0,l]),n.containerPointToLatLng([this.options.maxWidth,l]));this._updateScales(p)},_updateScales:function(n){this.options.metric&&n&&this._updateMetric(n),this.options.imperial&&n&&this._updateImperial(n)},_updateMetric:function(n){var l=this._getRoundNum(n),p=l<1e3?l+" m":l/1e3+" km";this._updateScale(this._mScale,p,l/n)},_updateImperial:function(n){var l=n*3.2808399,p,b,S;l>5280?(p=l/5280,b=this._getRoundNum(p),this._updateScale(this._iScale,b+" mi",b/p)):(S=this._getRoundNum(l),this._updateScale(this._iScale,S+" ft",S/l))},_updateScale:function(n,l,p){n.style.width=Math.round(this.options.maxWidth*p)+"px",n.innerHTML=l},_getRoundNum:function(n){var l=Math.pow(10,(Math.floor(n)+"").length-1),p=n/l;return p=p>=10?10:p>=5?5:p>=3?3:p>=2?2:1,l*p}}),cO=function(n){return new mw(n)},uO='<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8" class="leaflet-attribution-flag"><path fill="#4C7BE1" d="M0 0h12v4H0z"/><path fill="#FFD500" d="M0 4h12v3H0z"/><path fill="#E0BC00" d="M0 7h12v1H0z"/></svg>',Ng=ns.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(pt.inlineSvg?uO+" ":"")+"Leaflet</a>"},initialize:function(n){A(this,n),this._attributions={}},onAdd:function(n){n.attributionControl=this,this._container=wn("div","leaflet-control-attribution"),bu(this._container);for(var l in n._layers)n._layers[l].getAttribution&&this.addAttribution(n._layers[l].getAttribution());return this._update(),n.on("layeradd",this._addAttribution,this),this._container},onRemove:function(n){n.off("layeradd",this._addAttribution,this)},_addAttribution:function(n){n.layer.getAttribution&&(this.addAttribution(n.layer.getAttribution()),n.layer.once("remove",function(){this.removeAttribution(n.layer.getAttribution())},this))},setPrefix:function(n){return this.options.prefix=n,this._update(),this},addAttribution:function(n){return n?(this._attributions[n]||(this._attributions[n]=0),this._attributions[n]++,this._update(),this):this},removeAttribution:function(n){return n?(this._attributions[n]&&(this._attributions[n]--,this._update()),this):this},_update:function(){if(this._map){var n=[];for(var l in this._attributions)this._attributions[l]&&n.push(l);var p=[];this.options.prefix&&p.push(this.options.prefix),n.length&&p.push(n.join(", ")),this._container.innerHTML=p.join(' <span aria-hidden="true">|</span> ')}}});Hn.mergeOptions({attributionControl:!0}),Hn.addInitHook(function(){this.options.attributionControl&&new Ng().addTo(this)});var dO=function(n){return new Ng(n)};ns.Layers=pw,ns.Zoom=Bg,ns.Scale=mw,ns.Attribution=Ng,xu.layers=aO,xu.zoom=lO,xu.scale=cO,xu.attribution=dO;var vs=Me.extend({initialize:function(n){this._map=n},enable:function(){return this._enabled?this:(this._enabled=!0,this.addHooks(),this)},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});vs.addTo=function(n,l){return n.addHandler(l,this),this};var hO={Events:we},gw=pt.touch?"touchstart mousedown":"mousedown",ca=Fe.extend({options:{clickTolerance:3},initialize:function(n,l,p,b){A(this,b),this._element=n,this._dragStartTarget=l||n,this._preventOutline=p},enable:function(){this._enabled||(un(this._dragStartTarget,gw,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(ca._dragging===this&&this.finishDrag(!0),So(this._dragStartTarget,gw,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(n){if(this._enabled&&(this._moved=!1,!Na(this._element,"leaflet-zoom-anim"))){if(n.touches&&n.touches.length!==1){ca._dragging===this&&this.finishDrag();return}if(!(ca._dragging||n.shiftKey||n.which!==1&&n.button!==1&&!n.touches)&&(ca._dragging=this,this._preventOutline&&Mg(this._element),Pg(),vu(),!this._moving)){this.fire("down");var l=n.touches?n.touches[0]:n,p=lw(this._element);this._startPoint=new _e(l.clientX,l.clientY),this._startPos=Da(this._element),this._parentScale=Tg(p);var b=n.type==="mousedown";un(document,b?"mousemove":"touchmove",this._onMove,this),un(document,b?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(n){if(this._enabled){if(n.touches&&n.touches.length>1){this._moved=!0;return}var l=n.touches&&n.touches.length===1?n.touches[0]:n,p=new _e(l.clientX,l.clientY)._subtract(this._startPoint);!p.x&&!p.y||Math.abs(p.x)+Math.abs(p.y)<this.options.clickTolerance||(p.x/=this._parentScale.x,p.y/=this._parentScale.y,Hi(n),this._moved||(this.fire("dragstart"),this._moved=!0,an(document.body,"leaflet-dragging"),this._lastTarget=n.target||n.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),an(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(p),this._moving=!0,this._lastEvent=n,this._updatePosition())}},_updatePosition:function(){var n={originalEvent:this._lastEvent};this.fire("predrag",n),Do(this._element,this._newPos),this.fire("drag",n)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(n){$e(document.body,"leaflet-dragging"),this._lastTarget&&($e(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),So(document,"mousemove touchmove",this._onMove,this),So(document,"mouseup touchend touchcancel",this._onUp,this),kg(),yu();var l=this._moved&&this._moving;this._moving=!1,ca._dragging=!1,l&&this.fire("dragend",{noInertia:n,distance:this._newPos.distanceTo(this._startPos)})}});function vw(n,l,p){var b,S=[1,4,2,8],B,J,se,me,Ae,mt,Gt,kn;for(B=0,mt=n.length;B<mt;B++)n[B]._code=ja(n[B],l);for(se=0;se<4;se++){for(Gt=S[se],b=[],B=0,mt=n.length,J=mt-1;B<mt;J=B++)me=n[B],Ae=n[J],me._code&Gt?Ae._code&Gt||(kn=Ah(Ae,me,Gt,l,p),kn._code=ja(kn,l),b.push(kn)):(Ae._code&Gt&&(kn=Ah(Ae,me,Gt,l,p),kn._code=ja(kn,l),b.push(kn)),b.push(me));n=b}return n}function yw(n,l){var p,b,S,B,J,se,me,Ae,mt;if(!n||n.length===0)throw new Error("latlngs not passed");Rr(n)||(console.warn("latlngs are not flat! Only the first ring will be used"),n=n[0]);var Gt=Se([0,0]),kn=Ge(n),er=kn.getNorthWest().distanceTo(kn.getSouthWest())*kn.getNorthEast().distanceTo(kn.getNorthWest());er<1700&&(Gt=$g(n));var Oi=n.length,zr=[];for(p=0;p<Oi;p++){var dr=Se(n[p]);zr.push(l.project(Se([dr.lat-Gt.lat,dr.lng-Gt.lng])))}for(se=me=Ae=0,p=0,b=Oi-1;p<Oi;b=p++)S=zr[p],B=zr[b],J=S.y*B.x-B.y*S.x,me+=(S.x+B.x)*J,Ae+=(S.y+B.y)*J,se+=J*3;se===0?mt=zr[0]:mt=[me/se,Ae/se];var Xl=l.unproject(ke(mt));return Se([Xl.lat+Gt.lat,Xl.lng+Gt.lng])}function $g(n){for(var l=0,p=0,b=0,S=0;S<n.length;S++){var B=Se(n[S]);l+=B.lat,p+=B.lng,b++}return Se([l/b,p/b])}var fO={__proto__:null,clipPolygon:vw,polygonCenter:yw,centroid:$g};function _w(n,l){if(!l||!n.length)return n.slice();var p=l*l;return n=gO(n,p),n=mO(n,p),n}function bw(n,l,p){return Math.sqrt(wu(n,l,p,!0))}function pO(n,l,p){return wu(n,l,p)}function mO(n,l){var p=n.length,b=typeof Uint8Array!=void 0+""?Uint8Array:Array,S=new b(p);S[0]=S[p-1]=1,Dg(n,S,l,0,p-1);var B,J=[];for(B=0;B<p;B++)S[B]&&J.push(n[B]);return J}function Dg(n,l,p,b,S){var B=0,J,se,me;for(se=b+1;se<=S-1;se++)me=wu(n[se],n[b],n[S],!0),me>B&&(J=se,B=me);B>p&&(l[J]=1,Dg(n,l,p,b,J),Dg(n,l,p,J,S))}function gO(n,l){for(var p=[n[0]],b=1,S=0,B=n.length;b<B;b++)vO(n[b],n[S])>l&&(p.push(n[b]),S=b);return S<B-1&&p.push(n[B-1]),p}var xw;function ww(n,l,p,b,S){var B=b?xw:ja(n,p),J=ja(l,p),se,me,Ae;for(xw=J;;){if(!(B|J))return[n,l];if(B&J)return!1;se=B||J,me=Ah(n,l,se,p,S),Ae=ja(me,p),se===B?(n=me,B=Ae):(l=me,J=Ae)}}function Ah(n,l,p,b,S){var B=l.x-n.x,J=l.y-n.y,se=b.min,me=b.max,Ae,mt;return p&8?(Ae=n.x+B*(me.y-n.y)/J,mt=me.y):p&4?(Ae=n.x+B*(se.y-n.y)/J,mt=se.y):p&2?(Ae=me.x,mt=n.y+J*(me.x-n.x)/B):p&1&&(Ae=se.x,mt=n.y+J*(se.x-n.x)/B),new _e(Ae,mt,S)}function ja(n,l){var p=0;return n.x<l.min.x?p|=1:n.x>l.max.x&&(p|=2),n.y<l.min.y?p|=4:n.y>l.max.y&&(p|=8),p}function vO(n,l){var p=l.x-n.x,b=l.y-n.y;return p*p+b*b}function wu(n,l,p,b){var S=l.x,B=l.y,J=p.x-S,se=p.y-B,me=J*J+se*se,Ae;return me>0&&(Ae=((n.x-S)*J+(n.y-B)*se)/me,Ae>1?(S=p.x,B=p.y):Ae>0&&(S+=J*Ae,B+=se*Ae)),J=n.x-S,se=n.y-B,b?J*J+se*se:new _e(S,B)}function Rr(n){return!W(n[0])||typeof n[0][0]!="object"&&typeof n[0][0]<"u"}function Cw(n){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),Rr(n)}function Sw(n,l){var p,b,S,B,J,se,me,Ae;if(!n||n.length===0)throw new Error("latlngs not passed");Rr(n)||(console.warn("latlngs are not flat! Only the first ring will be used"),n=n[0]);var mt=Se([0,0]),Gt=Ge(n),kn=Gt.getNorthWest().distanceTo(Gt.getSouthWest())*Gt.getNorthEast().distanceTo(Gt.getNorthWest());kn<1700&&(mt=$g(n));var er=n.length,Oi=[];for(p=0;p<er;p++){var zr=Se(n[p]);Oi.push(l.project(Se([zr.lat-mt.lat,zr.lng-mt.lng])))}for(p=0,b=0;p<er-1;p++)b+=Oi[p].distanceTo(Oi[p+1])/2;if(b===0)Ae=Oi[0];else for(p=0,B=0;p<er-1;p++)if(J=Oi[p],se=Oi[p+1],S=J.distanceTo(se),B+=S,B>b){me=(B-b)/S,Ae=[se.x-me*(se.x-J.x),se.y-me*(se.y-J.y)];break}var dr=l.unproject(ke(Ae));return Se([dr.lat+mt.lat,dr.lng+mt.lng])}var yO={__proto__:null,simplify:_w,pointToSegmentDistance:bw,closestPointOnSegment:pO,clipSegment:ww,_getEdgeIntersection:Ah,_getBitCode:ja,_sqClosestPointOnSegment:wu,isFlat:Rr,_flat:Cw,polylineCenter:Sw},Fg={project:function(n){return new _e(n.lng,n.lat)},unproject:function(n){return new ze(n.y,n.x)},bounds:new Ne([-180,-90],[180,90])},Hg={R:6378137,R_MINOR:6356752314245179e-9,bounds:new Ne([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(n){var l=Math.PI/180,p=this.R,b=n.lat*l,S=this.R_MINOR/p,B=Math.sqrt(1-S*S),J=B*Math.sin(b),se=Math.tan(Math.PI/4-b/2)/Math.pow((1-J)/(1+J),B/2);return b=-p*Math.log(Math.max(se,1e-10)),new _e(n.lng*l*p,b)},unproject:function(n){for(var l=180/Math.PI,p=this.R,b=this.R_MINOR/p,S=Math.sqrt(1-b*b),B=Math.exp(-n.y/p),J=Math.PI/2-2*Math.atan(B),se=0,me=.1,Ae;se<15&&Math.abs(me)>1e-7;se++)Ae=S*Math.sin(J),Ae=Math.pow((1-Ae)/(1+Ae),S/2),me=Math.PI/2-2*Math.atan(B*Ae)-J,J+=me;return new ze(J*l,n.x*l/p)}},_O={__proto__:null,LonLat:Fg,Mercator:Hg,SphericalMercator:At},bO=c({},tt,{code:"EPSG:3395",projection:Hg,transformation:function(){var n=.5/(Math.PI*Hg.R);return Ft(n,.5,-n,.5)}()}),Ew=c({},tt,{code:"EPSG:4326",projection:Fg,transformation:Ft(1/180,1,-1/180,.5)}),xO=c({},je,{projection:Fg,transformation:Ft(1,0,-1,0),scale:function(n){return Math.pow(2,n)},zoom:function(n){return Math.log(n)/Math.LN2},distance:function(n,l){var p=l.lng-n.lng,b=l.lat-n.lat;return Math.sqrt(p*p+b*b)},infinite:!0});je.Earth=tt,je.EPSG3395=bO,je.EPSG3857=It,je.EPSG900913=Ve,je.EPSG4326=Ew,je.Simple=xO;var os=Fe.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(n){return n.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(n){return n&&n.removeLayer(this),this},getPane:function(n){return this._map.getPane(n?this.options[n]||n:this.options.pane)},addInteractiveTarget:function(n){return this._map._targets[w(n)]=this,this},removeInteractiveTarget:function(n){return delete this._map._targets[w(n)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(n){var l=n.target;if(l.hasLayer(this)){if(this._map=l,this._zoomAnimated=l._zoomAnimated,this.getEvents){var p=this.getEvents();l.on(p,this),this.once("remove",function(){l.off(p,this)},this)}this.onAdd(l),this.fire("add"),l.fire("layeradd",{layer:this})}}});Hn.include({addLayer:function(n){if(!n._layerAdd)throw new Error("The provided object is not a Layer.");var l=w(n);return this._layers[l]?this:(this._layers[l]=n,n._mapToAdd=this,n.beforeAdd&&n.beforeAdd(this),this.whenReady(n._layerAdd,n),this)},removeLayer:function(n){var l=w(n);return this._layers[l]?(this._loaded&&n.onRemove(this),delete this._layers[l],this._loaded&&(this.fire("layerremove",{layer:n}),n.fire("remove")),n._map=n._mapToAdd=null,this):this},hasLayer:function(n){return w(n)in this._layers},eachLayer:function(n,l){for(var p in this._layers)n.call(l,this._layers[p]);return this},_addLayers:function(n){n=n?W(n)?n:[n]:[];for(var l=0,p=n.length;l<p;l++)this.addLayer(n[l])},_addZoomLimit:function(n){(!isNaN(n.options.maxZoom)||!isNaN(n.options.minZoom))&&(this._zoomBoundLayers[w(n)]=n,this._updateZoomLevels())},_removeZoomLimit:function(n){var l=w(n);this._zoomBoundLayers[l]&&(delete this._zoomBoundLayers[l],this._updateZoomLevels())},_updateZoomLevels:function(){var n=1/0,l=-1/0,p=this._getZoomSpan();for(var b in this._zoomBoundLayers){var S=this._zoomBoundLayers[b].options;n=S.minZoom===void 0?n:Math.min(n,S.minZoom),l=S.maxZoom===void 0?l:Math.max(l,S.maxZoom)}this._layersMaxZoom=l===-1/0?void 0:l,this._layersMinZoom=n===1/0?void 0:n,p!==this._getZoomSpan()&&this.fire("zoomlevelschange"),this.options.maxZoom===void 0&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),this.options.minZoom===void 0&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var Ul=os.extend({initialize:function(n,l){A(this,l),this._layers={};var p,b;if(n)for(p=0,b=n.length;p<b;p++)this.addLayer(n[p])},addLayer:function(n){var l=this.getLayerId(n);return this._layers[l]=n,this._map&&this._map.addLayer(n),this},removeLayer:function(n){var l=n in this._layers?n:this.getLayerId(n);return this._map&&this._layers[l]&&this._map.removeLayer(this._layers[l]),delete this._layers[l],this},hasLayer:function(n){var l=typeof n=="number"?n:this.getLayerId(n);return l in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(n){var l=Array.prototype.slice.call(arguments,1),p,b;for(p in this._layers)b=this._layers[p],b[n]&&b[n].apply(b,l);return this},onAdd:function(n){this.eachLayer(n.addLayer,n)},onRemove:function(n){this.eachLayer(n.removeLayer,n)},eachLayer:function(n,l){for(var p in this._layers)n.call(l,this._layers[p]);return this},getLayer:function(n){return this._layers[n]},getLayers:function(){var n=[];return this.eachLayer(n.push,n),n},setZIndex:function(n){return this.invoke("setZIndex",n)},getLayerId:function(n){return w(n)}}),wO=function(n,l){return new Ul(n,l)},Ns=Ul.extend({addLayer:function(n){return this.hasLayer(n)?this:(n.addEventParent(this),Ul.prototype.addLayer.call(this,n),this.fire("layeradd",{layer:n}))},removeLayer:function(n){return this.hasLayer(n)?(n in this._layers&&(n=this._layers[n]),n.removeEventParent(this),Ul.prototype.removeLayer.call(this,n),this.fire("layerremove",{layer:n})):this},setStyle:function(n){return this.invoke("setStyle",n)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var n=new We;for(var l in this._layers){var p=this._layers[l];n.extend(p.getBounds?p.getBounds():p.getLatLng())}return n}}),CO=function(n,l){return new Ns(n,l)},Ql=Me.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(n){A(this,n)},createIcon:function(n){return this._createIcon("icon",n)},createShadow:function(n){return this._createIcon("shadow",n)},_createIcon:function(n,l){var p=this._getIconUrl(n);if(!p){if(n==="icon")throw new Error("iconUrl not set in Icon options (see the docs).");return null}var b=this._createImg(p,l&&l.tagName==="IMG"?l:null);return this._setIconStyles(b,n),(this.options.crossOrigin||this.options.crossOrigin==="")&&(b.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),b},_setIconStyles:function(n,l){var p=this.options,b=p[l+"Size"];typeof b=="number"&&(b=[b,b]);var S=ke(b),B=ke(l==="shadow"&&p.shadowAnchor||p.iconAnchor||S&&S.divideBy(2,!0));n.className="leaflet-marker-"+l+" "+(p.className||""),B&&(n.style.marginLeft=-B.x+"px",n.style.marginTop=-B.y+"px"),S&&(n.style.width=S.x+"px",n.style.height=S.y+"px")},_createImg:function(n,l){return l=l||document.createElement("img"),l.src=n,l},_getIconUrl:function(n){return pt.retina&&this.options[n+"RetinaUrl"]||this.options[n+"Url"]}});function SO(n){return new Ql(n)}var Cu=Ql.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(n){return typeof Cu.imagePath!="string"&&(Cu.imagePath=this._detectIconPath()),(this.options.imagePath||Cu.imagePath)+Ql.prototype._getIconUrl.call(this,n)},_stripUrl:function(n){var l=function(p,b,S){var B=b.exec(p);return B&&B[S]};return n=l(n,/^url\((['"])?(.+)\1\)$/,2),n&&l(n,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var n=wn("div","leaflet-default-icon-path",document.body),l=es(n,"background-image")||es(n,"backgroundImage");if(document.body.removeChild(n),l=this._stripUrl(l),l)return l;var p=document.querySelector('link[href$="leaflet.css"]');return p?p.href.substring(0,p.href.length-11-1):""}}),Pw=vs.extend({initialize:function(n){this._marker=n},addHooks:function(){var n=this._marker._icon;this._draggable||(this._draggable=new ca(n,n,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),an(n,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&$e(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(n){var l=this._marker,p=l._map,b=this._marker.options.autoPanSpeed,S=this._marker.options.autoPanPadding,B=Da(l._icon),J=p.getPixelBounds(),se=p.getPixelOrigin(),me=rt(J.min._subtract(se).add(S),J.max._subtract(se).subtract(S));if(!me.contains(B)){var Ae=ke((Math.max(me.max.x,B.x)-me.max.x)/(J.max.x-me.max.x)-(Math.min(me.min.x,B.x)-me.min.x)/(J.min.x-me.min.x),(Math.max(me.max.y,B.y)-me.max.y)/(J.max.y-me.max.y)-(Math.min(me.min.y,B.y)-me.min.y)/(J.min.y-me.min.y)).multiplyBy(b);p.panBy(Ae,{animate:!1}),this._draggable._newPos._add(Ae),this._draggable._startPos._add(Ae),Do(l._icon,this._draggable._newPos),this._onDrag(n),this._panRequest=oe(this._adjustPan.bind(this,n))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(n){this._marker.options.autoPan&&(be(this._panRequest),this._panRequest=oe(this._adjustPan.bind(this,n)))},_onDrag:function(n){var l=this._marker,p=l._shadow,b=Da(l._icon),S=l._map.layerPointToLatLng(b);p&&Do(p,b),l._latlng=S,n.latlng=S,n.oldLatLng=this._oldLatLng,l.fire("move",n).fire("drag",n)},_onDragEnd:function(n){be(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",n)}}),Oh=os.extend({options:{icon:new Cu,interactive:!0,keyboard:!0,title:"",alt:"Marker",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:!1,autoPanOnFocus:!0,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(n,l){A(this,l),this._latlng=Se(n)},onAdd:function(n){this._zoomAnimated=this._zoomAnimated&&n.options.markerZoomAnimation,this._zoomAnimated&&n.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(n){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&n.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(n){var l=this._latlng;return this._latlng=Se(n),this.update(),this.fire("move",{oldLatLng:l,latlng:this._latlng})},setZIndexOffset:function(n){return this.options.zIndexOffset=n,this.update()},getIcon:function(){return this.options.icon},setIcon:function(n){return this.options.icon=n,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){if(this._icon&&this._map){var n=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(n)}return this},_initIcon:function(){var n=this.options,l="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),p=n.icon.createIcon(this._icon),b=!1;p!==this._icon&&(this._icon&&this._removeIcon(),b=!0,n.title&&(p.title=n.title),p.tagName==="IMG"&&(p.alt=n.alt||"")),an(p,l),n.keyboard&&(p.tabIndex="0",p.setAttribute("role","button")),this._icon=p,n.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&un(p,"focus",this._panOnFocus,this);var S=n.icon.createShadow(this._shadow),B=!1;S!==this._shadow&&(this._removeShadow(),B=!0),S&&(an(S,l),S.alt=""),this._shadow=S,n.opacity<1&&this._updateOpacity(),b&&this.getPane().appendChild(this._icon),this._initInteraction(),S&&B&&this.getPane(n.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&So(this._icon,"focus",this._panOnFocus,this),uo(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&uo(this._shadow),this._shadow=null},_setPos:function(n){this._icon&&Do(this._icon,n),this._shadow&&Do(this._shadow,n),this._zIndex=n.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(n){this._icon&&(this._icon.style.zIndex=this._zIndex+n)},_animateZoom:function(n){var l=this._map._latLngToNewLayerPoint(this._latlng,n.zoom,n.center).round();this._setPos(l)},_initInteraction:function(){if(this.options.interactive&&(an(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),Pw)){var n=this.options.draggable;this.dragging&&(n=this.dragging.enabled(),this.dragging.disable()),this.dragging=new Pw(this),n&&this.dragging.enable()}},setOpacity:function(n){return this.options.opacity=n,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var n=this.options.opacity;this._icon&&ci(this._icon,n),this._shadow&&ci(this._shadow,n)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var n=this._map;if(n){var l=this.options.icon.options,p=l.iconSize?ke(l.iconSize):ke(0,0),b=l.iconAnchor?ke(l.iconAnchor):ke(0,0);n.panInside(this._latlng,{paddingTopLeft:b,paddingBottomRight:p.subtract(b)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function EO(n,l){return new Oh(n,l)}var ua=os.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:!0,bubblingMouseEvents:!0},beforeAdd:function(n){this._renderer=n.getRenderer(this)},onAdd:function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){return this._map&&this._renderer._updatePath(this),this},setStyle:function(n){return A(this,n),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&n&&Object.prototype.hasOwnProperty.call(n,"weight")&&this._updateBounds()),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+(this._renderer.options.tolerance||0)}}),Rh=ua.extend({options:{fill:!0,radius:10},initialize:function(n,l){A(this,l),this._latlng=Se(n),this._radius=this.options.radius},setLatLng:function(n){var l=this._latlng;return this._latlng=Se(n),this.redraw(),this.fire("move",{oldLatLng:l,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(n){return this.options.radius=this._radius=n,this.redraw()},getRadius:function(){return this._radius},setStyle:function(n){var l=n&&n.radius||this._radius;return ua.prototype.setStyle.call(this,n),this.setRadius(l),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var n=this._radius,l=this._radiusY||n,p=this._clickTolerance(),b=[n+p,l+p];this._pxBounds=new Ne(this._point.subtract(b),this._point.add(b))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(n){return n.distanceTo(this._point)<=this._radius+this._clickTolerance()}});function PO(n,l){return new Rh(n,l)}var jg=Rh.extend({initialize:function(n,l,p){if(typeof l=="number"&&(l=c({},p,{radius:l})),A(this,l),this._latlng=Se(n),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(n){return this._mRadius=n,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var n=[this._radius,this._radiusY||this._radius];return new We(this._map.layerPointToLatLng(this._point.subtract(n)),this._map.layerPointToLatLng(this._point.add(n)))},setStyle:ua.prototype.setStyle,_project:function(){var n=this._latlng.lng,l=this._latlng.lat,p=this._map,b=p.options.crs;if(b.distance===tt.distance){var S=Math.PI/180,B=this._mRadius/tt.R/S,J=p.project([l+B,n]),se=p.project([l-B,n]),me=J.add(se).divideBy(2),Ae=p.unproject(me).lat,mt=Math.acos((Math.cos(B*S)-Math.sin(l*S)*Math.sin(Ae*S))/(Math.cos(l*S)*Math.cos(Ae*S)))/S;(isNaN(mt)||mt===0)&&(mt=B/Math.cos(Math.PI/180*l)),this._point=me.subtract(p.getPixelOrigin()),this._radius=isNaN(mt)?0:me.x-p.project([Ae,n-mt]).x,this._radiusY=me.y-J.y}else{var Gt=b.unproject(b.project(this._latlng).subtract([this._mRadius,0]));this._point=p.latLngToLayerPoint(this._latlng),this._radius=this._point.x-p.latLngToLayerPoint(Gt).x}this._updateBounds()}});function kO(n,l,p){return new jg(n,l,p)}var $s=ua.extend({options:{smoothFactor:1,noClip:!1},initialize:function(n,l){A(this,l),this._setLatLngs(n)},getLatLngs:function(){return this._latlngs},setLatLngs:function(n){return this._setLatLngs(n),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(n){for(var l=1/0,p=null,b=wu,S,B,J=0,se=this._parts.length;J<se;J++)for(var me=this._parts[J],Ae=1,mt=me.length;Ae<mt;Ae++){S=me[Ae-1],B=me[Ae];var Gt=b(n,S,B,!0);Gt<l&&(l=Gt,p=b(n,S,B))}return p&&(p.distance=Math.sqrt(l)),p},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return Sw(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(n,l){return l=l||this._defaultShape(),n=Se(n),l.push(n),this._bounds.extend(n),this.redraw()},_setLatLngs:function(n){this._bounds=new We,this._latlngs=this._convertLatLngs(n)},_defaultShape:function(){return Rr(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(n){for(var l=[],p=Rr(n),b=0,S=n.length;b<S;b++)p?(l[b]=Se(n[b]),this._bounds.extend(l[b])):l[b]=this._convertLatLngs(n[b]);return l},_project:function(){var n=new Ne;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,n),this._bounds.isValid()&&n.isValid()&&(this._rawPxBounds=n,this._updateBounds())},_updateBounds:function(){var n=this._clickTolerance(),l=new _e(n,n);this._rawPxBounds&&(this._pxBounds=new Ne([this._rawPxBounds.min.subtract(l),this._rawPxBounds.max.add(l)]))},_projectLatlngs:function(n,l,p){var b=n[0]instanceof ze,S=n.length,B,J;if(b){for(J=[],B=0;B<S;B++)J[B]=this._map.latLngToLayerPoint(n[B]),p.extend(J[B]);l.push(J)}else for(B=0;B<S;B++)this._projectLatlngs(n[B],l,p)},_clipPoints:function(){var n=this._renderer._bounds;if(this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(n))){if(this.options.noClip){this._parts=this._rings;return}var l=this._parts,p,b,S,B,J,se,me;for(p=0,S=0,B=this._rings.length;p<B;p++)for(me=this._rings[p],b=0,J=me.length;b<J-1;b++)se=ww(me[b],me[b+1],n,b,!0),se&&(l[S]=l[S]||[],l[S].push(se[0]),(se[1]!==me[b+1]||b===J-2)&&(l[S].push(se[1]),S++))}},_simplifyPoints:function(){for(var n=this._parts,l=this.options.smoothFactor,p=0,b=n.length;p<b;p++)n[p]=_w(n[p],l)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(n,l){var p,b,S,B,J,se,me=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(n))return!1;for(p=0,B=this._parts.length;p<B;p++)for(se=this._parts[p],b=0,J=se.length,S=J-1;b<J;S=b++)if(!(!l&&b===0)&&bw(n,se[S],se[b])<=me)return!0;return!1}});function IO(n,l){return new $s(n,l)}$s._flat=Cw;var Jl=$s.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return yw(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(n){var l=$s.prototype._convertLatLngs.call(this,n),p=l.length;return p>=2&&l[0]instanceof ze&&l[0].equals(l[p-1])&&l.pop(),l},_setLatLngs:function(n){$s.prototype._setLatLngs.call(this,n),Rr(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return Rr(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var n=this._renderer._bounds,l=this.options.weight,p=new _e(l,l);if(n=new Ne(n.min.subtract(p),n.max.add(p)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(n))){if(this.options.noClip){this._parts=this._rings;return}for(var b=0,S=this._rings.length,B;b<S;b++)B=vw(this._rings[b],n,!0),B.length&&this._parts.push(B)}},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(n){var l=!1,p,b,S,B,J,se,me,Ae;if(!this._pxBounds||!this._pxBounds.contains(n))return!1;for(B=0,me=this._parts.length;B<me;B++)for(p=this._parts[B],J=0,Ae=p.length,se=Ae-1;J<Ae;se=J++)b=p[J],S=p[se],b.y>n.y!=S.y>n.y&&n.x<(S.x-b.x)*(n.y-b.y)/(S.y-b.y)+b.x&&(l=!l);return l||$s.prototype._containsPoint.call(this,n,!0)}});function MO(n,l){return new Jl(n,l)}var Ds=Ns.extend({initialize:function(n,l){A(this,l),this._layers={},n&&this.addData(n)},addData:function(n){var l=W(n)?n:n.features,p,b,S;if(l){for(p=0,b=l.length;p<b;p++)S=l[p],(S.geometries||S.geometry||S.features||S.coordinates)&&this.addData(S);return this}var B=this.options;if(B.filter&&!B.filter(n))return this;var J=zh(n,B);return J?(J.feature=$h(n),J.defaultOptions=J.options,this.resetStyle(J),B.onEachFeature&&B.onEachFeature(n,J),this.addLayer(J)):this},resetStyle:function(n){return n===void 0?this.eachLayer(this.resetStyle,this):(n.options=c({},n.defaultOptions),this._setLayerStyle(n,this.options.style),this)},setStyle:function(n){return this.eachLayer(function(l){this._setLayerStyle(l,n)},this)},_setLayerStyle:function(n,l){n.setStyle&&(typeof l=="function"&&(l=l(n.feature)),n.setStyle(l))}});function zh(n,l){var p=n.type==="Feature"?n.geometry:n,b=p?p.coordinates:null,S=[],B=l&&l.pointToLayer,J=l&&l.coordsToLatLng||Zg,se,me,Ae,mt;if(!b&&!p)return null;switch(p.type){case"Point":return se=J(b),kw(B,n,se,l);case"MultiPoint":for(Ae=0,mt=b.length;Ae<mt;Ae++)se=J(b[Ae]),S.push(kw(B,n,se,l));return new Ns(S);case"LineString":case"MultiLineString":return me=Bh(b,p.type==="LineString"?0:1,J),new $s(me,l);case"Polygon":case"MultiPolygon":return me=Bh(b,p.type==="Polygon"?1:2,J),new Jl(me,l);case"GeometryCollection":for(Ae=0,mt=p.geometries.length;Ae<mt;Ae++){var Gt=zh({geometry:p.geometries[Ae],type:"Feature",properties:n.properties},l);Gt&&S.push(Gt)}return new Ns(S);case"FeatureCollection":for(Ae=0,mt=p.features.length;Ae<mt;Ae++){var kn=zh(p.features[Ae],l);kn&&S.push(kn)}return new Ns(S);default:throw new Error("Invalid GeoJSON object.")}}function kw(n,l,p,b){return n?n(l,p):new Oh(p,b&&b.markersInheritOptions&&b)}function Zg(n){return new ze(n[1],n[0],n[2])}function Bh(n,l,p){for(var b=[],S=0,B=n.length,J;S<B;S++)J=l?Bh(n[S],l-1,p):(p||Zg)(n[S]),b.push(J);return b}function Vg(n,l){return n=Se(n),n.alt!==void 0?[O(n.lng,l),O(n.lat,l),O(n.alt,l)]:[O(n.lng,l),O(n.lat,l)]}function Nh(n,l,p,b){for(var S=[],B=0,J=n.length;B<J;B++)S.push(l?Nh(n[B],Rr(n[B])?0:l-1,p,b):Vg(n[B],b));return!l&&p&&S.length>0&&S.push(S[0].slice()),S}function Kl(n,l){return n.feature?c({},n.feature,{geometry:l}):$h(l)}function $h(n){return n.type==="Feature"||n.type==="FeatureCollection"?n:{type:"Feature",properties:{},geometry:n}}var Wg={toGeoJSON:function(n){return Kl(this,{type:"Point",coordinates:Vg(this.getLatLng(),n)})}};Oh.include(Wg),jg.include(Wg),Rh.include(Wg),$s.include({toGeoJSON:function(n){var l=!Rr(this._latlngs),p=Nh(this._latlngs,l?1:0,!1,n);return Kl(this,{type:(l?"Multi":"")+"LineString",coordinates:p})}}),Jl.include({toGeoJSON:function(n){var l=!Rr(this._latlngs),p=l&&!Rr(this._latlngs[0]),b=Nh(this._latlngs,p?2:l?1:0,!0,n);return l||(b=[b]),Kl(this,{type:(p?"Multi":"")+"Polygon",coordinates:b})}}),Ul.include({toMultiPoint:function(n){var l=[];return this.eachLayer(function(p){l.push(p.toGeoJSON(n).geometry.coordinates)}),Kl(this,{type:"MultiPoint",coordinates:l})},toGeoJSON:function(n){var l=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(l==="MultiPoint")return this.toMultiPoint(n);var p=l==="GeometryCollection",b=[];return this.eachLayer(function(S){if(S.toGeoJSON){var B=S.toGeoJSON(n);if(p)b.push(B.geometry);else{var J=$h(B);J.type==="FeatureCollection"?b.push.apply(b,J.features):b.push(J)}}}),p?Kl(this,{geometries:b,type:"GeometryCollection"}):{type:"FeatureCollection",features:b}}});function Iw(n,l){return new Ds(n,l)}var TO=Iw,Dh=os.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(n,l,p){this._url=n,this._bounds=Ge(l),A(this,p)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(an(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){uo(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(n){return this.options.opacity=n,this._image&&this._updateOpacity(),this},setStyle:function(n){return n.opacity&&this.setOpacity(n.opacity),this},bringToFront:function(){return this._map&&ts(this._image),this},bringToBack:function(){return this._map&&ms(this._image),this},setUrl:function(n){return this._url=n,this._image&&(this._image.src=n),this},setBounds:function(n){return this._bounds=Ge(n),this._map&&this._reset(),this},getEvents:function(){var n={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(n.zoomanim=this._animateZoom),n},setZIndex:function(n){return this.options.zIndex=n,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var n=this._url.tagName==="IMG",l=this._image=n?this._url:wn("img");if(an(l,"leaflet-image-layer"),this._zoomAnimated&&an(l,"leaflet-zoom-animated"),this.options.className&&an(l,this.options.className),l.onselectstart=I,l.onmousemove=I,l.onload=g(this.fire,this,"load"),l.onerror=g(this._overlayOnError,this,"error"),(this.options.crossOrigin||this.options.crossOrigin==="")&&(l.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),n){this._url=l.src;return}l.src=this._url,l.alt=this.options.alt},_animateZoom:function(n){var l=this._map.getZoomScale(n.zoom),p=this._map._latLngBoundsToNewLayerBounds(this._bounds,n.zoom,n.center).min;Bs(this._image,p,l)},_reset:function(){var n=this._image,l=new Ne(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),p=l.getSize();Do(n,l.min),n.style.width=p.x+"px",n.style.height=p.y+"px"},_updateOpacity:function(){ci(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var n=this.options.errorOverlayUrl;n&&this._url!==n&&(this._url=n,this._image.src=n)},getCenter:function(){return this._bounds.getCenter()}}),LO=function(n,l,p){return new Dh(n,l,p)},Mw=Dh.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var n=this._url.tagName==="VIDEO",l=this._image=n?this._url:wn("video");if(an(l,"leaflet-image-layer"),this._zoomAnimated&&an(l,"leaflet-zoom-animated"),this.options.className&&an(l,this.options.className),l.onselectstart=I,l.onmousemove=I,l.onloadeddata=g(this.fire,this,"load"),n){for(var p=l.getElementsByTagName("source"),b=[],S=0;S<p.length;S++)b.push(p[S].src);this._url=p.length>0?b:[l.src];return}W(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(l.style,"objectFit")&&(l.style.objectFit="fill"),l.autoplay=!!this.options.autoplay,l.loop=!!this.options.loop,l.muted=!!this.options.muted,l.playsInline=!!this.options.playsInline;for(var B=0;B<this._url.length;B++){var J=wn("source");J.src=this._url[B],l.appendChild(J)}}});function AO(n,l,p){return new Mw(n,l,p)}var Tw=Dh.extend({_initImage:function(){var n=this._image=this._url;an(n,"leaflet-image-layer"),this._zoomAnimated&&an(n,"leaflet-zoom-animated"),this.options.className&&an(n,this.options.className),n.onselectstart=I,n.onmousemove=I}});function OO(n,l,p){return new Tw(n,l,p)}var ys=os.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(n,l){n&&(n instanceof ze||W(n))?(this._latlng=Se(n),A(this,l)):(A(this,n),this._source=l),this.options.content&&(this._content=this.options.content)},openOn:function(n){return n=arguments.length?n:this._source._map,n.hasLayer(this)||n.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(n){return this._map?this.close():(arguments.length?this._source=n:n=this._source,this._prepareOpen(),this.openOn(n._map)),this},onAdd:function(n){this._zoomAnimated=n._zoomAnimated,this._container||this._initLayout(),n._fadeAnimated&&ci(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),n._fadeAnimated&&ci(this._container,1),this.bringToFront(),this.options.interactive&&(an(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(n){n._fadeAnimated?(ci(this._container,0),this._removeTimeout=setTimeout(g(uo,void 0,this._container),200)):uo(this._container),this.options.interactive&&($e(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(n){return this._latlng=Se(n),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(n){return this._content=n,this.update(),this},getElement:function(){return this._container},update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},getEvents:function(){var n={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(n.zoomanim=this._animateZoom),n},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&ts(this._container),this},bringToBack:function(){return this._map&&ms(this._container),this},_prepareOpen:function(n){var l=this._source;if(!l._map)return!1;if(l instanceof Ns){l=null;var p=this._source._layers;for(var b in p)if(p[b]._map){l=p[b];break}if(!l)return!1;this._source=l}if(!n)if(l.getCenter)n=l.getCenter();else if(l.getLatLng)n=l.getLatLng();else if(l.getBounds)n=l.getBounds().getCenter();else throw new Error("Unable to get source layer LatLng.");return this.setLatLng(n),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var n=this._contentNode,l=typeof this._content=="function"?this._content(this._source||this):this._content;if(typeof l=="string")n.innerHTML=l;else{for(;n.hasChildNodes();)n.removeChild(n.firstChild);n.appendChild(l)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var n=this._map.latLngToLayerPoint(this._latlng),l=ke(this.options.offset),p=this._getAnchor();this._zoomAnimated?Do(this._container,n.add(p)):l=l.add(n).add(p);var b=this._containerBottom=-l.y,S=this._containerLeft=-Math.round(this._containerWidth/2)+l.x;this._container.style.bottom=b+"px",this._container.style.left=S+"px"}},_getAnchor:function(){return[0,0]}});Hn.include({_initOverlay:function(n,l,p,b){var S=l;return S instanceof n||(S=new n(b).setContent(l)),p&&S.setLatLng(p),S}}),os.include({_initOverlay:function(n,l,p,b){var S=p;return S instanceof n?(A(S,b),S._source=this):(S=l&&!b?l:new n(b,this),S.setContent(p)),S}});var Fh=ys.extend({options:{pane:"popupPane",offset:[0,7],maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,closeOnEscapeKey:!0,className:""},openOn:function(n){return n=arguments.length?n:this._source._map,!n.hasLayer(this)&&n._popup&&n._popup.options.autoClose&&n.removeLayer(n._popup),n._popup=this,ys.prototype.openOn.call(this,n)},onAdd:function(n){ys.prototype.onAdd.call(this,n),n.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof ua||this._source.on("preclick",Fa))},onRemove:function(n){ys.prototype.onRemove.call(this,n),n.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof ua||this._source.off("preclick",Fa))},getEvents:function(){var n=ys.prototype.getEvents.call(this);return(this.options.closeOnClick!==void 0?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(n.preclick=this.close),this.options.keepInView&&(n.moveend=this._adjustPan),n},_initLayout:function(){var n="leaflet-popup",l=this._container=wn("div",n+" "+(this.options.className||"")+" leaflet-zoom-animated"),p=this._wrapper=wn("div",n+"-content-wrapper",l);if(this._contentNode=wn("div",n+"-content",p),bu(l),Rg(this._contentNode),un(l,"contextmenu",Fa),this._tipContainer=wn("div",n+"-tip-container",l),this._tip=wn("div",n+"-tip",this._tipContainer),this.options.closeButton){var b=this._closeButton=wn("a",n+"-close-button",l);b.setAttribute("role","button"),b.setAttribute("aria-label","Close popup"),b.href="#close",b.innerHTML='<span aria-hidden="true">×</span>',un(b,"click",function(S){Hi(S),this.close()},this)}},_updateLayout:function(){var n=this._contentNode,l=n.style;l.width="",l.whiteSpace="nowrap";var p=n.offsetWidth;p=Math.min(p,this.options.maxWidth),p=Math.max(p,this.options.minWidth),l.width=p+1+"px",l.whiteSpace="",l.height="";var b=n.offsetHeight,S=this.options.maxHeight,B="leaflet-popup-scrolled";S&&b>S?(l.height=S+"px",an(n,B)):$e(n,B),this._containerWidth=this._container.offsetWidth},_animateZoom:function(n){var l=this._map._latLngToNewLayerPoint(this._latlng,n.zoom,n.center),p=this._getAnchor();Do(this._container,l.add(p))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning){this._autopanning=!1;return}var n=this._map,l=parseInt(es(this._container,"marginBottom"),10)||0,p=this._container.offsetHeight+l,b=this._containerWidth,S=new _e(this._containerLeft,-p-this._containerBottom);S._add(Da(this._container));var B=n.layerPointToContainerPoint(S),J=ke(this.options.autoPanPadding),se=ke(this.options.autoPanPaddingTopLeft||J),me=ke(this.options.autoPanPaddingBottomRight||J),Ae=n.getSize(),mt=0,Gt=0;B.x+b+me.x>Ae.x&&(mt=B.x+b-Ae.x+me.x),B.x-mt-se.x<0&&(mt=B.x-se.x),B.y+p+me.y>Ae.y&&(Gt=B.y+p-Ae.y+me.y),B.y-Gt-se.y<0&&(Gt=B.y-se.y),(mt||Gt)&&(this.options.keepInView&&(this._autopanning=!0),n.fire("autopanstart").panBy([mt,Gt]))}},_getAnchor:function(){return ke(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),RO=function(n,l){return new Fh(n,l)};Hn.mergeOptions({closePopupOnClick:!0}),Hn.include({openPopup:function(n,l,p){return this._initOverlay(Fh,n,l,p).openOn(this),this},closePopup:function(n){return n=arguments.length?n:this._popup,n&&n.close(),this}}),os.include({bindPopup:function(n,l){return this._popup=this._initOverlay(Fh,this._popup,n,l),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(n){return this._popup&&(this instanceof Ns||(this._popup._source=this),this._popup._prepareOpen(n||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return this._popup?this._popup.isOpen():!1},setPopupContent:function(n){return this._popup&&this._popup.setContent(n),this},getPopup:function(){return this._popup},_openPopup:function(n){if(!(!this._popup||!this._map)){Ha(n);var l=n.layer||n.target;if(this._popup._source===l&&!(l instanceof ua)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(n.latlng);return}this._popup._source=l,this.openPopup(n.latlng)}},_movePopup:function(n){this._popup.setLatLng(n.latlng)},_onKeyPress:function(n){n.originalEvent.keyCode===13&&this._openPopup(n)}});var Hh=ys.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(n){ys.prototype.onAdd.call(this,n),this.setOpacity(this.options.opacity),n.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(n){ys.prototype.onRemove.call(this,n),n.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var n=ys.prototype.getEvents.call(this);return this.options.permanent||(n.preclick=this.close),n},_initLayout:function(){var n="leaflet-tooltip",l=n+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=wn("div",l),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+w(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(n){var l,p,b=this._map,S=this._container,B=b.latLngToContainerPoint(b.getCenter()),J=b.layerPointToContainerPoint(n),se=this.options.direction,me=S.offsetWidth,Ae=S.offsetHeight,mt=ke(this.options.offset),Gt=this._getAnchor();se==="top"?(l=me/2,p=Ae):se==="bottom"?(l=me/2,p=0):se==="center"?(l=me/2,p=Ae/2):se==="right"?(l=0,p=Ae/2):se==="left"?(l=me,p=Ae/2):J.x<B.x?(se="right",l=0,p=Ae/2):(se="left",l=me+(mt.x+Gt.x)*2,p=Ae/2),n=n.subtract(ke(l,p,!0)).add(mt).add(Gt),$e(S,"leaflet-tooltip-right"),$e(S,"leaflet-tooltip-left"),$e(S,"leaflet-tooltip-top"),$e(S,"leaflet-tooltip-bottom"),an(S,"leaflet-tooltip-"+se),Do(S,n)},_updatePosition:function(){var n=this._map.latLngToLayerPoint(this._latlng);this._setPosition(n)},setOpacity:function(n){this.options.opacity=n,this._container&&ci(this._container,n)},_animateZoom:function(n){var l=this._map._latLngToNewLayerPoint(this._latlng,n.zoom,n.center);this._setPosition(l)},_getAnchor:function(){return ke(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),zO=function(n,l){return new Hh(n,l)};Hn.include({openTooltip:function(n,l,p){return this._initOverlay(Hh,n,l,p).openOn(this),this},closeTooltip:function(n){return n.close(),this}}),os.include({bindTooltip:function(n,l){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(Hh,this._tooltip,n,l),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(n){if(!(!n&&this._tooltipHandlersAdded)){var l=n?"off":"on",p={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?p.add=this._openTooltip:(p.mouseover=this._openTooltip,p.mouseout=this.closeTooltip,p.click=this._openTooltip,this._map?this._addFocusListeners():p.add=this._addFocusListeners),this._tooltip.options.sticky&&(p.mousemove=this._moveTooltip),this[l](p),this._tooltipHandlersAdded=!n}},openTooltip:function(n){return this._tooltip&&(this instanceof Ns||(this._tooltip._source=this),this._tooltip._prepareOpen(n)&&(this._tooltip.openOn(this._map),this.getElement?this._setAriaDescribedByOnLayer(this):this.eachLayer&&this.eachLayer(this._setAriaDescribedByOnLayer,this))),this},closeTooltip:function(){if(this._tooltip)return this._tooltip.close()},toggleTooltip:function(){return this._tooltip&&this._tooltip.toggle(this),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(n){return this._tooltip&&this._tooltip.setContent(n),this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},_addFocusListenersOnLayer:function(n){var l=typeof n.getElement=="function"&&n.getElement();l&&(un(l,"focus",function(){this._tooltip._source=n,this.openTooltip()},this),un(l,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(n){var l=typeof n.getElement=="function"&&n.getElement();l&&l.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(n){if(!(!this._tooltip||!this._map)){if(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag){this._openOnceFlag=!0;var l=this;this._map.once("moveend",function(){l._openOnceFlag=!1,l._openTooltip(n)});return}this._tooltip._source=n.layer||n.target,this.openTooltip(this._tooltip.options.sticky?n.latlng:void 0)}},_moveTooltip:function(n){var l=n.latlng,p,b;this._tooltip.options.sticky&&n.originalEvent&&(p=this._map.mouseEventToContainerPoint(n.originalEvent),b=this._map.containerPointToLayerPoint(p),l=this._map.layerPointToLatLng(b)),this._tooltip.setLatLng(l)}});var Lw=Ql.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(n){var l=n&&n.tagName==="DIV"?n:document.createElement("div"),p=this.options;if(p.html instanceof Element?(ps(l),l.appendChild(p.html)):l.innerHTML=p.html!==!1?p.html:"",p.bgPos){var b=ke(p.bgPos);l.style.backgroundPosition=-b.x+"px "+-b.y+"px"}return this._setIconStyles(l,"icon"),l},createShadow:function(){return null}});function BO(n){return new Lw(n)}Ql.Default=Cu;var Su=os.extend({options:{tileSize:256,opacity:1,updateWhenIdle:pt.mobile,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize:function(n){A(this,n)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(n){n._addZoomLimit(this)},onRemove:function(n){this._removeAllTiles(),uo(this._container),n._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(ts(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(ms(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(n){return this.options.opacity=n,this._updateOpacity(),this},setZIndex:function(n){return this.options.zIndex=n,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var n=this._clampZoom(this._map.getZoom());n!==this._tileZoom&&(this._tileZoom=n,this._updateLevels()),this._update()}return this},getEvents:function(){var n={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=P(this._onMoveEnd,this.options.updateInterval,this)),n.move=this._onMove),this._zoomAnimated&&(n.zoomanim=this._animateZoom),n},createTile:function(){return document.createElement("div")},getTileSize:function(){var n=this.options.tileSize;return n instanceof _e?n:new _e(n,n)},_updateZIndex:function(){this._container&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(n){for(var l=this.getPane().children,p=-n(-1/0,1/0),b=0,S=l.length,B;b<S;b++)B=l[b].style.zIndex,l[b]!==this._container&&B&&(p=n(p,+B));isFinite(p)&&(this.options.zIndex=p+n(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!pt.ielt9){ci(this._container,this.options.opacity);var n=+new Date,l=!1,p=!1;for(var b in this._tiles){var S=this._tiles[b];if(!(!S.current||!S.loaded)){var B=Math.min(1,(n-S.loaded)/200);ci(S.el,B),B<1?l=!0:(S.active?p=!0:this._onOpaqueTile(S),S.active=!0)}}p&&!this._noPrune&&this._pruneTiles(),l&&(be(this._fadeFrame),this._fadeFrame=oe(this._updateOpacity,this))}},_onOpaqueTile:I,_initContainer:function(){this._container||(this._container=wn("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var n=this._tileZoom,l=this.options.maxZoom;if(n!==void 0){for(var p in this._levels)p=Number(p),this._levels[p].el.children.length||p===n?(this._levels[p].el.style.zIndex=l-Math.abs(n-p),this._onUpdateLevel(p)):(uo(this._levels[p].el),this._removeTilesAtZoom(p),this._onRemoveLevel(p),delete this._levels[p]);var b=this._levels[n],S=this._map;return b||(b=this._levels[n]={},b.el=wn("div","leaflet-tile-container leaflet-zoom-animated",this._container),b.el.style.zIndex=l,b.origin=S.project(S.unproject(S.getPixelOrigin()),n).round(),b.zoom=n,this._setZoomTransform(b,S.getCenter(),S.getZoom()),I(b.el.offsetWidth),this._onCreateLevel(b)),this._level=b,b}},_onUpdateLevel:I,_onRemoveLevel:I,_onCreateLevel:I,_pruneTiles:function(){if(this._map){var n,l,p=this._map.getZoom();if(p>this.options.maxZoom||p<this.options.minZoom){this._removeAllTiles();return}for(n in this._tiles)l=this._tiles[n],l.retain=l.current;for(n in this._tiles)if(l=this._tiles[n],l.current&&!l.active){var b=l.coords;this._retainParent(b.x,b.y,b.z,b.z-5)||this._retainChildren(b.x,b.y,b.z,b.z+2)}for(n in this._tiles)this._tiles[n].retain||this._removeTile(n)}},_removeTilesAtZoom:function(n){for(var l in this._tiles)this._tiles[l].coords.z===n&&this._removeTile(l)},_removeAllTiles:function(){for(var n in this._tiles)this._removeTile(n)},_invalidateAll:function(){for(var n in this._levels)uo(this._levels[n].el),this._onRemoveLevel(Number(n)),delete this._levels[n];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(n,l,p,b){var S=Math.floor(n/2),B=Math.floor(l/2),J=p-1,se=new _e(+S,+B);se.z=+J;var me=this._tileCoordsToKey(se),Ae=this._tiles[me];return Ae&&Ae.active?(Ae.retain=!0,!0):(Ae&&Ae.loaded&&(Ae.retain=!0),J>b?this._retainParent(S,B,J,b):!1)},_retainChildren:function(n,l,p,b){for(var S=2*n;S<2*n+2;S++)for(var B=2*l;B<2*l+2;B++){var J=new _e(S,B);J.z=p+1;var se=this._tileCoordsToKey(J),me=this._tiles[se];if(me&&me.active){me.retain=!0;continue}else me&&me.loaded&&(me.retain=!0);p+1<b&&this._retainChildren(S,B,p+1,b)}},_resetView:function(n){var l=n&&(n.pinch||n.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),l,l)},_animateZoom:function(n){this._setView(n.center,n.zoom,!0,n.noUpdate)},_clampZoom:function(n){var l=this.options;return l.minNativeZoom!==void 0&&n<l.minNativeZoom?l.minNativeZoom:l.maxNativeZoom!==void 0&&l.maxNativeZoom<n?l.maxNativeZoom:n},_setView:function(n,l,p,b){var S=Math.round(l);this.options.maxZoom!==void 0&&S>this.options.maxZoom||this.options.minZoom!==void 0&&S<this.options.minZoom?S=void 0:S=this._clampZoom(S);var B=this.options.updateWhenZooming&&S!==this._tileZoom;(!b||B)&&(this._tileZoom=S,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),S!==void 0&&this._update(n),p||this._pruneTiles(),this._noPrune=!!p),this._setZoomTransforms(n,l)},_setZoomTransforms:function(n,l){for(var p in this._levels)this._setZoomTransform(this._levels[p],n,l)},_setZoomTransform:function(n,l,p){var b=this._map.getZoomScale(p,n.zoom),S=n.origin.multiplyBy(b).subtract(this._map._getNewPixelOrigin(l,p)).round();pt.any3d?Bs(n.el,S,b):Do(n.el,S)},_resetGrid:function(){var n=this._map,l=n.options.crs,p=this._tileSize=this.getTileSize(),b=this._tileZoom,S=this._map.getPixelWorldBounds(this._tileZoom);S&&(this._globalTileRange=this._pxBoundsToTileRange(S)),this._wrapX=l.wrapLng&&!this.options.noWrap&&[Math.floor(n.project([0,l.wrapLng[0]],b).x/p.x),Math.ceil(n.project([0,l.wrapLng[1]],b).x/p.y)],this._wrapY=l.wrapLat&&!this.options.noWrap&&[Math.floor(n.project([l.wrapLat[0],0],b).y/p.x),Math.ceil(n.project([l.wrapLat[1],0],b).y/p.y)]},_onMoveEnd:function(){!this._map||this._map._animatingZoom||this._update()},_getTiledPixelBounds:function(n){var l=this._map,p=l._animatingZoom?Math.max(l._animateToZoom,l.getZoom()):l.getZoom(),b=l.getZoomScale(p,this._tileZoom),S=l.project(n,this._tileZoom).floor(),B=l.getSize().divideBy(b*2);return new Ne(S.subtract(B),S.add(B))},_update:function(n){var l=this._map;if(l){var p=this._clampZoom(l.getZoom());if(n===void 0&&(n=l.getCenter()),this._tileZoom!==void 0){var b=this._getTiledPixelBounds(n),S=this._pxBoundsToTileRange(b),B=S.getCenter(),J=[],se=this.options.keepBuffer,me=new Ne(S.getBottomLeft().subtract([se,-se]),S.getTopRight().add([se,-se]));if(!(isFinite(S.min.x)&&isFinite(S.min.y)&&isFinite(S.max.x)&&isFinite(S.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var Ae in this._tiles){var mt=this._tiles[Ae].coords;(mt.z!==this._tileZoom||!me.contains(new _e(mt.x,mt.y)))&&(this._tiles[Ae].current=!1)}if(Math.abs(p-this._tileZoom)>1){this._setView(n,p);return}for(var Gt=S.min.y;Gt<=S.max.y;Gt++)for(var kn=S.min.x;kn<=S.max.x;kn++){var er=new _e(kn,Gt);if(er.z=this._tileZoom,!!this._isValidTile(er)){var Oi=this._tiles[this._tileCoordsToKey(er)];Oi?Oi.current=!0:J.push(er)}}if(J.sort(function(dr,Xl){return dr.distanceTo(B)-Xl.distanceTo(B)}),J.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var zr=document.createDocumentFragment();for(kn=0;kn<J.length;kn++)this._addTile(J[kn],zr);this._level.el.appendChild(zr)}}}},_isValidTile:function(n){var l=this._map.options.crs;if(!l.infinite){var p=this._globalTileRange;if(!l.wrapLng&&(n.x<p.min.x||n.x>p.max.x)||!l.wrapLat&&(n.y<p.min.y||n.y>p.max.y))return!1}if(!this.options.bounds)return!0;var b=this._tileCoordsToBounds(n);return Ge(this.options.bounds).overlaps(b)},_keyToBounds:function(n){return this._tileCoordsToBounds(this._keyToTileCoords(n))},_tileCoordsToNwSe:function(n){var l=this._map,p=this.getTileSize(),b=n.scaleBy(p),S=b.add(p),B=l.unproject(b,n.z),J=l.unproject(S,n.z);return[B,J]},_tileCoordsToBounds:function(n){var l=this._tileCoordsToNwSe(n),p=new We(l[0],l[1]);return this.options.noWrap||(p=this._map.wrapLatLngBounds(p)),p},_tileCoordsToKey:function(n){return n.x+":"+n.y+":"+n.z},_keyToTileCoords:function(n){var l=n.split(":"),p=new _e(+l[0],+l[1]);return p.z=+l[2],p},_removeTile:function(n){var l=this._tiles[n];l&&(uo(l.el),delete this._tiles[n],this.fire("tileunload",{tile:l.el,coords:this._keyToTileCoords(n)}))},_initTile:function(n){an(n,"leaflet-tile");var l=this.getTileSize();n.style.width=l.x+"px",n.style.height=l.y+"px",n.onselectstart=I,n.onmousemove=I,pt.ielt9&&this.options.opacity<1&&ci(n,this.options.opacity)},_addTile:function(n,l){var p=this._getTilePos(n),b=this._tileCoordsToKey(n),S=this.createTile(this._wrapCoords(n),g(this._tileReady,this,n));this._initTile(S),this.createTile.length<2&&oe(g(this._tileReady,this,n,null,S)),Do(S,p),this._tiles[b]={el:S,coords:n,current:!0},l.appendChild(S),this.fire("tileloadstart",{tile:S,coords:n})},_tileReady:function(n,l,p){l&&this.fire("tileerror",{error:l,tile:p,coords:n});var b=this._tileCoordsToKey(n);p=this._tiles[b],p&&(p.loaded=+new Date,this._map._fadeAnimated?(ci(p.el,0),be(this._fadeFrame),this._fadeFrame=oe(this._updateOpacity,this)):(p.active=!0,this._pruneTiles()),l||(an(p.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:p.el,coords:n})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),pt.ielt9||!this._map._fadeAnimated?oe(this._pruneTiles,this):setTimeout(g(this._pruneTiles,this),250)))},_getTilePos:function(n){return n.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(n){var l=new _e(this._wrapX?E(n.x,this._wrapX):n.x,this._wrapY?E(n.y,this._wrapY):n.y);return l.z=n.z,l},_pxBoundsToTileRange:function(n){var l=this.getTileSize();return new Ne(n.min.unscaleBy(l).floor(),n.max.unscaleBy(l).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var n in this._tiles)if(!this._tiles[n].loaded)return!1;return!0}});function NO(n){return new Su(n)}var Yl=Su.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(n,l){this._url=n,l=A(this,l),l.detectRetina&&pt.retina&&l.maxZoom>0?(l.tileSize=Math.floor(l.tileSize/2),l.zoomReverse?(l.zoomOffset--,l.minZoom=Math.min(l.maxZoom,l.minZoom+1)):(l.zoomOffset++,l.maxZoom=Math.max(l.minZoom,l.maxZoom-1)),l.minZoom=Math.max(0,l.minZoom)):l.zoomReverse?l.minZoom=Math.min(l.maxZoom,l.minZoom):l.maxZoom=Math.max(l.minZoom,l.maxZoom),typeof l.subdomains=="string"&&(l.subdomains=l.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(n,l){return this._url===n&&l===void 0&&(l=!0),this._url=n,l||this.redraw(),this},createTile:function(n,l){var p=document.createElement("img");return un(p,"load",g(this._tileOnLoad,this,l,p)),un(p,"error",g(this._tileOnError,this,l,p)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(p.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(p.referrerPolicy=this.options.referrerPolicy),p.alt="",p.src=this.getTileUrl(n),p},getTileUrl:function(n){var l={r:pt.retina?"@2x":"",s:this._getSubdomain(n),x:n.x,y:n.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var p=this._globalTileRange.max.y-n.y;this.options.tms&&(l.y=p),l["-y"]=p}return D(this._url,c(l,this.options))},_tileOnLoad:function(n,l){pt.ielt9?setTimeout(g(n,this,null,l),0):n(null,l)},_tileOnError:function(n,l,p){var b=this.options.errorTileUrl;b&&l.getAttribute("src")!==b&&(l.src=b),n(p,l)},_onTileRemove:function(n){n.tile.onload=null},_getZoomForUrl:function(){var n=this._tileZoom,l=this.options.maxZoom,p=this.options.zoomReverse,b=this.options.zoomOffset;return p&&(n=l-n),n+b},_getSubdomain:function(n){var l=Math.abs(n.x+n.y)%this.options.subdomains.length;return this.options.subdomains[l]},_abortLoading:function(){var n,l;for(n in this._tiles)if(this._tiles[n].coords.z!==this._tileZoom&&(l=this._tiles[n].el,l.onload=I,l.onerror=I,!l.complete)){l.src=j;var p=this._tiles[n].coords;uo(l),delete this._tiles[n],this.fire("tileabort",{tile:l,coords:p})}},_removeTile:function(n){var l=this._tiles[n];if(l)return l.el.setAttribute("src",j),Su.prototype._removeTile.call(this,n)},_tileReady:function(n,l,p){if(!(!this._map||p&&p.getAttribute("src")===j))return Su.prototype._tileReady.call(this,n,l,p)}});function Aw(n,l){return new Yl(n,l)}var Ow=Yl.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(n,l){this._url=n;var p=c({},this.defaultWmsParams);for(var b in l)b in this.options||(p[b]=l[b]);l=A(this,l);var S=l.detectRetina&&pt.retina?2:1,B=this.getTileSize();p.width=B.x*S,p.height=B.y*S,this.wmsParams=p},onAdd:function(n){this._crs=this.options.crs||n.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var l=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[l]=this._crs.code,Yl.prototype.onAdd.call(this,n)},getTileUrl:function(n){var l=this._tileCoordsToNwSe(n),p=this._crs,b=rt(p.project(l[0]),p.project(l[1])),S=b.min,B=b.max,J=(this._wmsVersion>=1.3&&this._crs===Ew?[S.y,S.x,B.y,B.x]:[S.x,S.y,B.x,B.y]).join(","),se=Yl.prototype.getTileUrl.call(this,n);return se+N(this.wmsParams,se,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+J},setParams:function(n,l){return c(this.wmsParams,n),l||this.redraw(),this}});function $O(n,l){return new Ow(n,l)}Yl.WMS=Ow,Aw.wms=$O;var Fs=os.extend({options:{padding:.1},initialize:function(n){A(this,n),w(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),an(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var n={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(n.zoomanim=this._onAnimZoom),n},_onAnimZoom:function(n){this._updateTransform(n.center,n.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(n,l){var p=this._map.getZoomScale(l,this._zoom),b=this._map.getSize().multiplyBy(.5+this.options.padding),S=this._map.project(this._center,l),B=b.multiplyBy(-p).add(S).subtract(this._map._getNewPixelOrigin(n,l));pt.any3d?Bs(this._container,B,p):Do(this._container,B)},_reset:function(){this._update(),this._updateTransform(this._center,this._zoom);for(var n in this._layers)this._layers[n]._reset()},_onZoomEnd:function(){for(var n in this._layers)this._layers[n]._project()},_updatePaths:function(){for(var n in this._layers)this._layers[n]._update()},_update:function(){var n=this.options.padding,l=this._map.getSize(),p=this._map.containerPointToLayerPoint(l.multiplyBy(-n)).round();this._bounds=new Ne(p,p.add(l.multiplyBy(1+n*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),Rw=Fs.extend({options:{tolerance:0},getEvents:function(){var n=Fs.prototype.getEvents.call(this);return n.viewprereset=this._onViewPreReset,n},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){Fs.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var n=this._container=document.createElement("canvas");un(n,"mousemove",this._onMouseMove,this),un(n,"click dblclick mousedown mouseup contextmenu",this._onClick,this),un(n,"mouseout",this._handleMouseOut,this),n._leaflet_disable_events=!0,this._ctx=n.getContext("2d")},_destroyContainer:function(){be(this._redrawRequest),delete this._ctx,uo(this._container),So(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var n;this._redrawBounds=null;for(var l in this._layers)n=this._layers[l],n._update();this._redraw()}},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){Fs.prototype._update.call(this);var n=this._bounds,l=this._container,p=n.getSize(),b=pt.retina?2:1;Do(l,n.min),l.width=b*p.x,l.height=b*p.y,l.style.width=p.x+"px",l.style.height=p.y+"px",pt.retina&&this._ctx.scale(2,2),this._ctx.translate(-n.min.x,-n.min.y),this.fire("update")}},_reset:function(){Fs.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(n){this._updateDashArray(n),this._layers[w(n)]=n;var l=n._order={layer:n,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=l),this._drawLast=l,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(n){this._requestRedraw(n)},_removePath:function(n){var l=n._order,p=l.next,b=l.prev;p?p.prev=b:this._drawLast=b,b?b.next=p:this._drawFirst=p,delete n._order,delete this._layers[w(n)],this._requestRedraw(n)},_updatePath:function(n){this._extendRedrawBounds(n),n._project(),n._update(),this._requestRedraw(n)},_updateStyle:function(n){this._updateDashArray(n),this._requestRedraw(n)},_updateDashArray:function(n){if(typeof n.options.dashArray=="string"){var l=n.options.dashArray.split(/[, ]+/),p=[],b,S;for(S=0;S<l.length;S++){if(b=Number(l[S]),isNaN(b))return;p.push(b)}n.options._dashArray=p}else n.options._dashArray=n.options.dashArray},_requestRedraw:function(n){this._map&&(this._extendRedrawBounds(n),this._redrawRequest=this._redrawRequest||oe(this._redraw,this))},_extendRedrawBounds:function(n){if(n._pxBounds){var l=(n.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new Ne,this._redrawBounds.extend(n._pxBounds.min.subtract([l,l])),this._redrawBounds.extend(n._pxBounds.max.add([l,l]))}},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var n=this._redrawBounds;if(n){var l=n.getSize();this._ctx.clearRect(n.min.x,n.min.y,l.x,l.y)}else this._ctx.save(),this._ctx.setTransform(1,0,0,1,0,0),this._ctx.clearRect(0,0,this._container.width,this._container.height),this._ctx.restore()},_draw:function(){var n,l=this._redrawBounds;if(this._ctx.save(),l){var p=l.getSize();this._ctx.beginPath(),this._ctx.rect(l.min.x,l.min.y,p.x,p.y),this._ctx.clip()}this._drawing=!0;for(var b=this._drawFirst;b;b=b.next)n=b.layer,(!l||n._pxBounds&&n._pxBounds.intersects(l))&&n._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(n,l){if(this._drawing){var p,b,S,B,J=n._parts,se=J.length,me=this._ctx;if(se){for(me.beginPath(),p=0;p<se;p++){for(b=0,S=J[p].length;b<S;b++)B=J[p][b],me[b?"lineTo":"moveTo"](B.x,B.y);l&&me.closePath()}this._fillStroke(me,n)}}},_updateCircle:function(n){if(!(!this._drawing||n._empty())){var l=n._point,p=this._ctx,b=Math.max(Math.round(n._radius),1),S=(Math.max(Math.round(n._radiusY),1)||b)/b;S!==1&&(p.save(),p.scale(1,S)),p.beginPath(),p.arc(l.x,l.y/S,b,0,Math.PI*2,!1),S!==1&&p.restore(),this._fillStroke(p,n)}},_fillStroke:function(n,l){var p=l.options;p.fill&&(n.globalAlpha=p.fillOpacity,n.fillStyle=p.fillColor||p.color,n.fill(p.fillRule||"evenodd")),p.stroke&&p.weight!==0&&(n.setLineDash&&n.setLineDash(l.options&&l.options._dashArray||[]),n.globalAlpha=p.opacity,n.lineWidth=p.weight,n.strokeStyle=p.color,n.lineCap=p.lineCap,n.lineJoin=p.lineJoin,n.stroke())},_onClick:function(n){for(var l=this._map.mouseEventToLayerPoint(n),p,b,S=this._drawFirst;S;S=S.next)p=S.layer,p.options.interactive&&p._containsPoint(l)&&(!(n.type==="click"||n.type==="preclick")||!this._map._draggableMoved(p))&&(b=p);this._fireEvent(b?[b]:!1,n)},_onMouseMove:function(n){if(!(!this._map||this._map.dragging.moving()||this._map._animatingZoom)){var l=this._map.mouseEventToLayerPoint(n);this._handleMouseHover(n,l)}},_handleMouseOut:function(n){var l=this._hoveredLayer;l&&($e(this._container,"leaflet-interactive"),this._fireEvent([l],n,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(n,l){if(!this._mouseHoverThrottled){for(var p,b,S=this._drawFirst;S;S=S.next)p=S.layer,p.options.interactive&&p._containsPoint(l)&&(b=p);b!==this._hoveredLayer&&(this._handleMouseOut(n),b&&(an(this._container,"leaflet-interactive"),this._fireEvent([b],n,"mouseover"),this._hoveredLayer=b)),this._fireEvent(this._hoveredLayer?[this._hoveredLayer]:!1,n),this._mouseHoverThrottled=!0,setTimeout(g(function(){this._mouseHoverThrottled=!1},this),32)}},_fireEvent:function(n,l,p){this._map._fireDOMEvent(l,p||l.type,n)},_bringToFront:function(n){var l=n._order;if(l){var p=l.next,b=l.prev;if(p)p.prev=b;else return;b?b.next=p:p&&(this._drawFirst=p),l.prev=this._drawLast,this._drawLast.next=l,l.next=null,this._drawLast=l,this._requestRedraw(n)}},_bringToBack:function(n){var l=n._order;if(l){var p=l.next,b=l.prev;if(b)b.next=p;else return;p?p.prev=b:b&&(this._drawLast=b),l.prev=null,l.next=this._drawFirst,this._drawFirst.prev=l,this._drawFirst=l,this._requestRedraw(n)}}});function zw(n){return pt.canvas?new Rw(n):null}var Eu=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(n){return document.createElement("<lvml:"+n+' class="lvml">')}}catch{}return function(n){return document.createElement("<"+n+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),DO={_initContainer:function(){this._container=wn("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(Fs.prototype._update.call(this),this.fire("update"))},_initPath:function(n){var l=n._container=Eu("shape");an(l,"leaflet-vml-shape "+(this.options.className||"")),l.coordsize="1 1",n._path=Eu("path"),l.appendChild(n._path),this._updateStyle(n),this._layers[w(n)]=n},_addPath:function(n){var l=n._container;this._container.appendChild(l),n.options.interactive&&n.addInteractiveTarget(l)},_removePath:function(n){var l=n._container;uo(l),n.removeInteractiveTarget(l),delete this._layers[w(n)]},_updateStyle:function(n){var l=n._stroke,p=n._fill,b=n.options,S=n._container;S.stroked=!!b.stroke,S.filled=!!b.fill,b.stroke?(l||(l=n._stroke=Eu("stroke")),S.appendChild(l),l.weight=b.weight+"px",l.color=b.color,l.opacity=b.opacity,b.dashArray?l.dashStyle=W(b.dashArray)?b.dashArray.join(" "):b.dashArray.replace(/( *, *)/g," "):l.dashStyle="",l.endcap=b.lineCap.replace("butt","flat"),l.joinstyle=b.lineJoin):l&&(S.removeChild(l),n._stroke=null),b.fill?(p||(p=n._fill=Eu("fill")),S.appendChild(p),p.color=b.fillColor||b.color,p.opacity=b.fillOpacity):p&&(S.removeChild(p),n._fill=null)},_updateCircle:function(n){var l=n._point.round(),p=Math.round(n._radius),b=Math.round(n._radiusY||p);this._setPath(n,n._empty()?"M0 0":"AL "+l.x+","+l.y+" "+p+","+b+" 0,"+65535*360)},_setPath:function(n,l){n._path.v=l},_bringToFront:function(n){ts(n._container)},_bringToBack:function(n){ms(n._container)}},jh=pt.vml?Eu:qt,Pu=Fs.extend({_initContainer:function(){this._container=jh("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=jh("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){uo(this._container),So(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){Fs.prototype._update.call(this);var n=this._bounds,l=n.getSize(),p=this._container;(!this._svgSize||!this._svgSize.equals(l))&&(this._svgSize=l,p.setAttribute("width",l.x),p.setAttribute("height",l.y)),Do(p,n.min),p.setAttribute("viewBox",[n.min.x,n.min.y,l.x,l.y].join(" ")),this.fire("update")}},_initPath:function(n){var l=n._path=jh("path");n.options.className&&an(l,n.options.className),n.options.interactive&&an(l,"leaflet-interactive"),this._updateStyle(n),this._layers[w(n)]=n},_addPath:function(n){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(n._path),n.addInteractiveTarget(n._path)},_removePath:function(n){uo(n._path),n.removeInteractiveTarget(n._path),delete this._layers[w(n)]},_updatePath:function(n){n._project(),n._update()},_updateStyle:function(n){var l=n._path,p=n.options;l&&(p.stroke?(l.setAttribute("stroke",p.color),l.setAttribute("stroke-opacity",p.opacity),l.setAttribute("stroke-width",p.weight),l.setAttribute("stroke-linecap",p.lineCap),l.setAttribute("stroke-linejoin",p.lineJoin),p.dashArray?l.setAttribute("stroke-dasharray",p.dashArray):l.removeAttribute("stroke-dasharray"),p.dashOffset?l.setAttribute("stroke-dashoffset",p.dashOffset):l.removeAttribute("stroke-dashoffset")):l.setAttribute("stroke","none"),p.fill?(l.setAttribute("fill",p.fillColor||p.color),l.setAttribute("fill-opacity",p.fillOpacity),l.setAttribute("fill-rule",p.fillRule||"evenodd")):l.setAttribute("fill","none"))},_updatePoly:function(n,l){this._setPath(n,ht(n._parts,l))},_updateCircle:function(n){var l=n._point,p=Math.max(Math.round(n._radius),1),b=Math.max(Math.round(n._radiusY),1)||p,S="a"+p+","+b+" 0 1,0 ",B=n._empty()?"M0 0":"M"+(l.x-p)+","+l.y+S+p*2+",0 "+S+-p*2+",0 ";this._setPath(n,B)},_setPath:function(n,l){n._path.setAttribute("d",l)},_bringToFront:function(n){ts(n._path)},_bringToBack:function(n){ms(n._path)}});pt.vml&&Pu.include(DO);function Bw(n){return pt.svg||pt.vml?new Pu(n):null}Hn.include({getRenderer:function(n){var l=n.options.renderer||this._getPaneRenderer(n.options.pane)||this.options.renderer||this._renderer;return l||(l=this._renderer=this._createRenderer()),this.hasLayer(l)||this.addLayer(l),l},_getPaneRenderer:function(n){if(n==="overlayPane"||n===void 0)return!1;var l=this._paneRenderers[n];return l===void 0&&(l=this._createRenderer({pane:n}),this._paneRenderers[n]=l),l},_createRenderer:function(n){return this.options.preferCanvas&&zw(n)||Bw(n)}});var Nw=Jl.extend({initialize:function(n,l){Jl.prototype.initialize.call(this,this._boundsToLatLngs(n),l)},setBounds:function(n){return this.setLatLngs(this._boundsToLatLngs(n))},_boundsToLatLngs:function(n){return n=Ge(n),[n.getSouthWest(),n.getNorthWest(),n.getNorthEast(),n.getSouthEast()]}});function FO(n,l){return new Nw(n,l)}Pu.create=jh,Pu.pointsToPath=ht,Ds.geometryToLayer=zh,Ds.coordsToLatLng=Zg,Ds.coordsToLatLngs=Bh,Ds.latLngToCoords=Vg,Ds.latLngsToCoords=Nh,Ds.getFeature=Kl,Ds.asFeature=$h,Hn.mergeOptions({boxZoom:!0});var $w=vs.extend({initialize:function(n){this._map=n,this._container=n._container,this._pane=n._panes.overlayPane,this._resetStateTimeout=0,n.on("unload",this._destroy,this)},addHooks:function(){un(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){So(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){uo(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){this._resetStateTimeout!==0&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(n){if(!n.shiftKey||n.which!==1&&n.button!==1)return!1;this._clearDeferredResetState(),this._resetState(),vu(),Pg(),this._startPoint=this._map.mouseEventToContainerPoint(n),un(document,{contextmenu:Ha,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(n){this._moved||(this._moved=!0,this._box=wn("div","leaflet-zoom-box",this._container),an(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(n);var l=new Ne(this._point,this._startPoint),p=l.getSize();Do(this._box,l.min),this._box.style.width=p.x+"px",this._box.style.height=p.y+"px"},_finish:function(){this._moved&&(uo(this._box),$e(this._container,"leaflet-crosshair")),yu(),kg(),So(document,{contextmenu:Ha,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(n){if(!(n.which!==1&&n.button!==1)&&(this._finish(),!!this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(g(this._resetState,this),0);var l=new We(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(l).fire("boxzoomend",{boxZoomBounds:l})}},_onKeyDown:function(n){n.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});Hn.addInitHook("addHandler","boxZoom",$w),Hn.mergeOptions({doubleClickZoom:!0});var Dw=vs.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(n){var l=this._map,p=l.getZoom(),b=l.options.zoomDelta,S=n.originalEvent.shiftKey?p-b:p+b;l.options.doubleClickZoom==="center"?l.setZoom(S):l.setZoomAround(n.containerPoint,S)}});Hn.addInitHook("addHandler","doubleClickZoom",Dw),Hn.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var Fw=vs.extend({addHooks:function(){if(!this._draggable){var n=this._map;this._draggable=new ca(n._mapPane,n._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),n.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),n.on("zoomend",this._onZoomEnd,this),n.whenReady(this._onZoomEnd,this))}an(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){$e(this._map._container,"leaflet-grab"),$e(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var n=this._map;if(n._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var l=Ge(this._map.options.maxBounds);this._offsetLimit=rt(this._map.latLngToContainerPoint(l.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(l.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;n.fire("movestart").fire("dragstart"),n.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(n){if(this._map.options.inertia){var l=this._lastTime=+new Date,p=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(p),this._times.push(l),this._prunePositions(l)}this._map.fire("move",n).fire("drag",n)},_prunePositions:function(n){for(;this._positions.length>1&&n-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var n=this._map.getSize().divideBy(2),l=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=l.subtract(n).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(n,l){return n-(n-l)*this._viscosity},_onPreDragLimit:function(){if(!(!this._viscosity||!this._offsetLimit)){var n=this._draggable._newPos.subtract(this._draggable._startPos),l=this._offsetLimit;n.x<l.min.x&&(n.x=this._viscousLimit(n.x,l.min.x)),n.y<l.min.y&&(n.y=this._viscousLimit(n.y,l.min.y)),n.x>l.max.x&&(n.x=this._viscousLimit(n.x,l.max.x)),n.y>l.max.y&&(n.y=this._viscousLimit(n.y,l.max.y)),this._draggable._newPos=this._draggable._startPos.add(n)}},_onPreDragWrap:function(){var n=this._worldWidth,l=Math.round(n/2),p=this._initialWorldOffset,b=this._draggable._newPos.x,S=(b-l+p)%n+l-p,B=(b+l+p)%n-l-p,J=Math.abs(S+p)<Math.abs(B+p)?S:B;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=J},_onDragEnd:function(n){var l=this._map,p=l.options,b=!p.inertia||n.noInertia||this._times.length<2;if(l.fire("dragend",n),b)l.fire("moveend");else{this._prunePositions(+new Date);var S=this._lastPos.subtract(this._positions[0]),B=(this._lastTime-this._times[0])/1e3,J=p.easeLinearity,se=S.multiplyBy(J/B),me=se.distanceTo([0,0]),Ae=Math.min(p.inertiaMaxSpeed,me),mt=se.multiplyBy(Ae/me),Gt=Ae/(p.inertiaDeceleration*J),kn=mt.multiplyBy(-Gt/2).round();!kn.x&&!kn.y?l.fire("moveend"):(kn=l._limitOffset(kn,l.options.maxBounds),oe(function(){l.panBy(kn,{duration:Gt,easeLinearity:J,noMoveStart:!0,animate:!0})}))}}});Hn.addInitHook("addHandler","dragging",Fw),Hn.mergeOptions({keyboard:!0,keyboardPanDelta:80});var Hw=vs.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(n){this._map=n,this._setPanDelta(n.options.keyboardPanDelta),this._setZoomDelta(n.options.zoomDelta)},addHooks:function(){var n=this._map._container;n.tabIndex<=0&&(n.tabIndex="0"),un(n,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),So(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(!this._focused){var n=document.body,l=document.documentElement,p=n.scrollTop||l.scrollTop,b=n.scrollLeft||l.scrollLeft;this._map._container.focus(),window.scrollTo(b,p)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(n){var l=this._panKeys={},p=this.keyCodes,b,S;for(b=0,S=p.left.length;b<S;b++)l[p.left[b]]=[-1*n,0];for(b=0,S=p.right.length;b<S;b++)l[p.right[b]]=[n,0];for(b=0,S=p.down.length;b<S;b++)l[p.down[b]]=[0,n];for(b=0,S=p.up.length;b<S;b++)l[p.up[b]]=[0,-1*n]},_setZoomDelta:function(n){var l=this._zoomKeys={},p=this.keyCodes,b,S;for(b=0,S=p.zoomIn.length;b<S;b++)l[p.zoomIn[b]]=n;for(b=0,S=p.zoomOut.length;b<S;b++)l[p.zoomOut[b]]=-n},_addHooks:function(){un(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){So(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(n){if(!(n.altKey||n.ctrlKey||n.metaKey)){var l=n.keyCode,p=this._map,b;if(l in this._panKeys){if(!p._panAnim||!p._panAnim._inProgress)if(b=this._panKeys[l],n.shiftKey&&(b=ke(b).multiplyBy(3)),p.options.maxBounds&&(b=p._limitOffset(ke(b),p.options.maxBounds)),p.options.worldCopyJump){var S=p.wrapLatLng(p.unproject(p.project(p.getCenter()).add(b)));p.panTo(S)}else p.panBy(b)}else if(l in this._zoomKeys)p.setZoom(p.getZoom()+(n.shiftKey?3:1)*this._zoomKeys[l]);else if(l===27&&p._popup&&p._popup.options.closeOnEscapeKey)p.closePopup();else return;Ha(n)}}});Hn.addInitHook("addHandler","keyboard",Hw),Hn.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var jw=vs.extend({addHooks:function(){un(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){So(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(n){var l=hw(n),p=this._map.options.wheelDebounceTime;this._delta+=l,this._lastMousePos=this._map.mouseEventToContainerPoint(n),this._startTime||(this._startTime=+new Date);var b=Math.max(p-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(g(this._performZoom,this),b),Ha(n)},_performZoom:function(){var n=this._map,l=n.getZoom(),p=this._map.options.zoomSnap||0;n._stop();var b=this._delta/(this._map.options.wheelPxPerZoomLevel*4),S=4*Math.log(2/(1+Math.exp(-Math.abs(b))))/Math.LN2,B=p?Math.ceil(S/p)*p:S,J=n._limitZoom(l+(this._delta>0?B:-B))-l;this._delta=0,this._startTime=null,J&&(n.options.scrollWheelZoom==="center"?n.setZoom(l+J):n.setZoomAround(this._lastMousePos,l+J))}});Hn.addInitHook("addHandler","scrollWheelZoom",jw);var HO=600;Hn.mergeOptions({tapHold:pt.touchNative&&pt.safari&&pt.mobile,tapTolerance:15});var Zw=vs.extend({addHooks:function(){un(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){So(this._map._container,"touchstart",this._onDown,this)},_onDown:function(n){if(clearTimeout(this._holdTimeout),n.touches.length===1){var l=n.touches[0];this._startPos=this._newPos=new _e(l.clientX,l.clientY),this._holdTimeout=setTimeout(g(function(){this._cancel(),this._isTapValid()&&(un(document,"touchend",Hi),un(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",l))},this),HO),un(document,"touchend touchcancel contextmenu",this._cancel,this),un(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function n(){So(document,"touchend",Hi),So(document,"touchend touchcancel",n)},_cancel:function(){clearTimeout(this._holdTimeout),So(document,"touchend touchcancel contextmenu",this._cancel,this),So(document,"touchmove",this._onMove,this)},_onMove:function(n){var l=n.touches[0];this._newPos=new _e(l.clientX,l.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(n,l){var p=new MouseEvent(n,{bubbles:!0,cancelable:!0,view:window,screenX:l.screenX,screenY:l.screenY,clientX:l.clientX,clientY:l.clientY});p._simulated=!0,l.target.dispatchEvent(p)}});Hn.addInitHook("addHandler","tapHold",Zw),Hn.mergeOptions({touchZoom:pt.touch,bounceAtZoomLimits:!0});var Vw=vs.extend({addHooks:function(){an(this._map._container,"leaflet-touch-zoom"),un(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){$e(this._map._container,"leaflet-touch-zoom"),So(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(n){var l=this._map;if(!(!n.touches||n.touches.length!==2||l._animatingZoom||this._zooming)){var p=l.mouseEventToContainerPoint(n.touches[0]),b=l.mouseEventToContainerPoint(n.touches[1]);this._centerPoint=l.getSize()._divideBy(2),this._startLatLng=l.containerPointToLatLng(this._centerPoint),l.options.touchZoom!=="center"&&(this._pinchStartLatLng=l.containerPointToLatLng(p.add(b)._divideBy(2))),this._startDist=p.distanceTo(b),this._startZoom=l.getZoom(),this._moved=!1,this._zooming=!0,l._stop(),un(document,"touchmove",this._onTouchMove,this),un(document,"touchend touchcancel",this._onTouchEnd,this),Hi(n)}},_onTouchMove:function(n){if(!(!n.touches||n.touches.length!==2||!this._zooming)){var l=this._map,p=l.mouseEventToContainerPoint(n.touches[0]),b=l.mouseEventToContainerPoint(n.touches[1]),S=p.distanceTo(b)/this._startDist;if(this._zoom=l.getScaleZoom(S,this._startZoom),!l.options.bounceAtZoomLimits&&(this._zoom<l.getMinZoom()&&S<1||this._zoom>l.getMaxZoom()&&S>1)&&(this._zoom=l._limitZoom(this._zoom)),l.options.touchZoom==="center"){if(this._center=this._startLatLng,S===1)return}else{var B=p._add(b)._divideBy(2)._subtract(this._centerPoint);if(S===1&&B.x===0&&B.y===0)return;this._center=l.unproject(l.project(this._pinchStartLatLng,this._zoom).subtract(B),this._zoom)}this._moved||(l._moveStart(!0,!1),this._moved=!0),be(this._animRequest);var J=g(l._move,l,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=oe(J,this,!0),Hi(n)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,be(this._animRequest),So(document,"touchmove",this._onTouchMove,this),So(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))}});Hn.addInitHook("addHandler","touchZoom",Vw),Hn.BoxZoom=$w,Hn.DoubleClickZoom=Dw,Hn.Drag=Fw,Hn.Keyboard=Hw,Hn.ScrollWheelZoom=jw,Hn.TapHold=Zw,Hn.TouchZoom=Vw,i.Bounds=Ne,i.Browser=pt,i.CRS=je,i.Canvas=Rw,i.Circle=jg,i.CircleMarker=Rh,i.Class=Me,i.Control=ns,i.DivIcon=Lw,i.DivOverlay=ys,i.DomEvent=rO,i.DomUtil=oO,i.Draggable=ca,i.Evented=Fe,i.FeatureGroup=Ns,i.GeoJSON=Ds,i.GridLayer=Su,i.Handler=vs,i.Icon=Ql,i.ImageOverlay=Dh,i.LatLng=ze,i.LatLngBounds=We,i.Layer=os,i.LayerGroup=Ul,i.LineUtil=yO,i.Map=Hn,i.Marker=Oh,i.Mixin=hO,i.Path=ua,i.Point=_e,i.PolyUtil=fO,i.Polygon=Jl,i.Polyline=$s,i.Popup=Fh,i.PosAnimation=fw,i.Projection=_O,i.Rectangle=Nw,i.Renderer=Fs,i.SVG=Pu,i.SVGOverlay=Tw,i.TileLayer=Yl,i.Tooltip=Hh,i.Transformation=St,i.Util=ye,i.VideoOverlay=Mw,i.bind=g,i.bounds=rt,i.canvas=zw,i.circle=kO,i.circleMarker=PO,i.control=xu,i.divIcon=BO,i.extend=c,i.featureGroup=CO,i.geoJSON=Iw,i.geoJson=TO,i.gridLayer=NO,i.icon=SO,i.imageOverlay=LO,i.latLng=Se,i.latLngBounds=Ge,i.layerGroup=wO,i.map=sO,i.marker=EO,i.point=ke,i.polygon=MO,i.polyline=IO,i.popup=RO,i.rectangle=FO,i.setOptions=A,i.stamp=w,i.svg=Bw,i.svgOverlay=OO,i.tileLayer=Aw,i.tooltip=zO,i.transformation=Ft,i.version=r,i.videoOverlay=AO;var jO=window.L;i.noConflict=function(){return window.L=jO,this},window.L=i})})(Ie,Ie.exports);var Ue=Ie.exports;const Pe=K(Ue);var Oe=Ue,wt,dt;function Be(e){return"oninput"in e?"input":"change"}function et(){wt=this._map.dragging.enabled(),dt=this._map.tap&&this._map.tap.enabled(),this._map.dragging.disable(),this._map.tap&&this._map.tap.disable()}function lt(e){this._refocusOnMap(e),wt&&this._map.dragging.enable(),dt&&this._map.tap.enable()}function ot(e){return e==="undefined"?[]:Array.isArray(e)?e:[e]}function Pt(){}Oe.Control.SideBySide=Oe.Control.extend({options:{thumbSize:42,padding:0},initialize:function(e,o,i){this.setLeftLayers(e),this.setRightLayers(o),Oe.setOptions(this,i)},getPosition:function(){var e=this._range.value,o=(.5-e)*(2*this.options.padding+this.options.thumbSize);return this._map.getSize().x*e+o},setPosition:Pt,includes:Oe.Evented.prototype||Oe.Mixin.Events,addTo:function(e){this.remove(),this._map=e;var o=this._container=Oe.DomUtil.create("div","leaflet-sbs",e._controlContainer);this._divider=Oe.DomUtil.create("div","leaflet-sbs-divider",o);var i=this._range=Oe.DomUtil.create("input","leaflet-sbs-range",o);return i.type="range",i.min=0,i.max=1,i.step="any",i.value=.5,i.style.paddingLeft=i.style.paddingRight=this.options.padding+"px",this._addEvents(),this._updateLayers(),this},remove:function(){return this._map?(this._leftLayer&&(this._leftLayer.getPane().style.clip=""),this._rightLayer&&(this._rightLayer.getPane().style.clip=""),this._removeEvents(),Oe.DomUtil.remove(this._container),this._map=null,this):this},setLeftLayers:function(e){return this._leftLayers=ot(e),this._updateLayers(),this},setRightLayers:function(e){return this._rightLayers=ot(e),this._updateLayers(),this},_updateClip:function(){var e=this._map,o=e.containerPointToLayerPoint([0,0]),i=e.containerPointToLayerPoint(e.getSize()),r=o.x+this.getPosition(),c=this.getPosition();this._divider.style.left=c+"px",this.fire("dividermove",{x:c});var m="rect("+[o.y,r,i.y,o.x].join("px,")+"px)",g="rect("+[o.y,i.x,i.y,r].join("px,")+"px)";this._leftLayer&&(this._leftLayer.getPane().style.clip=m),this._rightLayer&&(this._rightLayer.getPane().style.clip=g)},_updateLayers:function(){if(!this._map)return this;var e=this._leftLayer,o=this._rightLayer;this._leftLayer=this._rightLayer=null,this._leftLayers.forEach(function(i){this._map.hasLayer(i)&&(this._leftLayer=i)},this),this._rightLayers.forEach(function(i){this._map.hasLayer(i)&&(this._rightLayer=i)},this),e!==this._leftLayer&&(e&&this.fire("leftlayerremove",{layer:e}),this._leftLayer&&this.fire("leftlayeradd",{layer:this._leftLayer})),o!==this._rightLayer&&(o&&this.fire("rightlayerremove",{layer:o}),this._rightLayer&&this.fire("rightlayeradd",{layer:this._rightLayer})),this._updateClip()},_addEvents:function(){var e=this._range,o=this._map;!o||!e||(o.on("move",this._updateClip,this),o.on("layeradd layerremove",this._updateLayers,this),Oe.DomEvent.on(e,Be(e),this._updateClip,this),Oe.DomEvent.on(e,"touchstart",et,this),Oe.DomEvent.on(e,"touchend",lt,this),Oe.DomEvent.on(e,"mousedown",et,this),Oe.DomEvent.on(e,"mouseup",lt,this))},_removeEvents:function(){var e=this._range,o=this._map;e&&(Oe.DomEvent.off(e,Be(e),this._updateClip,this),Oe.DomEvent.off(e,"touchstart",et,this),Oe.DomEvent.off(e,"touchend",lt,this),Oe.DomEvent.off(e,"mousedown",et,this),Oe.DomEvent.off(e,"mouseup",lt,this)),o&&(o.off("layeradd layerremove",this._updateLayers,this),o.off("move",this._updateClip,this))}}),Oe.control.sideBySide=function(e,o,i){return new Oe.Control.SideBySide(e,o,i)},Oe.Control.SideBySide;const Ut=({zoomLevel:e})=>xe.jsx("div",{style:{width:"30px",height:"30px",backgroundColor:"white",borderRadius:"2px",textAlign:"center",fontSize:"20px"},children:e});function gt(e){const o=v.useRef(e);return o.current=e,v.useCallback((...i)=>{var r;return(r=o.current)==null?void 0:r.call(o,...i)},[])}function Te(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}const mn=process.env.NODE_ENV!=="test"&&Te()?v.useLayoutEffect:v.useEffect,He=(e,o)=>{const i=v.useRef(!0);mn(()=>e(i.current),o),mn(()=>(i.current=!1,()=>{i.current=!0}),[])},Ot=e=>{const o=v.useRef(!1),[i,r]=v.useState(e);v.useEffect(()=>(o.current=!1,()=>{o.current=!0}),[]);function c(m,g){g&&o.current||r(m)}return[i,c]};function Lt(e,o){const[i,r]=d.useState(e),c=o!==void 0?o:i;return He(m=>{m||r(o)},[o]),[c,r]}var dn={exports:{}},Je={};/**
|
|
72
|
+
* @license React
|
|
73
|
+
* react-is.production.min.js
|
|
74
|
+
*
|
|
75
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
76
|
+
*
|
|
77
|
+
* This source code is licensed under the MIT license found in the
|
|
78
|
+
* LICENSE file in the root directory of this source tree.
|
|
79
|
+
*/var Ct;function bt(){if(Ct)return Je;Ct=1;var e=Symbol.for("react.element"),o=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),m=Symbol.for("react.provider"),g=Symbol.for("react.context"),x=Symbol.for("react.server_context"),w=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),E=Symbol.for("react.suspense_list"),I=Symbol.for("react.memo"),O=Symbol.for("react.lazy"),$=Symbol.for("react.offscreen"),R;R=Symbol.for("react.module.reference");function A(N){if(typeof N=="object"&&N!==null){var F=N.$$typeof;switch(F){case e:switch(N=N.type,N){case i:case c:case r:case P:case E:return N;default:switch(N=N&&N.$$typeof,N){case x:case g:case w:case O:case I:case m:return N;default:return F}}case o:return F}}}return Je.ContextConsumer=g,Je.ContextProvider=m,Je.Element=e,Je.ForwardRef=w,Je.Fragment=i,Je.Lazy=O,Je.Memo=I,Je.Portal=o,Je.Profiler=c,Je.StrictMode=r,Je.Suspense=P,Je.SuspenseList=E,Je.isAsyncMode=function(){return!1},Je.isConcurrentMode=function(){return!1},Je.isContextConsumer=function(N){return A(N)===g},Je.isContextProvider=function(N){return A(N)===m},Je.isElement=function(N){return typeof N=="object"&&N!==null&&N.$$typeof===e},Je.isForwardRef=function(N){return A(N)===w},Je.isFragment=function(N){return A(N)===i},Je.isLazy=function(N){return A(N)===O},Je.isMemo=function(N){return A(N)===I},Je.isPortal=function(N){return A(N)===o},Je.isProfiler=function(N){return A(N)===c},Je.isStrictMode=function(N){return A(N)===r},Je.isSuspense=function(N){return A(N)===P},Je.isSuspenseList=function(N){return A(N)===E},Je.isValidElementType=function(N){return typeof N=="string"||typeof N=="function"||N===i||N===c||N===r||N===P||N===E||N===$||typeof N=="object"&&N!==null&&(N.$$typeof===O||N.$$typeof===I||N.$$typeof===m||N.$$typeof===g||N.$$typeof===w||N.$$typeof===R||N.getModuleId!==void 0)},Je.typeOf=A,Je}var Ye={};/**
|
|
80
|
+
* @license React
|
|
81
|
+
* react-is.development.js
|
|
82
|
+
*
|
|
83
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
84
|
+
*
|
|
85
|
+
* This source code is licensed under the MIT license found in the
|
|
86
|
+
* LICENSE file in the root directory of this source tree.
|
|
87
|
+
*/var Rt;function Ht(){return Rt||(Rt=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),o=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),m=Symbol.for("react.provider"),g=Symbol.for("react.context"),x=Symbol.for("react.server_context"),w=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),E=Symbol.for("react.suspense_list"),I=Symbol.for("react.memo"),O=Symbol.for("react.lazy"),$=Symbol.for("react.offscreen"),R=!1,A=!1,N=!1,F=!1,D=!1,W;W=Symbol.for("react.module.reference");function U(Ve){return!!(typeof Ve=="string"||typeof Ve=="function"||Ve===i||Ve===c||D||Ve===r||Ve===P||Ve===E||F||Ve===$||R||A||N||typeof Ve=="object"&&Ve!==null&&(Ve.$$typeof===O||Ve.$$typeof===I||Ve.$$typeof===m||Ve.$$typeof===g||Ve.$$typeof===w||Ve.$$typeof===W||Ve.getModuleId!==void 0))}function j(Ve){if(typeof Ve=="object"&&Ve!==null){var qt=Ve.$$typeof;switch(qt){case e:var ht=Ve.type;switch(ht){case i:case c:case r:case P:case E:return ht;default:var Kt=ht&&ht.$$typeof;switch(Kt){case x:case g:case w:case O:case I:case m:return Kt;default:return qt}}case o:return qt}}}var ee=g,te=m,Y=e,ae=w,he=i,oe=O,be=I,ye=o,Me=c,le=r,we=P,Fe=E,_e=!1,st=!1;function ke(Ve){return _e||(_e=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function Ne(Ve){return st||(st=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function rt(Ve){return j(Ve)===g}function We(Ve){return j(Ve)===m}function Ge(Ve){return typeof Ve=="object"&&Ve!==null&&Ve.$$typeof===e}function ze(Ve){return j(Ve)===w}function Se(Ve){return j(Ve)===i}function je(Ve){return j(Ve)===O}function tt(Ve){return j(Ve)===I}function ut(Ve){return j(Ve)===o}function At(Ve){return j(Ve)===c}function St(Ve){return j(Ve)===r}function Ft(Ve){return j(Ve)===P}function It(Ve){return j(Ve)===E}Ye.ContextConsumer=ee,Ye.ContextProvider=te,Ye.Element=Y,Ye.ForwardRef=ae,Ye.Fragment=he,Ye.Lazy=oe,Ye.Memo=be,Ye.Portal=ye,Ye.Profiler=Me,Ye.StrictMode=le,Ye.Suspense=we,Ye.SuspenseList=Fe,Ye.isAsyncMode=ke,Ye.isConcurrentMode=Ne,Ye.isContextConsumer=rt,Ye.isContextProvider=We,Ye.isElement=Ge,Ye.isForwardRef=ze,Ye.isFragment=Se,Ye.isLazy=je,Ye.isMemo=tt,Ye.isPortal=ut,Ye.isProfiler=At,Ye.isStrictMode=St,Ye.isSuspense=Ft,Ye.isSuspenseList=It,Ye.isValidElementType=U,Ye.typeOf=j}()),Ye}process.env.NODE_ENV==="production"?dn.exports=bt():dn.exports=Ht();var On=dn.exports;function Dn(e,o,i){const r=v.useRef({});return(!("value"in r.current)||i(r.current.condition,o))&&(r.current.value=e(),r.current.condition=o),r.current.value}const ho=Symbol.for("react.element"),gn=Symbol.for("react.transitional.element"),vt=Symbol.for("react.fragment");function Tt(e){return e&&typeof e=="object"&&(e.$$typeof===ho||e.$$typeof===gn)&&e.type===vt}const vn=Number(d.version.split(".")[0]),En=(e,o)=>{typeof e=="function"?e(o):typeof e=="object"&&e&&"current"in e&&(e.current=o)},jn=(...e)=>{const o=e.filter(Boolean);return o.length<=1?o[0]:i=>{e.forEach(r=>{En(r,i)})}},Zn=(...e)=>Dn(()=>jn(...e),e,(o,i)=>o.length!==i.length||o.every((r,c)=>r!==i[c])),eo=e=>{var o,i;if(!e)return!1;if(to(e)&&vn>=19)return!0;const r=On.isMemo(e)?e.type.type:e.type;return!(typeof r=="function"&&!((o=r.prototype)!=null&&o.render)&&r.$$typeof!==On.ForwardRef||typeof e=="function"&&!((i=e.prototype)!=null&&i.render)&&e.$$typeof!==On.ForwardRef)};function to(e){return d.isValidElement(e)&&!Tt(e)}const Ri=e=>to(e)&&eo(e),Jn=e=>{if(e&&to(e)){const o=e;return o.props.propertyIsEnumerable("ref")?o.props.ref:o.ref}return null};function Kn(e,o){let i=e;for(let r=0;r<o.length;r+=1){if(i==null)return;i=i[o[r]]}return i}function ii(e,o,i,r){if(!o.length)return i;const[c,...m]=o;let g;return!e&&typeof c=="number"?g=[]:Array.isArray(e)?g=[...e]:g={...e},r&&i===void 0&&m.length===1?delete g[c][m[0]]:g[c]=ii(g[c],m,i,r),g}function fo(e,o,i,r=!1){return o.length&&r&&i===void 0&&!Kn(e,o.slice(0,-1))?e:ii(e,o,i,r)}function hi(e){return typeof e=="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function zi(e){return Array.isArray(e)?[]:{}}const Si=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function yn(e,o={}){const{prepareArray:i}=o,r=i||(()=>[]);let c=zi(e[0]);return e.forEach(m=>{function g(x,w){const P=new Set(w),E=Kn(m,x),I=Array.isArray(E);if(I||hi(E)){if(!P.has(E)){P.add(E);const O=Kn(c,x);I?c=fo(c,x,r(O,E)):(!O||typeof O!="object")&&(c=fo(c,x,zi(E))),Si(E).forEach($=>{Object.getOwnPropertyDescriptor(E,$).enumerable&&g([...x,$],P)})}}else c=fo(c,x,E)}g([])}),c}function xo(...e){return yn(e)}let Vn={};const fi=[],no=e=>{fi.push(e)};function tn(e,o){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){const i=fi.reduce((r,c)=>c(r??"","warning"),o);i&&console.error(`Warning: ${i}`)}}function Fn(e,o){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){const i=fi.reduce((r,c)=>c(r??"","note"),o);i&&console.warn(`Note: ${i}`)}}function po(){Vn={}}function Wn(e,o,i){!o&&!Vn[i]&&(e(!1,i),Vn[i]=!0)}function Wt(e,o){Wn(tn,e,o)}function pi(e,o){Wn(Fn,e,o)}Wt.preMessage=no,Wt.resetWarned=po,Wt.noteOnce=pi;function Rn(e,o){const i=Object.assign({},e);return Array.isArray(o)&&o.forEach(r=>{delete i[r]}),i}function oo(e,o={}){let i=[];return d.Children.forEach(e,r=>{r==null&&!o.keepEmpty||(Array.isArray(r)?i=i.concat(oo(r)):Tt(r)&&r.props?i=i.concat(oo(r.props.children,o)):i.push(r))}),i}function ri(){}const{resetWarned:In}=Wt;let Mo=null;function or(){Mo=null,In()}let pr=ri;process.env.NODE_ENV!=="production"&&(pr=(e,o,i)=>{Wt(e,`[antd: ${o}] ${i}`),process.env.NODE_ENV==="test"&&or()});const ir=pr,Zi=v.createContext({}),mo=process.env.NODE_ENV!=="production"?e=>{const{strict:o}=v.useContext(Zi),i=(r,c,m)=>{if(!r)if(o===!1&&c==="deprecated"){const g=Mo;Mo||(Mo={}),Mo[e]=Mo[e]||[],Mo[e].includes(m||"")||Mo[e].push(m||""),g||console.warn("[antd] There exists deprecated usage in your code:",Mo)}else process.env.NODE_ENV!=="production"&&ir(r,e,m)};return i.deprecated=(r,c,m,g="")=>{i(r,"deprecated",`\`${c}\` is deprecated. Please use \`${m}\` instead.${g?` ${g}`:""}`)},i}:()=>{const e=()=>{};return e.deprecated=ri,e};function mi(e){return e instanceof HTMLElement||e instanceof SVGElement}function gi(e){return e&&typeof e=="object"&&mi(e.nativeElement)?e.nativeElement:mi(e)?e:null}const Go=v.createContext(null);function Po({children:e,onBatchResize:o}){const i=v.useRef(0),r=v.useRef([]),c=v.useContext(Go),m=v.useCallback((g,x,w)=>{i.current+=1;const P=i.current;r.current.push({size:g,element:x,data:w}),Promise.resolve().then(()=>{P===i.current&&(o==null||o(r.current),r.current=[])}),c==null||c(g,x,w)},[o,c]);return v.createElement(Go.Provider,{value:m},e)}const it=new Map;function Ei(e){e.forEach(o=>{var i;const{target:r}=o;(i=it.get(r))==null||i.forEach(c=>c(r))})}let Fo;function G(){return Fo||(Fo=new ResizeObserver(Ei)),Fo}process.env.NODE_ENV,process.env.NODE_ENV;function Ce(e,o){it.has(e)||(it.set(e,new Set),G().observe(e)),it.get(e).add(o)}function De(e,o){it.has(e)&&(it.get(e).delete(o),it.get(e).size||(G().unobserve(e),it.delete(e)))}function Ke(e,o,i,r){const c=v.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),m=gt(x=>{const{width:w,height:P}=x.getBoundingClientRect(),{offsetWidth:E,offsetHeight:I}=x,O=Math.floor(w),$=Math.floor(P);if(c.current.width!==O||c.current.height!==$||c.current.offsetWidth!==E||c.current.offsetHeight!==I){const R={width:O,height:$,offsetWidth:E,offsetHeight:I};c.current=R;const A=E===Math.round(w)?w:E,N=I===Math.round(P)?P:I,F={...R,offsetWidth:A,offsetHeight:N};r==null||r(F,x),Promise.resolve().then(()=>{i==null||i(F,x)})}}),g=typeof o=="function";v.useEffect(()=>{const x=g?o():o;return x&&e&&Ce(x,m),()=>{x&&De(x,m)}},[e,g?0:o])}function Bt(e,o){const{children:i,disabled:r,onResize:c,data:m}=e,g=v.useRef(null),x=v.useContext(Go),w=typeof i=="function",P=w?i(g):i,E=!w&&v.isValidElement(P)&&eo(P),I=E?Jn(P):null,O=Zn(I,g),$=()=>gi(g.current);return v.useImperativeHandle(o,()=>$()),Ke(!r,$,c,(R,A)=>{x==null||x(R,A,m)}),E?v.cloneElement(P,{ref:O}):P}const _n=v.forwardRef(Bt);process.env.NODE_ENV!=="production"&&(_n.displayName="SingleObserver");function xt(){return xt=Object.assign?Object.assign.bind():function(e){for(var o=1;o<arguments.length;o++){var i=arguments[o];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r])}return e},xt.apply(this,arguments)}const kt="rc-observer-key";function qn(e,o){const{children:i}=e,r=typeof i=="function"?[i]:oo(i);return process.env.NODE_ENV!=="production"&&(r.length>1?tn(!1,"Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead."):r.length===0&&tn(!1,"`children` of ResizeObserver is empty. Nothing is in observe.")),r.map((c,m)=>{const g=(c==null?void 0:c.key)||`${kt}-${m}`;return v.createElement(_n,xt({},e,{key:g,ref:m===0?o:void 0}),c)})}const nn=v.forwardRef(qn);process.env.NODE_ENV!=="production"&&(nn.displayName="ResizeObserver"),nn.Collection=Po;function Bn(e){var o,i,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var c=e.length;for(o=0;o<c;o++)e[o]&&(i=Bn(e[o]))&&(r&&(r+=" "),r+=i)}else for(i in e)e[i]&&(r&&(r+=" "),r+=i);return r}function Re(){for(var e,o,i=0,r="",c=arguments.length;i<c;i++)(e=arguments[i])&&(o=Bn(e))&&(r&&(r+=" "),r+=o);return r}function zo(e,o){(o==null||o>e.length)&&(o=e.length);for(var i=0,r=Array(o);i<o;i++)r[i]=e[i];return r}function Bi(e){if(Array.isArray(e))return zo(e)}function To(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function vi(e,o){if(e){if(typeof e=="string")return zo(e,o);var i={}.toString.call(e).slice(8,-1);return i==="Object"&&e.constructor&&(i=e.constructor.name),i==="Map"||i==="Set"?Array.from(e):i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?zo(e,o):void 0}}function si(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
88
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ho(e){return Bi(e)||To(e)||vi(e)||si()}let Er=e=>+setTimeout(e,16),rr=e=>clearTimeout(e);typeof window<"u"&&"requestAnimationFrame"in window&&(Er=e=>window.requestAnimationFrame(e),rr=e=>window.cancelAnimationFrame(e));let Hr=0;const jr=new Map;function zt(e){jr.delete(e)}const yt=(e,o=1)=>{Hr+=1;const i=Hr;function r(c){if(c===0)zt(i),e();else{const m=Er(()=>{r(c-1)});jr.set(i,m)}}return r(o),i};yt.cancel=e=>{const o=jr.get(e);return zt(e),rr(o)},process.env.NODE_ENV!=="production"&&(yt.ids=()=>jr);const Yt="ant",Vi="anticon",Wi=(e,o)=>o||(e?`${Yt}-${e}`:Yt),Gn=v.createContext({getPrefixCls:Wi,iconPrefixCls:Vi}),ks={};function jt(e){const o=v.useContext(Gn),{getPrefixCls:i,direction:r,getPopupContainer:c,renderEmpty:m}=o,g=o[e];return{classNames:ks,styles:ks,...g,getPrefixCls:i,direction:r,getPopupContainer:c,renderEmpty:m}}function io(e){for(var o=0,i,r=0,c=e.length;c>=4;++r,c-=4)i=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,i=(i&65535)*1540483477+((i>>>16)*59797<<16),i^=i>>>24,o=(i&65535)*1540483477+((i>>>16)*59797<<16)^(o&65535)*1540483477+((o>>>16)*59797<<16);switch(c){case 3:o^=(e.charCodeAt(r+2)&255)<<16;case 2:o^=(e.charCodeAt(r+1)&255)<<8;case 1:o^=e.charCodeAt(r)&255,o=(o&65535)*1540483477+((o>>>16)*59797<<16)}return o^=o>>>13,o=(o&65535)*1540483477+((o>>>16)*59797<<16),((o^o>>>15)>>>0).toString(36)}function Is(e,o){if(!e)return!1;if(e.contains)return e.contains(o);let i=o;for(;i;){if(i===e)return!0;i=i.parentNode}return!1}const Xe="data-rc-order",Nt="data-rc-priority",ai="rc-util-key",Ki=new Map;function Pi({mark:e}={}){return e?e.startsWith("data-")?e:`data-${e}`:ai}function go(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function Zr(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function Pr(e){return Array.from((Ki.get(e)||e).children).filter(o=>o.tagName==="STYLE")}function Gs(e,o={}){if(!Te())return null;const{csp:i,prepend:r,priority:c=0}=o,m=Zr(r),g=m==="prependQueue",x=document.createElement("style");x.setAttribute(Xe,m),g&&c&&x.setAttribute(Nt,`${c}`),i!=null&&i.nonce&&(x.nonce=i==null?void 0:i.nonce),x.innerHTML=e;const w=go(o),{firstChild:P}=w;if(r){if(g){const E=(o.styles||Pr(w)).filter(I=>{if(!["prepend","prependQueue"].includes(I.getAttribute(Xe)))return!1;const O=Number(I.getAttribute(Nt)||0);return c>=O});if(E.length)return w.insertBefore(x,E[E.length-1].nextSibling),x}w.insertBefore(x,P)}else w.appendChild(x);return x}function rl(e,o={}){let{styles:i}=o;return i||(i=Pr(go(o))),i.find(r=>r.getAttribute(Pi(o))===e)}function Vr(e,o={}){const i=rl(e,o);i&&go(o).removeChild(i)}function Ec(e,o){const i=Ki.get(e);if(!i||!Is(document,i)){const r=Gs("",o),{parentNode:c}=r;Ki.set(e,c),e.removeChild(r)}}function kr(e,o,i={}){var r,c,m;const g=go(i),x=Pr(g),w={...i,styles:x};Ec(g,w);const P=rl(o,w);if(P)return(r=w.csp)!=null&&r.nonce&&P.nonce!==((c=w.csp)==null?void 0:c.nonce)&&(P.nonce=(m=w.csp)==null?void 0:m.nonce),P.innerHTML!==e&&(P.innerHTML=e),P;const E=Gs(e,w);return E.setAttribute(Pi(w),o),E}function ss(e,o,i=!1){const r=new Set;function c(m,g,x=1){const w=r.has(m);if(Wt(!w,"Warning: There may be circular references"),w)return!1;if(m===g)return!0;if(i&&x>1)return!1;r.add(m);const P=x+1;if(Array.isArray(m)){if(!Array.isArray(g)||m.length!==g.length)return!1;for(let E=0;E<m.length;E++)if(!c(m[E],g[E],P))return!1;return!0}if(m&&g&&typeof m=="object"&&typeof g=="object"){const E=Object.keys(m);return E.length!==Object.keys(g).length?!1:E.every(I=>c(m[I],g[I],P))}return!1}return c(e,o)}const Pc="%";function pa(e){return e.join(Pc)}let ma=0;class hd{constructor(o){T(this,"instanceId"),T(this,"cache",new Map),T(this,"updateTimes",new Map),T(this,"extracted",new Set),this.instanceId=o}get(o){return this.opGet(pa(o))}opGet(o){return this.cache.get(o)||null}update(o,i){return this.opUpdate(pa(o),i)}opUpdate(o,i){const r=this.cache.get(o),c=i(r);c===null?(this.cache.delete(o),this.updateTimes.delete(o)):(this.cache.set(o,c),this.updateTimes.set(o,ma),ma+=1)}}const ga="data-token-hash",Wr="data-css-hash",on="data-cache-path",yi="__cssinjs_instance__";function vo(){const e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){const o=document.body.querySelectorAll(`style[${Wr}]`)||[],{firstChild:i}=document.head;Array.from(o).forEach(c=>{c[yi]||(c[yi]=e),c[yi]===e&&document.head.insertBefore(c,i)});const r={};Array.from(document.querySelectorAll(`style[${Wr}]`)).forEach(c=>{var m;const g=c.getAttribute(Wr);r[g]?c[yi]===e&&((m=c.parentNode)==null||m.removeChild(c)):r[g]=!0})}return new hd(e)}const Us=v.createContext({hashPriority:"low",cache:vo(),defaultCache:!0,autoPrefix:!1});function kc(e,o){if(e.length!==o.length)return!1;for(let i=0;i<e.length;i++)if(e[i]!==o[i])return!1;return!0}const va=class Gg{constructor(){T(this,"cache"),T(this,"keys"),T(this,"cacheCallTimes"),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}size(){return this.keys.length}internalGet(o,i=!1){let r={map:this.cache};return o.forEach(c=>{var m;r?r=(m=r==null?void 0:r.map)==null?void 0:m.get(c):r=void 0}),r!=null&&r.value&&i&&(r.value[1]=this.cacheCallTimes++),r==null?void 0:r.value}get(o){var i;return(i=this.internalGet(o,!0))==null?void 0:i[0]}has(o){return!!this.internalGet(o)}set(o,i){if(!this.has(o)){if(this.size()+1>Gg.MAX_CACHE_SIZE+Gg.MAX_CACHE_OFFSET){const[c]=this.keys.reduce((m,g)=>{const[,x]=m;return this.internalGet(g)[1]<x?[g,this.internalGet(g)[1]]:m},[this.keys[0],this.cacheCallTimes]);this.delete(c)}this.keys.push(o)}let r=this.cache;o.forEach((c,m)=>{if(m===o.length-1)r.set(c,{value:[i,this.cacheCallTimes++]});else{const g=r.get(c);g?g.map||(g.map=new Map):r.set(c,{map:new Map}),r=r.get(c).map}})}deleteByPath(o,i){var r;const c=o.get(i[0]);if(i.length===1)return c.map?o.set(i[0],{map:c.map}):o.delete(i[0]),(r=c.value)==null?void 0:r[0];const m=this.deleteByPath(c.map,i.slice(1));return(!c.map||c.map.size===0)&&!c.value&&o.delete(i[0]),m}delete(o){if(this.has(o))return this.keys=this.keys.filter(i=>!kc(i,o)),this.deleteByPath(this.cache,o)}};T(va,"MAX_CACHE_SIZE",20),T(va,"MAX_CACHE_OFFSET",5);let Ic=va,as=0;class sl{constructor(o){T(this,"derivatives"),T(this,"id"),this.derivatives=Array.isArray(o)?o:[o],this.id=as,o.length===0&&tn(o.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),as+=1}getDerivativeToken(o){return this.derivatives.reduce((i,r)=>r(o,i),void 0)}}const Ms=new Ic;function Uo(e){const o=Array.isArray(e)?e:[e];return Ms.has(o)||Ms.set(o,new sl(o)),Ms.get(o)}const Ts=new WeakMap,al={};function fd(e,o){let i=Ts;for(let r=0;r<o.length;r+=1){const c=o[r];i.has(c)||i.set(c,new WeakMap),i=i.get(c)}return i.has(al)||i.set(al,e()),i.get(al)}const pd=new WeakMap;function Qs(e){let o=pd.get(e)||"";return o||(Object.keys(e).forEach(i=>{const r=e[i];o+=i,r instanceof sl?o+=r.id:r&&typeof r=="object"?o+=Qs(r):o+=r}),o=io(o),pd.set(e,o)),o}function Mc(e,o){return io(`${o}_${Qs(e)}`)}const Tc=Te();function $t(e){return typeof e=="number"?`${e}px`:e}function Mn(e){const{hashCls:o,hashPriority:i="low"}=e||{};if(!o)return"";const r=`.${o}`;return i==="low"?`:where(${r})`:r}const Cp=e=>e!=null,qi=(e,o="")=>`--${o?`${o}-`:""}${e}`.replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase(),ya=(e,o,i)=>{const{hashCls:r,hashPriority:c="low"}=i||{};return Object.keys(e).length?`${Mn({hashCls:r,hashPriority:c})}.${o}${i!=null&&i.scope?`.${i.scope}`:""}{${Object.entries(e).map(([m,g])=>`${m}:${g};`).join("")}}`:""},Lc=(e,o,i)=>{const{hashCls:r,hashPriority:c="low",prefix:m,unitless:g,ignore:x,preserve:w}=i||{},P={},E={};return Object.entries(e).forEach(([I,O])=>{if(w!=null&&w[I])E[I]=O;else if((typeof O=="string"||typeof O=="number")&&!(x!=null&&x[I])){const $=qi(I,m);P[$]=typeof O=="number"&&!(g!=null&&g[I])?`${O}px`:String(O),E[I]=`var(${$})`}}),[E,ya(P,o,{scope:i==null?void 0:i.scope,hashCls:r,hashPriority:c})]};function Sp(){return!1}let _a=!1;function Ep(){return _a}const md=process.env.NODE_ENV==="production"?Sp:Ep;if(process.env.NODE_ENV!=="production"&&"object"<"u"&&s&&s.hot&&typeof window<"u"){const e=typeof globalThis<"u"?globalThis:typeof window<"u"?window:null;if(e&&typeof e.webpackHotUpdate=="function"){const o=e.webpackHotUpdate;e.webpackHotUpdate=(...i)=>(_a=!0,setTimeout(()=>{_a=!1},0),o(...i))}}const ll=new Map;function Ac(e,o,i,r,c){const{cache:m}=v.useContext(Us),g=[e,...o],x=pa(g),w=md(),P=O=>{m.opUpdate(x,$=>{const[R=0,A]=$||[void 0,void 0];let N=A;process.env.NODE_ENV!=="production"&&A&&w&&(r==null||r(N,w),N=null);const F=N||i(),D=[R,F];return O?O(D):D})};v.useMemo(()=>{P()},[x]);let E=m.opGet(x);process.env.NODE_ENV!=="production"&&!E&&(P(),E=m.opGet(x));const I=E[1];return d.useInsertionEffect(()=>(P(([O,$])=>[O+1,$]),ll.has(x)||(c==null||c(I),ll.set(x,!0),Promise.resolve().then(()=>{ll.delete(x)})),()=>{m.opUpdate(x,O=>{const[$=0,R]=O||[];return $-1===0?(r==null||r(R,!1),ll.delete(x),null):[$-1,R]})}),[x]),I}const Oc={},Pp=process.env.NODE_ENV!=="production"?"css-dev-only-do-not-override":"css",ki=new Map;function kp(e){ki.set(e,(ki.get(e)||0)+1)}function gd(e,o){typeof document<"u"&&document.querySelectorAll(`style[${ga}="${e}"]`).forEach(i=>{var r;i[yi]===o&&((r=i.parentNode)==null||r.removeChild(i))})}const ls=-1;function vd(e,o){ki.set(e,(ki.get(e)||0)-1);const i=new Set;ki.forEach((r,c)=>{r<=0&&i.add(c)}),ki.size-i.size>ls&&i.forEach(r=>{gd(r,o),ki.delete(r)})}const yd=(e,o,i,r)=>{let c={...i.getDerivativeToken(e),...o};return r&&(c=r(c)),c},Rc="token";function Ip(e,o,i){const{cache:{instanceId:r},container:c,hashPriority:m}=d.useContext(Us),{salt:g="",override:x=Oc,formatToken:w,getComputedToken:P,cssVar:E}=i,I=fd(()=>Object.assign({},...o),o),O=Qs(I),$=Qs(x),R=Qs(E);return Ac(Rc,[g,e.id,O,$,R],()=>{const A=P?P(I,x,e):yd(I,x,e,w),N={...A},F=`${g}_${E.prefix}`,D=io(F),W=`${Pp}-${D}`;N._tokenKey=Mc(N,F);const[U,j]=Lc(A,E.key,{prefix:E.prefix,ignore:E.ignore,unitless:E.unitless,preserve:E.preserve,hashPriority:m,hashCls:E.hashed?W:void 0});return U._hashId=D,kp(E.key),[U,W,N,j,E.key]},([,,,,A])=>{vd(A,r)},([,,,A,N])=>{if(!A)return;const F=kr(A,io(`css-var-${N}`),{mark:Wr,prepend:"queue",attachTo:c,priority:-999});F[yi]=r,F.setAttribute(ga,N)})}var _d={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},yo="-ms-",ba="-moz-",Un="-webkit-",cl="comm",zc="rule",ul="decl",bd="@import",dl="@namespace",cs="@keyframes",Mp="@layer",Js=Math.abs,Gi=String.fromCharCode,hl=Object.assign;function xd(e,o){return Qo(e,0)^45?(((o<<2^Qo(e,0))<<2^Qo(e,1))<<2^Qo(e,2))<<2^Qo(e,3):0}function wd(e){return e.trim()}function mr(e,o){return(e=o.exec(e))?e[0]:e}function rn(e,o,i){return e.replace(o,i)}function fl(e,o,i){return e.indexOf(o,i)}function Qo(e,o){return e.charCodeAt(o)|0}function us(e,o,i){return e.slice(o,i)}function gr(e){return e.length}function sr(e){return e.length}function Ir(e,o){return o.push(e),e}function Tp(e,o){return e.map(o).join("")}function Mr(e,o){return e.filter(function(i){return!mr(i,o)})}var pl=1,vr=1,Cd=0,Ii=0,Bo=0,qr="";function ml(e,o,i,r,c,m,g,x){return{value:e,root:o,parent:i,type:r,props:c,children:m,line:pl,column:vr,length:g,return:"",siblings:x}}function Ni(e,o){return hl(ml("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},o)}function Gr(e){for(;e.root;)e=Ni(e.root,{children:[e]});Ir(e,e.siblings)}function Lp(){return Bo}function Bc(){return Bo=Ii>0?Qo(qr,--Ii):0,vr--,Bo===10&&(vr=1,pl--),Bo}function yr(){return Bo=Ii<Cd?Qo(qr,Ii++):0,vr++,Bo===10&&(vr=1,pl++),Bo}function Mi(){return Qo(qr,Ii)}function gl(){return Ii}function Ur(e,o){return us(qr,e,o)}function xa(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Qr(e){return pl=vr=1,Cd=gr(qr=e),Ii=0,[]}function vl(e){return qr="",e}function yl(e){return wd(Ur(Ii-1,wa(e===91?e+2:e===40?e+1:e)))}function Nc(e){for(;(Bo=Mi())&&Bo<33;)yr();return xa(e)>2||xa(Bo)>3?"":" "}function _l(e,o){for(;--o&&yr()&&!(Bo<48||Bo>102||Bo>57&&Bo<65||Bo>70&&Bo<97););return Ur(e,gl()+(o<6&&Mi()==32&&yr()==32))}function wa(e){for(;yr();)switch(Bo){case e:return Ii;case 34:case 39:e!==34&&e!==39&&wa(Bo);break;case 40:e===41&&wa(e);break;case 92:yr();break}return Ii}function bl(e,o){for(;yr()&&e+Bo!==47+10&&!(e+Bo===42+42&&Mi()===47););return"/*"+Ur(o,Ii-1)+"*"+Gi(e===47?e:yr())}function Ks(e){for(;!xa(Mi());)yr();return Ur(e,Ii)}function Ca(e){return vl(Ys("",null,null,null,[""],e=Qr(e),0,[0],e))}function Ys(e,o,i,r,c,m,g,x,w){for(var P=0,E=0,I=g,O=0,$=0,R=0,A=1,N=1,F=1,D=0,W="",U=c,j=m,ee=r,te=W;N;)switch(R=D,D=yr()){case 40:if(R!=108&&Qo(te,I-1)==58){fl(te+=rn(yl(D),"&","&\f"),"&\f",Js(P?x[P-1]:0))!=-1&&(F=-1);break}case 34:case 39:case 91:te+=yl(D);break;case 9:case 10:case 13:case 32:te+=Nc(R);break;case 92:te+=_l(gl()-1,7);continue;case 47:switch(Mi()){case 42:case 47:Ir(Ap(bl(yr(),gl()),o,i,w),w),(xa(R||1)==5||xa(Mi()||1)==5)&&gr(te)&&us(te,-1,void 0)!==" "&&(te+=" ");break;default:te+="/"}break;case 123*A:x[P++]=gr(te)*F;case 125*A:case 59:case 0:switch(D){case 0:case 125:N=0;case 59+E:F==-1&&(te=rn(te,/\f/g,"")),$>0&&(gr(te)-I||A===0&&R===47)&&Ir($>32?Sa(te+";",r,i,I-1,w):Sa(rn(te," ","")+";",r,i,I-2,w),w);break;case 59:te+=";";default:if(Ir(ee=$c(te,o,i,P,E,c,x,W,U=[],j=[],I,m),m),D===123)if(E===0)Ys(te,o,ee,ee,U,m,I,x,j);else{switch(O){case 99:if(Qo(te,3)===110)break;case 108:if(Qo(te,2)===97)break;default:E=0;case 100:case 109:case 115:}E?Ys(e,ee,ee,r&&Ir($c(e,ee,ee,0,0,c,x,W,c,U=[],I,j),j),c,j,I,x,r?U:j):Ys(te,ee,ee,ee,[""],j,0,x,j)}}P=E=$=0,A=F=1,W=te="",I=g;break;case 58:I=1+gr(te),$=R;default:if(A<1){if(D==123)--A;else if(D==125&&A++==0&&Bc()==125)continue}switch(te+=Gi(D),D*A){case 38:F=E>0?1:(te+="\f",-1);break;case 44:x[P++]=(gr(te)-1)*F,F=1;break;case 64:Mi()===45&&(te+=yl(yr())),O=Mi(),E=I=gr(W=te+=Ks(gl())),D++;break;case 45:R===45&&gr(te)==2&&(A=0)}}return m}function $c(e,o,i,r,c,m,g,x,w,P,E,I){for(var O=c-1,$=c===0?m:[""],R=sr($),A=0,N=0,F=0;A<r;++A)for(var D=0,W=us(e,O+1,O=Js(N=g[A])),U=e;D<R;++D)(U=wd(N>0?$[D]+" "+W:rn(W,/&\f/g,$[D])))&&(w[F++]=U);return ml(e,o,i,c===0?zc:x,w,P,E,I)}function Ap(e,o,i,r){return ml(e,o,i,cl,Gi(Lp()),us(e,2,-2),0,r)}function Sa(e,o,i,r,c){return ml(e,o,i,ul,us(e,0,r),us(e,r+1,-1),r,c)}function Sd(e,o,i){switch(xd(e,o)){case 5103:return Un+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:case 6391:case 5879:case 5623:case 6135:case 4599:return Un+e+e;case 4855:return Un+e.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+e;case 4789:return ba+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Un+e+ba+e+yo+e+e;case 5936:switch(Qo(e,o+11)){case 114:return Un+e+yo+rn(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Un+e+yo+rn(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Un+e+yo+rn(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Un+e+yo+e+e;case 6165:return Un+e+yo+"flex-"+e+e;case 5187:return Un+e+rn(e,/(\w+).+(:[^]+)/,Un+"box-$1$2"+yo+"flex-$1$2")+e;case 5443:return Un+e+yo+"flex-item-"+rn(e,/flex-|-self/g,"")+(mr(e,/flex-|baseline/)?"":yo+"grid-row-"+rn(e,/flex-|-self/g,""))+e;case 4675:return Un+e+yo+"flex-line-pack"+rn(e,/align-content|flex-|-self/g,"")+e;case 5548:return Un+e+yo+rn(e,"shrink","negative")+e;case 5292:return Un+e+yo+rn(e,"basis","preferred-size")+e;case 6060:return Un+"box-"+rn(e,"-grow","")+Un+e+yo+rn(e,"grow","positive")+e;case 4554:return Un+rn(e,/([^-])(transform)/g,"$1"+Un+"$2")+e;case 6187:return rn(rn(rn(e,/(zoom-|grab)/,Un+"$1"),/(image-set)/,Un+"$1"),e,"")+e;case 5495:case 3959:return rn(e,/(image-set\([^]*)/,Un+"$1$`$1");case 4968:return rn(rn(e,/(.+:)(flex-)?(.*)/,Un+"box-pack:$3"+yo+"flex-pack:$3"),/space-between/,"justify")+Un+e+e;case 4200:if(!mr(e,/flex-|baseline/))return yo+"grid-column-align"+us(e,o)+e;break;case 2592:case 3360:return yo+rn(e,"template-","")+e;case 4384:case 3616:return i&&i.some(function(r,c){return o=c,mr(r.props,/grid-\w+-end/)})?~fl(e+(i=i[o].value),"span",0)?e:yo+rn(e,"-start","")+e+yo+"grid-row-span:"+(~fl(i,"span",0)?mr(i,/\d+/):+mr(i,/\d+/)-+mr(e,/\d+/))+";":yo+rn(e,"-start","")+e;case 4896:case 4128:return i&&i.some(function(r){return mr(r.props,/grid-\w+-start/)})?e:yo+rn(rn(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return rn(e,/(.+)-inline(.+)/,Un+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(gr(e)-1-o>6)switch(Qo(e,o+1)){case 109:if(Qo(e,o+4)!==45)break;case 102:return rn(e,/(.+:)(.+)-([^]+)/,"$1"+Un+"$2-$3$1"+ba+(Qo(e,o+3)==108?"$3":"$2-$3"))+e;case 115:return~fl(e,"stretch",0)?Sd(rn(e,"stretch","fill-available"),o,i)+e:e}break;case 5152:case 5920:return rn(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,c,m,g,x,w,P){return yo+c+":"+m+P+(g?yo+c+"-span:"+(x?w:+w-+m)+P:"")+e});case 4949:if(Qo(e,o+6)===121)return rn(e,":",":"+Un)+e;break;case 6444:switch(Qo(e,Qo(e,14)===45?18:11)){case 120:return rn(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Un+(Qo(e,14)===45?"inline-":"")+"box$3$1"+Un+"$2$3$1"+yo+"$2box$3")+e;case 100:return rn(e,":",":"+yo)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return rn(e,"scroll-","scroll-snap-")+e}return e}function Xs(e,o){for(var i="",r=0;r<e.length;r++)i+=o(e[r],r,e,o)||"";return i}function Ed(e,o,i,r){switch(e.type){case Mp:if(e.children.length)break;case bd:case dl:case ul:return e.return=e.return||e.value;case cl:return"";case cs:return e.return=e.value+"{"+Xs(e.children,r)+"}";case zc:if(!gr(e.value=e.props.join(",")))return""}return gr(i=Xs(e.children,r))?e.return=e.value+"{"+i+"}":""}function Pd(e){var o=sr(e);return function(i,r,c,m){for(var g="",x=0;x<o;x++)g+=e[x](i,r,c,m)||"";return g}}function Op(e,o,i,r){if(e.length>-1&&!e.return)switch(e.type){case ul:e.return=Sd(e.value,e.length,i);return;case cs:return Xs([Ni(e,{value:rn(e.value,"@","@"+Un)})],r);case zc:if(e.length)return Tp(i=e.props,function(c){switch(mr(c,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Gr(Ni(e,{props:[rn(c,/:(read-\w+)/,":"+ba+"$1")]})),Gr(Ni(e,{props:[c]})),hl(e,{props:Mr(i,r)});break;case"::placeholder":Gr(Ni(e,{props:[rn(c,/:(plac\w+)/,":"+Un+"input-$1")]})),Gr(Ni(e,{props:[rn(c,/:(plac\w+)/,":"+ba+"$1")]})),Gr(Ni(e,{props:[rn(c,/:(plac\w+)/,yo+"input-$1")]})),Gr(Ni(e,{props:[c]})),hl(e,{props:Mr(i,r)});break}return""})}}function _r(e,o){const{path:i,parentSelectors:r}=o;Wt(!1,`[Ant Design CSS-in-JS] ${i?`Error in ${i}: `:""}${e}${r.length?` Selector: ${r.join(" | ")}`:""}`)}const xl=(e,o,i)=>{if(e==="content"){const r=/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/;(typeof o!="string"||["normal","none","initial","inherit","unset"].indexOf(o)===-1&&!r.test(o)&&!o.startsWith("var(")&&(o.charAt(0)!==o.charAt(o.length-1)||o.charAt(0)!=='"'&&o.charAt(0)!=="'"))&&_r(`You seem to be using a value for 'content' without quotes, try replacing it with \`content: '"${o}"'\`.`,i)}},Rp=(e,o,i)=>{e==="animation"&&i.hashId&&o!=="none"&&_r(`You seem to be using hashed animation '${o}', in which case 'animationName' with Keyframe as value is recommended.`,i)},Ea="data-ant-cssinjs-cache-path",kd="_FILE_STYLE__";let ds,Id=!0;function Pa(){var e;if(!ds&&(ds={},Te())){const o=document.createElement("div");o.className=Ea,o.style.position="fixed",o.style.visibility="hidden",o.style.top="-9999px",document.body.appendChild(o);let i=getComputedStyle(o).content||"";i=i.replace(/^"/,"").replace(/"$/,""),i.split(";").forEach(c=>{const[m,g]=c.split(":");ds[m]=g});const r=document.querySelector(`style[${Ea}]`);r&&(Id=!1,(e=r.parentNode)==null||e.removeChild(r)),document.body.removeChild(o)}}function zp(e){return Pa(),!!ds[e]}function ea(e){const o=ds[e];let i=null;if(o&&Te())if(Id)i=kd;else{const r=document.querySelector(`style[${Wr}="${ds[e]}"]`);r?i=r.innerHTML:delete ds[e]}return[i,o]}const Dc="_skip_check_",Fc="_multi_value_";function Hc(e,o){return(o?Xs(Ca(e),Pd([Op,Ed])):Xs(Ca(e),Ed)).replace(/\{%%%\:[^;];}/g,";")}function Jr(e){return typeof e=="object"&&e&&(Dc in e||Fc in e)}function jc(e,o,i="high"){if(!o)return e;const r=Mn({hashCls:o,hashPriority:i});return e.split(",").map(c=>{var m;const g=c.trim().split(/\s+/);let x=g[0]||"";const w=((m=x.match(/^\w+/))==null?void 0:m[0])||"";return x=`${w}${r}${x.slice(w.length)}`,[x,...g.slice(1)].join(" ")}).join(",")}const wl=(e,o={},{root:i,injectHash:r,parentSelectors:c}={root:!0,parentSelectors:[]})=>{const{hashId:m,layer:g,path:x,hashPriority:w,transformers:P=[],linters:E=[]}=o;let I="",O={};function $(A){const N=A.getName(m);if(!O[N]){const[F]=wl(A.style,o,{root:!1,parentSelectors:c});O[N]=`@keyframes ${A.getName(m)}${F}`}}function R(A,N=[]){return A.forEach(F=>{Array.isArray(F)?R(F,N):F&&N.push(F)}),N}return R(Array.isArray(e)?e:[e]).forEach(A=>{const N=typeof A=="string"&&!i?{}:A;if(typeof N=="string")I+=`${N}
|
|
89
|
+
`;else if(N._keyframe)$(N);else{const F=P.reduce((D,W)=>{var U;return((U=W==null?void 0:W.visit)==null?void 0:U.call(W,D))||D},N);Object.keys(F).forEach(D=>{const W=F[D];if(typeof W=="object"&&W&&(D!=="animationName"||!W._keyframe)&&!Jr(W)){let U=!1,j=D.trim(),ee=!1;(i||r)&&m?j.startsWith("@")?U=!0:j==="&"?j=jc("",m,w):j=jc(D,m,w):i&&!m&&(j==="&"||j==="")&&(j="",ee=!0);const[te,Y]=wl(W,o,{root:ee,injectHash:U,parentSelectors:[...c,j]});O={...O,...Y},I+=`${j}${te}`}else{let U=function(ee,te){process.env.NODE_ENV!=="production"&&(typeof W!="object"||!(W!=null&&W[Dc]))&&[xl,Rp,...E].forEach(he=>he(ee,te,{path:x,hashId:m,parentSelectors:c}));const Y=ee.replace(/[A-Z]/g,he=>`-${he.toLowerCase()}`);let ae=te;!_d[ee]&&typeof ae=="number"&&ae!==0&&(ae=`${ae}px`),ee==="animationName"&&te!=null&&te._keyframe&&($(te),ae=te.getName(m)),I+=`${Y}:${ae};`};const j=(W==null?void 0:W.value)??W;typeof W=="object"&&W!=null&&W[Fc]&&Array.isArray(j)?j.forEach(ee=>{U(D,ee)}):Cp(j)&&U(D,j)}})}}),i?g&&(I&&(I=`@layer ${g.name} {${I}}`),g.dependencies&&(O[`@layer ${g.name}`]=g.dependencies.map(A=>`@layer ${A}, ${g.name};`).join(`
|
|
90
|
+
`))):I=`{${I}}`,[I,O]};function ta(e,o){return io(`${e.join("%")}${o}`)}const Bp="style";function na(e,o){const{path:i,hashId:r,layer:c,nonce:m,clientOnly:g,order:x=0}=e,{mock:w,hashPriority:P,container:E,transformers:I,linters:O,cache:$,layer:R,autoPrefix:A}=v.useContext(Us),N=[r||""];R&&N.push("layer"),N.push(...i);let F=Tc;process.env.NODE_ENV!=="production"&&w!==void 0&&(F=w==="client"),Ac(Bp,N,()=>{const D=N.join("|");if(zp(D)){const[Y,ae]=ea(D);if(Y)return[Y,ae,{},g,x]}const W=o(),[U,j]=wl(W,{hashId:r,hashPriority:P,layer:R?c:void 0,path:i.join("-"),transformers:I,linters:O}),ee=Hc(U,A||!1),te=ta(N,ee);return[ee,te,j,g,x]},(D,W)=>{const[,U]=D;W&&Tc&&Vr(U,{mark:Wr,attachTo:E})},D=>{const[W,U,j,,ee]=D;if(F&&W!==kd){const te={mark:Wr,prepend:R?!1:"queue",attachTo:E,priority:ee},Y=typeof m=="function"?m():m;Y&&(te.csp={nonce:Y});const ae=[],he=[];Object.keys(j).forEach(be=>{be.startsWith("@layer")?ae.push(be):he.push(be)}),ae.forEach(be=>{kr(Hc(j[be],A||!1),`_layer-${be}`,{...te,prepend:!0})});const oe=kr(W,U,te);oe[yi]=$.instanceId,process.env.NODE_ENV!=="production"&&oe.setAttribute(on,N.join("|")),he.forEach(be=>{kr(Hc(j[be],A||!1),`_effect-${be}`,te)})}})}const ka="cssVar",Md=(e,o)=>{const{key:i,prefix:r,unitless:c,ignore:m,token:g,hashId:x,scope:w=""}=e,{cache:{instanceId:P},container:E,hashPriority:I}=d.useContext(Us),{_tokenKey:O}=g,$=[...e.path,i,w,O];return Ac(ka,$,()=>{const R=o(),[A,N]=Lc(R,i,{prefix:r,unitless:c,ignore:m,scope:w,hashPriority:I,hashCls:x}),F=ta($,N);return[A,N,F,i]},([,,R])=>{Tc&&Vr(R,{mark:Wr,attachTo:E})},([,R,A])=>{if(!R)return;const N=kr(R,A,{mark:Wr,prepend:"queue",attachTo:E,priority:-999});N[yi]=P,N.setAttribute(ga,i)})};class Qn{constructor(o,i){T(this,"name"),T(this,"style"),T(this,"_keyframe",!0),this.name=o,this.style=i}getName(o=""){return o?`${o}-${this.name}`:this.name}}function oa(e){return e.notSplit=!0,e}oa(["borderTop","borderBottom"]),oa(["borderTop"]),oa(["borderBottom"]),oa(["borderLeft","borderRight"]),oa(["borderLeft"]),oa(["borderRight"]);function No(e){"@babel/helpers - typeof";return No=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},No(e)}function Td(e){if(Array.isArray(e))return e}function Ld(e,o){var i=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(i!=null){var r,c,m,g,x=[],w=!0,P=!1;try{if(m=(i=i.call(e)).next,o===0){if(Object(i)!==i)return;w=!1}else for(;!(w=(r=m.call(i)).done)&&(x.push(r.value),x.length!==o);w=!0);}catch(E){P=!0,c=E}finally{try{if(!w&&i.return!=null&&(g=i.return(),Object(g)!==g))return}finally{if(P)throw c}}return x}}function Ad(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
91
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Zc(e,o){return Td(e)||Ld(e,o)||vi(e,o)||Ad()}function Np(e,o){if(No(e)!="object"||!e)return e;var i=e[Symbol.toPrimitive];if(i!==void 0){var r=i.call(e,o||"default");if(No(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(e)}function Vc(e){var o=Np(e,"string");return No(o)=="symbol"?o:o+""}function jo(e,o,i){return(o=Vc(o))in e?Object.defineProperty(e,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[o]=i,e}function Od(e,o){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);o&&(r=r.filter(function(c){return Object.getOwnPropertyDescriptor(e,c).enumerable})),i.push.apply(i,r)}return i}function t(e){for(var o=1;o<arguments.length;o++){var i=arguments[o]!=null?arguments[o]:{};o%2?Od(Object(i),!0).forEach(function(r){jo(e,r,i[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):Od(Object(i)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(i,r))})}return e}function a(e,o){if(!(e instanceof o))throw new TypeError("Cannot call a class as a function")}function f(e,o){for(var i=0;i<o.length;i++){var r=o[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Vc(r.key),r)}}function _(e,o,i){return o&&f(e.prototype,o),i&&f(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e}function C(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function z(e,o){return z=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,r){return i.__proto__=r,i},z(e,o)}function Q(e,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(o&&o.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),o&&z(e,o)}function ie(e){return ie=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},ie(e)}function fe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(fe=function(){return!!e})()}function Le(e,o){if(o&&(No(o)=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return C(e)}function ct(e){var o=fe();return function(){var i,r=ie(e);if(o){var c=ie(this).constructor;i=Reflect.construct(r,arguments,c)}else i=r.apply(this,arguments);return Le(this,i)}}var Dt=_(function e(){a(this,e)}),hn="CALC_UNIT",$i=new RegExp(hn,"g");function Zo(e){return typeof e=="number"?"".concat(e).concat(hn):e}var ar=function(e){Q(i,e);var o=ct(i);function i(r,c){var m;a(this,i),m=o.call(this),jo(C(m),"result",""),jo(C(m),"unitlessCssVar",void 0),jo(C(m),"lowPriority",void 0);var g=No(r);return m.unitlessCssVar=c,r instanceof i?m.result="(".concat(r.result,")"):g==="number"?m.result=Zo(r):g==="string"&&(m.result=r),m}return _(i,[{key:"add",value:function(r){return r instanceof i?this.result="".concat(this.result," + ").concat(r.getResult()):(typeof r=="number"||typeof r=="string")&&(this.result="".concat(this.result," + ").concat(Zo(r))),this.lowPriority=!0,this}},{key:"sub",value:function(r){return r instanceof i?this.result="".concat(this.result," - ").concat(r.getResult()):(typeof r=="number"||typeof r=="string")&&(this.result="".concat(this.result," - ").concat(Zo(r))),this.lowPriority=!0,this}},{key:"mul",value:function(r){return this.lowPriority&&(this.result="(".concat(this.result,")")),r instanceof i?this.result="".concat(this.result," * ").concat(r.getResult(!0)):(typeof r=="number"||typeof r=="string")&&(this.result="".concat(this.result," * ").concat(r)),this.lowPriority=!1,this}},{key:"div",value:function(r){return this.lowPriority&&(this.result="(".concat(this.result,")")),r instanceof i?this.result="".concat(this.result," / ").concat(r.getResult(!0)):(typeof r=="number"||typeof r=="string")&&(this.result="".concat(this.result," / ").concat(r)),this.lowPriority=!1,this}},{key:"getResult",value:function(r){return this.lowPriority||r?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(r){var c=this,m=r||{},g=m.unit,x=!0;return typeof g=="boolean"?x=g:Array.from(this.unitlessCssVar).some(function(w){return c.result.includes(w)})&&(x=!1),this.result=this.result.replace($i,x?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),i}(Dt),Ui=function(e){Q(i,e);var o=ct(i);function i(r){var c;return a(this,i),c=o.call(this),jo(C(c),"result",0),r instanceof i?c.result=r.result:typeof r=="number"&&(c.result=r),c}return _(i,[{key:"add",value:function(r){return r instanceof i?this.result+=r.result:typeof r=="number"&&(this.result+=r),this}},{key:"sub",value:function(r){return r instanceof i?this.result-=r.result:typeof r=="number"&&(this.result-=r),this}},{key:"mul",value:function(r){return r instanceof i?this.result*=r.result:typeof r=="number"&&(this.result*=r),this}},{key:"div",value:function(r){return r instanceof i?this.result/=r.result:typeof r=="number"&&(this.result/=r),this}},{key:"equal",value:function(){return this.result}}]),i}(Dt),ia=function(e,o){var i=e==="css"?ar:Ui;return function(r){return new i(r,o)}},Rd=function(e,o){return"".concat([o,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function zd(e,o,i,r){var c=t({},o[e]);if(r!=null&&r.deprecatedTokens){var m=r.deprecatedTokens;m.forEach(function(x){var w=Zc(x,2),P=w[0],E=w[1];if(process.env.NODE_ENV!=="production"&&Wt(!(c!=null&&c[P]),"Component Token `".concat(String(P),"` of ").concat(String(e)," is deprecated. Please use `").concat(String(E),"` instead.")),c!=null&&c[P]||c!=null&&c[E]){var I;(I=c[E])!==null&&I!==void 0||(c[E]=c==null?void 0:c[P])}})}var g=t(t({},i),c);return Object.keys(g).forEach(function(x){g[x]===o[x]&&delete g[x]}),g}var Bd=process.env.NODE_ENV!=="production"||typeof CSSINJS_STATISTIC<"u",Cl=!0;function Yi(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];if(!Bd)return Object.assign.apply(Object,[{}].concat(o));Cl=!1;var r={};return o.forEach(function(c){if(No(c)==="object"){var m=Object.keys(c);m.forEach(function(g){Object.defineProperty(r,g,{configurable:!0,enumerable:!0,get:function(){return c[g]}})})}}),Cl=!0,r}var Wc={};function Vo(){}var Sl=function(e){var o,i=e,r=Vo;return Bd&&typeof Proxy<"u"&&(o=new Set,i=new Proxy(e,{get:function(c,m){if(Cl){var g;(g=o)===null||g===void 0||g.add(m)}return c[m]}}),r=function(c,m){var g;Wc[c]={global:Array.from(o),component:t(t({},(g=Wc[c])===null||g===void 0?void 0:g.component),m)}}),{token:i,keys:o,flush:r}};function Nd(e,o,i){if(typeof i=="function"){var r;return i(Yi(o,(r=o[e])!==null&&r!==void 0?r:{}))}return i??{}}function $p(e){return e==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var o=arguments.length,i=new Array(o),r=0;r<o;r++)i[r]=arguments[r];return"max(".concat(i.map(function(c){return $t(c)}).join(","),")")},min:function(){for(var o=arguments.length,i=new Array(o),r=0;r<o;r++)i[r]=arguments[r];return"min(".concat(i.map(function(c){return $t(c)}).join(","),")")}}}var Dp=1e3*60*10,qc=function(){function e(){a(this,e),jo(this,"map",new Map),jo(this,"objectIDMap",new WeakMap),jo(this,"nextID",0),jo(this,"lastAccessBeat",new Map),jo(this,"accessBeat",0)}return _(e,[{key:"set",value:function(o,i){this.clear();var r=this.getCompositeKey(o);this.map.set(r,i),this.lastAccessBeat.set(r,Date.now())}},{key:"get",value:function(o){var i=this.getCompositeKey(o),r=this.map.get(i);return this.lastAccessBeat.set(i,Date.now()),this.accessBeat+=1,r}},{key:"getCompositeKey",value:function(o){var i=this,r=o.map(function(c){return c&&No(c)==="object"?"obj_".concat(i.getObjectID(c)):"".concat(No(c),"_").concat(c)});return r.join("|")}},{key:"getObjectID",value:function(o){if(this.objectIDMap.has(o))return this.objectIDMap.get(o);var i=this.nextID;return this.objectIDMap.set(o,i),this.nextID+=1,i}},{key:"clear",value:function(){var o=this;if(this.accessBeat>1e4){var i=Date.now();this.lastAccessBeat.forEach(function(r,c){i-r>Dp&&(o.map.delete(c),o.lastAccessBeat.delete(c))}),this.accessBeat=0}}}]),e}(),Gc=new qc;function Fp(e,o){return d.useMemo(function(){var i=Gc.get(o);if(i)return i;var r=e();return Gc.set(o,r),r},o)}var HP=function(){return{}};function jP(e){var o=e.useCSP,i=o===void 0?HP:o,r=e.useToken,c=e.usePrefix,m=e.getResetStyles,g=e.getCommonStyle,x=e.getCompUnitless;function w(O,$,R,A){var N=Array.isArray(O)?O[0]:O;function F(Y){return"".concat(String(N)).concat(Y.slice(0,1).toUpperCase()).concat(Y.slice(1))}var D=(A==null?void 0:A.unitless)||{},W=typeof x=="function"?x(O):{},U=t(t({},W),{},jo({},F("zIndexPopup"),!0));Object.keys(D).forEach(function(Y){U[F(Y)]=D[Y]});var j=t(t({},A),{},{unitless:U,prefixToken:F}),ee=E(O,$,R,j),te=P(N,R,j);return function(Y){var ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Y,he=ee(Y,ae),oe=te(ae);return[he,oe]}}function P(O,$,R){var A=R.unitless,N=R.prefixToken,F=R.ignore;return function(D){var W=r(),U=W.cssVar,j=W.realToken;return Md({path:[O],prefix:U.prefix,key:U.key,unitless:A,ignore:F,token:j,scope:D},function(){var ee=Nd(O,j,$),te=zd(O,j,ee,{deprecatedTokens:R==null?void 0:R.deprecatedTokens});return ee&&Object.keys(ee).forEach(function(Y){te[N(Y)]=te[Y],delete te[Y]}),te}),U==null?void 0:U.key}}function E(O,$,R){var A=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},N=Array.isArray(O)?O:[O,O],F=Zc(N,1),D=F[0],W=N.join("-"),U=e.layer||{name:"antd"};return function(j){var ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:j,te=r(),Y=te.theme,ae=te.realToken,he=te.hashId,oe=te.token,be=te.cssVar,ye=te.zeroRuntime,Me=d.useMemo(function(){return ye},[]);if(Me)return he;var le=c(),we=le.rootPrefixCls,Fe=le.iconPrefixCls,_e=i(),st="css",ke=Fp(function(){var ze=new Set;return Object.keys(A.unitless||{}).forEach(function(Se){ze.add(qi(Se,be.prefix)),ze.add(qi(Se,Rd(D,be.prefix)))}),ia(st,ze)},[st,D,be==null?void 0:be.prefix]),Ne=$p(st),rt=Ne.max,We=Ne.min,Ge={theme:Y,token:oe,hashId:he,nonce:function(){return _e.nonce},clientOnly:A.clientOnly,layer:U,order:A.order||-999};return typeof m=="function"&&na(t(t({},Ge),{},{clientOnly:!1,path:["Shared",we]}),function(){return m(oe,{prefix:{rootPrefixCls:we,iconPrefixCls:Fe},csp:_e})}),na(t(t({},Ge),{},{path:[W,j,Fe]}),function(){if(A.injectStyle===!1)return[];var ze=Sl(oe),Se=ze.token,je=ze.flush,tt=Nd(D,ae,R),ut=".".concat(j),At=zd(D,ae,tt,{deprecatedTokens:A.deprecatedTokens});tt&&No(tt)==="object"&&Object.keys(tt).forEach(function(Ve){tt[Ve]="var(".concat(qi(Ve,Rd(D,be.prefix)),")")});var St=Yi(Se,{componentCls:ut,prefixCls:j,iconCls:".".concat(Fe),antCls:".".concat(we),calc:ke,max:rt,min:We},tt),Ft=$(St,{hashId:he,prefixCls:j,rootPrefixCls:we,iconPrefixCls:Fe});je(D,At);var It=typeof g=="function"?g(St,j,ee,A.resetFont):null;return[A.resetStyle===!1?null:It,Ft]}),he}}function I(O,$,R){var A=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},N=E(O,$,R,t({resetStyle:!1,order:-998},A)),F=function(D){var W=D.prefixCls,U=D.rootCls,j=U===void 0?W:U;return N(W,j),null};return process.env.NODE_ENV!=="production"&&(F.displayName="SubStyle_".concat(String(Array.isArray(O)?O.join("."):O))),F}return{genStyleHooks:w,genSubStyleComponent:I,genComponentStyleHook:E}}const Ia=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function $d(e){return(e+8)/e}function ZP(e){const o=Array.from({length:10}).map((i,r)=>{const c=r-1,m=e*Math.E**(c/5),g=r>1?Math.floor(m):Math.ceil(m);return Math.floor(g/2)*2});return o[1]=e,o.map(i=>({size:i,lineHeight:$d(i)}))}const VP="6.2.3",Q_={blue:"#1677FF",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#EB2F96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},Uc={...Q_,colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
|
92
|
+
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
|
93
|
+
'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0},WP={aliceblue:"9ehhb",antiquewhite:"9sgk7",aqua:"1ekf",aquamarine:"4zsno",azure:"9eiv3",beige:"9lhp8",bisque:"9zg04",black:"0",blanchedalmond:"9zhe5",blue:"73",blueviolet:"5e31e",brown:"6g016",burlywood:"8ouiv",cadetblue:"3qba8",chartreuse:"4zshs",chocolate:"87k0u",coral:"9yvyo",cornflowerblue:"3xael",cornsilk:"9zjz0",crimson:"8l4xo",cyan:"1ekf",darkblue:"3v",darkcyan:"rkb",darkgoldenrod:"776yz",darkgray:"6mbhl",darkgreen:"jr4",darkgrey:"6mbhl",darkkhaki:"7ehkb",darkmagenta:"5f91n",darkolivegreen:"3bzfz",darkorange:"9yygw",darkorchid:"5z6x8",darkred:"5f8xs",darksalmon:"9441m",darkseagreen:"5lwgf",darkslateblue:"2th1n",darkslategray:"1ugcv",darkslategrey:"1ugcv",darkturquoise:"14up",darkviolet:"5rw7n",deeppink:"9yavn",deepskyblue:"11xb",dimgray:"442g9",dimgrey:"442g9",dodgerblue:"16xof",firebrick:"6y7tu",floralwhite:"9zkds",forestgreen:"1cisi",fuchsia:"9y70f",gainsboro:"8m8kc",ghostwhite:"9pq0v",goldenrod:"8j4f4",gold:"9zda8",gray:"50i2o",green:"pa8",greenyellow:"6senj",grey:"50i2o",honeydew:"9eiuo",hotpink:"9yrp0",indianred:"80gnw",indigo:"2xcoy",ivory:"9zldc",khaki:"9edu4",lavenderblush:"9ziet",lavender:"90c8q",lawngreen:"4vk74",lemonchiffon:"9zkct",lightblue:"6s73a",lightcoral:"9dtog",lightcyan:"8s1rz",lightgoldenrodyellow:"9sjiq",lightgray:"89jo3",lightgreen:"5nkwg",lightgrey:"89jo3",lightpink:"9z6wx",lightsalmon:"9z2ii",lightseagreen:"19xgq",lightskyblue:"5arju",lightslategray:"4nwk9",lightslategrey:"4nwk9",lightsteelblue:"6wau6",lightyellow:"9zlcw",lime:"1edc",limegreen:"1zcxe",linen:"9shk6",magenta:"9y70f",maroon:"4zsow",mediumaquamarine:"40eju",mediumblue:"5p",mediumorchid:"79qkz",mediumpurple:"5r3rv",mediumseagreen:"2d9ip",mediumslateblue:"4tcku",mediumspringgreen:"1di2",mediumturquoise:"2uabw",mediumvioletred:"7rn9h",midnightblue:"z980",mintcream:"9ljp6",mistyrose:"9zg0x",moccasin:"9zfzp",navajowhite:"9zest",navy:"3k",oldlace:"9wq92",olive:"50hz4",olivedrab:"472ub",orange:"9z3eo",orangered:"9ykg0",orchid:"8iu3a",palegoldenrod:"9bl4a",palegreen:"5yw0o",paleturquoise:"6v4ku",palevioletred:"8k8lv",papayawhip:"9zi6t",peachpuff:"9ze0p",peru:"80oqn",pink:"9z8wb",plum:"8nba5",powderblue:"6wgdi",purple:"4zssg",rebeccapurple:"3zk49",red:"9y6tc",rosybrown:"7cv4f",royalblue:"2jvtt",saddlebrown:"5fmkz",salmon:"9rvci",sandybrown:"9jn1c",seagreen:"1tdnb",seashell:"9zje6",sienna:"6973h",silver:"7ir40",skyblue:"5arjf",slateblue:"45e4t",slategray:"4e100",slategrey:"4e100",snow:"9zke2",springgreen:"1egv",steelblue:"2r1kk",tan:"87yx8",teal:"pds",thistle:"8ggk8",tomato:"9yqfb",turquoise:"2j4r4",violet:"9b10u",wheat:"9ld4j",white:"9zldr",whitesmoke:"9lhpx",yellow:"9zl6o",yellowgreen:"61fzm"},Ti=Math.round;function Hp(e,o){const i=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=i.map(c=>parseFloat(c));for(let c=0;c<3;c+=1)r[c]=o(r[c]||0,i[c]||"",c);return i[3]?r[3]=i[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const J_=(e,o,i)=>i===0?e:e/100;function Qc(e,o){const i=o||255;return e>i?i:e<0?0:e}class Wo{constructor(o){T(this,"isValid",!0),T(this,"r",0),T(this,"g",0),T(this,"b",0),T(this,"a",1),T(this,"_h"),T(this,"_hsl_s"),T(this,"_hsv_s"),T(this,"_l"),T(this,"_v"),T(this,"_max"),T(this,"_min"),T(this,"_brightness");function i(r){return r[0]in o&&r[1]in o&&r[2]in o}if(o)if(typeof o=="string"){let r=function(m){return c.startsWith(m)};const c=o.trim();if(/^#?[A-F\d]{3,8}$/i.test(c))this.fromHexString(c);else if(r("rgb"))this.fromRgbString(c);else if(r("hsl"))this.fromHslString(c);else if(r("hsv")||r("hsb"))this.fromHsvString(c);else{const m=WP[c.toLowerCase()];m&&this.fromHexString(parseInt(m,36).toString(16).padStart(6,"0"))}}else if(o instanceof Wo)this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this._h=o._h,this._hsl_s=o._hsl_s,this._hsv_s=o._hsv_s,this._l=o._l,this._v=o._v;else if(i("rgb"))this.r=Qc(o.r),this.g=Qc(o.g),this.b=Qc(o.b),this.a=typeof o.a=="number"?Qc(o.a,1):1;else if(i("hsl"))this.fromHsl(o);else if(i("hsv"))this.fromHsv(o);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(o))}setR(o){return this._sc("r",o)}setG(o){return this._sc("g",o)}setB(o){return this._sc("b",o)}setA(o){return this._sc("a",o,1)}setHue(o){const i=this.toHsv();return i.h=o,this._c(i)}getLuminance(){function o(m){const g=m/255;return g<=.03928?g/12.92:Math.pow((g+.055)/1.055,2.4)}const i=o(this.r),r=o(this.g),c=o(this.b);return .2126*i+.7152*r+.0722*c}getHue(){if(typeof this._h>"u"){const o=this.getMax()-this.getMin();o===0?this._h=0:this._h=Ti(60*(this.r===this.getMax()?(this.g-this.b)/o+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/o+2:(this.r-this.g)/o+4))}return this._h}getSaturation(){return this.getHSVSaturation()}getHSVSaturation(){if(typeof this._hsv_s>"u"){const o=this.getMax()-this.getMin();o===0?this._hsv_s=0:this._hsv_s=o/this.getMax()}return this._hsv_s}getHSLSaturation(){if(typeof this._hsl_s>"u"){const o=this.getMax()-this.getMin();if(o===0)this._hsl_s=0;else{const i=this.getLightness();this._hsl_s=o/255/(1-Math.abs(2*i-1))}}return this._hsl_s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(o=10){const i=this.getHue(),r=this.getSaturation();let c=this.getLightness()-o/100;return c<0&&(c=0),this._c({h:i,s:r,l:c,a:this.a})}lighten(o=10){const i=this.getHue(),r=this.getSaturation();let c=this.getLightness()+o/100;return c>1&&(c=1),this._c({h:i,s:r,l:c,a:this.a})}mix(o,i=50){const r=this._c(o),c=i/100,m=x=>(r[x]-this[x])*c+this[x],g={r:Ti(m("r")),g:Ti(m("g")),b:Ti(m("b")),a:Ti(m("a")*100)/100};return this._c(g)}tint(o=10){return this.mix({r:255,g:255,b:255,a:1},o)}shade(o=10){return this.mix({r:0,g:0,b:0,a:1},o)}onBackground(o){const i=this._c(o),r=this.a+i.a*(1-this.a),c=m=>Ti((this[m]*this.a+i[m]*i.a*(1-this.a))/r);return this._c({r:c("r"),g:c("g"),b:c("b"),a:r})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(o){return this.r===o.r&&this.g===o.g&&this.b===o.b&&this.a===o.a}clone(){return this._c(this)}toHexString(){let o="#";const i=(this.r||0).toString(16);o+=i.length===2?i:"0"+i;const r=(this.g||0).toString(16);o+=r.length===2?r:"0"+r;const c=(this.b||0).toString(16);if(o+=c.length===2?c:"0"+c,typeof this.a=="number"&&this.a>=0&&this.a<1){const m=Ti(this.a*255).toString(16);o+=m.length===2?m:"0"+m}return o}toHsl(){return{h:this.getHue(),s:this.getHSLSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const o=this.getHue(),i=Ti(this.getHSLSaturation()*100),r=Ti(this.getLightness()*100);return this.a!==1?`hsla(${o},${i}%,${r}%,${this.a})`:`hsl(${o},${i}%,${r}%)`}toHsv(){return{h:this.getHue(),s:this.getHSVSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(o,i,r){const c=this.clone();return c[o]=Qc(i,r),c}_c(o){return new this.constructor(o)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(o){const i=o.replace("#","");function r(c,m){return parseInt(i[c]+i[m||c],16)}i.length<6?(this.r=r(0),this.g=r(1),this.b=r(2),this.a=i[3]?r(3)/255:1):(this.r=r(0,1),this.g=r(2,3),this.b=r(4,5),this.a=i[6]?r(6,7)/255:1)}fromHsl({h:o,s:i,l:r,a:c}){const m=(o%360+360)%360;if(this._h=m,this._hsl_s=i,this._l=r,this.a=typeof c=="number"?c:1,i<=0){const $=Ti(r*255);this.r=$,this.g=$,this.b=$;return}let g=0,x=0,w=0;const P=m/60,E=(1-Math.abs(2*r-1))*i,I=E*(1-Math.abs(P%2-1));P>=0&&P<1?(g=E,x=I):P>=1&&P<2?(g=I,x=E):P>=2&&P<3?(x=E,w=I):P>=3&&P<4?(x=I,w=E):P>=4&&P<5?(g=I,w=E):P>=5&&P<6&&(g=E,w=I);const O=r-E/2;this.r=Ti((g+O)*255),this.g=Ti((x+O)*255),this.b=Ti((w+O)*255)}fromHsv({h:o,s:i,v:r,a:c}){const m=(o%360+360)%360;this._h=m,this._hsv_s=i,this._v=r,this.a=typeof c=="number"?c:1;const g=Ti(r*255);if(this.r=g,this.g=g,this.b=g,i<=0)return;const x=m/60,w=Math.floor(x),P=x-w,E=Ti(r*(1-i)*255),I=Ti(r*(1-i*P)*255),O=Ti(r*(1-i*(1-P))*255);switch(w){case 0:this.g=O,this.b=E;break;case 1:this.r=I,this.b=E;break;case 2:this.r=E,this.b=O;break;case 3:this.r=E,this.g=I;break;case 4:this.r=O,this.g=E;break;case 5:default:this.g=E,this.b=I;break}}fromHsvString(o){const i=Hp(o,J_);this.fromHsv({h:i[0],s:i[1],v:i[2],a:i[3]})}fromHslString(o){const i=Hp(o,J_);this.fromHsl({h:i[0],s:i[1],l:i[2],a:i[3]})}fromRgbString(o){const i=Hp(o,(r,c)=>c.includes("%")?Ti(r/100*255):r);this.r=i[0],this.g=i[1],this.b=i[2],this.a=i[3]}}const Dd=2,K_=.16,qP=.05,GP=.05,UP=.15,Y_=5,X_=4,QP=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function eb(e,o,i){let r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=i?Math.round(e.h)-Dd*o:Math.round(e.h)+Dd*o:r=i?Math.round(e.h)+Dd*o:Math.round(e.h)-Dd*o,r<0?r+=360:r>=360&&(r-=360),r}function tb(e,o,i){if(e.h===0&&e.s===0)return e.s;let r;return i?r=e.s-K_*o:o===X_?r=e.s+K_:r=e.s+qP*o,r>1&&(r=1),i&&o===Y_&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function nb(e,o,i){let r;return i?r=e.v+GP*o:r=e.v-UP*o,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function jp(e,o={}){const i=[],r=new Wo(e),c=r.toHsv();for(let m=Y_;m>0;m-=1){const g=new Wo({h:eb(c,m,!0),s:tb(c,m,!0),v:nb(c,m,!0)});i.push(g)}i.push(r);for(let m=1;m<=X_;m+=1){const g=new Wo({h:eb(c,m),s:tb(c,m),v:nb(c,m)});i.push(g)}return o.theme==="dark"?QP.map(({index:m,amount:g})=>new Wo(o.backgroundColor||"#141414").mix(i[m],g).toHexString()):i.map(m=>m.toHexString())}const Zp={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},Vp=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];Vp.primary=Vp[5];const Wp=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];Wp.primary=Wp[5];const qp=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];qp.primary=qp[5];const Gp=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];Gp.primary=Gp[5];const Up=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];Up.primary=Up[5];const Qp=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];Qp.primary=Qp[5];const Jp=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];Jp.primary=Jp[5];const Kp=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];Kp.primary=Kp[5];const Fd=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Fd.primary=Fd[5];const Yp=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];Yp.primary=Yp[5];const Xp=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];Xp.primary=Xp[5];const em=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];em.primary=em[5];const tm=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];tm.primary=tm[5];const nm={red:Vp,volcano:Wp,orange:qp,gold:Gp,yellow:Up,lime:Qp,green:Jp,cyan:Kp,blue:Fd,geekblue:Yp,purple:Xp,magenta:em,grey:tm};function JP(e,{generateColorPalettes:o,generateNeutralColorPalettes:i}){const{colorSuccess:r,colorWarning:c,colorError:m,colorInfo:g,colorPrimary:x,colorBgBase:w,colorTextBase:P}=e,E=o(x),I=o(r),O=o(c),$=o(m),R=o(g),A=i(w,P),N=e.colorLink||e.colorInfo,F=o(N),D=new Wo($[1]).mix(new Wo($[3]),50).toHexString();return{...A,colorPrimaryBg:E[1],colorPrimaryBgHover:E[2],colorPrimaryBorder:E[3],colorPrimaryBorderHover:E[4],colorPrimaryHover:E[5],colorPrimary:E[6],colorPrimaryActive:E[7],colorPrimaryTextHover:E[8],colorPrimaryText:E[9],colorPrimaryTextActive:E[10],colorSuccessBg:I[1],colorSuccessBgHover:I[2],colorSuccessBorder:I[3],colorSuccessBorderHover:I[4],colorSuccessHover:I[4],colorSuccess:I[6],colorSuccessActive:I[7],colorSuccessTextHover:I[8],colorSuccessText:I[9],colorSuccessTextActive:I[10],colorErrorBg:$[1],colorErrorBgHover:$[2],colorErrorBgFilledHover:D,colorErrorBgActive:$[3],colorErrorBorder:$[3],colorErrorBorderHover:$[4],colorErrorHover:$[5],colorError:$[6],colorErrorActive:$[7],colorErrorTextHover:$[8],colorErrorText:$[9],colorErrorTextActive:$[10],colorWarningBg:O[1],colorWarningBgHover:O[2],colorWarningBorder:O[3],colorWarningBorderHover:O[4],colorWarningHover:O[4],colorWarning:O[6],colorWarningActive:O[7],colorWarningTextHover:O[8],colorWarningText:O[9],colorWarningTextActive:O[10],colorInfoBg:R[1],colorInfoBgHover:R[2],colorInfoBorder:R[3],colorInfoBorderHover:R[4],colorInfoHover:R[4],colorInfo:R[6],colorInfoActive:R[7],colorInfoTextHover:R[8],colorInfoText:R[9],colorInfoTextActive:R[10],colorLinkHover:F[4],colorLink:F[6],colorLinkActive:F[7],colorBgMask:new Wo("#000").setA(.45).toRgbString(),colorWhite:"#fff"}}const KP=e=>{let o=e,i=e,r=e,c=e;return e<6&&e>=5?o=e+1:e<16&&e>=6?o=e+2:e>=16&&(o=16),e<7&&e>=5?i=4:e<8&&e>=7?i=5:e<14&&e>=8?i=6:e<16&&e>=14?i=7:e>=16&&(i=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?c=4:e>=8&&(c=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:i,borderRadiusLG:o,borderRadiusOuter:c}};function YP(e){const{motionUnit:o,motionBase:i,borderRadius:r,lineWidth:c}=e;return{motionDurationFast:`${(i+o).toFixed(1)}s`,motionDurationMid:`${(i+o*2).toFixed(1)}s`,motionDurationSlow:`${(i+o*3).toFixed(1)}s`,lineWidthBold:c+1,...KP(r)}}const XP=e=>{const{controlHeight:o}=e;return{controlHeightSM:o*.75,controlHeightXS:o*.5,controlHeightLG:o*1.25}},ek=e=>{const o=ZP(e),i=o.map(E=>E.size),r=o.map(E=>E.lineHeight),c=i[1],m=i[0],g=i[2],x=r[1],w=r[0],P=r[2];return{fontSizeSM:m,fontSize:c,fontSizeLG:g,fontSizeXL:i[3],fontSizeHeading1:i[6],fontSizeHeading2:i[5],fontSizeHeading3:i[4],fontSizeHeading4:i[3],fontSizeHeading5:i[2],lineHeight:x,lineHeightLG:P,lineHeightSM:w,fontHeight:Math.round(x*c),fontHeightLG:Math.round(P*g),fontHeightSM:Math.round(w*m),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function tk(e){const{sizeUnit:o,sizeStep:i}=e;return{sizeXXL:o*(i+8),sizeXL:o*(i+4),sizeLG:o*(i+2),sizeMD:o*(i+1),sizeMS:o*i,size:o*i,sizeSM:o*(i-1),sizeXS:o*(i-2),sizeXXS:o*(i-3)}}const Tr=(e,o)=>new Wo(e).setA(o).toRgbString(),El=(e,o)=>new Wo(e).darken(o).toHexString(),nk=e=>{const o=jp(e);return{1:o[0],2:o[1],3:o[2],4:o[3],5:o[4],6:o[5],7:o[6],8:o[4],9:o[5],10:o[6]}},ok=(e,o)=>{const i=e||"#fff",r=o||"#000";return{colorBgBase:i,colorTextBase:r,colorText:Tr(r,.88),colorTextSecondary:Tr(r,.65),colorTextTertiary:Tr(r,.45),colorTextQuaternary:Tr(r,.25),colorFill:Tr(r,.15),colorFillSecondary:Tr(r,.06),colorFillTertiary:Tr(r,.04),colorFillQuaternary:Tr(r,.02),colorBgSolid:Tr(r,1),colorBgSolidHover:Tr(r,.75),colorBgSolidActive:Tr(r,.95),colorBgLayout:El(i,4),colorBgContainer:El(i,0),colorBgElevated:El(i,0),colorBgSpotlight:Tr(r,.85),colorBgBlur:"transparent",colorBorder:El(i,15),colorBorderDisabled:El(i,15),colorBorderSecondary:El(i,6)}};function ik(e){Zp.pink=Zp.magenta,nm.pink=nm.magenta;const o=Object.keys(Q_).map(i=>{const r=e[i]===Zp[i]?nm[i]:jp(e[i]);return Array.from({length:10},()=>1).reduce((c,m,g)=>(c[`${i}-${g+1}`]=r[g],c[`${i}${g+1}`]=r[g],c),{})}).reduce((i,r)=>(i={...i,...r},i),{});return{...e,...o,...JP(e,{generateColorPalettes:nk,generateNeutralColorPalettes:ok}),...ek(e.fontSize),...tk(e),...XP(e),...YP(e)}}const ob=Uo(ik),om={token:Uc,override:{override:Uc},hashed:!0},ib=d.createContext(om);function im(e){return e>=0&&e<=255}function Jc(e,o){const{r:i,g:r,b:c,a:m}=new Wo(e).toRgb();if(m<1)return e;const{r:g,g:x,b:w}=new Wo(o).toRgb();for(let P=.01;P<=1;P+=.01){const E=Math.round((i-g*(1-P))/P),I=Math.round((r-x*(1-P))/P),O=Math.round((c-w*(1-P))/P);if(im(E)&&im(I)&&im(O))return new Wo({r:E,g:I,b:O,a:Math.round(P*100)/100}).toRgbString()}return new Wo({r:i,g:r,b:c,a:1}).toRgbString()}function rk(e){const{override:o,...i}=e,r={...o};Object.keys(Uc).forEach(I=>{delete r[I]});const c={...i,...r},m=480,g=576,x=768,w=992,P=1200,E=1600;if(c.motion===!1){const I="0s";c.motionDurationFast=I,c.motionDurationMid=I,c.motionDurationSlow=I}return{...c,colorFillContent:c.colorFillSecondary,colorFillContentHover:c.colorFill,colorFillAlter:c.colorFillQuaternary,colorBgContainerDisabled:c.colorFillTertiary,colorBorderBg:c.colorBgContainer,colorSplit:Jc(c.colorBorderSecondary,c.colorBgContainer),colorTextPlaceholder:c.colorTextQuaternary,colorTextDisabled:c.colorTextQuaternary,colorTextHeading:c.colorText,colorTextLabel:c.colorTextSecondary,colorTextDescription:c.colorTextTertiary,colorTextLightSolid:c.colorWhite,colorHighlight:c.colorError,colorBgTextHover:c.colorFillSecondary,colorBgTextActive:c.colorFill,colorIcon:c.colorTextTertiary,colorIconHover:c.colorText,colorErrorOutline:Jc(c.colorErrorBg,c.colorBgContainer),colorWarningOutline:Jc(c.colorWarningBg,c.colorBgContainer),fontSizeIcon:c.fontSizeSM,lineWidthFocus:c.lineWidth*3,lineWidth:c.lineWidth,controlOutlineWidth:c.lineWidth*2,controlInteractiveSize:c.controlHeight/2,controlItemBgHover:c.colorFillTertiary,controlItemBgActive:c.colorPrimaryBg,controlItemBgActiveHover:c.colorPrimaryBgHover,controlItemBgActiveDisabled:c.colorFill,controlTmpOutline:c.colorFillQuaternary,controlOutline:Jc(c.colorPrimaryBg,c.colorBgContainer),lineType:c.lineType,borderRadius:c.borderRadius,borderRadiusXS:c.borderRadiusXS,borderRadiusSM:c.borderRadiusSM,borderRadiusLG:c.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:c.sizeXXS,paddingXS:c.sizeXS,paddingSM:c.sizeSM,padding:c.size,paddingMD:c.sizeMD,paddingLG:c.sizeLG,paddingXL:c.sizeXL,paddingContentHorizontalLG:c.sizeLG,paddingContentVerticalLG:c.sizeMS,paddingContentHorizontal:c.sizeMS,paddingContentVertical:c.sizeSM,paddingContentHorizontalSM:c.size,paddingContentVerticalSM:c.sizeXS,marginXXS:c.sizeXXS,marginXS:c.sizeXS,marginSM:c.sizeSM,margin:c.size,marginMD:c.sizeMD,marginLG:c.sizeLG,marginXL:c.sizeXL,marginXXL:c.sizeXXL,boxShadow:`
|
|
94
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
95
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
96
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
97
|
+
`,boxShadowSecondary:`
|
|
98
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
99
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
100
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
101
|
+
`,boxShadowTertiary:`
|
|
102
|
+
0 1px 2px 0 rgba(0, 0, 0, 0.03),
|
|
103
|
+
0 1px 6px -1px rgba(0, 0, 0, 0.02),
|
|
104
|
+
0 2px 4px 0 rgba(0, 0, 0, 0.02)
|
|
105
|
+
`,screenXS:m,screenXSMin:m,screenXSMax:g-1,screenSM:g,screenSMMin:g,screenSMMax:x-1,screenMD:x,screenMDMin:x,screenMDMax:w-1,screenLG:w,screenLGMin:w,screenLGMax:P-1,screenXL:P,screenXLMin:P,screenXLMax:E-1,screenXXL:E,screenXXLMin:E,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
|
|
106
|
+
0 1px 2px -2px ${new Wo("rgba(0, 0, 0, 0.16)").toRgbString()},
|
|
107
|
+
0 3px 6px 0 ${new Wo("rgba(0, 0, 0, 0.12)").toRgbString()},
|
|
108
|
+
0 5px 12px 4px ${new Wo("rgba(0, 0, 0, 0.09)").toRgbString()}
|
|
109
|
+
`,boxShadowDrawerRight:`
|
|
110
|
+
-6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
111
|
+
-3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
112
|
+
-9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
113
|
+
`,boxShadowDrawerLeft:`
|
|
114
|
+
6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
115
|
+
3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
116
|
+
9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
117
|
+
`,boxShadowDrawerUp:`
|
|
118
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
119
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
120
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
121
|
+
`,boxShadowDrawerDown:`
|
|
122
|
+
0 -6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
123
|
+
0 -3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
124
|
+
0 -9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
125
|
+
`,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)",...r}}const rb={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0,opacityImage:!0},sk={motionBase:!0,motionUnit:!0},ak={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0},sb=(e,o,i)=>{const r=i.getDerivativeToken(e),{override:c,...m}=o;let g={...r,override:c};return g=rk(g),m&&Object.entries(m).forEach(([x,w])=>{const{theme:P,...E}=w;let I=E;P&&(I=sb({...g,...E},{override:E},P)),g[x]=I}),g};function ra(){const{token:e,hashed:o,theme:i,override:r,cssVar:c,zeroRuntime:m}=d.useContext(ib),g={prefix:(c==null?void 0:c.prefix)??"ant",key:(c==null?void 0:c.key)??"css-var-root"},x=`${VP}-${o||""}`,w=i||ob,[P,E,I]=Ip(w,[Uc,e],{salt:x,override:r,getComputedToken:sb,cssVar:{...g,unitless:rb,ignore:sk,preserve:ak}});return[w,I,o?E:"",P,g,!!m]}const lk={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Pl=(e,o=!1)=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:o?"inherit":e.fontFamily}),rm=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),ab=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),ck=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),uk=(e,o,i,r)=>{const c=`[class^="${o}"], [class*=" ${o}"]`,m=i?`.${i}`:c,g={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let x={};return r!==!1&&(x={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[m]:{...x,...g,[c]:g}}},sm=(e,o)=>({outline:`${$t(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:o??1,transition:"outline-offset 0s, outline 0s"}),am=(e,o)=>({"&:focus-visible":sm(e,o)}),lb=e=>({[`.${e}`]:{...rm(),[`.${e} .${e}-icon`]:{display:"block"}}}),{genStyleHooks:hs,genComponentStyleHook:dk,genSubStyleComponent:hk}=jP({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:o}=d.useContext(Gn);return{rootPrefixCls:e(),iconPrefixCls:o}},useToken:()=>{const[e,o,i,r,c,m]=ra();return{theme:e,realToken:o,hashId:i,token:r,cssVar:c,zeroRuntime:m}},useCSP:()=>{const{csp:e}=d.useContext(Gn);return e??{}},getResetStyles:(e,o)=>{const i=ck(e);return[i,{"&":i},lb((o==null?void 0:o.prefix.iconPrefixCls)??Vi)]},getCommonStyle:uk,getCompUnitless:()=>rb}),sa=(e,o)=>{const i=`--${e.replace(/\./g,"")}-${o}-`;return[r=>`${i}${r}`,(r,c)=>c?`var(${i}${r}, ${c})`:`var(${i}${r})`]};function fk(e,o){return Ia.reduce((i,r)=>{const c=e[`${r}1`],m=e[`${r}3`],g=e[`${r}6`],x=e[`${r}7`];return{...i,...o(r,{lightColor:c,lightBorderColor:m,darkColor:g,textColor:x})}},{})}const pk=(e,o)=>{const[i,r]=ra();return na({theme:i,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>o==null?void 0:o.nonce,layer:{name:"antd"}},()=>lb(e))},lm=d.createContext({});function cb(e){var o;return(o=e==null?void 0:e.getRootNode)==null?void 0:o.call(e)}function mk(e){return cb(e)instanceof ShadowRoot}function Hd(e){return mk(e)?cb(e):null}function gk(e){return e.replace(/-(.)/g,(o,i)=>i.toUpperCase())}function vk(e,o){Wt(e,`[@ant-design/icons] ${o}`)}function ub(e){return typeof e=="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(typeof e.icon=="object"||typeof e.icon=="function")}function db(e={}){return Object.keys(e).reduce((o,i)=>{const r=e[i];switch(i){case"class":o.className=r,delete o.class;break;default:delete o[i],o[gk(i)]=r}return o},{})}function cm(e,o,i){return i?d.createElement(e.tag,{key:o,...db(e.attrs),...i},(e.children||[]).map((r,c)=>cm(r,`${o}-${e.tag}-${c}`))):d.createElement(e.tag,{key:o,...db(e.attrs)},(e.children||[]).map((r,c)=>cm(r,`${o}-${e.tag}-${c}`)))}function hb(e){return jp(e)[0]}function fb(e){return e?Array.isArray(e)?e:[e]:[]}const yk=`
|
|
126
|
+
.anticon {
|
|
127
|
+
display: inline-flex;
|
|
128
|
+
align-items: center;
|
|
129
|
+
color: inherit;
|
|
130
|
+
font-style: normal;
|
|
131
|
+
line-height: 0;
|
|
132
|
+
text-align: center;
|
|
133
|
+
text-transform: none;
|
|
134
|
+
vertical-align: -0.125em;
|
|
135
|
+
text-rendering: optimizeLegibility;
|
|
136
|
+
-webkit-font-smoothing: antialiased;
|
|
137
|
+
-moz-osx-font-smoothing: grayscale;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.anticon > * {
|
|
141
|
+
line-height: 1;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.anticon svg {
|
|
145
|
+
display: inline-block;
|
|
146
|
+
vertical-align: inherit;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.anticon::before {
|
|
150
|
+
display: none;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.anticon .anticon-icon {
|
|
154
|
+
display: block;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.anticon[tabindex] {
|
|
158
|
+
cursor: pointer;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.anticon-spin::before,
|
|
162
|
+
.anticon-spin {
|
|
163
|
+
display: inline-block;
|
|
164
|
+
-webkit-animation: loadingCircle 1s infinite linear;
|
|
165
|
+
animation: loadingCircle 1s infinite linear;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
@-webkit-keyframes loadingCircle {
|
|
169
|
+
100% {
|
|
170
|
+
-webkit-transform: rotate(360deg);
|
|
171
|
+
transform: rotate(360deg);
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
@keyframes loadingCircle {
|
|
176
|
+
100% {
|
|
177
|
+
-webkit-transform: rotate(360deg);
|
|
178
|
+
transform: rotate(360deg);
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
`,_k=e=>{const{csp:o,prefixCls:i,layer:r}=d.useContext(lm);let c=yk;i&&(c=c.replace(/anticon/g,i)),r&&(c=`@layer ${r} {
|
|
182
|
+
${c}
|
|
183
|
+
}`),d.useEffect(()=>{const m=e.current,g=Hd(m);kr(c,"@ant-design-icons",{prepend:!r,csp:o,attachTo:g})},[])},Kc={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function bk({primaryColor:e,secondaryColor:o}){Kc.primaryColor=e,Kc.secondaryColor=o||hb(e),Kc.calculated=!!o}function xk(){return{...Kc}}const jd=e=>{const{icon:o,className:i,onClick:r,style:c,primaryColor:m,secondaryColor:g,...x}=e,w=v.useRef(null);let P=Kc;if(m&&(P={primaryColor:m,secondaryColor:g||hb(m)}),_k(w),vk(ub(o),`icon should be icon definiton, but got ${o}`),!ub(o))return null;let E=o;return E&&typeof E.icon=="function"&&(E={...E,icon:E.icon(P.primaryColor,P.secondaryColor)}),cm(E.icon,`svg-${E.name}`,{className:i,onClick:r,style:c,"data-icon":E.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",...x,ref:w})};jd.displayName="IconReact",jd.getTwoToneColors=xk,jd.setTwoToneColors=bk;const um=jd;function pb(e){const[o,i]=fb(e);return um.setTwoToneColors({primaryColor:o,secondaryColor:i})}function wk(){const e=um.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}function dm(){return dm=Object.assign?Object.assign.bind():function(e){for(var o=1;o<arguments.length;o++){var i=arguments[o];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r])}return e},dm.apply(this,arguments)}pb(Fd.primary);const Zd=v.forwardRef((e,o)=>{const{className:i,icon:r,spin:c,rotate:m,tabIndex:g,onClick:x,twoToneColor:w,...P}=e,{prefixCls:E="anticon",rootClassName:I}=v.useContext(lm),O=Re(I,E,{[`${E}-${r.name}`]:!!r.name,[`${E}-spin`]:!!c||r.name==="loading"},i);let $=g;$===void 0&&x&&($=-1);const R=m?{msTransform:`rotate(${m}deg)`,transform:`rotate(${m}deg)`}:void 0,[A,N]=fb(w);return v.createElement("span",dm({role:"img","aria-label":r.name},P,{ref:o,tabIndex:$,onClick:x,className:O}),v.createElement(um,{icon:r,primaryColor:A,secondaryColor:N,style:R}))});Zd.getTwoToneColor=wk,Zd.setTwoToneColor=pb,process.env.NODE_ENV!=="production"&&(Zd.displayName="AntdIcon");const Yc=Zd,mb=v.createContext({});function Ck({children:e,...o}){return v.createElement(mb.Provider,{value:o},e)}function Sk(e){const[,o]=v.useReducer(m=>m+1,0),i=v.useRef(e),r=gt(()=>i.current),c=gt(m=>{i.current=typeof m=="function"?m(i.current):m,o()});return[r,c]}const Ls="none",Vd="appear",Wd="enter",qd="leave",gb="none",Kr="prepare",kl="start",Il="active",hm="end",vb="prepared";function yb(e,o){const i={};return i[e.toLowerCase()]=o.toLowerCase(),i[`Webkit${e}`]=`webkit${o}`,i[`Moz${e}`]=`moz${o}`,i[`ms${e}`]=`MS${o}`,i[`O${e}`]=`o${o.toLowerCase()}`,i}function Ek(e,o){const i={animationend:yb("Animation","AnimationEnd"),transitionend:yb("Transition","TransitionEnd")};return e&&("AnimationEvent"in o||delete i.animationend.animation,"TransitionEvent"in o||delete i.transitionend.transition),i}const Pk=Ek(Te(),typeof window<"u"?window:{});let _b={};Te()&&({style:_b}=document.createElement("div"));const Gd={};function bb(e){if(Gd[e])return Gd[e];const o=Pk[e];if(o){const i=Object.keys(o),r=i.length;for(let c=0;c<r;c+=1){const m=i[c];if(Object.prototype.hasOwnProperty.call(o,m)&&m in _b)return Gd[e]=o[m],Gd[e]}}return""}const xb=bb("animationend"),wb=bb("transitionend"),kk=!!(xb&&wb),Cb=xb||"animationend",Sb=wb||"transitionend";function Eb(e,o){if(!e)return null;if(typeof e=="object"){const i=o.replace(/-\w/g,r=>r[1].toUpperCase());return e[i]}return`${e}-${o}`}const Ik=e=>{const o=d.useRef();function i(c){c&&(c.removeEventListener(Sb,e),c.removeEventListener(Cb,e))}function r(c){o.current&&o.current!==c&&i(o.current),c&&c!==o.current&&(c.addEventListener(Sb,e),c.addEventListener(Cb,e),o.current=c)}return v.useEffect(()=>()=>{i(o.current),o.current=null},[]),[r,i]},Pb=Te()?d.useLayoutEffect:d.useEffect,Mk=()=>{const e=v.useRef(null);function o(){yt.cancel(e.current)}function i(r,c=2){o();const m=yt(()=>{c<=1?r({isCanceled:()=>m!==e.current}):i(r,c-1)});e.current=m}return v.useEffect(()=>()=>{o()},[]),[i,o]},Tk=[Kr,kl,Il,hm],Lk=[Kr,vb],kb=!1,Ak=!0;function Ib(e){return e===Il||e===hm}const Ok=(e,o,i)=>{const[r,c]=Ot(gb),[m,g]=Mk();function x(){c(Kr,!0)}const w=o?Lk:Tk;return Pb(()=>{if(r!==gb&&r!==hm){const P=w.indexOf(r),E=w[P+1],I=i(r);I===kb?c(E,!0):E&&m(O=>{function $(){O.isCanceled()||c(E,!0)}I===!0?$():Promise.resolve(I).then($)})}},[e,r]),v.useEffect(()=>()=>{g()},[]),[x,r]};function Rk(e,o,i,{motionEnter:r=!0,motionAppear:c=!0,motionLeave:m=!0,motionDeadline:g,motionLeaveImmediately:x,onAppearPrepare:w,onEnterPrepare:P,onLeavePrepare:E,onAppearStart:I,onEnterStart:O,onLeaveStart:$,onAppearActive:R,onEnterActive:A,onLeaveActive:N,onAppearEnd:F,onEnterEnd:D,onLeaveEnd:W,onVisibleChanged:U}){const[j,ee]=Ot(),[te,Y]=Sk(Ls),[ae,he]=Ot(null),oe=te(),be=d.useRef(!1),ye=d.useRef(null);function Me(){return i()}const le=d.useRef(!1);function we(){Y(Ls),he(null,!0)}const Fe=gt(je=>{const tt=te();if(tt===Ls)return;const ut=Me();if(je&&!je.deadline&&je.target!==ut)return;const At=le.current;let St;tt===Vd&&At?St=F==null?void 0:F(ut,je):tt===Wd&&At?St=D==null?void 0:D(ut,je):tt===qd&&At&&(St=W==null?void 0:W(ut,je)),At&&St!==!1&&we()}),[_e]=Ik(Fe),st=je=>{switch(je){case Vd:return{[Kr]:w,[kl]:I,[Il]:R};case Wd:return{[Kr]:P,[kl]:O,[Il]:A};case qd:return{[Kr]:E,[kl]:$,[Il]:N};default:return{}}},ke=v.useMemo(()=>st(oe),[oe]),[Ne,rt]=Ok(oe,!e,je=>{var tt;if(je===Kr){const ut=ke[Kr];return ut?ut(Me()):kb}return rt in ke&&he(((tt=ke[rt])==null?void 0:tt.call(ke,Me(),null))||null),rt===Il&&oe!==Ls&&(_e(Me()),g>0&&(clearTimeout(ye.current),ye.current=setTimeout(()=>{Fe({deadline:!0})},g))),rt===vb&&we(),Ak}),We=Ib(rt);le.current=We;const Ge=d.useRef(null);Pb(()=>{if(be.current&&Ge.current===o)return;ee(o);const je=be.current;be.current=!0;let tt;!je&&o&&c&&(tt=Vd),je&&o&&r&&(tt=Wd),(je&&!o&&m||!je&&x&&!o&&m)&&(tt=qd);const ut=st(tt);tt&&(e||ut[Kr])?(Y(tt),Ne()):Y(Ls),Ge.current=o},[o]),d.useEffect(()=>{(oe===Vd&&!c||oe===Wd&&!r||oe===qd&&!m)&&Y(Ls)},[c,r,m]),d.useEffect(()=>()=>{be.current=!1,clearTimeout(ye.current)},[]);const ze=v.useRef(!1);d.useEffect(()=>{j&&(ze.current=!0),j!==void 0&&oe===Ls&&((ze.current||j)&&(U==null||U(j)),ze.current=!0)},[j,oe]);let Se=ae;return ke[Kr]&&rt===kl&&(Se={transition:"none",...Se}),[te,rt,Se,j??o]}function zk(e){let o=e;typeof e=="object"&&({transitionSupport:o}=e);function i(c,m){return!!(c.motionName&&o&&m!==!1)}const r=v.forwardRef((c,m)=>{const{visible:g=!0,removeOnLeave:x=!0,forceRender:w,children:P,motionName:E,leavedClassName:I,eventProps:O}=c,{motion:$}=v.useContext(mb),R=i(c,$),A=d.useRef();function N(){return gi(A.current)}const[F,D,W,U]=Rk(R,g,N,c),j=F(),ee=v.useRef(U);U&&(ee.current=!0);const te=v.useMemo(()=>{const he={};return Object.defineProperties(he,{nativeElement:{enumerable:!0,get:N},inMotion:{enumerable:!0,get:()=>()=>F()!==Ls},enableMotion:{enumerable:!0,get:()=>()=>R}}),he},[]);v.useImperativeHandle(m,()=>te,[]);let Y;const ae={...O,visible:g};if(!P)Y=null;else if(j===Ls)U?Y=P({...ae},A):!x&&ee.current&&I?Y=P({...ae,className:I},A):w||!x&&!I?Y=P({...ae,style:{display:"none"}},A):Y=null;else{let he;D===Kr?he="prepare":Ib(D)?he="active":D===kl&&(he="start");const oe=Eb(E,`${j}-${he}`);Y=P({...ae,className:Re(Eb(E,j),{[oe]:oe&&he,[E]:typeof E=="string"}),style:W},A)}return v.isValidElement(Y)&&eo(Y)&&(Jn(Y)||(Y=v.cloneElement(Y,{ref:A}))),Y});return r.displayName="CSSMotion",r}const Ma=zk(kk),Bk={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"};var Nk={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0};function Xc(e){"@babel/helpers - typeof";return Xc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},Xc(e)}function Mb(e,o){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);o&&(r=r.filter(function(c){return Object.getOwnPropertyDescriptor(e,c).enumerable})),i.push.apply(i,r)}return i}function Tb(e){for(var o=1;o<arguments.length;o++){var i=arguments[o]!=null?arguments[o]:{};o%2?Mb(Object(i),!0).forEach(function(r){$k(e,r,i[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):Mb(Object(i)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(i,r))})}return e}function $k(e,o,i){return o=Dk(o),o in e?Object.defineProperty(e,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[o]=i,e}function Dk(e){var o=Fk(e,"string");return Xc(o)=="symbol"?o:String(o)}function Fk(e,o){if(Xc(e)!="object"||!e)return e;var i=e[Symbol.toPrimitive];if(i!==void 0){var r=i.call(e,o||"default");if(Xc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(e)}var Hk=Tb(Tb({},Nk),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",week:"Week",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"});const Lb={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Ab={lang:{placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"],...Hk},timePickerLocale:{...Lb}},br="${label} is not a valid ${type}",Ud={locale:"en",Pagination:Bk,DatePicker:Ab,TimePicker:Lb,Calendar:Ab,global:{placeholder:"Please select",close:"Close",sortable:"sortable"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckAll:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:br,method:br,array:br,object:br,number:br,date:br,boolean:br,integer:br,float:br,regexp:br,email:br,url:br,hex:br},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};({...Ud.Modal});let Qd=[];const Ob=()=>Qd.reduce((e,o)=>({...e,...o}),Ud.Modal);function jk(e){if(e){const o={...e};return Qd.push(o),Ob(),()=>{Qd=Qd.filter(i=>i!==o),Ob()}}({...Ud.Modal})}const Rb=d.createContext(void 0),zb="internalMark",Bb=e=>{const{locale:o={},children:i,_ANT_MARK__:r}=e;if(process.env.NODE_ENV!=="production"){const m=mo("LocaleProvider");process.env.NODE_ENV!=="production"&&m(r===zb,"deprecated","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale")}v.useEffect(()=>jk(o==null?void 0:o.Modal),[o]);const c=v.useMemo(()=>({...o,exist:!0}),[o]);return v.createElement(Rb.Provider,{value:c},i)};process.env.NODE_ENV!=="production"&&(Bb.displayName="LocaleProvider");const Zk=Bb,Ml=e=>e!=null,Nb=(e,...o)=>{const i=e||{};return o.filter(Boolean).reduce((r,c)=>(Object.keys(c||{}).forEach(m=>{const g=i[m],x=c[m];if(g&&typeof g=="object")if(x&&typeof x=="object")r[m]=Nb(g,r[m],x);else{const{_default:w}=g;w&&(r[m]=r[m]||{},r[m][w]=Re(r[m][w],x))}else r[m]=Re(r[m],x)}),r),{})},Vk=(e,...o)=>v.useMemo(()=>Nb.apply(void 0,[e].concat(o)),[e].concat(o)),Wk=(...e)=>e.filter(Boolean).reduce((o,i={})=>(Object.keys(i).forEach(r=>{o[r]={...o[r],...i[r]}}),o),{}),qk=(...e)=>v.useMemo(()=>Wk.apply(void 0,e),[].concat(e)),fm=(e,o)=>{const i={...e};return Object.keys(o).forEach(r=>{if(r!=="_default"){const c=o[r],m=i[r]||{};i[r]=c?fm(m,c):m}}),i},$b=(e,o)=>typeof e=="function"?e(o):e,Ta=(e,o,i,r)=>{const c=e.map(w=>w?$b(w,i):void 0),m=o.map(w=>w?$b(w,i):void 0),g=Vk.apply(void 0,[r].concat(Ho(c))),x=qk.apply(void 0,Ho(m));return v.useMemo(()=>r?[fm(g,r),fm(x,r)]:[g,x],[g,x,r])},Db=e=>e==="horizontal"||e==="vertical",Fb=(e,o,i)=>d.useMemo(()=>{const r=Db(e);let c;return r?c=e:typeof o=="boolean"?c=o?"vertical":"horizontal":c=Db(i)?i:"horizontal",[c,c==="vertical"]},[i,e,o]),Hb=d.createContext(void 0);process.env.NODE_ENV!=="production"&&(Hb.displayName="zIndexContext");const pm=Hb,As=100,Gk=As*10+As,jb={Modal:As,Drawer:As,Popover:As,Popconfirm:As,Tooltip:As,Tour:As,FloatButton:As},Uk={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1},Qk=e=>e in jb,mm=(e,o)=>{const[,i]=ra(),r=d.useContext(pm),c=Qk(e);let m;if(o!==void 0)m=[o,o];else{let g=r??0;c?g+=(r?0:i.zIndexPopupBase)+jb[e]:g+=Uk[e],m=[r===void 0?o:g,g]}if(process.env.NODE_ENV!=="production"){const g=mo(e),x=i.zIndexPopupBase+Gk,w=m[0]||0;process.env.NODE_ENV!=="production"&&g(o!==void 0||w<=x,"usage","`zIndex` is over design token `zIndexPopupBase` too much. It may cause unexpected override.")}return m},Tl=e=>`${e}-css-var`,Jk=d.createContext(void 0),Zb=v.createContext(null);let Vb=!1;function Kk(e){return typeof e=="boolean"&&(Vb=e),Vb}const Wb=[];function Yk(e,o){const[i]=v.useState(()=>{if(!Te())return null;const E=document.createElement("div");return process.env.NODE_ENV!=="production"&&o&&E.setAttribute("data-debug",o),E}),r=v.useRef(!1),c=v.useContext(Zb),[m,g]=v.useState(Wb),x=c||(r.current?void 0:E=>{g(I=>[E,...I])});function w(){i.parentElement||document.body.appendChild(i),r.current=!0}function P(){var E;(E=i.parentElement)==null||E.removeChild(i),r.current=!1}return He(()=>(e?c?c(w):w():P(),P),[e]),He(()=>{m.length&&(m.forEach(E=>E()),g(Wb))},[m]),[i,x]}function Xk(e){const o=`rc-scrollbar-measure-${Math.random().toString(36).substring(7)}`,i=document.createElement("div");i.id=o;const r=i.style;r.position="absolute",r.left="0",r.top="0",r.width="100px",r.height="100px",r.overflow="scroll";let c,m;if(e){const w=getComputedStyle(e);r.scrollbarColor=w.scrollbarColor,r.scrollbarWidth=w.scrollbarWidth;const P=getComputedStyle(e,"::-webkit-scrollbar"),E=parseInt(P.width,10),I=parseInt(P.height,10);try{const O=E?`width: ${P.width};`:"",$=I?`height: ${P.height};`:"";kr(`
|
|
184
|
+
#${o}::-webkit-scrollbar {
|
|
185
|
+
${O}
|
|
186
|
+
${$}
|
|
187
|
+
}`,o)}catch(O){console.error(O),c=E,m=I}}document.body.appendChild(i);const g=e&&c&&!isNaN(c)?c:i.offsetWidth-i.clientWidth,x=e&&m&&!isNaN(m)?m:i.offsetHeight-i.clientHeight;return document.body.removeChild(i),Vr(o),{width:g,height:x}}function eI(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:Xk(e)}function tI(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}const nI=`rc-util-locker-${Date.now()}`;let qb=0;function oI(e){const o=!!e,[i]=v.useState(()=>(qb+=1,`${nI}_${qb}`));He(()=>{if(o){const r=eI(document.body).width,c=tI();kr(`
|
|
188
|
+
html body {
|
|
189
|
+
overflow-y: hidden;
|
|
190
|
+
${c?`width: calc(100% - ${r}px);`:""}
|
|
191
|
+
}`,i)}else Vr(i);return()=>{Vr(i)}},[o,i])}function iI(){return{...v}.useId}let Gb=0;const Ub=iI(),Jd=Ub?function(e){const o=Ub();return e||(process.env.NODE_ENV==="test"?"test-id":o)}:function(e){const[o,i]=v.useState("ssr-id");return v.useEffect(()=>{const r=Gb;Gb+=1,i(`rc_unique_${r}`)},[]),e||(process.env.NODE_ENV==="test"?"test-id":o)};let La=[];const rI=200;let Qb=0;process.env.NODE_ENV;const Jb=e=>{if(e.key==="Escape"&&!e.isComposing){if(Date.now()-Qb<rI)return;const o=La.length;for(let i=o-1;i>=0;i-=1)La[i].onEsc({top:i===o-1,event:e})}},Kb=()=>{Qb=Date.now()};function sI(){window.addEventListener("keydown",Jb),window.addEventListener("compositionend",Kb)}function aI(){La.length===0&&(window.removeEventListener("keydown",Jb),window.removeEventListener("compositionend",Kb))}function lI(e,o){const i=Jd(),r=gt(o),c=()=>{La.find(g=>g.id===i)||La.push({id:i,onEsc:r})},m=()=>{La=La.filter(g=>g.id!==i)};d.useMemo(()=>{e?c():e||m()},[e]),d.useEffect(()=>{if(e)return c(),sI(),()=>{m(),aI()}},[e])}const Yb=e=>e===!1?!1:!Te()||!e?null:typeof e=="string"?document.querySelector(e):typeof e=="function"?e():e,Kd=v.forwardRef((e,o)=>{const{open:i,autoLock:r,getContainer:c,debug:m,autoDestroy:g=!0,children:x,onEsc:w}=e,[P,E]=v.useState(i),I=P||i;process.env.NODE_ENV!=="production"&&Wt(Te()||!i,"Portal only work in client side. Please call 'useEffect' to show Portal instead default render in SSR."),v.useEffect(()=>{(g||i)&&E(i)},[i,g]);const[O,$]=v.useState(()=>Yb(c));v.useEffect(()=>{const j=Yb(c);$(()=>j??null)});const[R,A]=Yk(I&&!O,m),N=O??R;oI(r&&i&&Te()&&(N===R||N===document.body)),lI(i,w);let F=null;x&&eo(x)&&o&&(F=Jn(x));const D=Zn(F,o);if(!I||!Te()||O===void 0)return null;const W=N===!1||Kk();let U=x;return o&&(U=v.cloneElement(x,{ref:D})),v.createElement(Zb.Provider,{value:A},W?U:y.createPortal(U,N))});process.env.NODE_ENV!=="production"&&(Kd.displayName="Portal");function cI(e){const{prefixCls:o,align:i,arrow:r,arrowPos:c}=e,{className:m,content:g,style:x}=r||{},{x:w=0,y:P=0}=c,E=v.useRef(null);if(!i||!i.points)return null;const I={position:"absolute"};if(i.autoArrow!==!1){const O=i.points[0],$=i.points[1],R=O[0],A=O[1],N=$[0],F=$[1];R===N||!["t","b"].includes(R)?I.top=P:R==="t"?I.top=0:I.bottom=0,A===F||!["l","r"].includes(A)?I.left=w:A==="l"?I.left=0:I.right=0}return v.createElement("div",{ref:E,className:Re(`${o}-arrow`,m),style:{...I,...x}},g)}function gm(){return gm=Object.assign?Object.assign.bind():function(e){for(var o=1;o<arguments.length;o++){var i=arguments[o];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r])}return e},gm.apply(this,arguments)}function uI(e){const{prefixCls:o,open:i,zIndex:r,mask:c,motion:m,mobile:g}=e;return c?v.createElement(Ma,gm({},m,{motionAppear:!0,visible:i,removeOnLeave:!0}),({className:x})=>v.createElement("div",{style:{zIndex:r},className:Re(`${o}-mask`,g&&`${o}-mobile-mask`,x)})):null}const Xb=v.memo(({children:e})=>e,(e,o)=>o.cache);process.env.NODE_ENV!=="production"&&(Xb.displayName="PopupContent");function e0(e,o,i,r,c,m,g,x){var w;const P="auto",E=e?{}:{left:"-1000vw",top:"-1000vh",right:P,bottom:P};if(!e&&(o||!i)){const{points:I}=r,O=r.dynamicInset||((w=r._experimental)==null?void 0:w.dynamicInset),$=O&&I[0][1]==="r",R=O&&I[0][0]==="b";$?(E.right=c,E.left=P):(E.left=g,E.right=P),R?(E.bottom=m,E.top=P):(E.top=x,E.bottom=P)}return E}function vm(){return vm=Object.assign?Object.assign.bind():function(e){for(var o=1;o<arguments.length;o++){var i=arguments[o];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r])}return e},vm.apply(this,arguments)}const ym=v.forwardRef((e,o)=>{const{onEsc:i,popup:r,className:c,prefixCls:m,style:g,target:x,onVisibleChanged:w,open:P,keepDom:E,fresh:I,onClick:O,mask:$,arrow:R,arrowPos:A,align:N,motion:F,maskMotion:D,mobile:W,forceRender:U,getPopupContainer:j,autoDestroy:ee,portal:te,children:Y,zIndex:ae,onMouseEnter:he,onMouseLeave:oe,onPointerEnter:be,onPointerDownCapture:ye,ready:Me,offsetX:le,offsetY:we,offsetR:Fe,offsetB:_e,onAlign:st,onPrepare:ke,onResize:Ne,stretch:rt,targetWidth:We,targetHeight:Ge}=e,ze=typeof r=="function"?r():r,Se=P||E,je=!!W,[tt,ut,At]=v.useMemo(()=>W?[W.mask,W.maskMotion,W.motion]:[$,D,F],[W,$,D,F]),St=(j==null?void 0:j.length)>0,[Ft,It]=v.useState(!j||!St);He(()=>{!Ft&&St&&x&&It(!0)},[Ft,St,x]);const Ve=gt((Kt,bn)=>{Ne==null||Ne(Kt,bn),st()}),qt=e0(je,Me,P,N,Fe,_e,le,we);if(!Ft)return null;const ht={};return rt&&(rt.includes("height")&&Ge?ht.height=Ge:rt.includes("minHeight")&&Ge&&(ht.minHeight=Ge),rt.includes("width")&&We?ht.width=We:rt.includes("minWidth")&&We&&(ht.minWidth=We)),P||(ht.pointerEvents="none"),v.createElement(te,{open:U||Se,getContainer:j&&(()=>j(x)),autoDestroy:ee,onEsc:i},v.createElement(uI,{prefixCls:m,open:P,zIndex:ae,mask:tt,motion:ut,mobile:je}),v.createElement(nn,{onResize:Ve,disabled:!P},Kt=>v.createElement(Ma,vm({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:U,leavedClassName:`${m}-hidden`},At,{onAppearPrepare:ke,onEnterPrepare:ke,visible:P,onVisibleChanged:bn=>{var ln;(ln=F==null?void 0:F.onVisibleChanged)==null||ln.call(F,bn),w(bn)}}),({className:bn,style:ln},Tn)=>{const Xt=Re(m,bn,c,{[`${m}-mobile`]:je});return v.createElement("div",{ref:jn(Kt,o,Tn),className:Xt,style:{"--arrow-x":`${A.x||0}px`,"--arrow-y":`${A.y||0}px`,...qt,...ht,...ln,boxSizing:"border-box",zIndex:ae,...g},onMouseEnter:he,onMouseLeave:oe,onPointerEnter:be,onClick:O,onPointerDownCapture:ye},R&&v.createElement(cI,{prefixCls:m,arrow:R,arrowPos:A,align:N}),v.createElement(Xb,{cache:!P&&!I},ze))})),Y)});process.env.NODE_ENV!=="production"&&(ym.displayName="Popup");const Yd=v.createContext(null),t0=v.createContext(null);function n0(e){return e?Array.isArray(e)?e:[e]:[]}function dI(e,o,i){return v.useMemo(()=>{const r=n0(o??e),c=n0(i??e),m=new Set(r),g=new Set(c);return m.has("hover")&&!m.has("click")&&m.add("touch"),g.has("hover")&&!g.has("click")&&g.add("touch"),[m,g]},[e,o,i])}const _m=e=>{if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){const{width:o,height:i}=e.getBBox();if(o||i)return!0}if(e.getBoundingClientRect){const{width:o,height:i}=e.getBoundingClientRect();if(o||i)return!0}}return!1};function hI(e=[],o=[],i){const r=(c,m)=>c[m]||"";return i?r(e,0)===r(o,0):r(e,0)===r(o,0)&&r(e,1)===r(o,1)}function o0(e,o,i,r){var c;const{points:m}=i,g=Object.keys(e);for(let x=0;x<g.length;x+=1){const w=g[x];if(hI((c=e[w])==null?void 0:c.points,m,r))return`${o}-placement-${w}`}return""}function eu(e){return e.ownerDocument.defaultView}function bm(e){const o=[];let i=e==null?void 0:e.parentElement;const r=["hidden","scroll","clip","auto"];for(;i;){const{overflowX:c,overflowY:m,overflow:g}=eu(i).getComputedStyle(i);[c,m,g].some(x=>r.includes(x))&&o.push(i),i=i.parentElement}return o}function tu(e,o=1){return Number.isNaN(e)?o:e}function nu(e){return tu(parseFloat(e),0)}function i0(e,o){const i={...e};return(o||[]).forEach(r=>{if(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)return;const{overflow:c,overflowClipMargin:m,borderTopWidth:g,borderBottomWidth:x,borderLeftWidth:w,borderRightWidth:P}=eu(r).getComputedStyle(r),E=r.getBoundingClientRect(),{offsetHeight:I,clientHeight:O,offsetWidth:$,clientWidth:R}=r,A=nu(g),N=nu(x),F=nu(w),D=nu(P),W=tu(Math.round(E.width/$*1e3)/1e3),U=tu(Math.round(E.height/I*1e3)/1e3),j=($-R-F-D)*W,ee=(I-O-A-N)*U,te=A*U,Y=N*U,ae=F*W,he=D*W;let oe=0,be=0;if(c==="clip"){const Fe=nu(m);oe=Fe*W,be=Fe*U}const ye=E.x+ae-oe,Me=E.y+te-be,le=ye+E.width+2*oe-ae-he-j,we=Me+E.height+2*be-te-Y-ee;i.left=Math.max(i.left,ye),i.top=Math.max(i.top,Me),i.right=Math.min(i.right,le),i.bottom=Math.min(i.bottom,we)}),i}function r0(e,o=0){const i=`${o}`,r=i.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(i)}function s0(e,o){const[i,r]=o||[];return[r0(e.width,i),r0(e.height,r)]}function a0(e=""){return[e[0],e[1]]}function Ll(e,o){const i=o[0],r=o[1];let c,m;return i==="t"?m=e.y:i==="b"?m=e.y+e.height:m=e.y+e.height/2,r==="l"?c=e.x:r==="r"?c=e.x+e.width:c=e.x+e.width/2,{x:c,y:m}}function aa(e,o){const i={t:"b",b:"t",l:"r",r:"l"},r=[...e];return r[o]=i[e[o]]||"c",r}function l0(e){return e.join("")}function c0(e,o,i,r,c,m,g,x){const[w,P]=v.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:c[r]||{}}),E=v.useRef(0),I=v.useMemo(()=>!o||x?[]:bm(o),[o]),O=v.useRef({});e||(O.current={});const $=gt(()=>{var N,F;if(o&&i&&e&&!x){let D=function(Jt,Ai,wi=Kt){const es=we.x+Jt,wn=we.y+Ai,uo=es+Se,ps=wn+ze,ts=Math.max(es,wi.left),ms=Math.max(wn,wi.top),Na=Math.min(uo,wi.right),an=Math.min(ps,wi.bottom);return Math.max(0,(Na-ts)*(an-ms))},W=function(){Xi=we.y+Vt,ur=Xi+ze,Ko=we.x+cn,xi=Ko+Se};const U=o,j=U.ownerDocument,ee=eu(U),{position:te}=ee.getComputedStyle(U),Y=U.style.left,ae=U.style.top,he=U.style.right,oe=U.style.bottom,be=U.style.overflow,ye={...c[r],...m},Me=j.createElement("div");(N=U.parentElement)==null||N.appendChild(Me),Me.style.left=`${U.offsetLeft}px`,Me.style.top=`${U.offsetTop}px`,Me.style.position=te,Me.style.height=`${U.offsetHeight}px`,Me.style.width=`${U.offsetWidth}px`,U.style.left="0",U.style.top="0",U.style.right="auto",U.style.bottom="auto",U.style.overflow="hidden";let le;if(Array.isArray(i))le={x:i[0],y:i[1],width:0,height:0};else{const Jt=i.getBoundingClientRect();Jt.x=Jt.x??Jt.left,Jt.y=Jt.y??Jt.top,le={x:Jt.x,y:Jt.y,width:Jt.width,height:Jt.height}}const we=U.getBoundingClientRect(),{height:Fe,width:_e}=ee.getComputedStyle(U);we.x=we.x??we.left,we.y=we.y??we.top;const{clientWidth:st,clientHeight:ke,scrollWidth:Ne,scrollHeight:rt,scrollTop:We,scrollLeft:Ge}=j.documentElement,ze=we.height,Se=we.width,je=le.height,tt=le.width,ut={left:0,top:0,right:st,bottom:ke},At={left:-Ge,top:-We,right:Ne-Ge,bottom:rt-We};let{htmlRegion:St}=ye;const Ft="visible",It="visibleFirst";St!=="scroll"&&St!==It&&(St=Ft);const Ve=St===It,qt=i0(At,I),ht=i0(ut,I),Kt=St===Ft?ht:qt,bn=Ve?ht:Kt;U.style.left="auto",U.style.top="auto",U.style.right="0",U.style.bottom="0";const ln=U.getBoundingClientRect();U.style.left=Y,U.style.top=ae,U.style.right=he,U.style.bottom=oe,U.style.overflow=be,(F=U.parentElement)==null||F.removeChild(Me);const Tn=tu(Math.round(Se/parseFloat(_e)*1e3)/1e3),Xt=tu(Math.round(ze/parseFloat(Fe)*1e3)/1e3);if(Tn===0||Xt===0||mi(i)&&!_m(i))return;const{offset:xn,targetOffset:Yn}=ye;let[Qt,sn]=s0(we,xn);const[Lo,wo]=s0(le,Yn);le.x-=Lo,le.y-=wo;const[lo,Co]=ye.points||[],en=a0(Co),at=a0(lo),ft=Ll(le,en),Nn=Ll(we,at),Ln={...ye};let Et=[at,en],cn=ft.x-Nn.x+Qt,Vt=ft.y-Nn.y+sn;const Cn=D(cn,Vt),Jo=D(cn,Vt,ht),li=Ll(le,["t","l"]),ko=Ll(we,["t","l"]),$o=Ll(le,["b","r"]),bi=Ll(we,["b","r"]),Pn=ye.overflow||{},{adjustX:Ji,adjustY:cr,shiftX:Ar,shiftY:Di}=Pn,Fi=Jt=>typeof Jt=="boolean"?Jt:Jt>=0;let Xi,ur,Ko,xi;W();const bo=Fi(cr),pt=at[0]===en[0];if(bo&&at[0]==="t"&&(ur>bn.bottom||O.current.bt)){let Jt=Vt;pt?Jt-=ze-je:Jt=li.y-bi.y-sn;const Ai=D(cn,Jt),wi=D(cn,Jt,ht);Ai>Cn||Ai===Cn&&(!Ve||wi>=Jo)?(O.current.bt=!0,Vt=Jt,sn=-sn,Et=[aa(Et[0],0),aa(Et[1],0)]):O.current.bt=!1}if(bo&&at[0]==="b"&&(Xi<bn.top||O.current.tb)){let Jt=Vt;pt?Jt+=ze-je:Jt=$o.y-ko.y-sn;const Ai=D(cn,Jt),wi=D(cn,Jt,ht);Ai>Cn||Ai===Cn&&(!Ve||wi>=Jo)?(O.current.tb=!0,Vt=Jt,sn=-sn,Et=[aa(Et[0],0),aa(Et[1],0)]):O.current.tb=!1}const Li=Fi(Ji),Yo=at[1]===en[1];if(Li&&at[1]==="l"&&(xi>bn.right||O.current.rl)){let Jt=cn;Yo?Jt-=Se-tt:Jt=li.x-bi.x-Qt;const Ai=D(Jt,Vt),wi=D(Jt,Vt,ht);Ai>Cn||Ai===Cn&&(!Ve||wi>=Jo)?(O.current.rl=!0,cn=Jt,Qt=-Qt,Et=[aa(Et[0],1),aa(Et[1],1)]):O.current.rl=!1}if(Li&&at[1]==="r"&&(Ko<bn.left||O.current.lr)){let Jt=cn;Yo?Jt+=Se-tt:Jt=$o.x-ko.x-Qt;const Ai=D(Jt,Vt),wi=D(Jt,Vt,ht);Ai>Cn||Ai===Cn&&(!Ve||wi>=Jo)?(O.current.lr=!0,cn=Jt,Qt=-Qt,Et=[aa(Et[0],1),aa(Et[1],1)]):O.current.lr=!1}Ln.points=[l0(Et[0]),l0(Et[1])],W();const q=Ar===!0?0:Ar;typeof q=="number"&&(Ko<ht.left&&(cn-=Ko-ht.left-Qt,le.x+tt<ht.left+q&&(cn+=le.x-ht.left+tt-q)),xi>ht.right&&(cn-=xi-ht.right-Qt,le.x>ht.right-q&&(cn+=le.x-ht.right+q)));const Ee=Di===!0?0:Di;typeof Ee=="number"&&(Xi<ht.top&&(Vt-=Xi-ht.top-sn,le.y+je<ht.top+Ee&&(Vt+=le.y-ht.top+je-Ee)),ur>ht.bottom&&(Vt-=ur-ht.bottom-sn,le.y>ht.bottom-Ee&&(Vt+=le.y-ht.bottom+Ee)));const Ze=we.x+cn,nt=Ze+Se,qe=we.y+Vt,Mt=qe+ze,Qe=le.x,_t=Qe+tt,Sn=le.y,fn=Sn+je,$n=Math.max(Ze,Qe),Ao=Math.min(nt,_t),Oo=($n+Ao)/2-Ze,Xo=Math.max(qe,Sn),co=Math.min(Mt,fn),Or=(Xo+co)/2-qe;g==null||g(o,Ln);let ei=ln.right-we.x-(cn+we.width),Xr=ln.bottom-we.y-(Vt+we.height);Tn===1&&(cn=Math.floor(cn),ei=Math.floor(ei)),Xt===1&&(Vt=Math.floor(Vt),Xr=Math.floor(Xr));const Ba={ready:!0,offsetX:cn/Tn,offsetY:Vt/Xt,offsetR:ei/Tn,offsetB:Xr/Xt,arrowX:Oo/Tn,arrowY:Or/Xt,scaleX:Tn,scaleY:Xt,align:Ln};P(Ba)}}),R=()=>{E.current+=1;const N=E.current;Promise.resolve().then(()=>{E.current===N&&$()})},A=()=>{P(N=>({...N,ready:!1}))};return He(A,[r]),He(()=>{e||A()},[e]),[w.ready,w.offsetX,w.offsetY,w.offsetR,w.offsetB,w.arrowX,w.arrowY,w.scaleX,w.scaleY,w.align,R]}function u0(){const e=v.useRef(null),o=()=>{e.current&&(clearTimeout(e.current),e.current=null)},i=(r,c)=>{o(),c===0?r():e.current=setTimeout(()=>{r()},c*1e3)};return v.useEffect(()=>()=>{o()},[]),i}function fI(e,o,i,r,c){He(()=>{if(e&&o&&i){let m=function(){r(),c()};const g=o,x=i,w=bm(g),P=bm(x),E=eu(x),I=new Set([E,...w,...P]);return I.forEach(O=>{O.addEventListener("scroll",m,{passive:!0})}),E.addEventListener("resize",m,{passive:!0}),r(),()=>{I.forEach(O=>{O.removeEventListener("scroll",m),E.removeEventListener("resize",m)})}}},[e,o,i])}function pI(e,o,i,r,c,m,g,x){const w=v.useRef(e);w.current=e;const P=v.useRef(!1);v.useEffect(()=>{var I,O;if(o&&r&&(!c||m)){const $=()=>{P.current=!1},R=F=>{var D,W;w.current&&!g(((W=(D=F.composedPath)==null?void 0:D.call(F))==null?void 0:W[0])||F.target)&&!P.current&&x(!1)},A=eu(r);A.addEventListener("pointerdown",$,!0),A.addEventListener("mousedown",R,!0),A.addEventListener("contextmenu",R,!0);const N=Hd(i);if(N&&(N.addEventListener("mousedown",R,!0),N.addEventListener("contextmenu",R,!0)),process.env.NODE_ENV!=="production"&&i){const F=(I=i.getRootNode)==null?void 0:I.call(i),D=(O=r.getRootNode)==null?void 0:O.call(r);tn(F===D,"trigger element and popup element should in same shadow root.")}return()=>{A.removeEventListener("pointerdown",$,!0),A.removeEventListener("mousedown",R,!0),A.removeEventListener("contextmenu",R,!0),N&&(N.removeEventListener("mousedown",R,!0),N.removeEventListener("contextmenu",R,!0))}}},[o,i,r,c,m]);function E(){P.current=!0}return E}function mI(){const[e,o]=d.useState(null),[i,r]=d.useState(!1),[c,m]=d.useState(!1),g=d.useRef(null),x=gt(P=>{P===!1?(g.current=null,r(!1)):c&&i?g.current=P:(r(!0),o(P),g.current=null,i||m(!0))}),w=gt(P=>{P?(m(!1),g.current&&(o(g.current),g.current=null)):(m(!1),g.current=null)});return[x,i,e,w]}function xm(){return xm=Object.assign?Object.assign.bind():function(e){for(var o=1;o<arguments.length;o++){var i=arguments[o];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r])}return e},xm.apply(this,arguments)}const gI=e=>{const{prefixCls:o,isMobile:i,ready:r,open:c,align:m,offsetR:g,offsetB:x,offsetX:w,offsetY:P,arrowPos:E,popupSize:I,motion:O,uniqueContainerClassName:$,uniqueContainerStyle:R}=e,A=`${o}-unique-container`,[N,F]=d.useState(!1),D=e0(i,r,c,m,g,x,w,P),W=d.useRef(D);r&&(W.current=D);const U={};return I&&(U.width=I.width,U.height=I.height),d.createElement(Ma,xm({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,leavedClassName:`${A}-hidden`},O,{visible:c,onVisibleChanged:j=>{F(j)}}),({className:j,style:ee})=>{const te=Re(A,j,$,{[`${A}-visible`]:N});return d.createElement("div",{className:te,style:{"--arrow-x":`${(E==null?void 0:E.x)||0}px`,"--arrow-y":`${(E==null?void 0:E.y)||0}px`,...W.current,...U,...ee,...R}})})},vI=({children:e,postTriggerProps:o})=>{const[i,r,c,m]=mI(),g=v.useMemo(()=>!c||!o?c:o(c),[c,o]),[x,w]=v.useState(null),[P,E]=v.useState(null),I=v.useRef(null),O=gt(_e=>{I.current=_e,mi(_e)&&x!==_e&&w(_e)}),$=v.useRef(null),R=u0(),A=gt((_e,st)=>{$.current=st,R(()=>{i(_e)},_e.delay)}),N=_e=>{R(()=>{var st;(st=$.current)!=null&&st.call($)||i(!1)},_e)},F=gt(_e=>{m(_e)}),[D,W,U,j,ee,te,Y,,,ae,he]=c0(r,x,g==null?void 0:g.target,g==null?void 0:g.popupPlacement,(g==null?void 0:g.builtinPlacements)||{},g==null?void 0:g.popupAlign,void 0,!1),oe=v.useMemo(()=>{var _e;if(!g)return"";const st=o0(g.builtinPlacements||{},g.prefixCls||"",ae,!1);return Re(st,(_e=g.getPopupClassNameFromAlign)==null?void 0:_e.call(g,ae))},[ae,g==null?void 0:g.getPopupClassNameFromAlign,g==null?void 0:g.builtinPlacements,g==null?void 0:g.prefixCls]),be=v.useMemo(()=>({show:A,hide:N}),[]);v.useEffect(()=>{he()},[g==null?void 0:g.target]);const ye=gt(()=>(he(),Promise.resolve())),Me=v.useRef({}),le=v.useContext(Yd),we=v.useMemo(()=>({registerSubPopup:(_e,st)=>{Me.current[_e]=st,le==null||le.registerSubPopup(_e,st)}}),[le]),Fe=g==null?void 0:g.prefixCls;return v.createElement(t0.Provider,{value:be},e,g&&v.createElement(Yd.Provider,{value:we},v.createElement(ym,{ref:O,portal:Kd,onEsc:g.onEsc,prefixCls:Fe,popup:g.popup,className:Re(g.popupClassName,oe,`${Fe}-unique-controlled`),style:g.popupStyle,target:g.target,open:r,keepDom:!0,fresh:!0,autoDestroy:!1,onVisibleChanged:F,ready:D,offsetX:W,offsetY:U,offsetR:j,offsetB:ee,onAlign:he,onPrepare:ye,onResize:_e=>E({width:_e.offsetWidth,height:_e.offsetHeight}),arrowPos:{x:te,y:Y},align:ae,zIndex:g.zIndex,mask:g.mask,arrow:g.arrow,motion:g.popupMotion,maskMotion:g.maskMotion,getPopupContainer:g.getPopupContainer},v.createElement(gI,{prefixCls:Fe,isMobile:!1,ready:D,open:r,align:ae,offsetR:j,offsetB:ee,offsetX:W,offsetY:U,arrowPos:{x:te,y:Y},popupSize:P,motion:g.popupMotion,uniqueContainerClassName:Re(g.uniqueContainerClassName,oe),uniqueContainerStyle:g.uniqueContainerStyle}))))};function yI(e=Kd){const o=v.forwardRef((i,r)=>{const{prefixCls:c="rc-trigger-popup",children:m,action:g="hover",showAction:x,hideAction:w,popupVisible:P,defaultPopupVisible:E,onOpenChange:I,afterOpenChange:O,onPopupVisibleChange:$,afterPopupVisibleChange:R,mouseEnterDelay:A,mouseLeaveDelay:N=.1,focusDelay:F,blurDelay:D,mask:W,maskClosable:U=!0,getPopupContainer:j,forceRender:ee,autoDestroy:te,popup:Y,popupClassName:ae,uniqueContainerClassName:he,uniqueContainerStyle:oe,popupStyle:be,popupPlacement:ye,builtinPlacements:Me={},popupAlign:le,zIndex:we,stretch:Fe,getPopupClassNameFromAlign:_e,fresh:st,unique:ke,alignPoint:Ne,onPopupClick:rt,onPopupAlign:We,arrow:Ge,popupMotion:ze,maskMotion:Se,mobile:je,...tt}=i,ut=te||!1,At=P===void 0,St=!!je,Ft=v.useRef({}),It=v.useContext(Yd),Ve=v.useMemo(()=>({registerSubPopup:($e,An)=>{Ft.current[$e]=An,It==null||It.registerSubPopup($e,An)}}),[It]),qt=v.useContext(t0),ht=Jd(),[Kt,bn]=v.useState(null),ln=v.useRef(null),Tn=gt($e=>{ln.current=$e,mi($e)&&Kt!==$e&&bn($e),It==null||It.registerSubPopup(ht,$e)}),[Xt,xn]=v.useState(null),Yn=v.useRef(null),Qt=gt($e=>{const An=gi($e);mi(An)&&Xt!==An&&(xn(An),Yn.current=An)}),sn={},Lo=gt($e=>{var An,ti;const ci=Xt;return(ci==null?void 0:ci.contains($e))||((An=Hd(ci))==null?void 0:An.host)===$e||$e===ci||(Kt==null?void 0:Kt.contains($e))||((ti=Hd(Kt))==null?void 0:ti.host)===$e||$e===Kt||Object.values(Ft.current).some(la=>(la==null?void 0:la.contains($e))||$e===la)}),wo=Ge?{...Ge!==!0?Ge:{}}:null,[lo,Co]=Lt(E||!1,P),en=lo||!1,at=v.useMemo(()=>{const $e=typeof m=="function"?m({open:en}):m;return v.Children.only($e)},[m,en]),ft=(at==null?void 0:at.props)||{},Nn=gt(()=>en),Ln=gt(($e=0)=>({popup:Y,target:Xt,delay:$e,prefixCls:c,popupClassName:ae,uniqueContainerClassName:he,uniqueContainerStyle:oe,popupStyle:be,popupPlacement:ye,builtinPlacements:Me,popupAlign:le,zIndex:we,mask:W,maskClosable:U,popupMotion:ze,maskMotion:Se,arrow:wo,getPopupContainer:j,getPopupClassNameFromAlign:_e,id:ht,onEsc:Jo}));He(()=>{qt&&ke&&Xt&&!At&&!It&&(en?qt.show(Ln(A),Nn):qt.hide(N))},[en,Xt]);const Et=v.useRef(en);Et.current=en;const cn=gt($e=>{y.flushSync(()=>{en!==$e&&(Co($e),I==null||I($e),$==null||$($e))})}),Vt=u0(),Cn=($e,An=0)=>{if(P!==void 0){Vt(()=>{cn($e)},An);return}if(qt&&ke&&At&&!It){$e?qt.show(Ln(An),Nn):qt.hide(An);return}Vt(()=>{cn($e)},An)};function Jo({top:$e}){$e&&Cn(!1)}const[li,ko]=v.useState(!1);He($e=>{(!$e||en)&&ko(!0)},[en]);const[$o,bi]=v.useState(null),[Pn,Ji]=v.useState(null),cr=$e=>{Ji([$e.clientX,$e.clientY])},[Ar,Di,Fi,Xi,ur,Ko,xi,bo,pt,Li,Yo]=c0(en,Kt,Ne&&Pn!==null?Pn:Xt,ye,Me,le,We,St),[q,Ee]=dI(g,x,w),Ze=q.has("click"),nt=Ee.has("click")||Ee.has("contextMenu"),qe=gt(()=>{li||Yo()});fI(en,Xt,Kt,qe,()=>{Et.current&&Ne&&nt&&Cn(!1)}),He(()=>{qe()},[Pn,ye]),He(()=>{en&&!(Me!=null&&Me[ye])&&qe()},[JSON.stringify(le)]);const Mt=v.useMemo(()=>{const $e=o0(Me,c,Li,Ne);return Re($e,_e==null?void 0:_e(Li))},[Li,_e,Me,c,Ne]);v.useImperativeHandle(r,()=>({nativeElement:Yn.current,popupElement:ln.current,forceAlign:qe}));const[Qe,_t]=v.useState(0),[Sn,fn]=v.useState(0),$n=()=>{if(Fe&&Xt){const $e=Xt.getBoundingClientRect();_t($e.width),fn($e.height)}},Ao=()=>{$n(),qe()},Oo=$e=>{ko(!1),Yo(),O==null||O($e),R==null||R($e)},Xo=()=>new Promise($e=>{$n(),bi(()=>$e)});He(()=>{$o&&(Yo(),$o(),bi(null))},[$o]);function co($e,An,ti,ci,la){sn[$e]=($a,...Bs)=>{var Do;(!la||!la())&&(ci==null||ci($a),Cn(An,ti)),(Do=ft[$e])==null||Do.call(ft,$a,...Bs)}}const Or=q.has("touch"),ei=Ee.has("touch"),Xr=v.useRef(!1);(Or||ei)&&(sn.onTouchStart=(...$e)=>{var An;Xr.current=!0,Et.current&&ei?Cn(!1):!Et.current&&Or&&Cn(!0),(An=ft.onTouchStart)==null||An.call(ft,...$e)}),(Ze||nt)&&(sn.onClick=($e,...An)=>{var ti;Et.current&&nt?Cn(!1):!Et.current&&Ze&&(cr($e),Cn(!0)),(ti=ft.onClick)==null||ti.call(ft,$e,...An),Xr.current=!1});const Ba=pI(en,nt||ei,Xt,Kt,W,U,Lo,Cn),Jt=q.has("hover"),Ai=Ee.has("hover");let wi,es;const wn=()=>Xr.current;if(Jt){const $e=An=>{cr(An)};co("onMouseEnter",!0,A,$e,wn),co("onPointerEnter",!0,A,$e,wn),wi=An=>{(en||li)&&Kt!=null&&Kt.contains(An.target)&&Cn(!0,A)},Ne&&(sn.onMouseMove=An=>{var ti;(ti=ft.onMouseMove)==null||ti.call(ft,An)})}Ai&&(co("onMouseLeave",!1,N,void 0,wn),co("onPointerLeave",!1,N,void 0,wn),es=()=>{Cn(!1,N)}),q.has("focus")&&co("onFocus",!0,F),Ee.has("focus")&&co("onBlur",!1,D),q.has("contextMenu")&&(sn.onContextMenu=($e,...An)=>{var ti;Et.current&&Ee.has("contextMenu")?Cn(!1):(cr($e),Cn(!0)),$e.preventDefault(),(ti=ft.onContextMenu)==null||ti.call(ft,$e,...An)});const uo=v.useRef(!1);uo.current||(uo.current=ee||en||li);const ps={...ft,...sn},ts={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach($e=>{tt[$e]&&(ts[$e]=(...An)=>{var ti;(ti=ps[$e])==null||ti.call(ps,...An),tt[$e](...An)})});const ms={x:Ko,y:xi};Ke(en,Xt,Ao);const Na=Zn(Qt,Jn(at)),an=v.cloneElement(at,{...ps,...ts,ref:Na});return v.createElement(v.Fragment,null,an,uo.current&&(!qt||!ke)&&v.createElement(Yd.Provider,{value:Ve},v.createElement(ym,{portal:e,ref:Tn,prefixCls:c,popup:Y,className:Re(ae,!St&&Mt),style:be,target:Xt,onMouseEnter:wi,onMouseLeave:es,onPointerEnter:wi,zIndex:we,open:en,keepDom:li,fresh:st,onClick:rt,onPointerDownCapture:Ba,mask:W,motion:ze,maskMotion:Se,onVisibleChanged:Oo,onPrepare:Xo,forceRender:ee,autoDestroy:ut,getPopupContainer:j,onEsc:Jo,align:Li,arrow:wo,arrowPos:ms,ready:Ar,offsetX:Di,offsetY:Fi,offsetR:Xi,offsetB:ur,onAlign:qe,stretch:Fe,targetWidth:Qe/bo,targetHeight:Sn/pt,mobile:je})))});return process.env.NODE_ENV!=="production"&&(o.displayName="Trigger"),o}const wm=yI(Kd);function d0(e){return e&&d.isValidElement(e)&&e.type===d.Fragment}const _I=(e,o,i)=>d.isValidElement(e)?d.cloneElement(e,typeof i=="function"?i(e.props||{}):i):o;function Os(e,o){return _I(e,e,o)}const bI=({children:e})=>{const{getPrefixCls:o}=d.useContext(Gn),i=o();return d.isValidElement(e)?d.createElement(Ma,{visible:!0,motionName:`${i}-fade`,motionAppear:!0,motionEnter:!0,motionLeave:!1,removeOnLeave:!1},({style:r,className:c})=>Os(e,m=>({className:Re(m.className,c),style:{...m.style,...r}}))):e},Xd=[null,null];function xI(e){if(Xd[0]!==e){const o={};Object.keys(e).forEach(i=>{o[i]={...e[i],dynamicInset:!1}}),Xd[0]=e,Xd[1]=o}return Xd[1]}const h0=({children:e})=>{const o=i=>{const{id:r,builtinPlacements:c,popup:m}=i,g=typeof m=="function"?m():m,x=xI(c);return{...i,getPopupContainer:null,arrow:!1,popup:d.createElement(bI,{key:r},g),builtinPlacements:x}};return d.createElement(vI,{postTriggerProps:o},e)},Cm=v.createContext(!1),wI=({children:e,disabled:o})=>{const i=v.useContext(Cm);return v.createElement(Cm.Provider,{value:o??i},e)},Sm=Cm,Em=v.createContext(void 0),CI=({children:e,size:o})=>{const i=v.useContext(Em);return v.createElement(Em.Provider,{value:o||i},e)},eh=Em;function SI(){const e=d.useContext(Sm),o=d.useContext(eh);return{componentDisabled:e,componentSize:o}}function EI(e,o,i){var r;const c=mo("ConfigProvider"),m=e||{},g=m.inherit===!1||!o?{...om,hashed:(o==null?void 0:o.hashed)??om.hashed,cssVar:o==null?void 0:o.cssVar}:o,x=d.useId();if(process.env.NODE_ENV!=="production"){const w=m.cssVar||g.cssVar,P=!!(typeof m.cssVar=="object"&&(r=m.cssVar)!=null&&r.key||x);process.env.NODE_ENV!=="production"&&c(!w||P,"breaking","Missing key in `cssVar` config. Please upgrade to React 18 or set `cssVar.key` manually in each ConfigProvider inside `cssVar` enabled ConfigProvider.")}return Dn(()=>{var w;if(!e)return o;const P={...g.components};Object.keys(e.components||{}).forEach(O=>{P[O]={...P[O],...e.components[O]}});const E=`css-var-${x.replace(/:/g,"")}`,I={prefix:i==null?void 0:i.prefixCls,...g.cssVar,...m.cssVar,key:((w=m.cssVar)==null?void 0:w.key)||E};return{...g,...m,token:{...g.token,...m.token},components:P,cssVar:I}},[m,g],(w,P)=>w.some((E,I)=>{const O=P[I];return!ss(E,O,!0)}))}const Pm=v.createContext(!0);process.env.NODE_ENV!=="production"&&(Pm.displayName="MotionCacheContext");function PI(e){const o=v.useContext(Pm),{children:i}=e,[,r]=ra(),{motion:c}=r,m=v.useRef(!1);return m.current||(m.current=o!==c),m.current?v.createElement(Pm.Provider,{value:c},v.createElement(Ck,{motion:c},i)):i}const f0=v.memo(({dropdownMatchSelectWidth:e})=>(mo("ConfigProvider").deprecated(e===void 0,"dropdownMatchSelectWidth","popupMatchSelectWidth"),null));process.env.NODE_ENV!=="production"&&(f0.displayName="PropWarning");const kI=process.env.NODE_ENV!=="production"?f0:()=>null,II=({iconPrefixCls:e,csp:o})=>(pk(e,o),null);let p0=!1;process.env.NODE_ENV;const MI=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"],TI=e=>{},LI=e=>{const{children:o,csp:i,autoInsertSpaceInButton:r,alert:c,affix:m,anchor:g,form:x,locale:w,componentSize:P,direction:E,space:I,splitter:O,virtual:$,dropdownMatchSelectWidth:R,popupMatchSelectWidth:A,popupOverflow:N,legacyLocale:F,parentContext:D,iconPrefixCls:W,theme:U,componentDisabled:j,segmented:ee,statistic:te,spin:Y,calendar:ae,carousel:he,cascader:oe,collapse:be,typography:ye,checkbox:Me,descriptions:le,divider:we,drawer:Fe,skeleton:_e,steps:st,image:ke,layout:Ne,list:rt,mentions:We,modal:Ge,progress:ze,result:Se,slider:je,breadcrumb:tt,masonry:ut,menu:At,pagination:St,input:Ft,textArea:It,otp:Ve,empty:qt,badge:ht,radio:Kt,rate:bn,ribbon:ln,switch:Tn,transfer:Xt,avatar:xn,message:Yn,tag:Qt,table:sn,card:Lo,cardMeta:wo,tabs:lo,timeline:Co,timePicker:en,upload:at,notification:ft,tree:Nn,colorPicker:Ln,datePicker:Et,rangePicker:cn,flex:Vt,wave:Cn,dropdown:Jo,warning:li,tour:ko,tooltip:$o,popover:bi,popconfirm:Pn,qrcode:Ji,floatButton:cr,floatButtonGroup:Ar,variant:Di,inputNumber:Fi,treeSelect:Xi,watermark:ur}=e,Ko=v.useCallback((Qe,_t)=>{const{prefixCls:Sn}=e;if(_t)return _t;const fn=Sn||D.getPrefixCls("");return Qe?`${fn}-${Qe}`:fn},[D.getPrefixCls,e.prefixCls]),xi=W||D.iconPrefixCls||Vi,bo=i||D.csp,pt=EI(U,D.theme,{prefixCls:Ko("")});process.env.NODE_ENV!=="production"&&(p0=p0||!!pt);const Li={csp:bo,autoInsertSpaceInButton:r,alert:c,affix:m,anchor:g,locale:w||F,direction:E,space:I,splitter:O,virtual:$,popupMatchSelectWidth:A??R,popupOverflow:N,getPrefixCls:Ko,iconPrefixCls:xi,theme:pt,segmented:ee,statistic:te,spin:Y,calendar:ae,carousel:he,cascader:oe,collapse:be,typography:ye,checkbox:Me,descriptions:le,divider:we,drawer:Fe,skeleton:_e,steps:st,image:ke,input:Ft,textArea:It,otp:Ve,layout:Ne,list:rt,mentions:We,modal:Ge,progress:ze,result:Se,slider:je,breadcrumb:tt,masonry:ut,menu:At,pagination:St,empty:qt,badge:ht,radio:Kt,rate:bn,ribbon:ln,switch:Tn,transfer:Xt,avatar:xn,message:Yn,tag:Qt,table:sn,card:Lo,cardMeta:wo,tabs:lo,timeline:Co,timePicker:en,upload:at,notification:ft,tree:Nn,colorPicker:Ln,datePicker:Et,rangePicker:cn,flex:Vt,wave:Cn,dropdown:Jo,warning:li,tour:ko,tooltip:$o,popover:bi,popconfirm:Pn,qrcode:Ji,floatButton:cr,floatButtonGroup:Ar,variant:Di,inputNumber:Fi,treeSelect:Xi,watermark:ur};process.env.NODE_ENV!=="production"&&mo("ConfigProvider")(!("autoInsertSpaceInButton"in e),"deprecated","`autoInsertSpaceInButton` is deprecated. Please use `{ button: { autoInsertSpace: boolean }}` instead.");const Yo={...D};Object.keys(Li).forEach(Qe=>{Li[Qe]!==void 0&&(Yo[Qe]=Li[Qe])}),MI.forEach(Qe=>{const _t=e[Qe];_t&&(Yo[Qe]=_t)}),typeof r<"u"&&(Yo.button={autoInsertSpace:r,...Yo.button});const q=Dn(()=>Yo,Yo,(Qe,_t)=>{const Sn=Object.keys(Qe),fn=Object.keys(_t);return Sn.length!==fn.length||Sn.some($n=>Qe[$n]!==_t[$n])}),{layer:Ee}=v.useContext(Us),Ze=v.useMemo(()=>({prefixCls:xi,csp:bo,layer:Ee?"antd":void 0}),[xi,bo,Ee]);let nt=v.createElement(v.Fragment,null,v.createElement(II,{iconPrefixCls:xi,csp:bo}),v.createElement(kI,{dropdownMatchSelectWidth:R}),o);const qe=v.useMemo(()=>{var Qe,_t,Sn,fn;return xo(((Qe=Ud.Form)==null?void 0:Qe.defaultValidateMessages)||{},((Sn=(_t=q.locale)==null?void 0:_t.Form)==null?void 0:Sn.defaultValidateMessages)||{},((fn=q.form)==null?void 0:fn.validateMessages)||{},(x==null?void 0:x.validateMessages)||{})},[q,x==null?void 0:x.validateMessages]);Object.keys(qe).length>0&&(nt=v.createElement(Jk.Provider,{value:qe},nt)),w&&(nt=v.createElement(Zk,{locale:w,_ANT_MARK__:zb},nt)),(xi||bo)&&(nt=v.createElement(lm.Provider,{value:Ze},nt)),P&&(nt=v.createElement(CI,{size:P},nt)),nt=v.createElement(PI,null,nt),$o!=null&&$o.unique&&(nt=v.createElement(h0,null,nt));const Mt=v.useMemo(()=>{const{algorithm:Qe,token:_t,components:Sn,cssVar:fn,...$n}=pt||{},Ao=Qe&&(!Array.isArray(Qe)||Qe.length>0)?Uo(Qe):ob,Oo={};Object.entries(Sn||{}).forEach(([co,Or])=>{const ei={...Or};"algorithm"in ei&&(ei.algorithm===!0?ei.theme=Ao:(Array.isArray(ei.algorithm)||typeof ei.algorithm=="function")&&(ei.theme=Uo(ei.algorithm)),delete ei.algorithm),Oo[co]=ei});const Xo={...Uc,..._t};return{...$n,theme:Ao,token:Xo,components:Oo,override:{override:Xo,...Oo},cssVar:fn}},[pt]);return U&&(nt=v.createElement(ib.Provider,{value:Mt},nt)),q.warning&&(nt=v.createElement(Zi.Provider,{value:q.warning},nt)),j!==void 0&&(nt=v.createElement(wI,{disabled:j},nt)),v.createElement(Gn.Provider,{value:q},nt)},Aa=e=>{const o=v.useContext(Gn),i=v.useContext(Rb);return v.createElement(LI,{parentContext:o,legacyLocale:i,...e})};Aa.ConfigContext=Gn,Aa.SizeContext=eh,Aa.config=TI,Aa.useConfig=SI,Object.defineProperty(Aa,"SizeContext",{get:()=>(process.env.NODE_ENV!=="production"&&ir(!1,"ConfigProvider","ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead."),eh)}),process.env.NODE_ENV!=="production"&&(Aa.displayName="ConfigProvider");const Zt={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){const{keyCode:o}=e;if(e.altKey&&!e.ctrlKey||e.metaKey||o>=Zt.F1&&o<=Zt.F12)return!1;switch(o){case Zt.ALT:case Zt.CAPS_LOCK:case Zt.CONTEXT_MENU:case Zt.CTRL:case Zt.DOWN:case Zt.END:case Zt.ESC:case Zt.HOME:case Zt.INSERT:case Zt.LEFT:case Zt.MAC_FF_META:case Zt.META:case Zt.NUMLOCK:case Zt.NUM_CENTER:case Zt.PAGE_DOWN:case Zt.PAGE_UP:case Zt.PAUSE:case Zt.PRINT_SCREEN:case Zt.RIGHT:case Zt.SHIFT:case Zt.UP:case Zt.WIN_KEY:case Zt.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=Zt.ZERO&&e<=Zt.NINE||e>=Zt.NUM_ZERO&&e<=Zt.NUM_MULTIPLY||e>=Zt.A&&e<=Zt.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&e===0)return!0;switch(e){case Zt.SPACE:case Zt.QUESTION_MARK:case Zt.NUM_PLUS:case Zt.NUM_MINUS:case Zt.NUM_PERIOD:case Zt.NUM_DIVISION:case Zt.SEMICOLON:case Zt.DASH:case Zt.EQUALS:case Zt.COMMA:case Zt.PERIOD:case Zt.SLASH:case Zt.APOSTROPHE:case Zt.SINGLE_QUOTE:case Zt.OPEN_SQUARE_BRACKET:case Zt.BACKSLASH:case Zt.CLOSE_SQUARE_BRACKET:return!0;default:return!1}},isEditableTarget:function(e){const o=e.target;if(!(o instanceof HTMLElement))return!1;const i=o.tagName;return!!(i==="INPUT"||i==="TEXTAREA"||i==="SELECT"||o.isContentEditable)}};var AI={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"};const OI=AI;function km(){return km=Object.assign?Object.assign.bind():function(e){for(var o=1;o<arguments.length;o++){var i=arguments[o];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r])}return e},km.apply(this,arguments)}const RI=(e,o)=>v.createElement(Yc,km({},e,{ref:o,icon:OI})),m0=v.forwardRef(RI);process.env.NODE_ENV!=="production"&&(m0.displayName="LoadingOutlined");const zI=m0;var Al,th=y;if(process.env.NODE_ENV==="production")Al=th.createRoot,th.hydrateRoot;else{var g0=th.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;Al=function(e,o){g0.usingClientEntryPoint=!0;try{return th.createRoot(e,o)}finally{g0.usingClientEntryPoint=!1}}}const nh="__rc_react_root__";function BI(e,o){const i=o[nh]||Al(o);i.render(e),o[nh]=i}async function NI(e){return Promise.resolve().then(()=>{var o;(o=e[nh])==null||o.unmount(),delete e[nh]})}const Im=()=>({height:0,opacity:0}),v0=e=>{const{scrollHeight:o}=e;return{height:o,opacity:1}},$I=e=>({height:e?e.offsetHeight:0}),Mm=(e,o)=>(o==null?void 0:o.deadline)===!0||o.propertyName==="height",DI=(e=Yt)=>({motionName:`${e}-motion-collapse`,onAppearStart:Im,onEnterStart:Im,onAppearActive:v0,onEnterActive:v0,onLeaveStart:$I,onLeaveActive:Im,onAppearEnd:Mm,onEnterEnd:Mm,onLeaveEnd:Mm,motionDeadline:500}),FI=(e,o,i)=>i!==void 0?i:`${e}-${o}`,HI=dk("Wave",e=>{const{componentCls:o,colorPrimary:i,antCls:r}=e,[,c]=sa(r,"wave");return{[o]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:c("color",i),boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}}),Tm=`${Yt}-wave-target`;function y0(e){return e&&typeof e=="string"&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"&&e!=="canvastext"}function jI(e,o=null){const i=getComputedStyle(e),{borderTopColor:r,borderColor:c,backgroundColor:m}=i;return o&&y0(i[o])?i[o]:[r,c,m].find(y0)??null}function Lm(e){return Number.isNaN(e)?0:e}const ZI=e=>{const{className:o,target:i,component:r,colorSource:c}=e,m=v.useRef(null),{getPrefixCls:g}=v.useContext(Gn),x=g(),[w]=sa(x,"wave"),[P,E]=v.useState(null),[I,O]=v.useState([]),[$,R]=v.useState(0),[A,N]=v.useState(0),[F,D]=v.useState(0),[W,U]=v.useState(0),[j,ee]=v.useState(!1),te={left:$,top:A,width:F,height:W,borderRadius:I.map(he=>`${he}px`).join(" ")};P&&(te[w("color")]=P);function Y(){const he=getComputedStyle(i);E(jI(i,c));const oe=he.position==="static",{borderLeftWidth:be,borderTopWidth:ye}=he;R(oe?i.offsetLeft:Lm(-Number.parseFloat(be))),N(oe?i.offsetTop:Lm(-Number.parseFloat(ye))),D(i.offsetWidth),U(i.offsetHeight);const{borderTopLeftRadius:Me,borderTopRightRadius:le,borderBottomLeftRadius:we,borderBottomRightRadius:Fe}=he;O([Me,le,Fe,we].map(_e=>Lm(Number.parseFloat(_e))))}if(v.useEffect(()=>{if(i){const he=yt(()=>{Y(),ee(!0)});let oe;return typeof ResizeObserver<"u"&&(oe=new ResizeObserver(Y),oe.observe(i)),()=>{yt.cancel(he),oe==null||oe.disconnect()}}},[i]),!j)return null;const ae=(r==="Checkbox"||r==="Radio")&&(i==null?void 0:i.classList.contains(Tm));return v.createElement(Ma,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(he,oe)=>{var be;if(oe.deadline||oe.propertyName==="opacity"){const ye=(be=m.current)==null?void 0:be.parentElement;NI(ye).then(()=>{ye==null||ye.remove()})}return!1}},({className:he},oe)=>v.createElement("div",{ref:jn(m,oe),className:Re(o,he,{"wave-quick":ae}),style:te}))},VI=(e,o)=>{var i;const{component:r}=o;if(r==="Checkbox"&&!((i=e.querySelector("input"))!=null&&i.checked))return;const c=document.createElement("div");c.style.position="absolute",c.style.left="0px",c.style.top="0px",e==null||e.insertBefore(c,e==null?void 0:e.firstChild),BI(v.createElement(ZI,{...o,target:e}),c)},WI=(e,o,i,r)=>{const{wave:c}=v.useContext(Gn),[,m,g]=ra(),x=gt(P=>{const E=e.current;if(c!=null&&c.disabled||!E)return;const I=E.querySelector(`.${Tm}`)||E,{showEffect:O}=c||{};(O||VI)(I,{className:o,token:m,component:i,event:P,hashId:g,colorSource:r})}),w=v.useRef(null);return v.useEffect(()=>()=>{yt.cancel(w.current)},[]),P=>{yt.cancel(w.current),w.current=yt(()=>{x(P)})}},_0=e=>{const{children:o,disabled:i,component:r,colorSource:c}=e,{getPrefixCls:m}=d.useContext(Gn),g=d.useRef(null),x=m("wave"),w=HI(x),P=WI(g,Re(x,w),r,c);if(d.useEffect(()=>{const I=g.current;if(!I||I.nodeType!==window.Node.ELEMENT_NODE||i)return;const O=$=>{!_m($.target)||!I.getAttribute||I.getAttribute("disabled")||I.disabled||I.className.includes("disabled")&&!I.className.includes("disabled:")||I.getAttribute("aria-disabled")==="true"||I.className.includes("-leave")||P($)};return I.addEventListener("click",O,!0),()=>{I.removeEventListener("click",O,!0)}},[i]),!d.isValidElement(o))return o??null;const E=eo(o)?jn(Jn(o),g):g;return Os(o,{ref:E})};process.env.NODE_ENV!=="production"&&(_0.displayName="Wave");const b0=_0,x0=e=>{const o=d.useContext(eh);return d.useMemo(()=>e?typeof e=="string"?e??o:typeof e=="function"?e(o):o:o,[e,o])},qI=e=>{const{componentCls:o}=e;return{[o]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"}}}},GI=hs(["Space","Compact"],e=>[qI(e)],()=>({}),{resetStyle:!1}),oh=v.createContext(null),Am=(e,o)=>{const i=v.useContext(oh),r=v.useMemo(()=>{if(!i)return"";const{compactDirection:c,isFirstItem:m,isLastItem:g}=i,x=c==="vertical"?"-vertical-":"-";return Re(`${e}-compact${x}item`,{[`${e}-compact${x}first-item`]:m,[`${e}-compact${x}last-item`]:g,[`${e}-compact${x}item-rtl`]:o==="rtl"})},[e,o,i]);return{compactSize:i==null?void 0:i.compactSize,compactDirection:i==null?void 0:i.compactDirection,compactItemClassnames:r}},UI=e=>{const{children:o}=e;return v.createElement(oh.Provider,{value:null},o)},QI=e=>{const{children:o,...i}=e;return v.createElement(oh.Provider,{value:v.useMemo(()=>i,[i])},o)},JI=e=>{const{getPrefixCls:o,direction:i}=v.useContext(Gn),{size:r,direction:c,orientation:m,block:g,prefixCls:x,className:w,rootClassName:P,children:E,vertical:I,...O}=e;process.env.NODE_ENV!=="production"&&mo("Space.Compact").deprecated(!c,"direction","orientation");const[$,R]=Fb(m,I,c),A=x0(ee=>r??ee),N=o("space-compact",x),[F]=GI(N),D=Re(N,F,{[`${N}-rtl`]:i==="rtl",[`${N}-block`]:g,[`${N}-vertical`]:R},w,P),W=v.useContext(oh),U=oo(E),j=v.useMemo(()=>U.map((ee,te)=>{const Y=(ee==null?void 0:ee.key)||`${N}-item-${te}`;return v.createElement(QI,{key:Y,compactSize:A,compactDirection:$,isFirstItem:te===0&&(!W||(W==null?void 0:W.isFirstItem)),isLastItem:te===U.length-1&&(!W||(W==null?void 0:W.isLastItem))},ee)}),[U,W,$,A,N]);return U.length===0?null:v.createElement("div",{className:D,...O},j)},w0=v.createContext(void 0),KI=e=>{const{getPrefixCls:o,direction:i}=v.useContext(Gn),{prefixCls:r,size:c,className:m,...g}=e,x=o("btn-group",r),[,,w]=ra(),P=v.useMemo(()=>{switch(c){case"large":return"lg";case"small":return"sm";default:return""}},[c]);if(process.env.NODE_ENV!=="production"){const I=mo("Button.Group");I.deprecated(!1,"Button.Group","Space.Compact"),process.env.NODE_ENV!=="production"&&I(!c||["large","small","middle"].includes(c),"usage","Invalid prop `size`.")}const E=Re(x,{[`${x}-${P}`]:P,[`${x}-rtl`]:i==="rtl"},m,w);return v.createElement(w0.Provider,{value:c},v.createElement("div",{...g,className:E}))},C0=/^[\u4E00-\u9FA5]{2}$/,Om=C0.test.bind(C0);function S0(e){return typeof e=="string"}function ih(e){return e==="text"||e==="link"}function YI(e,o,i,r){if(!Ml(e)||e==="")return;const c=o?" ":"";return typeof e!="string"&&typeof e!="number"&&S0(e.type)&&Om(e.props.children)?Os(e,m=>{const g=Re(m.className,r)||void 0,x={...i,...m.style};return{...m,children:m.children.split("").join(c),className:g,style:x}}):S0(e)?d.createElement("span",{className:r,style:i},Om(e)?e.split("").join(c):e):d0(e)?d.createElement("span",{className:r,style:i},e):Os(e,m=>({...m,className:Re(m.className,r)||void 0,style:{...m.style,...i}}))}function XI(e,o,i,r){let c=!1;const m=[];return d.Children.forEach(e,g=>{const x=typeof g,w=x==="string"||x==="number";if(c&&w){const P=m.length-1,E=m[P];m[P]=`${E}${g}`}else m.push(g);c=w}),d.Children.map(m,g=>YI(g,o,i,r))}["default","primary","danger"].concat(Ho(Ia));const E0=d.forwardRef((e,o)=>{const{className:i,style:r,children:c,prefixCls:m}=e,g=Re(`${m}-icon`,i);return d.createElement("span",{ref:o,className:g,style:r},c)}),P0=d.forwardRef((e,o)=>{const{prefixCls:i,className:r,style:c,iconClassName:m}=e,g=Re(`${i}-loading-icon`,r);return d.createElement(E0,{prefixCls:i,className:g,style:c,ref:o},d.createElement(zI,{className:m}))}),Rm=()=>({width:0,opacity:0,transform:"scale(0)"}),zm=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),eM=e=>{const{prefixCls:o,loading:i,existIcon:r,className:c,style:m,mount:g}=e,x=!!i;return r?d.createElement(P0,{prefixCls:o,className:c,style:m}):d.createElement(Ma,{visible:x,motionName:`${o}-loading-icon-motion`,motionAppear:!g,motionEnter:!g,motionLeave:!g,removeOnLeave:!0,onAppearStart:Rm,onAppearActive:zm,onEnterStart:Rm,onEnterActive:zm,onLeaveStart:zm,onLeaveActive:Rm},({className:w,style:P},E)=>{const I={...m,...P};return d.createElement(P0,{prefixCls:o,className:Re(c,w),style:I,ref:E})})},k0=(e,o)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:o}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:o}}}}}),tM=e=>{const{componentCls:o,fontSize:i,lineWidth:r,groupBorderColor:c,colorErrorHover:m}=e;return{[`${o}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${o}`]:{"&:not(:last-child)":{[`&, & > ${o}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).mul(-1).equal(),[`&, & > ${o}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[o]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${o}-icon-only`]:{fontSize:i}},k0(`${o}-primary`,c),k0(`${o}-danger`,m)]}},Bm=e=>Math.round(Number(e||0)),nM=e=>{if(e instanceof Wo)return e;if(e&&typeof e=="object"&&"h"in e&&"b"in e){const{b:o,...i}=e;return{...i,v:o}}return typeof e=="string"&&/hsb/.test(e)?e.replace(/hsb/,"hsv"):e};class Rs extends Wo{constructor(o){super(nM(o))}toHsbString(){const o=this.toHsb(),i=Bm(o.s*100),r=Bm(o.b*100),c=Bm(o.h),m=o.a,g=`hsb(${c}, ${i}%, ${r}%)`,x=`hsba(${c}, ${i}%, ${r}%, ${m.toFixed(m===0?0:2)})`;return m===1?g:x}toHsb(){const{v:o,...i}=this.toHsv();return{...i,b:o,a:this.a}}}const oM="rc-color-picker",Ol=e=>e instanceof Rs?e:new Rs(e),iM=Ol("#1677ff"),I0=e=>{const{offset:o,targetRef:i,containerRef:r,color:c,type:m}=e,{width:g,height:x}=r.current.getBoundingClientRect(),{width:w,height:P}=i.current.getBoundingClientRect(),E=w/2,I=P/2,O=(o.x+E)/g,$=1-(o.y+I)/x,R=c.toHsb(),A=O,N=(o.x+E)/g*360;if(m)switch(m){case"hue":return Ol({...R,h:N<=0?0:N});case"alpha":return Ol({...R,a:A<=0?0:A})}return Ol({h:R.h,s:O<=0?0:O,b:$>=1?1:$,a:R.a})},M0=(e,o)=>{const i=e.toHsb();switch(o){case"hue":return{x:i.h/360*100,y:50};case"alpha":return{x:e.a*100,y:50};default:return{x:i.s*100,y:(1-i.b)*100}}},rM=({color:e,prefixCls:o,className:i,style:r,onClick:c})=>{const m=`${o}-color-block`;return d.createElement("div",{className:Re(m,i),style:r,onClick:c},d.createElement("div",{className:`${m}-inner`,style:{background:e}}))};function sM(e){const o="touches"in e?e.touches[0]:e,i=document.documentElement.scrollLeft||document.body.scrollLeft||window.pageXOffset,r=document.documentElement.scrollTop||document.body.scrollTop||window.pageYOffset;return{pageX:o.pageX-i,pageY:o.pageY-r}}function T0(e){const{targetRef:o,containerRef:i,direction:r,onDragChange:c,onDragChangeComplete:m,calculate:g,color:x,disabledDrag:w}=e,[P,E]=d.useState({x:0,y:0}),I=d.useRef(null),O=d.useRef(null);d.useEffect(()=>{E(g())},[x]),d.useEffect(()=>()=>{document.removeEventListener("mousemove",I.current),document.removeEventListener("mouseup",O.current),document.removeEventListener("touchmove",I.current),document.removeEventListener("touchend",O.current),I.current=null,O.current=null},[]);const $=N=>{const{pageX:F,pageY:D}=sM(N),{x:W,y:U,width:j,height:ee}=i.current.getBoundingClientRect(),{width:te,height:Y}=o.current.getBoundingClientRect(),ae=te/2,he=Y/2,oe=Math.max(0,Math.min(F-W,j))-ae,be=Math.max(0,Math.min(D-U,ee))-he,ye={x:oe,y:r==="x"?P.y:be};if(te===0&&Y===0||te!==Y)return!1;c==null||c(ye)},R=N=>{N.preventDefault(),$(N)},A=N=>{N.preventDefault(),document.removeEventListener("mousemove",I.current),document.removeEventListener("mouseup",O.current),document.removeEventListener("touchmove",I.current),document.removeEventListener("touchend",O.current),I.current=null,O.current=null,m==null||m()};return[P,N=>{document.removeEventListener("mousemove",I.current),document.removeEventListener("mouseup",O.current),!w&&($(N),document.addEventListener("mousemove",R),document.addEventListener("mouseup",A),document.addEventListener("touchmove",R),document.addEventListener("touchend",A),I.current=R,O.current=A)}]}const L0=({size:e="default",color:o,prefixCls:i})=>d.createElement("div",{className:Re(`${i}-handler`,{[`${i}-handler-sm`]:e==="small"}),style:{backgroundColor:o}}),A0=({children:e,style:o,prefixCls:i})=>d.createElement("div",{className:`${i}-palette`,style:{position:"relative",...o}},e),O0=d.forwardRef((e,o)=>{const{children:i,x:r,y:c}=e;return d.createElement("div",{ref:o,style:{position:"absolute",left:`${r}%`,top:`${c}%`,zIndex:1,transform:"translate(-50%, -50%)"}},i)}),aM=({color:e,onChange:o,prefixCls:i,onChangeComplete:r,disabled:c})=>{const m=d.useRef(),g=d.useRef(),x=d.useRef(e),w=gt(I=>{const O=I0({offset:I,targetRef:g,containerRef:m,color:e});x.current=O,o(O)}),[P,E]=T0({color:e,containerRef:m,targetRef:g,calculate:()=>M0(e),onDragChange:w,onDragChangeComplete:()=>r==null?void 0:r(x.current),disabledDrag:c});return d.createElement("div",{ref:m,className:`${i}-select`,onMouseDown:E,onTouchStart:E},d.createElement(A0,{prefixCls:i},d.createElement(O0,{x:P.x,y:P.y,ref:g},d.createElement(L0,{color:e.toRgbString(),prefixCls:i})),d.createElement("div",{className:`${i}-saturation`,style:{backgroundColor:`hsl(${e.toHsb().h},100%, 50%)`,backgroundImage:"linear-gradient(0deg, #000, transparent),linear-gradient(90deg, #fff, hsla(0, 0%, 100%, 0))"}})))},lM=(e,o)=>{const[i,r]=Lt(e,o);return[d.useMemo(()=>Ol(i),[i]),r]},cM=({colors:e,children:o,direction:i="to right",type:r,prefixCls:c})=>{const m=d.useMemo(()=>e.map((g,x)=>{let w=Ol(g);return r==="alpha"&&x===e.length-1&&(w=new Rs(w.setA(1))),w.toRgbString()}).join(","),[e,r]);return d.createElement("div",{className:`${c}-gradient`,style:{position:"absolute",inset:0,background:`linear-gradient(${i}, ${m})`}},o)},uM=e=>{const{prefixCls:o,colors:i,disabled:r,onChange:c,onChangeComplete:m,color:g,type:x}=e,w=d.useRef(null),P=d.useRef(null),E=d.useRef(g),I=F=>x==="hue"?F.getHue():F.a*100,O=gt(F=>{const D=I0({offset:F,targetRef:P,containerRef:w,color:g,type:x});E.current=D,c(I(D))}),[$,R]=T0({color:g,targetRef:P,containerRef:w,calculate:()=>M0(g,x),onDragChange:O,onDragChangeComplete(){m(I(E.current))},direction:"x",disabledDrag:r}),A=d.useMemo(()=>{if(x==="hue"){const F=g.toHsb();return F.s=1,F.b=1,F.a=1,new Rs(F)}return g},[g,x]),N=d.useMemo(()=>i.map(F=>`${F.color} ${F.percent}%`),[i]);return d.createElement("div",{ref:w,className:Re(`${o}-slider`,`${o}-slider-${x}`),onMouseDown:R,onTouchStart:R},d.createElement(A0,{prefixCls:o},d.createElement(O0,{x:$.x,y:$.y,ref:P},d.createElement(L0,{size:"small",color:A.toHexString(),prefixCls:o})),d.createElement(cM,{colors:N,type:x,prefixCls:o})))};function dM(e){return v.useMemo(()=>{const{slider:o}=e||{};return[o||uM]},[e])}function ou(){return ou=Object.assign?Object.assign.bind():function(e){for(var o=1;o<arguments.length;o++){var i=arguments[o];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r])}return e},ou.apply(this,arguments)}const hM=[{color:"rgb(255, 0, 0)",percent:0},{color:"rgb(255, 255, 0)",percent:17},{color:"rgb(0, 255, 0)",percent:33},{color:"rgb(0, 255, 255)",percent:50},{color:"rgb(0, 0, 255)",percent:67},{color:"rgb(255, 0, 255)",percent:83},{color:"rgb(255, 0, 0)",percent:100}],fM=d.forwardRef((e,o)=>{const{value:i,defaultValue:r,prefixCls:c=oM,onChange:m,onChangeComplete:g,className:x,style:w,panelRender:P,disabledAlpha:E=!1,disabled:I=!1,components:O}=e,[$]=dM(O),[R,A]=lM(r||iM,i),N=d.useMemo(()=>R.setA(1).toRgbString(),[R]),F=(oe,be)=>{i||A(oe),m==null||m(oe,be)},D=oe=>new Rs(R.setHue(oe)),W=oe=>new Rs(R.setA(oe/100)),U=oe=>{F(D(oe),{type:"hue",value:oe})},j=oe=>{F(W(oe),{type:"alpha",value:oe})},ee=oe=>{g&&g(D(oe))},te=oe=>{g&&g(W(oe))},Y=Re(`${c}-panel`,x,{[`${c}-panel-disabled`]:I}),ae={prefixCls:c,disabled:I,color:R},he=d.createElement(d.Fragment,null,d.createElement(aM,ou({onChange:F},ae,{onChangeComplete:g})),d.createElement("div",{className:`${c}-slider-container`},d.createElement("div",{className:Re(`${c}-slider-group`,{[`${c}-slider-group-disabled-alpha`]:E})},d.createElement($,ou({},ae,{type:"hue",colors:hM,min:0,max:359,value:R.getHue(),onChange:U,onChangeComplete:ee})),!E&&d.createElement($,ou({},ae,{type:"alpha",colors:[{percent:0,color:"rgba(255, 0, 4, 0)"},{percent:100,color:N}],min:0,max:100,value:R.a*100,onChange:j,onChangeComplete:te}))),d.createElement(rM,{color:R.toRgbString(),prefixCls:c})));return d.createElement("div",{className:Y,style:w,ref:o},typeof P=="function"?P(he):he)});process.env.NODE_ENV!=="production"&&(fM.displayName="ColorPicker");const pM=(e,o)=>(e==null?void 0:e.replace(/[^0-9a-f]/gi,"").slice(0,o?8:6))||"",mM=(e,o)=>e?pM(e,o):"";let Nm=function(){function e(o){var i;if(a(this,e),this.cleared=!1,o instanceof e){this.metaColor=o.metaColor.clone(),this.colors=(i=o.colors)==null?void 0:i.map(c=>({color:new e(c.color),percent:c.percent})),this.cleared=o.cleared;return}const r=Array.isArray(o);r&&o.length?(this.colors=o.map(({color:c,percent:m})=>({color:new e(c),percent:m})),this.metaColor=new Rs(this.colors[0].color.metaColor)):this.metaColor=new Rs(r?"":o),(!o||r&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return _(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return mM(this.toHexString(),this.metaColor.a<1)}},{key:"toHexString",value:function(){return this.metaColor.toHexString()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}},{key:"isGradient",value:function(){return!!this.colors&&!this.cleared}},{key:"getColors",value:function(){return this.colors||[{color:this,percent:0}]}},{key:"toCssString",value:function(){const{colors:o}=this;return o?`linear-gradient(90deg, ${o.map(i=>`${i.color.toRgbString()} ${i.percent}%`).join(", ")})`:this.metaColor.toRgbString()}},{key:"equals",value:function(o){return!o||this.isGradient()!==o.isGradient()?!1:this.isGradient()?this.colors.length===o.colors.length&&this.colors.every((i,r)=>{const c=o.colors[r];return i.percent===c.percent&&i.color.equals(c.color)}):this.toHexString()===o.toHexString()}}])}();var gM={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"};const vM=gM;function $m(){return $m=Object.assign?Object.assign.bind():function(e){for(var o=1;o<arguments.length;o++){var i=arguments[o];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r])}return e},$m.apply(this,arguments)}const yM=(e,o)=>v.createElement(Yc,$m({},e,{ref:o,icon:vM})),R0=v.forwardRef(yM);process.env.NODE_ENV!=="production"&&(R0.displayName="RightOutlined");const Dm=R0;function fs(){return fs=Object.assign?Object.assign.bind():function(e){for(var o=1;o<arguments.length;o++){var i=arguments[o];for(var r in i)({}).hasOwnProperty.call(i,r)&&(e[r]=i[r])}return e},fs.apply(null,arguments)}const _M=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
|
|
192
|
+
opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
|
|
193
|
+
opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),bM=e=>({animationDuration:e,animationFillMode:"both"}),xM=e=>({animationDuration:e,animationFillMode:"both"}),rh=(e,o,i,r,c=!1)=>{const m=c?"&":"";return{[`
|
|
194
|
+
${m}${e}-enter,
|
|
195
|
+
${m}${e}-appear
|
|
196
|
+
`]:{...bM(r),animationPlayState:"paused"},[`${m}${e}-leave`]:{...xM(r),animationPlayState:"paused"},[`
|
|
197
|
+
${m}${e}-enter${e}-enter-active,
|
|
198
|
+
${m}${e}-appear${e}-appear-active
|
|
199
|
+
`]:{animationName:o,animationPlayState:"running"},[`${m}${e}-leave${e}-leave-active`]:{animationName:i,animationPlayState:"running",pointerEvents:"none"}}},wM=new Qn("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),CM=new Qn("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),SM=(e,o=!1)=>{const{antCls:i}=e,r=`${i}-fade`,c=o?"&":"";return[rh(r,wM,CM,e.motionDurationMid,o),{[`
|
|
200
|
+
${c}${r}-enter,
|
|
201
|
+
${c}${r}-appear
|
|
202
|
+
`]:{opacity:0,animationTimingFunction:"linear"},[`${c}${r}-leave`]:{animationTimingFunction:"linear"}}]},EM=new Qn("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),PM=new Qn("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),kM=new Qn("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),IM=new Qn("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),MM=new Qn("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),TM=new Qn("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),LM=new Qn("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),AM=new Qn("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),OM={"move-up":{inKeyframes:LM,outKeyframes:AM},"move-down":{inKeyframes:EM,outKeyframes:PM},"move-left":{inKeyframes:kM,outKeyframes:IM},"move-right":{inKeyframes:MM,outKeyframes:TM}},z0=(e,o)=>{const{antCls:i}=e,r=`${i}-${o}`,{inKeyframes:c,outKeyframes:m}=OM[o];return[rh(r,c,m,e.motionDurationMid),{[`
|
|
203
|
+
${r}-enter,
|
|
204
|
+
${r}-appear
|
|
205
|
+
`]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},B0=new Qn("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),N0=new Qn("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),$0=new Qn("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),D0=new Qn("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),RM=new Qn("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),zM=new Qn("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),BM=new Qn("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),NM=new Qn("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),$M={"slide-up":{inKeyframes:B0,outKeyframes:N0},"slide-down":{inKeyframes:$0,outKeyframes:D0},"slide-left":{inKeyframes:RM,outKeyframes:zM},"slide-right":{inKeyframes:BM,outKeyframes:NM}},sh=(e,o)=>{const{antCls:i}=e,r=`${i}-${o}`,{inKeyframes:c,outKeyframes:m}=$M[o];return[rh(r,c,m,e.motionDurationMid),{[`
|
|
206
|
+
${r}-enter,
|
|
207
|
+
${r}-appear
|
|
208
|
+
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},DM=new Qn("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),FM=new Qn("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),F0=new Qn("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),H0=new Qn("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),HM=new Qn("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),jM=new Qn("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),ZM=new Qn("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),VM=new Qn("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),WM=new Qn("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),qM=new Qn("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),GM=new Qn("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),UM=new Qn("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),QM={zoom:{inKeyframes:DM,outKeyframes:FM},"zoom-big":{inKeyframes:F0,outKeyframes:H0},"zoom-big-fast":{inKeyframes:F0,outKeyframes:H0},"zoom-left":{inKeyframes:ZM,outKeyframes:VM},"zoom-right":{inKeyframes:WM,outKeyframes:qM},"zoom-up":{inKeyframes:HM,outKeyframes:jM},"zoom-down":{inKeyframes:GM,outKeyframes:UM}},Fm=(e,o)=>{const{antCls:i}=e,r=`${i}-${o}`,{inKeyframes:c,outKeyframes:m}=QM[o];return[rh(r,c,m,o==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[`
|
|
209
|
+
${r}-enter,
|
|
210
|
+
${r}-appear
|
|
211
|
+
`]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},JM=e=>e instanceof Nm?e:new Nm(e),KM=(e,o)=>{const{r:i,g:r,b:c,a:m}=e.toRgb(),g=new Rs(e.toRgbString()).onBackground(o).toHsv();return m<=.5?g.v>.5:i*.299+r*.587+c*.114>192},j0=e=>{const{paddingInline:o,onlyIconSize:i,borderColorDisabled:r}=e;return Yi(e,{buttonPaddingHorizontal:o,buttonPaddingVertical:0,buttonIconOnlyFontSize:i,colorBorderDisabled:r})},Z0=e=>{const o=e.contentFontSize??e.fontSize,i=e.contentFontSizeSM??e.fontSize,r=e.contentFontSizeLG??e.fontSizeLG,c=e.contentLineHeight??$d(o),m=e.contentLineHeightSM??$d(i),g=e.contentLineHeightLG??$d(r),x=KM(new Nm(e.colorBgSolid),"#fff")?"#000":"#fff",w=Ia.reduce((I,O)=>({...I,[`${O}ShadowColor`]:`0 ${$t(e.controlOutlineWidth)} 0 ${Jc(e[`${O}1`],e.colorBgContainer)}`}),{}),P=e.colorBgContainerDisabled,E=e.colorBgContainerDisabled;return{...w,fontWeight:400,iconGap:e.marginXS,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorderDisabled,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:"inherit",onlyIconSizeSM:"inherit",onlyIconSizeLG:"inherit",groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,textHoverBg:e.colorFillTertiary,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,solidTextColor:x,contentFontSize:o,contentFontSizeSM:i,contentFontSizeLG:r,contentLineHeight:c,contentLineHeightSM:m,contentLineHeightLG:g,paddingBlock:Math.max((e.controlHeight-o*c)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-i*m)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-r*g)/2-e.lineWidth,0),defaultBgDisabled:P,dashedBgDisabled:E}},YM=e=>{const{componentCls:o,antCls:i}=e,[r,c]=sa(i,"btn");return{[o]:[{[r("border-width")]:"1px",[r("border-color")]:"#000",[r("border-color-hover")]:c("border-color"),[r("border-color-active")]:c("border-color"),[r("border-color-disabled")]:c("border-color"),[r("border-style")]:"solid",[r("text-color")]:"#000",[r("text-color-hover")]:c("text-color"),[r("text-color-active")]:c("text-color"),[r("text-color-disabled")]:c("text-color"),[r("bg-color")]:"#ddd",[r("bg-color-hover")]:c("bg-color"),[r("bg-color-active")]:c("bg-color"),[r("bg-color-disabled")]:e.colorBgContainerDisabled,[r("bg-color-container")]:e.colorBgContainer,[r("shadow")]:"none"},{border:[c("border-width"),c("border-style"),c("border-color")].join(" "),color:c("text-color"),backgroundColor:c("bg-color"),[`&:not(:disabled):not(${o}-disabled)`]:{"&:hover":{border:[c("border-width"),c("border-style"),c("border-color-hover")].join(" "),color:c("text-color-hover"),backgroundColor:c("bg-color-hover")},"&:active":{border:[c("border-width"),c("border-style"),c("border-color-active")].join(" "),color:c("text-color-active"),backgroundColor:c("bg-color-active")}}},{[`&${o}-variant-solid`]:{[r("solid-bg-color")]:c("color-base"),[r("solid-bg-color-hover")]:c("color-hover"),[r("solid-bg-color-active")]:c("color-active"),[r("border-color")]:"transparent",[r("text-color")]:e.colorTextLightSolid,[r("bg-color")]:c("solid-bg-color"),[r("bg-color-hover")]:c("solid-bg-color-hover"),[r("bg-color-active")]:c("solid-bg-color-active"),boxShadow:c("shadow")},[`&${o}-variant-outlined, &${o}-variant-dashed`]:{[r("border-color")]:c("color-base"),[r("border-color-hover")]:c("color-hover"),[r("border-color-active")]:c("color-active"),[r("bg-color")]:c("bg-color-container"),[r("text-color")]:c("color-base"),[r("text-color-hover")]:c("color-hover"),[r("text-color-active")]:c("color-active"),boxShadow:c("shadow")},[`&${o}-variant-dashed`]:{[r("border-style")]:"dashed",[r("bg-color-disabled")]:e.dashedBgDisabled},[`&${o}-variant-filled`]:{[r("border-color")]:"transparent",[r("text-color")]:c("color-base"),[r("bg-color")]:c("color-light"),[r("bg-color-hover")]:c("color-light-hover"),[r("bg-color-active")]:c("color-light-active")},[`&${o}-variant-text, &${o}-variant-link`]:{[r("border-color")]:"transparent",[r("text-color")]:c("color-base"),[r("text-color-hover")]:c("color-hover"),[r("text-color-active")]:c("color-active"),[r("bg-color")]:"transparent",[r("bg-color-hover")]:"transparent",[r("bg-color-active")]:"transparent",[`&:disabled, &${e.componentCls}-disabled`]:{background:"transparent",borderColor:"transparent"}},[`&${o}-variant-text`]:{[r("bg-color-hover")]:c("color-light"),[r("bg-color-active")]:c("color-light-active")}},{[`&${o}-variant-link`]:{[r("color-base")]:e.colorLink,[r("color-hover")]:e.colorLinkHover,[r("color-active")]:e.colorLinkActive},[`&${o}-color-primary`]:{[r("color-base")]:e.colorPrimary,[r("color-hover")]:e.colorPrimaryHover,[r("color-active")]:e.colorPrimaryActive,[r("color-light")]:e.colorPrimaryBg,[r("color-light-hover")]:e.colorPrimaryBgHover,[r("color-light-active")]:e.colorPrimaryBorder,[r("shadow")]:e.primaryShadow,[`&${o}-variant-solid`]:{[r("text-color")]:e.primaryColor,[r("text-color-hover")]:c("text-color"),[r("text-color-active")]:c("text-color")}},[`&${o}-color-dangerous`]:{[r("color-base")]:e.colorError,[r("color-hover")]:e.colorErrorHover,[r("color-active")]:e.colorErrorActive,[r("color-light")]:e.colorErrorBg,[r("color-light-hover")]:e.colorErrorBgFilledHover,[r("color-light-active")]:e.colorErrorBgActive,[r("shadow")]:e.dangerShadow,[`&${o}-variant-solid`]:{[r("text-color")]:e.dangerColor,[r("text-color-hover")]:c("text-color"),[r("text-color-active")]:c("text-color")}},[`&${o}-color-default`]:{[r("solid-bg-color")]:e.colorBgSolid,[r("solid-bg-color-hover")]:e.colorBgSolidHover,[r("solid-bg-color-active")]:e.colorBgSolidActive,[r("color-base")]:e.defaultBorderColor,[r("color-hover")]:e.defaultHoverBorderColor,[r("color-active")]:e.defaultActiveBorderColor,[r("color-light")]:e.colorFillTertiary,[r("color-light-hover")]:e.colorFillSecondary,[r("color-light-active")]:e.colorFill,[r("text-color")]:e.defaultColor,[r("text-color-hover")]:e.defaultHoverColor,[r("text-color-active")]:e.defaultActiveColor,[r("shadow")]:e.defaultShadow,[`&${o}-variant-solid`]:{[r("text-color")]:e.solidTextColor,[r("text-color-hover")]:c("text-color"),[r("text-color-active")]:c("text-color")},[`&${o}-variant-filled, &${o}-variant-text`]:{[r("text-color-hover")]:c("text-color"),[r("text-color-active")]:c("text-color")},[`&${o}-variant-outlined, &${o}-variant-dashed`]:{[r("text-color")]:e.defaultColor,[r("text-color-hover")]:e.defaultHoverColor,[r("text-color-active")]:e.defaultActiveColor,[r("bg-color-container")]:e.defaultBg,[r("bg-color-hover")]:e.defaultHoverBg,[r("bg-color-active")]:e.defaultActiveBg},[`&${o}-variant-text`]:{[r("text-color")]:e.textTextColor,[r("text-color-hover")]:e.textTextHoverColor,[r("text-color-active")]:e.textTextActiveColor,[r("bg-color-hover")]:e.textHoverBg},[`&${o}-background-ghost`]:{[`&${o}-variant-outlined, &${o}-variant-dashed`]:{[r("text-color")]:e.defaultGhostColor,[r("border-color")]:e.defaultGhostBorderColor}}}},Ia.map(m=>{const g=e[`${m}6`],x=e[`${m}1`],w=e[`${m}5`],P=e[`${m}2`],E=e[`${m}3`],I=e[`${m}7`],O=e[`${m}ShadowColor`];return{[`&${o}-color-${m}`]:{[r("color-base")]:g,[r("color-hover")]:w,[r("color-active")]:I,[r("color-light")]:x,[r("color-light-hover")]:P,[r("color-light-active")]:E,[r("shadow")]:O}}}),{[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",borderColor:e.colorBorderDisabled,background:c("bg-color-disabled"),color:e.colorTextDisabled,boxShadow:"none"}},{[`&${o}-background-ghost`]:{[r("bg-color")]:"transparent",[r("shadow")]:"none"}}]}},XM=e=>{const{componentCls:o,iconCls:i,fontWeight:r,opacityLoading:c,motionDurationSlow:m,motionEaseInOut:g,iconGap:x,calc:w}=e;return{[o]:{outline:"none",position:"relative",display:"inline-flex",gap:x,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation","&:disabled > *":{pointerEvents:"none"},[`${o}-icon > svg`]:rm(),"> a":{color:"currentColor"},"&:not(:disabled)":am(e),[`&${o}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${o}-two-chinese-chars > *:not(${i})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&${o}-icon-only`]:{paddingInline:0,[`&${o}-compact-item`]:{flex:"none"}},[`&${o}-loading`]:{opacity:c,cursor:"default"},[`${o}-loading-icon`]:{transition:["width","opacity","margin"].map(P=>`${P} ${m} ${g}`).join(",")},[`&:not(${o}-icon-end)`]:{[`${o}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:w(x).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:w(x).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${o}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:w(x).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:w(x).mul(-1).equal()}}}}}},eT=e=>({minWidth:e.controlHeight,paddingInline:0,borderRadius:"50%"}),Hm=(e,o="")=>{const{componentCls:i,controlHeight:r,fontSize:c,borderRadius:m,buttonPaddingHorizontal:g,iconCls:x,buttonPaddingVertical:w,buttonIconOnlyFontSize:P}=e;return[{[o]:{fontSize:c,height:r,padding:`${$t(w)} ${$t(g)}`,borderRadius:m,[`&${i}-icon-only`]:{width:r,[x]:{fontSize:P}}}},{[`${i}${i}-circle${o}`]:eT(e)},{[`${i}${i}-round${o}`]:{borderRadius:e.controlHeight,[`&:not(${i}-icon-only)`]:{paddingInline:e.buttonPaddingHorizontal}}}]},tT=e=>{const o=Yi(e,{fontSize:e.contentFontSize});return Hm(o,e.componentCls)},nT=e=>{const o=Yi(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return Hm(o,`${e.componentCls}-sm`)},oT=e=>{const o=Yi(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return Hm(o,`${e.componentCls}-lg`)},iT=e=>{const{componentCls:o}=e;return{[o]:{[`&${o}-block`]:{width:"100%"}}}},rT=hs("Button",e=>{const o=j0(e);return[XM(o),tT(o),nT(o),oT(o),iT(o),YM(o),tM(o)]},Z0,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function sT(e,o,i,r){const{focusElCls:c,focus:m,borderElCls:g}=i,x=g?"> *":"",w=["hover",m?"focus":null,"active"].filter(Boolean).map(P=>`&:${P} ${x}`).join(",");return{[`&-item:not(${o}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${r}-status-success)`]:{zIndex:2},"&-item":{[w]:{zIndex:3},...c?{[`&${c}`]:{zIndex:3}}:{},[`&[disabled] ${x}`]:{zIndex:0}}}}function aT(e,o,i){const{borderElCls:r}=i,c=r?`> ${r}`:"";return{[`&-item:not(${o}-first-item):not(${o}-last-item) ${c}`]:{borderRadius:0},[`&-item:not(${o}-last-item)${o}-first-item`]:{[`& ${c}, &${e}-sm ${c}, &${e}-lg ${c}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${o}-first-item)${o}-last-item`]:{[`& ${c}, &${e}-sm ${c}, &${e}-lg ${c}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function V0(e,o={focus:!0}){const{componentCls:i}=e,{componentCls:r}=o,c=r||i,m=`${c}-compact`;return{[m]:{...sT(e,m,o,c),...aT(c,m,o)}}}function lT(e,o,i){return{[`&-item:not(${o}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${i}-status-success)`]:{zIndex:2},"&-item":{"&:hover,&:focus,&:active":{zIndex:3},"&[disabled]":{zIndex:0}}}}function cT(e,o){return{[`&-item:not(${o}-first-item):not(${o}-last-item)`]:{borderRadius:0},[`&-item${o}-first-item:not(${o}-last-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${o}-last-item:not(${o}-first-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function uT(e){const o=`${e.componentCls}-compact-vertical`;return{[o]:{...lT(e,o,e.componentCls),...cT(e.componentCls,o)}}}const dT=e=>{const{antCls:o,componentCls:i,lineWidth:r,calc:c,colorBgContainer:m}=e,g=`${i}-variant-solid:not([disabled])`,x=c(r).mul(-1).equal(),[w,P]=sa(o,"btn"),E=I=>({[`${i}-compact${I?"-vertical":""}-item`]:{[w("compact-connect-border-color")]:P("bg-color-hover"),[`&${g}`]:{transition:"none",[`& + ${g}:before`]:[{position:"absolute",backgroundColor:P("compact-connect-border-color"),content:'""'},I?{top:x,insetInline:x,height:r}:{insetBlock:x,insetInlineStart:x,width:r}],"&:hover:before":{display:"none"}}}});return[E(),E(!0),{[`${g}${i}-color-default`]:{[w("compact-connect-border-color")]:`color-mix(in srgb, ${P("bg-color-hover")} 75%, ${m})`}}]},hT=hk(["Button","compact"],e=>{const o=j0(e);return[V0(o),uT(o),dT(o)]},Z0);function fT(e){if(typeof e=="object"&&e){let o=e==null?void 0:e.delay;return o=!Number.isNaN(o)&&typeof o=="number"?o:0,{loading:o<=0,delay:o}}return{loading:!!e,delay:0}}const pT={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["link","link"],text:["default","text"]},ah=d.forwardRef((e,o)=>{const{_skipSemantic:i,loading:r=!1,prefixCls:c,color:m,variant:g,type:x,danger:w=!1,shape:P,size:E,disabled:I,className:O,rootClassName:$,children:R,icon:A,iconPosition:N,iconPlacement:F,ghost:D=!1,block:W=!1,htmlType:U="button",classNames:j,styles:ee,style:te,autoInsertSpace:Y,autoFocus:ae,...he}=e,oe=oo(R),be=x||"default",{button:ye}=d.useContext(Gn),Me=P||(ye==null?void 0:ye.shape)||"default",[le,we]=d.useMemo(()=>{if(m&&g)return[m,g];if(x||w){const Pn=pT[be]||[];return w?["danger",Pn[1]]:Pn}return ye!=null&&ye.color&&ye!=null&&ye.variant?[ye.color,ye.variant]:["default","outlined"]},[m,g,x,w,ye==null?void 0:ye.color,ye==null?void 0:ye.variant,be]),[Fe,_e]=d.useMemo(()=>D&&we==="solid"?[le,"outlined"]:[le,we],[le,we,D]),st=Fe==="danger",ke=st?"dangerous":Fe,{getPrefixCls:Ne,direction:rt,autoInsertSpace:We,className:Ge,style:ze,classNames:Se,styles:je}=jt("button"),tt=Y??We??!0,ut=Ne("btn",c),[At,St]=rT(ut),Ft=d.useContext(Sm),It=I??Ft,Ve=d.useContext(w0),qt=d.useMemo(()=>fT(r),[r]),[ht,Kt]=d.useState(qt.loading),[bn,ln]=d.useState(!1),Tn=d.useRef(null),Xt=Zn(o,Tn),xn=oe.length===1&&!A&&!ih(_e),Yn=d.useRef(!0);d.useEffect(()=>(Yn.current=!1,()=>{Yn.current=!0}),[]),He(()=>{let Pn=null;qt.delay>0?Pn=setTimeout(()=>{Pn=null,Kt(!0)},qt.delay):Kt(qt.loading);function Ji(){Pn&&(clearTimeout(Pn),Pn=null)}return Ji},[qt.delay,qt.loading]),d.useEffect(()=>{if(!Tn.current||!tt)return;const Pn=Tn.current.textContent||"";xn&&Om(Pn)?bn||ln(!0):bn&&ln(!1)}),d.useEffect(()=>{ae&&Tn.current&&Tn.current.focus()},[]);const Qt=d.useCallback(Pn=>{var Ji;if(ht||It){Pn.preventDefault();return}(Ji=e.onClick)==null||Ji.call(e,Pn)},[e.onClick,ht,It]);if(process.env.NODE_ENV!=="production"){const Pn=mo("Button");process.env.NODE_ENV!=="production"&&Pn(!(typeof A=="string"&&A.length>2),"breaking",`\`icon\` is using ReactNode instead of string naming in v4. Please check \`${A}\` at https://ant.design/components/icon`),process.env.NODE_ENV!=="production"&&Pn(!(D&&ih(_e)),"usage","`link` or `text` button can't be a `ghost` button."),Pn.deprecated(!N,"iconPosition","iconPlacement")}const{compactSize:sn,compactItemClassnames:Lo}=Am(ut,rt),wo={large:"lg",small:"sm",middle:void 0},lo=x0(Pn=>E??sn??Ve??Pn),Co=lo?wo[lo]??"":"",en=ht?"loading":A,at=F??N??"start",ft=Rn(he,["navigate"]),Nn={...e,type:be,color:Fe,variant:_e,danger:st,shape:Me,size:lo,disabled:It,loading:ht,iconPlacement:at},[Ln,Et]=Ta([i?void 0:Se,j],[i?void 0:je,ee],{props:Nn}),cn=Re(ut,At,St,{[`${ut}-${Me}`]:Me!=="default"&&Me!=="square"&&Me,[`${ut}-${be}`]:be,[`${ut}-dangerous`]:w,[`${ut}-color-${ke}`]:ke,[`${ut}-variant-${_e}`]:_e,[`${ut}-${Co}`]:Co,[`${ut}-icon-only`]:!R&&R!==0&&!!en,[`${ut}-background-ghost`]:D&&!ih(_e),[`${ut}-loading`]:ht,[`${ut}-two-chinese-chars`]:bn&&tt&&!ht,[`${ut}-block`]:W,[`${ut}-rtl`]:rt==="rtl",[`${ut}-icon-end`]:at==="end"},Lo,O,$,Ge,Ln.root),Vt={...Et.root,...ze,...te},Cn={className:Ln.icon,style:Et.icon},Jo=Pn=>d.createElement(E0,{prefixCls:ut,...Cn},Pn),li=d.createElement(eM,{existIcon:!!A,prefixCls:ut,loading:ht,mount:Yn.current,...Cn});let ko;A&&!ht?ko=Jo(A):r&&typeof r=="object"&&r.icon?ko=Jo(r.icon):ko=li;const $o=Ml(R)?XI(R,xn&&tt,Et.content,Ln.content):null;if(ft.href!==void 0)return d.createElement("a",{...ft,className:Re(cn,{[`${ut}-disabled`]:It}),href:It?void 0:ft.href,style:Vt,onClick:Qt,ref:Xt,tabIndex:It?-1:0,"aria-disabled":It},ko,$o);let bi=d.createElement("button",{...he,type:U,className:cn,style:Vt,onClick:Qt,disabled:It,ref:Xt},ko,$o,Lo&&d.createElement(hT,{prefixCls:ut}));return ih(_e)||(bi=d.createElement(b0,{component:"Button",disabled:ht},bi)),bi});ah.Group=KI,ah.__ANT_BUTTON=!0,process.env.NODE_ENV!=="production"&&(ah.displayName="Button");const W0=ah;function q0(e,o=!1){if(_m(e)){const i=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(i)||e.isContentEditable||i==="a"&&!!e.getAttribute("href"),c=e.getAttribute("tabindex"),m=Number(c);let g=null;return c&&!Number.isNaN(m)?g=m:r&&g===null&&(g=0),r&&e.disabled&&(g=null),g!==null&&(g>=0||o&&g<0)}return!1}function mT(e,o=!1){const i=[...e.querySelectorAll("*")].filter(r=>q0(r,o));return q0(e,o)&&i.unshift(e),i}const Oa="RC_FORM_INTERNAL_HOOKS",_o=()=>{Wt(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},Rl=v.createContext({getFieldValue:_o,getFieldsValue:_o,getFieldError:_o,getFieldWarning:_o,getFieldsError:_o,isFieldsTouched:_o,isFieldTouched:_o,isFieldValidating:_o,isFieldsValidating:_o,resetFields:_o,setFields:_o,setFieldValue:_o,setFieldsValue:_o,validateFields:_o,submit:_o,getInternalHooks:()=>(_o(),{dispatch:_o,initEntityValue:_o,registerField:_o,useSubscribe:_o,setInitialValues:_o,destroyForm:_o,setCallbacks:_o,registerWatch:_o,getFields:_o,setValidateMessages:_o,setPreserve:_o,getInitialValue:_o})}),lh=v.createContext(null);function jm(e){return e==null?[]:Array.isArray(e)?e:[e]}function gT(e){return e&&!!e._init}function Zm(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",tel:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var Vm=Zm();function vT(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function yT(e,o,i){if(fe())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,o);var c=new(e.bind.apply(e,r));return i&&z(c,i.prototype),c}function Wm(e){var o=typeof Map=="function"?new Map:void 0;return Wm=function(i){if(i===null||!vT(i))return i;if(typeof i!="function")throw new TypeError("Super expression must either be null or a function");if(o!==void 0){if(o.has(i))return o.get(i);o.set(i,r)}function r(){return yT(i,arguments,ie(this).constructor)}return r.prototype=Object.create(i.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),z(r,i)},Wm(e)}var _T=/%[sdj%]/g,G0=function(){};typeof process<"u"&&process.env&&process.env.NODE_ENV!=="production"&&typeof window<"u"&&typeof document<"u"&&(G0=function(e,o){typeof console<"u"&&console.warn&&typeof ASYNC_VALIDATOR_NO_WARNING>"u"&&o.every(function(i){return typeof i=="string"})&&console.warn(e,o)});function qm(e){if(!e||!e.length)return null;var o={};return e.forEach(function(i){var r=i.field;o[r]=o[r]||[],o[r].push(i)}),o}function xr(e){for(var o=arguments.length,i=new Array(o>1?o-1:0),r=1;r<o;r++)i[r-1]=arguments[r];var c=0,m=i.length;if(typeof e=="function")return e.apply(null,i);if(typeof e=="string"){var g=e.replace(_T,function(x){if(x==="%%")return"%";if(c>=m)return x;switch(x){case"%s":return String(i[c++]);case"%d":return Number(i[c++]);case"%j":try{return JSON.stringify(i[c++])}catch{return"[Circular]"}break;default:return x}});return g}return e}function bT(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"||e==="tel"}function _i(e,o){return!!(e==null||o==="array"&&Array.isArray(e)&&!e.length||bT(o)&&typeof e=="string"&&!e)}function xT(e,o,i){var r=[],c=0,m=e.length;function g(x){r.push.apply(r,Ho(x||[])),c++,c===m&&i(r)}e.forEach(function(x){o(x,g)})}function U0(e,o,i){var r=0,c=e.length;function m(g){if(g&&g.length){i(g);return}var x=r;r=r+1,x<c?o(e[x],m):i([])}m([])}function wT(e){var o=[];return Object.keys(e).forEach(function(i){o.push.apply(o,Ho(e[i]||[]))}),o}var Q0=function(e){Q(i,e);var o=ct(i);function i(r,c){var m;return a(this,i),m=o.call(this,"Async Validation Error"),jo(C(m),"errors",void 0),jo(C(m),"fields",void 0),m.errors=r,m.fields=c,m}return _(i)}(Wm(Error));function CT(e,o,i,r,c){if(o.first){var m=new Promise(function(O,$){var R=function(N){return r(N),N.length?$(new Q0(N,qm(N))):O(c)},A=wT(e);U0(A,i,R)});return m.catch(function(O){return O}),m}var g=o.firstFields===!0?Object.keys(e):o.firstFields||[],x=Object.keys(e),w=x.length,P=0,E=[],I=new Promise(function(O,$){var R=function(A){if(E.push.apply(E,A),P++,P===w)return r(E),E.length?$(new Q0(E,qm(E))):O(c)};x.length||(r(E),O(c)),x.forEach(function(A){var N=e[A];g.indexOf(A)!==-1?U0(N,i,R):xT(N,i,R)})});return I.catch(function(O){return O}),I}function ST(e){return!!(e&&e.message!==void 0)}function ET(e,o){for(var i=e,r=0;r<o.length;r++){if(i==null)return i;i=i[o[r]]}return i}function J0(e,o){return function(i){var r;return e.fullFields?r=ET(o,e.fullFields):r=o[i.field||e.fullField],ST(i)?(i.field=i.field||e.fullField,i.fieldValue=r,i):{message:typeof i=="function"?i():i,fieldValue:r,field:i.field||e.fullField}}}function K0(e,o){if(o){for(var i in o)if(o.hasOwnProperty(i)){var r=o[i];No(r)==="object"&&No(e[i])==="object"?e[i]=t(t({},e[i]),r):e[i]=r}}return e}var zl="enum",PT=function(e,o,i,r,c){e[zl]=Array.isArray(e[zl])?e[zl]:[],e[zl].indexOf(o)===-1&&r.push(xr(c.messages[zl],e.fullField,e[zl].join(", ")))},kT=function(e,o,i,r,c){if(e.pattern){if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(o)||r.push(xr(c.messages.pattern.mismatch,e.fullField,o,e.pattern));else if(typeof e.pattern=="string"){var m=new RegExp(e.pattern);m.test(o)||r.push(xr(c.messages.pattern.mismatch,e.fullField,o,e.pattern))}}},IT=function(e,o,i,r,c){var m=typeof e.len=="number",g=typeof e.min=="number",x=typeof e.max=="number",w=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,P=o,E=null,I=typeof o=="number",O=typeof o=="string",$=Array.isArray(o);if(I?E="number":O?E="string":$&&(E="array"),!E)return!1;$&&(P=o.length),O&&(P=o.replace(w,"_").length),m?P!==e.len&&r.push(xr(c.messages[E].len,e.fullField,e.len)):g&&!x&&P<e.min?r.push(xr(c.messages[E].min,e.fullField,e.min)):x&&!g&&P>e.max?r.push(xr(c.messages[E].max,e.fullField,e.max)):g&&x&&(P<e.min||P>e.max)&&r.push(xr(c.messages[E].range,e.fullField,e.min,e.max))},Y0=function(e,o,i,r,c,m){e.required&&(!i.hasOwnProperty(e.field)||_i(o,m||e.type))&&r.push(xr(c.messages.required,e.fullField))},ch;const MT=function(){if(ch)return ch;var e="[a-fA-F\\d:]",o=function(j){return j&&j.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},i="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",c=["(?:".concat(r,":){7}(?:").concat(r,"|:)"),"(?:".concat(r,":){6}(?:").concat(i,"|:").concat(r,"|:)"),"(?:".concat(r,":){5}(?::").concat(i,"|(?::").concat(r,"){1,2}|:)"),"(?:".concat(r,":){4}(?:(?::").concat(r,"){0,1}:").concat(i,"|(?::").concat(r,"){1,3}|:)"),"(?:".concat(r,":){3}(?:(?::").concat(r,"){0,2}:").concat(i,"|(?::").concat(r,"){1,4}|:)"),"(?:".concat(r,":){2}(?:(?::").concat(r,"){0,3}:").concat(i,"|(?::").concat(r,"){1,5}|:)"),"(?:".concat(r,":){1}(?:(?::").concat(r,"){0,4}:").concat(i,"|(?::").concat(r,"){1,6}|:)"),"(?::(?:(?::".concat(r,"){0,5}:").concat(i,"|(?::").concat(r,"){1,7}|:))")],m="(?:%[0-9a-zA-Z]{1,})?",g="(?:".concat(c.join("|"),")").concat(m),x=new RegExp("(?:^".concat(i,"$)|(?:^").concat(g,"$)")),w=new RegExp("^".concat(i,"$")),P=new RegExp("^".concat(g,"$")),E=function(j){return j&&j.exact?x:new RegExp("(?:".concat(o(j)).concat(i).concat(o(j),")|(?:").concat(o(j)).concat(g).concat(o(j),")"),"g")};E.v4=function(j){return j&&j.exact?w:new RegExp("".concat(o(j)).concat(i).concat(o(j)),"g")},E.v6=function(j){return j&&j.exact?P:new RegExp("".concat(o(j)).concat(g).concat(o(j)),"g")};var I="(?:(?:[a-z]+:)?//)",O="(?:\\S+(?::\\S*)?@)?",$=E.v4().source,R=E.v6().source,A="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",N="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",F="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",D="(?::\\d{2,5})?",W='(?:[/?#][^\\s"]*)?',U="(?:".concat(I,"|www\\.)").concat(O,"(?:localhost|").concat($,"|").concat(R,"|").concat(A).concat(N).concat(F,")").concat(D).concat(W);return ch=new RegExp("(?:^".concat(U,"$)"),"i"),ch};var Gm={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,tel:/^(\+[0-9]{1,3}[-\s\u2011]?)?(\([0-9]{1,4}\)[-\s\u2011]?)?([0-9]+[-\s\u2011]?)*[0-9]+$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},iu={integer:function(e){return iu.number(e)&&parseInt(e,10)===e},float:function(e){return iu.number(e)&&!iu.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch{return!1}},date:function(e){return typeof e.getTime=="function"&&typeof e.getMonth=="function"&&typeof e.getYear=="function"&&!isNaN(e.getTime())},number:function(e){return isNaN(e)?!1:typeof e=="number"},object:function(e){return No(e)==="object"&&!iu.array(e)},method:function(e){return typeof e=="function"},email:function(e){return typeof e=="string"&&e.length<=320&&!!e.match(Gm.email)},tel:function(e){return typeof e=="string"&&e.length<=32&&!!e.match(Gm.tel)},url:function(e){return typeof e=="string"&&e.length<=2048&&!!e.match(MT())},hex:function(e){return typeof e=="string"&&!!e.match(Gm.hex)}},TT=function(e,o,i,r,c){if(e.required&&o===void 0){Y0(e,o,i,r,c);return}var m=["integer","float","array","regexp","object","method","email","tel","number","date","url","hex"],g=e.type;m.indexOf(g)>-1?iu[g](o)||r.push(xr(c.messages.types[g],e.fullField,e.type)):g&&No(o)!==e.type&&r.push(xr(c.messages.types[g],e.fullField,e.type))},LT=function(e,o,i,r,c){(/^\s+$/.test(o)||o==="")&&r.push(xr(c.messages.whitespace,e.fullField))};const zn={required:Y0,whitespace:LT,type:TT,range:IT,enum:PT,pattern:kT};var AT=function(e,o,i,r,c){var m=[],g=e.required||!e.required&&r.hasOwnProperty(e.field);if(g){if(_i(o)&&!e.required)return i();zn.required(e,o,r,m,c)}i(m)},OT=function(e,o,i,r,c){var m=[],g=e.required||!e.required&&r.hasOwnProperty(e.field);if(g){if(o==null&&!e.required)return i();zn.required(e,o,r,m,c,"array"),o!=null&&(zn.type(e,o,r,m,c),zn.range(e,o,r,m,c))}i(m)},RT=function(e,o,i,r,c){var m=[],g=e.required||!e.required&&r.hasOwnProperty(e.field);if(g){if(_i(o)&&!e.required)return i();zn.required(e,o,r,m,c),o!==void 0&&zn.type(e,o,r,m,c)}i(m)},zT=function(e,o,i,r,c){var m=[],g=e.required||!e.required&&r.hasOwnProperty(e.field);if(g){if(_i(o,"date")&&!e.required)return i();if(zn.required(e,o,r,m,c),!_i(o,"date")){var x;o instanceof Date?x=o:x=new Date(o),zn.type(e,x,r,m,c),x&&zn.range(e,x.getTime(),r,m,c)}}i(m)},BT="enum",NT=function(e,o,i,r,c){var m=[],g=e.required||!e.required&&r.hasOwnProperty(e.field);if(g){if(_i(o)&&!e.required)return i();zn.required(e,o,r,m,c),o!==void 0&&zn[BT](e,o,r,m,c)}i(m)},$T=function(e,o,i,r,c){var m=[],g=e.required||!e.required&&r.hasOwnProperty(e.field);if(g){if(_i(o)&&!e.required)return i();zn.required(e,o,r,m,c),o!==void 0&&(zn.type(e,o,r,m,c),zn.range(e,o,r,m,c))}i(m)},DT=function(e,o,i,r,c){var m=[],g=e.required||!e.required&&r.hasOwnProperty(e.field);if(g){if(_i(o)&&!e.required)return i();zn.required(e,o,r,m,c),o!==void 0&&(zn.type(e,o,r,m,c),zn.range(e,o,r,m,c))}i(m)},FT=function(e,o,i,r,c){var m=[],g=e.required||!e.required&&r.hasOwnProperty(e.field);if(g){if(_i(o)&&!e.required)return i();zn.required(e,o,r,m,c),o!==void 0&&zn.type(e,o,r,m,c)}i(m)},HT=function(e,o,i,r,c){var m=[],g=e.required||!e.required&&r.hasOwnProperty(e.field);if(g){if(o===""&&(o=void 0),_i(o)&&!e.required)return i();zn.required(e,o,r,m,c),o!==void 0&&(zn.type(e,o,r,m,c),zn.range(e,o,r,m,c))}i(m)},jT=function(e,o,i,r,c){var m=[],g=e.required||!e.required&&r.hasOwnProperty(e.field);if(g){if(_i(o)&&!e.required)return i();zn.required(e,o,r,m,c),o!==void 0&&zn.type(e,o,r,m,c)}i(m)},ZT=function(e,o,i,r,c){var m=[],g=e.required||!e.required&&r.hasOwnProperty(e.field);if(g){if(_i(o,"string")&&!e.required)return i();zn.required(e,o,r,m,c),_i(o,"string")||zn.pattern(e,o,r,m,c)}i(m)},VT=function(e,o,i,r,c){var m=[],g=e.required||!e.required&&r.hasOwnProperty(e.field);if(g){if(_i(o)&&!e.required)return i();zn.required(e,o,r,m,c),_i(o)||zn.type(e,o,r,m,c)}i(m)},WT=function(e,o,i,r,c){var m=[],g=Array.isArray(o)?"array":No(o);zn.required(e,o,r,m,c,g),i(m)},qT=function(e,o,i,r,c){var m=[],g=e.required||!e.required&&r.hasOwnProperty(e.field);if(g){if(_i(o,"string")&&!e.required)return i();zn.required(e,o,r,m,c,"string"),_i(o,"string")||(zn.type(e,o,r,m,c),zn.range(e,o,r,m,c),zn.pattern(e,o,r,m,c),e.whitespace===!0&&zn.whitespace(e,o,r,m,c))}i(m)},uh=function(e,o,i,r,c){var m=e.type,g=[],x=e.required||!e.required&&r.hasOwnProperty(e.field);if(x){if(_i(o,m)&&!e.required)return i();zn.required(e,o,r,g,c,m),_i(o,m)||zn.type(e,o,r,g,c)}i(g)};const ru={string:qT,method:FT,number:HT,boolean:RT,regexp:VT,integer:DT,float:$T,array:OT,object:jT,enum:NT,pattern:ZT,date:zT,url:uh,hex:uh,email:uh,tel:uh,required:WT,any:AT};var su=function(){function e(o){a(this,e),jo(this,"rules",null),jo(this,"_messages",Vm),this.define(o)}return _(e,[{key:"define",value:function(o){var i=this;if(!o)throw new Error("Cannot configure a schema with no rules");if(No(o)!=="object"||Array.isArray(o))throw new Error("Rules must be an object");this.rules={},Object.keys(o).forEach(function(r){var c=o[r];i.rules[r]=Array.isArray(c)?c:[c]})}},{key:"messages",value:function(o){return o&&(this._messages=K0(Zm(),o)),this._messages}},{key:"validate",value:function(o){var i=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},m=o,g=r,x=c;if(typeof g=="function"&&(x=g,g={}),!this.rules||Object.keys(this.rules).length===0)return x&&x(null,m),Promise.resolve(m);function w($){var R=[],A={};function N(D){if(Array.isArray(D)){var W;R=(W=R).concat.apply(W,Ho(D))}else R.push(D)}for(var F=0;F<$.length;F++)N($[F]);R.length?(A=qm(R),x(R,A)):x(null,m)}if(g.messages){var P=this.messages();P===Vm&&(P=Zm()),K0(P,g.messages),g.messages=P}else g.messages=this.messages();var E={},I=g.keys||Object.keys(this.rules);I.forEach(function($){var R=i.rules[$],A=m[$];R.forEach(function(N){var F=N;typeof F.transform=="function"&&(m===o&&(m=t({},m)),A=m[$]=F.transform(A),A!=null&&(F.type=F.type||(Array.isArray(A)?"array":No(A)))),typeof F=="function"?F={validator:F}:F=t({},F),F.validator=i.getValidationMethod(F),F.validator&&(F.field=$,F.fullField=F.fullField||$,F.type=i.getType(F),E[$]=E[$]||[],E[$].push({rule:F,value:A,source:m,field:$}))})});var O={};return CT(E,g,function($,R){var A=$.rule,N=(A.type==="object"||A.type==="array")&&(No(A.fields)==="object"||No(A.defaultField)==="object");N=N&&(A.required||!A.required&&$.value),A.field=$.field;function F(ee,te){return t(t({},te),{},{fullField:"".concat(A.fullField,".").concat(ee),fullFields:A.fullFields?[].concat(Ho(A.fullFields),[ee]):[ee]})}function D(){var ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],te=Array.isArray(ee)?ee:[ee];!g.suppressWarning&&te.length&&e.warning("async-validator:",te),te.length&&A.message!==void 0&&A.message!==null&&(te=[].concat(A.message));var Y=te.map(J0(A,m));if(g.first&&Y.length)return O[A.field]=1,R(Y);if(!N)R(Y);else{if(A.required&&!$.value)return A.message!==void 0?Y=[].concat(A.message).map(J0(A,m)):g.error&&(Y=[g.error(A,xr(g.messages.required,A.field))]),R(Y);var ae={};A.defaultField&&Object.keys($.value).map(function(be){ae[be]=A.defaultField}),ae=t(t({},ae),$.rule.fields);var he={};Object.keys(ae).forEach(function(be){var ye=ae[be],Me=Array.isArray(ye)?ye:[ye];he[be]=Me.map(F.bind(null,be))});var oe=new e(he);oe.messages(g.messages),$.rule.options&&($.rule.options.messages=g.messages,$.rule.options.error=g.error),oe.validate($.value,$.rule.options||g,function(be){var ye=[];Y&&Y.length&&ye.push.apply(ye,Ho(Y)),be&&be.length&&ye.push.apply(ye,Ho(be)),R(ye.length?ye:null)})}}var W;if(A.asyncValidator)W=A.asyncValidator(A,$.value,D,$.source,g);else if(A.validator){try{W=A.validator(A,$.value,D,$.source,g)}catch(ee){var U,j;(U=(j=console).error)===null||U===void 0||U.call(j,ee),g.suppressValidatorError||setTimeout(function(){throw ee},0),D(ee.message)}W===!0?D():W===!1?D(typeof A.message=="function"?A.message(A.fullField||A.field):A.message||"".concat(A.fullField||A.field," fails")):W instanceof Array?D(W):W instanceof Error&&D(W.message)}W&&W.then&&W.then(function(){return D()},function(ee){return D(ee)})},function($){w($)},m)}},{key:"getType",value:function(o){if(o.type===void 0&&o.pattern instanceof RegExp&&(o.type="pattern"),typeof o.validator!="function"&&o.type&&!ru.hasOwnProperty(o.type))throw new Error(xr("Unknown rule type %s",o.type));return o.type||"string"}},{key:"getValidationMethod",value:function(o){if(typeof o.validator=="function")return o.validator;var i=Object.keys(o),r=i.indexOf("message");return r!==-1&&i.splice(r,1),i.length===1&&i[0]==="required"?ru.required:ru[this.getType(o)]||void 0}}]),e}();jo(su,"register",function(e,o){if(typeof o!="function")throw new Error("Cannot register a validator by type, validator is not a function");ru[e]=o}),jo(su,"warning",G0),jo(su,"messages",Vm),jo(su,"validators",ru);const lr="'${name}' is not a valid ${type}",X0={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:lr,method:lr,array:lr,object:lr,number:lr,date:lr,boolean:lr,integer:lr,float:lr,regexp:lr,email:lr,tel:lr,url:lr,hex:lr},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},ex=su;function GT(e,o){return e.replace(/\\?\$\{\w+\}/g,i=>{if(i.startsWith("\\"))return i.slice(1);const r=i.slice(2,-1);return o[r]})}const tx="CODE_LOGIC_ERROR";async function Um(e,o,i,r,c){const m={...i};if(delete m.ruleIndex,ex.warning=()=>{},m.validator){const I=m.validator;m.validator=(...O)=>{try{return I(...O)}catch($){return console.error($),Promise.reject(tx)}}}let g=null;m&&m.type==="array"&&m.defaultField&&(g=m.defaultField,delete m.defaultField);const x=new ex({[e]:[m]}),w=xo(X0,r.validateMessages);x.messages(w);let P=[];try{await Promise.resolve(x.validate({[e]:o},{...r}))}catch(I){I.errors&&(P=I.errors.map(({message:O},$)=>{const R=O===tx?w.default:O;return v.isValidElement(R)?v.cloneElement(R,{key:`error_${$}`}):R}))}if(!P.length&&g&&Array.isArray(o)&&o.length>0)return(await Promise.all(o.map((I,O)=>Um(`${e}.${O}`,I,g,r,c)))).reduce((I,O)=>[...I,...O],[]);const E={...i,name:e,enum:(i.enum||[]).join(", "),...c};return P.map(I=>typeof I=="string"?GT(I,E):I)}function UT(e,o,i,r,c,m){const g=e.join("."),x=i.map((P,E)=>{const I=P.validator,O={...P,ruleIndex:E};return I&&(O.validator=($,R,A)=>{let N=!1;const F=I($,R,(...D)=>{Promise.resolve().then(()=>{Wt(!N,"Your validator function has already return a promise. `callback` will be ignored."),N||A(...D)})});N=F&&typeof F.then=="function"&&typeof F.catch=="function",Wt(N,"`callback` is deprecated. Please return a promise instead."),N&&F.then(()=>{A()}).catch(D=>{A(D||" ")})}),O}).sort(({warningOnly:P,ruleIndex:E},{warningOnly:I,ruleIndex:O})=>!!P==!!I?E-O:P?1:-1);let w;if(c===!0)w=new Promise(async(P,E)=>{for(let I=0;I<x.length;I+=1){const O=x[I],$=await Um(g,o,O,r,m);if($.length){E([{errors:$,rule:O}]);return}}P([])});else{const P=x.map(E=>Um(g,o,E,r,m).then(I=>({errors:I,rule:E})));w=(c?JT(P):QT(P)).then(E=>Promise.reject(E))}return w.catch(P=>P),w}async function QT(e){return Promise.all(e).then(o=>[].concat(...o))}async function JT(e){let o=0;return new Promise(i=>{e.forEach(r=>{r.then(c=>{c.errors.length&&i([c]),o+=1,o===e.length&&i([])})})})}function qo(e){return jm(e)}function nx(e,o){let i={};return o.forEach(r=>{const c=Kn(e,r);i=fo(i,r,c)}),i}function Bl(e,o,i=!1){return e&&e.some(r=>dh(o,r,i))}function dh(e,o,i=!1){return!e||!o||!i&&e.length!==o.length?!1:o.every((r,c)=>e[c]===r)}function KT(e,o){if(e===o)return!0;if(!e&&o||e&&!o||!e||!o||typeof e!="object"||typeof o!="object")return!1;const i=Object.keys(e),r=Object.keys(o);return[...new Set([...i,...r])].every(c=>{const m=e[c],g=o[c];return typeof m=="function"&&typeof g=="function"?!0:m===g})}function YT(e,...o){const i=o[0];return i&&i.target&&typeof i.target=="object"&&e in i.target?i.target[e]:i}function ox(e,o,i){const{length:r}=e;if(o<0||o>=r||i<0||i>=r)return e;const c=e[o],m=o-i;return m>0?[...e.slice(0,i),c,...e.slice(i,o),...e.slice(o+1,r)]:m<0?[...e.slice(0,o),...e.slice(o+1,i+1),c,...e.slice(i+1,r)]:e}function Qm(){return Qm=Object.assign?Object.assign.bind():function(e){for(var o=1;o<arguments.length;o++){var i=arguments[o];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r])}return e},Qm.apply(this,arguments)}const Ra=[],au=[];function Jm(e,o,i,r,c,m){return typeof e=="function"?e(o,i,"source"in m?{source:m.source}:{}):r!==c}class ix extends v.Component{constructor(o){if(super(o),T(this,"state",{resetCount:0}),T(this,"cancelRegisterFunc",null),T(this,"mounted",!1),T(this,"touched",!1),T(this,"dirty",!1),T(this,"validatePromise"),T(this,"prevValidating"),T(this,"errors",Ra),T(this,"warnings",au),T(this,"cancelRegister",()=>{const{preserve:i,isListField:r,name:c}=this.props;this.cancelRegisterFunc&&this.cancelRegisterFunc(r,i,qo(c)),this.cancelRegisterFunc=null}),T(this,"getNamePath",()=>{const{name:i,fieldContext:r}=this.props,{prefixName:c=[]}=r;return i!==void 0?[...c,...i]:[]}),T(this,"getRules",()=>{const{rules:i=[],fieldContext:r}=this.props;return i.map(c=>typeof c=="function"?c(r):c)}),T(this,"refresh",()=>{this.mounted&&this.setState(({resetCount:i})=>({resetCount:i+1}))}),T(this,"metaCache",null),T(this,"triggerMetaEvent",i=>{const{onMetaChange:r}=this.props;if(r){const c={...this.getMeta(),destroy:i};ss(this.metaCache,c)||r(c),this.metaCache=c}else this.metaCache=null}),T(this,"onStoreChange",(i,r,c)=>{const{shouldUpdate:m,dependencies:g=[],onReset:x}=this.props,{store:w}=c,P=this.getNamePath(),E=this.getValue(i),I=this.getValue(w),O=r&&Bl(r,P);switch(c.type==="valueUpdate"&&c.source==="external"&&!ss(E,I)&&(this.touched=!0,this.dirty=!0,this.validatePromise=null,this.errors=Ra,this.warnings=au,this.triggerMetaEvent()),c.type){case"reset":if(!r||O){this.touched=!1,this.dirty=!1,this.validatePromise=void 0,this.errors=Ra,this.warnings=au,this.triggerMetaEvent(),x==null||x(),this.refresh();return}break;case"remove":{if(m&&Jm(m,i,w,E,I,c)){this.reRender();return}break}case"setField":{const{data:$}=c;if(O){"touched"in $&&(this.touched=$.touched),"validating"in $&&!("originRCField"in $)&&(this.validatePromise=$.validating?Promise.resolve([]):null),"errors"in $&&(this.errors=$.errors||Ra),"warnings"in $&&(this.warnings=$.warnings||au),this.dirty=!0,this.triggerMetaEvent(),this.reRender();return}else if("value"in $&&Bl(r,P,!0)){this.reRender();return}if(m&&!P.length&&Jm(m,i,w,E,I,c)){this.reRender();return}break}case"dependenciesUpdate":{if(g.map(qo).some($=>Bl(c.relatedFields,$))){this.reRender();return}break}default:if(O||(!g.length||P.length||m)&&Jm(m,i,w,E,I,c)){this.reRender();return}break}m===!0&&this.reRender()}),T(this,"validateRules",i=>{const r=this.getNamePath(),c=this.getValue(),{triggerName:m,validateOnly:g=!1}=i||{},x=Promise.resolve().then(async()=>{if(!this.mounted)return[];const{validateFirst:w=!1,messageVariables:P,validateDebounce:E}=this.props;let I=this.getRules();if(m&&(I=I.filter($=>$).filter($=>{const{validateTrigger:R}=$;return R?jm(R).includes(m):!0})),E&&m&&(await new Promise($=>{setTimeout($,E)}),this.validatePromise!==x))return[];const O=UT(r,c,I,i,w,P);return O.catch($=>$).then(($=Ra)=>{var R;if(this.validatePromise===x){this.validatePromise=null;const A=[],N=[];(R=$.forEach)==null||R.call($,({rule:{warningOnly:F},errors:D=Ra})=>{F?N.push(...D):A.push(...D)}),this.errors=A,this.warnings=N,this.triggerMetaEvent(),this.reRender()}}),O});return g||(this.validatePromise=x,this.dirty=!0,this.errors=Ra,this.warnings=au,this.triggerMetaEvent(),this.reRender()),x}),T(this,"isFieldValidating",()=>!!this.validatePromise),T(this,"isFieldTouched",()=>this.touched),T(this,"isFieldDirty",()=>{if(this.dirty||this.props.initialValue!==void 0)return!0;const{fieldContext:i}=this.props,{getInitialValue:r}=i.getInternalHooks(Oa);return r(this.getNamePath())!==void 0}),T(this,"getErrors",()=>this.errors),T(this,"getWarnings",()=>this.warnings),T(this,"isListField",()=>this.props.isListField),T(this,"isList",()=>this.props.isList),T(this,"isPreserve",()=>this.props.preserve),T(this,"getMeta",()=>(this.prevValidating=this.isFieldValidating(),{touched:this.isFieldTouched(),validating:this.prevValidating,errors:this.errors,warnings:this.warnings,name:this.getNamePath(),validated:this.validatePromise===null})),T(this,"getOnlyChild",i=>{if(typeof i=="function"){const c=this.getMeta();return{...this.getOnlyChild(i(this.getControlled(),c,this.props.fieldContext)),isFunction:!0}}const r=oo(i);return r.length!==1||!v.isValidElement(r[0])?{child:r,isFunction:!1}:{child:r[0],isFunction:!1}}),T(this,"getValue",i=>{const{getFieldsValue:r}=this.props.fieldContext,c=this.getNamePath();return Kn(i||r(!0),c)}),T(this,"getControlled",(i={})=>{const{name:r,trigger:c="onChange",validateTrigger:m,getValueFromEvent:g,normalize:x,valuePropName:w="value",getValueProps:P,fieldContext:E}=this.props,I=m!==void 0?m:E.validateTrigger,O=this.getNamePath(),{getInternalHooks:$,getFieldsValue:R}=E,{dispatch:A}=$(Oa),N=this.getValue(),F=P||(j=>({[w]:j})),D=i[c],W=r!==void 0?F(N):{};process.env.NODE_ENV!=="production"&&W&&Object.keys(W).forEach(j=>{Wt(typeof W[j]!="function",`It's not recommended to generate dynamic function prop by \`getValueProps\`. Please pass it to child component directly (prop: ${j})`)});const U={...i,...W};return U[c]=(...j)=>{this.touched=!0,this.dirty=!0,this.triggerMetaEvent();let ee;g?ee=g(...j):ee=YT(w,...j),x&&(ee=x(ee,N,R(!0))),ee!==N&&A({type:"updateValue",namePath:O,value:ee}),D&&D(...j)},jm(I||[]).forEach(j=>{const ee=U[j];U[j]=(...te)=>{ee&&ee(...te);const{rules:Y}=this.props;Y&&Y.length&&A({type:"validateField",namePath:O,triggerName:j})}}),U}),o.fieldContext){const{getInternalHooks:i}=o.fieldContext,{initEntityValue:r}=i(Oa);r(this)}}componentDidMount(){const{shouldUpdate:o,fieldContext:i}=this.props;if(this.mounted=!0,i){const{getInternalHooks:r}=i,{registerField:c}=r(Oa);this.cancelRegisterFunc=c(this)}o===!0&&this.reRender()}componentWillUnmount(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}reRender(){this.mounted&&this.forceUpdate()}render(){const{resetCount:o}=this.state,{children:i}=this.props,{child:r,isFunction:c}=this.getOnlyChild(i);let m;return c?m=r:v.isValidElement(r)?m=v.cloneElement(r,this.getControlled(r.props)):(Wt(!r,"`children` of Field is not validate ReactElement."),m=r),v.createElement(v.Fragment,{key:o},m)}}T(ix,"contextType",Rl);function rx({name:e,...o}){const i=v.useContext(Rl),r=v.useContext(lh),c=e!==void 0?qo(e):void 0,m=o.isListField??!!r;let g="keep";return m||(g=`_${(c||[]).join("_")}`),process.env.NODE_ENV!=="production"&&o.preserve===!1&&m&&c.length<=1&&Wt(!1,"`preserve` should not apply on Form.List fields."),v.createElement(ix,Qm({key:g,name:c,isListField:m},o,{fieldContext:i}))}function XT({name:e,initialValue:o,children:i,rules:r,validateTrigger:c,isListField:m}){const g=v.useContext(Rl),x=v.useContext(lh),w=v.useRef({keys:[],id:0}).current,P=v.useMemo(()=>[...qo(g.prefixName)||[],...qo(e)],[g.prefixName,e]),E=v.useMemo(()=>({...g,prefixName:P}),[g,P]),I=v.useMemo(()=>({getKey:$=>{const R=P.length,A=$[R];return[w.keys[A],$.slice(R+1)]}}),[w,P]);if(typeof i!="function")return Wt(!1,"Form.List only accepts function as children."),null;const O=($,R,{source:A})=>A==="internal"?!1:$!==R;return v.createElement(lh.Provider,{value:I},v.createElement(Rl.Provider,{value:E},v.createElement(rx,{name:[],shouldUpdate:O,rules:r,validateTrigger:c,initialValue:o,isList:!0,isListField:m??!!x},({value:$=[],onChange:R},A)=>{const{getFieldValue:N}=g,F=()=>N(P||[])||[],D={add:(U,j)=>{const ee=F();j>=0&&j<=ee.length?(w.keys=[...w.keys.slice(0,j),w.id,...w.keys.slice(j)],R([...ee.slice(0,j),U,...ee.slice(j)])):(process.env.NODE_ENV!=="production"&&(j<0||j>ee.length)&&Wt(!1,"The second parameter of the add function should be a valid positive number."),w.keys=[...w.keys,w.id],R([...ee,U])),w.id+=1},remove:U=>{const j=F(),ee=new Set(Array.isArray(U)?U:[U]);ee.size<=0||(w.keys=w.keys.filter((te,Y)=>!ee.has(Y)),R(j.filter((te,Y)=>!ee.has(Y))))},move(U,j){if(U===j)return;const ee=F();U<0||U>=ee.length||j<0||j>=ee.length||(w.keys=ox(w.keys,U,j),R(ox(ee,U,j)))}};let W=$||[];return Array.isArray(W)||(W=[],process.env.NODE_ENV!=="production"&&Wt(!1,`Current value of '${P.join(" > ")}' is not an array type.`)),i(W.map((U,j)=>{let ee=w.keys[j];return ee===void 0&&(w.keys[j]=w.id,ee=w.keys[j],w.id+=1),{name:j,key:ee,isListField:!0}}),D,A)})))}function eL(e){let o=!1,i=e.length;const r=[];return e.length?new Promise((c,m)=>{e.forEach((g,x)=>{g.catch(w=>(o=!0,w)).then(w=>{i-=1,r[x]=w,!(i>0)&&(o&&m(r),c(r))})})}):Promise.resolve([])}const Km="__@field_split__";function hh(e){return e.map(o=>`${typeof o}:${o}`).join(Km)}class Nl{constructor(){T(this,"kvs",new Map)}set(o,i){this.kvs.set(hh(o),i)}get(o){return this.kvs.get(hh(o))}getAsPrefix(o){const i=hh(o),r=i+Km,c=[],m=this.kvs.get(i);return m!==void 0&&c.push(m),this.kvs.forEach((g,x)=>{x.startsWith(r)&&c.push(g)}),c}update(o,i){const r=this.get(o),c=i(r);c?this.set(o,c):this.delete(o)}delete(o){this.kvs.delete(hh(o))}map(o){return[...this.kvs.entries()].map(([i,r])=>{const c=i.split(Km);return o({key:c.map(m=>{const[,g,x]=m.match(/^([^:]*):(.*)$/);return g==="number"?Number(x):x}),value:r})})}toJSON(){const o={};return this.map(({key:i,value:r})=>(o[i.join(".")]=r,null)),o}}const tL=e=>{const o=new MessageChannel;o.port1.onmessage=e,o.port2.postMessage(null)};class nL{constructor(o){T(this,"namePathList",[]),T(this,"taskId",0),T(this,"watcherList",new Set),T(this,"form"),this.form=o}register(o){return this.watcherList.add(o),()=>{this.watcherList.delete(o)}}notify(o){o.forEach(i=>{this.namePathList.every(r=>!dh(r,i))&&this.namePathList.push(i)}),this.doBatch()}doBatch(){this.taskId+=1;const o=this.taskId;tL(()=>{if(o===this.taskId&&this.watcherList.size){const i=this.form.getForm(),r=i.getFieldsValue(),c=i.getFieldsValue(!0);this.watcherList.forEach(m=>{m(r,c,this.namePathList)}),this.namePathList=[]}})}}class oL{constructor(o){T(this,"formHooked",!1),T(this,"forceRootUpdate"),T(this,"subscribable",!0),T(this,"store",{}),T(this,"fieldEntities",[]),T(this,"initialValues",{}),T(this,"callbacks",{}),T(this,"validateMessages",null),T(this,"preserve",null),T(this,"lastValidatePromise",null),T(this,"watcherCenter",new nL(this)),T(this,"getForm",()=>({getFieldValue:this.getFieldValue,getFieldsValue:this.getFieldsValue,getFieldError:this.getFieldError,getFieldWarning:this.getFieldWarning,getFieldsError:this.getFieldsError,isFieldsTouched:this.isFieldsTouched,isFieldTouched:this.isFieldTouched,isFieldValidating:this.isFieldValidating,isFieldsValidating:this.isFieldsValidating,resetFields:this.resetFields,setFields:this.setFields,setFieldValue:this.setFieldValue,setFieldsValue:this.setFieldsValue,validateFields:this.validateFields,submit:this.submit,_init:!0,getInternalHooks:this.getInternalHooks})),T(this,"getInternalHooks",i=>i===Oa?(this.formHooked=!0,{dispatch:this.dispatch,initEntityValue:this.initEntityValue,registerField:this.registerField,useSubscribe:this.useSubscribe,setInitialValues:this.setInitialValues,destroyForm:this.destroyForm,setCallbacks:this.setCallbacks,setValidateMessages:this.setValidateMessages,getFields:this.getFields,setPreserve:this.setPreserve,getInitialValue:this.getInitialValue,registerWatch:this.registerWatch}):(Wt(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)),T(this,"useSubscribe",i=>{this.subscribable=i}),T(this,"prevWithoutPreserves",null),T(this,"setInitialValues",(i,r)=>{var c;if(this.initialValues=i||{},r){let m=xo(i,this.store);(c=this.prevWithoutPreserves)==null||c.map(({key:g})=>{m=fo(m,g,Kn(i,g))}),this.prevWithoutPreserves=null,this.updateStore(m)}}),T(this,"destroyForm",i=>{if(i)this.updateStore({});else{const r=new Nl;this.getFieldEntities(!0).forEach(c=>{this.isMergedPreserve(c.isPreserve())||r.set(c.getNamePath(),!0)}),this.prevWithoutPreserves=r}}),T(this,"getInitialValue",i=>{const r=Kn(this.initialValues,i);return i.length?xo(r):r}),T(this,"setCallbacks",i=>{this.callbacks=i}),T(this,"setValidateMessages",i=>{this.validateMessages=i}),T(this,"setPreserve",i=>{this.preserve=i}),T(this,"registerWatch",i=>this.watcherCenter.register(i)),T(this,"notifyWatch",(i=[])=>{this.watcherCenter.notify(i)}),T(this,"timeoutId",null),T(this,"warningUnhooked",()=>{process.env.NODE_ENV!=="production"&&!this.timeoutId&&typeof window<"u"&&(this.timeoutId=setTimeout(()=>{this.timeoutId=null,this.formHooked||Wt(!1,"Instance created by `useForm` is not connected to any Form element. Forget to pass `form` prop?")}))}),T(this,"updateStore",i=>{this.store=i}),T(this,"getFieldEntities",(i=!1)=>i?this.fieldEntities.filter(r=>r.getNamePath().length):this.fieldEntities),T(this,"getFieldsMap",(i=!1)=>{const r=new Nl;return this.getFieldEntities(i).forEach(c=>{const m=c.getNamePath();r.set(m,c)}),r}),T(this,"getFieldEntitiesForNamePathList",(i,r=!1)=>{if(!i)return this.getFieldEntities(!0);const c=this.getFieldsMap(!0);return r?i.flatMap(m=>{const g=qo(m),x=c.getAsPrefix(g);return x.length?x:[{INVALIDATE_NAME_PATH:g}]}):i.map(m=>{const g=qo(m);return c.get(g)||{INVALIDATE_NAME_PATH:qo(m)}})}),T(this,"getFieldsValue",(i,r)=>{this.warningUnhooked();let c,m;if(i===!0||Array.isArray(i)?(c=i,m=r):i&&typeof i=="object"&&(m=i.filter),c===!0&&!m)return this.store;const g=this.getFieldEntitiesForNamePathList(Array.isArray(c)?c:null,!0),x=[],w=[];g.forEach(E=>{var I;const O=E.INVALIDATE_NAME_PATH||E.getNamePath();if((I=E.isList)!=null&&I.call(E)){w.push(O);return}if(!m)x.push(O);else{const $="getMeta"in E?E.getMeta():null;m($)&&x.push(O)}});let P=nx(this.store,x.map(qo));return w.forEach(E=>{Kn(P,E)||(P=fo(P,E,[]))}),P}),T(this,"getFieldValue",i=>{this.warningUnhooked();const r=qo(i);return Kn(this.store,r)}),T(this,"getFieldsError",i=>(this.warningUnhooked(),this.getFieldEntitiesForNamePathList(i).map((r,c)=>r&&!r.INVALIDATE_NAME_PATH?{name:r.getNamePath(),errors:r.getErrors(),warnings:r.getWarnings()}:{name:qo(i[c]),errors:[],warnings:[]}))),T(this,"getFieldError",i=>{this.warningUnhooked();const r=qo(i);return this.getFieldsError([r])[0].errors}),T(this,"getFieldWarning",i=>{this.warningUnhooked();const r=qo(i);return this.getFieldsError([r])[0].warnings}),T(this,"isFieldsTouched",(...i)=>{this.warningUnhooked();const[r,c]=i;let m,g=!1;i.length===0?m=null:i.length===1?Array.isArray(r)?(m=r.map(qo),g=!1):(m=null,g=r):(m=r.map(qo),g=c);const x=this.getFieldEntities(!0),w=O=>O.isFieldTouched();if(!m)return g?x.every(O=>w(O)||O.isList()):x.some(w);const P=new Nl;m.forEach(O=>{P.set(O,[])}),x.forEach(O=>{const $=O.getNamePath();m.forEach(R=>{R.every((A,N)=>$[N]===A)&&P.update(R,A=>[...A,O])})});const E=O=>O.some(w),I=P.map(({value:O})=>O);return g?I.every(E):I.some(E)}),T(this,"isFieldTouched",i=>(this.warningUnhooked(),this.isFieldsTouched([i]))),T(this,"isFieldsValidating",i=>{this.warningUnhooked();const r=this.getFieldEntities();if(!i)return r.some(m=>m.isFieldValidating());const c=i.map(qo);return r.some(m=>{const g=m.getNamePath();return Bl(c,g)&&m.isFieldValidating()})}),T(this,"isFieldValidating",i=>(this.warningUnhooked(),this.isFieldsValidating([i]))),T(this,"resetWithFieldInitialValue",(i={})=>{const r=new Nl,c=this.getFieldEntities(!0);c.forEach(x=>{const{initialValue:w}=x.props,P=x.getNamePath();if(w!==void 0){const E=r.get(P)||new Set;E.add({entity:x,value:w}),r.set(P,E)}});const m=x=>{x.forEach(w=>{const{initialValue:P}=w.props;if(P!==void 0){const E=w.getNamePath();if(this.getInitialValue(E)!==void 0)Wt(!1,`Form already set 'initialValues' with path '${E.join(".")}'. Field can not overwrite it.`);else{const I=r.get(E);if(I&&I.size>1)Wt(!1,`Multiple Field with path '${E.join(".")}' set 'initialValue'. Can not decide which one to pick.`);else if(I){const O=this.getFieldValue(E);!w.isListField()&&(!i.skipExist||O===void 0)&&this.updateStore(fo(this.store,E,[...I][0].value))}}}})};let g;i.entities?g=i.entities:i.namePathList?(g=[],i.namePathList.forEach(x=>{const w=r.get(x);w&&g.push(...[...w].map(P=>P.entity))})):g=c,m(g)}),T(this,"resetFields",i=>{this.warningUnhooked();const r=this.store;if(!i){this.updateStore(xo(this.initialValues)),this.resetWithFieldInitialValue(),this.notifyObservers(r,null,{type:"reset"}),this.notifyWatch();return}const c=i.map(qo);c.forEach(m=>{const g=this.getInitialValue(m);this.updateStore(fo(this.store,m,g))}),this.resetWithFieldInitialValue({namePathList:c}),this.notifyObservers(r,c,{type:"reset"}),this.notifyWatch(c)}),T(this,"setFields",i=>{this.warningUnhooked();const r=this.store,c=[];i.forEach(m=>{const{name:g,...x}=m,w=qo(g);c.push(w),"value"in x&&this.updateStore(fo(this.store,w,x.value)),this.notifyObservers(r,[w],{type:"setField",data:m})}),this.notifyWatch(c)}),T(this,"getFields",()=>this.getFieldEntities(!0).map(i=>{const r=i.getNamePath(),c={...i.getMeta(),name:r,value:this.getFieldValue(r)};return Object.defineProperty(c,"originRCField",{value:!0}),c})),T(this,"initEntityValue",i=>{const{initialValue:r}=i.props;if(r!==void 0){const c=i.getNamePath();Kn(this.store,c)===void 0&&this.updateStore(fo(this.store,c,r))}}),T(this,"isMergedPreserve",i=>(i!==void 0?i:this.preserve)??!0),T(this,"registerField",i=>{this.fieldEntities.push(i);const r=i.getNamePath();if(this.notifyWatch([r]),i.props.initialValue!==void 0){const c=this.store;this.resetWithFieldInitialValue({entities:[i],skipExist:!0}),this.notifyObservers(c,[i.getNamePath()],{type:"valueUpdate",source:"internal"})}return(c,m,g=[])=>{if(this.fieldEntities=this.fieldEntities.filter(x=>x!==i),!this.isMergedPreserve(m)&&(!c||g.length>1)){const x=c?void 0:this.getInitialValue(r);if(r.length&&this.getFieldValue(r)!==x&&this.fieldEntities.every(w=>!dh(w.getNamePath(),r))){const w=this.store;this.updateStore(fo(w,r,x,!0)),this.notifyObservers(w,[r],{type:"remove"}),this.triggerDependenciesUpdate(w,r)}}this.notifyWatch([r])}}),T(this,"dispatch",i=>{switch(i.type){case"updateValue":{const{namePath:r,value:c}=i;this.updateValue(r,c);break}case"validateField":{const{namePath:r,triggerName:c}=i;this.validateFields([r],{triggerName:c});break}}}),T(this,"notifyObservers",(i,r,c)=>{if(this.subscribable){const m={...c,store:this.getFieldsValue(!0)};this.getFieldEntities().forEach(({onStoreChange:g})=>{g(i,r,m)})}else this.forceRootUpdate()}),T(this,"triggerDependenciesUpdate",(i,r)=>{const c=this.getDependencyChildrenFields(r);return c.length&&this.validateFields(c),this.notifyObservers(i,c,{type:"dependenciesUpdate",relatedFields:[r,...c]}),c}),T(this,"updateValue",(i,r)=>{const c=qo(i),m=this.store;this.updateStore(fo(this.store,c,r)),this.notifyObservers(m,[c],{type:"valueUpdate",source:"internal"}),this.notifyWatch([c]);const g=this.triggerDependenciesUpdate(m,c),{onValuesChange:x}=this.callbacks;if(x){const w=this.getFieldsMap(!0).get(c),P=nx(this.store,[c]),E=this.getFieldsValue(),I=yn([E,P],{prepareArray:O=>w!=null&&w.isList()?[]:[...O||[]]});x(P,I)}this.triggerOnFieldsChange([c,...g])}),T(this,"setFieldsValue",i=>{this.warningUnhooked();const r=this.store;if(i){const c=xo(this.store,i);this.updateStore(c)}this.notifyObservers(r,null,{type:"valueUpdate",source:"external"}),this.notifyWatch()}),T(this,"setFieldValue",(i,r)=>{this.setFields([{name:i,value:r,errors:[],warnings:[],touched:!0}])}),T(this,"getDependencyChildrenFields",i=>{const r=new Set,c=[],m=new Nl;this.getFieldEntities().forEach(x=>{const{dependencies:w}=x.props;(w||[]).forEach(P=>{const E=qo(P);m.update(E,(I=new Set)=>(I.add(x),I))})});const g=x=>{(m.get(x)||new Set).forEach(w=>{if(!r.has(w)){r.add(w);const P=w.getNamePath();w.isFieldDirty()&&P.length&&(c.push(P),g(P))}})};return g(i),c}),T(this,"triggerOnFieldsChange",(i,r)=>{const{onFieldsChange:c}=this.callbacks;if(c){const m=this.getFields();if(r){const x=new Nl;r.forEach(({name:w,errors:P})=>{x.set(w,P)}),m.forEach(w=>{w.errors=x.get(w.name)||w.errors})}const g=m.filter(({name:x})=>Bl(i,x));g.length&&c(g,m)}}),T(this,"validateFields",(i,r)=>{this.warningUnhooked();let c,m;Array.isArray(i)||typeof i=="string"||typeof r=="string"?(c=i,m=r):m=i;const g=!!c,x=g?c.map(qo):[],w=[...x],P=[],E=String(Date.now()),I=new Set,{recursive:O,dirty:$}=m||{};this.getFieldEntities(!0).forEach(F=>{const D=F.getNamePath();if(g||((!F.isList()||!x.some(W=>dh(W,D,!0)))&&w.push(D),x.push(D)),!(!F.props.rules||!F.props.rules.length)&&!($&&!F.isFieldDirty())&&(I.add(D.join(E)),!g||Bl(x,D,O))){const W=F.validateRules({validateMessages:{...X0,...this.validateMessages},...m});P.push(W.then(()=>({name:D,errors:[],warnings:[]})).catch(U=>{var j;const ee=[],te=[];return(j=U.forEach)==null||j.call(U,({rule:{warningOnly:Y},errors:ae})=>{Y?te.push(...ae):ee.push(...ae)}),ee.length?Promise.reject({name:D,errors:ee,warnings:te}):{name:D,errors:ee,warnings:te}}))}});const R=eL(P);this.lastValidatePromise=R,R.catch(F=>F).then(F=>{const D=F.map(({name:W})=>W);this.notifyObservers(this.store,D,{type:"validateFinish"}),this.triggerOnFieldsChange(D,F)});const A=R.then(()=>this.lastValidatePromise===R?Promise.resolve(this.getFieldsValue(w)):Promise.reject([])).catch(F=>{var D,W;const U=F.filter(ee=>ee&&ee.errors.length),j=(W=(D=U[0])==null?void 0:D.errors)==null?void 0:W[0];return Promise.reject({message:j,values:this.getFieldsValue(x),errorFields:U,outOfDate:this.lastValidatePromise!==R})});A.catch(F=>F);const N=x.filter(F=>I.has(F.join(E)));return this.triggerOnFieldsChange(N),A}),T(this,"submit",()=>{this.warningUnhooked(),this.validateFields().then(i=>{const{onFinish:r}=this.callbacks;if(r)try{r(i)}catch(c){console.error(c)}}).catch(i=>{const{onFinishFailed:r}=this.callbacks;r&&r(i)})}),this.forceRootUpdate=o}}function sx(e){const o=v.useRef(null),[,i]=v.useState({});if(!o.current)if(e)o.current=e;else{const r=()=>{i({})},c=new oL(r);o.current=c.getForm()}return[o.current]}const Ym=v.createContext({triggerFormChange:()=>{},triggerFormFinish:()=>{},registerForm:()=>{},unregisterForm:()=>{}}),iL=({validateMessages:e,onFormChange:o,onFormFinish:i,children:r})=>{const c=v.useContext(Ym),m=v.useRef({});return v.createElement(Ym.Provider,{value:{...c,validateMessages:{...c.validateMessages,...e},triggerFormChange:(g,x)=>{o&&o(g,{changedFields:x,forms:m.current}),c.triggerFormChange(g,x)},triggerFormFinish:(g,x)=>{i&&i(g,{values:x,forms:m.current}),c.triggerFormFinish(g,x)},registerForm:(g,x)=>{g&&(m.current={...m.current,[g]:x}),c.registerForm(g,x)},unregisterForm:g=>{const x={...m.current};delete x[g],m.current=x,c.unregisterForm(g)}}},r)};function Xm(){return Xm=Object.assign?Object.assign.bind():function(e){for(var o=1;o<arguments.length;o++){var i=arguments[o];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r])}return e},Xm.apply(this,arguments)}const rL=({name:e,initialValues:o,fields:i,form:r,preserve:c,children:m,component:g="form",validateMessages:x,validateTrigger:w="onChange",onValuesChange:P,onFieldsChange:E,onFinish:I,onFinishFailed:O,clearOnDestroy:$,...R},A)=>{const N=v.useRef(null),F=v.useContext(Ym),[D]=sx(r),{useSubscribe:W,setInitialValues:U,setCallbacks:j,setValidateMessages:ee,setPreserve:te,destroyForm:Y}=D.getInternalHooks(Oa);v.useImperativeHandle(A,()=>({...D,nativeElement:N.current})),v.useEffect(()=>(F.registerForm(e,D),()=>{F.unregisterForm(e)}),[F,D,e]),ee({...F.validateMessages,...x}),j({onValuesChange:P,onFieldsChange:(le,...we)=>{F.triggerFormChange(e,le),E&&E(le,...we)},onFinish:le=>{F.triggerFormFinish(e,le),I&&I(le)},onFinishFailed:O}),te(c);const ae=v.useRef(null);U(o,!ae.current),ae.current||(ae.current=!0),v.useEffect(()=>()=>Y($),[]);let he;const oe=typeof m=="function";if(oe){const le=D.getFieldsValue(!0);he=m(le,D)}else he=m;W(!oe);const be=v.useRef(null);v.useEffect(()=>{KT(be.current||[],i||[])||D.setFields(i||[]),be.current=i},[i,D]);const ye=v.useMemo(()=>({...D,validateTrigger:w}),[D,w]),Me=v.createElement(lh.Provider,{value:null},v.createElement(Rl.Provider,{value:ye},he));return g===!1?Me:v.createElement(g,Xm({},R,{ref:N,onSubmit:le=>{le.preventDefault(),le.stopPropagation(),D.submit()},onReset:le=>{var we;le.preventDefault(),D.resetFields(),(we=R.onReset)==null||we.call(R,le)}}),Me)};function eg(e){try{return JSON.stringify(e)}catch{return Math.random()}}function sL(...e){const[o,i={}]=e,r=gT(i)?{form:i}:i,c=r.form,[m,g]=d.useState(()=>typeof o=="function"?o({}):void 0),x=d.useMemo(()=>eg(m),[m]),w=d.useRef(x);w.current=x;const P=d.useContext(Rl),E=c||P,I=E&&E._init;process.env.NODE_ENV!=="production"&&Wt(e.length===2?c?I:!0:I,"useWatch requires a form instance since it can not auto detect from context.");const{getFieldsValue:O,getInternalHooks:$}=E,{registerWatch:R}=$(Oa),A=gt((F,D)=>{const W=r.preserve?D??O(!0):F??O(),U=typeof o=="function"?o(W):Kn(W,qo(o));eg(m)!==eg(U)&&g(U)}),N=typeof o=="function"?o:JSON.stringify(o);return d.useEffect(()=>{I&&A()},[I,N]),d.useEffect(()=>I?R((F,D)=>{A(F,D)}):void 0,[I]),m}const lu=v.forwardRef(rL);lu.FormProvider=iL,lu.Field=rx,lu.List=XT,lu.useForm=sx,lu.useWatch=sL;const fh=v.createContext({});process.env.NODE_ENV!=="production"&&(fh.displayName="FormItemInputContext");const aL=({children:e,status:o,override:i})=>{const r=v.useContext(fh),c=v.useMemo(()=>{const m={...r};return i&&delete m.isFormItemInput,o&&(delete m.status,delete m.hasFeedback,delete m.feedbackIcon),m},[o,i,r]);return v.createElement(fh.Provider,{value:c},e)},ax=e=>{const{space:o,form:i,children:r}=e;if(!Ml(r))return null;let c=r;return i&&(c=d.createElement(aL,{override:!0,status:!0},c)),o&&(c=d.createElement(UI,null,c)),c};function lL(e){return o=>v.createElement(Aa,{theme:{token:{motion:!1,zIndexPopupBase:0}}},v.createElement(e,{...o}))}const cL=(e,o,i,r,c)=>lL(m=>{const{prefixCls:g,style:x}=m,w=v.useRef(null),[P,E]=v.useState(0),[I,O]=v.useState(0),[$,R]=Lt(!1,m.open),{getPrefixCls:A}=v.useContext(Gn),N=A(r||"select",g);v.useEffect(()=>{if(R(!0),typeof ResizeObserver<"u"){const W=new ResizeObserver(j=>{const ee=j[0].target;E(ee.offsetHeight+8),O(ee.offsetWidth)}),U=setInterval(()=>{var j;const ee=c?`.${c(N)}`:`.${N}-dropdown`,te=(j=w.current)==null?void 0:j.querySelector(ee);te&&(clearInterval(U),W.observe(te))},10);return()=>{clearInterval(U),W.disconnect()}}},[N]);let F={...m,style:{...x,margin:0},open:$,getPopupContainer:()=>w.current};i&&(F=i(F)),o&&Object.assign(F,{[o]:{overflow:{adjustX:!1,adjustY:!1}}});const D={paddingBottom:P,position:"relative",minWidth:I};return v.createElement("div",{ref:w,style:D},v.createElement(e,{...F}))}),$l=void 0;function uL(e,o){const{prefixCls:i,invalidate:r,item:c,renderItem:m,responsive:g,responsiveDisabled:x,registerSize:w,itemKey:P,className:E,style:I,children:O,display:$,order:R,component:A="div",...N}=e,F=g&&!$;function D(te){w(P,te)}v.useEffect(()=>()=>{D(null)},[]);const W=m&&c!==$l?m(c,{index:R}):O;let U;r||(U={opacity:F?0:1,height:F?0:$l,overflowY:F?"hidden":$l,order:g?R:$l,pointerEvents:F?"none":$l,position:F?"absolute":$l});const j={};F&&(j["aria-hidden"]=!0);let ee=v.createElement(A,fs({className:Re(!r&&i,E),style:{...U,...I}},j,N,{ref:o}),W);return g&&(ee=v.createElement(nn,{onResize:({offsetWidth:te})=>{D(te)},disabled:x},ee)),ee}const Dl=v.forwardRef(uL);process.env.NODE_ENV!=="production"&&(Dl.displayName="Item");function dL(e){if(typeof MessageChannel>"u")yt(e);else{const o=new MessageChannel;o.port1.onmessage=()=>e(),o.port2.postMessage(void 0)}}function hL(){const e=v.useRef(null);return o=>{e.current||(e.current=[],dL(()=>{y.unstable_batchedUpdates(()=>{e.current.forEach(i=>{i()}),e.current=null})})),e.current.push(o)}}function Fl(e,o){const[i,r]=v.useState(o),c=gt(m=>{e(()=>{r(m)})});return[i,c]}const ph=d.createContext(null),fL=(e,o)=>{const i=v.useContext(ph);if(!i){const{component:x="div",...w}=e;return v.createElement(x,fs({},w,{ref:o}))}const{className:r,...c}=i,{className:m,...g}=e;return v.createElement(ph.Provider,{value:null},v.createElement(Dl,fs({ref:o,className:Re(r,m)},c,g)))},lx=v.forwardRef(fL);process.env.NODE_ENV!=="production"&&(lx.displayName="RawItem");const cx="responsive",ux="invalidate";function pL(e){return`+ ${e.length} ...`}function mL(e,o){const{prefixCls:i="rc-overflow",data:r=[],renderItem:c,renderRawItem:m,itemKey:g,itemWidth:x=10,ssr:w,style:P,className:E,maxCount:I,renderRest:O,renderRawRest:$,prefix:R,suffix:A,component:N="div",itemComponent:F,onVisibleChange:D,...W}=e,U=w==="full",j=hL(),[ee,te]=Fl(j,null),Y=ee||0,[ae,he]=Fl(j,new Map),[oe,be]=Fl(j,0),[ye,Me]=Fl(j,0),[le,we]=Fl(j,0),[Fe,_e]=Fl(j,0),[st,ke]=d.useState(null),[Ne,rt]=d.useState(null),We=v.useMemo(()=>Ne===null&&U?Number.MAX_SAFE_INTEGER:Ne||0,[Ne,ee]),[Ge,ze]=d.useState(!1),Se=`${i}-item`,je=Math.max(oe,ye),tt=I===cx,ut=r.length&&tt,At=I===ux,St=ut||typeof I=="number"&&r.length>I,Ft=d.useMemo(()=>{let at=r;return ut?ee===null&&U?at=r:at=r.slice(0,Math.min(r.length,Y/x)):typeof I=="number"&&(at=r.slice(0,I)),at},[r,x,ee,I,ut]),It=d.useMemo(()=>ut?r.slice(We+1):r.slice(Ft.length),[r,Ft,ut,We]),Ve=d.useCallback((at,ft)=>typeof g=="function"?g(at):(g&&(at==null?void 0:at[g]))??ft,[g]),qt=d.useCallback(c||(at=>at),[c]);function ht(at,ft,Nn){Ne===at&&(ft===void 0||ft===st)||(rt(at),Nn||(ze(at<r.length-1),D==null||D(at)),ft!==void 0&&ke(ft))}function Kt(at,ft){te(ft.clientWidth)}function bn(at,ft){he(Nn=>{const Ln=new Map(Nn);return ft===null?Ln.delete(at):Ln.set(at,ft),Ln})}function ln(at,ft){Me(ft),be(ye)}function Tn(at,ft){we(ft)}function Xt(at,ft){_e(ft)}function xn(at){return ae.get(Ve(Ft[at],at))}He(()=>{if(Y&&typeof je=="number"&&Ft){let at=le+Fe;const ft=Ft.length,Nn=ft-1;if(!ft){ht(0,null);return}for(let Ln=0;Ln<ft;Ln+=1){let Et=xn(Ln);if(U&&(Et=Et||0),Et===void 0){ht(Ln-1,void 0,!0);break}if(at+=Et,Nn===0&&at<=Y||Ln===Nn-1&&at+xn(Nn)<=Y){ht(Nn,null);break}else if(at+je>Y){ht(Ln-1,at-Et-Fe+ye);break}}A&&xn(0)+Fe>Y&&ke(null)}},[Y,ae,ye,le,Fe,Ve,Ft]);const Yn=Ge&&!!It.length;let Qt={};st!==null&&ut&&(Qt={position:"absolute",left:st,top:0});const sn={prefixCls:Se,responsive:ut,component:F,invalidate:At},Lo=m?(at,ft)=>{const Nn=Ve(at,ft);return v.createElement(ph.Provider,{key:Nn,value:{...sn,order:ft,item:at,itemKey:Nn,registerSize:bn,display:ft<=We}},m(at,ft))}:(at,ft)=>{const Nn=Ve(at,ft);return v.createElement(Dl,fs({},sn,{order:ft,key:Nn,item:at,renderItem:qt,itemKey:Nn,registerSize:bn,display:ft<=We}))},wo={order:Yn?We:Number.MAX_SAFE_INTEGER,className:`${Se}-rest`,registerSize:ln,display:Yn},lo=O||pL,Co=$?v.createElement(ph.Provider,{value:{...sn,...wo}},$(It)):v.createElement(Dl,fs({},sn,wo),typeof lo=="function"?lo(It):lo),en=v.createElement(N,fs({className:Re(!At&&i,E),style:P,ref:o},W),R&&v.createElement(Dl,fs({},sn,{responsive:tt,responsiveDisabled:!ut,order:-1,className:`${Se}-prefix`,registerSize:Tn,display:!0}),R),Ft.map(Lo),St?Co:null,A&&v.createElement(Dl,fs({},sn,{responsive:tt,responsiveDisabled:!ut,order:We,className:`${Se}-suffix`,registerSize:Xt,display:!0,style:Qt}),A));return tt?v.createElement(nn,{onResize:Kt,disabled:!ut},en):en}const zs=v.forwardRef(mL);zs.Item=lx,zs.RESPONSIVE=cx,zs.INVALIDATE=ux,process.env.NODE_ENV!=="production"&&(zs.displayName="Overflow");const gL=(e,o,i)=>Re({[`${e}-status-success`]:o==="success",[`${e}-status-warning`]:o==="warning",[`${e}-status-error`]:o==="error",[`${e}-status-validating`]:o==="validating",[`${e}-has-feedback`]:i}),dx=e=>{const{children:o,prefixCls:i,id:r,classNames:c,styles:m,className:g,style:x}=e;return v.createElement("div",{id:r,className:Re(`${i}-container`,c==null?void 0:c.container,g),style:{...m==null?void 0:m.container,...x},role:"tooltip"},typeof o=="function"?o():o)},Hl={shiftX:64,adjustY:1},jl={adjustX:1,shiftY:!0},Lr=[0,0],vL={left:{points:["cr","cl"],overflow:jl,offset:[-4,0],targetOffset:Lr},right:{points:["cl","cr"],overflow:jl,offset:[4,0],targetOffset:Lr},top:{points:["bc","tc"],overflow:Hl,offset:[0,-4],targetOffset:Lr},bottom:{points:["tc","bc"],overflow:Hl,offset:[0,4],targetOffset:Lr},topLeft:{points:["bl","tl"],overflow:Hl,offset:[0,-4],targetOffset:Lr},leftTop:{points:["tr","tl"],overflow:jl,offset:[-4,0],targetOffset:Lr},topRight:{points:["br","tr"],overflow:Hl,offset:[0,-4],targetOffset:Lr},rightTop:{points:["tl","tr"],overflow:jl,offset:[4,0],targetOffset:Lr},bottomRight:{points:["tr","br"],overflow:Hl,offset:[0,4],targetOffset:Lr},rightBottom:{points:["bl","br"],overflow:jl,offset:[4,0],targetOffset:Lr},bottomLeft:{points:["tl","bl"],overflow:Hl,offset:[0,4],targetOffset:Lr},leftBottom:{points:["br","bl"],overflow:jl,offset:[-4,0],targetOffset:Lr}};function tg(){return tg=Object.assign?Object.assign.bind():function(e){for(var o=1;o<arguments.length;o++){var i=arguments[o];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r])}return e},tg.apply(this,arguments)}const yL=v.forwardRef((e,o)=>{const{trigger:i=["hover"],mouseEnterDelay:r=0,mouseLeaveDelay:c=.1,prefixCls:m="rc-tooltip",children:g,onVisibleChange:x,afterVisibleChange:w,motion:P,placement:E="right",align:I={},destroyOnHidden:O=!1,defaultVisible:$,getTooltipContainer:R,arrowContent:A,overlay:N,id:F,showArrow:D=!0,classNames:W,styles:U,...j}=e,ee=Jd(F),te=d.useRef(null);d.useImperativeHandle(o,()=>te.current);const Y={...j};"visible"in e&&(Y.popupVisible=e.visible);const ae=v.useMemo(()=>{if(!D)return!1;const oe=D===!0?{}:D;return{...oe,className:Re(oe.className,W==null?void 0:W.arrow),style:{...oe.style,...U==null?void 0:U.arrow},content:oe.content??A}},[D,W==null?void 0:W.arrow,U==null?void 0:U.arrow,A]),he=({open:oe})=>{const be=v.Children.only(g),ye={"aria-describedby":N&&oe?ee:void 0};return v.cloneElement(be,ye)};return v.createElement(wm,tg({popupClassName:W==null?void 0:W.root,prefixCls:m,popup:v.createElement(dx,{key:"content",prefixCls:m,id:ee,classNames:W,styles:U},N),action:i,builtinPlacements:vL,popupPlacement:E,ref:te,popupAlign:I,getPopupContainer:R,onOpenChange:x,afterOpenChange:w,popupMotion:P,defaultPopupVisible:$,autoDestroy:O,mouseLeaveDelay:c,popupStyle:U==null?void 0:U.root,mouseEnterDelay:r,arrow:ae,uniqueContainerClassName:W==null?void 0:W.uniqueContainer,uniqueContainerStyle:U==null?void 0:U.uniqueContainer},Y),he)});function hx(e){const{sizePopupArrow:o,borderRadiusXS:i,borderRadiusOuter:r}=e,c=o/2,m=0,g=c,x=r*1/Math.sqrt(2),w=c-r*(1-1/Math.sqrt(2)),P=c-i*(1/Math.sqrt(2)),E=r*(Math.sqrt(2)-1)+i*(1/Math.sqrt(2)),I=2*c-P,O=E,$=2*c-x,R=w,A=2*c-m,N=g,F=c*Math.sqrt(2)+r*(Math.sqrt(2)-2),D=r*(Math.sqrt(2)-1),W=`polygon(${D}px 100%, 50% ${D}px, ${2*c-D}px 100%, ${D}px 100%)`,U=`path('M ${m} ${g} A ${r} ${r} 0 0 0 ${x} ${w} L ${P} ${E} A ${i} ${i} 0 0 1 ${I} ${O} L ${$} ${R} A ${r} ${r} 0 0 0 ${A} ${N} Z')`;return{arrowShadowWidth:F,arrowPath:U,arrowPolygon:W}}const _L=(e,o,i)=>{const{sizePopupArrow:r,arrowPolygon:c,arrowPath:m,arrowShadowWidth:g,borderRadiusXS:x,calc:w}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:w(r).div(2).equal(),background:o,clipPath:{_multi_value_:!0,value:[c,m]},content:'""'},"&::after":{content:'""',position:"absolute",width:g,height:g,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${$t(x)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:i,zIndex:0,background:"transparent"}}},fx=8;function ng(e){const{contentRadius:o,limitVerticalRadius:i}=e,r=o>12?o+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:i?fx:r}}function mh(e,o){return e?o:{}}const px=(e,o,i)=>{const{componentCls:r,boxShadowPopoverArrow:c,arrowOffsetVertical:m,arrowOffsetHorizontal:g,antCls:x}=e,[w]=sa(x,"tooltip"),{arrowDistance:P=0,arrowPlacement:E={left:!0,right:!0,top:!0,bottom:!0}}=i||{};return{[r]:{[`${r}-arrow`]:[{position:"absolute",zIndex:1,display:"block",..._L(e,o,c),"&:before":{background:o}}],...mh(!!E.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:P,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{[w("arrow-offset-horizontal")]:g,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:g}}},"&-placement-topRight":{[w("arrow-offset-horizontal")]:`calc(100% - ${$t(g)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:g}}}}),...mh(!!E.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:P,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{[w("arrow-offset-horizontal")]:g,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:g}}},"&-placement-bottomRight":{[w("arrow-offset-horizontal")]:`calc(100% - ${$t(g)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:g}}}}),...mh(!!E.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:P},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${r}-arrow`]:{top:m},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:m}}),...mh(!!E.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:P},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${r}-arrow`]:{top:m},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:m}})}}};function bL(e,o,i,r){if(r===!1)return{adjustX:!1,adjustY:!1};const c=r&&typeof r=="object"?r:{},m={};switch(e){case"top":case"bottom":m.shiftX=o.arrowOffsetHorizontal*2+i,m.shiftY=!0,m.adjustY=!0;break;case"left":case"right":m.shiftY=o.arrowOffsetVertical*2+i,m.shiftX=!0,m.adjustX=!0;break}const g={...m,...c};return g.shiftX||(g.adjustX=!0),g.shiftY||(g.adjustY=!0),g}const mx={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},xL={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},wL=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function gx(e){const{arrowWidth:o,autoAdjustOverflow:i,arrowPointAtCenter:r,offset:c,borderRadius:m,visibleFirst:g}=e,x=o/2,w={},P=ng({contentRadius:m,limitVerticalRadius:!0});return Object.keys(mx).forEach(E=>{const I={...r&&xL[E]||mx[E],offset:[0,0],dynamicInset:!0};switch(w[E]=I,wL.has(E)&&(I.autoArrow=!1),E){case"top":case"topLeft":case"topRight":I.offset[1]=-x-c;break;case"bottom":case"bottomLeft":case"bottomRight":I.offset[1]=x+c;break;case"left":case"leftTop":case"leftBottom":I.offset[0]=-x-c;break;case"right":case"rightTop":case"rightBottom":I.offset[0]=x+c;break}if(r)switch(E){case"topLeft":case"bottomLeft":I.offset[0]=-P.arrowOffsetHorizontal-x;break;case"topRight":case"bottomRight":I.offset[0]=P.arrowOffsetHorizontal+x;break;case"leftTop":case"rightTop":I.offset[1]=-P.arrowOffsetHorizontal*2+x;break;case"leftBottom":case"rightBottom":I.offset[1]=P.arrowOffsetHorizontal*2-x;break}I.overflow=bL(E,P,o,i),g&&(I.htmlRegion="visibleFirst")}),w}const CL=(e,o)=>{const i=r=>typeof r=="boolean"?{show:r}:r||{};return d.useMemo(()=>{const r=i(e),c=i(o);return{...c,...r,show:r.show??c.show??!0}},[e,o])},vx="50%",SL=e=>{const{calc:o,componentCls:i,tooltipMaxWidth:r,tooltipColor:c,tooltipBg:m,tooltipBorderRadius:g,zIndexPopup:x,controlHeight:w,boxShadowSecondary:P,paddingSM:E,paddingXS:I,arrowOffsetHorizontal:O,sizePopupArrow:$,antCls:R}=e,[A,N]=sa(R,"tooltip"),F=o(g).add($).add(O).equal(),D={minWidth:o(g).mul(2).add($).equal(),minHeight:w,padding:`${$t(e.calc(E).div(2).equal())} ${$t(I)}`,color:N("overlay-color",c),textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:m,borderRadius:g,boxShadow:P,boxSizing:"border-box"},W={[A("valid-offset-x")]:N("arrow-offset-horizontal","var(--arrow-x)"),transformOrigin:[N("valid-offset-x",vx),`var(--arrow-y, ${vx})`].join(" ")};return[{[i]:{...Pl(e),position:"absolute",zIndex:x,display:"block",width:"max-content",maxWidth:r,visibility:"visible",...W,"&-hidden":{display:"none"},[A("arrow-background-color")]:m,[`${i}-container`]:[D,SM(e,!0)],[`&:has(~ ${i}-unique-container)`]:{[`${i}-container`]:{border:"none",background:"transparent",boxShadow:"none"}},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:F},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${i}-inner`]:{borderRadius:e.min(g,fx)}},[`${i}-content`]:{position:"relative"},...fk(e,(U,{darkColor:j})=>({[`&${i}-${U}`]:{[`${i}-container`]:{backgroundColor:j},[`${i}-arrow`]:{[A("arrow-background-color")]:j}}})),"&-rtl":{direction:"rtl"}}},px(e,N("arrow-background-color")),{[`${i}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}},{[`${i}-unique-container`]:{...D,...W,position:"absolute",zIndex:o(x).sub(1).equal(),"&-hidden":{display:"none"},"&-visible":{transition:`all ${e.motionDurationSlow}`}}}]},EL=e=>({zIndexPopup:e.zIndexPopupBase+70,maxWidth:250,...ng({contentRadius:e.borderRadius,limitVerticalRadius:!0}),...hx(Yi(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))}),yx=(e,o,i=!0)=>hs("Tooltip",r=>{const{borderRadius:c,colorTextLightSolid:m,colorBgSpotlight:g,maxWidth:x}=r,w=Yi(r,{tooltipMaxWidth:x,tooltipColor:m,tooltipBorderRadius:c,tooltipBg:g});return[SL(w),Fm(r,"zoom-big-fast")]},EL,{resetStyle:!1,injectStyle:i})(e,o),PL=Ia.map(e=>`${e}-inverse`);function kL(e,o=!0){return o?[].concat(Ho(PL),Ho(Ia)).includes(e):Ia.includes(e)}const _x=(e,o,i)=>{const r=kL(i),[c]=sa(e,"tooltip"),m=Re({[`${o}-${i}`]:i&&r}),g={},x={},w=JM(i).toRgb(),P=(.299*w.r+.587*w.g+.114*w.b)/255<.5?"#FFF":"#000";return i&&!r&&(g.background=i,g[c("overlay-color")]=P,x[c("arrow-background-color")]=i),{className:m,overlayStyle:g,arrowStyle:x}},IL=e=>{const{prefixCls:o,className:i,placement:r="top",title:c,color:m,overlayInnerStyle:g,classNames:x,styles:w}=e,{getPrefixCls:P}=v.useContext(Gn),E=P("tooltip",o),I=P(),O=Tl(E),[$,R]=yx(E,O),A=_x(I,E,m),N=A.arrowStyle,F=v.useMemo(()=>({container:{...g,...A.overlayStyle}}),[g,A.overlayStyle]),D={...e,placement:r},[W,U]=Ta([x],[F,w],{props:D}),j=Re(O,$,R,E,`${E}-pure`,`${E}-placement-${r}`,i,A.className);return v.createElement("div",{className:j,style:N},v.createElement("div",{className:`${E}-arrow`}),v.createElement(dx,{...e,className:$,prefixCls:E,classNames:W,styles:U},c))},gh=v.forwardRef((e,o)=>{const{prefixCls:i,openClassName:r,getTooltipContainer:c,color:m,children:g,afterOpenChange:x,arrow:w,destroyTooltipOnHide:P,destroyOnHidden:E,title:I,overlay:O,trigger:$,builtinPlacements:R,autoAdjustOverflow:A=!0,motion:N,getPopupContainer:F,placement:D="top",mouseEnterDelay:W=.1,mouseLeaveDelay:U=.1,rootClassName:j,styles:ee,classNames:te,onOpenChange:Y,overlayInnerStyle:ae,overlayStyle:he,overlayClassName:oe,...be}=e,[,ye]=ra(),{getPopupContainer:Me,getPrefixCls:le,direction:we,className:Fe,style:_e,classNames:st,styles:ke,arrow:Ne,trigger:rt}=jt("tooltip"),We=CL(w,Ne),Ge=We.show,ze=$||rt||"hover",Se=mo("Tooltip"),je=v.useRef(null),tt=()=>{var Vt;(Vt=je.current)==null||Vt.forceAlign()};v.useImperativeHandle(o,()=>{var Vt,Cn;return{forceAlign:tt,nativeElement:(Vt=je.current)==null?void 0:Vt.nativeElement,popupElement:(Cn=je.current)==null?void 0:Cn.popupElement}}),process.env.NODE_ENV!=="production"&&([["overlayStyle","styles.root"],["overlayInnerStyle","styles.container"],["overlayClassName","classNames.root"],["destroyTooltipOnHide","destroyOnHidden"]].forEach(([Vt,Cn])=>{Se.deprecated(!(Vt in e),Vt,Cn)}),process.env.NODE_ENV!=="production"&&Se(!P||typeof P=="boolean","usage","`destroyTooltipOnHide` no need config `keepParent` anymore. Please use `boolean` value directly."));const[ut,At]=Lt(e.defaultOpen??!1,e.open),St=!I&&!O&&I!==0,Ft=Vt=>{At(St?!1:Vt),!St&&Y&&Y(Vt)},It=v.useMemo(()=>R||gx({arrowPointAtCenter:(We==null?void 0:We.pointAtCenter)??!1,autoAdjustOverflow:A,arrowWidth:Ge?ye.sizePopupArrow:0,borderRadius:ye.borderRadius,offset:ye.marginXXS,visibleFirst:!0}),[We,R,ye,Ge,A]),Ve=v.useMemo(()=>I===0?I:O||I||"",[O,I]),qt=v.createElement(ax,{space:!0,form:!0},typeof Ve=="function"?Ve():Ve),ht={...e,trigger:ze,color:m,placement:D,builtinPlacements:R,openClassName:r,arrow:w,autoAdjustOverflow:A,getPopupContainer:F,children:g,destroyTooltipOnHide:P,destroyOnHidden:E},[Kt,bn]=Ta([st,te],[ke,ee],{props:ht}),ln=le("tooltip",i),Tn=le(),Xt=e["data-popover-inject"];let xn=ut;!("open"in e)&&St&&(xn=!1);const Yn=v.isValidElement(g)&&!d0(g)?g:v.createElement("span",null,g),Qt=Yn.props,sn=!Qt.className||typeof Qt.className=="string"?Re(Qt.className,r||`${ln}-open`):Qt.className,Lo=Tl(ln),[wo,lo]=yx(ln,Lo,!Xt),Co=_x(Tn,ln,m),en=Co.arrowStyle,at=Re(Lo,wo,lo),ft=Re(oe,{[`${ln}-rtl`]:we==="rtl"},Co.className,j,at,Fe,Kt.root),[Nn,Ln]=mm("Tooltip",be.zIndex),Et={...bn.container,...ae,...Co.overlayStyle},cn=v.createElement(yL,{unique:!0,...be,trigger:ze,zIndex:Nn,showArrow:Ge,placement:D,mouseEnterDelay:W,mouseLeaveDelay:U,prefixCls:ln,classNames:{root:ft,container:Kt.container,arrow:Kt.arrow,uniqueContainer:Re(at,Kt.container)},styles:{root:{...en,...bn.root,..._e,...he},container:Et,uniqueContainer:Et,arrow:bn.arrow},getTooltipContainer:F||c||Me,ref:je,builtinPlacements:It,overlay:qt,visible:xn,onVisibleChange:Ft,afterVisibleChange:x,arrowContent:v.createElement("span",{className:`${ln}-arrow-content`}),motion:{motionName:FI(Tn,"zoom-big-fast",typeof(N==null?void 0:N.motionName)=="string"?N==null?void 0:N.motionName:void 0),motionDeadline:1e3},destroyOnHidden:E??!!P},xn?Os(Yn,{className:sn}):Yn);return v.createElement(pm.Provider,{value:Ln},cn)});process.env.NODE_ENV!=="production"&&(gh.displayName="Tooltip"),gh._InternalPanelDoNotUseOrYouWillBeFired=IL,gh.UniqueProvider=h0;const bx=gh;var ML={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"};const TL=ML;function og(){return og=Object.assign?Object.assign.bind():function(e){for(var o=1;o<arguments.length;o++){var i=arguments[o];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r])}return e},og.apply(this,arguments)}const LL=(e,o)=>v.createElement(Yc,og({},e,{ref:o,icon:TL})),xx=v.forwardRef(LL);process.env.NODE_ENV!=="production"&&(xx.displayName="LeftOutlined");const ig=xx,{ESC:AL,TAB:OL}=Zt;function RL({visible:e,triggerRef:o,onVisibleChange:i,autoFocus:r,overlayRef:c}){const m=v.useRef(!1),g=()=>{var P,E;e&&((E=(P=o.current)==null?void 0:P.focus)==null||E.call(P),i==null||i(!1))},x=()=>{var P;return(P=c.current)!=null&&P.focus?(c.current.focus(),m.current=!0,!0):!1},w=P=>{switch(P.keyCode){case AL:g();break;case OL:{let E=!1;m.current||(E=x()),E?P.preventDefault():g();break}}};v.useEffect(()=>e?(window.addEventListener("keydown",w),r&&yt(x,3),()=>{window.removeEventListener("keydown",w),m.current=!1}):()=>{m.current=!1},[e])}const zL=d.forwardRef((e,o)=>{const{overlay:i,arrow:r,prefixCls:c}=e,m=d.useMemo(()=>{let x;return typeof i=="function"?x=i():x=i,x},[i]),g=jn(o,Jn(m));return d.createElement(d.Fragment,null,r&&d.createElement("div",{className:`${c}-arrow`}),d.cloneElement(m,{ref:eo(m)?g:void 0}))}),Zl={adjustX:1,adjustY:1},Vl=[0,0],BL={topLeft:{points:["bl","tl"],overflow:Zl,offset:[0,-4],targetOffset:Vl},top:{points:["bc","tc"],overflow:Zl,offset:[0,-4],targetOffset:Vl},topRight:{points:["br","tr"],overflow:Zl,offset:[0,-4],targetOffset:Vl},bottomLeft:{points:["tl","bl"],overflow:Zl,offset:[0,4],targetOffset:Vl},bottom:{points:["tc","bc"],overflow:Zl,offset:[0,4],targetOffset:Vl},bottomRight:{points:["tr","br"],overflow:Zl,offset:[0,4],targetOffset:Vl}};function rg(){return rg=Object.assign?Object.assign.bind():function(e){for(var o=1;o<arguments.length;o++){var i=arguments[o];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r])}return e},rg.apply(this,arguments)}const NL=d.forwardRef((e,o)=>{var i;const{arrow:r=!1,prefixCls:c="rc-dropdown",transitionName:m,animation:g,align:x,placement:w="bottomLeft",placements:P=BL,getPopupContainer:E,showAction:I,hideAction:O,overlayClassName:$,overlayStyle:R,visible:A,trigger:N=["hover"],autoFocus:F,overlay:D,children:W,onVisibleChange:U,...j}=e,[ee,te]=d.useState(),Y="visible"in e?A:ee,ae=g?`${c}-${g}`:m,he=d.useRef(null),oe=d.useRef(null),be=d.useRef(null);d.useImperativeHandle(o,()=>he.current);const ye=Ne=>{te(Ne),U==null||U(Ne)};RL({visible:Y,triggerRef:be,onVisibleChange:ye,autoFocus:F,overlayRef:oe});const Me=Ne=>{const{onOverlayClick:rt}=e;te(!1),rt&&rt(Ne)},le=()=>d.createElement(zL,{ref:oe,overlay:D,prefixCls:c,arrow:r}),we=()=>typeof D=="function"?le:le(),Fe=()=>{const{minOverlayWidthMatchTrigger:Ne,alignPoint:rt}=e;return"minOverlayWidthMatchTrigger"in e?Ne:!rt},_e=()=>{const{openClassName:Ne}=e;return Ne!==void 0?Ne:`${c}-open`},st=d.cloneElement(W,{className:Re((i=W.props)==null?void 0:i.className,Y&&_e()),ref:eo(W)?jn(be,Jn(W)):void 0});let ke=O;return!ke&&N.indexOf("contextMenu")!==-1&&(ke=["click"]),d.createElement(wm,rg({builtinPlacements:P},j,{prefixCls:c,ref:he,popupClassName:Re($,{[`${c}-show-arrow`]:r}),popupStyle:R,action:N,showAction:I,hideAction:ke,popupPlacement:w,popupAlign:x,popupMotion:{motionName:ae},popupVisible:Y,stretch:Fe()?"minWidth":"",popup:we(),onOpenChange:ye,onPopupClick:Me,getPopupContainer:E}),st)}),$L=e=>typeof e!="object"&&typeof e!="function"||e===null,wx=v.createContext(null);function Cx(e,o){return`${e}-${o}`}function Sx(e){const o=v.useContext(wx);return Cx(o,e)}const Yr=v.createContext(null);function DL(e,o){const i={...e};return Object.keys(o).forEach(r=>{const c=o[r];c!==void 0&&(i[r]=c)}),i}function cu({children:e,locked:o,...i}){const r=v.useContext(Yr),c=Dn(()=>DL(r,i),[r,i],(m,g)=>!o&&(m[0]!==g[0]||!ss(m[1],g[1],!0)));return v.createElement(Yr.Provider,{value:c},e)}const FL=[],Ex=v.createContext(null);function vh(){return v.useContext(Ex)}const Px=v.createContext(FL);function Wl(e){const o=v.useContext(Px);return v.useMemo(()=>e!==void 0?[...o,e]:o,[o,e])}const kx=v.createContext(null),sg=v.createContext({}),{LEFT:ag,RIGHT:lg,UP:cg,DOWN:yh,ENTER:_h,ESC:Ix,HOME:uu,END:du}=Zt,Mx=[cg,yh,ag,lg];function HL(e,o,i,r){var c;const m="prev",g="next",x="children",w="parent";if(e==="inline"&&r===_h)return{inlineTrigger:!0};const P={[cg]:m,[yh]:g},E={[ag]:i?g:m,[lg]:i?m:g,[yh]:x,[_h]:x},I={[cg]:m,[yh]:g,[_h]:x,[Ix]:w,[ag]:i?x:w,[lg]:i?w:x};switch((c={inline:P,horizontal:E,vertical:I,inlineSub:P,horizontalSub:I,verticalSub:I}[`${e}${o?"":"Sub"}`])==null?void 0:c[r]){case m:return{offset:-1,sibling:!0};case g:return{offset:1,sibling:!0};case w:return{offset:-1,sibling:!1};case x:return{offset:1,sibling:!1};default:return null}}function jL(e){let o=e;for(;o;){if(o.getAttribute("data-menu-list"))return o;o=o.parentElement}return null}function ZL(e,o){let i=e||document.activeElement;for(;i;){if(o.has(i))return i;i=i.parentElement}return null}function ug(e,o){return mT(e,!0).filter(i=>o.has(i))}function Tx(e,o,i,r=1){if(!e)return null;const c=ug(e,o),m=c.length;let g=c.findIndex(x=>i===x);return r<0?g===-1?g=m-1:g-=1:r>0&&(g+=1),g=(g+m)%m,c[g]}const bh=(e,o)=>{const i=new Set,r=new Map,c=new Map;return e.forEach(m=>{const g=document.querySelector(`[data-menu-id='${Cx(o,m)}']`);g&&(i.add(g),c.set(g,m),r.set(m,g))}),{elements:i,key2element:r,element2key:c}};function VL(e,o,i,r,c,m,g,x,w,P){const E=v.useRef(),I=v.useRef();I.current=o;const O=()=>{yt.cancel(E.current)};return v.useEffect(()=>()=>{O()},[]),$=>{const{which:R}=$;if([...Mx,_h,Ix,uu,du].includes(R)){const A=m();let N=bh(A,r);const{elements:F,key2element:D,element2key:W}=N,U=D.get(o),j=ZL(U,F),ee=W.get(j),te=HL(e,g(ee,!0).length===1,i,R);if(!te&&R!==uu&&R!==du)return;(Mx.includes(R)||[uu,du].includes(R))&&$.preventDefault();const Y=ae=>{if(ae){let he=ae;const oe=ae.querySelector("a");oe!=null&&oe.getAttribute("href")&&(he=oe);const be=W.get(ae);x(be),O(),E.current=yt(()=>{I.current===be&&he.focus()})}};if([uu,du].includes(R)||te.sibling||!j){let ae;!j||e==="inline"?ae=c.current:ae=jL(j);let he;const oe=ug(ae,F);R===uu?he=oe[0]:R===du?he=oe[oe.length-1]:he=Tx(ae,F,j,te.offset),Y(he)}else if(te.inlineTrigger)w(ee);else if(te.offset>0)w(ee,!0),O(),E.current=yt(()=>{N=bh(A,r);const ae=j.getAttribute("aria-controls"),he=document.getElementById(ae),oe=Tx(he,N.elements);Y(oe)},5);else if(te.offset<0){const ae=g(ee,!0),he=ae[ae.length-2],oe=D.get(he);w(he,!1),Y(oe)}}P==null||P($)}}function WL(e){Promise.resolve().then(e)}const dg="__RC_UTIL_PATH_SPLIT__",Lx=e=>e.join(dg),qL=e=>e.split(dg),hg="rc-menu-more";function GL(){const[,e]=v.useState({}),o=d.useRef(new Map),i=d.useRef(new Map),[r,c]=v.useState([]),m=d.useRef(0),g=d.useRef(!1),x=()=>{g.current||e({})},w=d.useCallback((A,N)=>{process.env.NODE_ENV!=="production"&&Wt(!o.current.has(A),`Duplicated key '${A}' used in Menu by path [${N.join(" > ")}]`);const F=Lx(N);i.current.set(F,A),o.current.set(A,F),m.current+=1;const D=m.current;WL(()=>{D===m.current&&x()})},[]),P=d.useCallback((A,N)=>{const F=Lx(N);i.current.delete(F),o.current.delete(A)},[]),E=d.useCallback(A=>{c(A)},[]),I=d.useCallback((A,N)=>{const F=o.current.get(A)||"",D=qL(F);return N&&r.includes(D[0])&&D.unshift(hg),D},[r]),O=d.useCallback((A,N)=>A.filter(F=>F!==void 0).some(F=>I(F,!0).includes(N)),[I]),$=()=>{const A=[...o.current.keys()];return r.length&&A.push(hg),A},R=d.useCallback(A=>{const N=`${o.current.get(A)}${dg}`,F=new Set;return[...i.current.keys()].forEach(D=>{D.startsWith(N)&&F.add(i.current.get(D))}),F},[]);return v.useEffect(()=>()=>{g.current=!0},[]),{registerPath:w,unregisterPath:P,refreshOverflowKeys:E,isSubPathKey:O,getKeyPath:I,getKeys:$,getSubPathKeys:R}}function hu(e){const o=v.useRef(e);o.current=e;const i=v.useCallback((...r)=>{var c;return(c=o.current)==null?void 0:c.call(o,...r)},[]);return e?i:void 0}function Ax(e,o,i,r){const{activeKey:c,onActive:m,onInactive:g}=v.useContext(Yr),x={active:c===e};return o||(x.onMouseEnter=w=>{i==null||i({key:e,domEvent:w}),m(e)},x.onMouseLeave=w=>{r==null||r({key:e,domEvent:w}),g(e)}),x}function Ox(e){const{mode:o,rtl:i,inlineIndent:r}=v.useContext(Yr);if(o!=="inline")return null;const c=e;return i?{paddingRight:c*r}:{paddingLeft:c*r}}function Rx({icon:e,props:o,children:i}){let r;return e===null||e===!1?null:(typeof e=="function"?r=v.createElement(e,{...o}):typeof e!="boolean"&&(r=e),r||i||null)}function xh({item:e,...o}){return Object.defineProperty(o,"item",{get:()=>(Wt(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),e)}),o}function fu(){return fu=Object.assign?Object.assign.bind():function(e){for(var o=1;o<arguments.length;o++){var i=arguments[o];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r])}return e},fu.apply(this,arguments)}class UL extends v.Component{render(){const{title:o,attribute:i,elementRef:r,...c}=this.props,m=Rn(c,["eventKey","popupClassName","popupOffset","onTitleClick"]);return Wt(!i,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),v.createElement(zs.Item,fu({},i,{title:typeof o=="string"?o:void 0},m,{ref:r}))}}const QL=v.forwardRef((e,o)=>{const{style:i,className:r,eventKey:c,warnKey:m,disabled:g,itemIcon:x,children:w,role:P,onMouseEnter:E,onMouseLeave:I,onClick:O,onKeyDown:$,onFocus:R,...A}=e,N=Sx(c),{prefixCls:F,onItemClick:D,disabled:W,overflowDisabled:U,itemIcon:j,selectedKeys:ee,onActive:te}=v.useContext(Yr),{_internalRenderMenuItem:Y}=v.useContext(sg),ae=`${F}-item`,he=v.useRef(),oe=v.useRef(),be=W||g,ye=Zn(o,oe),Me=Wl(c);process.env.NODE_ENV!=="production"&&m&&Wt(!1,"MenuItem should not leave undefined `key`.");const le=Se=>({key:c,keyPath:[...Me].reverse(),item:he.current,domEvent:Se}),we=x||j,{active:Fe,..._e}=Ax(c,be,E,I),st=ee.includes(c),ke=Ox(Me.length),Ne=Se=>{if(be)return;const je=le(Se);O==null||O(xh(je)),D(je)},rt=Se=>{if($==null||$(Se),Se.which===Zt.ENTER){const je=le(Se);O==null||O(xh(je)),D(je)}},We=Se=>{te(c),R==null||R(Se)},Ge={};e.role==="option"&&(Ge["aria-selected"]=st);let ze=v.createElement(UL,fu({ref:he,elementRef:ye,role:P===null?"none":P||"menuitem",tabIndex:g?null:-1,"data-menu-id":U&&N?null:N},Rn(A,["extra"]),_e,Ge,{component:"li","aria-disabled":g,style:{...ke,...i},className:Re(ae,{[`${ae}-active`]:Fe,[`${ae}-selected`]:st,[`${ae}-disabled`]:be},r),onClick:Ne,onKeyDown:rt,onFocus:We}),w,v.createElement(Rx,{props:{...e,isSelected:st},icon:we}));return Y&&(ze=Y(ze,e,{selected:st})),ze});function JL(e,o){const{eventKey:i}=e,r=vh(),c=Wl(i);return v.useEffect(()=>{if(r)return r.registerPath(i,c),()=>{r.unregisterPath(i,c)}},[c]),r?null:v.createElement(QL,fu({},e,{ref:o}))}const wh=v.forwardRef(JL);function fg(){return fg=Object.assign?Object.assign.bind():function(e){for(var o=1;o<arguments.length;o++){var i=arguments[o];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r])}return e},fg.apply(this,arguments)}const KL=({className:e,children:o,...i},r)=>{const{prefixCls:c,mode:m,rtl:g}=v.useContext(Yr);return v.createElement("ul",fg({className:Re(c,g&&`${c}-rtl`,`${c}-sub`,`${c}-${m==="inline"?"inline":"vertical"}`,e),role:"menu"},i,{"data-menu-list":!0,ref:r}),o)},pg=v.forwardRef(KL);process.env.NODE_ENV!=="production"&&(pg.displayName="SubMenuList");function mg(e,o){return oo(e).map((i,r)=>{var c;if(v.isValidElement(i)){const{key:m}=i;let g=((c=i.props)==null?void 0:c.eventKey)??m;const x=g==null;x&&(g=`tmp_key-${[...o,r].join("-")}`);const w={key:g,eventKey:g};return process.env.NODE_ENV!=="production"&&x&&(w.warnKey=!0),v.cloneElement(i,w)}return i})}const Qi={adjustX:1,adjustY:1},YL={topLeft:{points:["bl","tl"],overflow:Qi},topRight:{points:["br","tr"],overflow:Qi},bottomLeft:{points:["tl","bl"],overflow:Qi},bottomRight:{points:["tr","br"],overflow:Qi},leftTop:{points:["tr","tl"],overflow:Qi},leftBottom:{points:["br","bl"],overflow:Qi},rightTop:{points:["tl","tr"],overflow:Qi},rightBottom:{points:["bl","br"],overflow:Qi}},XL={topLeft:{points:["bl","tl"],overflow:Qi},topRight:{points:["br","tr"],overflow:Qi},bottomLeft:{points:["tl","bl"],overflow:Qi},bottomRight:{points:["tr","br"],overflow:Qi},rightTop:{points:["tr","tl"],overflow:Qi},rightBottom:{points:["br","bl"],overflow:Qi},leftTop:{points:["tl","tr"],overflow:Qi},leftBottom:{points:["bl","br"],overflow:Qi}};function zx(e,o,i){if(o)return o;if(i)return i[e]||i.other}const eA={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function tA({prefixCls:e,visible:o,children:i,popup:r,popupStyle:c,popupClassName:m,popupOffset:g,disabled:x,mode:w,onVisibleChange:P}){const{getPopupContainer:E,rtl:I,subMenuOpenDelay:O,subMenuCloseDelay:$,builtinPlacements:R,triggerSubMenuAction:A,forceSubMenuRender:N,rootClassName:F,motion:D,defaultMotions:W}=v.useContext(Yr),[U,j]=v.useState(!1),ee=I?{...XL,...R}:{...YL,...R},te=eA[w],Y=zx(w,D,W),ae=v.useRef(Y);w!=="inline"&&(ae.current=Y);const he={...ae.current,leavedClassName:`${e}-hidden`,removeOnLeave:!1,motionAppear:!0},oe=v.useRef();return v.useEffect(()=>(oe.current=yt(()=>{j(o)}),()=>{yt.cancel(oe.current)}),[o]),v.createElement(wm,{prefixCls:e,popupClassName:Re(`${e}-popup`,{[`${e}-rtl`]:I},m,F),stretch:w==="horizontal"?"minWidth":null,getPopupContainer:E,builtinPlacements:ee,popupPlacement:te,popupVisible:U,popup:r,popupStyle:c,popupAlign:g&&{offset:g},action:x?[]:[A],mouseEnterDelay:O,mouseLeaveDelay:$,onPopupVisibleChange:P,forceRender:N,popupMotion:he,fresh:!0},i)}function gg(){return gg=Object.assign?Object.assign.bind():function(e){for(var o=1;o<arguments.length;o++){var i=arguments[o];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r])}return e},gg.apply(this,arguments)}function nA({id:e,open:o,keyPath:i,children:r}){const c="inline",{prefixCls:m,forceSubMenuRender:g,motion:x,defaultMotions:w,mode:P}=v.useContext(Yr),E=v.useRef(!1);E.current=P===c;const[I,O]=v.useState(!E.current),$=E.current?o:!1;v.useEffect(()=>{E.current&&O(!1)},[P]);const R={...zx(c,x,w)};i.length>1&&(R.motionAppear=!1);const A=R.onVisibleChanged;return R.onVisibleChanged=N=>(!E.current&&!N&&O(!0),A==null?void 0:A(N)),I?null:v.createElement(cu,{mode:c,locked:!E.current},v.createElement(Ma,gg({visible:$},R,{forceRender:g,removeOnLeave:!1,leavedClassName:`${m}-hidden`}),({className:N,style:F})=>v.createElement(pg,{id:e,className:N,style:F},r)))}function pu(){return pu=Object.assign?Object.assign.bind():function(e){for(var o=1;o<arguments.length;o++){var i=arguments[o];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r])}return e},pu.apply(this,arguments)}const oA=v.forwardRef((e,o)=>{const{style:i,className:r,styles:c,classNames:m,title:g,eventKey:x,warnKey:w,disabled:P,internalPopupClose:E,children:I,itemIcon:O,expandIcon:$,popupClassName:R,popupOffset:A,popupStyle:N,onClick:F,onMouseEnter:D,onMouseLeave:W,onTitleClick:U,onTitleMouseEnter:j,onTitleMouseLeave:ee,popupRender:te,...Y}=e,ae=Sx(x),{prefixCls:he,mode:oe,openKeys:be,disabled:ye,overflowDisabled:Me,activeKey:le,selectedKeys:we,itemIcon:Fe,expandIcon:_e,onItemClick:st,onOpenChange:ke,onActive:Ne,popupRender:rt}=v.useContext(Yr),{_internalRenderSubMenuItem:We}=v.useContext(sg),{isSubPathKey:Ge}=v.useContext(kx),ze=Wl(),Se=`${he}-submenu`,je=ye||P,tt=v.useRef(),ut=v.useRef();process.env.NODE_ENV!=="production"&&w&&Wt(!1,"SubMenu should not leave undefined `key`.");const At=O??Fe,St=$??_e,Ft=be.includes(x),It=!Me&&Ft,Ve=Ge(we,x),{active:qt,...ht}=Ax(x,je,j,ee),[Kt,bn]=v.useState(!1),ln=Et=>{je||bn(Et)},Tn=Et=>{ln(!0),D==null||D({key:x,domEvent:Et})},Xt=Et=>{ln(!1),W==null||W({key:x,domEvent:Et})},xn=v.useMemo(()=>qt||(oe!=="inline"?Kt||Ge([le],x):!1),[oe,qt,le,Kt,x,Ge]),Yn=Ox(ze.length),Qt=Et=>{je||(U==null||U({key:x,domEvent:Et}),oe==="inline"&&ke(x,!Ft))},sn=hu(Et=>{F==null||F(xh(Et)),st(Et)}),Lo=Et=>{oe!=="inline"&&ke(x,Et)},wo=()=>{Ne(x)},lo=ae&&`${ae}-popup`,Co=v.useMemo(()=>v.createElement(Rx,{icon:oe!=="horizontal"?St:void 0,props:{...e,isOpen:It,isSubMenu:!0}},v.createElement("i",{className:`${Se}-arrow`})),[oe,St,e,It,Se]);let en=v.createElement("div",pu({role:"menuitem",style:Yn,className:`${Se}-title`,tabIndex:je?null:-1,ref:tt,title:typeof g=="string"?g:null,"data-menu-id":Me&&ae?null:ae,"aria-expanded":It,"aria-haspopup":!0,"aria-controls":lo,"aria-disabled":je,onClick:Qt,onFocus:wo},ht),g,Co);const at=v.useRef(oe);oe!=="inline"&&ze.length>1?at.current="vertical":at.current=oe;const ft=at.current,Nn=v.useMemo(()=>{const Et=v.createElement(cu,{classNames:m,styles:c,mode:ft==="horizontal"?"vertical":ft},v.createElement(pg,{id:lo,ref:ut},I)),cn=te||rt;return cn?cn(Et,{item:e,keys:ze}):Et},[te,rt,ze,lo,I,e,ft]);if(!Me){const Et=at.current;en=v.createElement(tA,{mode:Et,prefixCls:Se,visible:!E&&It&&oe!=="inline",popupClassName:R,popupOffset:A,popupStyle:N,popup:Nn,disabled:je,onVisibleChange:Lo},en)}let Ln=v.createElement(zs.Item,pu({ref:o,role:"none"},Y,{component:"li",style:i,className:Re(Se,`${Se}-${oe}`,r,{[`${Se}-open`]:It,[`${Se}-active`]:xn,[`${Se}-selected`]:Ve,[`${Se}-disabled`]:je}),onMouseEnter:Tn,onMouseLeave:Xt}),en,!Me&&v.createElement(nA,{id:lo,open:It,keyPath:ze},I));return We&&(Ln=We(Ln,e,{selected:Ve,active:xn,open:It,disabled:je})),v.createElement(cu,{classNames:m,styles:c,onItemClick:sn,mode:oe==="horizontal"?"vertical":oe,itemIcon:At,expandIcon:St},Ln)}),mu=v.forwardRef((e,o)=>{const{eventKey:i,children:r}=e,c=Wl(i),m=mg(r,c),g=vh();v.useEffect(()=>{if(g)return g.registerPath(i,c),()=>{g.unregisterPath(i,c)}},[c]);let x;return g?x=m:x=v.createElement(oA,pu({ref:o},e),m),v.createElement(Px.Provider,{value:c},x)});process.env.NODE_ENV!=="production"&&(mu.displayName="SubMenu");function vg({className:e,style:o}){const{prefixCls:i}=v.useContext(Yr);return vh()?null:v.createElement("li",{role:"separator",className:Re(`${i}-item-divider`,e),style:o})}function Ch(){return Ch=Object.assign?Object.assign.bind():function(e){for(var o=1;o<arguments.length;o++){var i=arguments[o];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r])}return e},Ch.apply(this,arguments)}const iA=v.forwardRef((e,o)=>{const{className:i,title:r,eventKey:c,children:m,...g}=e,{prefixCls:x,classNames:w,styles:P}=v.useContext(Yr),E=`${x}-item-group`;return v.createElement("li",Ch({ref:o,role:"presentation"},g,{onClick:I=>I.stopPropagation(),className:Re(E,i)}),v.createElement("div",{role:"presentation",className:Re(`${E}-title`,w==null?void 0:w.listTitle),style:P==null?void 0:P.listTitle,title:typeof r=="string"?r:void 0},r),v.createElement("ul",{role:"group",className:Re(`${E}-list`,w==null?void 0:w.list),style:P==null?void 0:P.list},m))}),Sh=v.forwardRef((e,o)=>{const{eventKey:i,children:r}=e,c=Wl(i),m=mg(r,c);return vh()?m:v.createElement(iA,Ch({ref:o},Rn(e,["warnKey"])),m)});process.env.NODE_ENV!=="production"&&(Sh.displayName="MenuItemGroup");function ql(){return ql=Object.assign?Object.assign.bind():function(e){for(var o=1;o<arguments.length;o++){var i=arguments[o];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r])}return e},ql.apply(this,arguments)}function yg(e,o,i){const{item:r,group:c,submenu:m,divider:g}=o;return(e||[]).map((x,w)=>{if(x&&typeof x=="object"){const{label:P,children:E,key:I,type:O,extra:$,...R}=x,A=I??`tmp-${w}`;return E||O==="group"?O==="group"?v.createElement(c,ql({key:A},R,{title:P}),yg(E,o,i)):v.createElement(m,ql({key:A},R,{title:P}),yg(E,o,i)):O==="divider"?v.createElement(g,ql({key:A},R)):v.createElement(r,ql({key:A},R,{extra:$}),P,(!!$||$===0)&&v.createElement("span",{className:`${i}-item-extra`},$))}return null}).filter(x=>x)}function Bx(e,o,i,r,c){let m=e;const g={divider:vg,item:wh,group:Sh,submenu:mu,...r};return o&&(m=yg(o,g,c)),mg(m,i)}function _g(){return _g=Object.assign?Object.assign.bind():function(e){for(var o=1;o<arguments.length;o++){var i=arguments[o];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r])}return e},_g.apply(this,arguments)}const za=[],gu=v.forwardRef((e,o)=>{var i;const{prefixCls:r="rc-menu",rootClassName:c,style:m,className:g,styles:x,classNames:w,tabIndex:P=0,items:E,children:I,direction:O,id:$,mode:R="vertical",inlineCollapsed:A,disabled:N,disabledOverflow:F,subMenuOpenDelay:D=.1,subMenuCloseDelay:W=.1,forceSubMenuRender:U,defaultOpenKeys:j,openKeys:ee,activeKey:te,defaultActiveFirst:Y,selectable:ae=!0,multiple:he=!1,defaultSelectedKeys:oe,selectedKeys:be,onSelect:ye,onDeselect:Me,inlineIndent:le=24,motion:we,defaultMotions:Fe,triggerSubMenuAction:_e="hover",builtinPlacements:st,itemIcon:ke,expandIcon:Ne,overflowedIndicator:rt="...",overflowedIndicatorPopupClassName:We,getPopupContainer:Ge,onClick:ze,onOpenChange:Se,onKeyDown:je,openAnimation:tt,openTransitionName:ut,_internalRenderMenuItem:At,_internalRenderSubMenuItem:St,_internalComponents:Ft,popupRender:It,...Ve}=e,[qt,ht]=v.useMemo(()=>[Bx(I,E,za,Ft,r),Bx(I,E,za,{},r)],[I,E,Ft]),[Kt,bn]=v.useState(!1),ln=v.useRef(),Tn=Jd($?`rc-menu-uuid-${$}`:"rc-menu-uuid"),Xt=O==="rtl";process.env.NODE_ENV!=="production"&&Wt(!tt&&!ut,"`openAnimation` and `openTransitionName` is removed. Please use `motion` or `defaultMotion` instead.");const[xn,Yn]=Lt(j,ee),Qt=xn||za,sn=(qe,Mt=!1)=>{function Qe(){Yn(qe),Se==null||Se(qe)}Mt?y.flushSync(Qe):Qe()},[Lo,wo]=v.useState(Qt),lo=v.useRef(!1),[Co,en]=v.useMemo(()=>(R==="inline"||R==="vertical")&&A?["vertical",A]:[R,!1],[R,A]),at=Co==="inline",[ft,Nn]=v.useState(Co),[Ln,Et]=v.useState(en);v.useEffect(()=>{Nn(Co),Et(en),lo.current&&(at?Yn(Lo):sn(za))},[Co,en]);const[cn,Vt]=v.useState(0),Cn=cn>=qt.length-1||ft!=="horizontal"||F;v.useEffect(()=>{at&&wo(Qt)},[Qt]),v.useEffect(()=>(lo.current=!0,()=>{lo.current=!1}),[]);const{registerPath:Jo,unregisterPath:li,refreshOverflowKeys:ko,isSubPathKey:$o,getKeyPath:bi,getKeys:Pn,getSubPathKeys:Ji}=GL(),cr=v.useMemo(()=>({registerPath:Jo,unregisterPath:li}),[Jo,li]),Ar=v.useMemo(()=>({isSubPathKey:$o}),[$o]);v.useEffect(()=>{ko(Cn?za:qt.slice(cn+1).map(qe=>qe.key))},[cn,Cn]);const[Di,Fi]=Lt(te||Y&&((i=qt[0])==null?void 0:i.key),te),Xi=hu(qe=>{Fi(qe)}),ur=hu(()=>{Fi(void 0)});d.useImperativeHandle(o,()=>({list:ln.current,focus:qe=>{var Mt,Qe;const _t=Pn(),{elements:Sn,key2element:fn,element2key:$n}=bh(_t,Tn),Ao=ug(ln.current,Sn);let Oo;Di&&_t.includes(Di)?Oo=Di:Oo=Ao[0]?$n.get(Ao[0]):(Mt=qt.find(co=>!co.props.disabled))==null?void 0:Mt.key;const Xo=fn.get(Oo);Oo&&Xo&&((Qe=Xo==null?void 0:Xo.focus)==null||Qe.call(Xo,qe))},findItem:({key:qe})=>{const Mt=Pn(),{key2element:Qe}=bh(Mt,Tn);return Qe.get(qe)||null}}));const[Ko,xi]=Lt(oe||[],be),bo=v.useMemo(()=>Array.isArray(Ko)?Ko:Ko==null?za:[Ko],[Ko]),pt=qe=>{if(ae){const{key:Mt}=qe,Qe=bo.includes(Mt);let _t;he?Qe?_t=bo.filter(fn=>fn!==Mt):_t=[...bo,Mt]:_t=[Mt],xi(_t);const Sn={...qe,selectedKeys:_t};Qe?Me==null||Me(Sn):ye==null||ye(Sn)}!he&&Qt.length&&ft!=="inline"&&sn(za)},Li=hu(qe=>{ze==null||ze(xh(qe)),pt(qe)}),Yo=hu((qe,Mt)=>{let Qe=Qt.filter(_t=>_t!==qe);if(Mt)Qe.push(qe);else if(ft!=="inline"){const _t=Ji(qe);Qe=Qe.filter(Sn=>!_t.has(Sn))}ss(Qt,Qe,!0)||sn(Qe,!0)}),q=VL(ft,Di,Xt,Tn,ln,Pn,bi,Fi,(qe,Mt)=>{const Qe=Mt??!Qt.includes(qe);Yo(qe,Qe)},je);v.useEffect(()=>{bn(!0)},[]);const Ee=v.useMemo(()=>({_internalRenderMenuItem:At,_internalRenderSubMenuItem:St}),[At,St]),Ze=ft!=="horizontal"||F?qt:qt.map((qe,Mt)=>v.createElement(cu,{key:qe.key,overflowDisabled:Mt>cn,classNames:w,styles:x},qe)),nt=v.createElement(zs,_g({id:$,ref:ln,prefixCls:`${r}-overflow`,component:"ul",itemComponent:wh,className:Re(r,`${r}-root`,`${r}-${ft}`,g,{[`${r}-inline-collapsed`]:Ln,[`${r}-rtl`]:Xt},c),dir:O,style:m,role:"menu",tabIndex:P,data:Ze,renderRawItem:qe=>qe,renderRawRest:qe=>{const Mt=qe.length,Qe=Mt?qt.slice(-Mt):null;return v.createElement(mu,{eventKey:hg,title:rt,disabled:Cn,internalPopupClose:Mt===0,popupClassName:We},Qe)},maxCount:ft!=="horizontal"||F?zs.INVALIDATE:zs.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:qe=>{Vt(qe)},onKeyDown:q},Ve));return v.createElement(sg.Provider,{value:Ee},v.createElement(wx.Provider,{value:Tn},v.createElement(cu,{prefixCls:r,rootClassName:c,classNames:w,styles:x,mode:ft,openKeys:Qt,rtl:Xt,disabled:N,motion:Kt?we:null,defaultMotions:Kt?Fe:null,activeKey:Di,onActive:Xi,onInactive:ur,selectedKeys:bo,inlineIndent:le,subMenuOpenDelay:D,subMenuCloseDelay:W,forceSubMenuRender:U,builtinPlacements:st,triggerSubMenuAction:_e,getPopupContainer:Ge,itemIcon:ke,expandIcon:Ne,onItemClick:Li,onOpenChange:Yo,popupRender:It},v.createElement(kx.Provider,{value:Ar},nt),v.createElement("div",{style:{display:"none"},"aria-hidden":!0},v.createElement(Ex.Provider,{value:cr},ht)))))});gu.Item=wh,gu.SubMenu=mu,gu.ItemGroup=Sh,gu.Divider=vg;var rA={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"};const sA=rA;function bg(){return bg=Object.assign?Object.assign.bind():function(e){for(var o=1;o<arguments.length;o++){var i=arguments[o];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r])}return e},bg.apply(this,arguments)}const aA=(e,o)=>v.createElement(Yc,bg({},e,{ref:o,icon:sA})),Nx=v.forwardRef(aA);process.env.NODE_ENV!=="production"&&(Nx.displayName="BarsOutlined");const lA=Nx,cA=v.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}}),uA=e=>{const{antCls:o,componentCls:i,colorText:r,footerBg:c,headerHeight:m,headerPadding:g,headerColor:x,footerPadding:w,fontSize:P,bodyBg:E,headerBg:I}=e;return{[i]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:E,"&, *":{boxSizing:"border-box"},[`&${i}-has-sider`]:{flexDirection:"row",[`> ${i}, > ${i}-content`]:{width:0}},[`${i}-header, &${i}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${i}-header`]:{height:m,padding:g,color:x,lineHeight:$t(m),background:I,[`${o}-menu`]:{lineHeight:"inherit"}},[`${i}-footer`]:{padding:w,color:r,fontSize:P,background:c},[`${i}-content`]:{flex:"auto",color:r,minHeight:0}}},$x=e=>{const{colorBgLayout:o,controlHeight:i,controlHeightLG:r,colorText:c,controlHeightSM:m,marginXXS:g,colorTextLightSolid:x,colorBgContainer:w}=e,P=r*1.25;return{colorBgHeader:"#001529",colorBgBody:o,colorBgTrigger:"#002140",bodyBg:o,headerBg:"#001529",headerHeight:i*2,headerPadding:`0 ${P}px`,headerColor:c,footerPadding:`${m}px ${P}px`,footerBg:o,siderBg:"#001529",triggerHeight:r+g*2,triggerBg:"#002140",triggerColor:x,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:w,lightTriggerBg:w,lightTriggerColor:c}},Dx=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]];hs("Layout",uA,$x,{deprecatedTokens:Dx});const dA=hs(["Layout","Sider"],e=>{const{componentCls:o,siderBg:i,motionDurationMid:r,motionDurationSlow:c,antCls:m,triggerHeight:g,triggerColor:x,triggerBg:w,headerHeight:P,zeroTriggerWidth:E,zeroTriggerHeight:I,borderRadiusLG:O,lightSiderBg:$,lightTriggerColor:R,lightTriggerBg:A,bodyBg:N}=e;return{[o]:{position:"relative",minWidth:0,background:i,transition:`all ${r}, background 0s`,"&-has-trigger":{paddingBottom:g},"&-right":{order:1},[`${o}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${m}-menu${m}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${o}-children`]:{overflow:"hidden"},[`${o}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:g,color:x,lineHeight:$t(g),textAlign:"center",background:w,cursor:"pointer",transition:`all ${r}`},[`${o}-zero-width-trigger`]:{position:"absolute",top:P,insetInlineEnd:e.calc(E).mul(-1).equal(),zIndex:1,width:E,height:I,color:x,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:i,borderRadius:`0 ${$t(O)} ${$t(O)} 0`,cursor:"pointer",transition:`background-color ${c} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${c}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(E).mul(-1).equal(),borderRadius:`${$t(O)} 0 0 ${$t(O)}`}},"&-light":{background:$,[`${o}-trigger`]:{color:R,background:A},[`${o}-zero-width-trigger`]:{color:R,background:A,border:`1px solid ${N}`,borderInlineStart:0}}}}},$x,{deprecatedTokens:Dx}),Fx={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},hA=e=>!Number.isNaN(Number.parseFloat(e))&&Number.isFinite(Number(e)),xg=v.createContext({}),fA=(()=>{let e=0;return(o="")=>(e+=1,`${o}${e}`)})(),pA=v.forwardRef((e,o)=>{const{prefixCls:i,className:r,trigger:c,children:m,defaultCollapsed:g=!1,theme:x="dark",style:w={},collapsible:P=!1,reverseArrow:E=!1,width:I=200,collapsedWidth:O=80,zeroWidthTriggerStyle:$,breakpoint:R,onCollapse:A,onBreakpoint:N,...F}=e,{siderHook:D}=d.useContext(cA),[W,U]=d.useState("collapsed"in e?e.collapsed:g),[j,ee]=d.useState(!1);d.useEffect(()=>{"collapsed"in e&&U(e.collapsed)},[e.collapsed]);const te=(ze,Se)=>{"collapsed"in e||U(ze),A==null||A(ze,Se)},{getPrefixCls:Y,direction:ae}=d.useContext(Gn),he=Y("layout-sider",i),[oe,be]=dA(he),ye=d.useRef(null);ye.current=ze=>{ee(ze.matches),N==null||N(ze.matches),W!==ze.matches&&te(ze.matches,"responsive")},d.useEffect(()=>{function ze(je){var tt;return(tt=ye.current)==null?void 0:tt.call(ye,je)}let Se;return typeof(window==null?void 0:window.matchMedia)<"u"&&R&&R in Fx&&(Se=window.matchMedia(`screen and (max-width: ${Fx[R]})`),typeof(Se==null?void 0:Se.addEventListener)=="function"&&Se.addEventListener("change",ze),ze(Se)),()=>{typeof(Se==null?void 0:Se.removeEventListener)=="function"&&Se.removeEventListener("change",ze)}},[R]),d.useEffect(()=>{const ze=fA("ant-sider-");return D.addSider(ze),()=>D.removeSider(ze)},[]);const Me=()=>{te(!W,"clickTrigger")},le=Rn(F,["collapsed"]),we=W?O:I,Fe=hA(we)?`${we}px`:String(we),_e=Number.parseFloat(String(O||0))===0?v.createElement("span",{onClick:Me,className:Re(`${he}-zero-width-trigger`,`${he}-zero-width-trigger-${E?"right":"left"}`),style:$},c||v.createElement(lA,null)):null,st=ae==="rtl"==!E,ke={expanded:st?v.createElement(Dm,null):v.createElement(ig,null),collapsed:st?v.createElement(ig,null):v.createElement(Dm,null)}[W?"collapsed":"expanded"],Ne=c!==null?_e||v.createElement("div",{className:`${he}-trigger`,onClick:Me,style:{width:Fe}},c||ke):null,rt={...w,flex:`0 0 ${Fe}`,maxWidth:Fe,minWidth:Fe,width:Fe},We=Re(he,`${he}-${x}`,{[`${he}-collapsed`]:!!W,[`${he}-has-trigger`]:P&&c!==null&&!_e,[`${he}-below`]:!!j,[`${he}-zero-width`]:Number.parseFloat(Fe)===0},r,oe,be),Ge=v.useMemo(()=>({siderCollapsed:W}),[W]);return v.createElement(xg.Provider,{value:Ge},v.createElement("aside",{className:We,...le,style:rt,ref:o},v.createElement("div",{className:`${he}-children`},m),P||j&&_e?Ne:null))});process.env.NODE_ENV!=="production"&&(pA.displayName="Sider");var mA={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"};const gA=mA;function wg(){return wg=Object.assign?Object.assign.bind():function(e){for(var o=1;o<arguments.length;o++){var i=arguments[o];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r])}return e},wg.apply(this,arguments)}const vA=(e,o)=>v.createElement(Yc,wg({},e,{ref:o,icon:gA})),Hx=v.forwardRef(vA);process.env.NODE_ENV!=="production"&&(Hx.displayName="EllipsisOutlined");const jx=Hx,Eh=d.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1,styles:null,classNames:null}),Zx=e=>{const{prefixCls:o,className:i,dashed:r,...c}=e,{getPrefixCls:m}=v.useContext(Gn),g=m("menu",o),x=Re({[`${g}-item-divider-dashed`]:!!r},i);return v.createElement(vg,{className:x,...c})},Vx=e=>{var o,i;const{className:r,children:c,icon:m,title:g,danger:x,extra:w}=e,{prefixCls:P,firstLevel:E,direction:I,disableMenuItemTitleTooltip:O,inlineCollapsed:$,styles:R,classNames:A}=v.useContext(Eh),N=ee=>{var te,Y;const ae=c==null?void 0:c[0],he=v.createElement("span",{className:Re(`${P}-title-content`,E?A==null?void 0:A.itemContent:(te=A==null?void 0:A.subMenu)==null?void 0:te.itemContent,{[`${P}-title-content-with-extra`]:!!w||w===0}),style:E?R==null?void 0:R.itemContent:(Y=R==null?void 0:R.subMenu)==null?void 0:Y.itemContent},c);return(!m||v.isValidElement(c)&&c.type==="span")&&c&&ee&&E&&typeof ae=="string"?v.createElement("div",{className:`${P}-inline-collapsed-noicon`},ae.charAt(0)):he},{siderCollapsed:F}=v.useContext(xg);let D=g;typeof g>"u"?D=E?c:"":g===!1&&(D="");const W={title:D};!F&&!$&&(W.title=null,W.open=!1);const U=oo(c).length;let j=v.createElement(wh,{...Rn(e,["title","icon","danger"]),className:Re(E?A==null?void 0:A.item:(o=A==null?void 0:A.subMenu)==null?void 0:o.item,{[`${P}-item-danger`]:x,[`${P}-item-only-child`]:(m?U+1:U)===1},r),style:{...E?R==null?void 0:R.item:(i=R==null?void 0:R.subMenu)==null?void 0:i.item,...e.style},title:typeof g=="string"?g:void 0},Os(m,ee=>{var te,Y;return{className:Re(`${P}-item-icon`,E?A==null?void 0:A.itemIcon:(te=A==null?void 0:A.subMenu)==null?void 0:te.itemIcon,ee.className),style:{...E?R==null?void 0:R.itemIcon:(Y=R==null?void 0:R.subMenu)==null?void 0:Y.itemIcon,...ee.style}}}),N($));return O||(j=v.createElement(bx,{...W,placement:I==="rtl"?"left":"right",classNames:{root:`${P}-inline-collapsed-tooltip`}},j)),j},Ph=v.createContext(null),yA=v.forwardRef((e,o)=>{const{children:i,...r}=e,c=v.useContext(Ph),m=v.useMemo(()=>({...c,...r}),[c,r.prefixCls,r.mode,r.selectable,r.rootClassName]),g=Ri(i),x=Zn(o,g?Jn(i):null);return v.createElement(Ph.Provider,{value:m},v.createElement(ax,{space:!0},g?v.cloneElement(i,{ref:x}):i))}),_A=e=>{const{componentCls:o,motionDurationSlow:i,horizontalLineHeight:r,colorSplit:c,lineWidth:m,lineType:g,itemPaddingInline:x}=e;return{[`${o}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${$t(m)} ${g} ${c}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${o}-item, ${o}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:x},[`> ${o}-item:hover,
|
|
212
|
+
> ${o}-item-active,
|
|
213
|
+
> ${o}-submenu ${o}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${o}-item, ${o}-submenu-title`]:{transition:[`border-color ${i}`,`background-color ${i}`].join(",")},[`${o}-submenu-arrow`]:{display:"none"}}}},bA=({componentCls:e,menuArrowOffset:o,calc:i})=>({[`${e}-rtl`]:{direction:"rtl"},[`${e}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${e}-rtl${e}-vertical,
|
|
214
|
+
${e}-submenu-rtl ${e}-vertical`]:{[`${e}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${$t(i(o).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${$t(o)})`}}}}),Wx=e=>sm(e),qx=(e,o)=>{const{componentCls:i,itemColor:r,itemSelectedColor:c,subMenuItemSelectedColor:m,groupTitleColor:g,itemBg:x,subMenuItemBg:w,itemSelectedBg:P,activeBarHeight:E,activeBarWidth:I,activeBarBorderWidth:O,motionDurationSlow:$,motionEaseInOut:R,motionEaseOut:A,itemPaddingInline:N,motionDurationMid:F,itemHoverColor:D,lineType:W,colorSplit:U,itemDisabledColor:j,dangerItemColor:ee,dangerItemHoverColor:te,dangerItemSelectedColor:Y,dangerItemActiveBg:ae,dangerItemSelectedBg:he,popupBg:oe,itemHoverBg:be,itemActiveBg:ye,menuSubMenuBg:Me,horizontalItemSelectedColor:le,horizontalItemSelectedBg:we,horizontalItemBorderRadius:Fe,horizontalItemHoverBg:_e}=e;return{[`${i}-${o}, ${i}-${o} > ${i}`]:{color:r,background:x,[`&${i}-root:focus-visible`]:{...Wx(e)},[`${i}-item`]:{"&-group-title, &-extra":{color:g}},[`${i}-submenu-selected > ${i}-submenu-title`]:{color:m},[`${i}-item, ${i}-submenu-title`]:{color:r,[`&:not(${i}-item-disabled):focus-visible`]:{...Wx(e)}},[`${i}-item-disabled, ${i}-submenu-disabled`]:{color:`${j} !important`},[`${i}-item:not(${i}-item-selected):not(${i}-submenu-selected)`]:{[`&:hover, > ${i}-submenu-title:hover`]:{color:D}},[`&:not(${i}-horizontal)`]:{[`${i}-item:not(${i}-item-selected)`]:{"&:hover":{backgroundColor:be},"&:active":{backgroundColor:ye}},[`${i}-submenu-title`]:{"&:hover":{backgroundColor:be},"&:active":{backgroundColor:ye}}},[`${i}-item-danger`]:{color:ee,[`&${i}-item:hover`]:{[`&:not(${i}-item-selected):not(${i}-submenu-selected)`]:{color:te}},[`&${i}-item:active`]:{background:ae}},[`${i}-item a`]:{"&, &:hover":{color:"inherit"}},[`${i}-item-selected`]:{color:c,[`&${i}-item-danger`]:{color:Y},"a, a:hover":{color:"inherit"}},[`& ${i}-item-selected`]:{backgroundColor:P,[`&${i}-item-danger`]:{backgroundColor:he}},[`&${i}-submenu > ${i}`]:{backgroundColor:Me},[`&${i}-popup > ${i}`]:{backgroundColor:oe},[`&${i}-submenu-popup > ${i}`]:{backgroundColor:oe},[`&${i}-horizontal`]:{...o==="dark"?{borderBottom:0}:{},[`> ${i}-item, > ${i}-submenu`]:{top:O,marginTop:e.calc(O).mul(-1).equal(),marginBottom:0,borderRadius:Fe,"&::after":{position:"absolute",insetInline:N,bottom:0,borderBottom:`${$t(E)} solid transparent`,transition:`border-color ${$} ${R}`,content:'""'},"&:hover, &-active, &-open":{background:_e,"&::after":{borderBottomWidth:E,borderBottomColor:le}},"&-selected":{color:le,backgroundColor:we,"&:hover":{backgroundColor:we},"&::after":{borderBottomWidth:E,borderBottomColor:le}}}},[`&${i}-root`]:{[`&${i}-inline, &${i}-vertical`]:{borderInlineEnd:`${$t(O)} ${W} ${U}`}},[`&${i}-inline`]:{[`${i}-sub${i}-inline`]:{background:w},[`${i}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${$t(I)} solid ${c}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${F} ${A}`,`opacity ${F} ${A}`].join(","),content:'""'},[`&${i}-item-danger`]:{"&::after":{borderInlineEndColor:Y}}},[`${i}-selected, ${i}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${F} ${R}`,`opacity ${F} ${R}`].join(",")}}}}}},Gx=e=>{const{componentCls:o,itemHeight:i,itemMarginInline:r,padding:c,menuArrowSize:m,marginXS:g,itemMarginBlock:x,itemWidth:w,itemPaddingInline:P}=e,E=e.calc(m).add(c).add(g).equal();return{[`${o}-item`]:{position:"relative",overflow:"hidden"},[`${o}-item, ${o}-submenu-title`]:{height:i,lineHeight:$t(i),paddingInline:P,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:x,width:w},[`> ${o}-item,
|
|
215
|
+
> ${o}-submenu > ${o}-submenu-title`]:{height:i,lineHeight:$t(i)},[`${o}-item-group-list ${o}-submenu-title,
|
|
216
|
+
${o}-submenu-title`]:{paddingInlineEnd:E}}},xA=e=>{const{componentCls:o,iconCls:i,itemHeight:r,colorTextLightSolid:c,dropdownWidth:m,controlHeightLG:g,motionEaseOut:x,paddingXL:w,itemMarginInline:P,fontSizeLG:E,motionDurationFast:I,motionDurationSlow:O,paddingXS:$,boxShadowSecondary:R,collapsedWidth:A,collapsedIconSize:N}=e,F={height:r,lineHeight:$t(r),listStylePosition:"inside",listStyleType:"disc"};return[{[o]:{"&-inline, &-vertical":{[`&${o}-root`]:{boxShadow:"none"},...Gx(e)}},[`${o}-submenu-popup`]:{[`${o}-vertical`]:{...Gx(e),boxShadow:R}}},{[`${o}-submenu-popup ${o}-vertical${o}-sub`]:{minWidth:m,maxHeight:`calc(100vh - ${$t(e.calc(g).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${o}-inline`]:{width:"100%",[`&${o}-root`]:{[`${o}-item, ${o}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${O}`,`background-color ${O}`,`padding ${I} ${x}`].join(","),[`> ${o}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${o}-sub${o}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${o}-submenu > ${o}-submenu-title`]:F,[`& ${o}-item-group-title`]:{paddingInlineStart:w}},[`${o}-item`]:F}},{[`${o}-inline-collapsed`]:{width:A,[`&${o}-root`]:{[`${o}-item, ${o}-submenu ${o}-submenu-title`]:{[`> ${o}-inline-collapsed-noicon`]:{fontSize:E,textAlign:"center"}}},[`> ${o}-item,
|
|
217
|
+
> ${o}-item-group > ${o}-item-group-list > ${o}-item,
|
|
218
|
+
> ${o}-item-group > ${o}-item-group-list > ${o}-submenu > ${o}-submenu-title,
|
|
219
|
+
> ${o}-submenu > ${o}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${$t(e.calc(N).div(2).equal())} - ${$t(P)})`,textOverflow:"clip",[`
|
|
220
|
+
${o}-submenu-arrow,
|
|
221
|
+
${o}-submenu-expand-icon
|
|
222
|
+
`]:{opacity:0},[`${o}-item-icon, ${i}`]:{margin:0,fontSize:N,lineHeight:$t(r),"+ span":{display:"inline-block",opacity:0}}},[`${o}-item-icon, ${i}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${o}-item-icon, ${i}`]:{display:"none"},"a, a:hover":{color:c}},[`${o}-item-group-title`]:{...lk,paddingInline:$}}}]},Ux=e=>{const{componentCls:o,motionDurationSlow:i,motionDurationMid:r,motionEaseInOut:c,motionEaseOut:m,iconCls:g,iconSize:x,iconMarginInlineEnd:w}=e;return{[`${o}-item, ${o}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${i}`,`background-color ${i}`,`padding calc(${i} + 0.1s) ${c}`].join(","),[`${o}-item-icon, ${g}`]:{minWidth:x,fontSize:x,transition:[`font-size ${r} ${m}`,`margin ${i} ${c}`,`color ${i}`].join(","),"+ span":{marginInlineStart:w,opacity:1,transition:[`opacity ${i} ${c}`,`margin ${i}`,`color ${i}`].join(",")}},[`${o}-item-icon`]:{...rm()},[`&${o}-item-only-child`]:{[`> ${g}, > ${o}-item-icon`]:{marginInlineEnd:0}}},[`${o}-item-disabled, ${o}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important",cursor:"not-allowed",pointerEvents:"none"},[`> ${o}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Qx=e=>{const{componentCls:o,motionDurationSlow:i,motionEaseInOut:r,borderRadius:c,menuArrowSize:m,menuArrowOffset:g}=e;return{[`${o}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:m,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${i} ${r}, opacity ${i}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(m).mul(.6).equal(),height:e.calc(m).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:c,transition:[`background-color ${i} ${r}`,`transform ${i} ${r}`,`top ${i} ${r}`,`color ${i} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${$t(e.calc(g).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${$t(g)})`}}}}},wA=e=>{const{antCls:o,componentCls:i,fontSize:r,motionDurationSlow:c,motionDurationMid:m,motionEaseInOut:g,paddingXS:x,padding:w,colorSplit:P,lineWidth:E,zIndexPopup:I,borderRadiusLG:O,subMenuItemBorderRadius:$,menuArrowSize:R,menuArrowOffset:A,lineType:N,groupTitleLineHeight:F,groupTitleFontSize:D}=e;return[{"":{[i]:{...ab(),"&-hidden":{display:"none"}}},[`${i}-submenu-hidden`]:{display:"none"}},{[i]:{...Pl(e),...ab(),marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${c} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${i}-item`]:{flex:"none"}},[`${i}-item, ${i}-submenu, ${i}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${i}-item-group-title`]:{padding:`${$t(x)} ${$t(w)}`,fontSize:D,lineHeight:F,transition:`all ${c}`},[`&-horizontal ${i}-submenu`]:{transition:[`border-color ${c} ${g}`,`background-color ${c} ${g}`].join(",")},[`${i}-submenu, ${i}-submenu-inline`]:{transition:[`border-color ${c} ${g}`,`background-color ${c} ${g}`,`padding ${m} ${g}`].join(",")},[`${i}-submenu ${i}-sub`]:{cursor:"initial",transition:[`background-color ${c} ${g}`,`padding ${c} ${g}`].join(",")},[`${i}-title-content`]:{transition:`color ${c}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${o}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${i}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:e.padding}},[`${i}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${i}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:P,borderStyle:N,borderWidth:0,borderTopWidth:E,marginBlock:E,padding:0,"&-dashed":{borderStyle:"dashed"}},...Ux(e),[`${i}-item-group`]:{[`${i}-item-group-list`]:{margin:0,padding:0,[`${i}-item, ${i}-submenu-title`]:{paddingInline:`${$t(e.calc(r).mul(2).equal())} ${$t(w)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:I,borderRadius:O,boxShadow:"none",transformOrigin:"0 0",[`&${i}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${i}`]:{borderRadius:O,...Ux(e),...Qx(e),[`${i}-item, ${i}-submenu > ${i}-submenu-title`]:{borderRadius:$},[`${i}-submenu-title::after`]:{transition:`transform ${c} ${g}`}}},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:e.paddingXS}},...Qx(e),[`&-inline-collapsed ${i}-submenu-arrow,
|
|
223
|
+
&-inline ${i}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${$t(A)})`},"&::after":{transform:`rotate(45deg) translateX(${$t(e.calc(A).mul(-1).equal())})`}},[`${i}-submenu-open${i}-submenu-inline > ${i}-submenu-title > ${i}-submenu-arrow`]:{transform:`translateY(${$t(e.calc(R).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${$t(e.calc(A).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${$t(A)})`}}}},{[`${o}-layout-header`]:{[i]:{lineHeight:"inherit"}}}]},CA=e=>{const{colorPrimary:o,colorError:i,colorTextDisabled:r,colorErrorBg:c,colorText:m,colorTextDescription:g,colorBgContainer:x,colorFillAlter:w,colorFillContent:P,lineWidth:E,lineWidthBold:I,controlItemBgActive:O,colorBgTextHover:$,controlHeightLG:R,lineHeight:A,colorBgElevated:N,marginXXS:F,padding:D,fontSize:W,controlHeightSM:U,fontSizeLG:j,colorTextLightSolid:ee,colorErrorHover:te}=e,Y=e.activeBarWidth??0,ae=e.activeBarBorderWidth??E,he=e.itemMarginInline??e.marginXXS,oe=new Wo(ee).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:m,itemColor:m,colorItemTextHover:m,itemHoverColor:m,colorItemTextHoverHorizontal:o,horizontalItemHoverColor:o,colorGroupTitle:g,groupTitleColor:g,colorItemTextSelected:o,itemSelectedColor:o,subMenuItemSelectedColor:o,colorItemTextSelectedHorizontal:o,horizontalItemSelectedColor:o,colorItemBg:x,itemBg:x,colorItemBgHover:$,itemHoverBg:$,colorItemBgActive:P,itemActiveBg:O,colorSubItemBg:w,subMenuItemBg:w,colorItemBgSelected:O,itemSelectedBg:O,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:Y,colorActiveBarHeight:I,activeBarHeight:I,colorActiveBarBorderSize:E,activeBarBorderWidth:ae,colorItemTextDisabled:r,itemDisabledColor:r,colorDangerItemText:i,dangerItemColor:i,colorDangerItemTextHover:i,dangerItemHoverColor:i,colorDangerItemTextSelected:i,dangerItemSelectedColor:i,colorDangerItemBgActive:c,dangerItemActiveBg:c,colorDangerItemBgSelected:c,dangerItemSelectedBg:c,itemMarginInline:he,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:R,groupTitleLineHeight:A,collapsedWidth:R*2,popupBg:N,itemMarginBlock:F,itemPaddingInline:D,horizontalLineHeight:`${R*1.15}px`,iconSize:W,iconMarginInlineEnd:U-W,collapsedIconSize:j,groupTitleFontSize:W,darkItemDisabledColor:new Wo(ee).setA(.25).toRgbString(),darkItemColor:oe,darkDangerItemColor:i,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:ee,darkItemSelectedBg:o,darkDangerItemSelectedBg:i,darkItemHoverBg:"transparent",darkGroupTitleColor:oe,darkItemHoverColor:ee,darkDangerItemHoverColor:te,darkDangerItemSelectedColor:ee,darkDangerItemActiveBg:i,itemWidth:Y?`calc(100% + ${ae}px)`:`calc(100% - ${he*2}px)`}},SA=(e,o=e,i=!0)=>hs("Menu",r=>{const{colorBgElevated:c,controlHeightLG:m,fontSize:g,darkItemColor:x,darkDangerItemColor:w,darkItemBg:P,darkSubMenuItemBg:E,darkItemSelectedColor:I,darkItemSelectedBg:O,darkDangerItemSelectedBg:$,darkItemHoverBg:R,darkGroupTitleColor:A,darkItemHoverColor:N,darkItemDisabledColor:F,darkDangerItemHoverColor:D,darkDangerItemSelectedColor:W,darkDangerItemActiveBg:U,popupBg:j,darkPopupBg:ee}=r,te=r.calc(g).div(7).mul(5).equal(),Y=Yi(r,{menuArrowSize:te,menuHorizontalHeight:r.calc(m).mul(1.15).equal(),menuArrowOffset:r.calc(te).mul(.25).equal(),menuSubMenuBg:c,calc:r.calc,popupBg:j}),ae=Yi(Y,{itemColor:x,itemHoverColor:N,groupTitleColor:A,itemSelectedColor:I,subMenuItemSelectedColor:I,itemBg:P,popupBg:ee,subMenuItemBg:E,itemActiveBg:"transparent",itemSelectedBg:O,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:R,itemDisabledColor:F,dangerItemColor:w,dangerItemHoverColor:D,dangerItemSelectedColor:W,dangerItemActiveBg:U,dangerItemSelectedBg:$,menuSubMenuBg:E,horizontalItemSelectedColor:I,horizontalItemSelectedBg:O});return[wA(Y),_A(Y),xA(Y),qx(Y,"light"),qx(ae,"dark"),bA(Y),_M(Y),sh(Y,"slide-up"),sh(Y,"slide-down"),Fm(Y,"zoom-big")]},CA,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:i,unitless:{groupTitleLineHeight:!0}})(e,o),Jx=e=>{var o,i,r,c,m,g;const{popupClassName:x,icon:w,title:P,theme:E}=e,I=v.useContext(Eh),{prefixCls:O,inlineCollapsed:$,theme:R,classNames:A,styles:N}=I,F=Wl();let D;if(!w)D=$&&!F.length&&P&&typeof P=="string"?v.createElement("div",{className:`${O}-inline-collapsed-noicon`},P.charAt(0)):v.createElement("span",{className:`${O}-title-content`},P);else{const j=v.isValidElement(P)&&P.type==="span";D=v.createElement(v.Fragment,null,Os(w,ee=>({className:Re(ee.className,`${O}-item-icon`,A==null?void 0:A.itemIcon),style:{...ee.style,...N==null?void 0:N.itemIcon}})),j?P:v.createElement("span",{className:`${O}-title-content`},P))}const W=v.useMemo(()=>({...I,firstLevel:!1}),[I]),[U]=mm("Menu");return v.createElement(Eh.Provider,{value:W},v.createElement(mu,{...Rn(e,["icon"]),title:D,classNames:{list:(o=A==null?void 0:A.subMenu)==null?void 0:o.list,listTitle:(i=A==null?void 0:A.subMenu)==null?void 0:i.itemTitle},styles:{list:(r=N==null?void 0:N.subMenu)==null?void 0:r.list,listTitle:(c=N==null?void 0:N.subMenu)==null?void 0:c.itemTitle},popupClassName:Re(O,x,(m=A==null?void 0:A.popup)==null?void 0:m.root,`${O}-${E||R}`),popupStyle:{zIndex:U,...e.popupStyle,...(g=N==null?void 0:N.popup)==null?void 0:g.root}}))};function Cg(e){return e===null||e===!1}const EA={item:Vx,submenu:Jx,divider:Zx},PA=d.forwardRef((e,o)=>{var i;const r=v.useContext(Ph),c=r||{},{prefixCls:m,className:g,style:x,theme:w="light",expandIcon:P,_internalDisableMenuItemTitleTooltip:E,inlineCollapsed:I,siderCollapsed:O,rootClassName:$,mode:R,selectable:A,onClick:N,overflowedIndicatorPopupClassName:F,classNames:D,styles:W,...U}=e,{menu:j}=v.useContext(Gn),{getPrefixCls:ee,getPopupContainer:te,direction:Y,className:ae,style:he,classNames:oe,styles:be}=jt("menu"),ye=ee(),Me=Rn(U,["collapsedWidth"]);if(process.env.NODE_ENV!=="production"){const At=mo("Menu");process.env.NODE_ENV!=="production"&&At(!("inlineCollapsed"in e&&R!=="inline"),"usage","`inlineCollapsed` should only be used when `mode` is inline."),At.deprecated("items"in e&&!e.children,"children","items")}(i=c.validator)==null||i.call(c,{mode:R});const le=gt((...At)=>{var St;N==null||N(...At),(St=c.onClick)==null||St.call(c)}),we=c.mode||R,Fe=A??c.selectable,_e=I??O,st={...e,mode:we,inlineCollapsed:_e,selectable:Fe,theme:w},[ke,Ne]=Ta([oe,D],[be,W],{props:st},{popup:{_default:"root"},subMenu:{_default:"item"}}),rt={horizontal:{motionName:`${ye}-slide-up`},inline:DI(ye),other:{motionName:`${ye}-zoom-big`}},We=ee("menu",m||c.prefixCls),Ge=Tl(We),[ze,Se]=SA(We,Ge,!r),je=Re(`${We}-${w}`,ae,g),tt=v.useMemo(()=>{var At;if(typeof P=="function"||Cg(P))return P||null;if(typeof c.expandIcon=="function"||Cg(c.expandIcon))return c.expandIcon||null;if(typeof(j==null?void 0:j.expandIcon)=="function"||Cg(j==null?void 0:j.expandIcon))return(j==null?void 0:j.expandIcon)||null;const St=P??(c==null?void 0:c.expandIcon)??(j==null?void 0:j.expandIcon);return Os(St,{className:Re(`${We}-submenu-expand-icon`,v.isValidElement(St)?(At=St.props)==null?void 0:At.className:void 0)})},[P,c==null?void 0:c.expandIcon,j==null?void 0:j.expandIcon,We]),ut=v.useMemo(()=>({prefixCls:We,inlineCollapsed:_e||!1,direction:Y,firstLevel:!0,theme:w,mode:we,disableMenuItemTitleTooltip:E,classNames:ke,styles:Ne}),[We,_e,Y,E,w,we,ke,Ne]);return v.createElement(Ph.Provider,{value:null},v.createElement(Eh.Provider,{value:ut},v.createElement(gu,{getPopupContainer:te,overflowedIndicator:v.createElement(jx,null),overflowedIndicatorPopupClassName:Re(We,`${We}-${w}`,F),classNames:{list:ke.list,listTitle:ke.itemTitle},styles:{list:Ne.list,listTitle:Ne.itemTitle},mode:we,selectable:Fe,onClick:le,...Me,inlineCollapsed:_e,style:{...Ne.root,...he,...x},className:je,prefixCls:We,direction:Y,defaultMotions:rt,expandIcon:tt,ref:o,rootClassName:Re($,ze,c.rootClassName,Se,Ge,ke.root),_internalComponents:EA})))}),Gl=d.forwardRef((e,o)=>{const i=d.useRef(null),r=v.useContext(xg);return d.useImperativeHandle(o,()=>({menu:i.current,focus:c=>{var m;(m=i.current)==null||m.focus(c)}})),v.createElement(PA,{ref:i,...e,...r})});Gl.Item=Vx,Gl.SubMenu=Jx,Gl.Divider=Zx,Gl.ItemGroup=Sh,process.env.NODE_ENV!=="production"&&(Gl.displayName="Menu");const kA=Gl,IA=e=>{const{componentCls:o,menuCls:i,colorError:r,colorTextLightSolid:c}=e,m=`${i}-item`;return{[`${o}, ${o}-menu-submenu`]:{[`${i} ${m}`]:{[`&${m}-danger:not(${m}-disabled)`]:{color:r,"&:hover":{color:c,backgroundColor:r}}}}}},MA=e=>{const{componentCls:o,menuCls:i,zIndexPopup:r,dropdownArrowDistance:c,sizePopupArrow:m,antCls:g,iconCls:x,motionDurationMid:w,paddingBlock:P,fontSize:E,dropdownEdgeChildPadding:I,colorTextDisabled:O,fontSizeIcon:$,controlPaddingHorizontal:R,colorBgElevated:A}=e;return[{[o]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:"block","&::before":{position:"absolute",insetBlock:e.calc(m).div(2).sub(c).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${g}-btn`]:{[`& > ${x}-down, & > ${g}-btn-icon > ${x}-down`]:{fontSize:$}},[`${o}-wrap`]:{position:"relative",[`${g}-btn > ${x}-down`]:{fontSize:$},[`${x}-down::before`]:{transition:`transform ${w}`}},[`${o}-wrap-open`]:{[`${x}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${g}-slide-down-enter${g}-slide-down-enter-active${o}-placement-bottomLeft,
|
|
224
|
+
&${g}-slide-down-appear${g}-slide-down-appear-active${o}-placement-bottomLeft,
|
|
225
|
+
&${g}-slide-down-enter${g}-slide-down-enter-active${o}-placement-bottom,
|
|
226
|
+
&${g}-slide-down-appear${g}-slide-down-appear-active${o}-placement-bottom,
|
|
227
|
+
&${g}-slide-down-enter${g}-slide-down-enter-active${o}-placement-bottomRight,
|
|
228
|
+
&${g}-slide-down-appear${g}-slide-down-appear-active${o}-placement-bottomRight`]:{animationName:B0},[`&${g}-slide-up-enter${g}-slide-up-enter-active${o}-placement-topLeft,
|
|
229
|
+
&${g}-slide-up-appear${g}-slide-up-appear-active${o}-placement-topLeft,
|
|
230
|
+
&${g}-slide-up-enter${g}-slide-up-enter-active${o}-placement-top,
|
|
231
|
+
&${g}-slide-up-appear${g}-slide-up-appear-active${o}-placement-top,
|
|
232
|
+
&${g}-slide-up-enter${g}-slide-up-enter-active${o}-placement-topRight,
|
|
233
|
+
&${g}-slide-up-appear${g}-slide-up-appear-active${o}-placement-topRight`]:{animationName:$0},[`&${g}-slide-down-leave${g}-slide-down-leave-active${o}-placement-bottomLeft,
|
|
234
|
+
&${g}-slide-down-leave${g}-slide-down-leave-active${o}-placement-bottom,
|
|
235
|
+
&${g}-slide-down-leave${g}-slide-down-leave-active${o}-placement-bottomRight`]:{animationName:N0},[`&${g}-slide-up-leave${g}-slide-up-leave-active${o}-placement-topLeft,
|
|
236
|
+
&${g}-slide-up-leave${g}-slide-up-leave-active${o}-placement-top,
|
|
237
|
+
&${g}-slide-up-leave${g}-slide-up-leave-active${o}-placement-topRight`]:{animationName:D0}}},px(e,A,{arrowPlacement:{top:!0,bottom:!0}}),{[`${o} ${i}`]:{position:"relative",margin:0},[`${i}-submenu-popup`]:{position:"absolute",zIndex:r,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${o}, ${o}-menu-submenu`]:{...Pl(e),[i]:{padding:I,listStyleType:"none",backgroundColor:A,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,...am(e),"&:empty":{padding:0,boxShadow:"none"},[`${i}-item-group-title`]:{padding:`${$t(P)} ${$t(R)}`,color:e.colorTextDescription,transition:`all ${w}`},[`${i}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${i}-item-icon`]:{minWidth:E,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${i}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${w}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${i}-item-extra`]:{paddingInlineStart:e.padding,marginInlineStart:"auto",fontSize:e.fontSizeSM,color:e.colorTextDescription}},[`${i}-item, ${i}-submenu-title`]:{display:"flex",margin:0,padding:`${$t(P)} ${$t(R)}`,color:e.colorText,fontWeight:"normal",fontSize:E,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${w}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover},...am(e),"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:O,cursor:"not-allowed","&:hover":{color:O,backgroundColor:A,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${$t(e.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${o}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${o}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorIcon,fontSize:$,fontStyle:"normal"}}},[`${i}-item-group-list`]:{margin:`0 ${$t(e.marginXS)}`,padding:0,listStyle:"none"},[`${i}-submenu-title`]:{paddingInlineEnd:e.calc(R).add(e.fontSizeSM).equal()},[`${i}-submenu-vertical`]:{position:"relative"},[`${i}-submenu${i}-submenu-disabled ${o}-menu-submenu-title`]:{[`&, ${o}-menu-submenu-arrow-icon`]:{color:O,backgroundColor:A,cursor:"not-allowed"}},[`${i}-submenu-selected ${o}-menu-submenu-title`]:{color:e.colorPrimary}}}},[sh(e,"slide-up"),sh(e,"slide-down"),z0(e,"move-up"),z0(e,"move-down"),Fm(e,"zoom-big")]]},TA=hs("Dropdown",e=>{const{marginXXS:o,sizePopupArrow:i,paddingXXS:r,componentCls:c}=e,m=Yi(e,{menuCls:`${c}-menu`,dropdownArrowDistance:e.calc(i).div(2).add(o).equal(),dropdownEdgeChildPadding:r});return[MA(m),IA(m)]},e=>({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2,...ng({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0}),...hx(e)}),{resetStyle:!1}),kh=e=>{const{menu:o,arrow:i,prefixCls:r,children:c,trigger:m,disabled:g,dropdownRender:x,popupRender:w,getPopupContainer:P,overlayClassName:E,rootClassName:I,overlayStyle:O,open:$,onOpenChange:R,mouseEnterDelay:A=.15,mouseLeaveDelay:N=.1,autoAdjustOverflow:F=!0,placement:D="",transitionName:W,classNames:U,styles:j,destroyPopupOnHide:ee,destroyOnHidden:te}=e,{getPrefixCls:Y,direction:ae,getPopupContainer:he,className:oe,style:be,classNames:ye,styles:Me}=jt("dropdown"),le={...e,mouseEnterDelay:A,mouseLeaveDelay:N,autoAdjustOverflow:F},[we,Fe]=Ta([ye,U],[Me,j],{props:le}),_e={...be,...O,...Fe.root},st=w||x,ke=mo("Dropdown");process.env.NODE_ENV!=="production"&&(Object.entries({dropdownRender:"popupRender",destroyPopupOnHide:"destroyOnHidden",overlayClassName:"classNames.root",overlayStyle:"styles.root"}).forEach(([xn,Yn])=>{ke.deprecated(!(xn in e),xn,Yn)}),D.includes("Center")&&ke.deprecated(!D.includes("Center"),`placement: ${D}`,`placement: ${D.slice(0,D.indexOf("Center"))}`));const Ne=v.useMemo(()=>{const xn=Y();return W!==void 0?W:D.includes("top")?`${xn}-slide-down`:`${xn}-slide-up`},[Y,D,W]),rt=v.useMemo(()=>D?D.includes("Center")?D.slice(0,D.indexOf("Center")):D:ae==="rtl"?"bottomRight":"bottomLeft",[D,ae]),We=Y("dropdown",r),Ge=Tl(We),[ze,Se]=TA(We,Ge),[,je]=ra(),tt=v.Children.only($L(c)?v.createElement("span",null,c):c),ut=Os(tt,{className:Re(`${We}-trigger`,{[`${We}-rtl`]:ae==="rtl"},tt.props.className),disabled:tt.props.disabled??g}),At=g?[]:m,St=!!(At!=null&&At.includes("contextMenu")),[Ft,It]=Lt(!1,$),Ve=gt(xn=>{R==null||R(xn,{source:"trigger"}),It(xn)}),qt=Re(E,I,ze,Se,Ge,oe,we.root,{[`${We}-rtl`]:ae==="rtl"}),ht=gx({arrowPointAtCenter:typeof i=="object"&&i.pointAtCenter,autoAdjustOverflow:F,offset:je.marginXXS,arrowWidth:i?je.sizePopupArrow:0,borderRadius:je.borderRadius}),Kt=gt(()=>{o!=null&&o.selectable&&o!=null&&o.multiple||(R==null||R(!1,{source:"menu"}),It(!1))}),bn=()=>{const xn=Rn(we,["root"]),Yn=Rn(Fe,["root"]);let Qt;return o!=null&&o.items&&(Qt=v.createElement(kA,{...o,classNames:{...xn,subMenu:{...xn}},styles:{...Yn,subMenu:{...Yn}}})),st&&(Qt=st(Qt)),Qt=v.Children.only(typeof Qt=="string"?v.createElement("span",null,Qt):Qt),v.createElement(yA,{prefixCls:`${We}-menu`,rootClassName:Re(Se,Ge),expandIcon:v.createElement("span",{className:`${We}-menu-submenu-arrow`},ae==="rtl"?v.createElement(ig,{className:`${We}-menu-submenu-arrow-icon`}):v.createElement(Dm,{className:`${We}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Kt,validator:({mode:sn})=>{process.env.NODE_ENV!=="production"&&ke(!sn||sn==="vertical","usage",`mode="${sn}" is not supported for Dropdown's Menu.`)}},Qt)},[ln,Tn]=mm("Dropdown",_e.zIndex);let Xt=v.createElement(NL,{alignPoint:St,...Rn(e,["rootClassName","onOpenChange"]),mouseEnterDelay:A,mouseLeaveDelay:N,visible:Ft,builtinPlacements:ht,arrow:!!i,overlayClassName:qt,prefixCls:We,getPopupContainer:P||he,transitionName:Ne,trigger:At,overlay:bn,placement:rt,onVisibleChange:Ve,overlayStyle:{..._e,zIndex:ln},autoDestroy:te??ee},ut);return ln&&(Xt=v.createElement(pm.Provider,{value:Tn},Xt)),Xt},LA=cL(kh,"align",void 0,"dropdown",e=>e),AA=e=>v.createElement(LA,{...e},v.createElement("span",null));kh._InternalPanelDoNotUseOrYouWillBeFired=AA,process.env.NODE_ENV!=="production"&&(kh.displayName="Dropdown");const Kx=kh;function Sg(){return Sg=Object.assign?Object.assign.bind():function(e){for(var o=1;o<arguments.length;o++){var i=arguments[o];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r])}return e},Sg.apply(this,arguments)}const OA=d.forwardRef((e,o)=>{const{prefixCls:i="rc-checkbox",className:r,style:c,checked:m,disabled:g,defaultChecked:x=!1,type:w="checkbox",title:P,onChange:E,...I}=e,O=d.useRef(null),$=d.useRef(null),[R,A]=Lt(x,m);d.useImperativeHandle(o,()=>({focus:D=>{var W;(W=O.current)==null||W.focus(D)},blur:()=>{var D;(D=O.current)==null||D.blur()},input:O.current,nativeElement:$.current}));const N=Re(i,r,{[`${i}-checked`]:R,[`${i}-disabled`]:g}),F=D=>{g||("checked"in e||A(D.target.checked),E==null||E({target:{...e,type:w,checked:D.target.checked},stopPropagation(){D.stopPropagation()},preventDefault(){D.preventDefault()},nativeEvent:D.nativeEvent}))};return v.createElement("span",{className:N,title:P,style:c,ref:$},v.createElement("input",Sg({},I,{className:`${i}-input`,ref:O,onChange:F,disabled:g,checked:!!R,type:w})),v.createElement("span",{className:`${i}-inner`}))});function RA(e){const o=d.useRef(null),i=()=>{yt.cancel(o.current),o.current=null};return[()=>{i(),o.current=yt(()=>{o.current=null})},r=>{o.current&&(r.stopPropagation(),i()),e==null||e(r)}]}const zA=e=>{const{checkboxCls:o}=e,i=`${o}-wrapper`;return[{[`${o}-group`]:{...Pl(e),display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}},[i]:{...Pl(e),display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${i}`]:{marginInlineStart:0},[`&${i}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}},[o]:{...Pl(e),position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${o}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${o}-inner`]:sm(e)},[`${o}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${$t(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:e.calc(e.checkboxSize).div(14).mul(5).equal(),height:e.calc(e.checkboxSize).div(14).mul(8).equal(),border:`${$t(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}}},{[`
|
|
238
|
+
${i}:not(${i}-disabled),
|
|
239
|
+
${o}:not(${o}-disabled)
|
|
240
|
+
`]:{[`&:hover ${o}-inner`]:{borderColor:e.colorPrimary}},[`${i}:not(${i}-disabled)`]:{[`&:hover ${o}-checked:not(${o}-disabled) ${o}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${o}-checked:not(${o}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${o}-checked`]:{[`${o}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}}},[`
|
|
241
|
+
${i}-checked:not(${i}-disabled),
|
|
242
|
+
${o}-checked:not(${o}-disabled)
|
|
243
|
+
`]:{[`&:hover ${o}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[o]:{"&-indeterminate":{"&":{[`${o}-inner`]:{backgroundColor:`${e.colorBgContainer}`,borderColor:`${e.colorBorder}`,"&:after":{top:"50%",insetInlineStart:"50%",width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${o}-inner`]:{backgroundColor:`${e.colorBgContainer}`,borderColor:`${e.colorPrimary}`}}}}},{[`${i}-disabled`]:{cursor:"not-allowed"},[`${o}-disabled`]:{[`&, ${o}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${o}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${o}-indeterminate ${o}-inner::after`]:{background:e.colorTextDisabled}}}]};function BA(e,o){const i=Yi(o,{checkboxCls:`.${e}`,checkboxSize:o.controlInteractiveSize});return zA(i)}const Yx=hs("Checkbox",(e,{prefixCls:o})=>[BA(o,e)]),Xx=d.createContext(null),NA=(e,o)=>{const{prefixCls:i,className:r,rootClassName:c,children:m,indeterminate:g=!1,style:x,onMouseEnter:w,onMouseLeave:P,skipGroup:E=!1,disabled:I,classNames:O,styles:$,...R}=e,{getPrefixCls:A,direction:N,className:F,style:D,classNames:W,styles:U}=jt("checkbox"),j=v.useContext(Xx),{isFormItemInput:ee}=v.useContext(fh),te=v.useContext(Sm),Y=((j==null?void 0:j.disabled)||I)??te,ae={...e,indeterminate:g,disabled:Y},[he,oe]=Ta([W,O],[U,$],{props:ae}),be=v.useRef(R.value),ye=v.useRef(null),Me=jn(o,ye);if(process.env.NODE_ENV!=="production"){const Ge=mo("Checkbox");process.env.NODE_ENV!=="production"&&Ge("checked"in R||!!j||!("value"in R),"usage","`value` is not a valid prop, do you mean `checked`?")}v.useEffect(()=>{j==null||j.registerValue(R.value)},[]),v.useEffect(()=>{if(!E)return R.value!==be.current&&(j==null||j.cancelValue(be.current),j==null||j.registerValue(R.value),be.current=R.value),()=>j==null?void 0:j.cancelValue(R.value)},[R.value]),v.useEffect(()=>{var Ge;(Ge=ye.current)!=null&&Ge.input&&(ye.current.input.indeterminate=g)},[g]);const le=A("checkbox",i),we=Tl(le),[Fe,_e]=Yx(le,we),st={...R};j&&!E&&(st.onChange=(...Ge)=>{R.onChange&&R.onChange.apply(R,Ge),j.toggleOption&&j.toggleOption({label:m,value:R.value})},st.name=j.name,st.checked=j.value.includes(R.value));const ke=Re(`${le}-wrapper`,{[`${le}-rtl`]:N==="rtl",[`${le}-wrapper-checked`]:st.checked,[`${le}-wrapper-disabled`]:Y,[`${le}-wrapper-in-form-item`]:ee},F,r,he.root,c,_e,we,Fe),Ne=Re(he.icon,{[`${le}-indeterminate`]:g},Tm,Fe),[rt,We]=RA(st.onClick);return v.createElement(b0,{component:"Checkbox",disabled:Y},v.createElement("label",{className:ke,style:{...oe.root,...D,...x},onMouseEnter:w,onMouseLeave:P,onClick:rt},v.createElement(OA,{...st,onClick:We,prefixCls:le,className:Ne,style:oe.icon,disabled:Y,ref:Me}),Ml(m)&&v.createElement("span",{className:Re(`${le}-label`,he.label),style:oe.label},m)))},ew=v.forwardRef(NA);process.env.NODE_ENV!=="production"&&(ew.displayName="Checkbox");const tw=ew,$A=v.forwardRef((e,o)=>{const{defaultValue:i,children:r,options:c=[],prefixCls:m,className:g,rootClassName:x,style:w,onChange:P,role:E="group",...I}=e,{getPrefixCls:O,direction:$}=v.useContext(Gn),[R,A]=v.useState(I.value||i||[]),[N,F]=v.useState([]);v.useEffect(()=>{"value"in I&&A(I.value||[])},[I.value]);const D=v.useMemo(()=>c.map(le=>typeof le=="string"||typeof le=="number"?{label:le,value:le}:le),[c]),W=le=>{F(we=>we.filter(Fe=>Fe!==le))},U=le=>{F(we=>[].concat(Ho(we),[le]))},j=le=>{const we=R.indexOf(le.value),Fe=Ho(R);we===-1?Fe.push(le.value):Fe.splice(we,1),"value"in I||A(Fe),P==null||P(Fe.filter(_e=>N.includes(_e)).sort((_e,st)=>{const ke=D.findIndex(rt=>rt.value===_e),Ne=D.findIndex(rt=>rt.value===st);return ke-Ne}))},ee=O("checkbox",m),te=`${ee}-group`,Y=Tl(ee),[ae,he]=Yx(ee,Y),oe=Rn(I,["value","disabled"]),be=c.length?D.map(le=>v.createElement(tw,{prefixCls:ee,key:le.value.toString(),disabled:"disabled"in le?le.disabled:I.disabled,value:le.value,checked:R.includes(le.value),onChange:le.onChange,className:Re(`${te}-item`,le.className),style:le.style,title:le.title,id:le.id,required:le.required},le.label)):r,ye=v.useMemo(()=>({toggleOption:j,value:R,disabled:I.disabled,name:I.name,registerValue:U,cancelValue:W}),[j,R,I.disabled,I.name,U,W]),Me=Re(te,{[`${te}-rtl`]:$==="rtl"},g,x,he,Y,ae);return v.createElement("div",{className:Me,style:w,role:E,...oe,ref:o},v.createElement(Xx.Provider,{value:ye},be))}),Ih=tw;Ih.Group=$A,Ih.__ANT_CHECKBOX=!0,process.env.NODE_ENV!=="production"&&(Ih.displayName="Checkbox");const DA=Ih,FA=e=>{const{componentCls:o,borderRadius:i,paddingSM:r,colorBorder:c,paddingXS:m,fontSizeLG:g,fontSizeSM:x,borderRadiusLG:w,borderRadiusSM:P,colorBgContainerDisabled:E,lineWidth:I,antCls:O}=e,[$,R]=sa(O,"space");return{[o]:[{display:"inline-flex",alignItems:"center",gap:0,paddingInline:r,margin:0,borderWidth:I,borderStyle:"solid",borderRadius:i,"&:hover":{zIndex:0},[`&${o}-disabled`]:{color:e.colorTextDisabled},"&-large":{fontSize:g,borderRadius:w},"&-small":{paddingInline:m,borderRadius:P,fontSize:x},"&-compact-last-item":{borderEndStartRadius:0,borderStartStartRadius:0},"&-compact-first-item":{borderEndEndRadius:0,borderStartEndRadius:0},"&-compact-item:not(:first-child):not(:last-child)":{borderRadius:0},"&-compact-item:not(:last-child)":{borderInlineEndWidth:0},"&-compact-item:not(:first-child)":{borderInlineStartWidth:0}},{[$("addon-border-color")]:c,[$("addon-background")]:E,[$("addon-border-color-outlined")]:c,[$("addon-background-filled")]:E,borderColor:R("addon-border-color"),background:R("addon-background"),"&-variant-outlined":{[$("addon-border-color")]:R("addon-border-color-outlined")},"&-variant-filled":{[$("addon-border-color")]:"transparent",[$("addon-background")]:R("addon-background-filled"),[`&${o}-disabled`]:{[$("addon-border-color")]:c,[$("addon-background")]:E}},"&-variant-borderless":{border:"none",background:"transparent"},"&-variant-underlined":{border:"none",background:"transparent"}},{"&-status-error":{[$("addon-border-color-outlined")]:e.colorError,[$("addon-background-filled")]:e.colorErrorBg,color:e.colorError},"&-status-warning":{[$("addon-border-color-outlined")]:e.colorWarning,[$("addon-background-filled")]:e.colorWarningBg,color:e.colorWarning}}]}},HA=hs(["Space","Addon"],e=>[FA(e),V0(e,{focus:!1})]),jA=d.forwardRef((e,o)=>{const{className:i,children:r,style:c,prefixCls:m,variant:g="outlined",disabled:x,status:w,...P}=e,{getPrefixCls:E,direction:I}=d.useContext(Gn),O=E("space-addon",m),[$,R]=HA(O),{compactItemClassnames:A,compactSize:N}=Am(O,I),F=gL(O,w),D=Re(O,$,A,R,`${O}-variant-${g}`,F,{[`${O}-${N}`]:N,[`${O}-disabled`]:x},i);return d.createElement("div",{ref:o,className:D,style:c,...P},r)});function nw(e){return["small","middle","large"].includes(e)}function ow(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const iw=d.createContext({latestIndex:0}),ZA=iw.Provider,VA=e=>{const{className:o,prefix:i,index:r,children:c,separator:m,style:g,classNames:x,styles:w}=e,{latestIndex:P}=v.useContext(iw);return Ml(c)?v.createElement(v.Fragment,null,v.createElement("div",{className:o,style:g},c),r<P&&m&&v.createElement("span",{className:Re(`${i}-item-separator`,x==null?void 0:x.separator),style:w==null?void 0:w.separator},m)):null},WA=e=>{const{componentCls:o,antCls:i}=e;return{[o]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${o}-item:empty`]:{display:"none"},[`${o}-item > ${i}-badge-not-a-wrapper:only-child`]:{display:"block"}}}},qA=e=>{const{componentCls:o}=e;return{[o]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}},GA=hs("Space",e=>{const o=Yi(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[WA(o),qA(o)]},()=>({}),{resetStyle:!1}),Mh=v.forwardRef((e,o)=>{const{getPrefixCls:i,direction:r,size:c,className:m,style:g,classNames:x,styles:w}=jt("space"),{size:P=c??"small",align:E,className:I,rootClassName:O,children:$,direction:R,orientation:A,prefixCls:N,split:F,separator:D,style:W,vertical:U,wrap:j=!1,classNames:ee,styles:te,...Y}=e,[ae,he]=Array.isArray(P)?P:[P,P],oe=nw(he),be=nw(ae),ye=ow(he),Me=ow(ae),le=oo($,{keepEmpty:!0}),[we,Fe]=Fb(A,U,R),_e=E===void 0&&!Fe?"center":E,st=D??F,ke=i("space",N),[Ne,rt]=GA(ke),We={...e,size:P,orientation:we,align:_e},[Ge,ze]=Ta([x,ee],[w,te],{props:We}),Se=Re(ke,m,Ne,`${ke}-${we}`,{[`${ke}-rtl`]:r==="rtl",[`${ke}-align-${_e}`]:_e,[`${ke}-gap-row-${he}`]:oe,[`${ke}-gap-col-${ae}`]:be},I,O,rt,Ge.root),je=Re(`${ke}-item`,Ge.item),tt=le.map((St,Ft)=>{const It=(St==null?void 0:St.key)||`${je}-${Ft}`;return v.createElement(VA,{prefix:ke,classNames:Ge,styles:ze,className:je,key:It,index:Ft,separator:st,style:ze.item},St)});if(process.env.NODE_ENV!=="production"){const St=mo("Space");[["direction","orientation"],["split","separator"]].forEach(([Ft,It])=>{St.deprecated(!(Ft in e),Ft,It)})}const ut=v.useMemo(()=>({latestIndex:le.reduce((St,Ft,It)=>Ml(Ft)?It:St,0)}),[le]);if(le.length===0)return null;const At={};return j&&(At.flexWrap="wrap"),!be&&Me&&(At.columnGap=ae),!oe&&ye&&(At.rowGap=he),v.createElement("div",{ref:o,className:Se,style:{...At,...ze.root,...g,...W},...Y},v.createElement(ZA,{value:ut},tt))});Mh.Compact=JI,Mh.Addon=jA,process.env.NODE_ENV!=="production"&&(Mh.displayName="Space");const UA=Mh,rw=e=>{const{getPopupContainer:o,getPrefixCls:i,direction:r}=v.useContext(Gn),{prefixCls:c,type:m="default",danger:g,disabled:x,loading:w,onClick:P,htmlType:E,children:I,className:O,menu:$,arrow:R,autoFocus:A,trigger:N,align:F,open:D,onOpenChange:W,placement:U,getPopupContainer:j,href:ee,icon:te=v.createElement(jx,null),title:Y,buttonsRender:ae=ut=>ut,mouseEnterDelay:he,mouseLeaveDelay:oe,overlayClassName:be,overlayStyle:ye,destroyOnHidden:Me,destroyPopupOnHide:le,dropdownRender:we,popupRender:Fe,..._e}=e,st=i("dropdown",c),ke=`${st}-button`,Ne={menu:$,arrow:R,autoFocus:A,align:F,disabled:x,trigger:x?[]:N,onOpenChange:W,getPopupContainer:j||o,mouseEnterDelay:he,mouseLeaveDelay:oe,classNames:{root:be},styles:{root:ye},destroyOnHidden:Me,popupRender:Fe||we},{compactSize:rt,compactItemClassnames:We}=Am(st,r),Ge=Re(ke,We,O);"destroyPopupOnHide"in e&&(Ne.destroyPopupOnHide=le),"open"in e&&(Ne.open=D),"placement"in e?Ne.placement=U:Ne.placement=r==="rtl"?"bottomLeft":"bottomRight",process.env.NODE_ENV!=="production"&&mo("Dropdown.Button").deprecated(!1,"Dropdown.Button","Space.Compact + Dropdown + Button");const ze=v.createElement(W0,{type:m,danger:g,disabled:x,loading:w,onClick:P,htmlType:E,href:ee,title:Y},I),Se=v.createElement(W0,{type:m,danger:g,icon:te}),[je,tt]=ae([ze,Se]);return v.createElement(UA.Compact,{className:Ge,size:rt,block:!0,..._e},je,v.createElement(Kx,{...Ne},tt))};rw.__ANT_BUTTON=!0;const QA=rw,sw=Kx;sw.Button=QA;const JA=sw,aw=({isRollMap:e,setIsRollMap:o,rollIcon:i,normalIcon:r})=>xe.jsx(bx,{title:e?"切换为普通地图":"切换为卷帘",placement:"left",children:xe.jsx("div",{className:"switch-map-mode",onClick:()=>o(!e),children:e?xe.jsx("img",{src:i,alt:"卷帘模式",className:"map-icon"}):xe.jsx("img",{src:r,alt:"普通模式",className:"map-icon"})})}),KA="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAHj0lEQVR4AezajXFTORSGYZxKTCWbdGCoYLcSoBLoAHeQbCWkEry6O5NMHIfY91q6OpIexhr/RD/nvJ/eMWS4+eAPAgj8kQBB/ojGDxD48IEgbgEC7xAgyDtw/AgBgrgDCLxDoKAg75zqRwg0QoAgjQSlzDoECFKHu1MbIUCQRoJSZh0CBKnD3amNEGhTkEbgKrN9AgRpP0MdFCRAkIJwbd0+AYK0n6EOChIgSEG4tm6fAEFeZegtAi8JEOQlDa8ReEWAIK+AeIvASwLFBdntdtvdbne7MzAocAdeXuYSr4sIkmTYfv78+funT58Om83mVxr3xgaDTX4G6Y79mu7adOeaECQVeptk+HU4HP4uUXDDeyq9DIHtdNfSnbtPdy/7ncv+DTIVWoaDXRF4l8A23b0vSZLtu7Nm/jCrIOnr7n7m+aYjkJPA9ubm5kvODbMKkgq7TcMDgWoE0l+3st7BbILk/mqrRtjBrRP4/7emuZrIJkgqKOvf/dJ+HhcTMLEUgZyClKrRvghUI0CQaugd3AIBgrSQkhqrESBINfQOboEAQVpIqWaNg59dVZD0O+uvadwNOP6Ze+8SI6zmQsswv6ogqf5/9/v9w36wkfp+TGPuA6u5xDLMry1IhhZsgUA5AgQpx9bOHRAgSAchttpCC3UTpIWU1FiNAEGqoXdwCwQI0kJKaqxGgCDV0Du4BQIEaSElNc4lkG0+QbKhtFGPBAjSY6p6ykaAINlQ2qhHAgTpMVU9ZSNAkGwobdQjgVNBeuxSTwgsJECQheAsG4MAQcbIWZcLCRBkITjLxiBAkDFy1uVCAqsKsrBGyxCoRoAg1dA7uAUCBGkhJTVWI0CQaugd3AIBgrSQkhqrEehFkGoAHdw3AYL0na/uriRAkCsBWt43AYL0na/uriRAkCsBWt43AYKczdeEkQkQZOT09X6WAEHOIjJhZAIEGTl9vZ8lQJCziEwYmQBBaqbv7PAECBI+IgXWJECQmvSdHZ4AQcJHpMCaBAhSk76zwxMgSPiIlhVoVR4CBMnD0S6dEiBIp8FqKw8BguThaJdOCRCk02C1lYcAQfJwHGmXoXolyFBxa3YuAYLMJWb+UAQIMlTcmp1LgCBziZk/FAGCDBV39Gbj1UeQeJmoKBABggQKQynxCBAkXiYqCkSAIIHCUEo8AgSJl4mKShBYuCdBFoKzbAwCBBkjZ10uJECQheAsG4MAQcbIWZcLCRBkITjLxiBwiSBjkNAlAm8QIMgbUHyEwBMBgjyR8IzAGwQI8gYUHyHwRIAgTyQ8I/AGgcqCvFGRjxAIRIAggcJQSjwCBImXiYoCESBIoDCUEo8AQeJloqJABPoVJBBkpbRLgCDtZqfyFQgQZAXIjmiXAEHazU7lKxAgyAqQHdEuAYIsyM6ScQgQZJysdbqAAEEWQLNkHAIEGSdrnS4gQJAF0CwZhwBBYmWtmmAECBIsEOXEIkCQWHmoJhgBggQLRDmxCBAkVh6qCUaAIMECKVeOnZcQIMgSatYMQ4Agw0St0SUECLKEmjXDECDIMFFrdAkBgiyhZs0xgY7fEaTjcLV2PQGCXM/QDh0TIEjH4WrtegIEuZ6hHTomQJCOw+2htdo9EKR2As4PTYAgoeNRXG0CBKmdgPNDEyBI6HgUV5sAQWon4PxaBC46lyAXYTJpVAIEGTV5fV9EgCAXYTJpVAIEGTV5fV9EgCAXYTJpVALLBBmVlr6HI0CQ4SLX8BwCBJlDy9zhCBBkuMg1PIcAQebQMnc4AuEEGS4BDYcmQJDQ8SiuNgGC1E7A+aEJECR0PIqrTYAgtRNwfmgCIwkSOgjFxSRAkJi5qCoIAYIECUIZMQkQJGYuqgpCgCBBglBGTAIEyZKLTXolQJBek9VXFgIEyYLRJr0SIEivyeorCwGCZMFok14JECR6suqrSoAgVfE7PDoBgkRPSH1VCRCkKn6HRydAkOgJqa8qAYJUxV/3cKefJ0CQ84zMGJgAQQYOX+vnCRDkPCMzBiZAkIHD1/p5ArUF2e52u9vdYCPF8lcacx8tscqWaYK0hFValudRVZDNZvM9jfsBx9e58SVGWM2FlmF+VUEy1G8LBIoSIEhRvDZvnQBBWk9Q/UUJEKQoXpvnJ7DujgRZl7fTGiOQU5DHxnpXbr8Est3FbILs9/tsRfWbm87WIJDzLmYTZGo8/a7+x/RsIFCLQO47mFWQ379/f6sFxrkITASuuoPTBq9GVkGmr7bD4fDPqzO8RWANAo/p7t1NdzDnYVkFmQpLBf5IhX5MY/Z/p5jWGwjMJDD92/fh58+fH9Pde5i59uz07IJMJ6ZCH9P4loreJFEmWe7Ss3E4YJCZQbpjH9O4m+5diVFEkJeFJlEmWR7Ss7HfY5CZwcu7VuJ1cUFKFG1PBNYikEuQtep1DgKrEiDIqrgd1hoBgrSWmHpXJUCQVXE7rDUCBGktMfWuSqABQVbl4TAEjggQ5AiHNwgcEyDIMQ/vEDgiQJAjHN4gcEyAIMc8vEPgiMDYghyh8AaBUwIEOWXiEwSeCRDkGYUXCJwSIMgpE58g8EyAIM8ovEDglABBTplk+cQmfRD4DwAA//90pefjAAAABklEQVQDAHXI/gmG3IivAAAAAElFTkSuQmCC",YA="data:image/png;base64,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",XA="data:image/png;base64,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",eO=d.forwardRef(({mapView:e,isRollMap:o,leftLayerGroupRef:i,rightLayerGroupRef:r,sideBySideControl:c,baseMapList:m,baseMapSelectIcon:g})=>{const[x,w]=d.useState(m),[P,E]=d.useState(!1),I=(R,A)=>{if(!e)return;const N=x.map(F=>F.id===R.id?{...F,checked:A}:F);if(w(N),A){const F=Pe.tileLayer(R.mapUrl,{id:R.id,maxZoom:18,zIndex:1,pane:"rightPane",zoomOffset:R.zoomOffset||0});r.current.addLayer(F),c&&c.current.setRightLayers(r.current.getLayers())}else r.current.eachLayer(F=>{F.options.id===R.id&&r.current.removeLayer(F)})},O=()=>{if(!e||!r.current)return;r.current.clearLayers();const R=x.find(A=>A.checked);if(R){const A=Pe.tileLayer(R.mapUrl,{id:R.id,pane:"rightPane",zoomOffset:R.zoomOffset||0});r.current.addLayer(A)}};d.useEffect(()=>{O()},[]);const $=()=>xe.jsx("div",{style:{marginLeft:"32px",marginTop:"-34px",backgroundColor:"white",display:"flex",flexDirection:"column",width:"200px",borderRadius:"5px",padding:"10px",gap:"10px",zIndex:1e3},children:x.map(R=>xe.jsx(DA,{onChange:A=>I(R,A.target.checked),checked:R.checked,style:{width:"200px"},children:xe.jsx("span",{children:R.name})},R.id))});return xe.jsx("div",{id:"select-base-map",children:xe.jsx(JA,{open:P,onOpenChange:E,dropdownRender:$,children:xe.jsx("div",{onClick:R=>{R.preventDefault(),E(!P)},className:"select-base-map-button",children:xe.jsx("img",{src:g,alt:"底图选择器",width:25,height:25})})})})}),tO={center:[35.8617,104.1954],zoom:4},nO=d.forwardRef(({mapSettings:e=tO,rollIcon:o=KA,normalIcon:i=YA,baseMapSelectIcon:r=XA,baseMapList:c=[],onIsRollMapChange:m},g)=>{const x=d.useRef(null),w=d.useRef(null),[P,E]=d.useState(),I=d.useRef(null),O=d.useRef(null),[$,R]=d.useState(e.zoom),A=d.useRef(null),N=d.useRef(null),[F,D]=d.useState(!1),W=d.useRef(null),[U,j]=d.useState(Date.now()),ee=d.useRef(F);d.useImperativeHandle(g,()=>({addLeftLayers:Y=>{!w.current||!I.current||(Y.forEach(ae=>{ae&&ae.addTo(I.current)}),A.current&&A.current.setLeftLayers(I.current.getLayers()))},addRightLayers:Y=>{!w.current||!O.current||(Y.forEach(ae=>{ae&&ae.addTo(O.current)}),A.current&&A.current.setRightLayers(O.current.getLayers()))},clearLeftLayers:()=>{var Y;(Y=I.current)==null||Y.clearLayers()},clearRightLayers:()=>{var Y;(Y=O.current)==null||Y.clearLayers()},getMapInstance:()=>w.current,toggleRollMap:Y=>{var ae,he,oe;if(D(Y),Y){const be=((ae=I.current)==null?void 0:ae.getLayers())||[],ye=((he=O.current)==null?void 0:he.getLayers())||[];A.current=new Pe.Control.sideBySide(be,ye),A.current.addTo(w.current)}else(oe=A.current)==null||oe.remove(),A.current=null},getIsRollMap:()=>ee.current,getLeftLayersGroup:()=>I.current,getRightLayersGroup:()=>O.current,getMapRef:()=>w.current})),d.useEffect(()=>{if(!x.current||w.current)return;const Y=Pe.map(x.current,{zoomControl:!1,doubleClickZoom:!1,attributionControl:!1,crs:Pe.CRS.EPSG4326}).setView(e.center,e.zoom);Y.invalidateSize(),Y.createPane("leftPane").style.zIndex="300",Y.createPane("rightPane").style.zIndex="300",I.current=Pe.layerGroup().addTo(Y),O.current=Pe.layerGroup().addTo(Y);const ae=Pe.Control.extend({options:{position:"topleft"},onAdd:ye=>{const Me=Pe.DomUtil.create("div","leaflet-control-container"),le=Al(Me);le.render(xe.jsx(Ut,{zoomLevel:$}));const we=()=>{const Fe=ye.getZoom();R(Fe),le.render(xe.jsx(Ut,{zoomLevel:Fe}))};return ye.on("zoomend",we),Me}}),he=Pe.Control.extend({options:{position:"topleft"},onAdd:ye=>{const Me=Pe.DomUtil.create("div","leaflet-control-container"),le=Al(Me);return W.current=le,le.render(xe.jsx(eO,{mapView:ye,isRollMap:F,baseMapSelectIcon:r,leftLayerGroupRef:I,rightLayerGroupRef:O,sideBySideControl:A,baseMapList:c},U)),Me}}),oe=Pe.Control.extend({options:{position:"topleft"},onAdd:ye=>{const Me=Pe.DomUtil.create("div","leaflet-control-container"),le=Al(Me);return W.current=le,le.render(xe.jsx(aw,{isRollMap:F,setIsRollMap:D,rollIcon:o,normalIcon:i},U)),Me}}),be=()=>E(Y.getZoom());return Y.on("zoomend",be),Y.addControl(new ae),Pe.control.zoom({position:"topleft"}).addTo(Y),Y.addControl(new he),Y.addControl(new oe),w.current=Y,()=>{const ye=A.current,Me=N.current;if(ye&&Me){ye.off("dividermove",Me),Y.off("move",Me);const le=Y.getPane("leftPane"),we=Y.getPane("rightPane");le&&(le.style.clip=""),we&&(we.style.clip="")}Y.off("zoomend",be),Y.remove(),w.current=null}},[]);const te=Y=>{var ae,he,oe;if(D(Y),ee.current=Y,!!w.current)if(Y){const Me=((ae=I.current)==null?void 0:ae.getLayers())||[],le=((he=O.current)==null?void 0:he.getLayers())||[];A.current=Pe.control.sideBySide(Me,le),A.current.addTo(w.current),A.current.on("dividermove",()=>{var we;(we=w.current)==null||we.eachLayer(Fe=>{Fe instanceof Pe.Marker})})}else{(oe=A.current)==null||oe.remove(),A.current=null;var be=w.current.getPane("leftPane"),ye=w.current.getPane("rightPane");be&&(be.style.clip=""),ye&&(ye.style.clip="")}};return d.useEffect(()=>{w.current&&(te(F),m==null||m(F),W.current&&W.current.render(xe.jsx(aw,{isRollMap:F,setIsRollMap:D,rollIcon:o,normalIcon:i},Date.now())))},[F,m]),xe.jsx("div",{ref:x,style:{height:"100%",width:"100%"}})});h.default=nO,Object.defineProperties(h,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})})(qh,qh.exports);var tC=qh.exports;const nC=Ug(tC);function Ro(s){const u=X.useRef(s);return u.current=s,X.useCallback((...d)=>{var y;return(y=u.current)==null?void 0:y.call(u,...d)},[])}function hr(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}const Xg=process.env.NODE_ENV!=="test"&&hr()?X.useLayoutEffect:X.useEffect,tr=(s,u)=>{const h=X.useRef(!0);Xg(()=>s(h.current),u),Xg(()=>(h.current=!1,()=>{h.current=!0}),[])},Gh=s=>{const u=X.useRef(!1),[h,d]=X.useState(s);X.useEffect(()=>(u.current=!1,()=>{u.current=!0}),[]);function y(k,M){M&&u.current||d(k)}return[h,y]};function ev(s,u){const[h,d]=ce.useState(s),y=u!==void 0?u:h;return tr(k=>{k||d(u)},[u]),[y,d]}var Uh={exports:{}},ro={};/**
|
|
37
244
|
* @license React
|
|
38
245
|
* react-is.production.min.js
|
|
39
246
|
*
|
|
@@ -41,7 +248,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
41
248
|
*
|
|
42
249
|
* This source code is licensed under the MIT license found in the
|
|
43
250
|
* LICENSE file in the root directory of this source tree.
|
|
44
|
-
*/var
|
|
251
|
+
*/var tv;function oC(){if(tv)return ro;tv=1;var s=Symbol.for("react.element"),u=Symbol.for("react.portal"),h=Symbol.for("react.fragment"),d=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),k=Symbol.for("react.provider"),M=Symbol.for("react.context"),T=Symbol.for("react.server_context"),H=Symbol.for("react.forward_ref"),Z=Symbol.for("react.suspense"),v=Symbol.for("react.suspense_list"),V=Symbol.for("react.memo"),K=Symbol.for("react.lazy"),pe=Symbol.for("react.offscreen"),de;de=Symbol.for("react.module.reference");function re(ne){if(typeof ne=="object"&&ne!==null){var ue=ne.$$typeof;switch(ue){case s:switch(ne=ne.type,ne){case h:case y:case d:case Z:case v:return ne;default:switch(ne=ne&&ne.$$typeof,ne){case T:case M:case H:case K:case V:case k:return ne;default:return ue}}case u:return ue}}}return ro.ContextConsumer=M,ro.ContextProvider=k,ro.Element=s,ro.ForwardRef=H,ro.Fragment=h,ro.Lazy=K,ro.Memo=V,ro.Portal=u,ro.Profiler=y,ro.StrictMode=d,ro.Suspense=Z,ro.SuspenseList=v,ro.isAsyncMode=function(){return!1},ro.isConcurrentMode=function(){return!1},ro.isContextConsumer=function(ne){return re(ne)===M},ro.isContextProvider=function(ne){return re(ne)===k},ro.isElement=function(ne){return typeof ne=="object"&&ne!==null&&ne.$$typeof===s},ro.isForwardRef=function(ne){return re(ne)===H},ro.isFragment=function(ne){return re(ne)===h},ro.isLazy=function(ne){return re(ne)===K},ro.isMemo=function(ne){return re(ne)===V},ro.isPortal=function(ne){return re(ne)===u},ro.isProfiler=function(ne){return re(ne)===y},ro.isStrictMode=function(ne){return re(ne)===d},ro.isSuspense=function(ne){return re(ne)===Z},ro.isSuspenseList=function(ne){return re(ne)===v},ro.isValidElementType=function(ne){return typeof ne=="string"||typeof ne=="function"||ne===h||ne===y||ne===d||ne===Z||ne===v||ne===pe||typeof ne=="object"&&ne!==null&&(ne.$$typeof===K||ne.$$typeof===V||ne.$$typeof===k||ne.$$typeof===M||ne.$$typeof===H||ne.$$typeof===de||ne.getModuleId!==void 0)},ro.typeOf=re,ro}var so={};/**
|
|
45
252
|
* @license React
|
|
46
253
|
* react-is.development.js
|
|
47
254
|
*
|
|
@@ -49,13 +256,13 @@ React keys must be passed directly to JSX without using spread:
|
|
|
49
256
|
*
|
|
50
257
|
* This source code is licensed under the MIT license found in the
|
|
51
258
|
* LICENSE file in the root directory of this source tree.
|
|
52
|
-
*/var Gc;function lm(){return Gc||(Gc=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),d=Symbol.for("react.server_context"),h=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),v=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),C=Symbol.for("react.offscreen"),_=!1,x=!1,b=!1,E=!1,S=!1,P;P=Symbol.for("react.module.reference");function I(te){return!!(typeof te=="string"||typeof te=="function"||te===r||te===s||S||te===o||te===g||te===m||E||te===C||_||x||b||typeof te=="object"&&te!==null&&(te.$$typeof===y||te.$$typeof===v||te.$$typeof===l||te.$$typeof===c||te.$$typeof===h||te.$$typeof===P||te.getModuleId!==void 0))}function M(te){if(typeof te=="object"&&te!==null){var we=te.$$typeof;switch(we){case e:var Pe=te.type;switch(Pe){case r:case s:case o:case g:case m:return Pe;default:var Ae=Pe&&Pe.$$typeof;switch(Ae){case d:case c:case h:case y:case v:case l:return Ae;default:return we}}case n:return we}}}var k=c,N=l,R=e,B=h,z=r,$=y,j=v,V=n,W=s,F=o,X=g,J=m,Z=!1,le=!1;function G(te){return Z||(Z=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function ie(te){return le||(le=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function ne(te){return M(te)===c}function de(te){return M(te)===l}function oe(te){return typeof te=="object"&&te!==null&&te.$$typeof===e}function ee(te){return M(te)===h}function K(te){return M(te)===r}function Y(te){return M(te)===y}function se(te){return M(te)===v}function fe(te){return M(te)===n}function xe(te){return M(te)===s}function Se(te){return M(te)===o}function Te(te){return M(te)===g}function Ce(te){return M(te)===m}lt.ContextConsumer=k,lt.ContextProvider=N,lt.Element=R,lt.ForwardRef=B,lt.Fragment=z,lt.Lazy=$,lt.Memo=j,lt.Portal=V,lt.Profiler=W,lt.StrictMode=F,lt.Suspense=X,lt.SuspenseList=J,lt.isAsyncMode=G,lt.isConcurrentMode=ie,lt.isContextConsumer=ne,lt.isContextProvider=de,lt.isElement=oe,lt.isForwardRef=ee,lt.isFragment=K,lt.isLazy=Y,lt.isMemo=se,lt.isPortal=fe,lt.isProfiler=xe,lt.isStrictMode=Se,lt.isSuspense=Te,lt.isSuspenseList=Ce,lt.isValidElementType=I,lt.typeOf=M}()),lt}process.env.NODE_ENV==="production"?Us.exports=am():Us.exports=lm();var qs=Us.exports;function Ei(e,n,r){const o=f.useRef({});return(!("value"in o.current)||r(o.current.condition,n))&&(o.current.value=e(),o.current.condition=n),o.current.value}const cm=Symbol.for("react.element"),um=Symbol.for("react.transitional.element"),dm=Symbol.for("react.fragment");function Kc(e){return e&&typeof e=="object"&&(e.$$typeof===cm||e.$$typeof===um)&&e.type===dm}const fm=Number(A.version.split(".")[0]),hm=(e,n)=>{typeof e=="function"?e(n):typeof e=="object"&&e&&"current"in e&&(e.current=n)},Sr=(...e)=>{const n=e.filter(Boolean);return n.length<=1?n[0]:r=>{e.forEach(o=>{hm(o,r)})}},Wr=(...e)=>Ei(()=>Sr(...e),e,(n,r)=>n.length!==r.length||n.every((o,s)=>o!==r[s])),Er=e=>{var r,o;if(!e)return!1;if(Gs(e)&&fm>=19)return!0;const n=qs.isMemo(e)?e.type.type:e.type;return!(typeof n=="function"&&!((r=n.prototype)!=null&&r.render)&&n.$$typeof!==qs.ForwardRef||typeof e=="function"&&!((o=e.prototype)!=null&&o.render)&&e.$$typeof!==qs.ForwardRef)};function Gs(e){return A.isValidElement(e)&&!Kc(e)}const pm=e=>Gs(e)&&Er(e),dr=e=>{if(e&&Gs(e)){const n=e;return n.props.propertyIsEnumerable("ref")?n.props.ref:n.ref}return null};function On(e,n){let r=e;for(let o=0;o<n.length;o+=1){if(r==null)return;r=r[n[o]]}return r}function Qc(e,n,r,o){if(!n.length)return r;const[s,...l]=n;let c;return!e&&typeof s=="number"?c=[]:Array.isArray(e)?c=[...e]:c={...e},o&&r===void 0&&l.length===1?delete c[s][l[0]]:c[s]=Qc(c[s],l,r,o),c}function Cn(e,n,r,o=!1){return n.length&&o&&r===void 0&&!On(e,n.slice(0,-1))?e:Qc(e,n,r,o)}function mm(e){return typeof e=="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function Yc(e){return Array.isArray(e)?[]:{}}const gm=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function Xc(e,n={}){const{prepareArray:r}=n,o=r||(()=>[]);let s=Yc(e[0]);return e.forEach(l=>{function c(d,h){const g=new Set(h),m=On(l,d),v=Array.isArray(m);if(v||mm(m)){if(!g.has(m)){g.add(m);const y=On(s,d);v?s=Cn(s,d,o(y,m)):(!y||typeof y!="object")&&(s=Cn(s,d,Yc(m))),gm(m).forEach(C=>{Object.getOwnPropertyDescriptor(m,C).enumerable&&c([...d,C],g)})}}else s=Cn(s,d,m)}c([])}),s}function jr(...e){return Xc(e)}let Ks={};const Qs=[],vm=e=>{Qs.push(e)};function Oo(e,n){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){const r=Qs.reduce((o,s)=>s(o??"","warning"),n);r&&console.error(`Warning: ${r}`)}}function ym(e,n){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){const r=Qs.reduce((o,s)=>s(o??"","note"),n);r&&console.warn(`Note: ${r}`)}}function bm(){Ks={}}function Jc(e,n,r){!n&&!Ks[r]&&(e(!1,r),Ks[r]=!0)}function ct(e,n){Jc(Oo,e,n)}function _m(e,n){Jc(ym,e,n)}ct.preMessage=vm,ct.resetWarned=bm,ct.noteOnce=_m;function Sn(e,n){const r=Object.assign({},e);return Array.isArray(n)&&n.forEach(o=>{delete r[o]}),r}function Gn(e,n={}){let r=[];return A.Children.forEach(e,o=>{o==null&&!n.keepEmpty||(Array.isArray(o)?r=r.concat(Gn(o)):Kc(o)&&o.props?r=r.concat(Gn(o.props.children,n)):r.push(o))}),r}function eu(){}const{resetWarned:xm}=ct;let Kn=null;function wm(){Kn=null,xm()}let tu=eu;process.env.NODE_ENV!=="production"&&(tu=(e,n,r)=>{ct(e,`[antd: ${n}] ${r}`),process.env.NODE_ENV==="test"&&wm()});const Ys=tu,nu=f.createContext({}),hn=process.env.NODE_ENV!=="production"?e=>{const{strict:n}=f.useContext(nu),r=(o,s,l)=>{if(!o)if(n===!1&&s==="deprecated"){const c=Kn;Kn||(Kn={}),Kn[e]=Kn[e]||[],Kn[e].includes(l||"")||Kn[e].push(l||""),c||console.warn("[antd] There exists deprecated usage in your code:",Kn)}else process.env.NODE_ENV!=="production"&&Ys(o,e,l)};return r.deprecated=(o,s,l,c="")=>{r(o,"deprecated",`\`${s}\` is deprecated. Please use \`${l}\` instead.${c?` ${c}`:""}`)},r}:()=>{const e=()=>{};return e.deprecated=eu,e};function Zr(e){return e instanceof HTMLElement||e instanceof SVGElement}function Xs(e){return e&&typeof e=="object"&&Zr(e.nativeElement)?e.nativeElement:Zr(e)?e:null}const Js=f.createContext(null);function Cm({children:e,onBatchResize:n}){const r=f.useRef(0),o=f.useRef([]),s=f.useContext(Js),l=f.useCallback((c,d,h)=>{r.current+=1;const g=r.current;o.current.push({size:c,element:d,data:h}),Promise.resolve().then(()=>{g===r.current&&(n==null||n(o.current),o.current=[])}),s==null||s(c,d,h)},[n,s]);return f.createElement(Js.Provider,{value:l},e)}const Qn=new Map;function ru(e){e.forEach(n=>{var o;const{target:r}=n;(o=Qn.get(r))==null||o.forEach(s=>s(r))})}let ea;function ou(){return ea||(ea=new ResizeObserver(ru)),ea}process.env.NODE_ENV,process.env.NODE_ENV;function Sm(e,n){Qn.has(e)||(Qn.set(e,new Set),ou().observe(e)),Qn.get(e).add(n)}function Em(e,n){Qn.has(e)&&(Qn.get(e).delete(n),Qn.get(e).size||(ou().unobserve(e),Qn.delete(e)))}function iu(e,n,r,o){const s=f.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),l=ft(d=>{const{width:h,height:g}=d.getBoundingClientRect(),{offsetWidth:m,offsetHeight:v}=d,y=Math.floor(h),C=Math.floor(g);if(s.current.width!==y||s.current.height!==C||s.current.offsetWidth!==m||s.current.offsetHeight!==v){const _={width:y,height:C,offsetWidth:m,offsetHeight:v};s.current=_;const x=m===Math.round(h)?h:m,b=v===Math.round(g)?g:v,E={..._,offsetWidth:x,offsetHeight:b};o==null||o(E,d),Promise.resolve().then(()=>{r==null||r(E,d)})}}),c=typeof n=="function";f.useEffect(()=>{const d=c?n():n;return d&&e&&Sm(d,l),()=>{d&&Em(d,l)}},[e,c?0:n])}function Pm(e,n){const{children:r,disabled:o,onResize:s,data:l}=e,c=f.useRef(null),d=f.useContext(Js),h=typeof r=="function",g=h?r(c):r,m=!h&&f.isValidElement(g)&&Er(g),v=m?dr(g):null,y=Wr(v,c),C=()=>Xs(c.current);return f.useImperativeHandle(n,()=>C()),iu(!o,C,s,(_,x)=>{d==null||d(_,x,l)}),m?f.cloneElement(g,{ref:y}):g}const su=f.forwardRef(Pm);process.env.NODE_ENV!=="production"&&(su.displayName="SingleObserver");function ta(){return ta=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},ta.apply(this,arguments)}const Im="rc-observer-key";function Tm(e,n){const{children:r}=e,o=typeof r=="function"?[r]:Gn(r);return process.env.NODE_ENV!=="production"&&(o.length>1?Oo(!1,"Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead."):o.length===0&&Oo(!1,"`children` of ResizeObserver is empty. Nothing is in observe.")),o.map((s,l)=>{const c=(s==null?void 0:s.key)||`${Im}-${l}`;return f.createElement(su,ta({},e,{key:c,ref:l===0?n:void 0}),s)})}const No=f.forwardRef(Tm);process.env.NODE_ENV!=="production"&&(No.displayName="ResizeObserver"),No.Collection=Cm;function au(e){var n,r,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(n=0;n<s;n++)e[n]&&(r=au(e[n]))&&(o&&(o+=" "),o+=r)}else for(r in e)e[r]&&(o&&(o+=" "),o+=r);return o}function ce(){for(var e,n,r=0,o="",s=arguments.length;r<s;r++)(e=arguments[r])&&(n=au(e))&&(o&&(o+=" "),o+=n);return o}function na(e,n){(n==null||n>e.length)&&(n=e.length);for(var r=0,o=Array(n);r<n;r++)o[r]=e[r];return o}function Am(e){if(Array.isArray(e))return na(e)}function Mm(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function lu(e,n){if(e){if(typeof e=="string")return na(e,n);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?na(e,n):void 0}}function Lm(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
53
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function bn(e){return Am(e)||Mm(e)||lu(e)||Lm()}let cu=e=>+setTimeout(e,16),uu=e=>clearTimeout(e);typeof window<"u"&&"requestAnimationFrame"in window&&(cu=e=>window.requestAnimationFrame(e),uu=e=>window.cancelAnimationFrame(e));let du=0;const Pi=new Map;function fu(e){Pi.delete(e)}const Ut=(e,n=1)=>{du+=1;const r=du;function o(s){if(s===0)fu(r),e();else{const l=cu(()=>{o(s-1)});Pi.set(r,l)}}return o(n),r};Ut.cancel=e=>{const n=Pi.get(e);return fu(e),uu(n)},process.env.NODE_ENV!=="production"&&(Ut.ids=()=>Pi);const Ii="ant",ra="anticon",Om=(e,n)=>n||(e?`${Ii}-${e}`:Ii),Ot=f.createContext({getPrefixCls:Om,iconPrefixCls:ra}),hu={};function Ur(e){const n=f.useContext(Ot),{getPrefixCls:r,direction:o,getPopupContainer:s,renderEmpty:l}=n,c=n[e];return{classNames:hu,styles:hu,...c,getPrefixCls:r,direction:o,getPopupContainer:s,renderEmpty:l}}function ko(e){for(var n=0,r,o=0,s=e.length;s>=4;++o,s-=4)r=e.charCodeAt(o)&255|(e.charCodeAt(++o)&255)<<8|(e.charCodeAt(++o)&255)<<16|(e.charCodeAt(++o)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,n=(r&65535)*1540483477+((r>>>16)*59797<<16)^(n&65535)*1540483477+((n>>>16)*59797<<16);switch(s){case 3:n^=(e.charCodeAt(o+2)&255)<<16;case 2:n^=(e.charCodeAt(o+1)&255)<<8;case 1:n^=e.charCodeAt(o)&255,n=(n&65535)*1540483477+((n>>>16)*59797<<16)}return n^=n>>>13,n=(n&65535)*1540483477+((n>>>16)*59797<<16),((n^n>>>15)>>>0).toString(36)}function Nm(e,n){if(!e)return!1;if(e.contains)return e.contains(n);let r=n;for(;r;){if(r===e)return!0;r=r.parentNode}return!1}const pu="data-rc-order",mu="data-rc-priority",km="rc-util-key",oa=new Map;function gu({mark:e}={}){return e?e.startsWith("data-")?e:`data-${e}`:km}function Ti(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function Rm(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function ia(e){return Array.from((oa.get(e)||e).children).filter(n=>n.tagName==="STYLE")}function vu(e,n={}){if(!yn())return null;const{csp:r,prepend:o,priority:s=0}=n,l=Rm(o),c=l==="prependQueue",d=document.createElement("style");d.setAttribute(pu,l),c&&s&&d.setAttribute(mu,`${s}`),r!=null&&r.nonce&&(d.nonce=r==null?void 0:r.nonce),d.innerHTML=e;const h=Ti(n),{firstChild:g}=h;if(o){if(c){const m=(n.styles||ia(h)).filter(v=>{if(!["prepend","prependQueue"].includes(v.getAttribute(pu)))return!1;const y=Number(v.getAttribute(mu)||0);return s>=y});if(m.length)return h.insertBefore(d,m[m.length-1].nextSibling),d}h.insertBefore(d,g)}else h.appendChild(d);return d}function yu(e,n={}){let{styles:r}=n;return r||(r=ia(Ti(n))),r.find(o=>o.getAttribute(gu(n))===e)}function Ro(e,n={}){const r=yu(e,n);r&&Ti(n).removeChild(r)}function $m(e,n){const r=oa.get(e);if(!r||!Nm(document,r)){const o=vu("",n),{parentNode:s}=o;oa.set(e,s),e.removeChild(o)}}function fr(e,n,r={}){var h,g,m;const o=Ti(r),s=ia(o),l={...r,styles:s};$m(o,l);const c=yu(n,l);if(c)return(h=l.csp)!=null&&h.nonce&&c.nonce!==((g=l.csp)==null?void 0:g.nonce)&&(c.nonce=(m=l.csp)==null?void 0:m.nonce),c.innerHTML!==e&&(c.innerHTML=e),c;const d=vu(e,l);return d.setAttribute(gu(l),n),d}function $o(e,n,r=!1){const o=new Set;function s(l,c,d=1){const h=o.has(l);if(ct(!h,"Warning: There may be circular references"),h)return!1;if(l===c)return!0;if(r&&d>1)return!1;o.add(l);const g=d+1;if(Array.isArray(l)){if(!Array.isArray(c)||l.length!==c.length)return!1;for(let m=0;m<l.length;m++)if(!s(l[m],c[m],g))return!1;return!0}if(l&&c&&typeof l=="object"&&typeof c=="object"){const m=Object.keys(l);return m.length!==Object.keys(c).length?!1:m.every(v=>s(l[v],c[v],g))}return!1}return s(e,n)}const Bm="%";function sa(e){return e.join(Bm)}let bu=0;class zm{constructor(n){q(this,"instanceId");q(this,"cache",new Map);q(this,"updateTimes",new Map);q(this,"extracted",new Set);this.instanceId=n}get(n){return this.opGet(sa(n))}opGet(n){return this.cache.get(n)||null}update(n,r){return this.opUpdate(sa(n),r)}opUpdate(n,r){const o=this.cache.get(n),s=r(o);s===null?(this.cache.delete(n),this.updateTimes.delete(n)):(this.cache.set(n,s),this.updateTimes.set(n,bu),bu+=1)}}const aa="data-token-hash",Yn="data-css-hash",Dm="data-cache-path",Xn="__cssinjs_instance__";function Fm(){const e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){const n=document.body.querySelectorAll(`style[${Yn}]`)||[],{firstChild:r}=document.head;Array.from(n).forEach(s=>{s[Xn]||(s[Xn]=e),s[Xn]===e&&document.head.insertBefore(s,r)});const o={};Array.from(document.querySelectorAll(`style[${Yn}]`)).forEach(s=>{var c;const l=s.getAttribute(Yn);o[l]?s[Xn]===e&&((c=s.parentNode)==null||c.removeChild(s)):o[l]=!0})}return new zm(e)}const Bo=f.createContext({hashPriority:"low",cache:Fm(),defaultCache:!0,autoPrefix:!1});function Hm(e,n){if(e.length!==n.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==n[r])return!1;return!0}const xo=class xo{constructor(){q(this,"cache");q(this,"keys");q(this,"cacheCallTimes");this.cache=new Map,this.keys=[],this.cacheCallTimes=0}size(){return this.keys.length}internalGet(n,r=!1){let o={map:this.cache};return n.forEach(s=>{var l;o?o=(l=o==null?void 0:o.map)==null?void 0:l.get(s):o=void 0}),o!=null&&o.value&&r&&(o.value[1]=this.cacheCallTimes++),o==null?void 0:o.value}get(n){var r;return(r=this.internalGet(n,!0))==null?void 0:r[0]}has(n){return!!this.internalGet(n)}set(n,r){if(!this.has(n)){if(this.size()+1>xo.MAX_CACHE_SIZE+xo.MAX_CACHE_OFFSET){const[s]=this.keys.reduce((l,c)=>{const[,d]=l;return this.internalGet(c)[1]<d?[c,this.internalGet(c)[1]]:l},[this.keys[0],this.cacheCallTimes]);this.delete(s)}this.keys.push(n)}let o=this.cache;n.forEach((s,l)=>{if(l===n.length-1)o.set(s,{value:[r,this.cacheCallTimes++]});else{const c=o.get(s);c?c.map||(c.map=new Map):o.set(s,{map:new Map}),o=o.get(s).map}})}deleteByPath(n,r){var l;const o=n.get(r[0]);if(r.length===1)return o.map?n.set(r[0],{map:o.map}):n.delete(r[0]),(l=o.value)==null?void 0:l[0];const s=this.deleteByPath(o.map,r.slice(1));return(!o.map||o.map.size===0)&&!o.value&&n.delete(r[0]),s}delete(n){if(this.has(n))return this.keys=this.keys.filter(r=>!Hm(r,n)),this.deleteByPath(this.cache,n)}};q(xo,"MAX_CACHE_SIZE",20),q(xo,"MAX_CACHE_OFFSET",5);let la=xo,_u=0;class xu{constructor(n){q(this,"derivatives");q(this,"id");this.derivatives=Array.isArray(n)?n:[n],this.id=_u,n.length===0&&Oo(n.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),_u+=1}getDerivativeToken(n){return this.derivatives.reduce((r,o)=>o(n,r),void 0)}}const ca=new la;function ua(e){const n=Array.isArray(e)?e:[e];return ca.has(n)||ca.set(n,new xu(n)),ca.get(n)}const Vm=new WeakMap,da={};function Wm(e,n){let r=Vm;for(let o=0;o<n.length;o+=1){const s=n[o];r.has(s)||r.set(s,new WeakMap),r=r.get(s)}return r.has(da)||r.set(da,e()),r.get(da)}const wu=new WeakMap;function zo(e){let n=wu.get(e)||"";return n||(Object.keys(e).forEach(r=>{const o=e[r];n+=r,o instanceof xu?n+=o.id:o&&typeof o=="object"?n+=zo(o):n+=o}),n=ko(n),wu.set(e,n)),n}function jm(e,n){return ko(`${n}_${zo(e)}`)}const fa=yn();function Le(e){return typeof e=="number"?`${e}px`:e}function Cu(e){const{hashCls:n,hashPriority:r="low"}=e||{};if(!n)return"";const o=`.${n}`;return r==="low"?`:where(${o})`:o}const Zm=e=>e!=null,Ai=(e,n="")=>`--${n?`${n}-`:""}${e}`.replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase(),Um=(e,n,r)=>{const{hashCls:o,hashPriority:s="low"}=r||{};return Object.keys(e).length?`${Cu({hashCls:o,hashPriority:s})}.${n}${r!=null&&r.scope?`.${r.scope}`:""}{${Object.entries(e).map(([l,c])=>`${l}:${c};`).join("")}}`:""},Su=(e,n,r)=>{const{hashCls:o,hashPriority:s="low",prefix:l,unitless:c,ignore:d,preserve:h}=r||{},g={},m={};return Object.entries(e).forEach(([v,y])=>{if(h!=null&&h[v])m[v]=y;else if((typeof y=="string"||typeof y=="number")&&!(d!=null&&d[v])){const C=Ai(v,l);g[C]=typeof y=="number"&&!(c!=null&&c[v])?`${y}px`:String(y),m[v]=`var(${C})`}}),[m,Um(g,n,{scope:r==null?void 0:r.scope,hashCls:o,hashPriority:s})]};function qm(){return!1}let ha=!1;function Gm(){return ha}const Km=process.env.NODE_ENV==="production"?qm:Gm;if(process.env.NODE_ENV!=="production"&&typeof module<"u"&&module&&module.hot&&typeof window<"u"){const e=typeof globalThis<"u"?globalThis:typeof window<"u"?window:null;if(e&&typeof e.webpackHotUpdate=="function"){const n=e.webpackHotUpdate;e.webpackHotUpdate=(...r)=>(ha=!0,setTimeout(()=>{ha=!1},0),n(...r))}}const Mi=new Map;function pa(e,n,r,o,s){const{cache:l}=f.useContext(Bo),c=[e,...n],d=sa(c),h=Km(),g=y=>{l.opUpdate(d,C=>{const[_=0,x]=C||[void 0,void 0];let b=x;process.env.NODE_ENV!=="production"&&x&&h&&(o==null||o(b,h),b=null);const E=b||r(),S=[_,E];return y?y(S):S})};f.useMemo(()=>{g()},[d]);let m=l.opGet(d);process.env.NODE_ENV!=="production"&&!m&&(g(),m=l.opGet(d));const v=m[1];return A.useInsertionEffect(()=>(g(([y,C])=>[y+1,C]),Mi.has(d)||(s==null||s(v),Mi.set(d,!0),Promise.resolve().then(()=>{Mi.delete(d)})),()=>{l.opUpdate(d,y=>{const[C=0,_]=y||[];return C-1===0?(o==null||o(_,!1),Mi.delete(d),null):[C-1,_]})}),[d]),v}const Qm={},Ym=process.env.NODE_ENV!=="production"?"css-dev-only-do-not-override":"css",Pr=new Map;function Xm(e){Pr.set(e,(Pr.get(e)||0)+1)}function Jm(e,n){typeof document<"u"&&document.querySelectorAll(`style[${aa}="${e}"]`).forEach(o=>{var s;o[Xn]===n&&((s=o.parentNode)==null||s.removeChild(o))})}const eg=-1;function tg(e,n){Pr.set(e,(Pr.get(e)||0)-1);const r=new Set;Pr.forEach((o,s)=>{o<=0&&r.add(s)}),Pr.size-r.size>eg&&r.forEach(o=>{Jm(o,n),Pr.delete(o)})}const ng=(e,n,r,o)=>{let l={...r.getDerivativeToken(e),...n};return o&&(l=o(l)),l},rg="token";function og(e,n,r){const{cache:{instanceId:o},container:s,hashPriority:l}=A.useContext(Bo),{salt:c="",override:d=Qm,formatToken:h,getComputedToken:g,cssVar:m}=r,v=Wm(()=>Object.assign({},...n),n),y=zo(v),C=zo(d),_=zo(m);return pa(rg,[c,e.id,y,C,_],()=>{const b=g?g(v,d,e):ng(v,d,e,h),E={...b},S=`${c}_${m.prefix}`,P=ko(S),I=`${Ym}-${P}`;E._tokenKey=jm(E,S);const[M,k]=Su(b,m.key,{prefix:m.prefix,ignore:m.ignore,unitless:m.unitless,preserve:m.preserve,hashPriority:l,hashCls:m.hashed?I:void 0});return M._hashId=P,Xm(m.key),[M,I,E,k,m.key]},([,,,,b])=>{tg(b,o)},([,,,b,E])=>{if(!b)return;const S=fr(b,ko(`css-var-${E}`),{mark:Yn,prepend:"queue",attachTo:s,priority:-999});S[Xn]=o,S.setAttribute(aa,E)})}var ig={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},_t="-ms-",Do="-moz-",st="-webkit-",Eu="comm",ma="rule",ga="decl",sg="@import",ag="@namespace",Pu="@keyframes",lg="@layer",Iu=Math.abs,va=String.fromCharCode,ya=Object.assign;function cg(e,n){return zt(e,0)^45?(((n<<2^zt(e,0))<<2^zt(e,1))<<2^zt(e,2))<<2^zt(e,3):0}function Tu(e){return e.trim()}function Jn(e,n){return(e=n.exec(e))?e[0]:e}function qe(e,n,r){return e.replace(n,r)}function Li(e,n,r){return e.indexOf(n,r)}function zt(e,n){return e.charCodeAt(n)|0}function Ir(e,n,r){return e.slice(n,r)}function Nn(e){return e.length}function Au(e){return e.length}function Fo(e,n){return n.push(e),e}function ug(e,n){return e.map(n).join("")}function Mu(e,n){return e.filter(function(r){return!Jn(r,n)})}var Oi=1,qr=1,Lu=0,En=0,Rt=0,Gr="";function Ni(e,n,r,o,s,l,c,d){return{value:e,root:n,parent:r,type:o,props:s,children:l,line:Oi,column:qr,length:c,return:"",siblings:d}}function hr(e,n){return ya(Ni("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},n)}function Kr(e){for(;e.root;)e=hr(e.root,{children:[e]});Fo(e,e.siblings)}function dg(){return Rt}function fg(){return Rt=En>0?zt(Gr,--En):0,qr--,Rt===10&&(qr=1,Oi--),Rt}function kn(){return Rt=En<Lu?zt(Gr,En++):0,qr++,Rt===10&&(qr=1,Oi++),Rt}function pr(){return zt(Gr,En)}function ki(){return En}function Ri(e,n){return Ir(Gr,e,n)}function Ho(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function hg(e){return Oi=qr=1,Lu=Nn(Gr=e),En=0,[]}function pg(e){return Gr="",e}function ba(e){return Tu(Ri(En-1,_a(e===91?e+2:e===40?e+1:e)))}function mg(e){for(;(Rt=pr())&&Rt<33;)kn();return Ho(e)>2||Ho(Rt)>3?"":" "}function gg(e,n){for(;--n&&kn()&&!(Rt<48||Rt>102||Rt>57&&Rt<65||Rt>70&&Rt<97););return Ri(e,ki()+(n<6&&pr()==32&&kn()==32))}function _a(e){for(;kn();)switch(Rt){case e:return En;case 34:case 39:e!==34&&e!==39&&_a(Rt);break;case 40:e===41&&_a(e);break;case 92:kn();break}return En}function vg(e,n){for(;kn()&&e+Rt!==47+10;)if(e+Rt===42+42&&pr()===47)break;return"/*"+Ri(n,En-1)+"*"+va(e===47?e:kn())}function yg(e){for(;!Ho(pr());)kn();return Ri(e,En)}function Ou(e){return pg($i("",null,null,null,[""],e=hg(e),0,[0],e))}function $i(e,n,r,o,s,l,c,d,h){for(var g=0,m=0,v=c,y=0,C=0,_=0,x=1,b=1,E=1,S=0,P="",I=s,M=l,k=o,N=P;b;)switch(_=S,S=kn()){case 40:if(_!=108&&zt(N,v-1)==58){Li(N+=qe(ba(S),"&","&\f"),"&\f",Iu(g?d[g-1]:0))!=-1&&(E=-1);break}case 34:case 39:case 91:N+=ba(S);break;case 9:case 10:case 13:case 32:N+=mg(_);break;case 92:N+=gg(ki()-1,7);continue;case 47:switch(pr()){case 42:case 47:Fo(bg(vg(kn(),ki()),n,r,h),h),(Ho(_||1)==5||Ho(pr()||1)==5)&&Nn(N)&&Ir(N,-1,void 0)!==" "&&(N+=" ");break;default:N+="/"}break;case 123*x:d[g++]=Nn(N)*E;case 125*x:case 59:case 0:switch(S){case 0:case 125:b=0;case 59+m:E==-1&&(N=qe(N,/\f/g,"")),C>0&&(Nn(N)-v||x===0&&_===47)&&Fo(C>32?ku(N+";",o,r,v-1,h):ku(qe(N," ","")+";",o,r,v-2,h),h);break;case 59:N+=";";default:if(Fo(k=Nu(N,n,r,g,m,s,d,P,I=[],M=[],v,l),l),S===123)if(m===0)$i(N,n,k,k,I,l,v,d,M);else{switch(y){case 99:if(zt(N,3)===110)break;case 108:if(zt(N,2)===97)break;default:m=0;case 100:case 109:case 115:}m?$i(e,k,k,o&&Fo(Nu(e,k,k,0,0,s,d,P,s,I=[],v,M),M),s,M,v,d,o?I:M):$i(N,k,k,k,[""],M,0,d,M)}}g=m=C=0,x=E=1,P=N="",v=c;break;case 58:v=1+Nn(N),C=_;default:if(x<1){if(S==123)--x;else if(S==125&&x++==0&&fg()==125)continue}switch(N+=va(S),S*x){case 38:E=m>0?1:(N+="\f",-1);break;case 44:d[g++]=(Nn(N)-1)*E,E=1;break;case 64:pr()===45&&(N+=ba(kn())),y=pr(),m=v=Nn(P=N+=yg(ki())),S++;break;case 45:_===45&&Nn(N)==2&&(x=0)}}return l}function Nu(e,n,r,o,s,l,c,d,h,g,m,v){for(var y=s-1,C=s===0?l:[""],_=Au(C),x=0,b=0,E=0;x<o;++x)for(var S=0,P=Ir(e,y+1,y=Iu(b=c[x])),I=e;S<_;++S)(I=Tu(b>0?C[S]+" "+P:qe(P,/&\f/g,C[S])))&&(h[E++]=I);return Ni(e,n,r,s===0?ma:d,h,g,m,v)}function bg(e,n,r,o){return Ni(e,n,r,Eu,va(dg()),Ir(e,2,-2),0,o)}function ku(e,n,r,o,s){return Ni(e,n,r,ga,Ir(e,0,o),Ir(e,o+1,-1),o,s)}function Ru(e,n,r){switch(cg(e,n)){case 5103:return st+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:case 6391:case 5879:case 5623:case 6135:case 4599:return st+e+e;case 4855:return st+e.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+e;case 4789:return Do+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return st+e+Do+e+_t+e+e;case 5936:switch(zt(e,n+11)){case 114:return st+e+_t+qe(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return st+e+_t+qe(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return st+e+_t+qe(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return st+e+_t+e+e;case 6165:return st+e+_t+"flex-"+e+e;case 5187:return st+e+qe(e,/(\w+).+(:[^]+)/,st+"box-$1$2"+_t+"flex-$1$2")+e;case 5443:return st+e+_t+"flex-item-"+qe(e,/flex-|-self/g,"")+(Jn(e,/flex-|baseline/)?"":_t+"grid-row-"+qe(e,/flex-|-self/g,""))+e;case 4675:return st+e+_t+"flex-line-pack"+qe(e,/align-content|flex-|-self/g,"")+e;case 5548:return st+e+_t+qe(e,"shrink","negative")+e;case 5292:return st+e+_t+qe(e,"basis","preferred-size")+e;case 6060:return st+"box-"+qe(e,"-grow","")+st+e+_t+qe(e,"grow","positive")+e;case 4554:return st+qe(e,/([^-])(transform)/g,"$1"+st+"$2")+e;case 6187:return qe(qe(qe(e,/(zoom-|grab)/,st+"$1"),/(image-set)/,st+"$1"),e,"")+e;case 5495:case 3959:return qe(e,/(image-set\([^]*)/,st+"$1$`$1");case 4968:return qe(qe(e,/(.+:)(flex-)?(.*)/,st+"box-pack:$3"+_t+"flex-pack:$3"),/space-between/,"justify")+st+e+e;case 4200:if(!Jn(e,/flex-|baseline/))return _t+"grid-column-align"+Ir(e,n)+e;break;case 2592:case 3360:return _t+qe(e,"template-","")+e;case 4384:case 3616:return r&&r.some(function(o,s){return n=s,Jn(o.props,/grid-\w+-end/)})?~Li(e+(r=r[n].value),"span",0)?e:_t+qe(e,"-start","")+e+_t+"grid-row-span:"+(~Li(r,"span",0)?Jn(r,/\d+/):+Jn(r,/\d+/)-+Jn(e,/\d+/))+";":_t+qe(e,"-start","")+e;case 4896:case 4128:return r&&r.some(function(o){return Jn(o.props,/grid-\w+-start/)})?e:_t+qe(qe(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return qe(e,/(.+)-inline(.+)/,st+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Nn(e)-1-n>6)switch(zt(e,n+1)){case 109:if(zt(e,n+4)!==45)break;case 102:return qe(e,/(.+:)(.+)-([^]+)/,"$1"+st+"$2-$3$1"+Do+(zt(e,n+3)==108?"$3":"$2-$3"))+e;case 115:return~Li(e,"stretch",0)?Ru(qe(e,"stretch","fill-available"),n,r)+e:e}break;case 5152:case 5920:return qe(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(o,s,l,c,d,h,g){return _t+s+":"+l+g+(c?_t+s+"-span:"+(d?h:+h-+l)+g:"")+e});case 4949:if(zt(e,n+6)===121)return qe(e,":",":"+st)+e;break;case 6444:switch(zt(e,zt(e,14)===45?18:11)){case 120:return qe(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+st+(zt(e,14)===45?"inline-":"")+"box$3$1"+st+"$2$3$1"+_t+"$2box$3")+e;case 100:return qe(e,":",":"+_t)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return qe(e,"scroll-","scroll-snap-")+e}return e}function Vo(e,n){for(var r="",o=0;o<e.length;o++)r+=n(e[o],o,e,n)||"";return r}function $u(e,n,r,o){switch(e.type){case lg:if(e.children.length)break;case sg:case ag:case ga:return e.return=e.return||e.value;case Eu:return"";case Pu:return e.return=e.value+"{"+Vo(e.children,o)+"}";case ma:if(!Nn(e.value=e.props.join(",")))return""}return Nn(r=Vo(e.children,o))?e.return=e.value+"{"+r+"}":""}function _g(e){var n=Au(e);return function(r,o,s,l){for(var c="",d=0;d<n;d++)c+=e[d](r,o,s,l)||"";return c}}function xg(e,n,r,o){if(e.length>-1&&!e.return)switch(e.type){case ga:e.return=Ru(e.value,e.length,r);return;case Pu:return Vo([hr(e,{value:qe(e.value,"@","@"+st)})],o);case ma:if(e.length)return ug(r=e.props,function(s){switch(Jn(s,o=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Kr(hr(e,{props:[qe(s,/:(read-\w+)/,":"+Do+"$1")]})),Kr(hr(e,{props:[s]})),ya(e,{props:Mu(r,o)});break;case"::placeholder":Kr(hr(e,{props:[qe(s,/:(plac\w+)/,":"+st+"input-$1")]})),Kr(hr(e,{props:[qe(s,/:(plac\w+)/,":"+Do+"$1")]})),Kr(hr(e,{props:[qe(s,/:(plac\w+)/,_t+"input-$1")]})),Kr(hr(e,{props:[s]})),ya(e,{props:Mu(r,o)});break}return""})}}function Bu(e,n){const{path:r,parentSelectors:o}=n;ct(!1,`[Ant Design CSS-in-JS] ${r?`Error in ${r}: `:""}${e}${o.length?` Selector: ${o.join(" | ")}`:""}`)}const wg=(e,n,r)=>{if(e==="content"){const o=/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/;(typeof n!="string"||["normal","none","initial","inherit","unset"].indexOf(n)===-1&&!o.test(n)&&!n.startsWith("var(")&&(n.charAt(0)!==n.charAt(n.length-1)||n.charAt(0)!=='"'&&n.charAt(0)!=="'"))&&Bu(`You seem to be using a value for 'content' without quotes, try replacing it with \`content: '"${n}"'\`.`,r)}},Cg=(e,n,r)=>{e==="animation"&&r.hashId&&n!=="none"&&Bu(`You seem to be using hashed animation '${n}', in which case 'animationName' with Keyframe as value is recommended.`,r)},zu="data-ant-cssinjs-cache-path",Du="_FILE_STYLE__";let Tr,Fu=!0;function Sg(){var e;if(!Tr&&(Tr={},yn())){const n=document.createElement("div");n.className=zu,n.style.position="fixed",n.style.visibility="hidden",n.style.top="-9999px",document.body.appendChild(n);let r=getComputedStyle(n).content||"";r=r.replace(/^"/,"").replace(/"$/,""),r.split(";").forEach(s=>{const[l,c]=s.split(":");Tr[l]=c});const o=document.querySelector(`style[${zu}]`);o&&(Fu=!1,(e=o.parentNode)==null||e.removeChild(o)),document.body.removeChild(n)}}function Eg(e){return Sg(),!!Tr[e]}function Pg(e){const n=Tr[e];let r=null;if(n&&yn())if(Fu)r=Du;else{const o=document.querySelector(`style[${Yn}="${Tr[e]}"]`);o?r=o.innerHTML:delete Tr[e]}return[r,n]}const Hu="_skip_check_",Vu="_multi_value_";function xa(e,n){return(n?Vo(Ou(e),_g([xg,$u])):Vo(Ou(e),$u)).replace(/\{%%%\:[^;];}/g,";")}function Ig(e){return typeof e=="object"&&e&&(Hu in e||Vu in e)}function Wu(e,n,r="high"){if(!n)return e;const o=Cu({hashCls:n,hashPriority:r});return e.split(",").map(l=>{var g;const c=l.trim().split(/\s+/);let d=c[0]||"";const h=((g=d.match(/^\w+/))==null?void 0:g[0])||"";return d=`${h}${o}${d.slice(h.length)}`,[d,...c.slice(1)].join(" ")}).join(",")}const wa=(e,n={},{root:r,injectHash:o,parentSelectors:s}={root:!0,parentSelectors:[]})=>{const{hashId:l,layer:c,path:d,hashPriority:h,transformers:g=[],linters:m=[]}=n;let v="",y={};function C(b){const E=b.getName(l);if(!y[E]){const[S]=wa(b.style,n,{root:!1,parentSelectors:s});y[E]=`@keyframes ${b.getName(l)}${S}`}}function _(b,E=[]){return b.forEach(S=>{Array.isArray(S)?_(S,E):S&&E.push(S)}),E}return _(Array.isArray(e)?e:[e]).forEach(b=>{const E=typeof b=="string"&&!r?{}:b;if(typeof E=="string")v+=`${E}
|
|
54
|
-
`;else if(
|
|
55
|
-
`))):
|
|
56
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Zu(e,n){return Lg(e)||Og(e,n)||lu(e,n)||Ng()}function kg(e,n){if($t(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var o=r.call(e,n||"default");if($t(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function Uu(e){var n=kg(e,"string");return $t(n)=="symbol"?n:n+""}function Dt(e,n,r){return(n=Uu(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function qu(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,o)}return r}function Tt(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?qu(Object(r),!0).forEach(function(o){Dt(e,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qu(Object(r)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(r,o))})}return e}function Ar(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function Gu(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Uu(o.key),o)}}function Mr(e,n,r){return n&&Gu(e.prototype,n),r&&Gu(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Lr(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Wo(e,n){return Wo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Wo(e,n)}function Sa(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&Wo(e,n)}function jo(e){return jo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},jo(e)}function Ea(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ea=function(){return!!e})()}function Rg(e,n){if(n&&($t(n)=="object"||typeof n=="function"))return n;if(n!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Lr(e)}function Pa(e){var n=Ea();return function(){var r,o=jo(e);if(n){var s=jo(this).constructor;r=Reflect.construct(o,arguments,s)}else r=o.apply(this,arguments);return Rg(this,r)}}var Ku=Mr(function e(){Ar(this,e)}),Qu="CALC_UNIT",$g=new RegExp(Qu,"g");function Ia(e){return typeof e=="number"?"".concat(e).concat(Qu):e}var Bg=function(e){Sa(r,e);var n=Pa(r);function r(o,s){var l;Ar(this,r),l=n.call(this),Dt(Lr(l),"result",""),Dt(Lr(l),"unitlessCssVar",void 0),Dt(Lr(l),"lowPriority",void 0);var c=$t(o);return l.unitlessCssVar=s,o instanceof r?l.result="(".concat(o.result,")"):c==="number"?l.result=Ia(o):c==="string"&&(l.result=o),l}return Mr(r,[{key:"add",value:function(s){return s instanceof r?this.result="".concat(this.result," + ").concat(s.getResult()):(typeof s=="number"||typeof s=="string")&&(this.result="".concat(this.result," + ").concat(Ia(s))),this.lowPriority=!0,this}},{key:"sub",value:function(s){return s instanceof r?this.result="".concat(this.result," - ").concat(s.getResult()):(typeof s=="number"||typeof s=="string")&&(this.result="".concat(this.result," - ").concat(Ia(s))),this.lowPriority=!0,this}},{key:"mul",value:function(s){return this.lowPriority&&(this.result="(".concat(this.result,")")),s instanceof r?this.result="".concat(this.result," * ").concat(s.getResult(!0)):(typeof s=="number"||typeof s=="string")&&(this.result="".concat(this.result," * ").concat(s)),this.lowPriority=!1,this}},{key:"div",value:function(s){return this.lowPriority&&(this.result="(".concat(this.result,")")),s instanceof r?this.result="".concat(this.result," / ").concat(s.getResult(!0)):(typeof s=="number"||typeof s=="string")&&(this.result="".concat(this.result," / ").concat(s)),this.lowPriority=!1,this}},{key:"getResult",value:function(s){return this.lowPriority||s?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(s){var l=this,c=s||{},d=c.unit,h=!0;return typeof d=="boolean"?h=d:Array.from(this.unitlessCssVar).some(function(g){return l.result.includes(g)})&&(h=!1),this.result=this.result.replace($g,h?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),r}(Ku),zg=function(e){Sa(r,e);var n=Pa(r);function r(o){var s;return Ar(this,r),s=n.call(this),Dt(Lr(s),"result",0),o instanceof r?s.result=o.result:typeof o=="number"&&(s.result=o),s}return Mr(r,[{key:"add",value:function(s){return s instanceof r?this.result+=s.result:typeof s=="number"&&(this.result+=s),this}},{key:"sub",value:function(s){return s instanceof r?this.result-=s.result:typeof s=="number"&&(this.result-=s),this}},{key:"mul",value:function(s){return s instanceof r?this.result*=s.result:typeof s=="number"&&(this.result*=s),this}},{key:"div",value:function(s){return s instanceof r?this.result/=s.result:typeof s=="number"&&(this.result/=s),this}},{key:"equal",value:function(){return this.result}}]),r}(Ku),Dg=function(n,r){var o=n==="css"?Bg:zg;return function(s){return new o(s,r)}},Yu=function(n,r){return"".concat([r,n.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function Xu(e,n,r,o){var s=Tt({},n[e]);if(o!=null&&o.deprecatedTokens){var l=o.deprecatedTokens;l.forEach(function(d){var h=Zu(d,2),g=h[0],m=h[1];if(process.env.NODE_ENV!=="production"&&ct(!(s!=null&&s[g]),"Component Token `".concat(String(g),"` of ").concat(String(e)," is deprecated. Please use `").concat(String(m),"` instead.")),s!=null&&s[g]||s!=null&&s[m]){var v;(v=s[m])!==null&&v!==void 0||(s[m]=s==null?void 0:s[g])}})}var c=Tt(Tt({},r),s);return Object.keys(c).forEach(function(d){c[d]===n[d]&&delete c[d]}),c}var Ju=process.env.NODE_ENV!=="production"||typeof CSSINJS_STATISTIC<"u",Ta=!0;function _n(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];if(!Ju)return Object.assign.apply(Object,[{}].concat(n));Ta=!1;var o={};return n.forEach(function(s){if($t(s)==="object"){var l=Object.keys(s);l.forEach(function(c){Object.defineProperty(o,c,{configurable:!0,enumerable:!0,get:function(){return s[c]}})})}}),Ta=!0,o}var ed={};function Fg(){}var Hg=function(n){var r,o=n,s=Fg;return Ju&&typeof Proxy<"u"&&(r=new Set,o=new Proxy(n,{get:function(c,d){if(Ta){var h;(h=r)===null||h===void 0||h.add(d)}return c[d]}}),s=function(c,d){var h;ed[c]={global:Array.from(r),component:Tt(Tt({},(h=ed[c])===null||h===void 0?void 0:h.component),d)}}),{token:o,keys:r,flush:s}};function td(e,n,r){if(typeof r=="function"){var o;return r(_n(n,(o=n[e])!==null&&o!==void 0?o:{}))}return r??{}}function Vg(e){return e==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return"max(".concat(o.map(function(l){return Le(l)}).join(","),")")},min:function(){for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return"min(".concat(o.map(function(l){return Le(l)}).join(","),")")}}}var Wg=1e3*60*10,jg=function(){function e(){Ar(this,e),Dt(this,"map",new Map),Dt(this,"objectIDMap",new WeakMap),Dt(this,"nextID",0),Dt(this,"lastAccessBeat",new Map),Dt(this,"accessBeat",0)}return Mr(e,[{key:"set",value:function(r,o){this.clear();var s=this.getCompositeKey(r);this.map.set(s,o),this.lastAccessBeat.set(s,Date.now())}},{key:"get",value:function(r){var o=this.getCompositeKey(r),s=this.map.get(o);return this.lastAccessBeat.set(o,Date.now()),this.accessBeat+=1,s}},{key:"getCompositeKey",value:function(r){var o=this,s=r.map(function(l){return l&&$t(l)==="object"?"obj_".concat(o.getObjectID(l)):"".concat($t(l),"_").concat(l)});return s.join("|")}},{key:"getObjectID",value:function(r){if(this.objectIDMap.has(r))return this.objectIDMap.get(r);var o=this.nextID;return this.objectIDMap.set(r,o),this.nextID+=1,o}},{key:"clear",value:function(){var r=this;if(this.accessBeat>1e4){var o=Date.now();this.lastAccessBeat.forEach(function(s,l){o-s>Wg&&(r.map.delete(l),r.lastAccessBeat.delete(l))}),this.accessBeat=0}}}]),e}(),nd=new jg;function Zg(e,n){return A.useMemo(function(){var r=nd.get(n);if(r)return r;var o=e();return nd.set(n,o),o},n)}var Ug=function(){return{}};function qg(e){var n=e.useCSP,r=n===void 0?Ug:n,o=e.useToken,s=e.usePrefix,l=e.getResetStyles,c=e.getCommonStyle,d=e.getCompUnitless;function h(y,C,_,x){var b=Array.isArray(y)?y[0]:y;function E(R){return"".concat(String(b)).concat(R.slice(0,1).toUpperCase()).concat(R.slice(1))}var S=(x==null?void 0:x.unitless)||{},P=typeof d=="function"?d(y):{},I=Tt(Tt({},P),{},Dt({},E("zIndexPopup"),!0));Object.keys(S).forEach(function(R){I[E(R)]=S[R]});var M=Tt(Tt({},x),{},{unitless:I,prefixToken:E}),k=m(y,C,_,M),N=g(b,_,M);return function(R){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:R,z=k(R,B),$=N(B);return[z,$]}}function g(y,C,_){var x=_.unitless,b=_.prefixToken,E=_.ignore;return function(S){var P=o(),I=P.cssVar,M=P.realToken;return Mg({path:[y],prefix:I.prefix,key:I.key,unitless:x,ignore:E,token:M,scope:S},function(){var k=td(y,M,C),N=Xu(y,M,k,{deprecatedTokens:_==null?void 0:_.deprecatedTokens});return k&&Object.keys(k).forEach(function(R){N[b(R)]=N[R],delete N[R]}),N}),I==null?void 0:I.key}}function m(y,C,_){var x=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},b=Array.isArray(y)?y:[y,y],E=Zu(b,1),S=E[0],P=b.join("-"),I=e.layer||{name:"antd"};return function(M){var k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:M,N=o(),R=N.theme,B=N.realToken,z=N.hashId,$=N.token,j=N.cssVar,V=N.zeroRuntime,W=A.useMemo(function(){return V},[]);if(W)return z;var F=s(),X=F.rootPrefixCls,J=F.iconPrefixCls,Z=r(),le="css",G=Zg(function(){var ee=new Set;return Object.keys(x.unitless||{}).forEach(function(K){ee.add(Ai(K,j.prefix)),ee.add(Ai(K,Yu(S,j.prefix)))}),Dg(le,ee)},[le,S,j==null?void 0:j.prefix]),ie=Vg(le),ne=ie.max,de=ie.min,oe={theme:R,token:$,hashId:z,nonce:function(){return Z.nonce},clientOnly:x.clientOnly,layer:I,order:x.order||-999};return typeof l=="function"&&Ca(Tt(Tt({},oe),{},{clientOnly:!1,path:["Shared",X]}),function(){return l($,{prefix:{rootPrefixCls:X,iconPrefixCls:J},csp:Z})}),Ca(Tt(Tt({},oe),{},{path:[P,M,J]}),function(){if(x.injectStyle===!1)return[];var ee=Hg($),K=ee.token,Y=ee.flush,se=td(S,B,_),fe=".".concat(M),xe=Xu(S,B,se,{deprecatedTokens:x.deprecatedTokens});se&&$t(se)==="object"&&Object.keys(se).forEach(function(te){se[te]="var(".concat(Ai(te,Yu(S,j.prefix)),")")});var Se=_n(K,{componentCls:fe,prefixCls:M,iconCls:".".concat(J),antCls:".".concat(X),calc:G,max:ne,min:de},se),Te=C(Se,{hashId:z,prefixCls:M,rootPrefixCls:X,iconPrefixCls:J});Y(S,xe);var Ce=typeof c=="function"?c(Se,M,k,x.resetFont):null;return[x.resetStyle===!1?null:Ce,Te]}),z}}function v(y,C,_){var x=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},b=m(y,C,_,Tt({resetStyle:!1,order:-998},x)),E=function(P){var I=P.prefixCls,M=P.rootCls,k=M===void 0?I:M;return b(I,k),null};return process.env.NODE_ENV!=="production"&&(E.displayName="SubStyle_".concat(String(Array.isArray(y)?y.join("."):y))),E}return{genStyleHooks:h,genSubStyleComponent:v,genComponentStyleHook:m}}const Or=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function Bi(e){return(e+8)/e}function Gg(e){const n=Array.from({length:10}).map((r,o)=>{const s=o-1,l=e*Math.E**(s/5),c=o>1?Math.floor(l):Math.ceil(l);return Math.floor(c/2)*2});return n[1]=e,n.map(r=>({size:r,lineHeight:Bi(r)}))}const Kg="6.2.3",rd={blue:"#1677FF",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#EB2F96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},Zo={...rd,colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
|
259
|
+
*/var nv;function iC(){return nv||(nv=1,process.env.NODE_ENV!=="production"&&function(){var s=Symbol.for("react.element"),u=Symbol.for("react.portal"),h=Symbol.for("react.fragment"),d=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),k=Symbol.for("react.provider"),M=Symbol.for("react.context"),T=Symbol.for("react.server_context"),H=Symbol.for("react.forward_ref"),Z=Symbol.for("react.suspense"),v=Symbol.for("react.suspense_list"),V=Symbol.for("react.memo"),K=Symbol.for("react.lazy"),pe=Symbol.for("react.offscreen"),de=!1,re=!1,ne=!1,ue=!1,ge=!1,ve;ve=Symbol.for("react.module.reference");function xe(vt){return!!(typeof vt=="string"||typeof vt=="function"||vt===h||vt===y||ge||vt===d||vt===Z||vt===v||ue||vt===pe||de||re||ne||typeof vt=="object"&&vt!==null&&(vt.$$typeof===K||vt.$$typeof===V||vt.$$typeof===k||vt.$$typeof===M||vt.$$typeof===H||vt.$$typeof===ve||vt.getModuleId!==void 0))}function Ie(vt){if(typeof vt=="object"&&vt!==null){var Tt=vt.$$typeof;switch(Tt){case s:var vn=vt.type;switch(vn){case h:case y:case d:case Z:case v:return vn;default:var En=vn&&vn.$$typeof;switch(En){case T:case M:case H:case K:case V:case k:return En;default:return Tt}}case u:return Tt}}}var Ue=M,Pe=k,Oe=s,wt=H,dt=h,Be=K,et=V,lt=u,ot=y,Pt=d,Ut=Z,gt=v,Te=!1,mn=!1;function He(vt){return Te||(Te=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function Ot(vt){return mn||(mn=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function Lt(vt){return Ie(vt)===M}function dn(vt){return Ie(vt)===k}function Je(vt){return typeof vt=="object"&&vt!==null&&vt.$$typeof===s}function Ct(vt){return Ie(vt)===H}function bt(vt){return Ie(vt)===h}function Ye(vt){return Ie(vt)===K}function Rt(vt){return Ie(vt)===V}function Ht(vt){return Ie(vt)===u}function On(vt){return Ie(vt)===y}function Dn(vt){return Ie(vt)===d}function ho(vt){return Ie(vt)===Z}function gn(vt){return Ie(vt)===v}so.ContextConsumer=Ue,so.ContextProvider=Pe,so.Element=Oe,so.ForwardRef=wt,so.Fragment=dt,so.Lazy=Be,so.Memo=et,so.Portal=lt,so.Profiler=ot,so.StrictMode=Pt,so.Suspense=Ut,so.SuspenseList=gt,so.isAsyncMode=He,so.isConcurrentMode=Ot,so.isContextConsumer=Lt,so.isContextProvider=dn,so.isElement=Je,so.isForwardRef=Ct,so.isFragment=bt,so.isLazy=Ye,so.isMemo=Rt,so.isPortal=Ht,so.isProfiler=On,so.isStrictMode=Dn,so.isSuspense=ho,so.isSuspenseList=gn,so.isValidElementType=xe,so.typeOf=Ie}()),so}process.env.NODE_ENV==="production"?Uh.exports=oC():Uh.exports=iC();var Qh=Uh.exports;function Jh(s,u,h){const d=X.useRef({});return(!("value"in d.current)||h(d.current.condition,u))&&(d.current.value=s(),d.current.condition=u),d.current.value}const rC=Symbol.for("react.element"),sC=Symbol.for("react.transitional.element"),aC=Symbol.for("react.fragment");function ov(s){return s&&typeof s=="object"&&(s.$$typeof===rC||s.$$typeof===sC)&&s.type===aC}const lC=Number(ce.version.split(".")[0]),cC=(s,u)=>{typeof s=="function"?s(u):typeof s=="object"&&s&&"current"in s&&(s.current=u)},Tu=(...s)=>{const u=s.filter(Boolean);return u.length<=1?u[0]:h=>{s.forEach(d=>{cC(d,h)})}},Lu=(...s)=>Jh(()=>Tu(...s),s,(u,h)=>u.length!==h.length||u.every((d,y)=>d!==h[y])),Au=s=>{var h,d;if(!s)return!1;if(iv(s)&&lC>=19)return!0;const u=Qh.isMemo(s)?s.type.type:s.type;return!(typeof u=="function"&&!((h=u.prototype)!=null&&h.render)&&u.$$typeof!==Qh.ForwardRef||typeof s=="function"&&!((d=s.prototype)!=null&&d.render)&&s.$$typeof!==Qh.ForwardRef)};function iv(s){return ce.isValidElement(s)&&!ov(s)}const nc=s=>{if(s&&iv(s)){const u=s;return u.props.propertyIsEnumerable("ref")?u.props.ref:u.ref}return null};function Kh(s,u){let h=s;for(let d=0;d<u.length;d+=1){if(h==null)return;h=h[u[d]]}return h}function rv(s,u,h,d){if(!u.length)return h;const[y,...k]=u;let M;return!s&&typeof y=="number"?M=[]:Array.isArray(s)?M=[...s]:M={...s},d&&h===void 0&&k.length===1?delete M[y][k[0]]:M[y]=rv(M[y],k,h,d),M}function Yh(s,u,h,d=!1){return u.length&&d&&h===void 0&&!Kh(s,u.slice(0,-1))?s:rv(s,u,h,d)}function uC(s){return typeof s=="object"&&s!==null&&Object.getPrototypeOf(s)===Object.prototype}function sv(s){return Array.isArray(s)?[]:{}}const dC=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function hC(s,u={}){const{prepareArray:h}=u,d=h||(()=>[]);let y=sv(s[0]);return s.forEach(k=>{function M(T,H){const Z=new Set(H),v=Kh(k,T),V=Array.isArray(v);if(V||uC(v)){if(!Z.has(v)){Z.add(v);const K=Kh(y,T);V?y=Yh(y,T,d(K,v)):(!K||typeof K!="object")&&(y=Yh(y,T,sv(v))),dC(v).forEach(pe=>{Object.getOwnPropertyDescriptor(v,pe).enumerable&&M([...T,pe],Z)})}}else y=Yh(y,T,v)}M([])}),y}function fC(...s){return hC(s)}let Xh={};const ef=[],pC=s=>{ef.push(s)};function oc(s,u){if(process.env.NODE_ENV!=="production"&&!s&&console!==void 0){const h=ef.reduce((d,y)=>y(d??"","warning"),u);h&&console.error(`Warning: ${h}`)}}function mC(s,u){if(process.env.NODE_ENV!=="production"&&!s&&console!==void 0){const h=ef.reduce((d,y)=>y(d??"","note"),u);h&&console.warn(`Note: ${h}`)}}function gC(){Xh={}}function av(s,u,h){!u&&!Xh[h]&&(s(!1,h),Xh[h]=!0)}function rs(s,u){av(oc,s,u)}function vC(s,u){av(mC,s,u)}rs.preMessage=pC,rs.resetWarned=gC,rs.noteOnce=vC;function yC(s,u){const h=Object.assign({},s);return Array.isArray(u)&&u.forEach(d=>{delete h[d]}),h}function Ou(s,u={}){let h=[];return ce.Children.forEach(s,d=>{d==null&&!u.keepEmpty||(Array.isArray(d)?h=h.concat(Ou(d)):ov(d)&&d.props?h=h.concat(Ou(d.props.children,u)):h.push(d))}),h}function lv(){}const{resetWarned:_C}=rs;let _s=null;function bC(){_s=null,_C()}let cv=lv;process.env.NODE_ENV!=="production"&&(cv=(s,u,h)=>{rs(s,`[antd: ${u}] ${h}`),process.env.NODE_ENV==="test"&&bC()});const tf=cv,uv=X.createContext({}),Za=process.env.NODE_ENV!=="production"?s=>{const{strict:u}=X.useContext(uv),h=(d,y,k)=>{if(!d)if(u===!1&&y==="deprecated"){const M=_s;_s||(_s={}),_s[s]=_s[s]||[],_s[s].includes(k||"")||_s[s].push(k||""),M||console.warn("[antd] There exists deprecated usage in your code:",_s)}else process.env.NODE_ENV!=="production"&&tf(d,s,k)};return h.deprecated=(d,y,k,M="")=>{h(d,"deprecated",`\`${y}\` is deprecated. Please use \`${k}\` instead.${M?` ${M}`:""}`)},h}:()=>{const s=()=>{};return s.deprecated=lv,s};function Va(s){return s instanceof HTMLElement||s instanceof SVGElement}function nf(s){return s&&typeof s=="object"&&Va(s.nativeElement)?s.nativeElement:Va(s)?s:null}const of=X.createContext(null);function xC({children:s,onBatchResize:u}){const h=X.useRef(0),d=X.useRef([]),y=X.useContext(of),k=X.useCallback((M,T,H)=>{h.current+=1;const Z=h.current;d.current.push({size:M,element:T,data:H}),Promise.resolve().then(()=>{Z===h.current&&(u==null||u(d.current),d.current=[])}),y==null||y(M,T,H)},[u,y]);return X.createElement(of.Provider,{value:k},s)}const bs=new Map;function dv(s){s.forEach(u=>{var d;const{target:h}=u;(d=bs.get(h))==null||d.forEach(y=>y(h))})}let rf;function hv(){return rf||(rf=new ResizeObserver(dv)),rf}process.env.NODE_ENV,process.env.NODE_ENV;function wC(s,u){bs.has(s)||(bs.set(s,new Set),hv().observe(s)),bs.get(s).add(u)}function CC(s,u){bs.has(s)&&(bs.get(s).delete(u),bs.get(s).size||(hv().unobserve(s),bs.delete(s)))}function fv(s,u,h,d){const y=X.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),k=Ro(T=>{const{width:H,height:Z}=T.getBoundingClientRect(),{offsetWidth:v,offsetHeight:V}=T,K=Math.floor(H),pe=Math.floor(Z);if(y.current.width!==K||y.current.height!==pe||y.current.offsetWidth!==v||y.current.offsetHeight!==V){const de={width:K,height:pe,offsetWidth:v,offsetHeight:V};y.current=de;const re=v===Math.round(H)?H:v,ne=V===Math.round(Z)?Z:V,ue={...de,offsetWidth:re,offsetHeight:ne};d==null||d(ue,T),Promise.resolve().then(()=>{h==null||h(ue,T)})}}),M=typeof u=="function";X.useEffect(()=>{const T=M?u():u;return T&&s&&wC(T,k),()=>{T&&CC(T,k)}},[s,M?0:u])}function SC(s,u){const{children:h,disabled:d,onResize:y,data:k}=s,M=X.useRef(null),T=X.useContext(of),H=typeof h=="function",Z=H?h(M):h,v=!H&&X.isValidElement(Z)&&Au(Z),V=v?nc(Z):null,K=Lu(V,M),pe=()=>nf(M.current);return X.useImperativeHandle(u,()=>pe()),fv(!d,pe,y,(de,re)=>{T==null||T(de,re,k)}),v?X.cloneElement(Z,{ref:K}):Z}const pv=X.forwardRef(SC);process.env.NODE_ENV!=="production"&&(pv.displayName="SingleObserver");function sf(){return sf=Object.assign?Object.assign.bind():function(s){for(var u=1;u<arguments.length;u++){var h=arguments[u];for(var d in h)Object.prototype.hasOwnProperty.call(h,d)&&(s[d]=h[d])}return s},sf.apply(this,arguments)}const EC="rc-observer-key";function PC(s,u){const{children:h}=s,d=typeof h=="function"?[h]:Ou(h);return process.env.NODE_ENV!=="production"&&(d.length>1?oc(!1,"Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead."):d.length===0&&oc(!1,"`children` of ResizeObserver is empty. Nothing is in observe.")),d.map((y,k)=>{const M=(y==null?void 0:y.key)||`${EC}-${k}`;return X.createElement(pv,sf({},s,{key:M,ref:k===0?u:void 0}),y)})}const af=X.forwardRef(PC);process.env.NODE_ENV!=="production"&&(af.displayName="ResizeObserver"),af.Collection=xC;function mv(s){var u,h,d="";if(typeof s=="string"||typeof s=="number")d+=s;else if(typeof s=="object")if(Array.isArray(s)){var y=s.length;for(u=0;u<y;u++)s[u]&&(h=mv(s[u]))&&(d&&(d+=" "),d+=h)}else for(h in s)s[h]&&(d&&(d+=" "),d+=h);return d}function ao(){for(var s,u,h=0,d="",y=arguments.length;h<y;h++)(s=arguments[h])&&(u=mv(s))&&(d&&(d+=" "),d+=u);return d}function lf(s,u){(u==null||u>s.length)&&(u=s.length);for(var h=0,d=Array(u);h<u;h++)d[h]=s[h];return d}function kC(s){if(Array.isArray(s))return lf(s)}function IC(s){if(typeof Symbol<"u"&&s[Symbol.iterator]!=null||s["@@iterator"]!=null)return Array.from(s)}function gv(s,u){if(s){if(typeof s=="string")return lf(s,u);var h={}.toString.call(s).slice(8,-1);return h==="Object"&&s.constructor&&(h=s.constructor.name),h==="Map"||h==="Set"?Array.from(s):h==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(h)?lf(s,u):void 0}}function MC(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
260
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function cf(s){return kC(s)||IC(s)||gv(s)||MC()}let vv=s=>+setTimeout(s,16),yv=s=>clearTimeout(s);typeof window<"u"&&"requestAnimationFrame"in window&&(vv=s=>window.requestAnimationFrame(s),yv=s=>window.cancelAnimationFrame(s));let _v=0;const Ru=new Map;function bv(s){Ru.delete(s)}const xs=(s,u=1)=>{_v+=1;const h=_v;function d(y){if(y===0)bv(h),s();else{const k=vv(()=>{d(y-1)});Ru.set(h,k)}}return d(u),h};xs.cancel=s=>{const u=Ru.get(s);return bv(s),yv(u)},process.env.NODE_ENV!=="production"&&(xs.ids=()=>Ru);const uf="ant",df="anticon",TC=(s,u)=>u||(s?`${uf}-${s}`:uf),wr=X.createContext({getPrefixCls:TC,iconPrefixCls:df}),xv={};function LC(s){const u=X.useContext(wr),{getPrefixCls:h,direction:d,getPopupContainer:y,renderEmpty:k}=u,M=u[s];return{classNames:xv,styles:xv,...M,getPrefixCls:h,direction:d,getPopupContainer:y,renderEmpty:k}}function ic(s){for(var u=0,h,d=0,y=s.length;y>=4;++d,y-=4)h=s.charCodeAt(d)&255|(s.charCodeAt(++d)&255)<<8|(s.charCodeAt(++d)&255)<<16|(s.charCodeAt(++d)&255)<<24,h=(h&65535)*1540483477+((h>>>16)*59797<<16),h^=h>>>24,u=(h&65535)*1540483477+((h>>>16)*59797<<16)^(u&65535)*1540483477+((u>>>16)*59797<<16);switch(y){case 3:u^=(s.charCodeAt(d+2)&255)<<16;case 2:u^=(s.charCodeAt(d+1)&255)<<8;case 1:u^=s.charCodeAt(d)&255,u=(u&65535)*1540483477+((u>>>16)*59797<<16)}return u^=u>>>13,u=(u&65535)*1540483477+((u>>>16)*59797<<16),((u^u>>>15)>>>0).toString(36)}function AC(s,u){if(!s)return!1;if(s.contains)return s.contains(u);let h=u;for(;h;){if(h===s)return!0;h=h.parentNode}return!1}const wv="data-rc-order",Cv="data-rc-priority",OC="rc-util-key",hf=new Map;function Sv({mark:s}={}){return s?s.startsWith("data-")?s:`data-${s}`:OC}function zu(s){return s.attachTo?s.attachTo:document.querySelector("head")||document.body}function RC(s){return s==="queue"?"prependQueue":s?"prepend":"append"}function ff(s){return Array.from((hf.get(s)||s).children).filter(u=>u.tagName==="STYLE")}function Ev(s,u={}){if(!hr())return null;const{csp:h,prepend:d,priority:y=0}=u,k=RC(d),M=k==="prependQueue",T=document.createElement("style");T.setAttribute(wv,k),M&&y&&T.setAttribute(Cv,`${y}`),h!=null&&h.nonce&&(T.nonce=h==null?void 0:h.nonce),T.innerHTML=s;const H=zu(u),{firstChild:Z}=H;if(d){if(M){const v=(u.styles||ff(H)).filter(V=>{if(!["prepend","prependQueue"].includes(V.getAttribute(wv)))return!1;const K=Number(V.getAttribute(Cv)||0);return y>=K});if(v.length)return H.insertBefore(T,v[v.length-1].nextSibling),T}H.insertBefore(T,Z)}else H.appendChild(T);return T}function Pv(s,u={}){let{styles:h}=u;return h||(h=ff(zu(u))),h.find(d=>d.getAttribute(Sv(u))===s)}function rc(s,u={}){const h=Pv(s,u);h&&zu(u).removeChild(h)}function zC(s,u){const h=hf.get(s);if(!h||!AC(document,h)){const d=Ev("",u),{parentNode:y}=d;hf.set(s,y),s.removeChild(d)}}function js(s,u,h={}){var H,Z,v;const d=zu(h),y=ff(d),k={...h,styles:y};zC(d,k);const M=Pv(u,k);if(M)return(H=k.csp)!=null&&H.nonce&&M.nonce!==((Z=k.csp)==null?void 0:Z.nonce)&&(M.nonce=(v=k.csp)==null?void 0:v.nonce),M.innerHTML!==s&&(M.innerHTML=s),M;const T=Ev(s,k);return T.setAttribute(Sv(k),u),T}function BC(s,u,h=!1){const d=new Set;function y(k,M,T=1){const H=d.has(k);if(rs(!H,"Warning: There may be circular references"),H)return!1;if(k===M)return!0;if(h&&T>1)return!1;d.add(k);const Z=T+1;if(Array.isArray(k)){if(!Array.isArray(M)||k.length!==M.length)return!1;for(let v=0;v<k.length;v++)if(!y(k[v],M[v],Z))return!1;return!0}if(k&&M&&typeof k=="object"&&typeof M=="object"){const v=Object.keys(k);return v.length!==Object.keys(M).length?!1:v.every(V=>y(k[V],M[V],Z))}return!1}return y(s,u)}const NC="%";function pf(s){return s.join(NC)}let kv=0;class $C{constructor(u){Io(this,"instanceId");Io(this,"cache",new Map);Io(this,"updateTimes",new Map);Io(this,"extracted",new Set);this.instanceId=u}get(u){return this.opGet(pf(u))}opGet(u){return this.cache.get(u)||null}update(u,h){return this.opUpdate(pf(u),h)}opUpdate(u,h){const d=this.cache.get(u),y=h(d);y===null?(this.cache.delete(u),this.updateTimes.delete(u)):(this.cache.set(u,y),this.updateTimes.set(u,kv),kv+=1)}}const mf="data-token-hash",ws="data-css-hash",DC="data-cache-path",Cs="__cssinjs_instance__";function FC(){const s=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){const u=document.body.querySelectorAll(`style[${ws}]`)||[],{firstChild:h}=document.head;Array.from(u).forEach(y=>{y[Cs]||(y[Cs]=s),y[Cs]===s&&document.head.insertBefore(y,h)});const d={};Array.from(document.querySelectorAll(`style[${ws}]`)).forEach(y=>{var M;const k=y.getAttribute(ws);d[k]?y[Cs]===s&&((M=y.parentNode)==null||M.removeChild(y)):d[k]=!0})}return new $C(s)}const sc=X.createContext({hashPriority:"low",cache:FC(),defaultCache:!0,autoPrefix:!1});function HC(s,u){if(s.length!==u.length)return!1;for(let h=0;h<s.length;h++)if(s[h]!==u[h])return!1;return!0}const il=class il{constructor(){Io(this,"cache");Io(this,"keys");Io(this,"cacheCallTimes");this.cache=new Map,this.keys=[],this.cacheCallTimes=0}size(){return this.keys.length}internalGet(u,h=!1){let d={map:this.cache};return u.forEach(y=>{var k;d?d=(k=d==null?void 0:d.map)==null?void 0:k.get(y):d=void 0}),d!=null&&d.value&&h&&(d.value[1]=this.cacheCallTimes++),d==null?void 0:d.value}get(u){var h;return(h=this.internalGet(u,!0))==null?void 0:h[0]}has(u){return!!this.internalGet(u)}set(u,h){if(!this.has(u)){if(this.size()+1>il.MAX_CACHE_SIZE+il.MAX_CACHE_OFFSET){const[y]=this.keys.reduce((k,M)=>{const[,T]=k;return this.internalGet(M)[1]<T?[M,this.internalGet(M)[1]]:k},[this.keys[0],this.cacheCallTimes]);this.delete(y)}this.keys.push(u)}let d=this.cache;u.forEach((y,k)=>{if(k===u.length-1)d.set(y,{value:[h,this.cacheCallTimes++]});else{const M=d.get(y);M?M.map||(M.map=new Map):d.set(y,{map:new Map}),d=d.get(y).map}})}deleteByPath(u,h){var k;const d=u.get(h[0]);if(h.length===1)return d.map?u.set(h[0],{map:d.map}):u.delete(h[0]),(k=d.value)==null?void 0:k[0];const y=this.deleteByPath(d.map,h.slice(1));return(!d.map||d.map.size===0)&&!d.value&&u.delete(h[0]),y}delete(u){if(this.has(u))return this.keys=this.keys.filter(h=>!HC(h,u)),this.deleteByPath(this.cache,u)}};Io(il,"MAX_CACHE_SIZE",20),Io(il,"MAX_CACHE_OFFSET",5);let gf=il,Iv=0;class Mv{constructor(u){Io(this,"derivatives");Io(this,"id");this.derivatives=Array.isArray(u)?u:[u],this.id=Iv,u.length===0&&oc(u.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),Iv+=1}getDerivativeToken(u){return this.derivatives.reduce((h,d)=>d(u,h),void 0)}}const vf=new gf;function yf(s){const u=Array.isArray(s)?s:[s];return vf.has(u)||vf.set(u,new Mv(u)),vf.get(u)}const jC=new WeakMap,_f={};function ZC(s,u){let h=jC;for(let d=0;d<u.length;d+=1){const y=u[d];h.has(y)||h.set(y,new WeakMap),h=h.get(y)}return h.has(_f)||h.set(_f,s()),h.get(_f)}const Tv=new WeakMap;function ac(s){let u=Tv.get(s)||"";return u||(Object.keys(s).forEach(h=>{const d=s[h];u+=h,d instanceof Mv?u+=d.id:d&&typeof d=="object"?u+=ac(d):u+=d}),u=ic(u),Tv.set(s,u)),u}function VC(s,u){return ic(`${u}_${ac(s)}`)}const bf=hr();function Wa(s){return typeof s=="number"?`${s}px`:s}function Lv(s){const{hashCls:u,hashPriority:h="low"}=s||{};if(!u)return"";const d=`.${u}`;return h==="low"?`:where(${d})`:d}const WC=s=>s!=null,Bu=(s,u="")=>`--${u?`${u}-`:""}${s}`.replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase(),qC=(s,u,h)=>{const{hashCls:d,hashPriority:y="low"}=h||{};return Object.keys(s).length?`${Lv({hashCls:d,hashPriority:y})}.${u}${h!=null&&h.scope?`.${h.scope}`:""}{${Object.entries(s).map(([k,M])=>`${k}:${M};`).join("")}}`:""},Av=(s,u,h)=>{const{hashCls:d,hashPriority:y="low",prefix:k,unitless:M,ignore:T,preserve:H}=h||{},Z={},v={};return Object.entries(s).forEach(([V,K])=>{if(H!=null&&H[V])v[V]=K;else if((typeof K=="string"||typeof K=="number")&&!(T!=null&&T[V])){const pe=Bu(V,k);Z[pe]=typeof K=="number"&&!(M!=null&&M[V])?`${K}px`:String(K),v[V]=`var(${pe})`}}),[v,qC(Z,u,{scope:h==null?void 0:h.scope,hashCls:d,hashPriority:y})]};function GC(){return!1}let xf=!1;function UC(){return xf}const QC=process.env.NODE_ENV==="production"?GC:UC;if(process.env.NODE_ENV!=="production"&&typeof module<"u"&&module&&module.hot&&typeof window<"u"){const s=typeof globalThis<"u"?globalThis:typeof window<"u"?window:null;if(s&&typeof s.webpackHotUpdate=="function"){const u=s.webpackHotUpdate;s.webpackHotUpdate=(...h)=>(xf=!0,setTimeout(()=>{xf=!1},0),u(...h))}}const Nu=new Map;function wf(s,u,h,d,y){const{cache:k}=X.useContext(sc),M=[s,...u],T=pf(M),H=QC(),Z=K=>{k.opUpdate(T,pe=>{const[de=0,re]=pe||[void 0,void 0];let ne=re;process.env.NODE_ENV!=="production"&&re&&H&&(d==null||d(ne,H),ne=null);const ue=ne||h(),ge=[de,ue];return K?K(ge):ge})};X.useMemo(()=>{Z()},[T]);let v=k.opGet(T);process.env.NODE_ENV!=="production"&&!v&&(Z(),v=k.opGet(T));const V=v[1];return ce.useInsertionEffect(()=>(Z(([K,pe])=>[K+1,pe]),Nu.has(T)||(y==null||y(V),Nu.set(T,!0),Promise.resolve().then(()=>{Nu.delete(T)})),()=>{k.opUpdate(T,K=>{const[pe=0,de]=K||[];return pe-1===0?(d==null||d(de,!1),Nu.delete(T),null):[pe-1,de]})}),[T]),V}const JC={},KC=process.env.NODE_ENV!=="production"?"css-dev-only-do-not-override":"css",da=new Map;function YC(s){da.set(s,(da.get(s)||0)+1)}function XC(s,u){typeof document<"u"&&document.querySelectorAll(`style[${mf}="${s}"]`).forEach(d=>{var y;d[Cs]===u&&((y=d.parentNode)==null||y.removeChild(d))})}const e1=-1;function t1(s,u){da.set(s,(da.get(s)||0)-1);const h=new Set;da.forEach((d,y)=>{d<=0&&h.add(y)}),da.size-h.size>e1&&h.forEach(d=>{XC(d,u),da.delete(d)})}const n1=(s,u,h,d)=>{let k={...h.getDerivativeToken(s),...u};return d&&(k=d(k)),k},o1="token";function i1(s,u,h){const{cache:{instanceId:d},container:y,hashPriority:k}=ce.useContext(sc),{salt:M="",override:T=JC,formatToken:H,getComputedToken:Z,cssVar:v}=h,V=ZC(()=>Object.assign({},...u),u),K=ac(V),pe=ac(T),de=ac(v);return wf(o1,[M,s.id,K,pe,de],()=>{const ne=Z?Z(V,T,s):n1(V,T,s,H),ue={...ne},ge=`${M}_${v.prefix}`,ve=ic(ge),xe=`${KC}-${ve}`;ue._tokenKey=VC(ue,ge);const[Ie,Ue]=Av(ne,v.key,{prefix:v.prefix,ignore:v.ignore,unitless:v.unitless,preserve:v.preserve,hashPriority:k,hashCls:v.hashed?xe:void 0});return Ie._hashId=ve,YC(v.key),[Ie,xe,ue,Ue,v.key]},([,,,,ne])=>{t1(ne,d)},([,,,ne,ue])=>{if(!ne)return;const ge=js(ne,ic(`css-var-${ue}`),{mark:ws,prepend:"queue",attachTo:y,priority:-999});ge[Cs]=d,ge.setAttribute(mf,ue)})}var r1={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Eo="-ms-",lc="-moz-",Xn="-webkit-",Ov="comm",Cf="rule",Sf="decl",s1="@import",a1="@namespace",Rv="@keyframes",l1="@layer",zv=Math.abs,Ef=String.fromCharCode,Pf=Object.assign;function c1(s,u){return di(s,0)^45?(((u<<2^di(s,0))<<2^di(s,1))<<2^di(s,2))<<2^di(s,3):0}function Bv(s){return s.trim()}function Ss(s,u){return(s=u.exec(s))?s[0]:s}function pn(s,u,h){return s.replace(u,h)}function $u(s,u,h){return s.indexOf(u,h)}function di(s,u){return s.charCodeAt(u)|0}function ha(s,u,h){return s.slice(u,h)}function Br(s){return s.length}function Nv(s){return s.length}function cc(s,u){return u.push(s),s}function u1(s,u){return s.map(u).join("")}function $v(s,u){return s.filter(function(h){return!Ss(h,u)})}var Du=1,qa=1,Dv=0,Cr=0,ni=0,Ga="";function Fu(s,u,h,d,y,k,M,T){return{value:s,root:u,parent:h,type:d,props:y,children:k,line:Du,column:qa,length:M,return:"",siblings:T}}function Zs(s,u){return Pf(Fu("",null,null,"",null,null,0,s.siblings),s,{length:-s.length},u)}function Ua(s){for(;s.root;)s=Zs(s.root,{children:[s]});cc(s,s.siblings)}function d1(){return ni}function h1(){return ni=Cr>0?di(Ga,--Cr):0,qa--,ni===10&&(qa=1,Du--),ni}function Nr(){return ni=Cr<Dv?di(Ga,Cr++):0,qa++,ni===10&&(qa=1,Du++),ni}function Vs(){return di(Ga,Cr)}function Hu(){return Cr}function ju(s,u){return ha(Ga,s,u)}function uc(s){switch(s){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function f1(s){return Du=qa=1,Dv=Br(Ga=s),Cr=0,[]}function p1(s){return Ga="",s}function kf(s){return Bv(ju(Cr-1,If(s===91?s+2:s===40?s+1:s)))}function m1(s){for(;(ni=Vs())&&ni<33;)Nr();return uc(s)>2||uc(ni)>3?"":" "}function g1(s,u){for(;--u&&Nr()&&!(ni<48||ni>102||ni>57&&ni<65||ni>70&&ni<97););return ju(s,Hu()+(u<6&&Vs()==32&&Nr()==32))}function If(s){for(;Nr();)switch(ni){case s:return Cr;case 34:case 39:s!==34&&s!==39&&If(ni);break;case 40:s===41&&If(s);break;case 92:Nr();break}return Cr}function v1(s,u){for(;Nr()&&s+ni!==47+10;)if(s+ni===42+42&&Vs()===47)break;return"/*"+ju(u,Cr-1)+"*"+Ef(s===47?s:Nr())}function y1(s){for(;!uc(Vs());)Nr();return ju(s,Cr)}function Fv(s){return p1(Zu("",null,null,null,[""],s=f1(s),0,[0],s))}function Zu(s,u,h,d,y,k,M,T,H){for(var Z=0,v=0,V=M,K=0,pe=0,de=0,re=1,ne=1,ue=1,ge=0,ve="",xe=y,Ie=k,Ue=d,Pe=ve;ne;)switch(de=ge,ge=Nr()){case 40:if(de!=108&&di(Pe,V-1)==58){$u(Pe+=pn(kf(ge),"&","&\f"),"&\f",zv(Z?T[Z-1]:0))!=-1&&(ue=-1);break}case 34:case 39:case 91:Pe+=kf(ge);break;case 9:case 10:case 13:case 32:Pe+=m1(de);break;case 92:Pe+=g1(Hu()-1,7);continue;case 47:switch(Vs()){case 42:case 47:cc(_1(v1(Nr(),Hu()),u,h,H),H),(uc(de||1)==5||uc(Vs()||1)==5)&&Br(Pe)&&ha(Pe,-1,void 0)!==" "&&(Pe+=" ");break;default:Pe+="/"}break;case 123*re:T[Z++]=Br(Pe)*ue;case 125*re:case 59:case 0:switch(ge){case 0:case 125:ne=0;case 59+v:ue==-1&&(Pe=pn(Pe,/\f/g,"")),pe>0&&(Br(Pe)-V||re===0&&de===47)&&cc(pe>32?jv(Pe+";",d,h,V-1,H):jv(pn(Pe," ","")+";",d,h,V-2,H),H);break;case 59:Pe+=";";default:if(cc(Ue=Hv(Pe,u,h,Z,v,y,T,ve,xe=[],Ie=[],V,k),k),ge===123)if(v===0)Zu(Pe,u,Ue,Ue,xe,k,V,T,Ie);else{switch(K){case 99:if(di(Pe,3)===110)break;case 108:if(di(Pe,2)===97)break;default:v=0;case 100:case 109:case 115:}v?Zu(s,Ue,Ue,d&&cc(Hv(s,Ue,Ue,0,0,y,T,ve,y,xe=[],V,Ie),Ie),y,Ie,V,T,d?xe:Ie):Zu(Pe,Ue,Ue,Ue,[""],Ie,0,T,Ie)}}Z=v=pe=0,re=ue=1,ve=Pe="",V=M;break;case 58:V=1+Br(Pe),pe=de;default:if(re<1){if(ge==123)--re;else if(ge==125&&re++==0&&h1()==125)continue}switch(Pe+=Ef(ge),ge*re){case 38:ue=v>0?1:(Pe+="\f",-1);break;case 44:T[Z++]=(Br(Pe)-1)*ue,ue=1;break;case 64:Vs()===45&&(Pe+=kf(Nr())),K=Vs(),v=V=Br(ve=Pe+=y1(Hu())),ge++;break;case 45:de===45&&Br(Pe)==2&&(re=0)}}return k}function Hv(s,u,h,d,y,k,M,T,H,Z,v,V){for(var K=y-1,pe=y===0?k:[""],de=Nv(pe),re=0,ne=0,ue=0;re<d;++re)for(var ge=0,ve=ha(s,K+1,K=zv(ne=M[re])),xe=s;ge<de;++ge)(xe=Bv(ne>0?pe[ge]+" "+ve:pn(ve,/&\f/g,pe[ge])))&&(H[ue++]=xe);return Fu(s,u,h,y===0?Cf:T,H,Z,v,V)}function _1(s,u,h,d){return Fu(s,u,h,Ov,Ef(d1()),ha(s,2,-2),0,d)}function jv(s,u,h,d,y){return Fu(s,u,h,Sf,ha(s,0,d),ha(s,d+1,-1),d,y)}function Zv(s,u,h){switch(c1(s,u)){case 5103:return Xn+"print-"+s+s;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:case 6391:case 5879:case 5623:case 6135:case 4599:return Xn+s+s;case 4855:return Xn+s.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+s;case 4789:return lc+s+s;case 5349:case 4246:case 4810:case 6968:case 2756:return Xn+s+lc+s+Eo+s+s;case 5936:switch(di(s,u+11)){case 114:return Xn+s+Eo+pn(s,/[svh]\w+-[tblr]{2}/,"tb")+s;case 108:return Xn+s+Eo+pn(s,/[svh]\w+-[tblr]{2}/,"tb-rl")+s;case 45:return Xn+s+Eo+pn(s,/[svh]\w+-[tblr]{2}/,"lr")+s}case 6828:case 4268:case 2903:return Xn+s+Eo+s+s;case 6165:return Xn+s+Eo+"flex-"+s+s;case 5187:return Xn+s+pn(s,/(\w+).+(:[^]+)/,Xn+"box-$1$2"+Eo+"flex-$1$2")+s;case 5443:return Xn+s+Eo+"flex-item-"+pn(s,/flex-|-self/g,"")+(Ss(s,/flex-|baseline/)?"":Eo+"grid-row-"+pn(s,/flex-|-self/g,""))+s;case 4675:return Xn+s+Eo+"flex-line-pack"+pn(s,/align-content|flex-|-self/g,"")+s;case 5548:return Xn+s+Eo+pn(s,"shrink","negative")+s;case 5292:return Xn+s+Eo+pn(s,"basis","preferred-size")+s;case 6060:return Xn+"box-"+pn(s,"-grow","")+Xn+s+Eo+pn(s,"grow","positive")+s;case 4554:return Xn+pn(s,/([^-])(transform)/g,"$1"+Xn+"$2")+s;case 6187:return pn(pn(pn(s,/(zoom-|grab)/,Xn+"$1"),/(image-set)/,Xn+"$1"),s,"")+s;case 5495:case 3959:return pn(s,/(image-set\([^]*)/,Xn+"$1$`$1");case 4968:return pn(pn(s,/(.+:)(flex-)?(.*)/,Xn+"box-pack:$3"+Eo+"flex-pack:$3"),/space-between/,"justify")+Xn+s+s;case 4200:if(!Ss(s,/flex-|baseline/))return Eo+"grid-column-align"+ha(s,u)+s;break;case 2592:case 3360:return Eo+pn(s,"template-","")+s;case 4384:case 3616:return h&&h.some(function(d,y){return u=y,Ss(d.props,/grid-\w+-end/)})?~$u(s+(h=h[u].value),"span",0)?s:Eo+pn(s,"-start","")+s+Eo+"grid-row-span:"+(~$u(h,"span",0)?Ss(h,/\d+/):+Ss(h,/\d+/)-+Ss(s,/\d+/))+";":Eo+pn(s,"-start","")+s;case 4896:case 4128:return h&&h.some(function(d){return Ss(d.props,/grid-\w+-start/)})?s:Eo+pn(pn(s,"-end","-span"),"span ","")+s;case 4095:case 3583:case 4068:case 2532:return pn(s,/(.+)-inline(.+)/,Xn+"$1$2")+s;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Br(s)-1-u>6)switch(di(s,u+1)){case 109:if(di(s,u+4)!==45)break;case 102:return pn(s,/(.+:)(.+)-([^]+)/,"$1"+Xn+"$2-$3$1"+lc+(di(s,u+3)==108?"$3":"$2-$3"))+s;case 115:return~$u(s,"stretch",0)?Zv(pn(s,"stretch","fill-available"),u,h)+s:s}break;case 5152:case 5920:return pn(s,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(d,y,k,M,T,H,Z){return Eo+y+":"+k+Z+(M?Eo+y+"-span:"+(T?H:+H-+k)+Z:"")+s});case 4949:if(di(s,u+6)===121)return pn(s,":",":"+Xn)+s;break;case 6444:switch(di(s,di(s,14)===45?18:11)){case 120:return pn(s,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Xn+(di(s,14)===45?"inline-":"")+"box$3$1"+Xn+"$2$3$1"+Eo+"$2box$3")+s;case 100:return pn(s,":",":"+Eo)+s}break;case 5719:case 2647:case 2135:case 3927:case 2391:return pn(s,"scroll-","scroll-snap-")+s}return s}function dc(s,u){for(var h="",d=0;d<s.length;d++)h+=u(s[d],d,s,u)||"";return h}function Vv(s,u,h,d){switch(s.type){case l1:if(s.children.length)break;case s1:case a1:case Sf:return s.return=s.return||s.value;case Ov:return"";case Rv:return s.return=s.value+"{"+dc(s.children,d)+"}";case Cf:if(!Br(s.value=s.props.join(",")))return""}return Br(h=dc(s.children,d))?s.return=s.value+"{"+h+"}":""}function b1(s){var u=Nv(s);return function(h,d,y,k){for(var M="",T=0;T<u;T++)M+=s[T](h,d,y,k)||"";return M}}function x1(s,u,h,d){if(s.length>-1&&!s.return)switch(s.type){case Sf:s.return=Zv(s.value,s.length,h);return;case Rv:return dc([Zs(s,{value:pn(s.value,"@","@"+Xn)})],d);case Cf:if(s.length)return u1(h=s.props,function(y){switch(Ss(y,d=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Ua(Zs(s,{props:[pn(y,/:(read-\w+)/,":"+lc+"$1")]})),Ua(Zs(s,{props:[y]})),Pf(s,{props:$v(h,d)});break;case"::placeholder":Ua(Zs(s,{props:[pn(y,/:(plac\w+)/,":"+Xn+"input-$1")]})),Ua(Zs(s,{props:[pn(y,/:(plac\w+)/,":"+lc+"$1")]})),Ua(Zs(s,{props:[pn(y,/:(plac\w+)/,Eo+"input-$1")]})),Ua(Zs(s,{props:[y]})),Pf(s,{props:$v(h,d)});break}return""})}}function Wv(s,u){const{path:h,parentSelectors:d}=u;rs(!1,`[Ant Design CSS-in-JS] ${h?`Error in ${h}: `:""}${s}${d.length?` Selector: ${d.join(" | ")}`:""}`)}const w1=(s,u,h)=>{if(s==="content"){const d=/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/;(typeof u!="string"||["normal","none","initial","inherit","unset"].indexOf(u)===-1&&!d.test(u)&&!u.startsWith("var(")&&(u.charAt(0)!==u.charAt(u.length-1)||u.charAt(0)!=='"'&&u.charAt(0)!=="'"))&&Wv(`You seem to be using a value for 'content' without quotes, try replacing it with \`content: '"${u}"'\`.`,h)}},C1=(s,u,h)=>{s==="animation"&&h.hashId&&u!=="none"&&Wv(`You seem to be using hashed animation '${u}', in which case 'animationName' with Keyframe as value is recommended.`,h)},qv="data-ant-cssinjs-cache-path",Gv="_FILE_STYLE__";let fa,Uv=!0;function S1(){var s;if(!fa&&(fa={},hr())){const u=document.createElement("div");u.className=qv,u.style.position="fixed",u.style.visibility="hidden",u.style.top="-9999px",document.body.appendChild(u);let h=getComputedStyle(u).content||"";h=h.replace(/^"/,"").replace(/"$/,""),h.split(";").forEach(y=>{const[k,M]=y.split(":");fa[k]=M});const d=document.querySelector(`style[${qv}]`);d&&(Uv=!1,(s=d.parentNode)==null||s.removeChild(d)),document.body.removeChild(u)}}function E1(s){return S1(),!!fa[s]}function P1(s){const u=fa[s];let h=null;if(u&&hr())if(Uv)h=Gv;else{const d=document.querySelector(`style[${ws}="${fa[s]}"]`);d?h=d.innerHTML:delete fa[s]}return[h,u]}const Qv="_skip_check_",Jv="_multi_value_";function Mf(s,u){return(u?dc(Fv(s),b1([x1,Vv])):dc(Fv(s),Vv)).replace(/\{%%%\:[^;];}/g,";")}function k1(s){return typeof s=="object"&&s&&(Qv in s||Jv in s)}function Kv(s,u,h="high"){if(!u)return s;const d=Lv({hashCls:u,hashPriority:h});return s.split(",").map(k=>{var Z;const M=k.trim().split(/\s+/);let T=M[0]||"";const H=((Z=T.match(/^\w+/))==null?void 0:Z[0])||"";return T=`${H}${d}${T.slice(H.length)}`,[T,...M.slice(1)].join(" ")}).join(",")}const Tf=(s,u={},{root:h,injectHash:d,parentSelectors:y}={root:!0,parentSelectors:[]})=>{const{hashId:k,layer:M,path:T,hashPriority:H,transformers:Z=[],linters:v=[]}=u;let V="",K={};function pe(ne){const ue=ne.getName(k);if(!K[ue]){const[ge]=Tf(ne.style,u,{root:!1,parentSelectors:y});K[ue]=`@keyframes ${ne.getName(k)}${ge}`}}function de(ne,ue=[]){return ne.forEach(ge=>{Array.isArray(ge)?de(ge,ue):ge&&ue.push(ge)}),ue}return de(Array.isArray(s)?s:[s]).forEach(ne=>{const ue=typeof ne=="string"&&!h?{}:ne;if(typeof ue=="string")V+=`${ue}
|
|
261
|
+
`;else if(ue._keyframe)pe(ue);else{const ge=Z.reduce((ve,xe)=>{var Ie;return((Ie=xe==null?void 0:xe.visit)==null?void 0:Ie.call(xe,ve))||ve},ue);Object.keys(ge).forEach(ve=>{const xe=ge[ve];if(typeof xe=="object"&&xe&&(ve!=="animationName"||!xe._keyframe)&&!k1(xe)){let Ie=!1,Ue=ve.trim(),Pe=!1;(h||d)&&k?Ue.startsWith("@")?Ie=!0:Ue==="&"?Ue=Kv("",k,H):Ue=Kv(ve,k,H):h&&!k&&(Ue==="&"||Ue==="")&&(Ue="",Pe=!0);const[Oe,wt]=Tf(xe,u,{root:Pe,injectHash:Ie,parentSelectors:[...y,Ue]});K={...K,...wt},V+=`${Ue}${Oe}`}else{let Ie=function(Pe,Oe){process.env.NODE_ENV!=="production"&&(typeof xe!="object"||!(xe!=null&&xe[Qv]))&&[w1,C1,...v].forEach(Be=>Be(Pe,Oe,{path:T,hashId:k,parentSelectors:y}));const wt=Pe.replace(/[A-Z]/g,Be=>`-${Be.toLowerCase()}`);let dt=Oe;!r1[Pe]&&typeof dt=="number"&&dt!==0&&(dt=`${dt}px`),Pe==="animationName"&&(Oe!=null&&Oe._keyframe)&&(pe(Oe),dt=Oe.getName(k)),V+=`${wt}:${dt};`};const Ue=(xe==null?void 0:xe.value)??xe;typeof xe=="object"&&(xe!=null&&xe[Jv])&&Array.isArray(Ue)?Ue.forEach(Pe=>{Ie(ve,Pe)}):WC(Ue)&&Ie(ve,Ue)}})}}),h?M&&(V&&(V=`@layer ${M.name} {${V}}`),M.dependencies&&(K[`@layer ${M.name}`]=M.dependencies.map(ne=>`@layer ${ne}, ${M.name};`).join(`
|
|
262
|
+
`))):V=`{${V}}`,[V,K]};function Yv(s,u){return ic(`${s.join("%")}${u}`)}const I1="style";function Lf(s,u){const{path:h,hashId:d,layer:y,nonce:k,clientOnly:M,order:T=0}=s,{mock:H,hashPriority:Z,container:v,transformers:V,linters:K,cache:pe,layer:de,autoPrefix:re}=X.useContext(sc),ne=[d||""];de&&ne.push("layer"),ne.push(...h);let ue=bf;process.env.NODE_ENV!=="production"&&H!==void 0&&(ue=H==="client"),wf(I1,ne,()=>{const ge=ne.join("|");if(E1(ge)){const[Oe,wt]=P1(ge);if(Oe)return[Oe,wt,{},M,T]}const ve=u(),[xe,Ie]=Tf(ve,{hashId:d,hashPriority:Z,layer:de?y:void 0,path:h.join("-"),transformers:V,linters:K}),Ue=Mf(xe,re||!1),Pe=Yv(ne,Ue);return[Ue,Pe,Ie,M,T]},(ge,ve)=>{const[,xe]=ge;ve&&bf&&rc(xe,{mark:ws,attachTo:v})},ge=>{const[ve,xe,Ie,,Ue]=ge;if(ue&&ve!==Gv){const Pe={mark:ws,prepend:de?!1:"queue",attachTo:v,priority:Ue},Oe=typeof k=="function"?k():k;Oe&&(Pe.csp={nonce:Oe});const wt=[],dt=[];Object.keys(Ie).forEach(et=>{et.startsWith("@layer")?wt.push(et):dt.push(et)}),wt.forEach(et=>{js(Mf(Ie[et],re||!1),`_layer-${et}`,{...Pe,prepend:!0})});const Be=js(ve,xe,Pe);Be[Cs]=pe.instanceId,process.env.NODE_ENV!=="production"&&Be.setAttribute(DC,ne.join("|")),dt.forEach(et=>{js(Mf(Ie[et],re||!1),`_effect-${et}`,Pe)})}})}const M1="cssVar",T1=(s,u)=>{const{key:h,prefix:d,unitless:y,ignore:k,token:M,hashId:T,scope:H=""}=s,{cache:{instanceId:Z},container:v,hashPriority:V}=ce.useContext(sc),{_tokenKey:K}=M,pe=[...s.path,h,H,K];return wf(M1,pe,()=>{const re=u(),[ne,ue]=Av(re,h,{prefix:d,unitless:y,ignore:k,scope:H,hashPriority:V,hashCls:T}),ge=Yv(pe,ue);return[ne,ue,ge,h]},([,,re])=>{bf&&rc(re,{mark:ws,attachTo:v})},([,re,ne])=>{if(!re)return;const ue=js(re,ne,{mark:ws,prepend:"queue",attachTo:v,priority:-999});ue[Cs]=Z,ue.setAttribute(mf,h)})};function Qa(s){return s.notSplit=!0,s}Qa(["borderTop","borderBottom"]),Qa(["borderTop"]),Qa(["borderBottom"]),Qa(["borderLeft","borderRight"]),Qa(["borderLeft"]),Qa(["borderRight"]);function $r(s){"@babel/helpers - typeof";return $r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},$r(s)}function L1(s){if(Array.isArray(s))return s}function A1(s,u){var h=s==null?null:typeof Symbol<"u"&&s[Symbol.iterator]||s["@@iterator"];if(h!=null){var d,y,k,M,T=[],H=!0,Z=!1;try{if(k=(h=h.call(s)).next,u===0){if(Object(h)!==h)return;H=!1}else for(;!(H=(d=k.call(h)).done)&&(T.push(d.value),T.length!==u);H=!0);}catch(v){Z=!0,y=v}finally{try{if(!H&&h.return!=null&&(M=h.return(),Object(M)!==M))return}finally{if(Z)throw y}}return T}}function O1(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
263
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Xv(s,u){return L1(s)||A1(s,u)||gv(s,u)||O1()}function R1(s,u){if($r(s)!="object"||!s)return s;var h=s[Symbol.toPrimitive];if(h!==void 0){var d=h.call(s,u||"default");if($r(d)!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return(u==="string"?String:Number)(s)}function ey(s){var u=R1(s,"string");return $r(u)=="symbol"?u:u+""}function Dr(s,u,h){return(u=ey(u))in s?Object.defineProperty(s,u,{value:h,enumerable:!0,configurable:!0,writable:!0}):s[u]=h,s}function ty(s,u){var h=Object.keys(s);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(s);u&&(d=d.filter(function(y){return Object.getOwnPropertyDescriptor(s,y).enumerable})),h.push.apply(h,d)}return h}function nr(s){for(var u=1;u<arguments.length;u++){var h=arguments[u]!=null?arguments[u]:{};u%2?ty(Object(h),!0).forEach(function(d){Dr(s,d,h[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(h)):ty(Object(h)).forEach(function(d){Object.defineProperty(s,d,Object.getOwnPropertyDescriptor(h,d))})}return s}function hc(s,u){if(!(s instanceof u))throw new TypeError("Cannot call a class as a function")}function ny(s,u){for(var h=0;h<u.length;h++){var d=u[h];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(s,ey(d.key),d)}}function fc(s,u,h){return u&&ny(s.prototype,u),h&&ny(s,h),Object.defineProperty(s,"prototype",{writable:!1}),s}function pc(s){if(s===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s}function Af(s,u){return Af=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(h,d){return h.__proto__=d,h},Af(s,u)}function oy(s,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(u&&u.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),Object.defineProperty(s,"prototype",{writable:!1}),u&&Af(s,u)}function Vu(s){return Vu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(u){return u.__proto__||Object.getPrototypeOf(u)},Vu(s)}function iy(){try{var s=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(iy=function(){return!!s})()}function z1(s,u){if(u&&($r(u)=="object"||typeof u=="function"))return u;if(u!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return pc(s)}function ry(s){var u=iy();return function(){var h,d=Vu(s);if(u){var y=Vu(this).constructor;h=Reflect.construct(d,arguments,y)}else h=d.apply(this,arguments);return z1(this,h)}}var sy=fc(function s(){hc(this,s)}),ay="CALC_UNIT",B1=new RegExp(ay,"g");function Of(s){return typeof s=="number"?"".concat(s).concat(ay):s}var N1=function(s){oy(h,s);var u=ry(h);function h(d,y){var k;hc(this,h),k=u.call(this),Dr(pc(k),"result",""),Dr(pc(k),"unitlessCssVar",void 0),Dr(pc(k),"lowPriority",void 0);var M=$r(d);return k.unitlessCssVar=y,d instanceof h?k.result="(".concat(d.result,")"):M==="number"?k.result=Of(d):M==="string"&&(k.result=d),k}return fc(h,[{key:"add",value:function(y){return y instanceof h?this.result="".concat(this.result," + ").concat(y.getResult()):(typeof y=="number"||typeof y=="string")&&(this.result="".concat(this.result," + ").concat(Of(y))),this.lowPriority=!0,this}},{key:"sub",value:function(y){return y instanceof h?this.result="".concat(this.result," - ").concat(y.getResult()):(typeof y=="number"||typeof y=="string")&&(this.result="".concat(this.result," - ").concat(Of(y))),this.lowPriority=!0,this}},{key:"mul",value:function(y){return this.lowPriority&&(this.result="(".concat(this.result,")")),y instanceof h?this.result="".concat(this.result," * ").concat(y.getResult(!0)):(typeof y=="number"||typeof y=="string")&&(this.result="".concat(this.result," * ").concat(y)),this.lowPriority=!1,this}},{key:"div",value:function(y){return this.lowPriority&&(this.result="(".concat(this.result,")")),y instanceof h?this.result="".concat(this.result," / ").concat(y.getResult(!0)):(typeof y=="number"||typeof y=="string")&&(this.result="".concat(this.result," / ").concat(y)),this.lowPriority=!1,this}},{key:"getResult",value:function(y){return this.lowPriority||y?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(y){var k=this,M=y||{},T=M.unit,H=!0;return typeof T=="boolean"?H=T:Array.from(this.unitlessCssVar).some(function(Z){return k.result.includes(Z)})&&(H=!1),this.result=this.result.replace(B1,H?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),h}(sy),$1=function(s){oy(h,s);var u=ry(h);function h(d){var y;return hc(this,h),y=u.call(this),Dr(pc(y),"result",0),d instanceof h?y.result=d.result:typeof d=="number"&&(y.result=d),y}return fc(h,[{key:"add",value:function(y){return y instanceof h?this.result+=y.result:typeof y=="number"&&(this.result+=y),this}},{key:"sub",value:function(y){return y instanceof h?this.result-=y.result:typeof y=="number"&&(this.result-=y),this}},{key:"mul",value:function(y){return y instanceof h?this.result*=y.result:typeof y=="number"&&(this.result*=y),this}},{key:"div",value:function(y){return y instanceof h?this.result/=y.result:typeof y=="number"&&(this.result/=y),this}},{key:"equal",value:function(){return this.result}}]),h}(sy),D1=function(u,h){var d=u==="css"?N1:$1;return function(y){return new d(y,h)}},ly=function(u,h){return"".concat([h,u.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function cy(s,u,h,d){var y=nr({},u[s]);if(d!=null&&d.deprecatedTokens){var k=d.deprecatedTokens;k.forEach(function(T){var H=Xv(T,2),Z=H[0],v=H[1];if(process.env.NODE_ENV!=="production"&&rs(!(y!=null&&y[Z]),"Component Token `".concat(String(Z),"` of ").concat(String(s)," is deprecated. Please use `").concat(String(v),"` instead.")),y!=null&&y[Z]||y!=null&&y[v]){var V;(V=y[v])!==null&&V!==void 0||(y[v]=y==null?void 0:y[Z])}})}var M=nr(nr({},h),y);return Object.keys(M).forEach(function(T){M[T]===u[T]&&delete M[T]}),M}var uy=process.env.NODE_ENV!=="production"||typeof CSSINJS_STATISTIC<"u",Rf=!0;function Ja(){for(var s=arguments.length,u=new Array(s),h=0;h<s;h++)u[h]=arguments[h];if(!uy)return Object.assign.apply(Object,[{}].concat(u));Rf=!1;var d={};return u.forEach(function(y){if($r(y)==="object"){var k=Object.keys(y);k.forEach(function(M){Object.defineProperty(d,M,{configurable:!0,enumerable:!0,get:function(){return y[M]}})})}}),Rf=!0,d}var dy={};function F1(){}var H1=function(u){var h,d=u,y=F1;return uy&&typeof Proxy<"u"&&(h=new Set,d=new Proxy(u,{get:function(M,T){if(Rf){var H;(H=h)===null||H===void 0||H.add(T)}return M[T]}}),y=function(M,T){var H;dy[M]={global:Array.from(h),component:nr(nr({},(H=dy[M])===null||H===void 0?void 0:H.component),T)}}),{token:d,keys:h,flush:y}};function hy(s,u,h){if(typeof h=="function"){var d;return h(Ja(u,(d=u[s])!==null&&d!==void 0?d:{}))}return h??{}}function j1(s){return s==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var h=arguments.length,d=new Array(h),y=0;y<h;y++)d[y]=arguments[y];return"max(".concat(d.map(function(k){return Wa(k)}).join(","),")")},min:function(){for(var h=arguments.length,d=new Array(h),y=0;y<h;y++)d[y]=arguments[y];return"min(".concat(d.map(function(k){return Wa(k)}).join(","),")")}}}var Z1=1e3*60*10,V1=function(){function s(){hc(this,s),Dr(this,"map",new Map),Dr(this,"objectIDMap",new WeakMap),Dr(this,"nextID",0),Dr(this,"lastAccessBeat",new Map),Dr(this,"accessBeat",0)}return fc(s,[{key:"set",value:function(h,d){this.clear();var y=this.getCompositeKey(h);this.map.set(y,d),this.lastAccessBeat.set(y,Date.now())}},{key:"get",value:function(h){var d=this.getCompositeKey(h),y=this.map.get(d);return this.lastAccessBeat.set(d,Date.now()),this.accessBeat+=1,y}},{key:"getCompositeKey",value:function(h){var d=this,y=h.map(function(k){return k&&$r(k)==="object"?"obj_".concat(d.getObjectID(k)):"".concat($r(k),"_").concat(k)});return y.join("|")}},{key:"getObjectID",value:function(h){if(this.objectIDMap.has(h))return this.objectIDMap.get(h);var d=this.nextID;return this.objectIDMap.set(h,d),this.nextID+=1,d}},{key:"clear",value:function(){var h=this;if(this.accessBeat>1e4){var d=Date.now();this.lastAccessBeat.forEach(function(y,k){d-y>Z1&&(h.map.delete(k),h.lastAccessBeat.delete(k))}),this.accessBeat=0}}}]),s}(),fy=new V1;function W1(s,u){return ce.useMemo(function(){var h=fy.get(u);if(h)return h;var d=s();return fy.set(u,d),d},u)}var q1=function(){return{}};function G1(s){var u=s.useCSP,h=u===void 0?q1:u,d=s.useToken,y=s.usePrefix,k=s.getResetStyles,M=s.getCommonStyle,T=s.getCompUnitless;function H(K,pe,de,re){var ne=Array.isArray(K)?K[0]:K;function ue(Oe){return"".concat(String(ne)).concat(Oe.slice(0,1).toUpperCase()).concat(Oe.slice(1))}var ge=(re==null?void 0:re.unitless)||{},ve=typeof T=="function"?T(K):{},xe=nr(nr({},ve),{},Dr({},ue("zIndexPopup"),!0));Object.keys(ge).forEach(function(Oe){xe[ue(Oe)]=ge[Oe]});var Ie=nr(nr({},re),{},{unitless:xe,prefixToken:ue}),Ue=v(K,pe,de,Ie),Pe=Z(ne,de,Ie);return function(Oe){var wt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Oe,dt=Ue(Oe,wt),Be=Pe(wt);return[dt,Be]}}function Z(K,pe,de){var re=de.unitless,ne=de.prefixToken,ue=de.ignore;return function(ge){var ve=d(),xe=ve.cssVar,Ie=ve.realToken;return T1({path:[K],prefix:xe.prefix,key:xe.key,unitless:re,ignore:ue,token:Ie,scope:ge},function(){var Ue=hy(K,Ie,pe),Pe=cy(K,Ie,Ue,{deprecatedTokens:de==null?void 0:de.deprecatedTokens});return Ue&&Object.keys(Ue).forEach(function(Oe){Pe[ne(Oe)]=Pe[Oe],delete Pe[Oe]}),Pe}),xe==null?void 0:xe.key}}function v(K,pe,de){var re=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},ne=Array.isArray(K)?K:[K,K],ue=Xv(ne,1),ge=ue[0],ve=ne.join("-"),xe=s.layer||{name:"antd"};return function(Ie){var Ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ie,Pe=d(),Oe=Pe.theme,wt=Pe.realToken,dt=Pe.hashId,Be=Pe.token,et=Pe.cssVar,lt=Pe.zeroRuntime,ot=ce.useMemo(function(){return lt},[]);if(ot)return dt;var Pt=y(),Ut=Pt.rootPrefixCls,gt=Pt.iconPrefixCls,Te=h(),mn="css",He=W1(function(){var Ct=new Set;return Object.keys(re.unitless||{}).forEach(function(bt){Ct.add(Bu(bt,et.prefix)),Ct.add(Bu(bt,ly(ge,et.prefix)))}),D1(mn,Ct)},[mn,ge,et==null?void 0:et.prefix]),Ot=j1(mn),Lt=Ot.max,dn=Ot.min,Je={theme:Oe,token:Be,hashId:dt,nonce:function(){return Te.nonce},clientOnly:re.clientOnly,layer:xe,order:re.order||-999};return typeof k=="function"&&Lf(nr(nr({},Je),{},{clientOnly:!1,path:["Shared",Ut]}),function(){return k(Be,{prefix:{rootPrefixCls:Ut,iconPrefixCls:gt},csp:Te})}),Lf(nr(nr({},Je),{},{path:[ve,Ie,gt]}),function(){if(re.injectStyle===!1)return[];var Ct=H1(Be),bt=Ct.token,Ye=Ct.flush,Rt=hy(ge,wt,de),Ht=".".concat(Ie),On=cy(ge,wt,Rt,{deprecatedTokens:re.deprecatedTokens});Rt&&$r(Rt)==="object"&&Object.keys(Rt).forEach(function(vt){Rt[vt]="var(".concat(Bu(vt,ly(ge,et.prefix)),")")});var Dn=Ja(bt,{componentCls:Ht,prefixCls:Ie,iconCls:".".concat(gt),antCls:".".concat(Ut),calc:He,max:Lt,min:dn},Rt),ho=pe(Dn,{hashId:dt,prefixCls:Ie,rootPrefixCls:Ut,iconPrefixCls:gt});Ye(ge,On);var gn=typeof M=="function"?M(Dn,Ie,Ue,re.resetFont):null;return[re.resetStyle===!1?null:gn,ho]}),dt}}function V(K,pe,de){var re=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},ne=v(K,pe,de,nr({resetStyle:!1,order:-998},re)),ue=function(ve){var xe=ve.prefixCls,Ie=ve.rootCls,Ue=Ie===void 0?xe:Ie;return ne(xe,Ue),null};return process.env.NODE_ENV!=="production"&&(ue.displayName="SubStyle_".concat(String(Array.isArray(K)?K.join("."):K))),ue}return{genStyleHooks:H,genSubStyleComponent:V,genComponentStyleHook:v}}const zf=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function Wu(s){return(s+8)/s}function U1(s){const u=Array.from({length:10}).map((h,d)=>{const y=d-1,k=s*Math.E**(y/5),M=d>1?Math.floor(k):Math.ceil(k);return Math.floor(M/2)*2});return u[1]=s,u.map(h=>({size:h,lineHeight:Wu(h)}))}const Q1="6.2.3",py={blue:"#1677FF",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#EB2F96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},mc={...py,colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
|
57
264
|
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
|
58
|
-
'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0},Qg={aliceblue:"9ehhb",antiquewhite:"9sgk7",aqua:"1ekf",aquamarine:"4zsno",azure:"9eiv3",beige:"9lhp8",bisque:"9zg04",black:"0",blanchedalmond:"9zhe5",blue:"73",blueviolet:"5e31e",brown:"6g016",burlywood:"8ouiv",cadetblue:"3qba8",chartreuse:"4zshs",chocolate:"87k0u",coral:"9yvyo",cornflowerblue:"3xael",cornsilk:"9zjz0",crimson:"8l4xo",cyan:"1ekf",darkblue:"3v",darkcyan:"rkb",darkgoldenrod:"776yz",darkgray:"6mbhl",darkgreen:"jr4",darkgrey:"6mbhl",darkkhaki:"7ehkb",darkmagenta:"5f91n",darkolivegreen:"3bzfz",darkorange:"9yygw",darkorchid:"5z6x8",darkred:"5f8xs",darksalmon:"9441m",darkseagreen:"5lwgf",darkslateblue:"2th1n",darkslategray:"1ugcv",darkslategrey:"1ugcv",darkturquoise:"14up",darkviolet:"5rw7n",deeppink:"9yavn",deepskyblue:"11xb",dimgray:"442g9",dimgrey:"442g9",dodgerblue:"16xof",firebrick:"6y7tu",floralwhite:"9zkds",forestgreen:"1cisi",fuchsia:"9y70f",gainsboro:"8m8kc",ghostwhite:"9pq0v",goldenrod:"8j4f4",gold:"9zda8",gray:"50i2o",green:"pa8",greenyellow:"6senj",grey:"50i2o",honeydew:"9eiuo",hotpink:"9yrp0",indianred:"80gnw",indigo:"2xcoy",ivory:"9zldc",khaki:"9edu4",lavenderblush:"9ziet",lavender:"90c8q",lawngreen:"4vk74",lemonchiffon:"9zkct",lightblue:"6s73a",lightcoral:"9dtog",lightcyan:"8s1rz",lightgoldenrodyellow:"9sjiq",lightgray:"89jo3",lightgreen:"5nkwg",lightgrey:"89jo3",lightpink:"9z6wx",lightsalmon:"9z2ii",lightseagreen:"19xgq",lightskyblue:"5arju",lightslategray:"4nwk9",lightslategrey:"4nwk9",lightsteelblue:"6wau6",lightyellow:"9zlcw",lime:"1edc",limegreen:"1zcxe",linen:"9shk6",magenta:"9y70f",maroon:"4zsow",mediumaquamarine:"40eju",mediumblue:"5p",mediumorchid:"79qkz",mediumpurple:"5r3rv",mediumseagreen:"2d9ip",mediumslateblue:"4tcku",mediumspringgreen:"1di2",mediumturquoise:"2uabw",mediumvioletred:"7rn9h",midnightblue:"z980",mintcream:"9ljp6",mistyrose:"9zg0x",moccasin:"9zfzp",navajowhite:"9zest",navy:"3k",oldlace:"9wq92",olive:"50hz4",olivedrab:"472ub",orange:"9z3eo",orangered:"9ykg0",orchid:"8iu3a",palegoldenrod:"9bl4a",palegreen:"5yw0o",paleturquoise:"6v4ku",palevioletred:"8k8lv",papayawhip:"9zi6t",peachpuff:"9ze0p",peru:"80oqn",pink:"9z8wb",plum:"8nba5",powderblue:"6wgdi",purple:"4zssg",rebeccapurple:"3zk49",red:"9y6tc",rosybrown:"7cv4f",royalblue:"2jvtt",saddlebrown:"5fmkz",salmon:"9rvci",sandybrown:"9jn1c",seagreen:"1tdnb",seashell:"9zje6",sienna:"6973h",silver:"7ir40",skyblue:"5arjf",slateblue:"45e4t",slategray:"4e100",slategrey:"4e100",snow:"9zke2",springgreen:"1egv",steelblue:"2r1kk",tan:"87yx8",teal:"pds",thistle:"8ggk8",tomato:"9yqfb",turquoise:"2j4r4",violet:"9b10u",wheat:"9ld4j",white:"9zldr",whitesmoke:"9lhpx",yellow:"9zl6o",yellowgreen:"61fzm"},qt=Math.round;function Aa(e,n){const r=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],o=r.map(s=>parseFloat(s));for(let s=0;s<3;s+=1)o[s]=n(o[s]||0,r[s]||"",s);return r[3]?o[3]=r[3].includes("%")?o[3]/100:o[3]:o[3]=1,o}const od=(e,n,r)=>r===0?e:e/100;function Uo(e,n){const r=n||255;return e>r?r:e<0?0:e}class At{constructor(n){q(this,"isValid",!0);q(this,"r",0);q(this,"g",0);q(this,"b",0);q(this,"a",1);q(this,"_h");q(this,"_hsl_s");q(this,"_hsv_s");q(this,"_l");q(this,"_v");q(this,"_max");q(this,"_min");q(this,"_brightness");function r(o){return o[0]in n&&o[1]in n&&o[2]in n}if(n)if(typeof n=="string"){let s=function(l){return o.startsWith(l)};const o=n.trim();if(/^#?[A-F\d]{3,8}$/i.test(o))this.fromHexString(o);else if(s("rgb"))this.fromRgbString(o);else if(s("hsl"))this.fromHslString(o);else if(s("hsv")||s("hsb"))this.fromHsvString(o);else{const l=Qg[o.toLowerCase()];l&&this.fromHexString(parseInt(l,36).toString(16).padStart(6,"0"))}}else if(n instanceof At)this.r=n.r,this.g=n.g,this.b=n.b,this.a=n.a,this._h=n._h,this._hsl_s=n._hsl_s,this._hsv_s=n._hsv_s,this._l=n._l,this._v=n._v;else if(r("rgb"))this.r=Uo(n.r),this.g=Uo(n.g),this.b=Uo(n.b),this.a=typeof n.a=="number"?Uo(n.a,1):1;else if(r("hsl"))this.fromHsl(n);else if(r("hsv"))this.fromHsv(n);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(n))}setR(n){return this._sc("r",n)}setG(n){return this._sc("g",n)}setB(n){return this._sc("b",n)}setA(n){return this._sc("a",n,1)}setHue(n){const r=this.toHsv();return r.h=n,this._c(r)}getLuminance(){function n(l){const c=l/255;return c<=.03928?c/12.92:Math.pow((c+.055)/1.055,2.4)}const r=n(this.r),o=n(this.g),s=n(this.b);return .2126*r+.7152*o+.0722*s}getHue(){if(typeof this._h>"u"){const n=this.getMax()-this.getMin();n===0?this._h=0:this._h=qt(60*(this.r===this.getMax()?(this.g-this.b)/n+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/n+2:(this.r-this.g)/n+4))}return this._h}getSaturation(){return this.getHSVSaturation()}getHSVSaturation(){if(typeof this._hsv_s>"u"){const n=this.getMax()-this.getMin();n===0?this._hsv_s=0:this._hsv_s=n/this.getMax()}return this._hsv_s}getHSLSaturation(){if(typeof this._hsl_s>"u"){const n=this.getMax()-this.getMin();if(n===0)this._hsl_s=0;else{const r=this.getLightness();this._hsl_s=n/255/(1-Math.abs(2*r-1))}}return this._hsl_s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(n=10){const r=this.getHue(),o=this.getSaturation();let s=this.getLightness()-n/100;return s<0&&(s=0),this._c({h:r,s:o,l:s,a:this.a})}lighten(n=10){const r=this.getHue(),o=this.getSaturation();let s=this.getLightness()+n/100;return s>1&&(s=1),this._c({h:r,s:o,l:s,a:this.a})}mix(n,r=50){const o=this._c(n),s=r/100,l=d=>(o[d]-this[d])*s+this[d],c={r:qt(l("r")),g:qt(l("g")),b:qt(l("b")),a:qt(l("a")*100)/100};return this._c(c)}tint(n=10){return this.mix({r:255,g:255,b:255,a:1},n)}shade(n=10){return this.mix({r:0,g:0,b:0,a:1},n)}onBackground(n){const r=this._c(n),o=this.a+r.a*(1-this.a),s=l=>qt((this[l]*this.a+r[l]*r.a*(1-this.a))/o);return this._c({r:s("r"),g:s("g"),b:s("b"),a:o})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(n){return this.r===n.r&&this.g===n.g&&this.b===n.b&&this.a===n.a}clone(){return this._c(this)}toHexString(){let n="#";const r=(this.r||0).toString(16);n+=r.length===2?r:"0"+r;const o=(this.g||0).toString(16);n+=o.length===2?o:"0"+o;const s=(this.b||0).toString(16);if(n+=s.length===2?s:"0"+s,typeof this.a=="number"&&this.a>=0&&this.a<1){const l=qt(this.a*255).toString(16);n+=l.length===2?l:"0"+l}return n}toHsl(){return{h:this.getHue(),s:this.getHSLSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const n=this.getHue(),r=qt(this.getHSLSaturation()*100),o=qt(this.getLightness()*100);return this.a!==1?`hsla(${n},${r}%,${o}%,${this.a})`:`hsl(${n},${r}%,${o}%)`}toHsv(){return{h:this.getHue(),s:this.getHSVSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(n,r,o){const s=this.clone();return s[n]=Uo(r,o),s}_c(n){return new this.constructor(n)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(n){const r=n.replace("#","");function o(s,l){return parseInt(r[s]+r[l||s],16)}r.length<6?(this.r=o(0),this.g=o(1),this.b=o(2),this.a=r[3]?o(3)/255:1):(this.r=o(0,1),this.g=o(2,3),this.b=o(4,5),this.a=r[6]?o(6,7)/255:1)}fromHsl({h:n,s:r,l:o,a:s}){const l=(n%360+360)%360;if(this._h=l,this._hsl_s=r,this._l=o,this.a=typeof s=="number"?s:1,r<=0){const C=qt(o*255);this.r=C,this.g=C,this.b=C;return}let c=0,d=0,h=0;const g=l/60,m=(1-Math.abs(2*o-1))*r,v=m*(1-Math.abs(g%2-1));g>=0&&g<1?(c=m,d=v):g>=1&&g<2?(c=v,d=m):g>=2&&g<3?(d=m,h=v):g>=3&&g<4?(d=v,h=m):g>=4&&g<5?(c=v,h=m):g>=5&&g<6&&(c=m,h=v);const y=o-m/2;this.r=qt((c+y)*255),this.g=qt((d+y)*255),this.b=qt((h+y)*255)}fromHsv({h:n,s:r,v:o,a:s}){const l=(n%360+360)%360;this._h=l,this._hsv_s=r,this._v=o,this.a=typeof s=="number"?s:1;const c=qt(o*255);if(this.r=c,this.g=c,this.b=c,r<=0)return;const d=l/60,h=Math.floor(d),g=d-h,m=qt(o*(1-r)*255),v=qt(o*(1-r*g)*255),y=qt(o*(1-r*(1-g))*255);switch(h){case 0:this.g=y,this.b=m;break;case 1:this.r=v,this.b=m;break;case 2:this.r=m,this.b=y;break;case 3:this.r=m,this.g=v;break;case 4:this.r=y,this.g=m;break;case 5:default:this.g=m,this.b=v;break}}fromHsvString(n){const r=Aa(n,od);this.fromHsv({h:r[0],s:r[1],v:r[2],a:r[3]})}fromHslString(n){const r=Aa(n,od);this.fromHsl({h:r[0],s:r[1],l:r[2],a:r[3]})}fromRgbString(n){const r=Aa(n,(o,s)=>s.includes("%")?qt(o/100*255):o);this.r=r[0],this.g=r[1],this.b=r[2],this.a=r[3]}}const zi=2,id=.16,Yg=.05,Xg=.05,Jg=.15,sd=5,ad=4,ev=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function ld(e,n,r){let o;return Math.round(e.h)>=60&&Math.round(e.h)<=240?o=r?Math.round(e.h)-zi*n:Math.round(e.h)+zi*n:o=r?Math.round(e.h)+zi*n:Math.round(e.h)-zi*n,o<0?o+=360:o>=360&&(o-=360),o}function cd(e,n,r){if(e.h===0&&e.s===0)return e.s;let o;return r?o=e.s-id*n:n===ad?o=e.s+id:o=e.s+Yg*n,o>1&&(o=1),r&&n===sd&&o>.1&&(o=.1),o<.06&&(o=.06),Math.round(o*100)/100}function ud(e,n,r){let o;return r?o=e.v+Xg*n:o=e.v-Jg*n,o=Math.max(0,Math.min(1,o)),Math.round(o*100)/100}function Ma(e,n={}){const r=[],o=new At(e),s=o.toHsv();for(let l=sd;l>0;l-=1){const c=new At({h:ld(s,l,!0),s:cd(s,l,!0),v:ud(s,l,!0)});r.push(c)}r.push(o);for(let l=1;l<=ad;l+=1){const c=new At({h:ld(s,l),s:cd(s,l),v:ud(s,l)});r.push(c)}return n.theme==="dark"?ev.map(({index:l,amount:c})=>new At(n.backgroundColor||"#141414").mix(r[l],c).toHexString()):r.map(l=>l.toHexString())}const La={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},Oa=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];Oa.primary=Oa[5];const Na=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];Na.primary=Na[5];const ka=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];ka.primary=ka[5];const Ra=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];Ra.primary=Ra[5];const $a=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];$a.primary=$a[5];const Ba=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];Ba.primary=Ba[5];const za=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];za.primary=za[5];const Da=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];Da.primary=Da[5];const Di=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Di.primary=Di[5];const Fa=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];Fa.primary=Fa[5];const Ha=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];Ha.primary=Ha[5];const Va=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];Va.primary=Va[5];const Wa=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];Wa.primary=Wa[5];const ja={red:Oa,volcano:Na,orange:ka,gold:Ra,yellow:$a,lime:Ba,green:za,cyan:Da,blue:Di,geekblue:Fa,purple:Ha,magenta:Va,grey:Wa};function tv(e,{generateColorPalettes:n,generateNeutralColorPalettes:r}){const{colorSuccess:o,colorWarning:s,colorError:l,colorInfo:c,colorPrimary:d,colorBgBase:h,colorTextBase:g}=e,m=n(d),v=n(o),y=n(s),C=n(l),_=n(c),x=r(h,g),b=e.colorLink||e.colorInfo,E=n(b),S=new At(C[1]).mix(new At(C[3]),50).toHexString();return{...x,colorPrimaryBg:m[1],colorPrimaryBgHover:m[2],colorPrimaryBorder:m[3],colorPrimaryBorderHover:m[4],colorPrimaryHover:m[5],colorPrimary:m[6],colorPrimaryActive:m[7],colorPrimaryTextHover:m[8],colorPrimaryText:m[9],colorPrimaryTextActive:m[10],colorSuccessBg:v[1],colorSuccessBgHover:v[2],colorSuccessBorder:v[3],colorSuccessBorderHover:v[4],colorSuccessHover:v[4],colorSuccess:v[6],colorSuccessActive:v[7],colorSuccessTextHover:v[8],colorSuccessText:v[9],colorSuccessTextActive:v[10],colorErrorBg:C[1],colorErrorBgHover:C[2],colorErrorBgFilledHover:S,colorErrorBgActive:C[3],colorErrorBorder:C[3],colorErrorBorderHover:C[4],colorErrorHover:C[5],colorError:C[6],colorErrorActive:C[7],colorErrorTextHover:C[8],colorErrorText:C[9],colorErrorTextActive:C[10],colorWarningBg:y[1],colorWarningBgHover:y[2],colorWarningBorder:y[3],colorWarningBorderHover:y[4],colorWarningHover:y[4],colorWarning:y[6],colorWarningActive:y[7],colorWarningTextHover:y[8],colorWarningText:y[9],colorWarningTextActive:y[10],colorInfoBg:_[1],colorInfoBgHover:_[2],colorInfoBorder:_[3],colorInfoBorderHover:_[4],colorInfoHover:_[4],colorInfo:_[6],colorInfoActive:_[7],colorInfoTextHover:_[8],colorInfoText:_[9],colorInfoTextActive:_[10],colorLinkHover:E[4],colorLink:E[6],colorLinkActive:E[7],colorBgMask:new At("#000").setA(.45).toRgbString(),colorWhite:"#fff"}}const nv=e=>{let n=e,r=e,o=e,s=e;return e<6&&e>=5?n=e+1:e<16&&e>=6?n=e+2:e>=16&&(n=16),e<7&&e>=5?r=4:e<8&&e>=7?r=5:e<14&&e>=8?r=6:e<16&&e>=14?r=7:e>=16&&(r=8),e<6&&e>=2?o=1:e>=6&&(o=2),e>4&&e<8?s=4:e>=8&&(s=6),{borderRadius:e,borderRadiusXS:o,borderRadiusSM:r,borderRadiusLG:n,borderRadiusOuter:s}};function rv(e){const{motionUnit:n,motionBase:r,borderRadius:o,lineWidth:s}=e;return{motionDurationFast:`${(r+n).toFixed(1)}s`,motionDurationMid:`${(r+n*2).toFixed(1)}s`,motionDurationSlow:`${(r+n*3).toFixed(1)}s`,lineWidthBold:s+1,...nv(o)}}const ov=e=>{const{controlHeight:n}=e;return{controlHeightSM:n*.75,controlHeightXS:n*.5,controlHeightLG:n*1.25}},iv=e=>{const n=Gg(e),r=n.map(m=>m.size),o=n.map(m=>m.lineHeight),s=r[1],l=r[0],c=r[2],d=o[1],h=o[0],g=o[2];return{fontSizeSM:l,fontSize:s,fontSizeLG:c,fontSizeXL:r[3],fontSizeHeading1:r[6],fontSizeHeading2:r[5],fontSizeHeading3:r[4],fontSizeHeading4:r[3],fontSizeHeading5:r[2],lineHeight:d,lineHeightLG:g,lineHeightSM:h,fontHeight:Math.round(d*s),fontHeightLG:Math.round(g*c),fontHeightSM:Math.round(h*l),lineHeightHeading1:o[6],lineHeightHeading2:o[5],lineHeightHeading3:o[4],lineHeightHeading4:o[3],lineHeightHeading5:o[2]}};function sv(e){const{sizeUnit:n,sizeStep:r}=e;return{sizeXXL:n*(r+8),sizeXL:n*(r+4),sizeLG:n*(r+2),sizeMD:n*(r+1),sizeMS:n*r,size:n*r,sizeSM:n*(r-1),sizeXS:n*(r-2),sizeXXS:n*(r-3)}}const Pn=(e,n)=>new At(e).setA(n).toRgbString(),Yr=(e,n)=>new At(e).darken(n).toHexString(),av=e=>{const n=Ma(e);return{1:n[0],2:n[1],3:n[2],4:n[3],5:n[4],6:n[5],7:n[6],8:n[4],9:n[5],10:n[6]}},lv=(e,n)=>{const r=e||"#fff",o=n||"#000";return{colorBgBase:r,colorTextBase:o,colorText:Pn(o,.88),colorTextSecondary:Pn(o,.65),colorTextTertiary:Pn(o,.45),colorTextQuaternary:Pn(o,.25),colorFill:Pn(o,.15),colorFillSecondary:Pn(o,.06),colorFillTertiary:Pn(o,.04),colorFillQuaternary:Pn(o,.02),colorBgSolid:Pn(o,1),colorBgSolidHover:Pn(o,.75),colorBgSolidActive:Pn(o,.95),colorBgLayout:Yr(r,4),colorBgContainer:Yr(r,0),colorBgElevated:Yr(r,0),colorBgSpotlight:Pn(o,.85),colorBgBlur:"transparent",colorBorder:Yr(r,15),colorBorderDisabled:Yr(r,15),colorBorderSecondary:Yr(r,6)}};function cv(e){La.pink=La.magenta,ja.pink=ja.magenta;const n=Object.keys(rd).map(r=>{const o=e[r]===La[r]?ja[r]:Ma(e[r]);return Array.from({length:10},()=>1).reduce((s,l,c)=>(s[`${r}-${c+1}`]=o[c],s[`${r}${c+1}`]=o[c],s),{})}).reduce((r,o)=>(r={...r,...o},r),{});return{...e,...n,...tv(e,{generateColorPalettes:av,generateNeutralColorPalettes:lv}),...iv(e.fontSize),...sv(e),...ov(e),...rv(e)}}const dd=ua(cv),Za={token:Zo,override:{override:Zo},hashed:!0},fd=A.createContext(Za);function Ua(e){return e>=0&&e<=255}function qo(e,n){const{r,g:o,b:s,a:l}=new At(e).toRgb();if(l<1)return e;const{r:c,g:d,b:h}=new At(n).toRgb();for(let g=.01;g<=1;g+=.01){const m=Math.round((r-c*(1-g))/g),v=Math.round((o-d*(1-g))/g),y=Math.round((s-h*(1-g))/g);if(Ua(m)&&Ua(v)&&Ua(y))return new At({r:m,g:v,b:y,a:Math.round(g*100)/100}).toRgbString()}return new At({r,g:o,b:s,a:1}).toRgbString()}function uv(e){const{override:n,...r}=e,o={...n};Object.keys(Zo).forEach(y=>{delete o[y]});const s={...r,...o},l=480,c=576,d=768,h=992,g=1200,m=1600;if(s.motion===!1){const y="0s";s.motionDurationFast=y,s.motionDurationMid=y,s.motionDurationSlow=y}return{...s,colorFillContent:s.colorFillSecondary,colorFillContentHover:s.colorFill,colorFillAlter:s.colorFillQuaternary,colorBgContainerDisabled:s.colorFillTertiary,colorBorderBg:s.colorBgContainer,colorSplit:qo(s.colorBorderSecondary,s.colorBgContainer),colorTextPlaceholder:s.colorTextQuaternary,colorTextDisabled:s.colorTextQuaternary,colorTextHeading:s.colorText,colorTextLabel:s.colorTextSecondary,colorTextDescription:s.colorTextTertiary,colorTextLightSolid:s.colorWhite,colorHighlight:s.colorError,colorBgTextHover:s.colorFillSecondary,colorBgTextActive:s.colorFill,colorIcon:s.colorTextTertiary,colorIconHover:s.colorText,colorErrorOutline:qo(s.colorErrorBg,s.colorBgContainer),colorWarningOutline:qo(s.colorWarningBg,s.colorBgContainer),fontSizeIcon:s.fontSizeSM,lineWidthFocus:s.lineWidth*3,lineWidth:s.lineWidth,controlOutlineWidth:s.lineWidth*2,controlInteractiveSize:s.controlHeight/2,controlItemBgHover:s.colorFillTertiary,controlItemBgActive:s.colorPrimaryBg,controlItemBgActiveHover:s.colorPrimaryBgHover,controlItemBgActiveDisabled:s.colorFill,controlTmpOutline:s.colorFillQuaternary,controlOutline:qo(s.colorPrimaryBg,s.colorBgContainer),lineType:s.lineType,borderRadius:s.borderRadius,borderRadiusXS:s.borderRadiusXS,borderRadiusSM:s.borderRadiusSM,borderRadiusLG:s.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:s.sizeXXS,paddingXS:s.sizeXS,paddingSM:s.sizeSM,padding:s.size,paddingMD:s.sizeMD,paddingLG:s.sizeLG,paddingXL:s.sizeXL,paddingContentHorizontalLG:s.sizeLG,paddingContentVerticalLG:s.sizeMS,paddingContentHorizontal:s.sizeMS,paddingContentVertical:s.sizeSM,paddingContentHorizontalSM:s.size,paddingContentVerticalSM:s.sizeXS,marginXXS:s.sizeXXS,marginXS:s.sizeXS,marginSM:s.sizeSM,margin:s.size,marginMD:s.sizeMD,marginLG:s.sizeLG,marginXL:s.sizeXL,marginXXL:s.sizeXXL,boxShadow:`
|
|
265
|
+
'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0},J1={aliceblue:"9ehhb",antiquewhite:"9sgk7",aqua:"1ekf",aquamarine:"4zsno",azure:"9eiv3",beige:"9lhp8",bisque:"9zg04",black:"0",blanchedalmond:"9zhe5",blue:"73",blueviolet:"5e31e",brown:"6g016",burlywood:"8ouiv",cadetblue:"3qba8",chartreuse:"4zshs",chocolate:"87k0u",coral:"9yvyo",cornflowerblue:"3xael",cornsilk:"9zjz0",crimson:"8l4xo",cyan:"1ekf",darkblue:"3v",darkcyan:"rkb",darkgoldenrod:"776yz",darkgray:"6mbhl",darkgreen:"jr4",darkgrey:"6mbhl",darkkhaki:"7ehkb",darkmagenta:"5f91n",darkolivegreen:"3bzfz",darkorange:"9yygw",darkorchid:"5z6x8",darkred:"5f8xs",darksalmon:"9441m",darkseagreen:"5lwgf",darkslateblue:"2th1n",darkslategray:"1ugcv",darkslategrey:"1ugcv",darkturquoise:"14up",darkviolet:"5rw7n",deeppink:"9yavn",deepskyblue:"11xb",dimgray:"442g9",dimgrey:"442g9",dodgerblue:"16xof",firebrick:"6y7tu",floralwhite:"9zkds",forestgreen:"1cisi",fuchsia:"9y70f",gainsboro:"8m8kc",ghostwhite:"9pq0v",goldenrod:"8j4f4",gold:"9zda8",gray:"50i2o",green:"pa8",greenyellow:"6senj",grey:"50i2o",honeydew:"9eiuo",hotpink:"9yrp0",indianred:"80gnw",indigo:"2xcoy",ivory:"9zldc",khaki:"9edu4",lavenderblush:"9ziet",lavender:"90c8q",lawngreen:"4vk74",lemonchiffon:"9zkct",lightblue:"6s73a",lightcoral:"9dtog",lightcyan:"8s1rz",lightgoldenrodyellow:"9sjiq",lightgray:"89jo3",lightgreen:"5nkwg",lightgrey:"89jo3",lightpink:"9z6wx",lightsalmon:"9z2ii",lightseagreen:"19xgq",lightskyblue:"5arju",lightslategray:"4nwk9",lightslategrey:"4nwk9",lightsteelblue:"6wau6",lightyellow:"9zlcw",lime:"1edc",limegreen:"1zcxe",linen:"9shk6",magenta:"9y70f",maroon:"4zsow",mediumaquamarine:"40eju",mediumblue:"5p",mediumorchid:"79qkz",mediumpurple:"5r3rv",mediumseagreen:"2d9ip",mediumslateblue:"4tcku",mediumspringgreen:"1di2",mediumturquoise:"2uabw",mediumvioletred:"7rn9h",midnightblue:"z980",mintcream:"9ljp6",mistyrose:"9zg0x",moccasin:"9zfzp",navajowhite:"9zest",navy:"3k",oldlace:"9wq92",olive:"50hz4",olivedrab:"472ub",orange:"9z3eo",orangered:"9ykg0",orchid:"8iu3a",palegoldenrod:"9bl4a",palegreen:"5yw0o",paleturquoise:"6v4ku",palevioletred:"8k8lv",papayawhip:"9zi6t",peachpuff:"9ze0p",peru:"80oqn",pink:"9z8wb",plum:"8nba5",powderblue:"6wgdi",purple:"4zssg",rebeccapurple:"3zk49",red:"9y6tc",rosybrown:"7cv4f",royalblue:"2jvtt",saddlebrown:"5fmkz",salmon:"9rvci",sandybrown:"9jn1c",seagreen:"1tdnb",seashell:"9zje6",sienna:"6973h",silver:"7ir40",skyblue:"5arjf",slateblue:"45e4t",slategray:"4e100",slategrey:"4e100",snow:"9zke2",springgreen:"1egv",steelblue:"2r1kk",tan:"87yx8",teal:"pds",thistle:"8ggk8",tomato:"9yqfb",turquoise:"2j4r4",violet:"9b10u",wheat:"9ld4j",white:"9zldr",whitesmoke:"9lhpx",yellow:"9zl6o",yellowgreen:"61fzm"},Ci=Math.round;function Bf(s,u){const h=s.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],d=h.map(y=>parseFloat(y));for(let y=0;y<3;y+=1)d[y]=u(d[y]||0,h[y]||"",y);return h[3]?d[3]=h[3].includes("%")?d[3]/100:d[3]:d[3]=1,d}const my=(s,u,h)=>h===0?s:s/100;function gc(s,u){const h=u||255;return s>h?h:s<0?0:s}class oi{constructor(u){Io(this,"isValid",!0);Io(this,"r",0);Io(this,"g",0);Io(this,"b",0);Io(this,"a",1);Io(this,"_h");Io(this,"_hsl_s");Io(this,"_hsv_s");Io(this,"_l");Io(this,"_v");Io(this,"_max");Io(this,"_min");Io(this,"_brightness");function h(d){return d[0]in u&&d[1]in u&&d[2]in u}if(u)if(typeof u=="string"){let y=function(k){return d.startsWith(k)};const d=u.trim();if(/^#?[A-F\d]{3,8}$/i.test(d))this.fromHexString(d);else if(y("rgb"))this.fromRgbString(d);else if(y("hsl"))this.fromHslString(d);else if(y("hsv")||y("hsb"))this.fromHsvString(d);else{const k=J1[d.toLowerCase()];k&&this.fromHexString(parseInt(k,36).toString(16).padStart(6,"0"))}}else if(u instanceof oi)this.r=u.r,this.g=u.g,this.b=u.b,this.a=u.a,this._h=u._h,this._hsl_s=u._hsl_s,this._hsv_s=u._hsv_s,this._l=u._l,this._v=u._v;else if(h("rgb"))this.r=gc(u.r),this.g=gc(u.g),this.b=gc(u.b),this.a=typeof u.a=="number"?gc(u.a,1):1;else if(h("hsl"))this.fromHsl(u);else if(h("hsv"))this.fromHsv(u);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(u))}setR(u){return this._sc("r",u)}setG(u){return this._sc("g",u)}setB(u){return this._sc("b",u)}setA(u){return this._sc("a",u,1)}setHue(u){const h=this.toHsv();return h.h=u,this._c(h)}getLuminance(){function u(k){const M=k/255;return M<=.03928?M/12.92:Math.pow((M+.055)/1.055,2.4)}const h=u(this.r),d=u(this.g),y=u(this.b);return .2126*h+.7152*d+.0722*y}getHue(){if(typeof this._h>"u"){const u=this.getMax()-this.getMin();u===0?this._h=0:this._h=Ci(60*(this.r===this.getMax()?(this.g-this.b)/u+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/u+2:(this.r-this.g)/u+4))}return this._h}getSaturation(){return this.getHSVSaturation()}getHSVSaturation(){if(typeof this._hsv_s>"u"){const u=this.getMax()-this.getMin();u===0?this._hsv_s=0:this._hsv_s=u/this.getMax()}return this._hsv_s}getHSLSaturation(){if(typeof this._hsl_s>"u"){const u=this.getMax()-this.getMin();if(u===0)this._hsl_s=0;else{const h=this.getLightness();this._hsl_s=u/255/(1-Math.abs(2*h-1))}}return this._hsl_s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(u=10){const h=this.getHue(),d=this.getSaturation();let y=this.getLightness()-u/100;return y<0&&(y=0),this._c({h,s:d,l:y,a:this.a})}lighten(u=10){const h=this.getHue(),d=this.getSaturation();let y=this.getLightness()+u/100;return y>1&&(y=1),this._c({h,s:d,l:y,a:this.a})}mix(u,h=50){const d=this._c(u),y=h/100,k=T=>(d[T]-this[T])*y+this[T],M={r:Ci(k("r")),g:Ci(k("g")),b:Ci(k("b")),a:Ci(k("a")*100)/100};return this._c(M)}tint(u=10){return this.mix({r:255,g:255,b:255,a:1},u)}shade(u=10){return this.mix({r:0,g:0,b:0,a:1},u)}onBackground(u){const h=this._c(u),d=this.a+h.a*(1-this.a),y=k=>Ci((this[k]*this.a+h[k]*h.a*(1-this.a))/d);return this._c({r:y("r"),g:y("g"),b:y("b"),a:d})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(u){return this.r===u.r&&this.g===u.g&&this.b===u.b&&this.a===u.a}clone(){return this._c(this)}toHexString(){let u="#";const h=(this.r||0).toString(16);u+=h.length===2?h:"0"+h;const d=(this.g||0).toString(16);u+=d.length===2?d:"0"+d;const y=(this.b||0).toString(16);if(u+=y.length===2?y:"0"+y,typeof this.a=="number"&&this.a>=0&&this.a<1){const k=Ci(this.a*255).toString(16);u+=k.length===2?k:"0"+k}return u}toHsl(){return{h:this.getHue(),s:this.getHSLSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const u=this.getHue(),h=Ci(this.getHSLSaturation()*100),d=Ci(this.getLightness()*100);return this.a!==1?`hsla(${u},${h}%,${d}%,${this.a})`:`hsl(${u},${h}%,${d}%)`}toHsv(){return{h:this.getHue(),s:this.getHSVSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(u,h,d){const y=this.clone();return y[u]=gc(h,d),y}_c(u){return new this.constructor(u)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(u){const h=u.replace("#","");function d(y,k){return parseInt(h[y]+h[k||y],16)}h.length<6?(this.r=d(0),this.g=d(1),this.b=d(2),this.a=h[3]?d(3)/255:1):(this.r=d(0,1),this.g=d(2,3),this.b=d(4,5),this.a=h[6]?d(6,7)/255:1)}fromHsl({h:u,s:h,l:d,a:y}){const k=(u%360+360)%360;if(this._h=k,this._hsl_s=h,this._l=d,this.a=typeof y=="number"?y:1,h<=0){const pe=Ci(d*255);this.r=pe,this.g=pe,this.b=pe;return}let M=0,T=0,H=0;const Z=k/60,v=(1-Math.abs(2*d-1))*h,V=v*(1-Math.abs(Z%2-1));Z>=0&&Z<1?(M=v,T=V):Z>=1&&Z<2?(M=V,T=v):Z>=2&&Z<3?(T=v,H=V):Z>=3&&Z<4?(T=V,H=v):Z>=4&&Z<5?(M=V,H=v):Z>=5&&Z<6&&(M=v,H=V);const K=d-v/2;this.r=Ci((M+K)*255),this.g=Ci((T+K)*255),this.b=Ci((H+K)*255)}fromHsv({h:u,s:h,v:d,a:y}){const k=(u%360+360)%360;this._h=k,this._hsv_s=h,this._v=d,this.a=typeof y=="number"?y:1;const M=Ci(d*255);if(this.r=M,this.g=M,this.b=M,h<=0)return;const T=k/60,H=Math.floor(T),Z=T-H,v=Ci(d*(1-h)*255),V=Ci(d*(1-h*Z)*255),K=Ci(d*(1-h*(1-Z))*255);switch(H){case 0:this.g=K,this.b=v;break;case 1:this.r=V,this.b=v;break;case 2:this.r=v,this.b=K;break;case 3:this.r=v,this.g=V;break;case 4:this.r=K,this.g=v;break;case 5:default:this.g=v,this.b=V;break}}fromHsvString(u){const h=Bf(u,my);this.fromHsv({h:h[0],s:h[1],v:h[2],a:h[3]})}fromHslString(u){const h=Bf(u,my);this.fromHsl({h:h[0],s:h[1],l:h[2],a:h[3]})}fromRgbString(u){const h=Bf(u,(d,y)=>y.includes("%")?Ci(d/100*255):d);this.r=h[0],this.g=h[1],this.b=h[2],this.a=h[3]}}const qu=2,gy=.16,K1=.05,Y1=.05,X1=.15,vy=5,yy=4,eS=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function _y(s,u,h){let d;return Math.round(s.h)>=60&&Math.round(s.h)<=240?d=h?Math.round(s.h)-qu*u:Math.round(s.h)+qu*u:d=h?Math.round(s.h)+qu*u:Math.round(s.h)-qu*u,d<0?d+=360:d>=360&&(d-=360),d}function by(s,u,h){if(s.h===0&&s.s===0)return s.s;let d;return h?d=s.s-gy*u:u===yy?d=s.s+gy:d=s.s+K1*u,d>1&&(d=1),h&&u===vy&&d>.1&&(d=.1),d<.06&&(d=.06),Math.round(d*100)/100}function xy(s,u,h){let d;return h?d=s.v+Y1*u:d=s.v-X1*u,d=Math.max(0,Math.min(1,d)),Math.round(d*100)/100}function Nf(s,u={}){const h=[],d=new oi(s),y=d.toHsv();for(let k=vy;k>0;k-=1){const M=new oi({h:_y(y,k,!0),s:by(y,k,!0),v:xy(y,k,!0)});h.push(M)}h.push(d);for(let k=1;k<=yy;k+=1){const M=new oi({h:_y(y,k),s:by(y,k),v:xy(y,k)});h.push(M)}return u.theme==="dark"?eS.map(({index:k,amount:M})=>new oi(u.backgroundColor||"#141414").mix(h[k],M).toHexString()):h.map(k=>k.toHexString())}const $f={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},Df=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];Df.primary=Df[5];const Ff=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];Ff.primary=Ff[5];const Hf=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];Hf.primary=Hf[5];const jf=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];jf.primary=jf[5];const Zf=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];Zf.primary=Zf[5];const Vf=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];Vf.primary=Vf[5];const Wf=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];Wf.primary=Wf[5];const qf=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];qf.primary=qf[5];const Gu=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Gu.primary=Gu[5];const Gf=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];Gf.primary=Gf[5];const Uf=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];Uf.primary=Uf[5];const Qf=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];Qf.primary=Qf[5];const Jf=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];Jf.primary=Jf[5];const Kf={red:Df,volcano:Ff,orange:Hf,gold:jf,yellow:Zf,lime:Vf,green:Wf,cyan:qf,blue:Gu,geekblue:Gf,purple:Uf,magenta:Qf,grey:Jf};function tS(s,{generateColorPalettes:u,generateNeutralColorPalettes:h}){const{colorSuccess:d,colorWarning:y,colorError:k,colorInfo:M,colorPrimary:T,colorBgBase:H,colorTextBase:Z}=s,v=u(T),V=u(d),K=u(y),pe=u(k),de=u(M),re=h(H,Z),ne=s.colorLink||s.colorInfo,ue=u(ne),ge=new oi(pe[1]).mix(new oi(pe[3]),50).toHexString();return{...re,colorPrimaryBg:v[1],colorPrimaryBgHover:v[2],colorPrimaryBorder:v[3],colorPrimaryBorderHover:v[4],colorPrimaryHover:v[5],colorPrimary:v[6],colorPrimaryActive:v[7],colorPrimaryTextHover:v[8],colorPrimaryText:v[9],colorPrimaryTextActive:v[10],colorSuccessBg:V[1],colorSuccessBgHover:V[2],colorSuccessBorder:V[3],colorSuccessBorderHover:V[4],colorSuccessHover:V[4],colorSuccess:V[6],colorSuccessActive:V[7],colorSuccessTextHover:V[8],colorSuccessText:V[9],colorSuccessTextActive:V[10],colorErrorBg:pe[1],colorErrorBgHover:pe[2],colorErrorBgFilledHover:ge,colorErrorBgActive:pe[3],colorErrorBorder:pe[3],colorErrorBorderHover:pe[4],colorErrorHover:pe[5],colorError:pe[6],colorErrorActive:pe[7],colorErrorTextHover:pe[8],colorErrorText:pe[9],colorErrorTextActive:pe[10],colorWarningBg:K[1],colorWarningBgHover:K[2],colorWarningBorder:K[3],colorWarningBorderHover:K[4],colorWarningHover:K[4],colorWarning:K[6],colorWarningActive:K[7],colorWarningTextHover:K[8],colorWarningText:K[9],colorWarningTextActive:K[10],colorInfoBg:de[1],colorInfoBgHover:de[2],colorInfoBorder:de[3],colorInfoBorderHover:de[4],colorInfoHover:de[4],colorInfo:de[6],colorInfoActive:de[7],colorInfoTextHover:de[8],colorInfoText:de[9],colorInfoTextActive:de[10],colorLinkHover:ue[4],colorLink:ue[6],colorLinkActive:ue[7],colorBgMask:new oi("#000").setA(.45).toRgbString(),colorWhite:"#fff"}}const nS=s=>{let u=s,h=s,d=s,y=s;return s<6&&s>=5?u=s+1:s<16&&s>=6?u=s+2:s>=16&&(u=16),s<7&&s>=5?h=4:s<8&&s>=7?h=5:s<14&&s>=8?h=6:s<16&&s>=14?h=7:s>=16&&(h=8),s<6&&s>=2?d=1:s>=6&&(d=2),s>4&&s<8?y=4:s>=8&&(y=6),{borderRadius:s,borderRadiusXS:d,borderRadiusSM:h,borderRadiusLG:u,borderRadiusOuter:y}};function oS(s){const{motionUnit:u,motionBase:h,borderRadius:d,lineWidth:y}=s;return{motionDurationFast:`${(h+u).toFixed(1)}s`,motionDurationMid:`${(h+u*2).toFixed(1)}s`,motionDurationSlow:`${(h+u*3).toFixed(1)}s`,lineWidthBold:y+1,...nS(d)}}const iS=s=>{const{controlHeight:u}=s;return{controlHeightSM:u*.75,controlHeightXS:u*.5,controlHeightLG:u*1.25}},rS=s=>{const u=U1(s),h=u.map(v=>v.size),d=u.map(v=>v.lineHeight),y=h[1],k=h[0],M=h[2],T=d[1],H=d[0],Z=d[2];return{fontSizeSM:k,fontSize:y,fontSizeLG:M,fontSizeXL:h[3],fontSizeHeading1:h[6],fontSizeHeading2:h[5],fontSizeHeading3:h[4],fontSizeHeading4:h[3],fontSizeHeading5:h[2],lineHeight:T,lineHeightLG:Z,lineHeightSM:H,fontHeight:Math.round(T*y),fontHeightLG:Math.round(Z*M),fontHeightSM:Math.round(H*k),lineHeightHeading1:d[6],lineHeightHeading2:d[5],lineHeightHeading3:d[4],lineHeightHeading4:d[3],lineHeightHeading5:d[2]}};function sS(s){const{sizeUnit:u,sizeStep:h}=s;return{sizeXXL:u*(h+8),sizeXL:u*(h+4),sizeLG:u*(h+2),sizeMD:u*(h+1),sizeMS:u*h,size:u*h,sizeSM:u*(h-1),sizeXS:u*(h-2),sizeXXS:u*(h-3)}}const Sr=(s,u)=>new oi(s).setA(u).toRgbString(),Ka=(s,u)=>new oi(s).darken(u).toHexString(),aS=s=>{const u=Nf(s);return{1:u[0],2:u[1],3:u[2],4:u[3],5:u[4],6:u[5],7:u[6],8:u[4],9:u[5],10:u[6]}},lS=(s,u)=>{const h=s||"#fff",d=u||"#000";return{colorBgBase:h,colorTextBase:d,colorText:Sr(d,.88),colorTextSecondary:Sr(d,.65),colorTextTertiary:Sr(d,.45),colorTextQuaternary:Sr(d,.25),colorFill:Sr(d,.15),colorFillSecondary:Sr(d,.06),colorFillTertiary:Sr(d,.04),colorFillQuaternary:Sr(d,.02),colorBgSolid:Sr(d,1),colorBgSolidHover:Sr(d,.75),colorBgSolidActive:Sr(d,.95),colorBgLayout:Ka(h,4),colorBgContainer:Ka(h,0),colorBgElevated:Ka(h,0),colorBgSpotlight:Sr(d,.85),colorBgBlur:"transparent",colorBorder:Ka(h,15),colorBorderDisabled:Ka(h,15),colorBorderSecondary:Ka(h,6)}};function cS(s){$f.pink=$f.magenta,Kf.pink=Kf.magenta;const u=Object.keys(py).map(h=>{const d=s[h]===$f[h]?Kf[h]:Nf(s[h]);return Array.from({length:10},()=>1).reduce((y,k,M)=>(y[`${h}-${M+1}`]=d[M],y[`${h}${M+1}`]=d[M],y),{})}).reduce((h,d)=>(h={...h,...d},h),{});return{...s,...u,...tS(s,{generateColorPalettes:aS,generateNeutralColorPalettes:lS}),...rS(s.fontSize),...sS(s),...iS(s),...oS(s)}}const wy=yf(cS),Yf={token:mc,override:{override:mc},hashed:!0},Cy=ce.createContext(Yf);function Xf(s){return s>=0&&s<=255}function vc(s,u){const{r:h,g:d,b:y,a:k}=new oi(s).toRgb();if(k<1)return s;const{r:M,g:T,b:H}=new oi(u).toRgb();for(let Z=.01;Z<=1;Z+=.01){const v=Math.round((h-M*(1-Z))/Z),V=Math.round((d-T*(1-Z))/Z),K=Math.round((y-H*(1-Z))/Z);if(Xf(v)&&Xf(V)&&Xf(K))return new oi({r:v,g:V,b:K,a:Math.round(Z*100)/100}).toRgbString()}return new oi({r:h,g:d,b:y,a:1}).toRgbString()}function uS(s){const{override:u,...h}=s,d={...u};Object.keys(mc).forEach(K=>{delete d[K]});const y={...h,...d},k=480,M=576,T=768,H=992,Z=1200,v=1600;if(y.motion===!1){const K="0s";y.motionDurationFast=K,y.motionDurationMid=K,y.motionDurationSlow=K}return{...y,colorFillContent:y.colorFillSecondary,colorFillContentHover:y.colorFill,colorFillAlter:y.colorFillQuaternary,colorBgContainerDisabled:y.colorFillTertiary,colorBorderBg:y.colorBgContainer,colorSplit:vc(y.colorBorderSecondary,y.colorBgContainer),colorTextPlaceholder:y.colorTextQuaternary,colorTextDisabled:y.colorTextQuaternary,colorTextHeading:y.colorText,colorTextLabel:y.colorTextSecondary,colorTextDescription:y.colorTextTertiary,colorTextLightSolid:y.colorWhite,colorHighlight:y.colorError,colorBgTextHover:y.colorFillSecondary,colorBgTextActive:y.colorFill,colorIcon:y.colorTextTertiary,colorIconHover:y.colorText,colorErrorOutline:vc(y.colorErrorBg,y.colorBgContainer),colorWarningOutline:vc(y.colorWarningBg,y.colorBgContainer),fontSizeIcon:y.fontSizeSM,lineWidthFocus:y.lineWidth*3,lineWidth:y.lineWidth,controlOutlineWidth:y.lineWidth*2,controlInteractiveSize:y.controlHeight/2,controlItemBgHover:y.colorFillTertiary,controlItemBgActive:y.colorPrimaryBg,controlItemBgActiveHover:y.colorPrimaryBgHover,controlItemBgActiveDisabled:y.colorFill,controlTmpOutline:y.colorFillQuaternary,controlOutline:vc(y.colorPrimaryBg,y.colorBgContainer),lineType:y.lineType,borderRadius:y.borderRadius,borderRadiusXS:y.borderRadiusXS,borderRadiusSM:y.borderRadiusSM,borderRadiusLG:y.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:y.sizeXXS,paddingXS:y.sizeXS,paddingSM:y.sizeSM,padding:y.size,paddingMD:y.sizeMD,paddingLG:y.sizeLG,paddingXL:y.sizeXL,paddingContentHorizontalLG:y.sizeLG,paddingContentVerticalLG:y.sizeMS,paddingContentHorizontal:y.sizeMS,paddingContentVertical:y.sizeSM,paddingContentHorizontalSM:y.size,paddingContentVerticalSM:y.sizeXS,marginXXS:y.sizeXXS,marginXS:y.sizeXS,marginSM:y.sizeSM,margin:y.size,marginMD:y.sizeMD,marginLG:y.sizeLG,marginXL:y.sizeXL,marginXXL:y.sizeXXL,boxShadow:`
|
|
59
266
|
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
60
267
|
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
61
268
|
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
@@ -67,10 +274,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
67
274
|
0 1px 2px 0 rgba(0, 0, 0, 0.03),
|
|
68
275
|
0 1px 6px -1px rgba(0, 0, 0, 0.02),
|
|
69
276
|
0 2px 4px 0 rgba(0, 0, 0, 0.02)
|
|
70
|
-
`,screenXS:
|
|
71
|
-
0 1px 2px -2px ${new
|
|
72
|
-
0 3px 6px 0 ${new
|
|
73
|
-
0 5px 12px 4px ${new
|
|
277
|
+
`,screenXS:k,screenXSMin:k,screenXSMax:M-1,screenSM:M,screenSMMin:M,screenSMMax:T-1,screenMD:T,screenMDMin:T,screenMDMax:H-1,screenLG:H,screenLGMin:H,screenLGMax:Z-1,screenXL:Z,screenXLMin:Z,screenXLMax:v-1,screenXXL:v,screenXXLMin:v,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
|
|
278
|
+
0 1px 2px -2px ${new oi("rgba(0, 0, 0, 0.16)").toRgbString()},
|
|
279
|
+
0 3px 6px 0 ${new oi("rgba(0, 0, 0, 0.12)").toRgbString()},
|
|
280
|
+
0 5px 12px 4px ${new oi("rgba(0, 0, 0, 0.09)").toRgbString()}
|
|
74
281
|
`,boxShadowDrawerRight:`
|
|
75
282
|
-6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
76
283
|
-3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
@@ -87,7 +294,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
87
294
|
0 -6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
88
295
|
0 -3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
89
296
|
0 -9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
90
|
-
`,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)",...
|
|
297
|
+
`,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)",...d}}const Sy={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0,opacityImage:!0},dS={motionBase:!0,motionUnit:!0},hS={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0},Ey=(s,u,h)=>{const d=h.getDerivativeToken(s),{override:y,...k}=u;let M={...d,override:y};return M=uS(M),k&&Object.entries(k).forEach(([T,H])=>{const{theme:Z,...v}=H;let V=v;Z&&(V=Ey({...M,...v},{override:v},Z)),M[T]=V}),M};function yc(){const{token:s,hashed:u,theme:h,override:d,cssVar:y,zeroRuntime:k}=ce.useContext(Cy),M={prefix:(y==null?void 0:y.prefix)??"ant",key:(y==null?void 0:y.key)??"css-var-root"},T=`${Q1}-${u||""}`,H=h||wy,[Z,v,V]=i1(H,[mc,s],{salt:T,override:d,getComputedToken:Ey,cssVar:{...M,unitless:Sy,ignore:dS,preserve:hS}});return[H,V,u?v:"",Z,M,!!k]}const Py=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),fS=s=>({a:{color:s.colorLink,textDecoration:s.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${s.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:s.colorLinkHover},"&:active":{color:s.colorLinkActive},"&:active, &:hover":{textDecoration:s.linkHoverDecoration,outline:0},"&:focus":{textDecoration:s.linkFocusDecoration,outline:0},"&[disabled]":{color:s.colorTextDisabled,cursor:"not-allowed"}}}),pS=(s,u,h,d)=>{const y=`[class^="${u}"], [class*=" ${u}"]`,k=h?`.${h}`:y,M={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let T={};return d!==!1&&(T={fontFamily:s.fontFamily,fontSize:s.fontSize}),{[k]:{...T,...M,[y]:M}}},mS=(s,u)=>({outline:`${Wa(s.lineWidthFocus)} solid ${s.colorPrimaryBorder}`,outlineOffset:u??1,transition:"outline-offset 0s, outline 0s"}),gS=(s,u)=>({"&:focus-visible":mS(s,u)}),ky=s=>({[`.${s}`]:{...Py(),[`.${s} .${s}-icon`]:{display:"block"}}}),{genStyleHooks:vS,genComponentStyleHook:yS,genSubStyleComponent:_S}=G1({usePrefix:()=>{const{getPrefixCls:s,iconPrefixCls:u}=ce.useContext(wr);return{rootPrefixCls:s(),iconPrefixCls:u}},useToken:()=>{const[s,u,h,d,y,k]=yc();return{theme:s,realToken:u,hashId:h,token:d,cssVar:y,zeroRuntime:k}},useCSP:()=>{const{csp:s}=ce.useContext(wr);return s??{}},getResetStyles:(s,u)=>{const h=fS(s);return[h,{"&":h},ky((u==null?void 0:u.prefix.iconPrefixCls)??df)]},getCommonStyle:pS,getCompUnitless:()=>Sy}),Uu=(s,u)=>{const h=`--${s.replace(/\./g,"")}-${u}-`;return[k=>`${h}${k}`,(k,M)=>M?`var(${h}${k}, ${M})`:`var(${h}${k})`]},bS=(s,u)=>{const[h,d]=yc();return Lf({theme:h,token:d,hashId:"",path:["ant-design-icons",s],nonce:()=>u==null?void 0:u.nonce,layer:{name:"antd"}},()=>ky(s))},ep=ce.createContext({});function Iy(s){var u;return(u=s==null?void 0:s.getRootNode)==null?void 0:u.call(s)}function xS(s){return Iy(s)instanceof ShadowRoot}function Qu(s){return xS(s)?Iy(s):null}function wS(s){return s.replace(/-(.)/g,(u,h)=>h.toUpperCase())}function CS(s,u){rs(s,`[@ant-design/icons] ${u}`)}function My(s){return typeof s=="object"&&typeof s.name=="string"&&typeof s.theme=="string"&&(typeof s.icon=="object"||typeof s.icon=="function")}function Ty(s={}){return Object.keys(s).reduce((u,h)=>{const d=s[h];switch(h){case"class":u.className=d,delete u.class;break;default:delete u[h],u[wS(h)]=d}return u},{})}function tp(s,u,h){return h?ce.createElement(s.tag,{key:u,...Ty(s.attrs),...h},(s.children||[]).map((d,y)=>tp(d,`${u}-${s.tag}-${y}`))):ce.createElement(s.tag,{key:u,...Ty(s.attrs)},(s.children||[]).map((d,y)=>tp(d,`${u}-${s.tag}-${y}`)))}function Ly(s){return Nf(s)[0]}function Ay(s){return s?Array.isArray(s)?s:[s]:[]}const SS=`
|
|
91
298
|
.anticon {
|
|
92
299
|
display: inline-flex;
|
|
93
300
|
align-items: center;
|
|
@@ -143,66 +350,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
143
350
|
transform: rotate(360deg);
|
|
144
351
|
}
|
|
145
352
|
}
|
|
146
|
-
`,
|
|
147
|
-
${s}
|
|
148
|
-
}`),A.useEffect(()=>{const l=e.current,c=Fi(l);fr(s,"@ant-design-icons",{prepend:!o,csp:n,attachTo:c})},[])},Go={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function Ev({primaryColor:e,secondaryColor:n}){Go.primaryColor=e,Go.secondaryColor=n||_d(e),Go.calculated=!!n}function Pv(){return{...Go}}const Hi=e=>{const{icon:n,className:r,onClick:o,style:s,primaryColor:l,secondaryColor:c,...d}=e,h=f.useRef(null);let g=Go;if(l&&(g={primaryColor:l,secondaryColor:c||_d(l)}),Sv(h),wv(yd(n),`icon should be icon definiton, but got ${n}`),!yd(n))return null;let m=n;return m&&typeof m.icon=="function"&&(m={...m,icon:m.icon(g.primaryColor,g.secondaryColor)}),Ya(m.icon,`svg-${m.name}`,{className:r,onClick:o,style:s,"data-icon":m.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",...d,ref:h})};Hi.displayName="IconReact",Hi.getTwoToneColors=Pv,Hi.setTwoToneColors=Ev;const Xa=Hi;function wd(e){const[n,r]=xd(e);return Xa.setTwoToneColors({primaryColor:n,secondaryColor:r})}function Iv(){const e=Xa.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}function Ja(){return Ja=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},Ja.apply(this,arguments)}wd(Di.primary);const Vi=f.forwardRef((e,n)=>{const{className:r,icon:o,spin:s,rotate:l,tabIndex:c,onClick:d,twoToneColor:h,...g}=e,{prefixCls:m="anticon",rootClassName:v}=f.useContext(Qa),y=ce(v,m,{[`${m}-${o.name}`]:!!o.name,[`${m}-spin`]:!!s||o.name==="loading"},r);let C=c;C===void 0&&d&&(C=-1);const _=l?{msTransform:`rotate(${l}deg)`,transform:`rotate(${l}deg)`}:void 0,[x,b]=xd(h);return f.createElement("span",Ja({role:"img","aria-label":o.name},g,{ref:n,tabIndex:C,onClick:d,className:y}),f.createElement(Xa,{icon:o,primaryColor:x,secondaryColor:b,style:_}))});Vi.getTwoToneColor=Iv,Vi.setTwoToneColor=wd,process.env.NODE_ENV!=="production"&&(Vi.displayName="AntdIcon");const Ko=Vi,Cd=f.createContext({});function Tv({children:e,...n}){return f.createElement(Cd.Provider,{value:n},e)}function Av(e){const[,n]=f.useReducer(l=>l+1,0),r=f.useRef(e),o=ft(()=>r.current),s=ft(l=>{r.current=typeof l=="function"?l(r.current):l,n()});return[o,s]}const er="none",Wi="appear",ji="enter",Zi="leave",Sd="none",Rn="prepare",Jr="start",eo="active",el="end",Ed="prepared";function Pd(e,n){const r={};return r[e.toLowerCase()]=n.toLowerCase(),r[`Webkit${e}`]=`webkit${n}`,r[`Moz${e}`]=`moz${n}`,r[`ms${e}`]=`MS${n}`,r[`O${e}`]=`o${n.toLowerCase()}`,r}function Mv(e,n){const r={animationend:Pd("Animation","AnimationEnd"),transitionend:Pd("Transition","TransitionEnd")};return e&&("AnimationEvent"in n||delete r.animationend.animation,"TransitionEvent"in n||delete r.transitionend.transition),r}const Lv=Mv(yn(),typeof window<"u"?window:{});let Id={};yn()&&({style:Id}=document.createElement("div"));const Ui={};function Td(e){if(Ui[e])return Ui[e];const n=Lv[e];if(n){const r=Object.keys(n),o=r.length;for(let s=0;s<o;s+=1){const l=r[s];if(Object.prototype.hasOwnProperty.call(n,l)&&l in Id)return Ui[e]=n[l],Ui[e]}}return""}const Ad=Td("animationend"),Md=Td("transitionend"),Ov=!!(Ad&&Md),Ld=Ad||"animationend",Od=Md||"transitionend";function Nd(e,n){if(!e)return null;if(typeof e=="object"){const r=n.replace(/-\w/g,o=>o[1].toUpperCase());return e[r]}return`${e}-${n}`}const Nv=e=>{const n=A.useRef();function r(s){s&&(s.removeEventListener(Od,e),s.removeEventListener(Ld,e))}function o(s){n.current&&n.current!==s&&r(n.current),s&&s!==n.current&&(s.addEventListener(Od,e),s.addEventListener(Ld,e),n.current=s)}return f.useEffect(()=>()=>{r(n.current),n.current=null},[]),[o,r]},kd=yn()?A.useLayoutEffect:A.useEffect,kv=()=>{const e=f.useRef(null);function n(){Ut.cancel(e.current)}function r(o,s=2){n();const l=Ut(()=>{s<=1?o({isCanceled:()=>l!==e.current}):r(o,s-1)});e.current=l}return f.useEffect(()=>()=>{n()},[]),[r,n]},Rv=[Rn,Jr,eo,el],$v=[Rn,Ed],Rd=!1,Bv=!0;function $d(e){return e===eo||e===el}const zv=(e,n,r)=>{const[o,s]=Zs(Sd),[l,c]=kv();function d(){s(Rn,!0)}const h=n?$v:Rv;return kd(()=>{if(o!==Sd&&o!==el){const g=h.indexOf(o),m=h[g+1],v=r(o);v===Rd?s(m,!0):m&&l(y=>{function C(){y.isCanceled()||s(m,!0)}v===!0?C():Promise.resolve(v).then(C)})}},[e,o]),f.useEffect(()=>()=>{c()},[]),[d,o]};function Dv(e,n,r,{motionEnter:o=!0,motionAppear:s=!0,motionLeave:l=!0,motionDeadline:c,motionLeaveImmediately:d,onAppearPrepare:h,onEnterPrepare:g,onLeavePrepare:m,onAppearStart:v,onEnterStart:y,onLeaveStart:C,onAppearActive:_,onEnterActive:x,onLeaveActive:b,onAppearEnd:E,onEnterEnd:S,onLeaveEnd:P,onVisibleChanged:I}){const[M,k]=Zs(),[N,R]=Av(er),[B,z]=Zs(null),$=N(),j=A.useRef(!1),V=A.useRef(null);function W(){return r()}const F=A.useRef(!1);function X(){R(er),z(null,!0)}const J=ft(Y=>{const se=N();if(se===er)return;const fe=W();if(Y&&!Y.deadline&&Y.target!==fe)return;const xe=F.current;let Se;se===Wi&&xe?Se=E==null?void 0:E(fe,Y):se===ji&&xe?Se=S==null?void 0:S(fe,Y):se===Zi&&xe&&(Se=P==null?void 0:P(fe,Y)),xe&&Se!==!1&&X()}),[Z]=Nv(J),le=Y=>{switch(Y){case Wi:return{[Rn]:h,[Jr]:v,[eo]:_};case ji:return{[Rn]:g,[Jr]:y,[eo]:x};case Zi:return{[Rn]:m,[Jr]:C,[eo]:b};default:return{}}},G=f.useMemo(()=>le($),[$]),[ie,ne]=zv($,!e,Y=>{var se;if(Y===Rn){const fe=G[Rn];return fe?fe(W()):Rd}return ne in G&&z(((se=G[ne])==null?void 0:se.call(G,W(),null))||null),ne===eo&&$!==er&&(Z(W()),c>0&&(clearTimeout(V.current),V.current=setTimeout(()=>{J({deadline:!0})},c))),ne===Ed&&X(),Bv}),de=$d(ne);F.current=de;const oe=A.useRef(null);kd(()=>{if(j.current&&oe.current===n)return;k(n);const Y=j.current;j.current=!0;let se;!Y&&n&&s&&(se=Wi),Y&&n&&o&&(se=ji),(Y&&!n&&l||!Y&&d&&!n&&l)&&(se=Zi);const fe=le(se);se&&(e||fe[Rn])?(R(se),ie()):R(er),oe.current=n},[n]),A.useEffect(()=>{($===Wi&&!s||$===ji&&!o||$===Zi&&!l)&&R(er)},[s,o,l]),A.useEffect(()=>()=>{j.current=!1,clearTimeout(V.current)},[]);const ee=f.useRef(!1);A.useEffect(()=>{M&&(ee.current=!0),M!==void 0&&$===er&&((ee.current||M)&&(I==null||I(M)),ee.current=!0)},[M,$]);let K=B;return G[Rn]&&ne===Jr&&(K={transition:"none",...K}),[N,ne,K,M??n]}function Fv(e){let n=e;typeof e=="object"&&({transitionSupport:n}=e);function r(s,l){return!!(s.motionName&&n&&l!==!1)}const o=f.forwardRef((s,l)=>{const{visible:c=!0,removeOnLeave:d=!0,forceRender:h,children:g,motionName:m,leavedClassName:v,eventProps:y}=s,{motion:C}=f.useContext(Cd),_=r(s,C),x=A.useRef();function b(){return Xs(x.current)}const[E,S,P,I]=Dv(_,c,b,s),M=E(),k=f.useRef(I);I&&(k.current=!0);const N=f.useMemo(()=>{const z={};return Object.defineProperties(z,{nativeElement:{enumerable:!0,get:b},inMotion:{enumerable:!0,get:()=>()=>E()!==er},enableMotion:{enumerable:!0,get:()=>()=>_}}),z},[]);f.useImperativeHandle(l,()=>N,[]);let R;const B={...y,visible:c};if(!g)R=null;else if(M===er)I?R=g({...B},x):!d&&k.current&&v?R=g({...B,className:v},x):h||!d&&!v?R=g({...B,style:{display:"none"}},x):R=null;else{let z;S===Rn?z="prepare":$d(S)?z="active":S===Jr&&(z="start");const $=Nd(m,`${M}-${z}`);R=g({...B,className:ce(Nd(m,M),{[$]:$&&z,[m]:typeof m=="string"}),style:P},x)}return f.isValidElement(R)&&Er(R)&&(dr(R)||(R=f.cloneElement(R,{ref:x}))),R});return o.displayName="CSSMotion",o}const Nr=Fv(Ov),Hv={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"};var Vv={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0};function Qo(e){"@babel/helpers - typeof";return Qo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Qo(e)}function Bd(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,o)}return r}function zd(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?Bd(Object(r),!0).forEach(function(o){Wv(e,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Bd(Object(r)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(r,o))})}return e}function Wv(e,n,r){return n=jv(n),n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function jv(e){var n=Zv(e,"string");return Qo(n)=="symbol"?n:String(n)}function Zv(e,n){if(Qo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var o=r.call(e,n||"default");if(Qo(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}var Uv=zd(zd({},Vv),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",week:"Week",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"});const Dd={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Fd={lang:{placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"],...Uv},timePickerLocale:{...Dd}},xn="${label} is not a valid ${type}",qi={locale:"en",Pagination:Hv,DatePicker:Fd,TimePicker:Dd,Calendar:Fd,global:{placeholder:"Please select",close:"Close",sortable:"sortable"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckAll:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:xn,method:xn,array:xn,object:xn,number:xn,date:xn,boolean:xn,integer:xn,float:xn,regexp:xn,email:xn,url:xn,hex:xn},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};({...qi.Modal});let Gi=[];const Hd=()=>Gi.reduce((e,n)=>({...e,...n}),qi.Modal);function qv(e){if(e){const n={...e};return Gi.push(n),Hd(),()=>{Gi=Gi.filter(r=>r!==n),Hd()}}({...qi.Modal})}const Vd=A.createContext(void 0),Wd="internalMark",jd=e=>{const{locale:n={},children:r,_ANT_MARK__:o}=e;if(process.env.NODE_ENV!=="production"){const l=hn("LocaleProvider");process.env.NODE_ENV!=="production"&&l(o===Wd,"deprecated","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale")}f.useEffect(()=>qv(n==null?void 0:n.Modal),[n]);const s=f.useMemo(()=>({...n,exist:!0}),[n]);return f.createElement(Vd.Provider,{value:s},r)};process.env.NODE_ENV!=="production"&&(jd.displayName="LocaleProvider");const Gv=jd,to=e=>e!=null,Zd=(e,...n)=>{const r=e||{};return n.filter(Boolean).reduce((o,s)=>(Object.keys(s||{}).forEach(l=>{const c=r[l],d=s[l];if(c&&typeof c=="object")if(d&&typeof d=="object")o[l]=Zd(c,o[l],d);else{const{_default:h}=c;h&&(o[l]=o[l]||{},o[l][h]=ce(o[l][h],d))}else o[l]=ce(o[l],d)}),o),{})},Kv=(e,...n)=>f.useMemo(()=>Zd.apply(void 0,[e].concat(n)),[e].concat(n)),Qv=(...e)=>e.filter(Boolean).reduce((n,r={})=>(Object.keys(r).forEach(o=>{n[o]={...n[o],...r[o]}}),n),{}),Yv=(...e)=>f.useMemo(()=>Qv.apply(void 0,e),[].concat(e)),tl=(e,n)=>{const r={...e};return Object.keys(n).forEach(o=>{if(o!=="_default"){const s=n[o],l=r[o]||{};r[o]=s?tl(l,s):l}}),r},Ud=(e,n)=>typeof e=="function"?e(n):e,kr=(e,n,r,o)=>{const s=e.map(h=>h?Ud(h,r):void 0),l=n.map(h=>h?Ud(h,r):void 0),c=Kv.apply(void 0,[o].concat(bn(s))),d=Yv.apply(void 0,bn(l));return f.useMemo(()=>o?[tl(c,o),tl(d,o)]:[c,d],[c,d,o])},qd=e=>e==="horizontal"||e==="vertical",Gd=(e,n,r)=>A.useMemo(()=>{const o=qd(e);let s;return o?s=e:typeof n=="boolean"?s=n?"vertical":"horizontal":s=qd(r)?r:"horizontal",[s,s==="vertical"]},[r,e,n]),Kd=A.createContext(void 0);process.env.NODE_ENV!=="production"&&(Kd.displayName="zIndexContext");const nl=Kd,tr=100,Xv=tr*10+tr,Qd={Modal:tr,Drawer:tr,Popover:tr,Popconfirm:tr,Tooltip:tr,Tour:tr,FloatButton:tr},Jv={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1},ey=e=>e in Qd,rl=(e,n)=>{const[,r]=mr(),o=A.useContext(nl),s=ey(e);let l;if(n!==void 0)l=[n,n];else{let c=o??0;s?c+=(o?0:r.zIndexPopupBase)+Qd[e]:c+=Jv[e],l=[o===void 0?n:c,c]}if(process.env.NODE_ENV!=="production"){const c=hn(e),d=r.zIndexPopupBase+Xv,h=l[0]||0;process.env.NODE_ENV!=="production"&&c(n!==void 0||h<=d,"usage","`zIndex` is over design token `zIndexPopupBase` too much. It may cause unexpected override.")}return l},no=e=>`${e}-css-var`,ty=A.createContext(void 0),Yd=f.createContext(null);let Xd=!1;function ny(e){return typeof e=="boolean"&&(Xd=e),Xd}const Jd=[];function ry(e,n){const[r]=f.useState(()=>{if(!yn())return null;const m=document.createElement("div");return process.env.NODE_ENV!=="production"&&n&&m.setAttribute("data-debug",n),m}),o=f.useRef(!1),s=f.useContext(Yd),[l,c]=f.useState(Jd),d=s||(o.current?void 0:m=>{c(v=>[m,...v])});function h(){r.parentElement||document.body.appendChild(r),o.current=!0}function g(){var m;(m=r.parentElement)==null||m.removeChild(r),o.current=!1}return sn(()=>(e?s?s(h):h():g(),g),[e]),sn(()=>{l.length&&(l.forEach(m=>m()),c(Jd))},[l]),[r,d]}function oy(e){const n=`rc-scrollbar-measure-${Math.random().toString(36).substring(7)}`,r=document.createElement("div");r.id=n;const o=r.style;o.position="absolute",o.left="0",o.top="0",o.width="100px",o.height="100px",o.overflow="scroll";let s,l;if(e){const h=getComputedStyle(e);o.scrollbarColor=h.scrollbarColor,o.scrollbarWidth=h.scrollbarWidth;const g=getComputedStyle(e,"::-webkit-scrollbar"),m=parseInt(g.width,10),v=parseInt(g.height,10);try{const y=m?`width: ${g.width};`:"",C=v?`height: ${g.height};`:"";fr(`
|
|
149
|
-
#${n}::-webkit-scrollbar {
|
|
353
|
+
`,ES=s=>{const{csp:u,prefixCls:h,layer:d}=ce.useContext(ep);let y=SS;h&&(y=y.replace(/anticon/g,h)),d&&(y=`@layer ${d} {
|
|
150
354
|
${y}
|
|
151
|
-
${C}
|
|
152
|
-
|
|
355
|
+
}`),ce.useEffect(()=>{const k=s.current,M=Qu(k);js(y,"@ant-design-icons",{prepend:!d,csp:u,attachTo:M})},[])},_c={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function PS({primaryColor:s,secondaryColor:u}){_c.primaryColor=s,_c.secondaryColor=u||Ly(s),_c.calculated=!!u}function kS(){return{..._c}}const Ju=s=>{const{icon:u,className:h,onClick:d,style:y,primaryColor:k,secondaryColor:M,...T}=s,H=X.useRef(null);let Z=_c;if(k&&(Z={primaryColor:k,secondaryColor:M||Ly(k)}),ES(H),CS(My(u),`icon should be icon definiton, but got ${u}`),!My(u))return null;let v=u;return v&&typeof v.icon=="function"&&(v={...v,icon:v.icon(Z.primaryColor,Z.secondaryColor)}),tp(v.icon,`svg-${v.name}`,{className:h,onClick:d,style:y,"data-icon":v.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",...T,ref:H})};Ju.displayName="IconReact",Ju.getTwoToneColors=kS,Ju.setTwoToneColors=PS;const np=Ju;function Oy(s){const[u,h]=Ay(s);return np.setTwoToneColors({primaryColor:u,secondaryColor:h})}function IS(){const s=np.getTwoToneColors();return s.calculated?[s.primaryColor,s.secondaryColor]:s.primaryColor}function op(){return op=Object.assign?Object.assign.bind():function(s){for(var u=1;u<arguments.length;u++){var h=arguments[u];for(var d in h)Object.prototype.hasOwnProperty.call(h,d)&&(s[d]=h[d])}return s},op.apply(this,arguments)}Oy(Gu.primary);const Ku=X.forwardRef((s,u)=>{const{className:h,icon:d,spin:y,rotate:k,tabIndex:M,onClick:T,twoToneColor:H,...Z}=s,{prefixCls:v="anticon",rootClassName:V}=X.useContext(ep),K=ao(V,v,{[`${v}-${d.name}`]:!!d.name,[`${v}-spin`]:!!y||d.name==="loading"},h);let pe=M;pe===void 0&&T&&(pe=-1);const de=k?{msTransform:`rotate(${k}deg)`,transform:`rotate(${k}deg)`}:void 0,[re,ne]=Ay(H);return X.createElement("span",op({role:"img","aria-label":d.name},Z,{ref:u,tabIndex:pe,onClick:T,className:K}),X.createElement(np,{icon:d,primaryColor:re,secondaryColor:ne,style:de}))});Ku.getTwoToneColor=IS,Ku.setTwoToneColor=Oy,process.env.NODE_ENV!=="production"&&(Ku.displayName="AntdIcon");const MS=Ku,Ry=X.createContext({});function TS({children:s,...u}){return X.createElement(Ry.Provider,{value:u},s)}function LS(s){const[,u]=X.useReducer(k=>k+1,0),h=X.useRef(s),d=Ro(()=>h.current),y=Ro(k=>{h.current=typeof k=="function"?k(h.current):k,u()});return[d,y]}const Es="none",Yu="appear",Xu="enter",ed="leave",zy="none",Fr="prepare",Ya="start",Xa="active",ip="end",By="prepared";function Ny(s,u){const h={};return h[s.toLowerCase()]=u.toLowerCase(),h[`Webkit${s}`]=`webkit${u}`,h[`Moz${s}`]=`moz${u}`,h[`ms${s}`]=`MS${u}`,h[`O${s}`]=`o${u.toLowerCase()}`,h}function AS(s,u){const h={animationend:Ny("Animation","AnimationEnd"),transitionend:Ny("Transition","TransitionEnd")};return s&&("AnimationEvent"in u||delete h.animationend.animation,"TransitionEvent"in u||delete h.transitionend.transition),h}const OS=AS(hr(),typeof window<"u"?window:{});let $y={};hr()&&({style:$y}=document.createElement("div"));const td={};function Dy(s){if(td[s])return td[s];const u=OS[s];if(u){const h=Object.keys(u),d=h.length;for(let y=0;y<d;y+=1){const k=h[y];if(Object.prototype.hasOwnProperty.call(u,k)&&k in $y)return td[s]=u[k],td[s]}}return""}const Fy=Dy("animationend"),Hy=Dy("transitionend"),RS=!!(Fy&&Hy),jy=Fy||"animationend",Zy=Hy||"transitionend";function Vy(s,u){if(!s)return null;if(typeof s=="object"){const h=u.replace(/-\w/g,d=>d[1].toUpperCase());return s[h]}return`${s}-${u}`}const zS=s=>{const u=ce.useRef();function h(y){y&&(y.removeEventListener(Zy,s),y.removeEventListener(jy,s))}function d(y){u.current&&u.current!==y&&h(u.current),y&&y!==u.current&&(y.addEventListener(Zy,s),y.addEventListener(jy,s),u.current=y)}return X.useEffect(()=>()=>{h(u.current),u.current=null},[]),[d,h]},Wy=hr()?ce.useLayoutEffect:ce.useEffect,BS=()=>{const s=X.useRef(null);function u(){xs.cancel(s.current)}function h(d,y=2){u();const k=xs(()=>{y<=1?d({isCanceled:()=>k!==s.current}):h(d,y-1)});s.current=k}return X.useEffect(()=>()=>{u()},[]),[h,u]},NS=[Fr,Ya,Xa,ip],$S=[Fr,By],qy=!1,DS=!0;function Gy(s){return s===Xa||s===ip}const FS=(s,u,h)=>{const[d,y]=Gh(zy),[k,M]=BS();function T(){y(Fr,!0)}const H=u?$S:NS;return Wy(()=>{if(d!==zy&&d!==ip){const Z=H.indexOf(d),v=H[Z+1],V=h(d);V===qy?y(v,!0):v&&k(K=>{function pe(){K.isCanceled()||y(v,!0)}V===!0?pe():Promise.resolve(V).then(pe)})}},[s,d]),X.useEffect(()=>()=>{M()},[]),[T,d]};function HS(s,u,h,{motionEnter:d=!0,motionAppear:y=!0,motionLeave:k=!0,motionDeadline:M,motionLeaveImmediately:T,onAppearPrepare:H,onEnterPrepare:Z,onLeavePrepare:v,onAppearStart:V,onEnterStart:K,onLeaveStart:pe,onAppearActive:de,onEnterActive:re,onLeaveActive:ne,onAppearEnd:ue,onEnterEnd:ge,onLeaveEnd:ve,onVisibleChanged:xe}){const[Ie,Ue]=Gh(),[Pe,Oe]=LS(Es),[wt,dt]=Gh(null),Be=Pe(),et=ce.useRef(!1),lt=ce.useRef(null);function ot(){return h()}const Pt=ce.useRef(!1);function Ut(){Oe(Es),dt(null,!0)}const gt=Ro(Ye=>{const Rt=Pe();if(Rt===Es)return;const Ht=ot();if(Ye&&!Ye.deadline&&Ye.target!==Ht)return;const On=Pt.current;let Dn;Rt===Yu&&On?Dn=ue==null?void 0:ue(Ht,Ye):Rt===Xu&&On?Dn=ge==null?void 0:ge(Ht,Ye):Rt===ed&&On&&(Dn=ve==null?void 0:ve(Ht,Ye)),On&&Dn!==!1&&Ut()}),[Te]=zS(gt),mn=Ye=>{switch(Ye){case Yu:return{[Fr]:H,[Ya]:V,[Xa]:de};case Xu:return{[Fr]:Z,[Ya]:K,[Xa]:re};case ed:return{[Fr]:v,[Ya]:pe,[Xa]:ne};default:return{}}},He=X.useMemo(()=>mn(Be),[Be]),[Ot,Lt]=FS(Be,!s,Ye=>{var Rt;if(Ye===Fr){const Ht=He[Fr];return Ht?Ht(ot()):qy}return Lt in He&&dt(((Rt=He[Lt])==null?void 0:Rt.call(He,ot(),null))||null),Lt===Xa&&Be!==Es&&(Te(ot()),M>0&&(clearTimeout(lt.current),lt.current=setTimeout(()=>{gt({deadline:!0})},M))),Lt===By&&Ut(),DS}),dn=Gy(Lt);Pt.current=dn;const Je=ce.useRef(null);Wy(()=>{if(et.current&&Je.current===u)return;Ue(u);const Ye=et.current;et.current=!0;let Rt;!Ye&&u&&y&&(Rt=Yu),Ye&&u&&d&&(Rt=Xu),(Ye&&!u&&k||!Ye&&T&&!u&&k)&&(Rt=ed);const Ht=mn(Rt);Rt&&(s||Ht[Fr])?(Oe(Rt),Ot()):Oe(Es),Je.current=u},[u]),ce.useEffect(()=>{(Be===Yu&&!y||Be===Xu&&!d||Be===ed&&!k)&&Oe(Es)},[y,d,k]),ce.useEffect(()=>()=>{et.current=!1,clearTimeout(lt.current)},[]);const Ct=X.useRef(!1);ce.useEffect(()=>{Ie&&(Ct.current=!0),Ie!==void 0&&Be===Es&&((Ct.current||Ie)&&(xe==null||xe(Ie)),Ct.current=!0)},[Ie,Be]);let bt=wt;return He[Fr]&&Lt===Ya&&(bt={transition:"none",...bt}),[Pe,Lt,bt,Ie??u]}function jS(s){let u=s;typeof s=="object"&&({transitionSupport:u}=s);function h(y,k){return!!(y.motionName&&u&&k!==!1)}const d=X.forwardRef((y,k)=>{const{visible:M=!0,removeOnLeave:T=!0,forceRender:H,children:Z,motionName:v,leavedClassName:V,eventProps:K}=y,{motion:pe}=X.useContext(Ry),de=h(y,pe),re=ce.useRef();function ne(){return nf(re.current)}const[ue,ge,ve,xe]=HS(de,M,ne,y),Ie=ue(),Ue=X.useRef(xe);xe&&(Ue.current=!0);const Pe=X.useMemo(()=>{const dt={};return Object.defineProperties(dt,{nativeElement:{enumerable:!0,get:ne},inMotion:{enumerable:!0,get:()=>()=>ue()!==Es},enableMotion:{enumerable:!0,get:()=>()=>de}}),dt},[]);X.useImperativeHandle(k,()=>Pe,[]);let Oe;const wt={...K,visible:M};if(!Z)Oe=null;else if(Ie===Es)xe?Oe=Z({...wt},re):!T&&Ue.current&&V?Oe=Z({...wt,className:V},re):H||!T&&!V?Oe=Z({...wt,style:{display:"none"}},re):Oe=null;else{let dt;ge===Fr?dt="prepare":Gy(ge)?dt="active":ge===Ya&&(dt="start");const Be=Vy(v,`${Ie}-${dt}`);Oe=Z({...wt,className:ao(Vy(v,Ie),{[Be]:Be&&dt,[v]:typeof v=="string"}),style:ve},re)}return X.isValidElement(Oe)&&Au(Oe)&&(nc(Oe)||(Oe=X.cloneElement(Oe,{ref:re}))),Oe});return d.displayName="CSSMotion",d}const el=jS(RS),ZS={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"};var VS={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0};function bc(s){"@babel/helpers - typeof";return bc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},bc(s)}function Uy(s,u){var h=Object.keys(s);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(s);u&&(d=d.filter(function(y){return Object.getOwnPropertyDescriptor(s,y).enumerable})),h.push.apply(h,d)}return h}function Qy(s){for(var u=1;u<arguments.length;u++){var h=arguments[u]!=null?arguments[u]:{};u%2?Uy(Object(h),!0).forEach(function(d){WS(s,d,h[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(h)):Uy(Object(h)).forEach(function(d){Object.defineProperty(s,d,Object.getOwnPropertyDescriptor(h,d))})}return s}function WS(s,u,h){return u=qS(u),u in s?Object.defineProperty(s,u,{value:h,enumerable:!0,configurable:!0,writable:!0}):s[u]=h,s}function qS(s){var u=GS(s,"string");return bc(u)=="symbol"?u:String(u)}function GS(s,u){if(bc(s)!="object"||!s)return s;var h=s[Symbol.toPrimitive];if(h!==void 0){var d=h.call(s,u||"default");if(bc(d)!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return(u==="string"?String:Number)(s)}var US=Qy(Qy({},VS),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",week:"Week",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"});const Jy={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Ky={lang:{placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"],...US},timePickerLocale:{...Jy}},fr="${label} is not a valid ${type}",nd={locale:"en",Pagination:ZS,DatePicker:Ky,TimePicker:Jy,Calendar:Ky,global:{placeholder:"Please select",close:"Close",sortable:"sortable"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckAll:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:fr,method:fr,array:fr,object:fr,number:fr,date:fr,boolean:fr,integer:fr,float:fr,regexp:fr,email:fr,url:fr,hex:fr},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};({...nd.Modal});let od=[];const Yy=()=>od.reduce((s,u)=>({...s,...u}),nd.Modal);function QS(s){if(s){const u={...s};return od.push(u),Yy(),()=>{od=od.filter(h=>h!==u),Yy()}}({...nd.Modal})}const Xy=ce.createContext(void 0),e_="internalMark",t_=s=>{const{locale:u={},children:h,_ANT_MARK__:d}=s;if(process.env.NODE_ENV!=="production"){const k=Za("LocaleProvider");process.env.NODE_ENV!=="production"&&k(d===e_,"deprecated","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale")}X.useEffect(()=>QS(u==null?void 0:u.Modal),[u]);const y=X.useMemo(()=>({...u,exist:!0}),[u]);return X.createElement(Xy.Provider,{value:y},h)};process.env.NODE_ENV!=="production"&&(t_.displayName="LocaleProvider");const JS=t_,n_=s=>s!=null,o_=(s,...u)=>{const h=s||{};return u.filter(Boolean).reduce((d,y)=>(Object.keys(y||{}).forEach(k=>{const M=h[k],T=y[k];if(M&&typeof M=="object")if(T&&typeof T=="object")d[k]=o_(M,d[k],T);else{const{_default:H}=M;H&&(d[k]=d[k]||{},d[k][H]=ao(d[k][H],T))}else d[k]=ao(d[k],T)}),d),{})},KS=(s,...u)=>X.useMemo(()=>o_.apply(void 0,[s].concat(u)),[s].concat(u)),YS=(...s)=>s.filter(Boolean).reduce((u,h={})=>(Object.keys(h).forEach(d=>{u[d]={...u[d],...h[d]}}),u),{}),XS=(...s)=>X.useMemo(()=>YS.apply(void 0,s),[].concat(s)),rp=(s,u)=>{const h={...s};return Object.keys(u).forEach(d=>{if(d!=="_default"){const y=u[d],k=h[d]||{};h[d]=y?rp(k,y):k}}),h},i_=(s,u)=>typeof s=="function"?s(u):s,eE=(s,u,h,d)=>{const y=s.map(H=>H?i_(H,h):void 0),k=u.map(H=>H?i_(H,h):void 0),M=KS.apply(void 0,[d].concat(cf(y))),T=XS.apply(void 0,cf(k));return X.useMemo(()=>d?[rp(M,d),rp(T,d)]:[M,T],[M,T,d])},tE=ce.createContext(void 0),r_=X.createContext(null);let s_=!1;function nE(s){return typeof s=="boolean"&&(s_=s),s_}const a_=[];function oE(s,u){const[h]=X.useState(()=>{if(!hr())return null;const v=document.createElement("div");return process.env.NODE_ENV!=="production"&&u&&v.setAttribute("data-debug",u),v}),d=X.useRef(!1),y=X.useContext(r_),[k,M]=X.useState(a_),T=y||(d.current?void 0:v=>{M(V=>[v,...V])});function H(){h.parentElement||document.body.appendChild(h),d.current=!0}function Z(){var v;(v=h.parentElement)==null||v.removeChild(h),d.current=!1}return tr(()=>(s?y?y(H):H():Z(),Z),[s]),tr(()=>{k.length&&(k.forEach(v=>v()),M(a_))},[k]),[h,T]}function iE(s){const u=`rc-scrollbar-measure-${Math.random().toString(36).substring(7)}`,h=document.createElement("div");h.id=u;const d=h.style;d.position="absolute",d.left="0",d.top="0",d.width="100px",d.height="100px",d.overflow="scroll";let y,k;if(s){const H=getComputedStyle(s);d.scrollbarColor=H.scrollbarColor,d.scrollbarWidth=H.scrollbarWidth;const Z=getComputedStyle(s,"::-webkit-scrollbar"),v=parseInt(Z.width,10),V=parseInt(Z.height,10);try{const K=v?`width: ${Z.width};`:"",pe=V?`height: ${Z.height};`:"";js(`
|
|
356
|
+
#${u}::-webkit-scrollbar {
|
|
357
|
+
${K}
|
|
358
|
+
${pe}
|
|
359
|
+
}`,u)}catch(K){console.error(K),y=v,k=V}}document.body.appendChild(h);const M=s&&y&&!isNaN(y)?y:h.offsetWidth-h.clientWidth,T=s&&k&&!isNaN(k)?k:h.offsetHeight-h.clientHeight;return document.body.removeChild(h),rc(u),{width:M,height:T}}function rE(s){return typeof document>"u"||!s||!(s instanceof Element)?{width:0,height:0}:iE(s)}function sE(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}const aE=`rc-util-locker-${Date.now()}`;let l_=0;function lE(s){const u=!!s,[h]=X.useState(()=>(l_+=1,`${aE}_${l_}`));tr(()=>{if(u){const d=rE(document.body).width,y=sE();js(`
|
|
153
360
|
html body {
|
|
154
361
|
overflow-y: hidden;
|
|
155
|
-
${
|
|
156
|
-
}`,r)}else Ro(r);return()=>{Ro(r)}},[n,r])}function cy(){return{...f}.useId}let tf=0;const nf=cy(),Ki=nf?function(n){const r=nf();return n||(process.env.NODE_ENV==="test"?"test-id":r)}:function(n){const[r,o]=f.useState("ssr-id");return f.useEffect(()=>{const s=tf;tf+=1,o(`rc_unique_${s}`)},[]),n||(process.env.NODE_ENV==="test"?"test-id":r)};let vr=[];const uy=200;let ol=0;process.env.NODE_ENV;const rf=e=>{if(e.key==="Escape"&&!e.isComposing){if(Date.now()-ol<uy)return;const r=vr.length;for(let o=r-1;o>=0;o-=1)vr[o].onEsc({top:o===r-1,event:e})}},of=()=>{ol=Date.now()};function dy(){window.addEventListener("keydown",rf),window.addEventListener("compositionend",of)}function fy(){vr.length===0&&(window.removeEventListener("keydown",rf),window.removeEventListener("compositionend",of))}function hy(e,n){const r=Ki(),o=ft(n),s=()=>{vr.find(c=>c.id===r)||vr.push({id:r,onEsc:o})},l=()=>{vr=vr.filter(c=>c.id!==r)};A.useMemo(()=>{e?s():e||l()},[e]),A.useEffect(()=>{if(e)return s(),dy(),()=>{l(),fy()}},[e])}const sf=e=>e===!1?!1:!yn()||!e?null:typeof e=="string"?document.querySelector(e):typeof e=="function"?e():e,Qi=f.forwardRef((e,n)=>{const{open:r,autoLock:o,getContainer:s,debug:l,autoDestroy:c=!0,children:d,onEsc:h}=e,[g,m]=f.useState(r),v=g||r;process.env.NODE_ENV!=="production"&&ct(yn()||!r,"Portal only work in client side. Please call 'useEffect' to show Portal instead default render in SSR."),f.useEffect(()=>{(c||r)&&m(r)},[r,c]);const[y,C]=f.useState(()=>sf(s));f.useEffect(()=>{const M=sf(s);C(()=>M??null)});const[_,x]=ry(v&&!y,l),b=y??_;ly(o&&r&&yn()&&(b===_||b===document.body)),hy(r,h);let E=null;d&&Er(d)&&n&&(E=dr(d));const S=Wr(E,n);if(!v||!yn()||y===void 0)return null;const P=b===!1||ny();let I=d;return n&&(I=f.cloneElement(d,{ref:S})),f.createElement(Yd.Provider,{value:x},P?I:Ln.createPortal(I,b))});process.env.NODE_ENV!=="production"&&(Qi.displayName="Portal");function py(e){const{prefixCls:n,align:r,arrow:o,arrowPos:s}=e,{className:l,content:c,style:d}=o||{},{x:h=0,y:g=0}=s,m=f.useRef(null);if(!r||!r.points)return null;const v={position:"absolute"};if(r.autoArrow!==!1){const y=r.points[0],C=r.points[1],_=y[0],x=y[1],b=C[0],E=C[1];_===b||!["t","b"].includes(_)?v.top=g:_==="t"?v.top=0:v.bottom=0,x===E||!["l","r"].includes(x)?v.left=h:x==="l"?v.left=0:v.right=0}return f.createElement("div",{ref:m,className:ce(`${n}-arrow`,l),style:{...v,...d}},c)}function il(){return il=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},il.apply(this,arguments)}function my(e){const{prefixCls:n,open:r,zIndex:o,mask:s,motion:l,mobile:c}=e;return s?f.createElement(Nr,il({},l,{motionAppear:!0,visible:r,removeOnLeave:!0}),({className:d})=>f.createElement("div",{style:{zIndex:o},className:ce(`${n}-mask`,c&&`${n}-mobile-mask`,d)})):null}const af=f.memo(({children:e})=>e,(e,n)=>n.cache);process.env.NODE_ENV!=="production"&&(af.displayName="PopupContent");function lf(e,n,r,o,s,l,c,d){var m;const h="auto",g=e?{}:{left:"-1000vw",top:"-1000vh",right:h,bottom:h};if(!e&&(n||!r)){const{points:v}=o,y=o.dynamicInset||((m=o._experimental)==null?void 0:m.dynamicInset),C=y&&v[0][1]==="r",_=y&&v[0][0]==="b";C?(g.right=s,g.left=h):(g.left=c,g.right=h),_?(g.bottom=l,g.top=h):(g.top=d,g.bottom=h)}return g}function sl(){return sl=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},sl.apply(this,arguments)}const al=f.forwardRef((e,n)=>{const{onEsc:r,popup:o,className:s,prefixCls:l,style:c,target:d,onVisibleChanged:h,open:g,keepDom:m,fresh:v,onClick:y,mask:C,arrow:_,arrowPos:x,align:b,motion:E,maskMotion:S,mobile:P,forceRender:I,getPopupContainer:M,autoDestroy:k,portal:N,children:R,zIndex:B,onMouseEnter:z,onMouseLeave:$,onPointerEnter:j,onPointerDownCapture:V,ready:W,offsetX:F,offsetY:X,offsetR:J,offsetB:Z,onAlign:le,onPrepare:G,onResize:ie,stretch:ne,targetWidth:de,targetHeight:oe}=e,ee=typeof o=="function"?o():o,K=g||m,Y=!!P,[se,fe,xe]=f.useMemo(()=>P?[P.mask,P.maskMotion,P.motion]:[C,S,E],[P,C,S,E]),Se=(M==null?void 0:M.length)>0,[Te,Ce]=f.useState(!M||!Se);sn(()=>{!Te&&Se&&d&&Ce(!0)},[Te,Se,d]);const te=ft((Ae,Ze)=>{ie==null||ie(Ae,Ze),le()}),we=lf(Y,W,g,b,J,Z,F,X);if(!Te)return null;const Pe={};return ne&&(ne.includes("height")&&oe?Pe.height=oe:ne.includes("minHeight")&&oe&&(Pe.minHeight=oe),ne.includes("width")&&de?Pe.width=de:ne.includes("minWidth")&&de&&(Pe.minWidth=de)),g||(Pe.pointerEvents="none"),f.createElement(N,{open:I||K,getContainer:M&&(()=>M(d)),autoDestroy:k,onEsc:r},f.createElement(my,{prefixCls:l,open:g,zIndex:B,mask:se,motion:fe,mobile:Y}),f.createElement(No,{onResize:te,disabled:!g},Ae=>f.createElement(Nr,sl({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:I,leavedClassName:`${l}-hidden`},xe,{onAppearPrepare:G,onEnterPrepare:G,visible:g,onVisibleChanged:Ze=>{var Be;(Be=E==null?void 0:E.onVisibleChanged)==null||Be.call(E,Ze),h(Ze)}}),({className:Ze,style:Be},nt)=>{const Ge=ce(l,Ze,s,{[`${l}-mobile`]:Y});return f.createElement("div",{ref:Sr(Ae,n,nt),className:Ge,style:{"--arrow-x":`${x.x||0}px`,"--arrow-y":`${x.y||0}px`,...we,...Pe,...Be,boxSizing:"border-box",zIndex:B,...c},onMouseEnter:z,onMouseLeave:$,onPointerEnter:j,onClick:y,onPointerDownCapture:V},_&&f.createElement(py,{prefixCls:l,arrow:_,arrowPos:x,align:b}),f.createElement(af,{cache:!g&&!v},ee))})),R)});process.env.NODE_ENV!=="production"&&(al.displayName="Popup");const Yi=f.createContext(null),cf=f.createContext(null);function uf(e){return e?Array.isArray(e)?e:[e]:[]}function gy(e,n,r){return f.useMemo(()=>{const o=uf(n??e),s=uf(r??e),l=new Set(o),c=new Set(s);return l.has("hover")&&!l.has("click")&&l.add("touch"),c.has("hover")&&!c.has("click")&&c.add("touch"),[l,c]},[e,n,r])}const ll=e=>{if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){const{width:n,height:r}=e.getBBox();if(n||r)return!0}if(e.getBoundingClientRect){const{width:n,height:r}=e.getBoundingClientRect();if(n||r)return!0}}return!1};function vy(e=[],n=[],r){const o=(s,l)=>s[l]||"";return r?o(e,0)===o(n,0):o(e,0)===o(n,0)&&o(e,1)===o(n,1)}function df(e,n,r,o){var c;const{points:s}=r,l=Object.keys(e);for(let d=0;d<l.length;d+=1){const h=l[d];if(vy((c=e[h])==null?void 0:c.points,s,o))return`${n}-placement-${h}`}return""}function Yo(e){return e.ownerDocument.defaultView}function cl(e){const n=[];let r=e==null?void 0:e.parentElement;const o=["hidden","scroll","clip","auto"];for(;r;){const{overflowX:s,overflowY:l,overflow:c}=Yo(r).getComputedStyle(r);[s,l,c].some(d=>o.includes(d))&&n.push(r),r=r.parentElement}return n}function Xo(e,n=1){return Number.isNaN(e)?n:e}function Jo(e){return Xo(parseFloat(e),0)}function ff(e,n){const r={...e};return(n||[]).forEach(o=>{if(o instanceof HTMLBodyElement||o instanceof HTMLHtmlElement)return;const{overflow:s,overflowClipMargin:l,borderTopWidth:c,borderBottomWidth:d,borderLeftWidth:h,borderRightWidth:g}=Yo(o).getComputedStyle(o),m=o.getBoundingClientRect(),{offsetHeight:v,clientHeight:y,offsetWidth:C,clientWidth:_}=o,x=Jo(c),b=Jo(d),E=Jo(h),S=Jo(g),P=Xo(Math.round(m.width/C*1e3)/1e3),I=Xo(Math.round(m.height/v*1e3)/1e3),M=(C-_-E-S)*P,k=(v-y-x-b)*I,N=x*I,R=b*I,B=E*P,z=S*P;let $=0,j=0;if(s==="clip"){const J=Jo(l);$=J*P,j=J*I}const V=m.x+B-$,W=m.y+N-j,F=V+m.width+2*$-B-z-M,X=W+m.height+2*j-N-R-k;r.left=Math.max(r.left,V),r.top=Math.max(r.top,W),r.right=Math.min(r.right,F),r.bottom=Math.min(r.bottom,X)}),r}function hf(e,n=0){const r=`${n}`,o=r.match(/^(.*)\%$/);return o?e*(parseFloat(o[1])/100):parseFloat(r)}function pf(e,n){const[r,o]=n||[];return[hf(e.width,r),hf(e.height,o)]}function mf(e=""){return[e[0],e[1]]}function ro(e,n){const r=n[0],o=n[1];let s,l;return r==="t"?l=e.y:r==="b"?l=e.y+e.height:l=e.y+e.height/2,o==="l"?s=e.x:o==="r"?s=e.x+e.width:s=e.x+e.width/2,{x:s,y:l}}function yr(e,n){const r={t:"b",b:"t",l:"r",r:"l"},o=[...e];return o[n]=r[e[n]]||"c",o}function gf(e){return e.join("")}function vf(e,n,r,o,s,l,c,d){const[h,g]=f.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:s[o]||{}}),m=f.useRef(0),v=f.useMemo(()=>!n||d?[]:cl(n),[n]),y=f.useRef({});e||(()=>{y.current={}})();const _=ft(()=>{var E,S;if(n&&r&&e&&!d){let Ve=function(Me,Ne,Ue=Pe){const Tn=F.x+Me,gn=F.y+Ne,zn=Tn+ee,Co=gn+oe,He=Math.max(Tn,Ue.left),Ct=Math.max(gn,Ue.top),Dr=Math.min(zn,Ue.right),me=Math.min(Co,Ue.bottom);return Math.max(0,(Dr-He)*(me-Ct))},xt=function(){cn=F.y+Qe,Vt=cn+oe,Jt=F.x+ge,Lt=Jt+ee};const P=n,I=P.ownerDocument,M=Yo(P),{position:k}=M.getComputedStyle(P),N=P.style.left,R=P.style.top,B=P.style.right,z=P.style.bottom,$=P.style.overflow,j={...s[o],...l},V=I.createElement("div");(E=P.parentElement)==null||E.appendChild(V),V.style.left=`${P.offsetLeft}px`,V.style.top=`${P.offsetTop}px`,V.style.position=k,V.style.height=`${P.offsetHeight}px`,V.style.width=`${P.offsetWidth}px`,P.style.left="0",P.style.top="0",P.style.right="auto",P.style.bottom="auto",P.style.overflow="hidden";let W;if(Array.isArray(r))W={x:r[0],y:r[1],width:0,height:0};else{const Me=r.getBoundingClientRect();Me.x=Me.x??Me.left,Me.y=Me.y??Me.top,W={x:Me.x,y:Me.y,width:Me.width,height:Me.height}}const F=P.getBoundingClientRect(),{height:X,width:J}=M.getComputedStyle(P);F.x=F.x??F.left,F.y=F.y??F.top;const{clientWidth:Z,clientHeight:le,scrollWidth:G,scrollHeight:ie,scrollTop:ne,scrollLeft:de}=I.documentElement,oe=F.height,ee=F.width,K=W.height,Y=W.width,se={left:0,top:0,right:Z,bottom:le},fe={left:-de,top:-ne,right:G-de,bottom:ie-ne};let{htmlRegion:xe}=j;const Se="visible",Te="visibleFirst";xe!=="scroll"&&xe!==Te&&(xe=Se);const Ce=xe===Te,te=ff(fe,v),we=ff(se,v),Pe=xe===Se?we:te,Ae=Ce?we:Pe;P.style.left="auto",P.style.top="auto",P.style.right="0",P.style.bottom="0";const Ze=P.getBoundingClientRect();P.style.left=N,P.style.top=R,P.style.right=B,P.style.bottom=z,P.style.overflow=$,(S=P.parentElement)==null||S.removeChild(V);const Be=Xo(Math.round(ee/parseFloat(J)*1e3)/1e3),nt=Xo(Math.round(oe/parseFloat(X)*1e3)/1e3);if(Be===0||nt===0||Zr(r)&&!ll(r))return;const{offset:Ge,targetOffset:Ke}=j;let[ze,De]=pf(F,Ge);const[ot,St]=pf(W,Ke);W.x-=ot,W.y-=St;const[pt,dt]=j.points||[],mt=mf(dt),Oe=mf(pt),he=ro(W,mt),_e=ro(F,Oe),rt={...j};let $e=[Oe,mt],ge=he.x-_e.x+ze,Qe=he.y-_e.y+De;const Ye=Ve(ge,Qe),Nt=Ve(ge,Qe,we),Ht=ro(W,["t","l"]),vt=ro(F,["t","l"]),Et=ro(W,["b","r"]),kt=ro(F,["b","r"]),Je=j.overflow||{},{adjustX:rn,adjustY:mn,shiftX:on,shiftY:an}=Je,ln=Me=>typeof Me=="boolean"?Me:Me>=0;let cn,Vt,Jt,Lt;xt();const ve=ln(mn),Wt=Oe[0]===mt[0];if(ve&&Oe[0]==="t"&&(Vt>Ae.bottom||y.current.bt)){let Me=Qe;Wt?Me-=oe-K:Me=Ht.y-kt.y-De;const Ne=Ve(ge,Me),Ue=Ve(ge,Me,we);Ne>Ye||Ne===Ye&&(!Ce||Ue>=Nt)?(y.current.bt=!0,Qe=Me,De=-De,$e=[yr($e[0],0),yr($e[1],0)]):y.current.bt=!1}if(ve&&Oe[0]==="b"&&(cn<Ae.top||y.current.tb)){let Me=Qe;Wt?Me+=oe-K:Me=Et.y-vt.y-De;const Ne=Ve(ge,Me),Ue=Ve(ge,Me,we);Ne>Ye||Ne===Ye&&(!Ce||Ue>=Nt)?(y.current.tb=!0,Qe=Me,De=-De,$e=[yr($e[0],0),yr($e[1],0)]):y.current.tb=!1}const jt=ln(rn),T=Oe[1]===mt[1];if(jt&&Oe[1]==="l"&&(Lt>Ae.right||y.current.rl)){let Me=ge;T?Me-=ee-Y:Me=Ht.x-kt.x-ze;const Ne=Ve(Me,Qe),Ue=Ve(Me,Qe,we);Ne>Ye||Ne===Ye&&(!Ce||Ue>=Nt)?(y.current.rl=!0,ge=Me,ze=-ze,$e=[yr($e[0],1),yr($e[1],1)]):y.current.rl=!1}if(jt&&Oe[1]==="r"&&(Jt<Ae.left||y.current.lr)){let Me=ge;T?Me+=ee-Y:Me=Et.x-vt.x-ze;const Ne=Ve(Me,Qe),Ue=Ve(Me,Qe,we);Ne>Ye||Ne===Ye&&(!Ce||Ue>=Nt)?(y.current.lr=!0,ge=Me,ze=-ze,$e=[yr($e[0],1),yr($e[1],1)]):y.current.lr=!1}rt.points=[gf($e[0]),gf($e[1])],xt();const U=on===!0?0:on;typeof U=="number"&&(Jt<we.left&&(ge-=Jt-we.left-ze,W.x+Y<we.left+U&&(ge+=W.x-we.left+Y-U)),Lt>we.right&&(ge-=Lt-we.right-ze,W.x>we.right-U&&(ge+=W.x-we.right+U)));const re=an===!0?0:an;typeof re=="number"&&(cn<we.top&&(Qe-=cn-we.top-De,W.y+K<we.top+re&&(Qe+=W.y-we.top+K-re)),Vt>we.bottom&&(Qe-=Vt-we.bottom-De,W.y>we.bottom-re&&(Qe+=W.y-we.bottom+re)));const ue=F.x+ge,Ee=ue+ee,ye=F.y+Qe,ae=ye+oe,pe=W.x,We=pe+Y,Fe=W.y,et=Fe+K,gt=Math.max(ue,pe),yt=Math.min(Ee,We),wt=(gt+yt)/2-ue,Kt=Math.max(ye,Fe),Qt=Math.min(ae,et),ir=(Kt+Qt)/2-ye;c==null||c(n,rt);let Bn=Ze.right-F.x-(ge+F.width),_r=Ze.bottom-F.y-(Qe+F.height);Be===1&&(ge=Math.floor(ge),Bn=Math.floor(Bn)),nt===1&&(Qe=Math.floor(Qe),_r=Math.floor(_r));const wo={ready:!0,offsetX:ge/Be,offsetY:Qe/nt,offsetR:Bn/Be,offsetB:_r/nt,arrowX:wt/Be,arrowY:ir/nt,scaleX:Be,scaleY:nt,align:rt};g(wo)}}),x=()=>{m.current+=1;const E=m.current;Promise.resolve().then(()=>{m.current===E&&_()})},b=()=>{g(E=>({...E,ready:!1}))};return sn(b,[o]),sn(()=>{e||b()},[e]),[h.ready,h.offsetX,h.offsetY,h.offsetR,h.offsetB,h.arrowX,h.arrowY,h.scaleX,h.scaleY,h.align,x]}function yf(){const e=f.useRef(null),n=()=>{e.current&&(clearTimeout(e.current),e.current=null)},r=(o,s)=>{n(),s===0?o():e.current=setTimeout(()=>{o()},s*1e3)};return f.useEffect(()=>()=>{n()},[]),r}function yy(e,n,r,o,s){sn(()=>{if(e&&n&&r){let v=function(){o(),s()};const l=n,c=r,d=cl(l),h=cl(c),g=Yo(c),m=new Set([g,...d,...h]);return m.forEach(y=>{y.addEventListener("scroll",v,{passive:!0})}),g.addEventListener("resize",v,{passive:!0}),o(),()=>{m.forEach(y=>{y.removeEventListener("scroll",v),g.removeEventListener("resize",v)})}}},[e,n,r])}function by(e,n,r,o,s,l,c,d){const h=f.useRef(e);h.current=e;const g=f.useRef(!1);f.useEffect(()=>{var v,y;if(n&&o&&(!s||l)){const C=()=>{g.current=!1},_=E=>{var S,P;h.current&&!c(((P=(S=E.composedPath)==null?void 0:S.call(E))==null?void 0:P[0])||E.target)&&!g.current&&d(!1)},x=Yo(o);x.addEventListener("pointerdown",C,!0),x.addEventListener("mousedown",_,!0),x.addEventListener("contextmenu",_,!0);const b=Fi(r);if(b&&(b.addEventListener("mousedown",_,!0),b.addEventListener("contextmenu",_,!0)),process.env.NODE_ENV!=="production"&&r){const E=(v=r.getRootNode)==null?void 0:v.call(r),S=(y=o.getRootNode)==null?void 0:y.call(o);Oo(E===S,"trigger element and popup element should in same shadow root.")}return()=>{x.removeEventListener("pointerdown",C,!0),x.removeEventListener("mousedown",_,!0),x.removeEventListener("contextmenu",_,!0),b&&(b.removeEventListener("mousedown",_,!0),b.removeEventListener("contextmenu",_,!0))}}},[n,r,o,s,l]);function m(){g.current=!0}return m}function _y(){const[e,n]=A.useState(null),[r,o]=A.useState(!1),[s,l]=A.useState(!1),c=A.useRef(null),d=ft(g=>{g===!1?(c.current=null,o(!1)):s&&r?c.current=g:(o(!0),n(g),c.current=null,r||l(!0))}),h=ft(g=>{g?(l(!1),c.current&&(n(c.current),c.current=null)):(l(!1),c.current=null)});return[d,r,e,h]}function ul(){return ul=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},ul.apply(this,arguments)}const xy=e=>{const{prefixCls:n,isMobile:r,ready:o,open:s,align:l,offsetR:c,offsetB:d,offsetX:h,offsetY:g,arrowPos:m,popupSize:v,motion:y,uniqueContainerClassName:C,uniqueContainerStyle:_}=e,x=`${n}-unique-container`,[b,E]=A.useState(!1),S=lf(r,o,s,l,c,d,h,g),P=A.useRef(S);o&&(P.current=S);const I={};return v&&(I.width=v.width,I.height=v.height),A.createElement(Nr,ul({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,leavedClassName:`${x}-hidden`},y,{visible:s,onVisibleChanged:M=>{E(M)}}),({className:M,style:k})=>{const N=ce(x,M,C,{[`${x}-visible`]:b});return A.createElement("div",{className:N,style:{"--arrow-x":`${(m==null?void 0:m.x)||0}px`,"--arrow-y":`${(m==null?void 0:m.y)||0}px`,...P.current,...I,...k,..._}})})},wy=({children:e,postTriggerProps:n})=>{const[r,o,s,l]=_y(),c=f.useMemo(()=>!s||!n?s:n(s),[s,n]),[d,h]=f.useState(null),[g,m]=f.useState(null),v=f.useRef(null),y=ft(Z=>{v.current=Z,Zr(Z)&&d!==Z&&h(Z)}),C=f.useRef(null),_=yf(),x=ft((Z,le)=>{C.current=le,_(()=>{r(Z)},Z.delay)}),b=Z=>{_(()=>{var le;(le=C.current)!=null&&le.call(C)||r(!1)},Z)},E=ft(Z=>{l(Z)}),[S,P,I,M,k,N,R,,,B,z]=vf(o,d,c==null?void 0:c.target,c==null?void 0:c.popupPlacement,(c==null?void 0:c.builtinPlacements)||{},c==null?void 0:c.popupAlign,void 0,!1),$=f.useMemo(()=>{var le;if(!c)return"";const Z=df(c.builtinPlacements||{},c.prefixCls||"",B,!1);return ce(Z,(le=c.getPopupClassNameFromAlign)==null?void 0:le.call(c,B))},[B,c==null?void 0:c.getPopupClassNameFromAlign,c==null?void 0:c.builtinPlacements,c==null?void 0:c.prefixCls]),j=f.useMemo(()=>({show:x,hide:b}),[]);f.useEffect(()=>{z()},[c==null?void 0:c.target]);const V=ft(()=>(z(),Promise.resolve())),W=f.useRef({}),F=f.useContext(Yi),X=f.useMemo(()=>({registerSubPopup:(Z,le)=>{W.current[Z]=le,F==null||F.registerSubPopup(Z,le)}}),[F]),J=c==null?void 0:c.prefixCls;return f.createElement(cf.Provider,{value:j},e,c&&f.createElement(Yi.Provider,{value:X},f.createElement(al,{ref:y,portal:Qi,onEsc:c.onEsc,prefixCls:J,popup:c.popup,className:ce(c.popupClassName,$,`${J}-unique-controlled`),style:c.popupStyle,target:c.target,open:o,keepDom:!0,fresh:!0,autoDestroy:!1,onVisibleChanged:E,ready:S,offsetX:P,offsetY:I,offsetR:M,offsetB:k,onAlign:z,onPrepare:V,onResize:Z=>m({width:Z.offsetWidth,height:Z.offsetHeight}),arrowPos:{x:N,y:R},align:B,zIndex:c.zIndex,mask:c.mask,arrow:c.arrow,motion:c.popupMotion,maskMotion:c.maskMotion,getPopupContainer:c.getPopupContainer},f.createElement(xy,{prefixCls:J,isMobile:!1,ready:S,open:o,align:B,offsetR:M,offsetB:k,offsetX:P,offsetY:I,arrowPos:{x:N,y:R},popupSize:g,motion:c.popupMotion,uniqueContainerClassName:ce(c.uniqueContainerClassName,$),uniqueContainerStyle:c.uniqueContainerStyle}))))};function Cy(e=Qi){const n=f.forwardRef((r,o)=>{const{prefixCls:s="rc-trigger-popup",children:l,action:c="hover",showAction:d,hideAction:h,popupVisible:g,defaultPopupVisible:m,onOpenChange:v,afterOpenChange:y,onPopupVisibleChange:C,afterPopupVisibleChange:_,mouseEnterDelay:x,mouseLeaveDelay:b=.1,focusDelay:E,blurDelay:S,mask:P,maskClosable:I=!0,getPopupContainer:M,forceRender:k,autoDestroy:N,popup:R,popupClassName:B,uniqueContainerClassName:z,uniqueContainerStyle:$,popupStyle:j,popupPlacement:V,builtinPlacements:W={},popupAlign:F,zIndex:X,stretch:J,getPopupClassNameFromAlign:Z,fresh:le,unique:G,alignPoint:ie,onPopupClick:ne,onPopupAlign:de,arrow:oe,popupMotion:ee,maskMotion:K,mobile:Y,...se}=r,fe=N||!1,xe=g===void 0,Se=!!Y,Te=f.useRef({}),Ce=f.useContext(Yi),te=f.useMemo(()=>({registerSubPopup:(me,ke)=>{Te.current[me]=ke,Ce==null||Ce.registerSubPopup(me,ke)}}),[Ce]),we=f.useContext(cf),Pe=Ki(),[Ae,Ze]=f.useState(null),Be=f.useRef(null),nt=ft(me=>{Be.current=me,Zr(me)&&Ae!==me&&Ze(me),Ce==null||Ce.registerSubPopup(Pe,me)}),[Ge,Ke]=f.useState(null),ze=f.useRef(null),De=ft(me=>{const ke=Xs(me);Zr(ke)&&Ge!==ke&&(Ke(ke),ze.current=ke)}),ot={},St=ft(me=>{var Yt,Dn;const ke=Ge;return(ke==null?void 0:ke.contains(me))||((Yt=Fi(ke))==null?void 0:Yt.host)===me||me===ke||(Ae==null?void 0:Ae.contains(me))||((Dn=Fi(Ae))==null?void 0:Dn.host)===me||me===Ae||Object.values(Te.current).some(un=>(un==null?void 0:un.contains(me))||me===un)}),pt=oe?{...oe!==!0?oe:{}}:null,[dt,mt]=qn(m||!1,g),Oe=dt||!1,he=f.useMemo(()=>{const me=typeof l=="function"?l({open:Oe}):l;return f.Children.only(me)},[l,Oe]),_e=(he==null?void 0:he.props)||{},rt=ft(()=>Oe),$e=ft((me=0)=>({popup:R,target:Ge,delay:me,prefixCls:s,popupClassName:B,uniqueContainerClassName:z,uniqueContainerStyle:$,popupStyle:j,popupPlacement:V,builtinPlacements:W,popupAlign:F,zIndex:X,mask:P,maskClosable:I,popupMotion:ee,maskMotion:K,arrow:pt,getPopupContainer:M,getPopupClassNameFromAlign:Z,id:Pe,onEsc:Nt}));sn(()=>{we&&G&&Ge&&!xe&&!Ce&&(Oe?we.show($e(x),rt):we.hide(b))},[Oe,Ge]);const ge=f.useRef(Oe);ge.current=Oe;const Qe=ft(me=>{Ln.flushSync(()=>{Oe!==me&&(mt(me),v==null||v(me),C==null||C(me))})}),Ve=yf(),Ye=(me,ke=0)=>{if(g!==void 0){Ve(()=>{Qe(me)},ke);return}if(we&&G&&xe&&!Ce){me?we.show($e(ke),rt):we.hide(ke);return}Ve(()=>{Qe(me)},ke)};function Nt({top:me}){me&&Ye(!1)}const[Ht,vt]=f.useState(!1);sn(me=>{(!me||Oe)&&vt(!0)},[Oe]);const[Et,kt]=f.useState(null),[Je,rn]=f.useState(null),mn=me=>{rn([me.clientX,me.clientY])},[on,an,ln,cn,Vt,Jt,Lt,xt,ve,Wt,jt]=vf(Oe,Ae,ie&&Je!==null?Je:Ge,V,W,F,de,Se),[T,U]=gy(c,d,h),re=T.has("click"),ue=U.has("click")||U.has("contextMenu"),Ee=ft(()=>{Ht||jt()});yy(Oe,Ge,Ae,Ee,()=>{ge.current&&ie&&ue&&Ye(!1)}),sn(()=>{Ee()},[Je,V]),sn(()=>{Oe&&!(W!=null&&W[V])&&Ee()},[JSON.stringify(F)]);const ae=f.useMemo(()=>{const me=df(W,s,Wt,ie);return ce(me,Z==null?void 0:Z(Wt))},[Wt,Z,W,s,ie]);f.useImperativeHandle(o,()=>({nativeElement:ze.current,popupElement:Be.current,forceAlign:Ee}));const[pe,We]=f.useState(0),[Fe,et]=f.useState(0),gt=()=>{if(J&&Ge){const me=Ge.getBoundingClientRect();We(me.width),et(me.height)}},yt=()=>{gt(),Ee()},Gt=me=>{vt(!1),jt(),y==null||y(me),_==null||_(me)},wt=()=>new Promise(me=>{gt(),kt(()=>me)});sn(()=>{Et&&(jt(),Et(),kt(null))},[Et]);function Kt(me,ke,Yt,Dn,un){ot[me]=(Pt,...sr)=>{var xr;(!un||!un())&&(Dn==null||Dn(Pt),Ye(ke,Yt)),(xr=_e[me])==null||xr.call(_e,Pt,...sr)}}const Qt=T.has("touch"),br=U.has("touch"),ir=f.useRef(!1);(Qt||br)&&(ot.onTouchStart=(...me)=>{var ke;ir.current=!0,ge.current&&br?Ye(!1):!ge.current&&Qt&&Ye(!0),(ke=_e.onTouchStart)==null||ke.call(_e,...me)}),(re||ue)&&(ot.onClick=(me,...ke)=>{var Yt;ge.current&&ue?Ye(!1):!ge.current&&re&&(mn(me),Ye(!0)),(Yt=_e.onClick)==null||Yt.call(_e,me,...ke),ir.current=!1});const Bn=by(Oe,ue||br,Ge,Ae,P,I,St,Ye),_r=T.has("hover"),wo=U.has("hover");let Me,Ne;const Ue=()=>ir.current;if(_r){const me=ke=>{mn(ke)};Kt("onMouseEnter",!0,x,me,Ue),Kt("onPointerEnter",!0,x,me,Ue),Me=ke=>{(Oe||Ht)&&(Ae!=null&&Ae.contains(ke.target))&&Ye(!0,x)},ie&&(ot.onMouseMove=ke=>{var Yt;(Yt=_e.onMouseMove)==null||Yt.call(_e,ke)})}wo&&(Kt("onMouseLeave",!1,b,void 0,Ue),Kt("onPointerLeave",!1,b,void 0,Ue),Ne=()=>{Ye(!1,b)}),T.has("focus")&&Kt("onFocus",!0,E),U.has("focus")&&Kt("onBlur",!1,S),T.has("contextMenu")&&(ot.onContextMenu=(me,...ke)=>{var Yt;ge.current&&U.has("contextMenu")?Ye(!1):(mn(me),Ye(!0)),me.preventDefault(),(Yt=_e.onContextMenu)==null||Yt.call(_e,me,...ke)});const Tn=f.useRef(!1);Tn.current||(Tn.current=k||Oe||Ht);const gn={..._e,...ot},zn={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach(me=>{se[me]&&(zn[me]=(...ke)=>{var Yt;(Yt=gn[me])==null||Yt.call(gn,...ke),se[me](...ke)})});const He={x:Jt,y:Lt};iu(Oe,Ge,yt);const Ct=Wr(De,dr(he)),Dr=f.cloneElement(he,{...gn,...zn,ref:Ct});return f.createElement(f.Fragment,null,Dr,Tn.current&&(!we||!G)&&f.createElement(Yi.Provider,{value:te},f.createElement(al,{portal:e,ref:nt,prefixCls:s,popup:R,className:ce(B,!Se&&ae),style:j,target:Ge,onMouseEnter:Me,onMouseLeave:Ne,onPointerEnter:Me,zIndex:X,open:Oe,keepDom:Ht,fresh:le,onClick:ne,onPointerDownCapture:Bn,mask:P,motion:ee,maskMotion:K,onVisibleChanged:Gt,onPrepare:wt,forceRender:k,autoDestroy:fe,getPopupContainer:M,onEsc:Nt,align:Wt,arrow:pt,arrowPos:He,ready:on,offsetX:an,offsetY:ln,offsetR:cn,offsetB:Vt,onAlign:Ee,stretch:J,targetWidth:pe/xt,targetHeight:Fe/ve,mobile:Y})))});return process.env.NODE_ENV!=="production"&&(n.displayName="Trigger"),n}const dl=Cy(Qi);function bf(e){return e&&A.isValidElement(e)&&e.type===A.Fragment}const Sy=(e,n,r)=>A.isValidElement(e)?A.cloneElement(e,typeof r=="function"?r(e.props||{}):r):n;function nr(e,n){return Sy(e,e,n)}const Ey=({children:e})=>{const{getPrefixCls:n}=A.useContext(Ot),r=n();return A.isValidElement(e)?A.createElement(Nr,{visible:!0,motionName:`${r}-fade`,motionAppear:!0,motionEnter:!0,motionLeave:!1,removeOnLeave:!1},({style:o,className:s})=>nr(e,l=>({className:ce(l.className,s),style:{...l.style,...o}}))):e},Xi=[null,null];function Py(e){if(Xi[0]!==e){const n={};Object.keys(e).forEach(r=>{n[r]={...e[r],dynamicInset:!1}}),Xi[0]=e,Xi[1]=n}return Xi[1]}const _f=({children:e})=>{const n=r=>{const{id:o,builtinPlacements:s,popup:l}=r,c=typeof l=="function"?l():l,d=Py(s);return{...r,getPopupContainer:null,arrow:!1,popup:A.createElement(Ey,{key:o},c),builtinPlacements:d}};return A.createElement(wy,{postTriggerProps:n},e)},fl=f.createContext(!1),Iy=({children:e,disabled:n})=>{const r=f.useContext(fl);return f.createElement(fl.Provider,{value:n??r},e)},hl=fl,pl=f.createContext(void 0),Ty=({children:e,size:n})=>{const r=f.useContext(pl);return f.createElement(pl.Provider,{value:n||r},e)},Ji=pl;function Ay(){const e=A.useContext(hl),n=A.useContext(Ji);return{componentDisabled:e,componentSize:n}}function My(e,n,r){var d;const o=hn("ConfigProvider"),s=e||{},l=s.inherit===!1||!n?{...Za,hashed:(n==null?void 0:n.hashed)??Za.hashed,cssVar:n==null?void 0:n.cssVar}:n,c=A.useId();if(process.env.NODE_ENV!=="production"){const h=s.cssVar||l.cssVar,g=!!(typeof s.cssVar=="object"&&((d=s.cssVar)!=null&&d.key)||c);process.env.NODE_ENV!=="production"&&o(!h||g,"breaking","Missing key in `cssVar` config. Please upgrade to React 18 or set `cssVar.key` manually in each ConfigProvider inside `cssVar` enabled ConfigProvider.")}return Ei(()=>{var v;if(!e)return n;const h={...l.components};Object.keys(e.components||{}).forEach(y=>{h[y]={...h[y],...e.components[y]}});const g=`css-var-${c.replace(/:/g,"")}`,m={prefix:r==null?void 0:r.prefixCls,...l.cssVar,...s.cssVar,key:((v=s.cssVar)==null?void 0:v.key)||g};return{...l,...s,token:{...l.token,...s.token},components:h,cssVar:m}},[s,l],(h,g)=>h.some((m,v)=>{const y=g[v];return!$o(m,y,!0)}))}const ml=f.createContext(!0);process.env.NODE_ENV!=="production"&&(ml.displayName="MotionCacheContext");function Ly(e){const n=f.useContext(ml),{children:r}=e,[,o]=mr(),{motion:s}=o,l=f.useRef(!1);return l.current||(l.current=n!==s),l.current?f.createElement(ml.Provider,{value:s},f.createElement(Tv,{motion:s},r)):r}const xf=f.memo(({dropdownMatchSelectWidth:e})=>(hn("ConfigProvider").deprecated(e===void 0,"dropdownMatchSelectWidth","popupMatchSelectWidth"),null));process.env.NODE_ENV!=="production"&&(xf.displayName="PropWarning");const Oy=process.env.NODE_ENV!=="production"?xf:()=>null,Ny=({iconPrefixCls:e,csp:n})=>(bv(e,n),null);let gl=!1;process.env.NODE_ENV;const ky=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"],Ry=e=>{},$y=e=>{const{children:n,csp:r,autoInsertSpaceInButton:o,alert:s,affix:l,anchor:c,form:d,locale:h,componentSize:g,direction:m,space:v,splitter:y,virtual:C,dropdownMatchSelectWidth:_,popupMatchSelectWidth:x,popupOverflow:b,legacyLocale:E,parentContext:S,iconPrefixCls:P,theme:I,componentDisabled:M,segmented:k,statistic:N,spin:R,calendar:B,carousel:z,cascader:$,collapse:j,typography:V,checkbox:W,descriptions:F,divider:X,drawer:J,skeleton:Z,steps:le,image:G,layout:ie,list:ne,mentions:de,modal:oe,progress:ee,result:K,slider:Y,breadcrumb:se,masonry:fe,menu:xe,pagination:Se,input:Te,textArea:Ce,otp:te,empty:we,badge:Pe,radio:Ae,rate:Ze,ribbon:Be,switch:nt,transfer:Ge,avatar:Ke,message:ze,tag:De,table:ot,card:St,cardMeta:pt,tabs:dt,timeline:mt,timePicker:Oe,upload:he,notification:_e,tree:rt,colorPicker:$e,datePicker:ge,rangePicker:Qe,flex:Ve,wave:Ye,dropdown:Nt,warning:Ht,tour:vt,tooltip:Et,popover:kt,popconfirm:Je,qrcode:rn,floatButton:mn,floatButtonGroup:on,variant:an,inputNumber:ln,treeSelect:cn,watermark:Vt}=e,Jt=f.useCallback((ae,pe)=>{const{prefixCls:We}=e;if(pe)return pe;const Fe=We||S.getPrefixCls("");return ae?`${Fe}-${ae}`:Fe},[S.getPrefixCls,e.prefixCls]),Lt=P||S.iconPrefixCls||ra,xt=r||S.csp,ve=My(I,S.theme,{prefixCls:Jt("")});process.env.NODE_ENV!=="production"&&(gl=gl||!!ve);const Wt={csp:xt,autoInsertSpaceInButton:o,alert:s,affix:l,anchor:c,locale:h||E,direction:m,space:v,splitter:y,virtual:C,popupMatchSelectWidth:x??_,popupOverflow:b,getPrefixCls:Jt,iconPrefixCls:Lt,theme:ve,segmented:k,statistic:N,spin:R,calendar:B,carousel:z,cascader:$,collapse:j,typography:V,checkbox:W,descriptions:F,divider:X,drawer:J,skeleton:Z,steps:le,image:G,input:Te,textArea:Ce,otp:te,layout:ie,list:ne,mentions:de,modal:oe,progress:ee,result:K,slider:Y,breadcrumb:se,masonry:fe,menu:xe,pagination:Se,empty:we,badge:Pe,radio:Ae,rate:Ze,ribbon:Be,switch:nt,transfer:Ge,avatar:Ke,message:ze,tag:De,table:ot,card:St,cardMeta:pt,tabs:dt,timeline:mt,timePicker:Oe,upload:he,notification:_e,tree:rt,colorPicker:$e,datePicker:ge,rangePicker:Qe,flex:Ve,wave:Ye,dropdown:Nt,warning:Ht,tour:vt,tooltip:Et,popover:kt,popconfirm:Je,qrcode:rn,floatButton:mn,floatButtonGroup:on,variant:an,inputNumber:ln,treeSelect:cn,watermark:Vt};process.env.NODE_ENV!=="production"&&hn("ConfigProvider")(!("autoInsertSpaceInButton"in e),"deprecated","`autoInsertSpaceInButton` is deprecated. Please use `{ button: { autoInsertSpace: boolean }}` instead.");const jt={...S};Object.keys(Wt).forEach(ae=>{Wt[ae]!==void 0&&(jt[ae]=Wt[ae])}),ky.forEach(ae=>{const pe=e[ae];pe&&(jt[ae]=pe)}),typeof o<"u"&&(jt.button={autoInsertSpace:o,...jt.button});const T=Ei(()=>jt,jt,(ae,pe)=>{const We=Object.keys(ae),Fe=Object.keys(pe);return We.length!==Fe.length||We.some(et=>ae[et]!==pe[et])}),{layer:U}=f.useContext(Bo),re=f.useMemo(()=>({prefixCls:Lt,csp:xt,layer:U?"antd":void 0}),[Lt,xt,U]);let ue=f.createElement(f.Fragment,null,f.createElement(Ny,{iconPrefixCls:Lt,csp:xt}),f.createElement(Oy,{dropdownMatchSelectWidth:_}),n);const Ee=f.useMemo(()=>{var ae,pe,We,Fe;return jr(((ae=qi.Form)==null?void 0:ae.defaultValidateMessages)||{},((We=(pe=T.locale)==null?void 0:pe.Form)==null?void 0:We.defaultValidateMessages)||{},((Fe=T.form)==null?void 0:Fe.validateMessages)||{},(d==null?void 0:d.validateMessages)||{})},[T,d==null?void 0:d.validateMessages]);Object.keys(Ee).length>0&&(ue=f.createElement(ty.Provider,{value:Ee},ue)),h&&(ue=f.createElement(Gv,{locale:h,_ANT_MARK__:Wd},ue)),(Lt||xt)&&(ue=f.createElement(Qa.Provider,{value:re},ue)),g&&(ue=f.createElement(Ty,{size:g},ue)),ue=f.createElement(Ly,null,ue),Et!=null&&Et.unique&&(ue=f.createElement(_f,null,ue));const ye=f.useMemo(()=>{const{algorithm:ae,token:pe,components:We,cssVar:Fe,...et}=ve||{},gt=ae&&(!Array.isArray(ae)||ae.length>0)?ua(ae):dd,yt={};Object.entries(We||{}).forEach(([wt,Kt])=>{const Qt={...Kt};"algorithm"in Qt&&(Qt.algorithm===!0?Qt.theme=gt:(Array.isArray(Qt.algorithm)||typeof Qt.algorithm=="function")&&(Qt.theme=ua(Qt.algorithm)),delete Qt.algorithm),yt[wt]=Qt});const Gt={...Zo,...pe};return{...et,theme:gt,token:Gt,components:yt,override:{override:Gt,...yt},cssVar:Fe}},[ve]);return I&&(ue=f.createElement(fd.Provider,{value:ye},ue)),T.warning&&(ue=f.createElement(nu.Provider,{value:T.warning},ue)),M!==void 0&&(ue=f.createElement(Iy,{disabled:M},ue)),f.createElement(Ot.Provider,{value:T},ue)},Rr=e=>{const n=f.useContext(Ot),r=f.useContext(Vd);return f.createElement($y,{parentContext:n,legacyLocale:r,...e})};Rr.ConfigContext=Ot,Rr.SizeContext=Ji,Rr.config=Ry,Rr.useConfig=Ay,Object.defineProperty(Rr,"SizeContext",{get:()=>(process.env.NODE_ENV!=="production"&&Ys(!1,"ConfigProvider","ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead."),Ji)}),process.env.NODE_ENV!=="production"&&(Rr.displayName="ConfigProvider");const Ie={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(n){const{keyCode:r}=n;if(n.altKey&&!n.ctrlKey||n.metaKey||r>=Ie.F1&&r<=Ie.F12)return!1;switch(r){case Ie.ALT:case Ie.CAPS_LOCK:case Ie.CONTEXT_MENU:case Ie.CTRL:case Ie.DOWN:case Ie.END:case Ie.ESC:case Ie.HOME:case Ie.INSERT:case Ie.LEFT:case Ie.MAC_FF_META:case Ie.META:case Ie.NUMLOCK:case Ie.NUM_CENTER:case Ie.PAGE_DOWN:case Ie.PAGE_UP:case Ie.PAUSE:case Ie.PRINT_SCREEN:case Ie.RIGHT:case Ie.SHIFT:case Ie.UP:case Ie.WIN_KEY:case Ie.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(n){if(n>=Ie.ZERO&&n<=Ie.NINE||n>=Ie.NUM_ZERO&&n<=Ie.NUM_MULTIPLY||n>=Ie.A&&n<=Ie.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&n===0)return!0;switch(n){case Ie.SPACE:case Ie.QUESTION_MARK:case Ie.NUM_PLUS:case Ie.NUM_MINUS:case Ie.NUM_PERIOD:case Ie.NUM_DIVISION:case Ie.SEMICOLON:case Ie.DASH:case Ie.EQUALS:case Ie.COMMA:case Ie.PERIOD:case Ie.SLASH:case Ie.APOSTROPHE:case Ie.SINGLE_QUOTE:case Ie.OPEN_SQUARE_BRACKET:case Ie.BACKSLASH:case Ie.CLOSE_SQUARE_BRACKET:return!0;default:return!1}},isEditableTarget:function(n){const r=n.target;if(!(r instanceof HTMLElement))return!1;const o=r.tagName;return!!(o==="INPUT"||o==="TEXTAREA"||o==="SELECT"||r.isContentEditable)}};var By={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"};const zy=By;function vl(){return vl=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},vl.apply(this,arguments)}const Dy=(e,n)=>f.createElement(Ko,vl({},e,{ref:n,icon:zy})),wf=f.forwardRef(Dy);process.env.NODE_ENV!=="production"&&(wf.displayName="LoadingOutlined");const Fy=wf;var oo,es=Ln;if(process.env.NODE_ENV==="production")oo=es.createRoot,es.hydrateRoot;else{var Cf=es.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;oo=function(e,n){Cf.usingClientEntryPoint=!0;try{return es.createRoot(e,n)}finally{Cf.usingClientEntryPoint=!1}}}const ts="__rc_react_root__";function Hy(e,n){const r=n[ts]||oo(n);r.render(e),n[ts]=r}async function Vy(e){return Promise.resolve().then(()=>{var n;(n=e[ts])==null||n.unmount(),delete e[ts]})}const yl=()=>({height:0,opacity:0}),Sf=e=>{const{scrollHeight:n}=e;return{height:n,opacity:1}},Wy=e=>({height:e?e.offsetHeight:0}),bl=(e,n)=>(n==null?void 0:n.deadline)===!0||n.propertyName==="height",jy=(e=Ii)=>({motionName:`${e}-motion-collapse`,onAppearStart:yl,onEnterStart:yl,onAppearActive:Sf,onEnterActive:Sf,onLeaveStart:Wy,onLeaveActive:yl,onAppearEnd:bl,onEnterEnd:bl,onLeaveEnd:bl,motionDeadline:500}),Zy=(e,n,r)=>r!==void 0?r:`${e}-${n}`,Uy=gv("Wave",e=>{const{componentCls:n,colorPrimary:r,antCls:o}=e,[,s]=gr(o,"wave");return{[n]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:s("color",r),boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}}),_l=`${Ii}-wave-target`;function Ef(e){return e&&typeof e=="string"&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"&&e!=="canvastext"}function qy(e,n=null){const r=getComputedStyle(e),{borderTopColor:o,borderColor:s,backgroundColor:l}=r;return n&&Ef(r[n])?r[n]:[o,s,l].find(Ef)??null}function xl(e){return Number.isNaN(e)?0:e}const Gy=e=>{const{className:n,target:r,component:o,colorSource:s}=e,l=f.useRef(null),{getPrefixCls:c}=f.useContext(Ot),d=c(),[h]=gr(d,"wave"),[g,m]=f.useState(null),[v,y]=f.useState([]),[C,_]=f.useState(0),[x,b]=f.useState(0),[E,S]=f.useState(0),[P,I]=f.useState(0),[M,k]=f.useState(!1),N={left:C,top:x,width:E,height:P,borderRadius:v.map(z=>`${z}px`).join(" ")};g&&(N[h("color")]=g);function R(){const z=getComputedStyle(r);m(qy(r,s));const $=z.position==="static",{borderLeftWidth:j,borderTopWidth:V}=z;_($?r.offsetLeft:xl(-Number.parseFloat(j))),b($?r.offsetTop:xl(-Number.parseFloat(V))),S(r.offsetWidth),I(r.offsetHeight);const{borderTopLeftRadius:W,borderTopRightRadius:F,borderBottomLeftRadius:X,borderBottomRightRadius:J}=z;y([W,F,J,X].map(Z=>xl(Number.parseFloat(Z))))}if(f.useEffect(()=>{if(r){const z=Ut(()=>{R(),k(!0)});let $;return typeof ResizeObserver<"u"&&($=new ResizeObserver(R),$.observe(r)),()=>{Ut.cancel(z),$==null||$.disconnect()}}},[r]),!M)return null;const B=(o==="Checkbox"||o==="Radio")&&(r==null?void 0:r.classList.contains(_l));return f.createElement(Nr,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(z,$)=>{var j;if($.deadline||$.propertyName==="opacity"){const V=(j=l.current)==null?void 0:j.parentElement;Vy(V).then(()=>{V==null||V.remove()})}return!1}},({className:z},$)=>f.createElement("div",{ref:Sr(l,$),className:ce(n,z,{"wave-quick":B}),style:N}))},Ky=(e,n)=>{var s;const{component:r}=n;if(r==="Checkbox"&&!((s=e.querySelector("input"))!=null&&s.checked))return;const o=document.createElement("div");o.style.position="absolute",o.style.left="0px",o.style.top="0px",e==null||e.insertBefore(o,e==null?void 0:e.firstChild),Hy(f.createElement(Gy,{...n,target:e}),o)},Qy=(e,n,r,o)=>{const{wave:s}=f.useContext(Ot),[,l,c]=mr(),d=ft(m=>{const v=e.current;if(s!=null&&s.disabled||!v)return;const y=v.querySelector(`.${_l}`)||v,{showEffect:C}=s||{};(C||Ky)(y,{className:n,token:l,component:r,event:m,hashId:c,colorSource:o})}),h=f.useRef(null);return f.useEffect(()=>()=>{Ut.cancel(h.current)},[]),m=>{Ut.cancel(h.current),h.current=Ut(()=>{d(m)})}},Pf=e=>{const{children:n,disabled:r,component:o,colorSource:s}=e,{getPrefixCls:l}=A.useContext(Ot),c=A.useRef(null),d=l("wave"),h=Uy(d),g=Qy(c,ce(d,h),o,s);if(A.useEffect(()=>{const v=c.current;if(!v||v.nodeType!==window.Node.ELEMENT_NODE||r)return;const y=C=>{!ll(C.target)||!v.getAttribute||v.getAttribute("disabled")||v.disabled||v.className.includes("disabled")&&!v.className.includes("disabled:")||v.getAttribute("aria-disabled")==="true"||v.className.includes("-leave")||g(C)};return v.addEventListener("click",y,!0),()=>{v.removeEventListener("click",y,!0)}},[r]),!A.isValidElement(n))return n??null;const m=Er(n)?Sr(dr(n),c):c;return nr(n,{ref:m})};process.env.NODE_ENV!=="production"&&(Pf.displayName="Wave");const If=Pf,Tf=e=>{const n=A.useContext(Ji);return A.useMemo(()=>e?typeof e=="string"?e??n:typeof e=="function"?e(n):n:n,[e,n])},Yy=e=>{const{componentCls:n}=e;return{[n]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"}}}},Xy=Vn(["Space","Compact"],e=>[Yy(e)],()=>({}),{resetStyle:!1}),ns=f.createContext(null),wl=(e,n)=>{const r=f.useContext(ns),o=f.useMemo(()=>{if(!r)return"";const{compactDirection:s,isFirstItem:l,isLastItem:c}=r,d=s==="vertical"?"-vertical-":"-";return ce(`${e}-compact${d}item`,{[`${e}-compact${d}first-item`]:l,[`${e}-compact${d}last-item`]:c,[`${e}-compact${d}item-rtl`]:n==="rtl"})},[e,n,r]);return{compactSize:r==null?void 0:r.compactSize,compactDirection:r==null?void 0:r.compactDirection,compactItemClassnames:o}},Jy=e=>{const{children:n}=e;return f.createElement(ns.Provider,{value:null},n)},eb=e=>{const{children:n,...r}=e;return f.createElement(ns.Provider,{value:f.useMemo(()=>r,[r])},n)},tb=e=>{const{getPrefixCls:n,direction:r}=f.useContext(Ot),{size:o,direction:s,orientation:l,block:c,prefixCls:d,className:h,rootClassName:g,children:m,vertical:v,...y}=e;process.env.NODE_ENV!=="production"&&hn("Space.Compact").deprecated(!s,"direction","orientation");const[C,_]=Gd(l,v,s),x=Tf(k=>o??k),b=n("space-compact",d),[E]=Xy(b),S=ce(b,E,{[`${b}-rtl`]:r==="rtl",[`${b}-block`]:c,[`${b}-vertical`]:_},h,g),P=f.useContext(ns),I=Gn(m),M=f.useMemo(()=>I.map((k,N)=>{const R=(k==null?void 0:k.key)||`${b}-item-${N}`;return f.createElement(eb,{key:R,compactSize:x,compactDirection:C,isFirstItem:N===0&&(!P||(P==null?void 0:P.isFirstItem)),isLastItem:N===I.length-1&&(!P||(P==null?void 0:P.isLastItem))},k)}),[I,P,C,x,b]);return I.length===0?null:f.createElement("div",{className:S,...y},M)},Af=f.createContext(void 0),nb=e=>{const{getPrefixCls:n,direction:r}=f.useContext(Ot),{prefixCls:o,size:s,className:l,...c}=e,d=n("btn-group",o),[,,h]=mr(),g=f.useMemo(()=>{switch(s){case"large":return"lg";case"small":return"sm";default:return""}},[s]);if(process.env.NODE_ENV!=="production"){const v=hn("Button.Group");v.deprecated(!1,"Button.Group","Space.Compact"),process.env.NODE_ENV!=="production"&&v(!s||["large","small","middle"].includes(s),"usage","Invalid prop `size`.")}const m=ce(d,{[`${d}-${g}`]:g,[`${d}-rtl`]:r==="rtl"},l,h);return f.createElement(Af.Provider,{value:s},f.createElement("div",{...c,className:m}))},Mf=/^[\u4E00-\u9FA5]{2}$/,Cl=Mf.test.bind(Mf);function Lf(e){return typeof e=="string"}function rs(e){return e==="text"||e==="link"}function rb(e,n,r,o){if(!to(e)||e==="")return;const s=n?" ":"";return typeof e!="string"&&typeof e!="number"&&Lf(e.type)&&Cl(e.props.children)?nr(e,l=>{const c=ce(l.className,o)||void 0,d={...r,...l.style};return{...l,children:l.children.split("").join(s),className:c,style:d}}):Lf(e)?A.createElement("span",{className:o,style:r},Cl(e)?e.split("").join(s):e):bf(e)?A.createElement("span",{className:o,style:r},e):nr(e,l=>({...l,className:ce(l.className,o)||void 0,style:{...l.style,...r}}))}function ob(e,n,r,o){let s=!1;const l=[];return A.Children.forEach(e,c=>{const d=typeof c,h=d==="string"||d==="number";if(s&&h){const g=l.length-1,m=l[g];l[g]=`${m}${c}`}else l.push(c);s=h}),A.Children.map(l,c=>rb(c,n,r,o))}["default","primary","danger"].concat(bn(Or));const Of=A.forwardRef((e,n)=>{const{className:r,style:o,children:s,prefixCls:l}=e,c=ce(`${l}-icon`,r);return A.createElement("span",{ref:n,className:c,style:o},s)}),Nf=A.forwardRef((e,n)=>{const{prefixCls:r,className:o,style:s,iconClassName:l}=e,c=ce(`${r}-loading-icon`,o);return A.createElement(Of,{prefixCls:r,className:c,style:s,ref:n},A.createElement(Fy,{className:l}))}),Sl=()=>({width:0,opacity:0,transform:"scale(0)"}),El=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),ib=e=>{const{prefixCls:n,loading:r,existIcon:o,className:s,style:l,mount:c}=e,d=!!r;return o?A.createElement(Nf,{prefixCls:n,className:s,style:l}):A.createElement(Nr,{visible:d,motionName:`${n}-loading-icon-motion`,motionAppear:!c,motionEnter:!c,motionLeave:!c,removeOnLeave:!0,onAppearStart:Sl,onAppearActive:El,onEnterStart:Sl,onEnterActive:El,onLeaveStart:El,onLeaveActive:Sl},({className:h,style:g},m)=>{const v={...l,...g};return A.createElement(Nf,{prefixCls:n,className:ce(s,h),style:v,ref:m})})},kf=(e,n)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:n}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:n}}}}}),sb=e=>{const{componentCls:n,fontSize:r,lineWidth:o,groupBorderColor:s,colorErrorHover:l}=e;return{[`${n}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${n}`]:{"&:not(:last-child)":{[`&, & > ${n}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(o).mul(-1).equal(),[`&, & > ${n}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[n]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${n}-icon-only`]:{fontSize:r}},kf(`${n}-primary`,s),kf(`${n}-danger`,l)]}},Pl=e=>Math.round(Number(e||0)),ab=e=>{if(e instanceof At)return e;if(e&&typeof e=="object"&&"h"in e&&"b"in e){const{b:n,...r}=e;return{...r,v:n}}return typeof e=="string"&&/hsb/.test(e)?e.replace(/hsb/,"hsv"):e};class rr extends At{constructor(n){super(ab(n))}toHsbString(){const n=this.toHsb(),r=Pl(n.s*100),o=Pl(n.b*100),s=Pl(n.h),l=n.a,c=`hsb(${s}, ${r}%, ${o}%)`,d=`hsba(${s}, ${r}%, ${o}%, ${l.toFixed(l===0?0:2)})`;return l===1?c:d}toHsb(){const{v:n,...r}=this.toHsv();return{...r,b:n,a:this.a}}}const lb="rc-color-picker",io=e=>e instanceof rr?e:new rr(e),cb=io("#1677ff"),Rf=e=>{const{offset:n,targetRef:r,containerRef:o,color:s,type:l}=e,{width:c,height:d}=o.current.getBoundingClientRect(),{width:h,height:g}=r.current.getBoundingClientRect(),m=h/2,v=g/2,y=(n.x+m)/c,C=1-(n.y+v)/d,_=s.toHsb(),x=y,b=(n.x+m)/c*360;if(l)switch(l){case"hue":return io({..._,h:b<=0?0:b});case"alpha":return io({..._,a:x<=0?0:x})}return io({h:_.h,s:y<=0?0:y,b:C>=1?1:C,a:_.a})},$f=(e,n)=>{const r=e.toHsb();switch(n){case"hue":return{x:r.h/360*100,y:50};case"alpha":return{x:e.a*100,y:50};default:return{x:r.s*100,y:(1-r.b)*100}}},ub=({color:e,prefixCls:n,className:r,style:o,onClick:s})=>{const l=`${n}-color-block`;return A.createElement("div",{className:ce(l,r),style:o,onClick:s},A.createElement("div",{className:`${l}-inner`,style:{background:e}}))};function db(e){const n="touches"in e?e.touches[0]:e,r=document.documentElement.scrollLeft||document.body.scrollLeft||window.pageXOffset,o=document.documentElement.scrollTop||document.body.scrollTop||window.pageYOffset;return{pageX:n.pageX-r,pageY:n.pageY-o}}function Bf(e){const{targetRef:n,containerRef:r,direction:o,onDragChange:s,onDragChangeComplete:l,calculate:c,color:d,disabledDrag:h}=e,[g,m]=A.useState({x:0,y:0}),v=A.useRef(null),y=A.useRef(null);A.useEffect(()=>{m(c())},[d]),A.useEffect(()=>()=>{document.removeEventListener("mousemove",v.current),document.removeEventListener("mouseup",y.current),document.removeEventListener("touchmove",v.current),document.removeEventListener("touchend",y.current),v.current=null,y.current=null},[]);const C=E=>{const{pageX:S,pageY:P}=db(E),{x:I,y:M,width:k,height:N}=r.current.getBoundingClientRect(),{width:R,height:B}=n.current.getBoundingClientRect(),z=R/2,$=B/2,j=Math.max(0,Math.min(S-I,k))-z,V=Math.max(0,Math.min(P-M,N))-$,W={x:j,y:o==="x"?g.y:V};if(R===0&&B===0||R!==B)return!1;s==null||s(W)},_=E=>{E.preventDefault(),C(E)},x=E=>{E.preventDefault(),document.removeEventListener("mousemove",v.current),document.removeEventListener("mouseup",y.current),document.removeEventListener("touchmove",v.current),document.removeEventListener("touchend",y.current),v.current=null,y.current=null,l==null||l()};return[g,E=>{document.removeEventListener("mousemove",v.current),document.removeEventListener("mouseup",y.current),!h&&(C(E),document.addEventListener("mousemove",_),document.addEventListener("mouseup",x),document.addEventListener("touchmove",_),document.addEventListener("touchend",x),v.current=_,y.current=x)}]}const zf=({size:e="default",color:n,prefixCls:r})=>A.createElement("div",{className:ce(`${r}-handler`,{[`${r}-handler-sm`]:e==="small"}),style:{backgroundColor:n}}),Df=({children:e,style:n,prefixCls:r})=>A.createElement("div",{className:`${r}-palette`,style:{position:"relative",...n}},e),Ff=A.forwardRef((e,n)=>{const{children:r,x:o,y:s}=e;return A.createElement("div",{ref:n,style:{position:"absolute",left:`${o}%`,top:`${s}%`,zIndex:1,transform:"translate(-50%, -50%)"}},r)}),fb=({color:e,onChange:n,prefixCls:r,onChangeComplete:o,disabled:s})=>{const l=A.useRef(),c=A.useRef(),d=A.useRef(e),h=ft(v=>{const y=Rf({offset:v,targetRef:c,containerRef:l,color:e});d.current=y,n(y)}),[g,m]=Bf({color:e,containerRef:l,targetRef:c,calculate:()=>$f(e),onDragChange:h,onDragChangeComplete:()=>o==null?void 0:o(d.current),disabledDrag:s});return A.createElement("div",{ref:l,className:`${r}-select`,onMouseDown:m,onTouchStart:m},A.createElement(Df,{prefixCls:r},A.createElement(Ff,{x:g.x,y:g.y,ref:c},A.createElement(zf,{color:e.toRgbString(),prefixCls:r})),A.createElement("div",{className:`${r}-saturation`,style:{backgroundColor:`hsl(${e.toHsb().h},100%, 50%)`,backgroundImage:"linear-gradient(0deg, #000, transparent),linear-gradient(90deg, #fff, hsla(0, 0%, 100%, 0))"}})))},hb=(e,n)=>{const[r,o]=qn(e,n);return[A.useMemo(()=>io(r),[r]),o]},pb=({colors:e,children:n,direction:r="to right",type:o,prefixCls:s})=>{const l=A.useMemo(()=>e.map((c,d)=>{let h=io(c);return o==="alpha"&&d===e.length-1&&(h=new rr(h.setA(1))),h.toRgbString()}).join(","),[e,o]);return A.createElement("div",{className:`${s}-gradient`,style:{position:"absolute",inset:0,background:`linear-gradient(${r}, ${l})`}},n)},mb=e=>{const{prefixCls:n,colors:r,disabled:o,onChange:s,onChangeComplete:l,color:c,type:d}=e,h=A.useRef(null),g=A.useRef(null),m=A.useRef(c),v=E=>d==="hue"?E.getHue():E.a*100,y=ft(E=>{const S=Rf({offset:E,targetRef:g,containerRef:h,color:c,type:d});m.current=S,s(v(S))}),[C,_]=Bf({color:c,targetRef:g,containerRef:h,calculate:()=>$f(c,d),onDragChange:y,onDragChangeComplete(){l(v(m.current))},direction:"x",disabledDrag:o}),x=A.useMemo(()=>{if(d==="hue"){const E=c.toHsb();return E.s=1,E.b=1,E.a=1,new rr(E)}return c},[c,d]),b=A.useMemo(()=>r.map(E=>`${E.color} ${E.percent}%`),[r]);return A.createElement("div",{ref:h,className:ce(`${n}-slider`,`${n}-slider-${d}`),onMouseDown:_,onTouchStart:_},A.createElement(Df,{prefixCls:n},A.createElement(Ff,{x:C.x,y:C.y,ref:g},A.createElement(zf,{size:"small",color:x.toHexString(),prefixCls:n})),A.createElement(pb,{colors:b,type:d,prefixCls:n})))};function gb(e){return f.useMemo(()=>{const{slider:n}=e||{};return[n||mb]},[e])}function ei(){return ei=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},ei.apply(this,arguments)}const vb=[{color:"rgb(255, 0, 0)",percent:0},{color:"rgb(255, 255, 0)",percent:17},{color:"rgb(0, 255, 0)",percent:33},{color:"rgb(0, 255, 255)",percent:50},{color:"rgb(0, 0, 255)",percent:67},{color:"rgb(255, 0, 255)",percent:83},{color:"rgb(255, 0, 0)",percent:100}],yb=A.forwardRef((e,n)=>{const{value:r,defaultValue:o,prefixCls:s=lb,onChange:l,onChangeComplete:c,className:d,style:h,panelRender:g,disabledAlpha:m=!1,disabled:v=!1,components:y}=e,[C]=gb(y),[_,x]=hb(o||cb,r),b=A.useMemo(()=>_.setA(1).toRgbString(),[_]),E=($,j)=>{r||x($),l==null||l($,j)},S=$=>new rr(_.setHue($)),P=$=>new rr(_.setA($/100)),I=$=>{E(S($),{type:"hue",value:$})},M=$=>{E(P($),{type:"alpha",value:$})},k=$=>{c&&c(S($))},N=$=>{c&&c(P($))},R=ce(`${s}-panel`,d,{[`${s}-panel-disabled`]:v}),B={prefixCls:s,disabled:v,color:_},z=A.createElement(A.Fragment,null,A.createElement(fb,ei({onChange:E},B,{onChangeComplete:c})),A.createElement("div",{className:`${s}-slider-container`},A.createElement("div",{className:ce(`${s}-slider-group`,{[`${s}-slider-group-disabled-alpha`]:m})},A.createElement(C,ei({},B,{type:"hue",colors:vb,min:0,max:359,value:_.getHue(),onChange:I,onChangeComplete:k})),!m&&A.createElement(C,ei({},B,{type:"alpha",colors:[{percent:0,color:"rgba(255, 0, 4, 0)"},{percent:100,color:b}],min:0,max:100,value:_.a*100,onChange:M,onChangeComplete:N}))),A.createElement(ub,{color:_.toRgbString(),prefixCls:s})));return A.createElement("div",{className:R,style:h,ref:n},typeof g=="function"?g(z):z)});process.env.NODE_ENV!=="production"&&(yb.displayName="ColorPicker");const bb=(e,n)=>(e==null?void 0:e.replace(/[^0-9a-f]/gi,"").slice(0,n?8:6))||"",_b=(e,n)=>e?bb(e,n):"";let Il=function(){function e(n){var o;if(Ar(this,e),this.cleared=!1,n instanceof e){this.metaColor=n.metaColor.clone(),this.colors=(o=n.colors)==null?void 0:o.map(s=>({color:new e(s.color),percent:s.percent})),this.cleared=n.cleared;return}const r=Array.isArray(n);r&&n.length?(this.colors=n.map(({color:s,percent:l})=>({color:new e(s),percent:l})),this.metaColor=new rr(this.colors[0].color.metaColor)):this.metaColor=new rr(r?"":n),(!n||r&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return Mr(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return _b(this.toHexString(),this.metaColor.a<1)}},{key:"toHexString",value:function(){return this.metaColor.toHexString()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}},{key:"isGradient",value:function(){return!!this.colors&&!this.cleared}},{key:"getColors",value:function(){return this.colors||[{color:this,percent:0}]}},{key:"toCssString",value:function(){const{colors:r}=this;return r?`linear-gradient(90deg, ${r.map(s=>`${s.color.toRgbString()} ${s.percent}%`).join(", ")})`:this.metaColor.toRgbString()}},{key:"equals",value:function(r){return!r||this.isGradient()!==r.isGradient()?!1:this.isGradient()?this.colors.length===r.colors.length&&this.colors.every((o,s)=>{const l=r.colors[s];return o.percent===l.percent&&o.color.equals(l.color)}):this.toHexString()===r.toHexString()}}])}();var xb={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"};const wb=xb;function Tl(){return Tl=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},Tl.apply(this,arguments)}const Cb=(e,n)=>f.createElement(Ko,Tl({},e,{ref:n,icon:wb})),Hf=f.forwardRef(Cb);process.env.NODE_ENV!=="production"&&(Hf.displayName="RightOutlined");const Al=Hf;function Wn(){return Wn=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var o in r)({}).hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},Wn.apply(null,arguments)}const Sb=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
|
|
157
|
-
opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
|
|
158
|
-
opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),Eb=e=>({animationDuration:e,animationFillMode:"both"}),Pb=e=>({animationDuration:e,animationFillMode:"both"}),os=(e,n,r,o,s=!1)=>{const l=s?"&":"";return{[`
|
|
159
|
-
${l}${e}-enter,
|
|
160
|
-
${l}${e}-appear
|
|
161
|
-
`]:{...Eb(o),animationPlayState:"paused"},[`${l}${e}-leave`]:{...Pb(o),animationPlayState:"paused"},[`
|
|
162
|
-
${l}${e}-enter${e}-enter-active,
|
|
163
|
-
${l}${e}-appear${e}-appear-active
|
|
164
|
-
`]:{animationName:n,animationPlayState:"running"},[`${l}${e}-leave${e}-leave-active`]:{animationName:r,animationPlayState:"running",pointerEvents:"none"}}},Ib=new ut("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),Tb=new ut("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),Ab=(e,n=!1)=>{const{antCls:r}=e,o=`${r}-fade`,s=n?"&":"";return[os(o,Ib,Tb,e.motionDurationMid,n),{[`
|
|
165
|
-
${s}${o}-enter,
|
|
166
|
-
${s}${o}-appear
|
|
167
|
-
`]:{opacity:0,animationTimingFunction:"linear"},[`${s}${o}-leave`]:{animationTimingFunction:"linear"}}]},Mb=new ut("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Lb=new ut("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),Ob=new ut("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Nb=new ut("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),kb=new ut("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Rb=new ut("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),$b=new ut("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Bb=new ut("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),zb={"move-up":{inKeyframes:$b,outKeyframes:Bb},"move-down":{inKeyframes:Mb,outKeyframes:Lb},"move-left":{inKeyframes:Ob,outKeyframes:Nb},"move-right":{inKeyframes:kb,outKeyframes:Rb}},Vf=(e,n)=>{const{antCls:r}=e,o=`${r}-${n}`,{inKeyframes:s,outKeyframes:l}=zb[n];return[os(o,s,l,e.motionDurationMid),{[`
|
|
168
|
-
${o}-enter,
|
|
169
|
-
${o}-appear
|
|
170
|
-
`]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${o}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Wf=new ut("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),jf=new ut("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),Zf=new ut("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),Uf=new ut("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),Db=new ut("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),Fb=new ut("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),Hb=new ut("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),Vb=new ut("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),Wb={"slide-up":{inKeyframes:Wf,outKeyframes:jf},"slide-down":{inKeyframes:Zf,outKeyframes:Uf},"slide-left":{inKeyframes:Db,outKeyframes:Fb},"slide-right":{inKeyframes:Hb,outKeyframes:Vb}},is=(e,n)=>{const{antCls:r}=e,o=`${r}-${n}`,{inKeyframes:s,outKeyframes:l}=Wb[n];return[os(o,s,l,e.motionDurationMid),{[`
|
|
171
|
-
${o}-enter,
|
|
172
|
-
${o}-appear
|
|
173
|
-
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${o}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},jb=new ut("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Zb=new ut("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),qf=new ut("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Gf=new ut("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),Ub=new ut("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),qb=new ut("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),Gb=new ut("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),Kb=new ut("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),Qb=new ut("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),Yb=new ut("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),Xb=new ut("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),Jb=new ut("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),e_={zoom:{inKeyframes:jb,outKeyframes:Zb},"zoom-big":{inKeyframes:qf,outKeyframes:Gf},"zoom-big-fast":{inKeyframes:qf,outKeyframes:Gf},"zoom-left":{inKeyframes:Gb,outKeyframes:Kb},"zoom-right":{inKeyframes:Qb,outKeyframes:Yb},"zoom-up":{inKeyframes:Ub,outKeyframes:qb},"zoom-down":{inKeyframes:Xb,outKeyframes:Jb}},Ml=(e,n)=>{const{antCls:r}=e,o=`${r}-${n}`,{inKeyframes:s,outKeyframes:l}=e_[n];return[os(o,s,l,n==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[`
|
|
174
|
-
${o}-enter,
|
|
175
|
-
${o}-appear
|
|
176
|
-
`]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${o}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},t_=e=>e instanceof Il?e:new Il(e),n_=(e,n)=>{const{r,g:o,b:s,a:l}=e.toRgb(),c=new rr(e.toRgbString()).onBackground(n).toHsv();return l<=.5?c.v>.5:r*.299+o*.587+s*.114>192},Kf=e=>{const{paddingInline:n,onlyIconSize:r,borderColorDisabled:o}=e;return _n(e,{buttonPaddingHorizontal:n,buttonPaddingVertical:0,buttonIconOnlyFontSize:r,colorBorderDisabled:o})},Qf=e=>{const n=e.contentFontSize??e.fontSize,r=e.contentFontSizeSM??e.fontSize,o=e.contentFontSizeLG??e.fontSizeLG,s=e.contentLineHeight??Bi(n),l=e.contentLineHeightSM??Bi(r),c=e.contentLineHeightLG??Bi(o),d=n_(new Il(e.colorBgSolid),"#fff")?"#000":"#fff",h=Or.reduce((v,y)=>({...v,[`${y}ShadowColor`]:`0 ${Le(e.controlOutlineWidth)} 0 ${qo(e[`${y}1`],e.colorBgContainer)}`}),{}),g=e.colorBgContainerDisabled,m=e.colorBgContainerDisabled;return{...h,fontWeight:400,iconGap:e.marginXS,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorderDisabled,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:"inherit",onlyIconSizeSM:"inherit",onlyIconSizeLG:"inherit",groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,textHoverBg:e.colorFillTertiary,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,solidTextColor:d,contentFontSize:n,contentFontSizeSM:r,contentFontSizeLG:o,contentLineHeight:s,contentLineHeightSM:l,contentLineHeightLG:c,paddingBlock:Math.max((e.controlHeight-n*s)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-r*l)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-o*c)/2-e.lineWidth,0),defaultBgDisabled:g,dashedBgDisabled:m}},r_=e=>{const{componentCls:n,antCls:r}=e,[o,s]=gr(r,"btn");return{[n]:[{[o("border-width")]:"1px",[o("border-color")]:"#000",[o("border-color-hover")]:s("border-color"),[o("border-color-active")]:s("border-color"),[o("border-color-disabled")]:s("border-color"),[o("border-style")]:"solid",[o("text-color")]:"#000",[o("text-color-hover")]:s("text-color"),[o("text-color-active")]:s("text-color"),[o("text-color-disabled")]:s("text-color"),[o("bg-color")]:"#ddd",[o("bg-color-hover")]:s("bg-color"),[o("bg-color-active")]:s("bg-color"),[o("bg-color-disabled")]:e.colorBgContainerDisabled,[o("bg-color-container")]:e.colorBgContainer,[o("shadow")]:"none"},{border:[s("border-width"),s("border-style"),s("border-color")].join(" "),color:s("text-color"),backgroundColor:s("bg-color"),[`&:not(:disabled):not(${n}-disabled)`]:{"&:hover":{border:[s("border-width"),s("border-style"),s("border-color-hover")].join(" "),color:s("text-color-hover"),backgroundColor:s("bg-color-hover")},"&:active":{border:[s("border-width"),s("border-style"),s("border-color-active")].join(" "),color:s("text-color-active"),backgroundColor:s("bg-color-active")}}},{[`&${n}-variant-solid`]:{[o("solid-bg-color")]:s("color-base"),[o("solid-bg-color-hover")]:s("color-hover"),[o("solid-bg-color-active")]:s("color-active"),[o("border-color")]:"transparent",[o("text-color")]:e.colorTextLightSolid,[o("bg-color")]:s("solid-bg-color"),[o("bg-color-hover")]:s("solid-bg-color-hover"),[o("bg-color-active")]:s("solid-bg-color-active"),boxShadow:s("shadow")},[`&${n}-variant-outlined, &${n}-variant-dashed`]:{[o("border-color")]:s("color-base"),[o("border-color-hover")]:s("color-hover"),[o("border-color-active")]:s("color-active"),[o("bg-color")]:s("bg-color-container"),[o("text-color")]:s("color-base"),[o("text-color-hover")]:s("color-hover"),[o("text-color-active")]:s("color-active"),boxShadow:s("shadow")},[`&${n}-variant-dashed`]:{[o("border-style")]:"dashed",[o("bg-color-disabled")]:e.dashedBgDisabled},[`&${n}-variant-filled`]:{[o("border-color")]:"transparent",[o("text-color")]:s("color-base"),[o("bg-color")]:s("color-light"),[o("bg-color-hover")]:s("color-light-hover"),[o("bg-color-active")]:s("color-light-active")},[`&${n}-variant-text, &${n}-variant-link`]:{[o("border-color")]:"transparent",[o("text-color")]:s("color-base"),[o("text-color-hover")]:s("color-hover"),[o("text-color-active")]:s("color-active"),[o("bg-color")]:"transparent",[o("bg-color-hover")]:"transparent",[o("bg-color-active")]:"transparent",[`&:disabled, &${e.componentCls}-disabled`]:{background:"transparent",borderColor:"transparent"}},[`&${n}-variant-text`]:{[o("bg-color-hover")]:s("color-light"),[o("bg-color-active")]:s("color-light-active")}},{[`&${n}-variant-link`]:{[o("color-base")]:e.colorLink,[o("color-hover")]:e.colorLinkHover,[o("color-active")]:e.colorLinkActive},[`&${n}-color-primary`]:{[o("color-base")]:e.colorPrimary,[o("color-hover")]:e.colorPrimaryHover,[o("color-active")]:e.colorPrimaryActive,[o("color-light")]:e.colorPrimaryBg,[o("color-light-hover")]:e.colorPrimaryBgHover,[o("color-light-active")]:e.colorPrimaryBorder,[o("shadow")]:e.primaryShadow,[`&${n}-variant-solid`]:{[o("text-color")]:e.primaryColor,[o("text-color-hover")]:s("text-color"),[o("text-color-active")]:s("text-color")}},[`&${n}-color-dangerous`]:{[o("color-base")]:e.colorError,[o("color-hover")]:e.colorErrorHover,[o("color-active")]:e.colorErrorActive,[o("color-light")]:e.colorErrorBg,[o("color-light-hover")]:e.colorErrorBgFilledHover,[o("color-light-active")]:e.colorErrorBgActive,[o("shadow")]:e.dangerShadow,[`&${n}-variant-solid`]:{[o("text-color")]:e.dangerColor,[o("text-color-hover")]:s("text-color"),[o("text-color-active")]:s("text-color")}},[`&${n}-color-default`]:{[o("solid-bg-color")]:e.colorBgSolid,[o("solid-bg-color-hover")]:e.colorBgSolidHover,[o("solid-bg-color-active")]:e.colorBgSolidActive,[o("color-base")]:e.defaultBorderColor,[o("color-hover")]:e.defaultHoverBorderColor,[o("color-active")]:e.defaultActiveBorderColor,[o("color-light")]:e.colorFillTertiary,[o("color-light-hover")]:e.colorFillSecondary,[o("color-light-active")]:e.colorFill,[o("text-color")]:e.defaultColor,[o("text-color-hover")]:e.defaultHoverColor,[o("text-color-active")]:e.defaultActiveColor,[o("shadow")]:e.defaultShadow,[`&${n}-variant-solid`]:{[o("text-color")]:e.solidTextColor,[o("text-color-hover")]:s("text-color"),[o("text-color-active")]:s("text-color")},[`&${n}-variant-filled, &${n}-variant-text`]:{[o("text-color-hover")]:s("text-color"),[o("text-color-active")]:s("text-color")},[`&${n}-variant-outlined, &${n}-variant-dashed`]:{[o("text-color")]:e.defaultColor,[o("text-color-hover")]:e.defaultHoverColor,[o("text-color-active")]:e.defaultActiveColor,[o("bg-color-container")]:e.defaultBg,[o("bg-color-hover")]:e.defaultHoverBg,[o("bg-color-active")]:e.defaultActiveBg},[`&${n}-variant-text`]:{[o("text-color")]:e.textTextColor,[o("text-color-hover")]:e.textTextHoverColor,[o("text-color-active")]:e.textTextActiveColor,[o("bg-color-hover")]:e.textHoverBg},[`&${n}-background-ghost`]:{[`&${n}-variant-outlined, &${n}-variant-dashed`]:{[o("text-color")]:e.defaultGhostColor,[o("border-color")]:e.defaultGhostBorderColor}}}},Or.map(l=>{const c=e[`${l}6`],d=e[`${l}1`],h=e[`${l}5`],g=e[`${l}2`],m=e[`${l}3`],v=e[`${l}7`],y=e[`${l}ShadowColor`];return{[`&${n}-color-${l}`]:{[o("color-base")]:c,[o("color-hover")]:h,[o("color-active")]:v,[o("color-light")]:d,[o("color-light-hover")]:g,[o("color-light-active")]:m,[o("shadow")]:y}}}),{[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",borderColor:e.colorBorderDisabled,background:s("bg-color-disabled"),color:e.colorTextDisabled,boxShadow:"none"}},{[`&${n}-background-ghost`]:{[o("bg-color")]:"transparent",[o("shadow")]:"none"}}]}},o_=e=>{const{componentCls:n,iconCls:r,fontWeight:o,opacityLoading:s,motionDurationSlow:l,motionEaseInOut:c,iconGap:d,calc:h}=e;return{[n]:{outline:"none",position:"relative",display:"inline-flex",gap:d,alignItems:"center",justifyContent:"center",fontWeight:o,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation","&:disabled > *":{pointerEvents:"none"},[`${n}-icon > svg`]:qa(),"> a":{color:"currentColor"},"&:not(:disabled)":Ka(e),[`&${n}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${n}-two-chinese-chars > *:not(${r})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&${n}-icon-only`]:{paddingInline:0,[`&${n}-compact-item`]:{flex:"none"}},[`&${n}-loading`]:{opacity:s,cursor:"default"},[`${n}-loading-icon`]:{transition:["width","opacity","margin"].map(g=>`${g} ${l} ${c}`).join(",")},[`&:not(${n}-icon-end)`]:{[`${n}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:h(d).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:h(d).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${n}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:h(d).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:h(d).mul(-1).equal()}}}}}},i_=e=>({minWidth:e.controlHeight,paddingInline:0,borderRadius:"50%"}),Ll=(e,n="")=>{const{componentCls:r,controlHeight:o,fontSize:s,borderRadius:l,buttonPaddingHorizontal:c,iconCls:d,buttonPaddingVertical:h,buttonIconOnlyFontSize:g}=e;return[{[n]:{fontSize:s,height:o,padding:`${Le(h)} ${Le(c)}`,borderRadius:l,[`&${r}-icon-only`]:{width:o,[d]:{fontSize:g}}}},{[`${r}${r}-circle${n}`]:i_(e)},{[`${r}${r}-round${n}`]:{borderRadius:e.controlHeight,[`&:not(${r}-icon-only)`]:{paddingInline:e.buttonPaddingHorizontal}}}]},s_=e=>{const n=_n(e,{fontSize:e.contentFontSize});return Ll(n,e.componentCls)},a_=e=>{const n=_n(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return Ll(n,`${e.componentCls}-sm`)},l_=e=>{const n=_n(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return Ll(n,`${e.componentCls}-lg`)},c_=e=>{const{componentCls:n}=e;return{[n]:{[`&${n}-block`]:{width:"100%"}}}},u_=Vn("Button",e=>{const n=Kf(e);return[o_(n),s_(n),a_(n),l_(n),c_(n),r_(n),sb(n)]},Qf,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function d_(e,n,r,o){const{focusElCls:s,focus:l,borderElCls:c}=r,d=c?"> *":"",h=["hover",l?"focus":null,"active"].filter(Boolean).map(g=>`&:${g} ${d}`).join(",");return{[`&-item:not(${n}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${o}-status-success)`]:{zIndex:2},"&-item":{[h]:{zIndex:3},...s?{[`&${s}`]:{zIndex:3}}:{},[`&[disabled] ${d}`]:{zIndex:0}}}}function f_(e,n,r){const{borderElCls:o}=r,s=o?`> ${o}`:"";return{[`&-item:not(${n}-first-item):not(${n}-last-item) ${s}`]:{borderRadius:0},[`&-item:not(${n}-last-item)${n}-first-item`]:{[`& ${s}, &${e}-sm ${s}, &${e}-lg ${s}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${n}-first-item)${n}-last-item`]:{[`& ${s}, &${e}-sm ${s}, &${e}-lg ${s}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function Yf(e,n={focus:!0}){const{componentCls:r}=e,{componentCls:o}=n,s=o||r,l=`${s}-compact`;return{[l]:{...d_(e,l,n,s),...f_(s,l,n)}}}function h_(e,n,r){return{[`&-item:not(${n}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${r}-status-success)`]:{zIndex:2},"&-item":{"&:hover,&:focus,&:active":{zIndex:3},"&[disabled]":{zIndex:0}}}}function p_(e,n){return{[`&-item:not(${n}-first-item):not(${n}-last-item)`]:{borderRadius:0},[`&-item${n}-first-item:not(${n}-last-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${n}-last-item:not(${n}-first-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function m_(e){const n=`${e.componentCls}-compact-vertical`;return{[n]:{...h_(e,n,e.componentCls),...p_(e.componentCls,n)}}}const g_=e=>{const{antCls:n,componentCls:r,lineWidth:o,calc:s,colorBgContainer:l}=e,c=`${r}-variant-solid:not([disabled])`,d=s(o).mul(-1).equal(),[h,g]=gr(n,"btn"),m=v=>({[`${r}-compact${v?"-vertical":""}-item`]:{[h("compact-connect-border-color")]:g("bg-color-hover"),[`&${c}`]:{transition:"none",[`& + ${c}:before`]:[{position:"absolute",backgroundColor:g("compact-connect-border-color"),content:'""'},v?{top:d,insetInline:d,height:o}:{insetBlock:d,insetInlineStart:d,width:o}],"&:hover:before":{display:"none"}}}});return[m(),m(!0),{[`${c}${r}-color-default`]:{[h("compact-connect-border-color")]:`color-mix(in srgb, ${g("bg-color-hover")} 75%, ${l})`}}]},v_=vv(["Button","compact"],e=>{const n=Kf(e);return[Yf(n),m_(n),g_(n)]},Qf);function y_(e){if(typeof e=="object"&&e){let n=e==null?void 0:e.delay;return n=!Number.isNaN(n)&&typeof n=="number"?n:0,{loading:n<=0,delay:n}}return{loading:!!e,delay:0}}const b_={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["link","link"],text:["default","text"]},ss=A.forwardRef((e,n)=>{const{_skipSemantic:r,loading:o=!1,prefixCls:s,color:l,variant:c,type:d,danger:h=!1,shape:g,size:m,disabled:v,className:y,rootClassName:C,children:_,icon:x,iconPosition:b,iconPlacement:E,ghost:S=!1,block:P=!1,htmlType:I="button",classNames:M,styles:k,style:N,autoInsertSpace:R,autoFocus:B,...z}=e,$=Gn(_),j=d||"default",{button:V}=A.useContext(Ot),W=g||(V==null?void 0:V.shape)||"default",[F,X]=A.useMemo(()=>{if(l&&c)return[l,c];if(d||h){const Je=b_[j]||[];return h?["danger",Je[1]]:Je}return V!=null&&V.color&&(V!=null&&V.variant)?[V.color,V.variant]:["default","outlined"]},[l,c,d,h,V==null?void 0:V.color,V==null?void 0:V.variant,j]),[J,Z]=A.useMemo(()=>S&&X==="solid"?[F,"outlined"]:[F,X],[F,X,S]),le=J==="danger",G=le?"dangerous":J,{getPrefixCls:ie,direction:ne,autoInsertSpace:de,className:oe,style:ee,classNames:K,styles:Y}=Ur("button"),se=R??de??!0,fe=ie("btn",s),[xe,Se]=u_(fe),Te=A.useContext(hl),Ce=v??Te,te=A.useContext(Af),we=A.useMemo(()=>y_(o),[o]),[Pe,Ae]=A.useState(we.loading),[Ze,Be]=A.useState(!1),nt=A.useRef(null),Ge=Wr(n,nt),Ke=$.length===1&&!x&&!rs(Z),ze=A.useRef(!0);A.useEffect(()=>(ze.current=!1,()=>{ze.current=!0}),[]),sn(()=>{let Je=null;we.delay>0?Je=setTimeout(()=>{Je=null,Ae(!0)},we.delay):Ae(we.loading);function rn(){Je&&(clearTimeout(Je),Je=null)}return rn},[we.delay,we.loading]),A.useEffect(()=>{if(!nt.current||!se)return;const Je=nt.current.textContent||"";Ke&&Cl(Je)?Ze||Be(!0):Ze&&Be(!1)}),A.useEffect(()=>{B&&nt.current&&nt.current.focus()},[]);const De=A.useCallback(Je=>{var rn;if(Pe||Ce){Je.preventDefault();return}(rn=e.onClick)==null||rn.call(e,("href"in e,Je))},[e.onClick,Pe,Ce]);if(process.env.NODE_ENV!=="production"){const Je=hn("Button");process.env.NODE_ENV!=="production"&&Je(!(typeof x=="string"&&x.length>2),"breaking",`\`icon\` is using ReactNode instead of string naming in v4. Please check \`${x}\` at https://ant.design/components/icon`),process.env.NODE_ENV!=="production"&&Je(!(S&&rs(Z)),"usage","`link` or `text` button can't be a `ghost` button."),Je.deprecated(!b,"iconPosition","iconPlacement")}const{compactSize:ot,compactItemClassnames:St}=wl(fe,ne),pt={large:"lg",small:"sm",middle:void 0},dt=Tf(Je=>m??ot??te??Je),mt=dt?pt[dt]??"":"",Oe=Pe?"loading":x,he=E??b??"start",_e=Sn(z,["navigate"]),rt={...e,type:j,color:J,variant:Z,danger:le,shape:W,size:dt,disabled:Ce,loading:Pe,iconPlacement:he},[$e,ge]=kr([r?void 0:K,M],[r?void 0:Y,k],{props:rt}),Qe=ce(fe,xe,Se,{[`${fe}-${W}`]:W!=="default"&&W!=="square"&&W,[`${fe}-${j}`]:j,[`${fe}-dangerous`]:h,[`${fe}-color-${G}`]:G,[`${fe}-variant-${Z}`]:Z,[`${fe}-${mt}`]:mt,[`${fe}-icon-only`]:!_&&_!==0&&!!Oe,[`${fe}-background-ghost`]:S&&!rs(Z),[`${fe}-loading`]:Pe,[`${fe}-two-chinese-chars`]:Ze&&se&&!Pe,[`${fe}-block`]:P,[`${fe}-rtl`]:ne==="rtl",[`${fe}-icon-end`]:he==="end"},St,y,C,oe,$e.root),Ve={...ge.root,...ee,...N},Ye={className:$e.icon,style:ge.icon},Nt=Je=>A.createElement(Of,{prefixCls:fe,...Ye},Je),Ht=A.createElement(ib,{existIcon:!!x,prefixCls:fe,loading:Pe,mount:ze.current,...Ye});let vt;x&&!Pe?vt=Nt(x):o&&typeof o=="object"&&o.icon?vt=Nt(o.icon):vt=Ht;const Et=to(_)?ob(_,Ke&&se,ge.content,$e.content):null;if(_e.href!==void 0)return A.createElement("a",{..._e,className:ce(Qe,{[`${fe}-disabled`]:Ce}),href:Ce?void 0:_e.href,style:Ve,onClick:De,ref:Ge,tabIndex:Ce?-1:0,"aria-disabled":Ce},vt,Et);let kt=A.createElement("button",{...z,type:I,className:Qe,style:Ve,onClick:De,disabled:Ce,ref:Ge},vt,Et,St&&A.createElement(v_,{prefixCls:fe}));return rs(Z)||(kt=A.createElement(If,{component:"Button",disabled:Pe},kt)),kt});ss.Group=nb,ss.__ANT_BUTTON=!0,process.env.NODE_ENV!=="production"&&(ss.displayName="Button");const Xf=ss;function Jf(e,n=!1){if(ll(e)){const r=e.nodeName.toLowerCase(),o=["input","select","textarea","button"].includes(r)||e.isContentEditable||r==="a"&&!!e.getAttribute("href"),s=e.getAttribute("tabindex"),l=Number(s);let c=null;return s&&!Number.isNaN(l)?c=l:o&&c===null&&(c=0),o&&e.disabled&&(c=null),c!==null&&(c>=0||n&&c<0)}return!1}function __(e,n=!1){const r=[...e.querySelectorAll("*")].filter(o=>Jf(o,n));return Jf(e,n)&&r.unshift(e),r}const $r="RC_FORM_INTERNAL_HOOKS",ht=()=>{ct(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},so=f.createContext({getFieldValue:ht,getFieldsValue:ht,getFieldError:ht,getFieldWarning:ht,getFieldsError:ht,isFieldsTouched:ht,isFieldTouched:ht,isFieldValidating:ht,isFieldsValidating:ht,resetFields:ht,setFields:ht,setFieldValue:ht,setFieldsValue:ht,validateFields:ht,submit:ht,getInternalHooks:()=>(ht(),{dispatch:ht,initEntityValue:ht,registerField:ht,useSubscribe:ht,setInitialValues:ht,destroyForm:ht,setCallbacks:ht,registerWatch:ht,getFields:ht,setValidateMessages:ht,setPreserve:ht,getInitialValue:ht})}),as=f.createContext(null);function Ol(e){return e==null?[]:Array.isArray(e)?e:[e]}function x_(e){return e&&!!e._init}function Nl(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",tel:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var n=JSON.parse(JSON.stringify(this));return n.clone=this.clone,n}}}var kl=Nl();function w_(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function C_(e,n,r){if(Ea())return Reflect.construct.apply(null,arguments);var o=[null];o.push.apply(o,n);var s=new(e.bind.apply(e,o));return r&&Wo(s,r.prototype),s}function Rl(e){var n=typeof Map=="function"?new Map:void 0;return Rl=function(o){if(o===null||!w_(o))return o;if(typeof o!="function")throw new TypeError("Super expression must either be null or a function");if(n!==void 0){if(n.has(o))return n.get(o);n.set(o,s)}function s(){return C_(o,arguments,jo(this).constructor)}return s.prototype=Object.create(o.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),Wo(s,o)},Rl(e)}var S_=/%[sdj%]/g,eh=function(){};typeof process<"u"&&process.env&&process.env.NODE_ENV!=="production"&&typeof window<"u"&&typeof document<"u"&&(eh=function(n,r){typeof console<"u"&&console.warn&&typeof ASYNC_VALIDATOR_NO_WARNING>"u"&&r.every(function(o){return typeof o=="string"})&&console.warn(n,r)});function $l(e){if(!e||!e.length)return null;var n={};return e.forEach(function(r){var o=r.field;n[o]=n[o]||[],n[o].push(r)}),n}function wn(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];var s=0,l=r.length;if(typeof e=="function")return e.apply(null,r);if(typeof e=="string"){var c=e.replace(S_,function(d){if(d==="%%")return"%";if(s>=l)return d;switch(d){case"%s":return String(r[s++]);case"%d":return Number(r[s++]);case"%j":try{return JSON.stringify(r[s++])}catch{return"[Circular]"}break;default:return d}});return c}return e}function E_(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"||e==="tel"}function Ft(e,n){return!!(e==null||n==="array"&&Array.isArray(e)&&!e.length||E_(n)&&typeof e=="string"&&!e)}function P_(e,n,r){var o=[],s=0,l=e.length;function c(d){o.push.apply(o,bn(d||[])),s++,s===l&&r(o)}e.forEach(function(d){n(d,c)})}function th(e,n,r){var o=0,s=e.length;function l(c){if(c&&c.length){r(c);return}var d=o;o=o+1,d<s?n(e[d],l):r([])}l([])}function I_(e){var n=[];return Object.keys(e).forEach(function(r){n.push.apply(n,bn(e[r]||[]))}),n}var nh=function(e){Sa(r,e);var n=Pa(r);function r(o,s){var l;return Ar(this,r),l=n.call(this,"Async Validation Error"),Dt(Lr(l),"errors",void 0),Dt(Lr(l),"fields",void 0),l.errors=o,l.fields=s,l}return Mr(r)}(Rl(Error));function T_(e,n,r,o,s){if(n.first){var l=new Promise(function(y,C){var _=function(E){return o(E),E.length?C(new nh(E,$l(E))):y(s)},x=I_(e);th(x,r,_)});return l.catch(function(y){return y}),l}var c=n.firstFields===!0?Object.keys(e):n.firstFields||[],d=Object.keys(e),h=d.length,g=0,m=[],v=new Promise(function(y,C){var _=function(b){if(m.push.apply(m,b),g++,g===h)return o(m),m.length?C(new nh(m,$l(m))):y(s)};d.length||(o(m),y(s)),d.forEach(function(x){var b=e[x];c.indexOf(x)!==-1?th(b,r,_):P_(b,r,_)})});return v.catch(function(y){return y}),v}function A_(e){return!!(e&&e.message!==void 0)}function M_(e,n){for(var r=e,o=0;o<n.length;o++){if(r==null)return r;r=r[n[o]]}return r}function rh(e,n){return function(r){var o;return e.fullFields?o=M_(n,e.fullFields):o=n[r.field||e.fullField],A_(r)?(r.field=r.field||e.fullField,r.fieldValue=o,r):{message:typeof r=="function"?r():r,fieldValue:o,field:r.field||e.fullField}}}function oh(e,n){if(n){for(var r in n)if(n.hasOwnProperty(r)){var o=n[r];$t(o)==="object"&&$t(e[r])==="object"?e[r]=Tt(Tt({},e[r]),o):e[r]=o}}return e}var ao="enum",L_=function(n,r,o,s,l){n[ao]=Array.isArray(n[ao])?n[ao]:[],n[ao].indexOf(r)===-1&&s.push(wn(l.messages[ao],n.fullField,n[ao].join(", ")))},O_=function(n,r,o,s,l){if(n.pattern){if(n.pattern instanceof RegExp)n.pattern.lastIndex=0,n.pattern.test(r)||s.push(wn(l.messages.pattern.mismatch,n.fullField,r,n.pattern));else if(typeof n.pattern=="string"){var c=new RegExp(n.pattern);c.test(r)||s.push(wn(l.messages.pattern.mismatch,n.fullField,r,n.pattern))}}},N_=function(n,r,o,s,l){var c=typeof n.len=="number",d=typeof n.min=="number",h=typeof n.max=="number",g=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,m=r,v=null,y=typeof r=="number",C=typeof r=="string",_=Array.isArray(r);if(y?v="number":C?v="string":_&&(v="array"),!v)return!1;_&&(m=r.length),C&&(m=r.replace(g,"_").length),c?m!==n.len&&s.push(wn(l.messages[v].len,n.fullField,n.len)):d&&!h&&m<n.min?s.push(wn(l.messages[v].min,n.fullField,n.min)):h&&!d&&m>n.max?s.push(wn(l.messages[v].max,n.fullField,n.max)):d&&h&&(m<n.min||m>n.max)&&s.push(wn(l.messages[v].range,n.fullField,n.min,n.max))},ih=function(n,r,o,s,l,c){n.required&&(!o.hasOwnProperty(n.field)||Ft(r,c||n.type))&&s.push(wn(l.messages.required,n.fullField))},ls;const k_=function(){if(ls)return ls;var e="[a-fA-F\\d:]",n=function(k){return k&&k.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},r="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",o="[a-fA-F\\d]{1,4}",s=["(?:".concat(o,":){7}(?:").concat(o,"|:)"),"(?:".concat(o,":){6}(?:").concat(r,"|:").concat(o,"|:)"),"(?:".concat(o,":){5}(?::").concat(r,"|(?::").concat(o,"){1,2}|:)"),"(?:".concat(o,":){4}(?:(?::").concat(o,"){0,1}:").concat(r,"|(?::").concat(o,"){1,3}|:)"),"(?:".concat(o,":){3}(?:(?::").concat(o,"){0,2}:").concat(r,"|(?::").concat(o,"){1,4}|:)"),"(?:".concat(o,":){2}(?:(?::").concat(o,"){0,3}:").concat(r,"|(?::").concat(o,"){1,5}|:)"),"(?:".concat(o,":){1}(?:(?::").concat(o,"){0,4}:").concat(r,"|(?::").concat(o,"){1,6}|:)"),"(?::(?:(?::".concat(o,"){0,5}:").concat(r,"|(?::").concat(o,"){1,7}|:))")],l="(?:%[0-9a-zA-Z]{1,})?",c="(?:".concat(s.join("|"),")").concat(l),d=new RegExp("(?:^".concat(r,"$)|(?:^").concat(c,"$)")),h=new RegExp("^".concat(r,"$")),g=new RegExp("^".concat(c,"$")),m=function(k){return k&&k.exact?d:new RegExp("(?:".concat(n(k)).concat(r).concat(n(k),")|(?:").concat(n(k)).concat(c).concat(n(k),")"),"g")};m.v4=function(M){return M&&M.exact?h:new RegExp("".concat(n(M)).concat(r).concat(n(M)),"g")},m.v6=function(M){return M&&M.exact?g:new RegExp("".concat(n(M)).concat(c).concat(n(M)),"g")};var v="(?:(?:[a-z]+:)?//)",y="(?:\\S+(?::\\S*)?@)?",C=m.v4().source,_=m.v6().source,x="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",b="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",E="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",S="(?::\\d{2,5})?",P='(?:[/?#][^\\s"]*)?',I="(?:".concat(v,"|www\\.)").concat(y,"(?:localhost|").concat(C,"|").concat(_,"|").concat(x).concat(b).concat(E,")").concat(S).concat(P);return ls=new RegExp("(?:^".concat(I,"$)"),"i"),ls};var Bl={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,tel:/^(\+[0-9]{1,3}[-\s\u2011]?)?(\([0-9]{1,4}\)[-\s\u2011]?)?([0-9]+[-\s\u2011]?)*[0-9]+$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},ti={integer:function(n){return ti.number(n)&&parseInt(n,10)===n},float:function(n){return ti.number(n)&&!ti.integer(n)},array:function(n){return Array.isArray(n)},regexp:function(n){if(n instanceof RegExp)return!0;try{return!!new RegExp(n)}catch{return!1}},date:function(n){return typeof n.getTime=="function"&&typeof n.getMonth=="function"&&typeof n.getYear=="function"&&!isNaN(n.getTime())},number:function(n){return isNaN(n)?!1:typeof n=="number"},object:function(n){return $t(n)==="object"&&!ti.array(n)},method:function(n){return typeof n=="function"},email:function(n){return typeof n=="string"&&n.length<=320&&!!n.match(Bl.email)},tel:function(n){return typeof n=="string"&&n.length<=32&&!!n.match(Bl.tel)},url:function(n){return typeof n=="string"&&n.length<=2048&&!!n.match(k_())},hex:function(n){return typeof n=="string"&&!!n.match(Bl.hex)}},R_=function(n,r,o,s,l){if(n.required&&r===void 0){ih(n,r,o,s,l);return}var c=["integer","float","array","regexp","object","method","email","tel","number","date","url","hex"],d=n.type;c.indexOf(d)>-1?ti[d](r)||s.push(wn(l.messages.types[d],n.fullField,n.type)):d&&$t(r)!==n.type&&s.push(wn(l.messages.types[d],n.fullField,n.type))},$_=function(n,r,o,s,l){(/^\s+$/.test(r)||r==="")&&s.push(wn(l.messages.whitespace,n.fullField))};const tt={required:ih,whitespace:$_,type:R_,range:N_,enum:L_,pattern:O_};var B_=function(n,r,o,s,l){var c=[],d=n.required||!n.required&&s.hasOwnProperty(n.field);if(d){if(Ft(r)&&!n.required)return o();tt.required(n,r,s,c,l)}o(c)},z_=function(n,r,o,s,l){var c=[],d=n.required||!n.required&&s.hasOwnProperty(n.field);if(d){if(r==null&&!n.required)return o();tt.required(n,r,s,c,l,"array"),r!=null&&(tt.type(n,r,s,c,l),tt.range(n,r,s,c,l))}o(c)},D_=function(n,r,o,s,l){var c=[],d=n.required||!n.required&&s.hasOwnProperty(n.field);if(d){if(Ft(r)&&!n.required)return o();tt.required(n,r,s,c,l),r!==void 0&&tt.type(n,r,s,c,l)}o(c)},F_=function(n,r,o,s,l){var c=[],d=n.required||!n.required&&s.hasOwnProperty(n.field);if(d){if(Ft(r,"date")&&!n.required)return o();if(tt.required(n,r,s,c,l),!Ft(r,"date")){var h;r instanceof Date?h=r:h=new Date(r),tt.type(n,h,s,c,l),h&&tt.range(n,h.getTime(),s,c,l)}}o(c)},H_="enum",V_=function(n,r,o,s,l){var c=[],d=n.required||!n.required&&s.hasOwnProperty(n.field);if(d){if(Ft(r)&&!n.required)return o();tt.required(n,r,s,c,l),r!==void 0&&tt[H_](n,r,s,c,l)}o(c)},W_=function(n,r,o,s,l){var c=[],d=n.required||!n.required&&s.hasOwnProperty(n.field);if(d){if(Ft(r)&&!n.required)return o();tt.required(n,r,s,c,l),r!==void 0&&(tt.type(n,r,s,c,l),tt.range(n,r,s,c,l))}o(c)},j_=function(n,r,o,s,l){var c=[],d=n.required||!n.required&&s.hasOwnProperty(n.field);if(d){if(Ft(r)&&!n.required)return o();tt.required(n,r,s,c,l),r!==void 0&&(tt.type(n,r,s,c,l),tt.range(n,r,s,c,l))}o(c)},Z_=function(n,r,o,s,l){var c=[],d=n.required||!n.required&&s.hasOwnProperty(n.field);if(d){if(Ft(r)&&!n.required)return o();tt.required(n,r,s,c,l),r!==void 0&&tt.type(n,r,s,c,l)}o(c)},U_=function(n,r,o,s,l){var c=[],d=n.required||!n.required&&s.hasOwnProperty(n.field);if(d){if(r===""&&(r=void 0),Ft(r)&&!n.required)return o();tt.required(n,r,s,c,l),r!==void 0&&(tt.type(n,r,s,c,l),tt.range(n,r,s,c,l))}o(c)},q_=function(n,r,o,s,l){var c=[],d=n.required||!n.required&&s.hasOwnProperty(n.field);if(d){if(Ft(r)&&!n.required)return o();tt.required(n,r,s,c,l),r!==void 0&&tt.type(n,r,s,c,l)}o(c)},G_=function(n,r,o,s,l){var c=[],d=n.required||!n.required&&s.hasOwnProperty(n.field);if(d){if(Ft(r,"string")&&!n.required)return o();tt.required(n,r,s,c,l),Ft(r,"string")||tt.pattern(n,r,s,c,l)}o(c)},K_=function(n,r,o,s,l){var c=[],d=n.required||!n.required&&s.hasOwnProperty(n.field);if(d){if(Ft(r)&&!n.required)return o();tt.required(n,r,s,c,l),Ft(r)||tt.type(n,r,s,c,l)}o(c)},Q_=function(n,r,o,s,l){var c=[],d=Array.isArray(r)?"array":$t(r);tt.required(n,r,s,c,l,d),o(c)},Y_=function(n,r,o,s,l){var c=[],d=n.required||!n.required&&s.hasOwnProperty(n.field);if(d){if(Ft(r,"string")&&!n.required)return o();tt.required(n,r,s,c,l,"string"),Ft(r,"string")||(tt.type(n,r,s,c,l),tt.range(n,r,s,c,l),tt.pattern(n,r,s,c,l),n.whitespace===!0&&tt.whitespace(n,r,s,c,l))}o(c)},cs=function(n,r,o,s,l){var c=n.type,d=[],h=n.required||!n.required&&s.hasOwnProperty(n.field);if(h){if(Ft(r,c)&&!n.required)return o();tt.required(n,r,s,d,l,c),Ft(r,c)||tt.type(n,r,s,d,l)}o(d)};const ni={string:Y_,method:Z_,number:U_,boolean:D_,regexp:K_,integer:j_,float:W_,array:z_,object:q_,enum:V_,pattern:G_,date:F_,url:cs,hex:cs,email:cs,tel:cs,required:Q_,any:B_};var ri=function(){function e(n){Ar(this,e),Dt(this,"rules",null),Dt(this,"_messages",kl),this.define(n)}return Mr(e,[{key:"define",value:function(r){var o=this;if(!r)throw new Error("Cannot configure a schema with no rules");if($t(r)!=="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(s){var l=r[s];o.rules[s]=Array.isArray(l)?l:[l]})}},{key:"messages",value:function(r){return r&&(this._messages=oh(Nl(),r)),this._messages}},{key:"validate",value:function(r){var o=this,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},c=r,d=s,h=l;if(typeof d=="function"&&(h=d,d={}),!this.rules||Object.keys(this.rules).length===0)return h&&h(null,c),Promise.resolve(c);function g(_){var x=[],b={};function E(P){if(Array.isArray(P)){var I;x=(I=x).concat.apply(I,bn(P))}else x.push(P)}for(var S=0;S<_.length;S++)E(_[S]);x.length?(b=$l(x),h(x,b)):h(null,c)}if(d.messages){var m=this.messages();m===kl&&(m=Nl()),oh(m,d.messages),d.messages=m}else d.messages=this.messages();var v={},y=d.keys||Object.keys(this.rules);y.forEach(function(_){var x=o.rules[_],b=c[_];x.forEach(function(E){var S=E;typeof S.transform=="function"&&(c===r&&(c=Tt({},c)),b=c[_]=S.transform(b),b!=null&&(S.type=S.type||(Array.isArray(b)?"array":$t(b)))),typeof S=="function"?S={validator:S}:S=Tt({},S),S.validator=o.getValidationMethod(S),S.validator&&(S.field=_,S.fullField=S.fullField||_,S.type=o.getType(S),v[_]=v[_]||[],v[_].push({rule:S,value:b,source:c,field:_}))})});var C={};return T_(v,d,function(_,x){var b=_.rule,E=(b.type==="object"||b.type==="array")&&($t(b.fields)==="object"||$t(b.defaultField)==="object");E=E&&(b.required||!b.required&&_.value),b.field=_.field;function S(N,R){return Tt(Tt({},R),{},{fullField:"".concat(b.fullField,".").concat(N),fullFields:b.fullFields?[].concat(bn(b.fullFields),[N]):[N]})}function P(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],R=Array.isArray(N)?N:[N];!d.suppressWarning&&R.length&&e.warning("async-validator:",R),R.length&&b.message!==void 0&&b.message!==null&&(R=[].concat(b.message));var B=R.map(rh(b,c));if(d.first&&B.length)return C[b.field]=1,x(B);if(!E)x(B);else{if(b.required&&!_.value)return b.message!==void 0?B=[].concat(b.message).map(rh(b,c)):d.error&&(B=[d.error(b,wn(d.messages.required,b.field))]),x(B);var z={};b.defaultField&&Object.keys(_.value).map(function(V){z[V]=b.defaultField}),z=Tt(Tt({},z),_.rule.fields);var $={};Object.keys(z).forEach(function(V){var W=z[V],F=Array.isArray(W)?W:[W];$[V]=F.map(S.bind(null,V))});var j=new e($);j.messages(d.messages),_.rule.options&&(_.rule.options.messages=d.messages,_.rule.options.error=d.error),j.validate(_.value,_.rule.options||d,function(V){var W=[];B&&B.length&&W.push.apply(W,bn(B)),V&&V.length&&W.push.apply(W,bn(V)),x(W.length?W:null)})}}var I;if(b.asyncValidator)I=b.asyncValidator(b,_.value,P,_.source,d);else if(b.validator){try{I=b.validator(b,_.value,P,_.source,d)}catch(N){var M,k;(M=(k=console).error)===null||M===void 0||M.call(k,N),d.suppressValidatorError||setTimeout(function(){throw N},0),P(N.message)}I===!0?P():I===!1?P(typeof b.message=="function"?b.message(b.fullField||b.field):b.message||"".concat(b.fullField||b.field," fails")):I instanceof Array?P(I):I instanceof Error&&P(I.message)}I&&I.then&&I.then(function(){return P()},function(N){return P(N)})},function(_){g(_)},c)}},{key:"getType",value:function(r){if(r.type===void 0&&r.pattern instanceof RegExp&&(r.type="pattern"),typeof r.validator!="function"&&r.type&&!ni.hasOwnProperty(r.type))throw new Error(wn("Unknown rule type %s",r.type));return r.type||"string"}},{key:"getValidationMethod",value:function(r){if(typeof r.validator=="function")return r.validator;var o=Object.keys(r),s=o.indexOf("message");return s!==-1&&o.splice(s,1),o.length===1&&o[0]==="required"?ni.required:ni[this.getType(r)]||void 0}}]),e}();Dt(ri,"register",function(n,r){if(typeof r!="function")throw new Error("Cannot register a validator by type, validator is not a function");ni[n]=r}),Dt(ri,"warning",eh),Dt(ri,"messages",kl),Dt(ri,"validators",ni);const pn="'${name}' is not a valid ${type}",sh={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:pn,method:pn,array:pn,object:pn,number:pn,date:pn,boolean:pn,integer:pn,float:pn,regexp:pn,email:pn,tel:pn,url:pn,hex:pn},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},ah=ri;function X_(e,n){return e.replace(/\\?\$\{\w+\}/g,r=>{if(r.startsWith("\\"))return r.slice(1);const o=r.slice(2,-1);return n[o]})}const lh="CODE_LOGIC_ERROR";async function zl(e,n,r,o,s){const l={...r};if(delete l.ruleIndex,ah.warning=()=>{},l.validator){const y=l.validator;l.validator=(...C)=>{try{return y(...C)}catch(_){return console.error(_),Promise.reject(lh)}}}let c=null;l&&l.type==="array"&&l.defaultField&&(c=l.defaultField,delete l.defaultField);const d=new ah({[e]:[l]}),h=jr(sh,o.validateMessages);d.messages(h);let g=[];try{await Promise.resolve(d.validate({[e]:n},{...o}))}catch(y){y.errors&&(g=y.errors.map(({message:C},_)=>{const x=C===lh?h.default:C;return f.isValidElement(x)?f.cloneElement(x,{key:`error_${_}`}):x}))}if(!g.length&&c&&Array.isArray(n)&&n.length>0)return(await Promise.all(n.map((C,_)=>zl(`${e}.${_}`,C,c,o,s)))).reduce((C,_)=>[...C,..._],[]);const m={...r,name:e,enum:(r.enum||[]).join(", "),...s};return g.map(y=>typeof y=="string"?X_(y,m):y)}function J_(e,n,r,o,s,l){const c=e.join("."),d=r.map((g,m)=>{const v=g.validator,y={...g,ruleIndex:m};return v&&(y.validator=(C,_,x)=>{let b=!1;const S=v(C,_,(...P)=>{Promise.resolve().then(()=>{ct(!b,"Your validator function has already return a promise. `callback` will be ignored."),b||x(...P)})});b=S&&typeof S.then=="function"&&typeof S.catch=="function",ct(b,"`callback` is deprecated. Please return a promise instead."),b&&S.then(()=>{x()}).catch(P=>{x(P||" ")})}),y}).sort(({warningOnly:g,ruleIndex:m},{warningOnly:v,ruleIndex:y})=>!!g==!!v?m-y:g?1:-1);let h;if(s===!0)h=new Promise(async(g,m)=>{for(let v=0;v<d.length;v+=1){const y=d[v],C=await zl(c,n,y,o,l);if(C.length){m([{errors:C,rule:y}]);return}}g([])});else{const g=d.map(m=>zl(c,n,m,o,l).then(v=>({errors:v,rule:m})));h=(s?t0(g):e0(g)).then(m=>Promise.reject(m))}return h.catch(g=>g),h}async function e0(e){return Promise.all(e).then(n=>[].concat(...n))}async function t0(e){let n=0;return new Promise(r=>{e.forEach(o=>{o.then(s=>{s.errors.length&&r([s]),n+=1,n===e.length&&r([])})})})}function Mt(e){return Ol(e)}function ch(e,n){let r={};return n.forEach(o=>{const s=On(e,o);r=Cn(r,o,s)}),r}function lo(e,n,r=!1){return e&&e.some(o=>us(n,o,r))}function us(e,n,r=!1){return!e||!n||!r&&e.length!==n.length?!1:n.every((o,s)=>e[s]===o)}function n0(e,n){if(e===n)return!0;if(!e&&n||e&&!n||!e||!n||typeof e!="object"||typeof n!="object")return!1;const r=Object.keys(e),o=Object.keys(n);return[...new Set([...r,...o])].every(l=>{const c=e[l],d=n[l];return typeof c=="function"&&typeof d=="function"?!0:c===d})}function r0(e,...n){const r=n[0];return r&&r.target&&typeof r.target=="object"&&e in r.target?r.target[e]:r}function uh(e,n,r){const{length:o}=e;if(n<0||n>=o||r<0||r>=o)return e;const s=e[n],l=n-r;return l>0?[...e.slice(0,r),s,...e.slice(r,n),...e.slice(n+1,o)]:l<0?[...e.slice(0,n),...e.slice(n+1,r+1),s,...e.slice(r+1,o)]:e}function Dl(){return Dl=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},Dl.apply(this,arguments)}const Br=[],oi=[];function Fl(e,n,r,o,s,l){return typeof e=="function"?e(n,r,"source"in l?{source:l.source}:{}):o!==s}class dh extends f.Component{constructor(r){super(r);q(this,"state",{resetCount:0});q(this,"cancelRegisterFunc",null);q(this,"mounted",!1);q(this,"touched",!1);q(this,"dirty",!1);q(this,"validatePromise");q(this,"prevValidating");q(this,"errors",Br);q(this,"warnings",oi);q(this,"cancelRegister",()=>{const{preserve:r,isListField:o,name:s}=this.props;this.cancelRegisterFunc&&this.cancelRegisterFunc(o,r,Mt(s)),this.cancelRegisterFunc=null});q(this,"getNamePath",()=>{const{name:r,fieldContext:o}=this.props,{prefixName:s=[]}=o;return r!==void 0?[...s,...r]:[]});q(this,"getRules",()=>{const{rules:r=[],fieldContext:o}=this.props;return r.map(s=>typeof s=="function"?s(o):s)});q(this,"refresh",()=>{this.mounted&&this.setState(({resetCount:r})=>({resetCount:r+1}))});q(this,"metaCache",null);q(this,"triggerMetaEvent",r=>{const{onMetaChange:o}=this.props;if(o){const s={...this.getMeta(),destroy:r};$o(this.metaCache,s)||o(s),this.metaCache=s}else this.metaCache=null});q(this,"onStoreChange",(r,o,s)=>{const{shouldUpdate:l,dependencies:c=[],onReset:d}=this.props,{store:h}=s,g=this.getNamePath(),m=this.getValue(r),v=this.getValue(h),y=o&&lo(o,g);switch(s.type==="valueUpdate"&&s.source==="external"&&!$o(m,v)&&(this.touched=!0,this.dirty=!0,this.validatePromise=null,this.errors=Br,this.warnings=oi,this.triggerMetaEvent()),s.type){case"reset":if(!o||y){this.touched=!1,this.dirty=!1,this.validatePromise=void 0,this.errors=Br,this.warnings=oi,this.triggerMetaEvent(),d==null||d(),this.refresh();return}break;case"remove":{if(l&&Fl(l,r,h,m,v,s)){this.reRender();return}break}case"setField":{const{data:C}=s;if(y){"touched"in C&&(this.touched=C.touched),"validating"in C&&!("originRCField"in C)&&(this.validatePromise=C.validating?Promise.resolve([]):null),"errors"in C&&(this.errors=C.errors||Br),"warnings"in C&&(this.warnings=C.warnings||oi),this.dirty=!0,this.triggerMetaEvent(),this.reRender();return}else if("value"in C&&lo(o,g,!0)){this.reRender();return}if(l&&!g.length&&Fl(l,r,h,m,v,s)){this.reRender();return}break}case"dependenciesUpdate":{if(c.map(Mt).some(_=>lo(s.relatedFields,_))){this.reRender();return}break}default:if(y||(!c.length||g.length||l)&&Fl(l,r,h,m,v,s)){this.reRender();return}break}l===!0&&this.reRender()});q(this,"validateRules",r=>{const o=this.getNamePath(),s=this.getValue(),{triggerName:l,validateOnly:c=!1}=r||{},d=Promise.resolve().then(async()=>{if(!this.mounted)return[];const{validateFirst:h=!1,messageVariables:g,validateDebounce:m}=this.props;let v=this.getRules();if(l&&(v=v.filter(C=>C).filter(C=>{const{validateTrigger:_}=C;return _?Ol(_).includes(l):!0})),m&&l&&(await new Promise(C=>{setTimeout(C,m)}),this.validatePromise!==d))return[];const y=J_(o,s,v,r,h,g);return y.catch(C=>C).then((C=Br)=>{var _;if(this.validatePromise===d){this.validatePromise=null;const x=[],b=[];(_=C.forEach)==null||_.call(C,({rule:{warningOnly:E},errors:S=Br})=>{E?b.push(...S):x.push(...S)}),this.errors=x,this.warnings=b,this.triggerMetaEvent(),this.reRender()}}),y});return c||(this.validatePromise=d,this.dirty=!0,this.errors=Br,this.warnings=oi,this.triggerMetaEvent(),this.reRender()),d});q(this,"isFieldValidating",()=>!!this.validatePromise);q(this,"isFieldTouched",()=>this.touched);q(this,"isFieldDirty",()=>{if(this.dirty||this.props.initialValue!==void 0)return!0;const{fieldContext:r}=this.props,{getInitialValue:o}=r.getInternalHooks($r);return o(this.getNamePath())!==void 0});q(this,"getErrors",()=>this.errors);q(this,"getWarnings",()=>this.warnings);q(this,"isListField",()=>this.props.isListField);q(this,"isList",()=>this.props.isList);q(this,"isPreserve",()=>this.props.preserve);q(this,"getMeta",()=>(this.prevValidating=this.isFieldValidating(),{touched:this.isFieldTouched(),validating:this.prevValidating,errors:this.errors,warnings:this.warnings,name:this.getNamePath(),validated:this.validatePromise===null}));q(this,"getOnlyChild",r=>{if(typeof r=="function"){const s=this.getMeta();return{...this.getOnlyChild(r(this.getControlled(),s,this.props.fieldContext)),isFunction:!0}}const o=Gn(r);return o.length!==1||!f.isValidElement(o[0])?{child:o,isFunction:!1}:{child:o[0],isFunction:!1}});q(this,"getValue",r=>{const{getFieldsValue:o}=this.props.fieldContext,s=this.getNamePath();return On(r||o(!0),s)});q(this,"getControlled",(r={})=>{const{name:o,trigger:s="onChange",validateTrigger:l,getValueFromEvent:c,normalize:d,valuePropName:h="value",getValueProps:g,fieldContext:m}=this.props,v=l!==void 0?l:m.validateTrigger,y=this.getNamePath(),{getInternalHooks:C,getFieldsValue:_}=m,{dispatch:x}=C($r),b=this.getValue(),E=g||(k=>({[h]:k})),S=r[s],P=o!==void 0?E(b):{};process.env.NODE_ENV!=="production"&&P&&Object.keys(P).forEach(k=>{ct(typeof P[k]!="function",`It's not recommended to generate dynamic function prop by \`getValueProps\`. Please pass it to child component directly (prop: ${k})`)});const I={...r,...P};return I[s]=(...k)=>{this.touched=!0,this.dirty=!0,this.triggerMetaEvent();let N;c?N=c(...k):N=r0(h,...k),d&&(N=d(N,b,_(!0))),N!==b&&x({type:"updateValue",namePath:y,value:N}),S&&S(...k)},Ol(v||[]).forEach(k=>{const N=I[k];I[k]=(...R)=>{N&&N(...R);const{rules:B}=this.props;B&&B.length&&x({type:"validateField",namePath:y,triggerName:k})}}),I});if(r.fieldContext){const{getInternalHooks:o}=r.fieldContext,{initEntityValue:s}=o($r);s(this)}}componentDidMount(){const{shouldUpdate:r,fieldContext:o}=this.props;if(this.mounted=!0,o){const{getInternalHooks:s}=o,{registerField:l}=s($r);this.cancelRegisterFunc=l(this)}r===!0&&this.reRender()}componentWillUnmount(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}reRender(){this.mounted&&this.forceUpdate()}render(){const{resetCount:r}=this.state,{children:o}=this.props,{child:s,isFunction:l}=this.getOnlyChild(o);let c;return l?c=s:f.isValidElement(s)?c=f.cloneElement(s,this.getControlled(s.props)):(ct(!s,"`children` of Field is not validate ReactElement."),c=s),f.createElement(f.Fragment,{key:r},c)}}q(dh,"contextType",so);function fh({name:e,...n}){const r=f.useContext(so),o=f.useContext(as),s=e!==void 0?Mt(e):void 0,l=n.isListField??!!o;let c="keep";return l||(c=`_${(s||[]).join("_")}`),process.env.NODE_ENV!=="production"&&n.preserve===!1&&l&&s.length<=1&&ct(!1,"`preserve` should not apply on Form.List fields."),f.createElement(dh,Dl({key:c,name:s,isListField:l},n,{fieldContext:r}))}function o0({name:e,initialValue:n,children:r,rules:o,validateTrigger:s,isListField:l}){const c=f.useContext(so),d=f.useContext(as),g=f.useRef({keys:[],id:0}).current,m=f.useMemo(()=>[...Mt(c.prefixName)||[],...Mt(e)],[c.prefixName,e]),v=f.useMemo(()=>({...c,prefixName:m}),[c,m]),y=f.useMemo(()=>({getKey:_=>{const x=m.length,b=_[x];return[g.keys[b],_.slice(x+1)]}}),[g,m]);if(typeof r!="function")return ct(!1,"Form.List only accepts function as children."),null;const C=(_,x,{source:b})=>b==="internal"?!1:_!==x;return f.createElement(as.Provider,{value:y},f.createElement(so.Provider,{value:v},f.createElement(fh,{name:[],shouldUpdate:C,rules:o,validateTrigger:s,initialValue:n,isList:!0,isListField:l??!!d},({value:_=[],onChange:x},b)=>{const{getFieldValue:E}=c,S=()=>E(m||[])||[],P={add:(M,k)=>{const N=S();k>=0&&k<=N.length?(g.keys=[...g.keys.slice(0,k),g.id,...g.keys.slice(k)],x([...N.slice(0,k),M,...N.slice(k)])):(process.env.NODE_ENV!=="production"&&(k<0||k>N.length)&&ct(!1,"The second parameter of the add function should be a valid positive number."),g.keys=[...g.keys,g.id],x([...N,M])),g.id+=1},remove:M=>{const k=S(),N=new Set(Array.isArray(M)?M:[M]);N.size<=0||(g.keys=g.keys.filter((R,B)=>!N.has(B)),x(k.filter((R,B)=>!N.has(B))))},move(M,k){if(M===k)return;const N=S();M<0||M>=N.length||k<0||k>=N.length||(g.keys=uh(g.keys,M,k),x(uh(N,M,k)))}};let I=_||[];return Array.isArray(I)||(I=[],process.env.NODE_ENV!=="production"&&ct(!1,`Current value of '${m.join(" > ")}' is not an array type.`)),r(I.map((M,k)=>{let N=g.keys[k];return N===void 0&&(g.keys[k]=g.id,N=g.keys[k],g.id+=1),{name:k,key:N,isListField:!0}}),P,b)})))}function i0(e){let n=!1,r=e.length;const o=[];return e.length?new Promise((s,l)=>{e.forEach((c,d)=>{c.catch(h=>(n=!0,h)).then(h=>{r-=1,o[d]=h,!(r>0)&&(n&&l(o),s(o))})})}):Promise.resolve([])}const Hl="__@field_split__";function ds(e){return e.map(n=>`${typeof n}:${n}`).join(Hl)}class co{constructor(){q(this,"kvs",new Map)}set(n,r){this.kvs.set(ds(n),r)}get(n){return this.kvs.get(ds(n))}getAsPrefix(n){const r=ds(n),o=r+Hl,s=[],l=this.kvs.get(r);return l!==void 0&&s.push(l),this.kvs.forEach((c,d)=>{d.startsWith(o)&&s.push(c)}),s}update(n,r){const o=this.get(n),s=r(o);s?this.set(n,s):this.delete(n)}delete(n){this.kvs.delete(ds(n))}map(n){return[...this.kvs.entries()].map(([r,o])=>{const s=r.split(Hl);return n({key:s.map(l=>{const[,c,d]=l.match(/^([^:]*):(.*)$/);return c==="number"?Number(d):d}),value:o})})}toJSON(){const n={};return this.map(({key:r,value:o})=>(n[r.join(".")]=o,null)),n}}const s0=e=>{const n=new MessageChannel;n.port1.onmessage=e,n.port2.postMessage(null)};class a0{constructor(n){q(this,"namePathList",[]);q(this,"taskId",0);q(this,"watcherList",new Set);q(this,"form");this.form=n}register(n){return this.watcherList.add(n),()=>{this.watcherList.delete(n)}}notify(n){n.forEach(r=>{this.namePathList.every(o=>!us(o,r))&&this.namePathList.push(r)}),this.doBatch()}doBatch(){this.taskId+=1;const n=this.taskId;s0(()=>{if(n===this.taskId&&this.watcherList.size){const r=this.form.getForm(),o=r.getFieldsValue(),s=r.getFieldsValue(!0);this.watcherList.forEach(l=>{l(o,s,this.namePathList)}),this.namePathList=[]}})}}class l0{constructor(n){q(this,"formHooked",!1);q(this,"forceRootUpdate");q(this,"subscribable",!0);q(this,"store",{});q(this,"fieldEntities",[]);q(this,"initialValues",{});q(this,"callbacks",{});q(this,"validateMessages",null);q(this,"preserve",null);q(this,"lastValidatePromise",null);q(this,"watcherCenter",new a0(this));q(this,"getForm",()=>({getFieldValue:this.getFieldValue,getFieldsValue:this.getFieldsValue,getFieldError:this.getFieldError,getFieldWarning:this.getFieldWarning,getFieldsError:this.getFieldsError,isFieldsTouched:this.isFieldsTouched,isFieldTouched:this.isFieldTouched,isFieldValidating:this.isFieldValidating,isFieldsValidating:this.isFieldsValidating,resetFields:this.resetFields,setFields:this.setFields,setFieldValue:this.setFieldValue,setFieldsValue:this.setFieldsValue,validateFields:this.validateFields,submit:this.submit,_init:!0,getInternalHooks:this.getInternalHooks}));q(this,"getInternalHooks",n=>n===$r?(this.formHooked=!0,{dispatch:this.dispatch,initEntityValue:this.initEntityValue,registerField:this.registerField,useSubscribe:this.useSubscribe,setInitialValues:this.setInitialValues,destroyForm:this.destroyForm,setCallbacks:this.setCallbacks,setValidateMessages:this.setValidateMessages,getFields:this.getFields,setPreserve:this.setPreserve,getInitialValue:this.getInitialValue,registerWatch:this.registerWatch}):(ct(!1,"`getInternalHooks` is internal usage. Should not call directly."),null));q(this,"useSubscribe",n=>{this.subscribable=n});q(this,"prevWithoutPreserves",null);q(this,"setInitialValues",(n,r)=>{var o;if(this.initialValues=n||{},r){let s=jr(n,this.store);(o=this.prevWithoutPreserves)==null||o.map(({key:l})=>{s=Cn(s,l,On(n,l))}),this.prevWithoutPreserves=null,this.updateStore(s)}});q(this,"destroyForm",n=>{if(n)this.updateStore({});else{const r=new co;this.getFieldEntities(!0).forEach(o=>{this.isMergedPreserve(o.isPreserve())||r.set(o.getNamePath(),!0)}),this.prevWithoutPreserves=r}});q(this,"getInitialValue",n=>{const r=On(this.initialValues,n);return n.length?jr(r):r});q(this,"setCallbacks",n=>{this.callbacks=n});q(this,"setValidateMessages",n=>{this.validateMessages=n});q(this,"setPreserve",n=>{this.preserve=n});q(this,"registerWatch",n=>this.watcherCenter.register(n));q(this,"notifyWatch",(n=[])=>{this.watcherCenter.notify(n)});q(this,"timeoutId",null);q(this,"warningUnhooked",()=>{process.env.NODE_ENV!=="production"&&!this.timeoutId&&typeof window<"u"&&(this.timeoutId=setTimeout(()=>{this.timeoutId=null,this.formHooked||ct(!1,"Instance created by `useForm` is not connected to any Form element. Forget to pass `form` prop?")}))});q(this,"updateStore",n=>{this.store=n});q(this,"getFieldEntities",(n=!1)=>n?this.fieldEntities.filter(r=>r.getNamePath().length):this.fieldEntities);q(this,"getFieldsMap",(n=!1)=>{const r=new co;return this.getFieldEntities(n).forEach(o=>{const s=o.getNamePath();r.set(s,o)}),r});q(this,"getFieldEntitiesForNamePathList",(n,r=!1)=>{if(!n)return this.getFieldEntities(!0);const o=this.getFieldsMap(!0);return r?n.flatMap(s=>{const l=Mt(s),c=o.getAsPrefix(l);return c.length?c:[{INVALIDATE_NAME_PATH:l}]}):n.map(s=>{const l=Mt(s);return o.get(l)||{INVALIDATE_NAME_PATH:Mt(s)}})});q(this,"getFieldsValue",(n,r)=>{this.warningUnhooked();let o,s;if(n===!0||Array.isArray(n)?(o=n,s=r):n&&typeof n=="object"&&(s=n.filter),o===!0&&!s)return this.store;const l=this.getFieldEntitiesForNamePathList(Array.isArray(o)?o:null,!0),c=[],d=[];l.forEach(g=>{var v;const m=g.INVALIDATE_NAME_PATH||g.getNamePath();if((v=g.isList)!=null&&v.call(g)){d.push(m);return}if(!s)c.push(m);else{const y="getMeta"in g?g.getMeta():null;s(y)&&c.push(m)}});let h=ch(this.store,c.map(Mt));return d.forEach(g=>{On(h,g)||(h=Cn(h,g,[]))}),h});q(this,"getFieldValue",n=>{this.warningUnhooked();const r=Mt(n);return On(this.store,r)});q(this,"getFieldsError",n=>(this.warningUnhooked(),this.getFieldEntitiesForNamePathList(n).map((o,s)=>o&&!o.INVALIDATE_NAME_PATH?{name:o.getNamePath(),errors:o.getErrors(),warnings:o.getWarnings()}:{name:Mt(n[s]),errors:[],warnings:[]})));q(this,"getFieldError",n=>{this.warningUnhooked();const r=Mt(n);return this.getFieldsError([r])[0].errors});q(this,"getFieldWarning",n=>{this.warningUnhooked();const r=Mt(n);return this.getFieldsError([r])[0].warnings});q(this,"isFieldsTouched",(...n)=>{this.warningUnhooked();const[r,o]=n;let s,l=!1;n.length===0?s=null:n.length===1?Array.isArray(r)?(s=r.map(Mt),l=!1):(s=null,l=r):(s=r.map(Mt),l=o);const c=this.getFieldEntities(!0),d=v=>v.isFieldTouched();if(!s)return l?c.every(v=>d(v)||v.isList()):c.some(d);const h=new co;s.forEach(v=>{h.set(v,[])}),c.forEach(v=>{const y=v.getNamePath();s.forEach(C=>{C.every((_,x)=>y[x]===_)&&h.update(C,_=>[..._,v])})});const g=v=>v.some(d),m=h.map(({value:v})=>v);return l?m.every(g):m.some(g)});q(this,"isFieldTouched",n=>(this.warningUnhooked(),this.isFieldsTouched([n])));q(this,"isFieldsValidating",n=>{this.warningUnhooked();const r=this.getFieldEntities();if(!n)return r.some(s=>s.isFieldValidating());const o=n.map(Mt);return r.some(s=>{const l=s.getNamePath();return lo(o,l)&&s.isFieldValidating()})});q(this,"isFieldValidating",n=>(this.warningUnhooked(),this.isFieldsValidating([n])));q(this,"resetWithFieldInitialValue",(n={})=>{const r=new co,o=this.getFieldEntities(!0);o.forEach(c=>{const{initialValue:d}=c.props,h=c.getNamePath();if(d!==void 0){const g=r.get(h)||new Set;g.add({entity:c,value:d}),r.set(h,g)}});const s=c=>{c.forEach(d=>{const{initialValue:h}=d.props;if(h!==void 0){const g=d.getNamePath();if(this.getInitialValue(g)!==void 0)ct(!1,`Form already set 'initialValues' with path '${g.join(".")}'. Field can not overwrite it.`);else{const v=r.get(g);if(v&&v.size>1)ct(!1,`Multiple Field with path '${g.join(".")}' set 'initialValue'. Can not decide which one to pick.`);else if(v){const y=this.getFieldValue(g);!d.isListField()&&(!n.skipExist||y===void 0)&&this.updateStore(Cn(this.store,g,[...v][0].value))}}}})};let l;n.entities?l=n.entities:n.namePathList?(l=[],n.namePathList.forEach(c=>{const d=r.get(c);d&&l.push(...[...d].map(h=>h.entity))})):l=o,s(l)});q(this,"resetFields",n=>{this.warningUnhooked();const r=this.store;if(!n){this.updateStore(jr(this.initialValues)),this.resetWithFieldInitialValue(),this.notifyObservers(r,null,{type:"reset"}),this.notifyWatch();return}const o=n.map(Mt);o.forEach(s=>{const l=this.getInitialValue(s);this.updateStore(Cn(this.store,s,l))}),this.resetWithFieldInitialValue({namePathList:o}),this.notifyObservers(r,o,{type:"reset"}),this.notifyWatch(o)});q(this,"setFields",n=>{this.warningUnhooked();const r=this.store,o=[];n.forEach(s=>{const{name:l,...c}=s,d=Mt(l);o.push(d),"value"in c&&this.updateStore(Cn(this.store,d,c.value)),this.notifyObservers(r,[d],{type:"setField",data:s})}),this.notifyWatch(o)});q(this,"getFields",()=>this.getFieldEntities(!0).map(o=>{const s=o.getNamePath(),c={...o.getMeta(),name:s,value:this.getFieldValue(s)};return Object.defineProperty(c,"originRCField",{value:!0}),c}));q(this,"initEntityValue",n=>{const{initialValue:r}=n.props;if(r!==void 0){const o=n.getNamePath();On(this.store,o)===void 0&&this.updateStore(Cn(this.store,o,r))}});q(this,"isMergedPreserve",n=>(n!==void 0?n:this.preserve)??!0);q(this,"registerField",n=>{this.fieldEntities.push(n);const r=n.getNamePath();if(this.notifyWatch([r]),n.props.initialValue!==void 0){const o=this.store;this.resetWithFieldInitialValue({entities:[n],skipExist:!0}),this.notifyObservers(o,[n.getNamePath()],{type:"valueUpdate",source:"internal"})}return(o,s,l=[])=>{if(this.fieldEntities=this.fieldEntities.filter(c=>c!==n),!this.isMergedPreserve(s)&&(!o||l.length>1)){const c=o?void 0:this.getInitialValue(r);if(r.length&&this.getFieldValue(r)!==c&&this.fieldEntities.every(d=>!us(d.getNamePath(),r))){const d=this.store;this.updateStore(Cn(d,r,c,!0)),this.notifyObservers(d,[r],{type:"remove"}),this.triggerDependenciesUpdate(d,r)}}this.notifyWatch([r])}});q(this,"dispatch",n=>{switch(n.type){case"updateValue":{const{namePath:r,value:o}=n;this.updateValue(r,o);break}case"validateField":{const{namePath:r,triggerName:o}=n;this.validateFields([r],{triggerName:o});break}}});q(this,"notifyObservers",(n,r,o)=>{if(this.subscribable){const s={...o,store:this.getFieldsValue(!0)};this.getFieldEntities().forEach(({onStoreChange:l})=>{l(n,r,s)})}else this.forceRootUpdate()});q(this,"triggerDependenciesUpdate",(n,r)=>{const o=this.getDependencyChildrenFields(r);return o.length&&this.validateFields(o),this.notifyObservers(n,o,{type:"dependenciesUpdate",relatedFields:[r,...o]}),o});q(this,"updateValue",(n,r)=>{const o=Mt(n),s=this.store;this.updateStore(Cn(this.store,o,r)),this.notifyObservers(s,[o],{type:"valueUpdate",source:"internal"}),this.notifyWatch([o]);const l=this.triggerDependenciesUpdate(s,o),{onValuesChange:c}=this.callbacks;if(c){const d=this.getFieldsMap(!0).get(o),h=ch(this.store,[o]),g=this.getFieldsValue(),m=Xc([g,h],{prepareArray:v=>d!=null&&d.isList()?[]:[...v||[]]});c(h,m)}this.triggerOnFieldsChange([o,...l])});q(this,"setFieldsValue",n=>{this.warningUnhooked();const r=this.store;if(n){const o=jr(this.store,n);this.updateStore(o)}this.notifyObservers(r,null,{type:"valueUpdate",source:"external"}),this.notifyWatch()});q(this,"setFieldValue",(n,r)=>{this.setFields([{name:n,value:r,errors:[],warnings:[],touched:!0}])});q(this,"getDependencyChildrenFields",n=>{const r=new Set,o=[],s=new co;this.getFieldEntities().forEach(c=>{const{dependencies:d}=c.props;(d||[]).forEach(h=>{const g=Mt(h);s.update(g,(m=new Set)=>(m.add(c),m))})});const l=c=>{(s.get(c)||new Set).forEach(h=>{if(!r.has(h)){r.add(h);const g=h.getNamePath();h.isFieldDirty()&&g.length&&(o.push(g),l(g))}})};return l(n),o});q(this,"triggerOnFieldsChange",(n,r)=>{const{onFieldsChange:o}=this.callbacks;if(o){const s=this.getFields();if(r){const c=new co;r.forEach(({name:d,errors:h})=>{c.set(d,h)}),s.forEach(d=>{d.errors=c.get(d.name)||d.errors})}const l=s.filter(({name:c})=>lo(n,c));l.length&&o(l,s)}});q(this,"validateFields",(n,r)=>{this.warningUnhooked();let o,s;Array.isArray(n)||typeof n=="string"||typeof r=="string"?(o=n,s=r):s=n;const l=!!o,c=l?o.map(Mt):[],d=[...c],h=[],g=String(Date.now()),m=new Set,{recursive:v,dirty:y}=s||{};this.getFieldEntities(!0).forEach(b=>{const E=b.getNamePath();if(l||((!b.isList()||!c.some(S=>us(S,E,!0)))&&d.push(E),c.push(E)),!(!b.props.rules||!b.props.rules.length)&&!(y&&!b.isFieldDirty())&&(m.add(E.join(g)),!l||lo(c,E,v))){const S=b.validateRules({validateMessages:{...sh,...this.validateMessages},...s});h.push(S.then(()=>({name:E,errors:[],warnings:[]})).catch(P=>{var k;const I=[],M=[];return(k=P.forEach)==null||k.call(P,({rule:{warningOnly:N},errors:R})=>{N?M.push(...R):I.push(...R)}),I.length?Promise.reject({name:E,errors:I,warnings:M}):{name:E,errors:I,warnings:M}}))}});const C=i0(h);this.lastValidatePromise=C,C.catch(b=>b).then(b=>{const E=b.map(({name:S})=>S);this.notifyObservers(this.store,E,{type:"validateFinish"}),this.triggerOnFieldsChange(E,b)});const _=C.then(()=>this.lastValidatePromise===C?Promise.resolve(this.getFieldsValue(d)):Promise.reject([])).catch(b=>{var P,I;const E=b.filter(M=>M&&M.errors.length),S=(I=(P=E[0])==null?void 0:P.errors)==null?void 0:I[0];return Promise.reject({message:S,values:this.getFieldsValue(c),errorFields:E,outOfDate:this.lastValidatePromise!==C})});_.catch(b=>b);const x=c.filter(b=>m.has(b.join(g)));return this.triggerOnFieldsChange(x),_});q(this,"submit",()=>{this.warningUnhooked(),this.validateFields().then(n=>{const{onFinish:r}=this.callbacks;if(r)try{r(n)}catch(o){console.error(o)}}).catch(n=>{const{onFinishFailed:r}=this.callbacks;r&&r(n)})});this.forceRootUpdate=n}}function hh(e){const n=f.useRef(null),[,r]=f.useState({});if(!n.current)if(e)n.current=e;else{const o=()=>{r({})},s=new l0(o);n.current=s.getForm()}return[n.current]}const Vl=f.createContext({triggerFormChange:()=>{},triggerFormFinish:()=>{},registerForm:()=>{},unregisterForm:()=>{}}),c0=({validateMessages:e,onFormChange:n,onFormFinish:r,children:o})=>{const s=f.useContext(Vl),l=f.useRef({});return f.createElement(Vl.Provider,{value:{...s,validateMessages:{...s.validateMessages,...e},triggerFormChange:(c,d)=>{n&&n(c,{changedFields:d,forms:l.current}),s.triggerFormChange(c,d)},triggerFormFinish:(c,d)=>{r&&r(c,{values:d,forms:l.current}),s.triggerFormFinish(c,d)},registerForm:(c,d)=>{c&&(l.current={...l.current,[c]:d}),s.registerForm(c,d)},unregisterForm:c=>{const d={...l.current};delete d[c],l.current=d,s.unregisterForm(c)}}},o)};function Wl(){return Wl=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},Wl.apply(this,arguments)}const u0=({name:e,initialValues:n,fields:r,form:o,preserve:s,children:l,component:c="form",validateMessages:d,validateTrigger:h="onChange",onValuesChange:g,onFieldsChange:m,onFinish:v,onFinishFailed:y,clearOnDestroy:C,..._},x)=>{const b=f.useRef(null),E=f.useContext(Vl),[S]=hh(o),{useSubscribe:P,setInitialValues:I,setCallbacks:M,setValidateMessages:k,setPreserve:N,destroyForm:R}=S.getInternalHooks($r);f.useImperativeHandle(x,()=>({...S,nativeElement:b.current})),f.useEffect(()=>(E.registerForm(e,S),()=>{E.unregisterForm(e)}),[E,S,e]),k({...E.validateMessages,...d}),M({onValuesChange:g,onFieldsChange:(F,...X)=>{E.triggerFormChange(e,F),m&&m(F,...X)},onFinish:F=>{E.triggerFormFinish(e,F),v&&v(F)},onFinishFailed:y}),N(s);const B=f.useRef(null);I(n,!B.current),B.current||(B.current=!0),f.useEffect(()=>()=>R(C),[]);let z;const $=typeof l=="function";if($){const F=S.getFieldsValue(!0);z=l(F,S)}else z=l;P(!$);const j=f.useRef(null);f.useEffect(()=>{n0(j.current||[],r||[])||S.setFields(r||[]),j.current=r},[r,S]);const V=f.useMemo(()=>({...S,validateTrigger:h}),[S,h]),W=f.createElement(as.Provider,{value:null},f.createElement(so.Provider,{value:V},z));return c===!1?W:f.createElement(c,Wl({},_,{ref:b,onSubmit:F=>{F.preventDefault(),F.stopPropagation(),S.submit()},onReset:F=>{var X;F.preventDefault(),S.resetFields(),(X=_.onReset)==null||X.call(_,F)}}),W)};function jl(e){try{return JSON.stringify(e)}catch{return Math.random()}}function d0(...e){const[n,r={}]=e,o=x_(r)?{form:r}:r,s=o.form,[l,c]=A.useState(()=>typeof n=="function"?n({}):void 0),d=A.useMemo(()=>jl(l),[l]),h=A.useRef(d);h.current=d;const g=A.useContext(so),m=s||g,v=m&&m._init;process.env.NODE_ENV!=="production"&&ct(e.length===2?s?v:!0:v,"useWatch requires a form instance since it can not auto detect from context.");const{getFieldsValue:y,getInternalHooks:C}=m,{registerWatch:_}=C($r),x=ft((E,S)=>{const P=o.preserve?S??y(!0):E??y(),I=typeof n=="function"?n(P):On(P,Mt(n));jl(l)!==jl(I)&&c(I)}),b=typeof n=="function"?n:JSON.stringify(n);return A.useEffect(()=>{v&&x()},[v,b]),A.useEffect(()=>v?_((S,P)=>{x(S,P)}):void 0,[v]),l}const ii=f.forwardRef(u0);ii.FormProvider=c0,ii.Field=fh,ii.List=o0,ii.useForm=hh,ii.useWatch=d0;const fs=f.createContext({});process.env.NODE_ENV!=="production"&&(fs.displayName="FormItemInputContext");const f0=({children:e,status:n,override:r})=>{const o=f.useContext(fs),s=f.useMemo(()=>{const l={...o};return r&&delete l.isFormItemInput,n&&(delete l.status,delete l.hasFeedback,delete l.feedbackIcon),l},[n,r,o]);return f.createElement(fs.Provider,{value:s},e)},ph=e=>{const{space:n,form:r,children:o}=e;if(!to(o))return null;let s=o;return r&&(s=A.createElement(f0,{override:!0,status:!0},s)),n&&(s=A.createElement(Jy,null,s)),s};function h0(e){return n=>f.createElement(Rr,{theme:{token:{motion:!1,zIndexPopupBase:0}}},f.createElement(e,{...n}))}const p0=(e,n,r,o,s)=>h0(c=>{const{prefixCls:d,style:h}=c,g=f.useRef(null),[m,v]=f.useState(0),[y,C]=f.useState(0),[_,x]=qn(!1,c.open),{getPrefixCls:b}=f.useContext(Ot),E=b(o||"select",d);f.useEffect(()=>{if(x(!0),typeof ResizeObserver<"u"){const I=new ResizeObserver(k=>{const N=k[0].target;v(N.offsetHeight+8),C(N.offsetWidth)}),M=setInterval(()=>{var R;const k=s?`.${s(E)}`:`.${E}-dropdown`,N=(R=g.current)==null?void 0:R.querySelector(k);N&&(clearInterval(M),I.observe(N))},10);return()=>{clearInterval(M),I.disconnect()}}},[E]);let S={...c,style:{...h,margin:0},open:_,getPopupContainer:()=>g.current};r&&(S=r(S)),n&&Object.assign(S,{[n]:{overflow:{adjustX:!1,adjustY:!1}}});const P={paddingBottom:m,position:"relative",minWidth:y};return f.createElement("div",{ref:g,style:P},f.createElement(e,{...S}))}),uo=void 0;function m0(e,n){const{prefixCls:r,invalidate:o,item:s,renderItem:l,responsive:c,responsiveDisabled:d,registerSize:h,itemKey:g,className:m,style:v,children:y,display:C,order:_,component:x="div",...b}=e,E=c&&!C;function S(N){h(g,N)}f.useEffect(()=>()=>{S(null)},[]);const P=l&&s!==uo?l(s,{index:_}):y;let I;o||(I={opacity:E?0:1,height:E?0:uo,overflowY:E?"hidden":uo,order:c?_:uo,pointerEvents:E?"none":uo,position:E?"absolute":uo});const M={};E&&(M["aria-hidden"]=!0);let k=f.createElement(x,Wn({className:ce(!o&&r,m),style:{...I,...v}},M,b,{ref:n}),P);return c&&(k=f.createElement(No,{onResize:({offsetWidth:N})=>{S(N)},disabled:d},k)),k}const fo=f.forwardRef(m0);process.env.NODE_ENV!=="production"&&(fo.displayName="Item");function g0(e){if(typeof MessageChannel>"u")Ut(e);else{const n=new MessageChannel;n.port1.onmessage=()=>e(),n.port2.postMessage(void 0)}}function v0(){const e=f.useRef(null);return r=>{e.current||(e.current=[],g0(()=>{Ln.unstable_batchedUpdates(()=>{e.current.forEach(o=>{o()}),e.current=null})})),e.current.push(r)}}function ho(e,n){const[r,o]=f.useState(n),s=ft(l=>{e(()=>{o(l)})});return[r,s]}const hs=A.createContext(null),y0=(e,n)=>{const r=f.useContext(hs);if(!r){const{component:d="div",...h}=e;return f.createElement(d,Wn({},h,{ref:n}))}const{className:o,...s}=r,{className:l,...c}=e;return f.createElement(hs.Provider,{value:null},f.createElement(fo,Wn({ref:n,className:ce(o,l)},s,c)))},mh=f.forwardRef(y0);process.env.NODE_ENV!=="production"&&(mh.displayName="RawItem");const gh="responsive",vh="invalidate";function b0(e){return`+ ${e.length} ...`}function _0(e,n){const{prefixCls:r="rc-overflow",data:o=[],renderItem:s,renderRawItem:l,itemKey:c,itemWidth:d=10,ssr:h,style:g,className:m,maxCount:v,renderRest:y,renderRawRest:C,prefix:_,suffix:x,component:b="div",itemComponent:E,onVisibleChange:S,...P}=e,I=h==="full",M=v0(),[k,N]=ho(M,null),R=k||0,[B,z]=ho(M,new Map),[$,j]=ho(M,0),[V,W]=ho(M,0),[F,X]=ho(M,0),[J,Z]=ho(M,0),[le,G]=A.useState(null),[ie,ne]=A.useState(null),de=f.useMemo(()=>ie===null&&I?Number.MAX_SAFE_INTEGER:ie||0,[ie,k]),[oe,ee]=A.useState(!1),K=`${r}-item`,Y=Math.max($,V),se=v===gh,fe=o.length&&se,xe=v===vh,Se=fe||typeof v=="number"&&o.length>v,Te=A.useMemo(()=>{let he=o;return fe?k===null&&I?he=o:he=o.slice(0,Math.min(o.length,R/d)):typeof v=="number"&&(he=o.slice(0,v)),he},[o,d,k,v,fe]),Ce=A.useMemo(()=>fe?o.slice(de+1):o.slice(Te.length),[o,Te,fe,de]),te=A.useCallback((he,_e)=>typeof c=="function"?c(he):(c&&(he==null?void 0:he[c]))??_e,[c]),we=A.useCallback(s||(he=>he),[s]);function Pe(he,_e,rt){ie===he&&(_e===void 0||_e===le)||(ne(he),rt||(ee(he<o.length-1),S==null||S(he)),_e!==void 0&&G(_e))}function Ae(he,_e){N(_e.clientWidth)}function Ze(he,_e){z(rt=>{const $e=new Map(rt);return _e===null?$e.delete(he):$e.set(he,_e),$e})}function Be(he,_e){W(_e),j(V)}function nt(he,_e){X(_e)}function Ge(he,_e){Z(_e)}function Ke(he){return B.get(te(Te[he],he))}sn(()=>{if(R&&typeof Y=="number"&&Te){let he=F+J;const _e=Te.length,rt=_e-1;if(!_e){Pe(0,null);return}for(let $e=0;$e<_e;$e+=1){let ge=Ke($e);if(I&&(ge=ge||0),ge===void 0){Pe($e-1,void 0,!0);break}if(he+=ge,rt===0&&he<=R||$e===rt-1&&he+Ke(rt)<=R){Pe(rt,null);break}else if(he+Y>R){Pe($e-1,he-ge-J+V);break}}x&&Ke(0)+J>R&&G(null)}},[R,B,V,F,J,te,Te]);const ze=oe&&!!Ce.length;let De={};le!==null&&fe&&(De={position:"absolute",left:le,top:0});const ot={prefixCls:K,responsive:fe,component:E,invalidate:xe},St=l?(he,_e)=>{const rt=te(he,_e);return f.createElement(hs.Provider,{key:rt,value:{...ot,order:_e,item:he,itemKey:rt,registerSize:Ze,display:_e<=de}},l(he,_e))}:(he,_e)=>{const rt=te(he,_e);return f.createElement(fo,Wn({},ot,{order:_e,key:rt,item:he,renderItem:we,itemKey:rt,registerSize:Ze,display:_e<=de}))},pt={order:ze?de:Number.MAX_SAFE_INTEGER,className:`${K}-rest`,registerSize:Be,display:ze},dt=y||b0,mt=C?f.createElement(hs.Provider,{value:{...ot,...pt}},C(Ce)):f.createElement(fo,Wn({},ot,pt),typeof dt=="function"?dt(Ce):dt),Oe=f.createElement(b,Wn({className:ce(!xe&&r,m),style:g,ref:n},P),_&&f.createElement(fo,Wn({},ot,{responsive:se,responsiveDisabled:!fe,order:-1,className:`${K}-prefix`,registerSize:nt,display:!0}),_),Te.map(St),Se?mt:null,x&&f.createElement(fo,Wn({},ot,{responsive:se,responsiveDisabled:!fe,order:de,className:`${K}-suffix`,registerSize:Ge,display:!0,style:De}),x));return se?f.createElement(No,{onResize:Ae,disabled:!fe},Oe):Oe}const or=f.forwardRef(_0);or.Item=mh,or.RESPONSIVE=gh,or.INVALIDATE=vh,process.env.NODE_ENV!=="production"&&(or.displayName="Overflow");const x0=(e,n,r)=>ce({[`${e}-status-success`]:n==="success",[`${e}-status-warning`]:n==="warning",[`${e}-status-error`]:n==="error",[`${e}-status-validating`]:n==="validating",[`${e}-has-feedback`]:r}),yh=e=>{const{children:n,prefixCls:r,id:o,classNames:s,styles:l,className:c,style:d}=e;return f.createElement("div",{id:o,className:ce(`${r}-container`,s==null?void 0:s.container,c),style:{...l==null?void 0:l.container,...d},role:"tooltip"},typeof n=="function"?n():n)},po={shiftX:64,adjustY:1},mo={adjustX:1,shiftY:!0},In=[0,0],w0={left:{points:["cr","cl"],overflow:mo,offset:[-4,0],targetOffset:In},right:{points:["cl","cr"],overflow:mo,offset:[4,0],targetOffset:In},top:{points:["bc","tc"],overflow:po,offset:[0,-4],targetOffset:In},bottom:{points:["tc","bc"],overflow:po,offset:[0,4],targetOffset:In},topLeft:{points:["bl","tl"],overflow:po,offset:[0,-4],targetOffset:In},leftTop:{points:["tr","tl"],overflow:mo,offset:[-4,0],targetOffset:In},topRight:{points:["br","tr"],overflow:po,offset:[0,-4],targetOffset:In},rightTop:{points:["tl","tr"],overflow:mo,offset:[4,0],targetOffset:In},bottomRight:{points:["tr","br"],overflow:po,offset:[0,4],targetOffset:In},rightBottom:{points:["bl","br"],overflow:mo,offset:[4,0],targetOffset:In},bottomLeft:{points:["tl","bl"],overflow:po,offset:[0,4],targetOffset:In},leftBottom:{points:["br","bl"],overflow:mo,offset:[-4,0],targetOffset:In}};function Zl(){return Zl=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},Zl.apply(this,arguments)}const C0=f.forwardRef((e,n)=>{const{trigger:r=["hover"],mouseEnterDelay:o=0,mouseLeaveDelay:s=.1,prefixCls:l="rc-tooltip",children:c,onVisibleChange:d,afterVisibleChange:h,motion:g,placement:m="right",align:v={},destroyOnHidden:y=!1,defaultVisible:C,getTooltipContainer:_,arrowContent:x,overlay:b,id:E,showArrow:S=!0,classNames:P,styles:I,...M}=e,k=Ki(E),N=A.useRef(null);A.useImperativeHandle(n,()=>N.current);const R={...M};"visible"in e&&(R.popupVisible=e.visible);const B=f.useMemo(()=>{if(!S)return!1;const $=S===!0?{}:S;return{...$,className:ce($.className,P==null?void 0:P.arrow),style:{...$.style,...I==null?void 0:I.arrow},content:$.content??x}},[S,P==null?void 0:P.arrow,I==null?void 0:I.arrow,x]),z=({open:$})=>{const j=f.Children.only(c),V={"aria-describedby":b&&$?k:void 0};return f.cloneElement(j,V)};return f.createElement(dl,Zl({popupClassName:P==null?void 0:P.root,prefixCls:l,popup:f.createElement(yh,{key:"content",prefixCls:l,id:k,classNames:P,styles:I},b),action:r,builtinPlacements:w0,popupPlacement:m,ref:N,popupAlign:v,getPopupContainer:_,onOpenChange:d,afterOpenChange:h,popupMotion:g,defaultPopupVisible:C,autoDestroy:y,mouseLeaveDelay:s,popupStyle:I==null?void 0:I.root,mouseEnterDelay:o,arrow:B,uniqueContainerClassName:P==null?void 0:P.uniqueContainer,uniqueContainerStyle:I==null?void 0:I.uniqueContainer},R),z)});function bh(e){const{sizePopupArrow:n,borderRadiusXS:r,borderRadiusOuter:o}=e,s=n/2,l=0,c=s,d=o*1/Math.sqrt(2),h=s-o*(1-1/Math.sqrt(2)),g=s-r*(1/Math.sqrt(2)),m=o*(Math.sqrt(2)-1)+r*(1/Math.sqrt(2)),v=2*s-g,y=m,C=2*s-d,_=h,x=2*s-l,b=c,E=s*Math.sqrt(2)+o*(Math.sqrt(2)-2),S=o*(Math.sqrt(2)-1),P=`polygon(${S}px 100%, 50% ${S}px, ${2*s-S}px 100%, ${S}px 100%)`,I=`path('M ${l} ${c} A ${o} ${o} 0 0 0 ${d} ${h} L ${g} ${m} A ${r} ${r} 0 0 1 ${v} ${y} L ${C} ${_} A ${o} ${o} 0 0 0 ${x} ${b} Z')`;return{arrowShadowWidth:E,arrowPath:I,arrowPolygon:P}}const S0=(e,n,r)=>{const{sizePopupArrow:o,arrowPolygon:s,arrowPath:l,arrowShadowWidth:c,borderRadiusXS:d,calc:h}=e;return{pointerEvents:"none",width:o,height:o,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:o,height:h(o).div(2).equal(),background:n,clipPath:{_multi_value_:!0,value:[s,l]},content:'""'},"&::after":{content:'""',position:"absolute",width:c,height:c,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${Le(d)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:r,zIndex:0,background:"transparent"}}},_h=8;function Ul(e){const{contentRadius:n,limitVerticalRadius:r}=e,o=n>12?n+2:12;return{arrowOffsetHorizontal:o,arrowOffsetVertical:r?_h:o}}function ps(e,n){return e?n:{}}const xh=(e,n,r)=>{const{componentCls:o,boxShadowPopoverArrow:s,arrowOffsetVertical:l,arrowOffsetHorizontal:c,antCls:d}=e,[h]=gr(d,"tooltip"),{arrowDistance:g=0,arrowPlacement:m={left:!0,right:!0,top:!0,bottom:!0}}=r||{};return{[o]:{[`${o}-arrow`]:[{position:"absolute",zIndex:1,display:"block",...S0(e,n,s),"&:before":{background:n}}],...ps(!!m.top,{[[`&-placement-top > ${o}-arrow`,`&-placement-topLeft > ${o}-arrow`,`&-placement-topRight > ${o}-arrow`].join(",")]:{bottom:g,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${o}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{[h("arrow-offset-horizontal")]:c,[`> ${o}-arrow`]:{left:{_skip_check_:!0,value:c}}},"&-placement-topRight":{[h("arrow-offset-horizontal")]:`calc(100% - ${Le(c)})`,[`> ${o}-arrow`]:{right:{_skip_check_:!0,value:c}}}}),...ps(!!m.bottom,{[[`&-placement-bottom > ${o}-arrow`,`&-placement-bottomLeft > ${o}-arrow`,`&-placement-bottomRight > ${o}-arrow`].join(",")]:{top:g,transform:"translateY(-100%)"},[`&-placement-bottom > ${o}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{[h("arrow-offset-horizontal")]:c,[`> ${o}-arrow`]:{left:{_skip_check_:!0,value:c}}},"&-placement-bottomRight":{[h("arrow-offset-horizontal")]:`calc(100% - ${Le(c)})`,[`> ${o}-arrow`]:{right:{_skip_check_:!0,value:c}}}}),...ps(!!m.left,{[[`&-placement-left > ${o}-arrow`,`&-placement-leftTop > ${o}-arrow`,`&-placement-leftBottom > ${o}-arrow`].join(",")]:{right:{_skip_check_:!0,value:g},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${o}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${o}-arrow`]:{top:l},[`&-placement-leftBottom > ${o}-arrow`]:{bottom:l}}),...ps(!!m.right,{[[`&-placement-right > ${o}-arrow`,`&-placement-rightTop > ${o}-arrow`,`&-placement-rightBottom > ${o}-arrow`].join(",")]:{left:{_skip_check_:!0,value:g},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${o}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${o}-arrow`]:{top:l},[`&-placement-rightBottom > ${o}-arrow`]:{bottom:l}})}}};function E0(e,n,r,o){if(o===!1)return{adjustX:!1,adjustY:!1};const s=o&&typeof o=="object"?o:{},l={};switch(e){case"top":case"bottom":l.shiftX=n.arrowOffsetHorizontal*2+r,l.shiftY=!0,l.adjustY=!0;break;case"left":case"right":l.shiftY=n.arrowOffsetVertical*2+r,l.shiftX=!0,l.adjustX=!0;break}const c={...l,...s};return c.shiftX||(c.adjustX=!0),c.shiftY||(c.adjustY=!0),c}const wh={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},P0={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},I0=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function Ch(e){const{arrowWidth:n,autoAdjustOverflow:r,arrowPointAtCenter:o,offset:s,borderRadius:l,visibleFirst:c}=e,d=n/2,h={},g=Ul({contentRadius:l,limitVerticalRadius:!0});return Object.keys(wh).forEach(m=>{const y={...o&&P0[m]||wh[m],offset:[0,0],dynamicInset:!0};switch(h[m]=y,I0.has(m)&&(y.autoArrow=!1),m){case"top":case"topLeft":case"topRight":y.offset[1]=-d-s;break;case"bottom":case"bottomLeft":case"bottomRight":y.offset[1]=d+s;break;case"left":case"leftTop":case"leftBottom":y.offset[0]=-d-s;break;case"right":case"rightTop":case"rightBottom":y.offset[0]=d+s;break}if(o)switch(m){case"topLeft":case"bottomLeft":y.offset[0]=-g.arrowOffsetHorizontal-d;break;case"topRight":case"bottomRight":y.offset[0]=g.arrowOffsetHorizontal+d;break;case"leftTop":case"rightTop":y.offset[1]=-g.arrowOffsetHorizontal*2+d;break;case"leftBottom":case"rightBottom":y.offset[1]=g.arrowOffsetHorizontal*2-d;break}y.overflow=E0(m,g,n,r),c&&(y.htmlRegion="visibleFirst")}),h}const T0=(e,n)=>{const r=o=>typeof o=="boolean"?{show:o}:o||{};return A.useMemo(()=>{const o=r(e),s=r(n);return{...s,...o,show:o.show??s.show??!0}},[e,n])},Sh="50%",A0=e=>{const{calc:n,componentCls:r,tooltipMaxWidth:o,tooltipColor:s,tooltipBg:l,tooltipBorderRadius:c,zIndexPopup:d,controlHeight:h,boxShadowSecondary:g,paddingSM:m,paddingXS:v,arrowOffsetHorizontal:y,sizePopupArrow:C,antCls:_}=e,[x,b]=gr(_,"tooltip"),E=n(c).add(C).add(y).equal(),P={minWidth:n(c).mul(2).add(C).equal(),minHeight:h,padding:`${Le(e.calc(m).div(2).equal())} ${Le(v)}`,color:b("overlay-color",s),textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:l,borderRadius:c,boxShadow:g,boxSizing:"border-box"},I={[x("valid-offset-x")]:b("arrow-offset-horizontal","var(--arrow-x)"),transformOrigin:[b("valid-offset-x",Sh),`var(--arrow-y, ${Sh})`].join(" ")};return[{[r]:{...Xr(e),position:"absolute",zIndex:d,display:"block",width:"max-content",maxWidth:o,visibility:"visible",...I,"&-hidden":{display:"none"},[x("arrow-background-color")]:l,[`${r}-container`]:[P,Ab(e,!0)],[`&:has(~ ${r}-unique-container)`]:{[`${r}-container`]:{border:"none",background:"transparent",boxShadow:"none"}},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:E},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${r}-inner`]:{borderRadius:e.min(c,_h)}},[`${r}-content`]:{position:"relative"},...yv(e,(M,{darkColor:k})=>({[`&${r}-${M}`]:{[`${r}-container`]:{backgroundColor:k},[`${r}-arrow`]:{[x("arrow-background-color")]:k}}})),"&-rtl":{direction:"rtl"}}},xh(e,b("arrow-background-color")),{[`${r}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}},{[`${r}-unique-container`]:{...P,...I,position:"absolute",zIndex:n(d).sub(1).equal(),"&-hidden":{display:"none"},"&-visible":{transition:`all ${e.motionDurationSlow}`}}}]},M0=e=>({zIndexPopup:e.zIndexPopupBase+70,maxWidth:250,...Ul({contentRadius:e.borderRadius,limitVerticalRadius:!0}),...bh(_n(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))}),Eh=(e,n,r=!0)=>Vn("Tooltip",s=>{const{borderRadius:l,colorTextLightSolid:c,colorBgSpotlight:d,maxWidth:h}=s,g=_n(s,{tooltipMaxWidth:h,tooltipColor:c,tooltipBorderRadius:l,tooltipBg:d});return[A0(g),Ml(s,"zoom-big-fast")]},M0,{resetStyle:!1,injectStyle:r})(e,n),L0=Or.map(e=>`${e}-inverse`);function O0(e,n=!0){return n?[].concat(bn(L0),bn(Or)).includes(e):Or.includes(e)}const Ph=(e,n,r)=>{const o=O0(r),[s]=gr(e,"tooltip"),l=ce({[`${n}-${r}`]:r&&o}),c={},d={},h=t_(r).toRgb(),m=(.299*h.r+.587*h.g+.114*h.b)/255<.5?"#FFF":"#000";return r&&!o&&(c.background=r,c[s("overlay-color")]=m,d[s("arrow-background-color")]=r),{className:l,overlayStyle:c,arrowStyle:d}},N0=e=>{const{prefixCls:n,className:r,placement:o="top",title:s,color:l,overlayInnerStyle:c,classNames:d,styles:h}=e,{getPrefixCls:g}=f.useContext(Ot),m=g("tooltip",n),v=g(),y=no(m),[C,_]=Eh(m,y),x=Ph(v,m,l),b=x.arrowStyle,E=f.useMemo(()=>({container:{...c,...x.overlayStyle}}),[c,x.overlayStyle]),S={...e,placement:o},[P,I]=kr([d],[E,h],{props:S}),M=ce(y,C,_,m,`${m}-pure`,`${m}-placement-${o}`,r,x.className);return f.createElement("div",{className:M,style:b},f.createElement("div",{className:`${m}-arrow`}),f.createElement(yh,{...e,className:C,prefixCls:m,classNames:P,styles:I},s))},ms=f.forwardRef((e,n)=>{const{prefixCls:r,openClassName:o,getTooltipContainer:s,color:l,children:c,afterOpenChange:d,arrow:h,destroyTooltipOnHide:g,destroyOnHidden:m,title:v,overlay:y,trigger:C,builtinPlacements:_,autoAdjustOverflow:x=!0,motion:b,getPopupContainer:E,placement:S="top",mouseEnterDelay:P=.1,mouseLeaveDelay:I=.1,rootClassName:M,styles:k,classNames:N,onOpenChange:R,overlayInnerStyle:B,overlayStyle:z,overlayClassName:$,...j}=e,[,V]=mr(),{getPopupContainer:W,getPrefixCls:F,direction:X,className:J,style:Z,classNames:le,styles:G,arrow:ie,trigger:ne}=Ur("tooltip"),de=T0(h,ie),oe=de.show,ee=C||ne||"hover",K=hn("Tooltip"),Y=f.useRef(null),se=()=>{var Ve;(Ve=Y.current)==null||Ve.forceAlign()};f.useImperativeHandle(n,()=>{var Ve,Ye;return{forceAlign:se,nativeElement:(Ve=Y.current)==null?void 0:Ve.nativeElement,popupElement:(Ye=Y.current)==null?void 0:Ye.popupElement}}),process.env.NODE_ENV!=="production"&&([["overlayStyle","styles.root"],["overlayInnerStyle","styles.container"],["overlayClassName","classNames.root"],["destroyTooltipOnHide","destroyOnHidden"]].forEach(([Ve,Ye])=>{K.deprecated(!(Ve in e),Ve,Ye)}),process.env.NODE_ENV!=="production"&&K(!g||typeof g=="boolean","usage","`destroyTooltipOnHide` no need config `keepParent` anymore. Please use `boolean` value directly."));const[fe,xe]=qn(e.defaultOpen??!1,e.open),Se=!v&&!y&&v!==0,Te=Ve=>{xe(Se?!1:Ve),!Se&&R&&R(Ve)},Ce=f.useMemo(()=>_||Ch({arrowPointAtCenter:(de==null?void 0:de.pointAtCenter)??!1,autoAdjustOverflow:x,arrowWidth:oe?V.sizePopupArrow:0,borderRadius:V.borderRadius,offset:V.marginXXS,visibleFirst:!0}),[de,_,V,oe,x]),te=f.useMemo(()=>v===0?v:y||v||"",[y,v]),we=f.createElement(ph,{space:!0,form:!0},typeof te=="function"?te():te),Pe={...e,trigger:ee,color:l,placement:S,builtinPlacements:_,openClassName:o,arrow:h,autoAdjustOverflow:x,getPopupContainer:E,children:c,destroyTooltipOnHide:g,destroyOnHidden:m},[Ae,Ze]=kr([le,N],[G,k],{props:Pe}),Be=F("tooltip",r),nt=F(),Ge=e["data-popover-inject"];let Ke=fe;!("open"in e)&&Se&&(Ke=!1);const ze=f.isValidElement(c)&&!bf(c)?c:f.createElement("span",null,c),De=ze.props,ot=!De.className||typeof De.className=="string"?ce(De.className,o||`${Be}-open`):De.className,St=no(Be),[pt,dt]=Eh(Be,St,!Ge),mt=Ph(nt,Be,l),Oe=mt.arrowStyle,he=ce(St,pt,dt),_e=ce($,{[`${Be}-rtl`]:X==="rtl"},mt.className,M,he,J,Ae.root),[rt,$e]=rl("Tooltip",j.zIndex),ge={...Ze.container,...B,...mt.overlayStyle},Qe=f.createElement(C0,{unique:!0,...j,trigger:ee,zIndex:rt,showArrow:oe,placement:S,mouseEnterDelay:P,mouseLeaveDelay:I,prefixCls:Be,classNames:{root:_e,container:Ae.container,arrow:Ae.arrow,uniqueContainer:ce(he,Ae.container)},styles:{root:{...Oe,...Ze.root,...Z,...z},container:ge,uniqueContainer:ge,arrow:Ze.arrow},getTooltipContainer:E||s||W,ref:Y,builtinPlacements:Ce,overlay:we,visible:Ke,onVisibleChange:Te,afterVisibleChange:d,arrowContent:f.createElement("span",{className:`${Be}-arrow-content`}),motion:{motionName:Zy(nt,"zoom-big-fast",typeof(b==null?void 0:b.motionName)=="string"?b==null?void 0:b.motionName:void 0),motionDeadline:1e3},destroyOnHidden:m??!!g},Ke?nr(ze,{className:ot}):ze);return f.createElement(nl.Provider,{value:$e},Qe)});process.env.NODE_ENV!=="production"&&(ms.displayName="Tooltip"),ms._InternalPanelDoNotUseOrYouWillBeFired=N0,ms.UniqueProvider=_f;const Ih=ms;var k0={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"};const R0=k0;function ql(){return ql=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},ql.apply(this,arguments)}const $0=(e,n)=>f.createElement(Ko,ql({},e,{ref:n,icon:R0})),Th=f.forwardRef($0);process.env.NODE_ENV!=="production"&&(Th.displayName="LeftOutlined");const Gl=Th,{ESC:B0,TAB:z0}=Ie;function D0({visible:e,triggerRef:n,onVisibleChange:r,autoFocus:o,overlayRef:s}){const l=f.useRef(!1),c=()=>{var g,m;e&&((m=(g=n.current)==null?void 0:g.focus)==null||m.call(g),r==null||r(!1))},d=()=>{var g;return(g=s.current)!=null&&g.focus?(s.current.focus(),l.current=!0,!0):!1},h=g=>{switch(g.keyCode){case B0:c();break;case z0:{let m=!1;l.current||(m=d()),m?g.preventDefault():c();break}}};f.useEffect(()=>e?(window.addEventListener("keydown",h),o&&Ut(d,3),()=>{window.removeEventListener("keydown",h),l.current=!1}):()=>{l.current=!1},[e])}const F0=A.forwardRef((e,n)=>{const{overlay:r,arrow:o,prefixCls:s}=e,l=A.useMemo(()=>{let d;return typeof r=="function"?d=r():d=r,d},[r]),c=Sr(n,dr(l));return A.createElement(A.Fragment,null,o&&A.createElement("div",{className:`${s}-arrow`}),A.cloneElement(l,{ref:Er(l)?c:void 0}))}),go={adjustX:1,adjustY:1},vo=[0,0],H0={topLeft:{points:["bl","tl"],overflow:go,offset:[0,-4],targetOffset:vo},top:{points:["bc","tc"],overflow:go,offset:[0,-4],targetOffset:vo},topRight:{points:["br","tr"],overflow:go,offset:[0,-4],targetOffset:vo},bottomLeft:{points:["tl","bl"],overflow:go,offset:[0,4],targetOffset:vo},bottom:{points:["tc","bc"],overflow:go,offset:[0,4],targetOffset:vo},bottomRight:{points:["tr","br"],overflow:go,offset:[0,4],targetOffset:vo}};function Kl(){return Kl=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},Kl.apply(this,arguments)}const V0=A.forwardRef((e,n)=>{var G;const{arrow:r=!1,prefixCls:o="rc-dropdown",transitionName:s,animation:l,align:c,placement:d="bottomLeft",placements:h=H0,getPopupContainer:g,showAction:m,hideAction:v,overlayClassName:y,overlayStyle:C,visible:_,trigger:x=["hover"],autoFocus:b,overlay:E,children:S,onVisibleChange:P,...I}=e,[M,k]=A.useState(),N="visible"in e?_:M,R=l?`${o}-${l}`:s,B=A.useRef(null),z=A.useRef(null),$=A.useRef(null);A.useImperativeHandle(n,()=>B.current);const j=ie=>{k(ie),P==null||P(ie)};D0({visible:N,triggerRef:$,onVisibleChange:j,autoFocus:b,overlayRef:z});const V=ie=>{const{onOverlayClick:ne}=e;k(!1),ne&&ne(ie)},W=()=>A.createElement(F0,{ref:z,overlay:E,prefixCls:o,arrow:r}),F=()=>typeof E=="function"?W:W(),X=()=>{const{minOverlayWidthMatchTrigger:ie,alignPoint:ne}=e;return"minOverlayWidthMatchTrigger"in e?ie:!ne},J=()=>{const{openClassName:ie}=e;return ie!==void 0?ie:`${o}-open`},Z=A.cloneElement(S,{className:ce((G=S.props)==null?void 0:G.className,N&&J()),ref:Er(S)?Sr($,dr(S)):void 0});let le=v;return!le&&x.indexOf("contextMenu")!==-1&&(le=["click"]),A.createElement(dl,Kl({builtinPlacements:h},I,{prefixCls:o,ref:B,popupClassName:ce(y,{[`${o}-show-arrow`]:r}),popupStyle:C,action:x,showAction:m,hideAction:le,popupPlacement:d,popupAlign:c,popupMotion:{motionName:R},popupVisible:N,stretch:X()?"minWidth":"",popup:F(),onOpenChange:j,onPopupClick:V,getPopupContainer:g}),Z)}),W0=e=>typeof e!="object"&&typeof e!="function"||e===null,Ah=f.createContext(null);function Mh(e,n){return`${e}-${n}`}function Lh(e){const n=f.useContext(Ah);return Mh(n,e)}const $n=f.createContext(null);function j0(e,n){const r={...e};return Object.keys(n).forEach(o=>{const s=n[o];s!==void 0&&(r[o]=s)}),r}function si({children:e,locked:n,...r}){const o=f.useContext($n),s=Ei(()=>j0(o,r),[o,r],(l,c)=>!n&&(l[0]!==c[0]||!$o(l[1],c[1],!0)));return f.createElement($n.Provider,{value:s},e)}const Z0=[],Oh=f.createContext(null);function gs(){return f.useContext(Oh)}const Nh=f.createContext(Z0);function yo(e){const n=f.useContext(Nh);return f.useMemo(()=>e!==void 0?[...n,e]:n,[n,e])}const kh=f.createContext(null),Ql=f.createContext({}),{LEFT:Yl,RIGHT:Xl,UP:Jl,DOWN:vs,ENTER:ys,ESC:Rh,HOME:ai,END:li}=Ie,$h=[Jl,vs,Yl,Xl];function U0(e,n,r,o){var C;const s="prev",l="next",c="children",d="parent";if(e==="inline"&&o===ys)return{inlineTrigger:!0};const h={[Jl]:s,[vs]:l},g={[Yl]:r?l:s,[Xl]:r?s:l,[vs]:c,[ys]:c},m={[Jl]:s,[vs]:l,[ys]:c,[Rh]:d,[Yl]:r?c:d,[Xl]:r?d:c};switch((C={inline:h,horizontal:g,vertical:m,inlineSub:h,horizontalSub:m,verticalSub:m}[`${e}${n?"":"Sub"}`])==null?void 0:C[o]){case s:return{offset:-1,sibling:!0};case l:return{offset:1,sibling:!0};case d:return{offset:-1,sibling:!1};case c:return{offset:1,sibling:!1};default:return null}}function q0(e){let n=e;for(;n;){if(n.getAttribute("data-menu-list"))return n;n=n.parentElement}return null}function G0(e,n){let r=e||document.activeElement;for(;r;){if(n.has(r))return r;r=r.parentElement}return null}function ec(e,n){return __(e,!0).filter(o=>n.has(o))}function Bh(e,n,r,o=1){if(!e)return null;const s=ec(e,n),l=s.length;let c=s.findIndex(d=>r===d);return o<0?c===-1?c=l-1:c-=1:o>0&&(c+=1),c=(c+l)%l,s[c]}const bs=(e,n)=>{const r=new Set,o=new Map,s=new Map;return e.forEach(l=>{const c=document.querySelector(`[data-menu-id='${Mh(n,l)}']`);c&&(r.add(c),s.set(c,l),o.set(l,c))}),{elements:r,key2element:o,element2key:s}};function K0(e,n,r,o,s,l,c,d,h,g){const m=f.useRef(),v=f.useRef();v.current=n;const y=()=>{Ut.cancel(m.current)};return f.useEffect(()=>()=>{y()},[]),C=>{const{which:_}=C;if([...$h,ys,Rh,ai,li].includes(_)){const x=l();let b=bs(x,o);const{elements:E,key2element:S,element2key:P}=b,I=S.get(n),M=G0(I,E),k=P.get(M),N=U0(e,c(k,!0).length===1,r,_);if(!N&&_!==ai&&_!==li)return;($h.includes(_)||[ai,li].includes(_))&&C.preventDefault();const R=B=>{if(B){let z=B;const $=B.querySelector("a");$!=null&&$.getAttribute("href")&&(z=$);const j=P.get(B);d(j),y(),m.current=Ut(()=>{v.current===j&&z.focus()})}};if([ai,li].includes(_)||N.sibling||!M){let B;!M||e==="inline"?B=s.current:B=q0(M);let z;const $=ec(B,E);_===ai?z=$[0]:_===li?z=$[$.length-1]:z=Bh(B,E,M,N.offset),R(z)}else if(N.inlineTrigger)h(k);else if(N.offset>0)h(k,!0),y(),m.current=Ut(()=>{b=bs(x,o);const B=M.getAttribute("aria-controls"),z=document.getElementById(B),$=Bh(z,b.elements);R($)},5);else if(N.offset<0){const B=c(k,!0),z=B[B.length-2],$=S.get(z);h(z,!1),R($)}}g==null||g(C)}}function Q0(e){Promise.resolve().then(e)}const tc="__RC_UTIL_PATH_SPLIT__",zh=e=>e.join(tc),Y0=e=>e.split(tc),nc="rc-menu-more";function X0(){const[,e]=f.useState({}),n=A.useRef(new Map),r=A.useRef(new Map),[o,s]=f.useState([]),l=A.useRef(0),c=A.useRef(!1),d=()=>{c.current||e({})},h=A.useCallback((x,b)=>{process.env.NODE_ENV!=="production"&&ct(!n.current.has(x),`Duplicated key '${x}' used in Menu by path [${b.join(" > ")}]`);const E=zh(b);r.current.set(E,x),n.current.set(x,E),l.current+=1;const S=l.current;Q0(()=>{S===l.current&&d()})},[]),g=A.useCallback((x,b)=>{const E=zh(b);r.current.delete(E),n.current.delete(x)},[]),m=A.useCallback(x=>{s(x)},[]),v=A.useCallback((x,b)=>{const E=n.current.get(x)||"",S=Y0(E);return b&&o.includes(S[0])&&S.unshift(nc),S},[o]),y=A.useCallback((x,b)=>x.filter(E=>E!==void 0).some(E=>v(E,!0).includes(b)),[v]),C=()=>{const x=[...n.current.keys()];return o.length&&x.push(nc),x},_=A.useCallback(x=>{const b=`${n.current.get(x)}${tc}`,E=new Set;return[...r.current.keys()].forEach(S=>{S.startsWith(b)&&E.add(r.current.get(S))}),E},[]);return f.useEffect(()=>()=>{c.current=!0},[]),{registerPath:h,unregisterPath:g,refreshOverflowKeys:m,isSubPathKey:y,getKeyPath:v,getKeys:C,getSubPathKeys:_}}function ci(e){const n=f.useRef(e);n.current=e;const r=f.useCallback((...o)=>{var s;return(s=n.current)==null?void 0:s.call(n,...o)},[]);return e?r:void 0}function Dh(e,n,r,o){const{activeKey:s,onActive:l,onInactive:c}=f.useContext($n),d={active:s===e};return n||(d.onMouseEnter=h=>{r==null||r({key:e,domEvent:h}),l(e)},d.onMouseLeave=h=>{o==null||o({key:e,domEvent:h}),c(e)}),d}function Fh(e){const{mode:n,rtl:r,inlineIndent:o}=f.useContext($n);if(n!=="inline")return null;const s=e;return r?{paddingRight:s*o}:{paddingLeft:s*o}}function Hh({icon:e,props:n,children:r}){let o;return e===null||e===!1?null:(typeof e=="function"?o=f.createElement(e,{...n}):typeof e!="boolean"&&(o=e),o||r||null)}function _s({item:e,...n}){return Object.defineProperty(n,"item",{get:()=>(ct(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),e)}),n}function ui(){return ui=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},ui.apply(this,arguments)}class J0 extends f.Component{render(){const{title:n,attribute:r,elementRef:o,...s}=this.props,l=Sn(s,["eventKey","popupClassName","popupOffset","onTitleClick"]);return ct(!r,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),f.createElement(or.Item,ui({},r,{title:typeof n=="string"?n:void 0},l,{ref:o}))}}const ex=f.forwardRef((e,n)=>{const{style:r,className:o,eventKey:s,warnKey:l,disabled:c,itemIcon:d,children:h,role:g,onMouseEnter:m,onMouseLeave:v,onClick:y,onKeyDown:C,onFocus:_,...x}=e,b=Lh(s),{prefixCls:E,onItemClick:S,disabled:P,overflowDisabled:I,itemIcon:M,selectedKeys:k,onActive:N}=f.useContext($n),{_internalRenderMenuItem:R}=f.useContext(Ql),B=`${E}-item`,z=f.useRef(),$=f.useRef(),j=P||c,V=Wr(n,$),W=yo(s);process.env.NODE_ENV!=="production"&&l&&ct(!1,"MenuItem should not leave undefined `key`.");const F=K=>({key:s,keyPath:[...W].reverse(),item:z.current,domEvent:K}),X=d||M,{active:J,...Z}=Dh(s,j,m,v),le=k.includes(s),G=Fh(W.length),ie=K=>{if(j)return;const Y=F(K);y==null||y(_s(Y)),S(Y)},ne=K=>{if(C==null||C(K),K.which===Ie.ENTER){const Y=F(K);y==null||y(_s(Y)),S(Y)}},de=K=>{N(s),_==null||_(K)},oe={};e.role==="option"&&(oe["aria-selected"]=le);let ee=f.createElement(J0,ui({ref:z,elementRef:V,role:g===null?"none":g||"menuitem",tabIndex:c?null:-1,"data-menu-id":I&&b?null:b},Sn(x,["extra"]),Z,oe,{component:"li","aria-disabled":c,style:{...G,...r},className:ce(B,{[`${B}-active`]:J,[`${B}-selected`]:le,[`${B}-disabled`]:j},o),onClick:ie,onKeyDown:ne,onFocus:de}),h,f.createElement(Hh,{props:{...e,isSelected:le},icon:X}));return R&&(ee=R(ee,e,{selected:le})),ee});function tx(e,n){const{eventKey:r}=e,o=gs(),s=yo(r);return f.useEffect(()=>{if(o)return o.registerPath(r,s),()=>{o.unregisterPath(r,s)}},[s]),o?null:f.createElement(ex,ui({},e,{ref:n}))}const xs=f.forwardRef(tx);function rc(){return rc=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},rc.apply(this,arguments)}const nx=({className:e,children:n,...r},o)=>{const{prefixCls:s,mode:l,rtl:c}=f.useContext($n);return f.createElement("ul",rc({className:ce(s,c&&`${s}-rtl`,`${s}-sub`,`${s}-${l==="inline"?"inline":"vertical"}`,e),role:"menu"},r,{"data-menu-list":!0,ref:o}),n)},oc=f.forwardRef(nx);process.env.NODE_ENV!=="production"&&(oc.displayName="SubMenuList");function ic(e,n){return Gn(e).map((r,o)=>{var s;if(f.isValidElement(r)){const{key:l}=r;let c=((s=r.props)==null?void 0:s.eventKey)??l;const d=c==null;d&&(c=`tmp_key-${[...n,o].join("-")}`);const h={key:c,eventKey:c};return process.env.NODE_ENV!=="production"&&d&&(h.warnKey=!0),f.cloneElement(r,h)}return r})}const nn={adjustX:1,adjustY:1},rx={topLeft:{points:["bl","tl"],overflow:nn},topRight:{points:["br","tr"],overflow:nn},bottomLeft:{points:["tl","bl"],overflow:nn},bottomRight:{points:["tr","br"],overflow:nn},leftTop:{points:["tr","tl"],overflow:nn},leftBottom:{points:["br","bl"],overflow:nn},rightTop:{points:["tl","tr"],overflow:nn},rightBottom:{points:["bl","br"],overflow:nn}},ox={topLeft:{points:["bl","tl"],overflow:nn},topRight:{points:["br","tr"],overflow:nn},bottomLeft:{points:["tl","bl"],overflow:nn},bottomRight:{points:["tr","br"],overflow:nn},rightTop:{points:["tr","tl"],overflow:nn},rightBottom:{points:["br","bl"],overflow:nn},leftTop:{points:["tl","tr"],overflow:nn},leftBottom:{points:["bl","br"],overflow:nn}};function Vh(e,n,r){if(n)return n;if(r)return r[e]||r.other}const ix={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function sx({prefixCls:e,visible:n,children:r,popup:o,popupStyle:s,popupClassName:l,popupOffset:c,disabled:d,mode:h,onVisibleChange:g}){const{getPopupContainer:m,rtl:v,subMenuOpenDelay:y,subMenuCloseDelay:C,builtinPlacements:_,triggerSubMenuAction:x,forceSubMenuRender:b,rootClassName:E,motion:S,defaultMotions:P}=f.useContext($n),[I,M]=f.useState(!1),k=v?{...ox,..._}:{...rx,..._},N=ix[h],R=Vh(h,S,P),B=f.useRef(R);h!=="inline"&&(B.current=R);const z={...B.current,leavedClassName:`${e}-hidden`,removeOnLeave:!1,motionAppear:!0},$=f.useRef();return f.useEffect(()=>($.current=Ut(()=>{M(n)}),()=>{Ut.cancel($.current)}),[n]),f.createElement(dl,{prefixCls:e,popupClassName:ce(`${e}-popup`,{[`${e}-rtl`]:v},l,E),stretch:h==="horizontal"?"minWidth":null,getPopupContainer:m,builtinPlacements:k,popupPlacement:N,popupVisible:I,popup:o,popupStyle:s,popupAlign:c&&{offset:c},action:d?[]:[x],mouseEnterDelay:y,mouseLeaveDelay:C,onPopupVisibleChange:g,forceRender:b,popupMotion:z,fresh:!0},r)}function sc(){return sc=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},sc.apply(this,arguments)}function ax({id:e,open:n,keyPath:r,children:o}){const s="inline",{prefixCls:l,forceSubMenuRender:c,motion:d,defaultMotions:h,mode:g}=f.useContext($n),m=f.useRef(!1);m.current=g===s;const[v,y]=f.useState(!m.current),C=m.current?n:!1;f.useEffect(()=>{m.current&&y(!1)},[g]);const _={...Vh(s,d,h)};r.length>1&&(_.motionAppear=!1);const x=_.onVisibleChanged;return _.onVisibleChanged=b=>(!m.current&&!b&&y(!0),x==null?void 0:x(b)),v?null:f.createElement(si,{mode:s,locked:!m.current},f.createElement(Nr,sc({visible:C},_,{forceRender:c,removeOnLeave:!1,leavedClassName:`${l}-hidden`}),({className:b,style:E})=>f.createElement(oc,{id:e,className:b,style:E},o)))}function di(){return di=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},di.apply(this,arguments)}const lx=f.forwardRef((e,n)=>{const{style:r,className:o,styles:s,classNames:l,title:c,eventKey:d,warnKey:h,disabled:g,internalPopupClose:m,children:v,itemIcon:y,expandIcon:C,popupClassName:_,popupOffset:x,popupStyle:b,onClick:E,onMouseEnter:S,onMouseLeave:P,onTitleClick:I,onTitleMouseEnter:M,onTitleMouseLeave:k,popupRender:N,...R}=e,B=Lh(d),{prefixCls:z,mode:$,openKeys:j,disabled:V,overflowDisabled:W,activeKey:F,selectedKeys:X,itemIcon:J,expandIcon:Z,onItemClick:le,onOpenChange:G,onActive:ie,popupRender:ne}=f.useContext($n),{_internalRenderSubMenuItem:de}=f.useContext(Ql),{isSubPathKey:oe}=f.useContext(kh),ee=yo(),K=`${z}-submenu`,Y=V||g,se=f.useRef(),fe=f.useRef();process.env.NODE_ENV!=="production"&&h&&ct(!1,"SubMenu should not leave undefined `key`.");const xe=y??J,Se=C??Z,Te=j.includes(d),Ce=!W&&Te,te=oe(X,d),{active:we,...Pe}=Dh(d,Y,M,k),[Ae,Ze]=f.useState(!1),Be=ge=>{Y||Ze(ge)},nt=ge=>{Be(!0),S==null||S({key:d,domEvent:ge})},Ge=ge=>{Be(!1),P==null||P({key:d,domEvent:ge})},Ke=f.useMemo(()=>we||($!=="inline"?Ae||oe([F],d):!1),[$,we,F,Ae,d,oe]),ze=Fh(ee.length),De=ge=>{Y||(I==null||I({key:d,domEvent:ge}),$==="inline"&&G(d,!Te))},ot=ci(ge=>{E==null||E(_s(ge)),le(ge)}),St=ge=>{$!=="inline"&&G(d,ge)},pt=()=>{ie(d)},dt=B&&`${B}-popup`,mt=f.useMemo(()=>f.createElement(Hh,{icon:$!=="horizontal"?Se:void 0,props:{...e,isOpen:Ce,isSubMenu:!0}},f.createElement("i",{className:`${K}-arrow`})),[$,Se,e,Ce,K]);let Oe=f.createElement("div",di({role:"menuitem",style:ze,className:`${K}-title`,tabIndex:Y?null:-1,ref:se,title:typeof c=="string"?c:null,"data-menu-id":W&&B?null:B,"aria-expanded":Ce,"aria-haspopup":!0,"aria-controls":dt,"aria-disabled":Y,onClick:De,onFocus:pt},Pe),c,mt);const he=f.useRef($);$!=="inline"&&ee.length>1?he.current="vertical":he.current=$;const _e=he.current,rt=f.useMemo(()=>{const ge=f.createElement(si,{classNames:l,styles:s,mode:_e==="horizontal"?"vertical":_e},f.createElement(oc,{id:dt,ref:fe},v)),Qe=N||ne;return Qe?Qe(ge,{item:e,keys:ee}):ge},[N,ne,ee,dt,v,e,_e]);if(!W){const ge=he.current;Oe=f.createElement(sx,{mode:ge,prefixCls:K,visible:!m&&Ce&&$!=="inline",popupClassName:_,popupOffset:x,popupStyle:b,popup:rt,disabled:Y,onVisibleChange:St},Oe)}let $e=f.createElement(or.Item,di({ref:n,role:"none"},R,{component:"li",style:r,className:ce(K,`${K}-${$}`,o,{[`${K}-open`]:Ce,[`${K}-active`]:Ke,[`${K}-selected`]:te,[`${K}-disabled`]:Y}),onMouseEnter:nt,onMouseLeave:Ge}),Oe,!W&&f.createElement(ax,{id:dt,open:Ce,keyPath:ee},v));return de&&($e=de($e,e,{selected:te,active:Ke,open:Ce,disabled:Y})),f.createElement(si,{classNames:l,styles:s,onItemClick:ot,mode:$==="horizontal"?"vertical":$,itemIcon:xe,expandIcon:Se},$e)}),fi=f.forwardRef((e,n)=>{const{eventKey:r,children:o}=e,s=yo(r),l=ic(o,s),c=gs();f.useEffect(()=>{if(c)return c.registerPath(r,s),()=>{c.unregisterPath(r,s)}},[s]);let d;return c?d=l:d=f.createElement(lx,di({ref:n},e),l),f.createElement(Nh.Provider,{value:s},d)});process.env.NODE_ENV!=="production"&&(fi.displayName="SubMenu");function ac({className:e,style:n}){const{prefixCls:r}=f.useContext($n);return gs()?null:f.createElement("li",{role:"separator",className:ce(`${r}-item-divider`,e),style:n})}function ws(){return ws=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},ws.apply(this,arguments)}const cx=f.forwardRef((e,n)=>{const{className:r,title:o,eventKey:s,children:l,...c}=e,{prefixCls:d,classNames:h,styles:g}=f.useContext($n),m=`${d}-item-group`;return f.createElement("li",ws({ref:n,role:"presentation"},c,{onClick:v=>v.stopPropagation(),className:ce(m,r)}),f.createElement("div",{role:"presentation",className:ce(`${m}-title`,h==null?void 0:h.listTitle),style:g==null?void 0:g.listTitle,title:typeof o=="string"?o:void 0},o),f.createElement("ul",{role:"group",className:ce(`${m}-list`,h==null?void 0:h.list),style:g==null?void 0:g.list},l))}),Cs=f.forwardRef((e,n)=>{const{eventKey:r,children:o}=e,s=yo(r),l=ic(o,s);return gs()?l:f.createElement(cx,ws({ref:n},Sn(e,["warnKey"])),l)});process.env.NODE_ENV!=="production"&&(Cs.displayName="MenuItemGroup");function bo(){return bo=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},bo.apply(this,arguments)}function lc(e,n,r){const{item:o,group:s,submenu:l,divider:c}=n;return(e||[]).map((d,h)=>{if(d&&typeof d=="object"){const{label:g,children:m,key:v,type:y,extra:C,..._}=d,x=v??`tmp-${h}`;return m||y==="group"?y==="group"?f.createElement(s,bo({key:x},_,{title:g}),lc(m,n,r)):f.createElement(l,bo({key:x},_,{title:g}),lc(m,n,r)):y==="divider"?f.createElement(c,bo({key:x},_)):f.createElement(o,bo({key:x},_,{extra:C}),g,(!!C||C===0)&&f.createElement("span",{className:`${r}-item-extra`},C))}return null}).filter(d=>d)}function Wh(e,n,r,o,s){let l=e;const c={divider:ac,item:xs,group:Cs,submenu:fi,...o};return n&&(l=lc(n,c,s)),ic(l,r)}function cc(){return cc=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},cc.apply(this,arguments)}const zr=[],hi=f.forwardRef((e,n)=>{var Ee;const{prefixCls:r="rc-menu",rootClassName:o,style:s,className:l,styles:c,classNames:d,tabIndex:h=0,items:g,children:m,direction:v,id:y,mode:C="vertical",inlineCollapsed:_,disabled:x,disabledOverflow:b,subMenuOpenDelay:E=.1,subMenuCloseDelay:S=.1,forceSubMenuRender:P,defaultOpenKeys:I,openKeys:M,activeKey:k,defaultActiveFirst:N,selectable:R=!0,multiple:B=!1,defaultSelectedKeys:z,selectedKeys:$,onSelect:j,onDeselect:V,inlineIndent:W=24,motion:F,defaultMotions:X,triggerSubMenuAction:J="hover",builtinPlacements:Z,itemIcon:le,expandIcon:G,overflowedIndicator:ie="...",overflowedIndicatorPopupClassName:ne,getPopupContainer:de,onClick:oe,onOpenChange:ee,onKeyDown:K,openAnimation:Y,openTransitionName:se,_internalRenderMenuItem:fe,_internalRenderSubMenuItem:xe,_internalComponents:Se,popupRender:Te,...Ce}=e,[te,we]=f.useMemo(()=>[Wh(m,g,zr,Se,r),Wh(m,g,zr,{},r)],[m,g,Se]),[Pe,Ae]=f.useState(!1),Ze=f.useRef(),Be=Ki(y?`rc-menu-uuid-${y}`:"rc-menu-uuid"),nt=v==="rtl";process.env.NODE_ENV!=="production"&&ct(!Y&&!se,"`openAnimation` and `openTransitionName` is removed. Please use `motion` or `defaultMotion` instead.");const[Ge,Ke]=qn(I,M),ze=Ge||zr,De=(ye,ae=!1)=>{function pe(){Ke(ye),ee==null||ee(ye)}ae?Ln.flushSync(pe):pe()},[ot,St]=f.useState(ze),pt=f.useRef(!1),[dt,mt]=f.useMemo(()=>(C==="inline"||C==="vertical")&&_?["vertical",_]:[C,!1],[C,_]),Oe=dt==="inline",[he,_e]=f.useState(dt),[rt,$e]=f.useState(mt);f.useEffect(()=>{_e(dt),$e(mt),pt.current&&(Oe?Ke(ot):De(zr))},[dt,mt]);const[ge,Qe]=f.useState(0),Ve=ge>=te.length-1||he!=="horizontal"||b;f.useEffect(()=>{Oe&&St(ze)},[ze]),f.useEffect(()=>(pt.current=!0,()=>{pt.current=!1}),[]);const{registerPath:Ye,unregisterPath:Nt,refreshOverflowKeys:Ht,isSubPathKey:vt,getKeyPath:Et,getKeys:kt,getSubPathKeys:Je}=X0(),rn=f.useMemo(()=>({registerPath:Ye,unregisterPath:Nt}),[Ye,Nt]),mn=f.useMemo(()=>({isSubPathKey:vt}),[vt]);f.useEffect(()=>{Ht(Ve?zr:te.slice(ge+1).map(ye=>ye.key))},[ge,Ve]);const[on,an]=qn(k||N&&((Ee=te[0])==null?void 0:Ee.key),k),ln=ci(ye=>{an(ye)}),cn=ci(()=>{an(void 0)});A.useImperativeHandle(n,()=>({list:Ze.current,focus:ye=>{var Gt,wt;const ae=kt(),{elements:pe,key2element:We,element2key:Fe}=bs(ae,Be),et=ec(Ze.current,pe);let gt;on&&ae.includes(on)?gt=on:gt=et[0]?Fe.get(et[0]):(Gt=te.find(Kt=>!Kt.props.disabled))==null?void 0:Gt.key;const yt=We.get(gt);gt&&yt&&((wt=yt==null?void 0:yt.focus)==null||wt.call(yt,ye))},findItem:({key:ye})=>{const ae=kt(),{key2element:pe}=bs(ae,Be);return pe.get(ye)||null}}));const[Vt,Jt]=qn(z||[],$),Lt=f.useMemo(()=>Array.isArray(Vt)?Vt:Vt==null?zr:[Vt],[Vt]),xt=ye=>{if(R){const{key:ae}=ye,pe=Lt.includes(ae);let We;B?pe?We=Lt.filter(et=>et!==ae):We=[...Lt,ae]:We=[ae],Jt(We);const Fe={...ye,selectedKeys:We};pe?V==null||V(Fe):j==null||j(Fe)}!B&&ze.length&&he!=="inline"&&De(zr)},ve=ci(ye=>{oe==null||oe(_s(ye)),xt(ye)}),Wt=ci((ye,ae)=>{let pe=ze.filter(We=>We!==ye);if(ae)pe.push(ye);else if(he!=="inline"){const We=Je(ye);pe=pe.filter(Fe=>!We.has(Fe))}$o(ze,pe,!0)||De(pe,!0)}),T=K0(he,on,nt,Be,Ze,kt,Et,an,(ye,ae)=>{const pe=ae??!ze.includes(ye);Wt(ye,pe)},K);f.useEffect(()=>{Ae(!0)},[]);const U=f.useMemo(()=>({_internalRenderMenuItem:fe,_internalRenderSubMenuItem:xe}),[fe,xe]),re=he!=="horizontal"||b?te:te.map((ye,ae)=>f.createElement(si,{key:ye.key,overflowDisabled:ae>ge,classNames:d,styles:c},ye)),ue=f.createElement(or,cc({id:y,ref:Ze,prefixCls:`${r}-overflow`,component:"ul",itemComponent:xs,className:ce(r,`${r}-root`,`${r}-${he}`,l,{[`${r}-inline-collapsed`]:rt,[`${r}-rtl`]:nt},o),dir:v,style:s,role:"menu",tabIndex:h,data:re,renderRawItem:ye=>ye,renderRawRest:ye=>{const ae=ye.length,pe=ae?te.slice(-ae):null;return f.createElement(fi,{eventKey:nc,title:ie,disabled:Ve,internalPopupClose:ae===0,popupClassName:ne},pe)},maxCount:he!=="horizontal"||b?or.INVALIDATE:or.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:ye=>{Qe(ye)},onKeyDown:T},Ce));return f.createElement(Ql.Provider,{value:U},f.createElement(Ah.Provider,{value:Be},f.createElement(si,{prefixCls:r,rootClassName:o,classNames:d,styles:c,mode:he,openKeys:ze,rtl:nt,disabled:x,motion:Pe?F:null,defaultMotions:Pe?X:null,activeKey:on,onActive:ln,onInactive:cn,selectedKeys:Lt,inlineIndent:W,subMenuOpenDelay:E,subMenuCloseDelay:S,forceSubMenuRender:P,builtinPlacements:Z,triggerSubMenuAction:J,getPopupContainer:de,itemIcon:le,expandIcon:G,onItemClick:ve,onOpenChange:Wt,popupRender:Te},f.createElement(kh.Provider,{value:mn},ue),f.createElement("div",{style:{display:"none"},"aria-hidden":!0},f.createElement(Oh.Provider,{value:rn},we)))))});hi.Item=xs,hi.SubMenu=fi,hi.ItemGroup=Cs,hi.Divider=ac;var ux={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"};const dx=ux;function uc(){return uc=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},uc.apply(this,arguments)}const fx=(e,n)=>f.createElement(Ko,uc({},e,{ref:n,icon:dx})),jh=f.forwardRef(fx);process.env.NODE_ENV!=="production"&&(jh.displayName="BarsOutlined");const hx=jh,px=f.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}}),mx=e=>{const{antCls:n,componentCls:r,colorText:o,footerBg:s,headerHeight:l,headerPadding:c,headerColor:d,footerPadding:h,fontSize:g,bodyBg:m,headerBg:v}=e;return{[r]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:m,"&, *":{boxSizing:"border-box"},[`&${r}-has-sider`]:{flexDirection:"row",[`> ${r}, > ${r}-content`]:{width:0}},[`${r}-header, &${r}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${r}-header`]:{height:l,padding:c,color:d,lineHeight:Le(l),background:v,[`${n}-menu`]:{lineHeight:"inherit"}},[`${r}-footer`]:{padding:h,color:o,fontSize:g,background:s},[`${r}-content`]:{flex:"auto",color:o,minHeight:0}}},Zh=e=>{const{colorBgLayout:n,controlHeight:r,controlHeightLG:o,colorText:s,controlHeightSM:l,marginXXS:c,colorTextLightSolid:d,colorBgContainer:h}=e,g=o*1.25;return{colorBgHeader:"#001529",colorBgBody:n,colorBgTrigger:"#002140",bodyBg:n,headerBg:"#001529",headerHeight:r*2,headerPadding:`0 ${g}px`,headerColor:s,footerPadding:`${l}px ${g}px`,footerBg:n,siderBg:"#001529",triggerHeight:o+c*2,triggerBg:"#002140",triggerColor:d,zeroTriggerWidth:o,zeroTriggerHeight:o,lightSiderBg:h,lightTriggerBg:h,lightTriggerColor:s}},Uh=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]];Vn("Layout",mx,Zh,{deprecatedTokens:Uh});const gx=Vn(["Layout","Sider"],e=>{const{componentCls:n,siderBg:r,motionDurationMid:o,motionDurationSlow:s,antCls:l,triggerHeight:c,triggerColor:d,triggerBg:h,headerHeight:g,zeroTriggerWidth:m,zeroTriggerHeight:v,borderRadiusLG:y,lightSiderBg:C,lightTriggerColor:_,lightTriggerBg:x,bodyBg:b}=e;return{[n]:{position:"relative",minWidth:0,background:r,transition:`all ${o}, background 0s`,"&-has-trigger":{paddingBottom:c},"&-right":{order:1},[`${n}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${l}-menu${l}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${n}-children`]:{overflow:"hidden"},[`${n}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:c,color:d,lineHeight:Le(c),textAlign:"center",background:h,cursor:"pointer",transition:`all ${o}`},[`${n}-zero-width-trigger`]:{position:"absolute",top:g,insetInlineEnd:e.calc(m).mul(-1).equal(),zIndex:1,width:m,height:v,color:d,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:r,borderRadius:`0 ${Le(y)} ${Le(y)} 0`,cursor:"pointer",transition:`background-color ${s} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${s}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(m).mul(-1).equal(),borderRadius:`${Le(y)} 0 0 ${Le(y)}`}},"&-light":{background:C,[`${n}-trigger`]:{color:_,background:x},[`${n}-zero-width-trigger`]:{color:_,background:x,border:`1px solid ${b}`,borderInlineStart:0}}}}},Zh,{deprecatedTokens:Uh}),qh={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},vx=e=>!Number.isNaN(Number.parseFloat(e))&&Number.isFinite(Number(e)),dc=f.createContext({}),yx=(()=>{let e=0;return(n="")=>(e+=1,`${n}${e}`)})(),bx=f.forwardRef((e,n)=>{const{prefixCls:r,className:o,trigger:s,children:l,defaultCollapsed:c=!1,theme:d="dark",style:h={},collapsible:g=!1,reverseArrow:m=!1,width:v=200,collapsedWidth:y=80,zeroWidthTriggerStyle:C,breakpoint:_,onCollapse:x,onBreakpoint:b,...E}=e,{siderHook:S}=A.useContext(px),[P,I]=A.useState("collapsed"in e?e.collapsed:c),[M,k]=A.useState(!1);A.useEffect(()=>{"collapsed"in e&&I(e.collapsed)},[e.collapsed]);const N=(Y,se)=>{"collapsed"in e||I(Y),x==null||x(Y,se)},{getPrefixCls:R,direction:B}=A.useContext(Ot),z=R("layout-sider",r),[$,j]=gx(z),V=A.useRef(null);V.current=Y=>{k(Y.matches),b==null||b(Y.matches),P!==Y.matches&&N(Y.matches,"responsive")},A.useEffect(()=>{function Y(fe){var xe;return(xe=V.current)==null?void 0:xe.call(V,fe)}let se;return typeof(window==null?void 0:window.matchMedia)<"u"&&_&&_ in qh&&(se=window.matchMedia(`screen and (max-width: ${qh[_]})`),typeof(se==null?void 0:se.addEventListener)=="function"&&se.addEventListener("change",Y),Y(se)),()=>{typeof(se==null?void 0:se.removeEventListener)=="function"&&se.removeEventListener("change",Y)}},[_]),A.useEffect(()=>{const Y=yx("ant-sider-");return S.addSider(Y),()=>S.removeSider(Y)},[]);const W=()=>{N(!P,"clickTrigger")},F=Sn(E,["collapsed"]),X=P?y:v,J=vx(X)?`${X}px`:String(X),Z=Number.parseFloat(String(y||0))===0?f.createElement("span",{onClick:W,className:ce(`${z}-zero-width-trigger`,`${z}-zero-width-trigger-${m?"right":"left"}`),style:C},s||f.createElement(hx,null)):null,le=B==="rtl"==!m,ne={expanded:le?f.createElement(Al,null):f.createElement(Gl,null),collapsed:le?f.createElement(Gl,null):f.createElement(Al,null)}[P?"collapsed":"expanded"],de=s!==null?Z||f.createElement("div",{className:`${z}-trigger`,onClick:W,style:{width:J}},s||ne):null,oe={...h,flex:`0 0 ${J}`,maxWidth:J,minWidth:J,width:J},ee=ce(z,`${z}-${d}`,{[`${z}-collapsed`]:!!P,[`${z}-has-trigger`]:g&&s!==null&&!Z,[`${z}-below`]:!!M,[`${z}-zero-width`]:Number.parseFloat(J)===0},o,$,j),K=f.useMemo(()=>({siderCollapsed:P}),[P]);return f.createElement(dc.Provider,{value:K},f.createElement("aside",{className:ee,...F,style:oe,ref:n},f.createElement("div",{className:`${z}-children`},l),g||M&&Z?de:null))});process.env.NODE_ENV!=="production"&&(bx.displayName="Sider");var _x={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"};const xx=_x;function fc(){return fc=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},fc.apply(this,arguments)}const wx=(e,n)=>f.createElement(Ko,fc({},e,{ref:n,icon:xx})),Gh=f.forwardRef(wx);process.env.NODE_ENV!=="production"&&(Gh.displayName="EllipsisOutlined");const Kh=Gh,Ss=A.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1,styles:null,classNames:null}),Qh=e=>{const{prefixCls:n,className:r,dashed:o,...s}=e,{getPrefixCls:l}=f.useContext(Ot),c=l("menu",n),d=ce({[`${c}-item-divider-dashed`]:!!o},r);return f.createElement(ac,{className:d,...s})},Yh=e=>{var I,M;const{className:n,children:r,icon:o,title:s,danger:l,extra:c}=e,{prefixCls:d,firstLevel:h,direction:g,disableMenuItemTitleTooltip:m,inlineCollapsed:v,styles:y,classNames:C}=f.useContext(Ss),_=k=>{var B,z;const N=r==null?void 0:r[0],R=f.createElement("span",{className:ce(`${d}-title-content`,h?C==null?void 0:C.itemContent:(B=C==null?void 0:C.subMenu)==null?void 0:B.itemContent,{[`${d}-title-content-with-extra`]:!!c||c===0}),style:h?y==null?void 0:y.itemContent:(z=y==null?void 0:y.subMenu)==null?void 0:z.itemContent},r);return(!o||f.isValidElement(r)&&r.type==="span")&&r&&k&&h&&typeof N=="string"?f.createElement("div",{className:`${d}-inline-collapsed-noicon`},N.charAt(0)):R},{siderCollapsed:x}=f.useContext(dc);let b=s;typeof s>"u"?b=h?r:"":s===!1&&(b="");const E={title:b};!x&&!v&&(E.title=null,E.open=!1);const S=Gn(r).length;let P=f.createElement(xs,{...Sn(e,["title","icon","danger"]),className:ce(h?C==null?void 0:C.item:(I=C==null?void 0:C.subMenu)==null?void 0:I.item,{[`${d}-item-danger`]:l,[`${d}-item-only-child`]:(o?S+1:S)===1},n),style:{...h?y==null?void 0:y.item:(M=y==null?void 0:y.subMenu)==null?void 0:M.item,...e.style},title:typeof s=="string"?s:void 0},nr(o,k=>{var N,R;return{className:ce(`${d}-item-icon`,h?C==null?void 0:C.itemIcon:(N=C==null?void 0:C.subMenu)==null?void 0:N.itemIcon,k.className),style:{...h?y==null?void 0:y.itemIcon:(R=y==null?void 0:y.subMenu)==null?void 0:R.itemIcon,...k.style}}}),_(v));return m||(P=f.createElement(Ih,{...E,placement:g==="rtl"?"left":"right",classNames:{root:`${d}-inline-collapsed-tooltip`}},P)),P},Es=f.createContext(null),Cx=f.forwardRef((e,n)=>{const{children:r,...o}=e,s=f.useContext(Es),l=f.useMemo(()=>({...s,...o}),[s,o.prefixCls,o.mode,o.selectable,o.rootClassName]),c=pm(r),d=Wr(n,c?dr(r):null);return f.createElement(Es.Provider,{value:l},f.createElement(ph,{space:!0},c?f.cloneElement(r,{ref:d}):r))}),Sx=e=>{const{componentCls:n,motionDurationSlow:r,horizontalLineHeight:o,colorSplit:s,lineWidth:l,lineType:c,itemPaddingInline:d}=e;return{[`${n}-horizontal`]:{lineHeight:o,border:0,borderBottom:`${Le(l)} ${c} ${s}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${n}-item, ${n}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:d},[`> ${n}-item:hover,
|
|
177
|
-
> ${n}-item-active,
|
|
178
|
-
> ${n}-submenu ${n}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${n}-item, ${n}-submenu-title`]:{transition:[`border-color ${r}`,`background-color ${r}`].join(",")},[`${n}-submenu-arrow`]:{display:"none"}}}},Ex=({componentCls:e,menuArrowOffset:n,calc:r})=>({[`${e}-rtl`]:{direction:"rtl"},[`${e}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${e}-rtl${e}-vertical,
|
|
179
|
-
${e}-submenu-rtl ${e}-vertical`]:{[`${e}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${Le(r(n).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${Le(n)})`}}}}),Xh=e=>Ga(e),Jh=(e,n)=>{const{componentCls:r,itemColor:o,itemSelectedColor:s,subMenuItemSelectedColor:l,groupTitleColor:c,itemBg:d,subMenuItemBg:h,itemSelectedBg:g,activeBarHeight:m,activeBarWidth:v,activeBarBorderWidth:y,motionDurationSlow:C,motionEaseInOut:_,motionEaseOut:x,itemPaddingInline:b,motionDurationMid:E,itemHoverColor:S,lineType:P,colorSplit:I,itemDisabledColor:M,dangerItemColor:k,dangerItemHoverColor:N,dangerItemSelectedColor:R,dangerItemActiveBg:B,dangerItemSelectedBg:z,popupBg:$,itemHoverBg:j,itemActiveBg:V,menuSubMenuBg:W,horizontalItemSelectedColor:F,horizontalItemSelectedBg:X,horizontalItemBorderRadius:J,horizontalItemHoverBg:Z}=e;return{[`${r}-${n}, ${r}-${n} > ${r}`]:{color:o,background:d,[`&${r}-root:focus-visible`]:{...Xh(e)},[`${r}-item`]:{"&-group-title, &-extra":{color:c}},[`${r}-submenu-selected > ${r}-submenu-title`]:{color:l},[`${r}-item, ${r}-submenu-title`]:{color:o,[`&:not(${r}-item-disabled):focus-visible`]:{...Xh(e)}},[`${r}-item-disabled, ${r}-submenu-disabled`]:{color:`${M} !important`},[`${r}-item:not(${r}-item-selected):not(${r}-submenu-selected)`]:{[`&:hover, > ${r}-submenu-title:hover`]:{color:S}},[`&:not(${r}-horizontal)`]:{[`${r}-item:not(${r}-item-selected)`]:{"&:hover":{backgroundColor:j},"&:active":{backgroundColor:V}},[`${r}-submenu-title`]:{"&:hover":{backgroundColor:j},"&:active":{backgroundColor:V}}},[`${r}-item-danger`]:{color:k,[`&${r}-item:hover`]:{[`&:not(${r}-item-selected):not(${r}-submenu-selected)`]:{color:N}},[`&${r}-item:active`]:{background:B}},[`${r}-item a`]:{"&, &:hover":{color:"inherit"}},[`${r}-item-selected`]:{color:s,[`&${r}-item-danger`]:{color:R},"a, a:hover":{color:"inherit"}},[`& ${r}-item-selected`]:{backgroundColor:g,[`&${r}-item-danger`]:{backgroundColor:z}},[`&${r}-submenu > ${r}`]:{backgroundColor:W},[`&${r}-popup > ${r}`]:{backgroundColor:$},[`&${r}-submenu-popup > ${r}`]:{backgroundColor:$},[`&${r}-horizontal`]:{...n==="dark"?{borderBottom:0}:{},[`> ${r}-item, > ${r}-submenu`]:{top:y,marginTop:e.calc(y).mul(-1).equal(),marginBottom:0,borderRadius:J,"&::after":{position:"absolute",insetInline:b,bottom:0,borderBottom:`${Le(m)} solid transparent`,transition:`border-color ${C} ${_}`,content:'""'},"&:hover, &-active, &-open":{background:Z,"&::after":{borderBottomWidth:m,borderBottomColor:F}},"&-selected":{color:F,backgroundColor:X,"&:hover":{backgroundColor:X},"&::after":{borderBottomWidth:m,borderBottomColor:F}}}},[`&${r}-root`]:{[`&${r}-inline, &${r}-vertical`]:{borderInlineEnd:`${Le(y)} ${P} ${I}`}},[`&${r}-inline`]:{[`${r}-sub${r}-inline`]:{background:h},[`${r}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Le(v)} solid ${s}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${E} ${x}`,`opacity ${E} ${x}`].join(","),content:'""'},[`&${r}-item-danger`]:{"&::after":{borderInlineEndColor:R}}},[`${r}-selected, ${r}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${E} ${_}`,`opacity ${E} ${_}`].join(",")}}}}}},ep=e=>{const{componentCls:n,itemHeight:r,itemMarginInline:o,padding:s,menuArrowSize:l,marginXS:c,itemMarginBlock:d,itemWidth:h,itemPaddingInline:g}=e,m=e.calc(l).add(s).add(c).equal();return{[`${n}-item`]:{position:"relative",overflow:"hidden"},[`${n}-item, ${n}-submenu-title`]:{height:r,lineHeight:Le(r),paddingInline:g,overflow:"hidden",textOverflow:"ellipsis",marginInline:o,marginBlock:d,width:h},[`> ${n}-item,
|
|
180
|
-
> ${n}-submenu > ${n}-submenu-title`]:{height:r,lineHeight:Le(r)},[`${n}-item-group-list ${n}-submenu-title,
|
|
181
|
-
${n}-submenu-title`]:{paddingInlineEnd:m}}},Px=e=>{const{componentCls:n,iconCls:r,itemHeight:o,colorTextLightSolid:s,dropdownWidth:l,controlHeightLG:c,motionEaseOut:d,paddingXL:h,itemMarginInline:g,fontSizeLG:m,motionDurationFast:v,motionDurationSlow:y,paddingXS:C,boxShadowSecondary:_,collapsedWidth:x,collapsedIconSize:b}=e,E={height:o,lineHeight:Le(o),listStylePosition:"inside",listStyleType:"disc"};return[{[n]:{"&-inline, &-vertical":{[`&${n}-root`]:{boxShadow:"none"},...ep(e)}},[`${n}-submenu-popup`]:{[`${n}-vertical`]:{...ep(e),boxShadow:_}}},{[`${n}-submenu-popup ${n}-vertical${n}-sub`]:{minWidth:l,maxHeight:`calc(100vh - ${Le(e.calc(c).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${n}-inline`]:{width:"100%",[`&${n}-root`]:{[`${n}-item, ${n}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${y}`,`background-color ${y}`,`padding ${v} ${d}`].join(","),[`> ${n}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${n}-sub${n}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${n}-submenu > ${n}-submenu-title`]:E,[`& ${n}-item-group-title`]:{paddingInlineStart:h}},[`${n}-item`]:E}},{[`${n}-inline-collapsed`]:{width:x,[`&${n}-root`]:{[`${n}-item, ${n}-submenu ${n}-submenu-title`]:{[`> ${n}-inline-collapsed-noicon`]:{fontSize:m,textAlign:"center"}}},[`> ${n}-item,
|
|
182
|
-
> ${n}-item-group > ${n}-item-group-list > ${n}-item,
|
|
183
|
-
> ${n}-item-group > ${n}-item-group-list > ${n}-submenu > ${n}-submenu-title,
|
|
184
|
-
> ${n}-submenu > ${n}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${Le(e.calc(b).div(2).equal())} - ${Le(g)})`,textOverflow:"clip",[`
|
|
185
|
-
${n}-submenu-arrow,
|
|
186
|
-
${n}-submenu-expand-icon
|
|
187
|
-
`]:{opacity:0},[`${n}-item-icon, ${r}`]:{margin:0,fontSize:b,lineHeight:Le(o),"+ span":{display:"inline-block",opacity:0}}},[`${n}-item-icon, ${r}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${n}-item-icon, ${r}`]:{display:"none"},"a, a:hover":{color:s}},[`${n}-item-group-title`]:{...hv,paddingInline:C}}}]},tp=e=>{const{componentCls:n,motionDurationSlow:r,motionDurationMid:o,motionEaseInOut:s,motionEaseOut:l,iconCls:c,iconSize:d,iconMarginInlineEnd:h}=e;return{[`${n}-item, ${n}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${r}`,`background-color ${r}`,`padding calc(${r} + 0.1s) ${s}`].join(","),[`${n}-item-icon, ${c}`]:{minWidth:d,fontSize:d,transition:[`font-size ${o} ${l}`,`margin ${r} ${s}`,`color ${r}`].join(","),"+ span":{marginInlineStart:h,opacity:1,transition:[`opacity ${r} ${s}`,`margin ${r}`,`color ${r}`].join(",")}},[`${n}-item-icon`]:{...qa()},[`&${n}-item-only-child`]:{[`> ${c}, > ${n}-item-icon`]:{marginInlineEnd:0}}},[`${n}-item-disabled, ${n}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important",cursor:"not-allowed",pointerEvents:"none"},[`> ${n}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},np=e=>{const{componentCls:n,motionDurationSlow:r,motionEaseInOut:o,borderRadius:s,menuArrowSize:l,menuArrowOffset:c}=e;return{[`${n}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:l,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${r} ${o}, opacity ${r}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(l).mul(.6).equal(),height:e.calc(l).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:s,transition:[`background-color ${r} ${o}`,`transform ${r} ${o}`,`top ${r} ${o}`,`color ${r} ${o}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${Le(e.calc(c).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${Le(c)})`}}}}},Ix=e=>{const{antCls:n,componentCls:r,fontSize:o,motionDurationSlow:s,motionDurationMid:l,motionEaseInOut:c,paddingXS:d,padding:h,colorSplit:g,lineWidth:m,zIndexPopup:v,borderRadiusLG:y,subMenuItemBorderRadius:C,menuArrowSize:_,menuArrowOffset:x,lineType:b,groupTitleLineHeight:E,groupTitleFontSize:S}=e;return[{"":{[r]:{...md(),"&-hidden":{display:"none"}}},[`${r}-submenu-hidden`]:{display:"none"}},{[r]:{...Xr(e),...md(),marginBottom:0,paddingInlineStart:0,fontSize:o,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${s} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${r}-item`]:{flex:"none"}},[`${r}-item, ${r}-submenu, ${r}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${r}-item-group-title`]:{padding:`${Le(d)} ${Le(h)}`,fontSize:S,lineHeight:E,transition:`all ${s}`},[`&-horizontal ${r}-submenu`]:{transition:[`border-color ${s} ${c}`,`background-color ${s} ${c}`].join(",")},[`${r}-submenu, ${r}-submenu-inline`]:{transition:[`border-color ${s} ${c}`,`background-color ${s} ${c}`,`padding ${l} ${c}`].join(",")},[`${r}-submenu ${r}-sub`]:{cursor:"initial",transition:[`background-color ${s} ${c}`,`padding ${s} ${c}`].join(",")},[`${r}-title-content`]:{transition:`color ${s}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${n}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${r}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:e.padding}},[`${r}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${r}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:g,borderStyle:b,borderWidth:0,borderTopWidth:m,marginBlock:m,padding:0,"&-dashed":{borderStyle:"dashed"}},...tp(e),[`${r}-item-group`]:{[`${r}-item-group-list`]:{margin:0,padding:0,[`${r}-item, ${r}-submenu-title`]:{paddingInline:`${Le(e.calc(o).mul(2).equal())} ${Le(h)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:v,borderRadius:y,boxShadow:"none",transformOrigin:"0 0",[`&${r}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${r}`]:{borderRadius:y,...tp(e),...np(e),[`${r}-item, ${r}-submenu > ${r}-submenu-title`]:{borderRadius:C},[`${r}-submenu-title::after`]:{transition:`transform ${s} ${c}`}}},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:e.paddingXS}},...np(e),[`&-inline-collapsed ${r}-submenu-arrow,
|
|
188
|
-
&-inline ${r}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Le(x)})`},"&::after":{transform:`rotate(45deg) translateX(${Le(e.calc(x).mul(-1).equal())})`}},[`${r}-submenu-open${r}-submenu-inline > ${r}-submenu-title > ${r}-submenu-arrow`]:{transform:`translateY(${Le(e.calc(_).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${Le(e.calc(x).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${Le(x)})`}}}},{[`${n}-layout-header`]:{[r]:{lineHeight:"inherit"}}}]},Tx=e=>{const{colorPrimary:n,colorError:r,colorTextDisabled:o,colorErrorBg:s,colorText:l,colorTextDescription:c,colorBgContainer:d,colorFillAlter:h,colorFillContent:g,lineWidth:m,lineWidthBold:v,controlItemBgActive:y,colorBgTextHover:C,controlHeightLG:_,lineHeight:x,colorBgElevated:b,marginXXS:E,padding:S,fontSize:P,controlHeightSM:I,fontSizeLG:M,colorTextLightSolid:k,colorErrorHover:N}=e,R=e.activeBarWidth??0,B=e.activeBarBorderWidth??m,z=e.itemMarginInline??e.marginXXS,$=new At(k).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:l,itemColor:l,colorItemTextHover:l,itemHoverColor:l,colorItemTextHoverHorizontal:n,horizontalItemHoverColor:n,colorGroupTitle:c,groupTitleColor:c,colorItemTextSelected:n,itemSelectedColor:n,subMenuItemSelectedColor:n,colorItemTextSelectedHorizontal:n,horizontalItemSelectedColor:n,colorItemBg:d,itemBg:d,colorItemBgHover:C,itemHoverBg:C,colorItemBgActive:g,itemActiveBg:y,colorSubItemBg:h,subMenuItemBg:h,colorItemBgSelected:y,itemSelectedBg:y,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:R,colorActiveBarHeight:v,activeBarHeight:v,colorActiveBarBorderSize:m,activeBarBorderWidth:B,colorItemTextDisabled:o,itemDisabledColor:o,colorDangerItemText:r,dangerItemColor:r,colorDangerItemTextHover:r,dangerItemHoverColor:r,colorDangerItemTextSelected:r,dangerItemSelectedColor:r,colorDangerItemBgActive:s,dangerItemActiveBg:s,colorDangerItemBgSelected:s,dangerItemSelectedBg:s,itemMarginInline:z,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:_,groupTitleLineHeight:x,collapsedWidth:_*2,popupBg:b,itemMarginBlock:E,itemPaddingInline:S,horizontalLineHeight:`${_*1.15}px`,iconSize:P,iconMarginInlineEnd:I-P,collapsedIconSize:M,groupTitleFontSize:P,darkItemDisabledColor:new At(k).setA(.25).toRgbString(),darkItemColor:$,darkDangerItemColor:r,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:k,darkItemSelectedBg:n,darkDangerItemSelectedBg:r,darkItemHoverBg:"transparent",darkGroupTitleColor:$,darkItemHoverColor:k,darkDangerItemHoverColor:N,darkDangerItemSelectedColor:k,darkDangerItemActiveBg:r,itemWidth:R?`calc(100% + ${B}px)`:`calc(100% - ${z*2}px)`}},Ax=(e,n=e,r=!0)=>Vn("Menu",s=>{const{colorBgElevated:l,controlHeightLG:c,fontSize:d,darkItemColor:h,darkDangerItemColor:g,darkItemBg:m,darkSubMenuItemBg:v,darkItemSelectedColor:y,darkItemSelectedBg:C,darkDangerItemSelectedBg:_,darkItemHoverBg:x,darkGroupTitleColor:b,darkItemHoverColor:E,darkItemDisabledColor:S,darkDangerItemHoverColor:P,darkDangerItemSelectedColor:I,darkDangerItemActiveBg:M,popupBg:k,darkPopupBg:N}=s,R=s.calc(d).div(7).mul(5).equal(),B=_n(s,{menuArrowSize:R,menuHorizontalHeight:s.calc(c).mul(1.15).equal(),menuArrowOffset:s.calc(R).mul(.25).equal(),menuSubMenuBg:l,calc:s.calc,popupBg:k}),z=_n(B,{itemColor:h,itemHoverColor:E,groupTitleColor:b,itemSelectedColor:y,subMenuItemSelectedColor:y,itemBg:m,popupBg:N,subMenuItemBg:v,itemActiveBg:"transparent",itemSelectedBg:C,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:x,itemDisabledColor:S,dangerItemColor:g,dangerItemHoverColor:P,dangerItemSelectedColor:I,dangerItemActiveBg:M,dangerItemSelectedBg:_,menuSubMenuBg:v,horizontalItemSelectedColor:y,horizontalItemSelectedBg:C});return[Ix(B),Sx(B),Px(B),Jh(B,"light"),Jh(z,"dark"),Ex(B),Sb(B),is(B,"slide-up"),is(B,"slide-down"),Ml(B,"zoom-big")]},Tx,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:r,unitless:{groupTitleLineHeight:!0}})(e,n),rp=e=>{var x,b,E,S,P,I;const{popupClassName:n,icon:r,title:o,theme:s}=e,l=f.useContext(Ss),{prefixCls:c,inlineCollapsed:d,theme:h,classNames:g,styles:m}=l,v=yo();let y;if(!r)y=d&&!v.length&&o&&typeof o=="string"?f.createElement("div",{className:`${c}-inline-collapsed-noicon`},o.charAt(0)):f.createElement("span",{className:`${c}-title-content`},o);else{const M=f.isValidElement(o)&&o.type==="span";y=f.createElement(f.Fragment,null,nr(r,k=>({className:ce(k.className,`${c}-item-icon`,g==null?void 0:g.itemIcon),style:{...k.style,...m==null?void 0:m.itemIcon}})),M?o:f.createElement("span",{className:`${c}-title-content`},o))}const C=f.useMemo(()=>({...l,firstLevel:!1}),[l]),[_]=rl("Menu");return f.createElement(Ss.Provider,{value:C},f.createElement(fi,{...Sn(e,["icon"]),title:y,classNames:{list:(x=g==null?void 0:g.subMenu)==null?void 0:x.list,listTitle:(b=g==null?void 0:g.subMenu)==null?void 0:b.itemTitle},styles:{list:(E=m==null?void 0:m.subMenu)==null?void 0:E.list,listTitle:(S=m==null?void 0:m.subMenu)==null?void 0:S.itemTitle},popupClassName:ce(c,n,(P=g==null?void 0:g.popup)==null?void 0:P.root,`${c}-${s||h}`),popupStyle:{zIndex:_,...e.popupStyle,...(I=m==null?void 0:m.popup)==null?void 0:I.root}}))};function hc(e){return e===null||e===!1}const Mx={item:Yh,submenu:rp,divider:Qh},Lx=A.forwardRef((e,n)=>{var fe;const r=f.useContext(Es),o=r||{},{prefixCls:s,className:l,style:c,theme:d="light",expandIcon:h,_internalDisableMenuItemTitleTooltip:g,inlineCollapsed:m,siderCollapsed:v,rootClassName:y,mode:C,selectable:_,onClick:x,overflowedIndicatorPopupClassName:b,classNames:E,styles:S,...P}=e,{menu:I}=f.useContext(Ot),{getPrefixCls:M,getPopupContainer:k,direction:N,className:R,style:B,classNames:z,styles:$}=Ur("menu"),j=M(),V=Sn(P,["collapsedWidth"]);if(process.env.NODE_ENV!=="production"){const xe=hn("Menu");process.env.NODE_ENV!=="production"&&xe(!("inlineCollapsed"in e&&C!=="inline"),"usage","`inlineCollapsed` should only be used when `mode` is inline."),xe.deprecated("items"in e&&!e.children,"children","items")}(fe=o.validator)==null||fe.call(o,{mode:C});const W=ft((...xe)=>{var Se;x==null||x(...xe),(Se=o.onClick)==null||Se.call(o)}),F=o.mode||C,X=_??o.selectable,J=m??v,Z={...e,mode:F,inlineCollapsed:J,selectable:X,theme:d},[le,G]=kr([z,E],[$,S],{props:Z},{popup:{_default:"root"},subMenu:{_default:"item"}}),ie={horizontal:{motionName:`${j}-slide-up`},inline:jy(j),other:{motionName:`${j}-zoom-big`}},ne=M("menu",s||o.prefixCls),de=no(ne),[oe,ee]=Ax(ne,de,!r),K=ce(`${ne}-${d}`,R,l),Y=f.useMemo(()=>{var Se;if(typeof h=="function"||hc(h))return h||null;if(typeof o.expandIcon=="function"||hc(o.expandIcon))return o.expandIcon||null;if(typeof(I==null?void 0:I.expandIcon)=="function"||hc(I==null?void 0:I.expandIcon))return(I==null?void 0:I.expandIcon)||null;const xe=h??(o==null?void 0:o.expandIcon)??(I==null?void 0:I.expandIcon);return nr(xe,{className:ce(`${ne}-submenu-expand-icon`,f.isValidElement(xe)?(Se=xe.props)==null?void 0:Se.className:void 0)})},[h,o==null?void 0:o.expandIcon,I==null?void 0:I.expandIcon,ne]),se=f.useMemo(()=>({prefixCls:ne,inlineCollapsed:J||!1,direction:N,firstLevel:!0,theme:d,mode:F,disableMenuItemTitleTooltip:g,classNames:le,styles:G}),[ne,J,N,g,d,F,le,G]);return f.createElement(Es.Provider,{value:null},f.createElement(Ss.Provider,{value:se},f.createElement(hi,{getPopupContainer:k,overflowedIndicator:f.createElement(Kh,null),overflowedIndicatorPopupClassName:ce(ne,`${ne}-${d}`,b),classNames:{list:le.list,listTitle:le.itemTitle},styles:{list:G.list,listTitle:G.itemTitle},mode:F,selectable:X,onClick:W,...V,inlineCollapsed:J,style:{...G.root,...B,...c},className:K,prefixCls:ne,direction:N,defaultMotions:ie,expandIcon:Y,ref:n,rootClassName:ce(y,oe,o.rootClassName,ee,de,le.root),_internalComponents:Mx})))}),_o=A.forwardRef((e,n)=>{const r=A.useRef(null),o=f.useContext(dc);return A.useImperativeHandle(n,()=>({menu:r.current,focus:s=>{var l;(l=r.current)==null||l.focus(s)}})),f.createElement(Lx,{ref:r,...e,...o})});_o.Item=Yh,_o.SubMenu=rp,_o.Divider=Qh,_o.ItemGroup=Cs,process.env.NODE_ENV!=="production"&&(_o.displayName="Menu");const Ox=_o,Nx=e=>{const{componentCls:n,menuCls:r,colorError:o,colorTextLightSolid:s}=e,l=`${r}-item`;return{[`${n}, ${n}-menu-submenu`]:{[`${r} ${l}`]:{[`&${l}-danger:not(${l}-disabled)`]:{color:o,"&:hover":{color:s,backgroundColor:o}}}}}},kx=e=>{const{componentCls:n,menuCls:r,zIndexPopup:o,dropdownArrowDistance:s,sizePopupArrow:l,antCls:c,iconCls:d,motionDurationMid:h,paddingBlock:g,fontSize:m,dropdownEdgeChildPadding:v,colorTextDisabled:y,fontSizeIcon:C,controlPaddingHorizontal:_,colorBgElevated:x}=e;return[{[n]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:o,display:"block","&::before":{position:"absolute",insetBlock:e.calc(l).div(2).sub(s).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${c}-btn`]:{[`& > ${d}-down, & > ${c}-btn-icon > ${d}-down`]:{fontSize:C}},[`${n}-wrap`]:{position:"relative",[`${c}-btn > ${d}-down`]:{fontSize:C},[`${d}-down::before`]:{transition:`transform ${h}`}},[`${n}-wrap-open`]:{[`${d}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${c}-slide-down-enter${c}-slide-down-enter-active${n}-placement-bottomLeft,
|
|
189
|
-
&${c}-slide-down-appear${c}-slide-down-appear-active${n}-placement-bottomLeft,
|
|
190
|
-
&${c}-slide-down-enter${c}-slide-down-enter-active${n}-placement-bottom,
|
|
191
|
-
&${c}-slide-down-appear${c}-slide-down-appear-active${n}-placement-bottom,
|
|
192
|
-
&${c}-slide-down-enter${c}-slide-down-enter-active${n}-placement-bottomRight,
|
|
193
|
-
&${c}-slide-down-appear${c}-slide-down-appear-active${n}-placement-bottomRight`]:{animationName:Wf},[`&${c}-slide-up-enter${c}-slide-up-enter-active${n}-placement-topLeft,
|
|
194
|
-
&${c}-slide-up-appear${c}-slide-up-appear-active${n}-placement-topLeft,
|
|
195
|
-
&${c}-slide-up-enter${c}-slide-up-enter-active${n}-placement-top,
|
|
196
|
-
&${c}-slide-up-appear${c}-slide-up-appear-active${n}-placement-top,
|
|
197
|
-
&${c}-slide-up-enter${c}-slide-up-enter-active${n}-placement-topRight,
|
|
198
|
-
&${c}-slide-up-appear${c}-slide-up-appear-active${n}-placement-topRight`]:{animationName:Zf},[`&${c}-slide-down-leave${c}-slide-down-leave-active${n}-placement-bottomLeft,
|
|
199
|
-
&${c}-slide-down-leave${c}-slide-down-leave-active${n}-placement-bottom,
|
|
200
|
-
&${c}-slide-down-leave${c}-slide-down-leave-active${n}-placement-bottomRight`]:{animationName:jf},[`&${c}-slide-up-leave${c}-slide-up-leave-active${n}-placement-topLeft,
|
|
201
|
-
&${c}-slide-up-leave${c}-slide-up-leave-active${n}-placement-top,
|
|
202
|
-
&${c}-slide-up-leave${c}-slide-up-leave-active${n}-placement-topRight`]:{animationName:Uf}}},xh(e,x,{arrowPlacement:{top:!0,bottom:!0}}),{[`${n} ${r}`]:{position:"relative",margin:0},[`${r}-submenu-popup`]:{position:"absolute",zIndex:o,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${n}, ${n}-menu-submenu`]:{...Xr(e),[r]:{padding:v,listStyleType:"none",backgroundColor:x,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,...Ka(e),"&:empty":{padding:0,boxShadow:"none"},[`${r}-item-group-title`]:{padding:`${Le(g)} ${Le(_)}`,color:e.colorTextDescription,transition:`all ${h}`},[`${r}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${r}-item-icon`]:{minWidth:m,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${r}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${h}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${r}-item-extra`]:{paddingInlineStart:e.padding,marginInlineStart:"auto",fontSize:e.fontSizeSM,color:e.colorTextDescription}},[`${r}-item, ${r}-submenu-title`]:{display:"flex",margin:0,padding:`${Le(g)} ${Le(_)}`,color:e.colorText,fontWeight:"normal",fontSize:m,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${h}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover},...Ka(e),"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:y,cursor:"not-allowed","&:hover":{color:y,backgroundColor:x,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${Le(e.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${n}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${n}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorIcon,fontSize:C,fontStyle:"normal"}}},[`${r}-item-group-list`]:{margin:`0 ${Le(e.marginXS)}`,padding:0,listStyle:"none"},[`${r}-submenu-title`]:{paddingInlineEnd:e.calc(_).add(e.fontSizeSM).equal()},[`${r}-submenu-vertical`]:{position:"relative"},[`${r}-submenu${r}-submenu-disabled ${n}-menu-submenu-title`]:{[`&, ${n}-menu-submenu-arrow-icon`]:{color:y,backgroundColor:x,cursor:"not-allowed"}},[`${r}-submenu-selected ${n}-menu-submenu-title`]:{color:e.colorPrimary}}}},[is(e,"slide-up"),is(e,"slide-down"),Vf(e,"move-up"),Vf(e,"move-down"),Ml(e,"zoom-big")]]},Rx=Vn("Dropdown",e=>{const{marginXXS:n,sizePopupArrow:r,paddingXXS:o,componentCls:s}=e,l=_n(e,{menuCls:`${s}-menu`,dropdownArrowDistance:e.calc(r).div(2).add(n).equal(),dropdownEdgeChildPadding:o});return[kx(l),Nx(l)]},e=>({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2,...Ul({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0}),...bh(e)}),{resetStyle:!1}),Ps=e=>{const{menu:n,arrow:r,prefixCls:o,children:s,trigger:l,disabled:c,dropdownRender:d,popupRender:h,getPopupContainer:g,overlayClassName:m,rootClassName:v,overlayStyle:y,open:C,onOpenChange:_,mouseEnterDelay:x=.15,mouseLeaveDelay:b=.1,autoAdjustOverflow:E=!0,placement:S="",transitionName:P,classNames:I,styles:M,destroyPopupOnHide:k,destroyOnHidden:N}=e,{getPrefixCls:R,direction:B,getPopupContainer:z,className:$,style:j,classNames:V,styles:W}=Ur("dropdown"),F={...e,mouseEnterDelay:x,mouseLeaveDelay:b,autoAdjustOverflow:E},[X,J]=kr([V,I],[W,M],{props:F}),Z={...j,...y,...J.root},le=h||d,G=hn("Dropdown");process.env.NODE_ENV!=="production"&&(Object.entries({dropdownRender:"popupRender",destroyPopupOnHide:"destroyOnHidden",overlayClassName:"classNames.root",overlayStyle:"styles.root"}).forEach(([ze,De])=>{G.deprecated(!(ze in e),ze,De)}),S.includes("Center")&&G.deprecated(!S.includes("Center"),`placement: ${S}`,`placement: ${S.slice(0,S.indexOf("Center"))}`));const ie=f.useMemo(()=>{const Ke=R();return P!==void 0?P:S.includes("top")?`${Ke}-slide-down`:`${Ke}-slide-up`},[R,S,P]),ne=f.useMemo(()=>S?S.includes("Center")?S.slice(0,S.indexOf("Center")):S:B==="rtl"?"bottomRight":"bottomLeft",[S,B]),de=R("dropdown",o),oe=no(de),[ee,K]=Rx(de,oe),[,Y]=mr(),se=f.Children.only(W0(s)?f.createElement("span",null,s):s),fe=nr(se,{className:ce(`${de}-trigger`,{[`${de}-rtl`]:B==="rtl"},se.props.className),disabled:se.props.disabled??c}),xe=c?[]:l,Se=!!(xe!=null&&xe.includes("contextMenu")),[Te,Ce]=qn(!1,C),te=ft(Ke=>{_==null||_(Ke,{source:"trigger"}),Ce(Ke)}),we=ce(m,v,ee,K,oe,$,X.root,{[`${de}-rtl`]:B==="rtl"}),Pe=Ch({arrowPointAtCenter:typeof r=="object"&&r.pointAtCenter,autoAdjustOverflow:E,offset:Y.marginXXS,arrowWidth:r?Y.sizePopupArrow:0,borderRadius:Y.borderRadius}),Ae=ft(()=>{n!=null&&n.selectable&&(n!=null&&n.multiple)||(_==null||_(!1,{source:"menu"}),Ce(!1))}),Ze=()=>{const Ke=Sn(X,["root"]),ze=Sn(J,["root"]);let De;return n!=null&&n.items&&(De=f.createElement(Ox,{...n,classNames:{...Ke,subMenu:{...Ke}},styles:{...ze,subMenu:{...ze}}})),le&&(De=le(De)),De=f.Children.only(typeof De=="string"?f.createElement("span",null,De):De),f.createElement(Cx,{prefixCls:`${de}-menu`,rootClassName:ce(K,oe),expandIcon:f.createElement("span",{className:`${de}-menu-submenu-arrow`},B==="rtl"?f.createElement(Gl,{className:`${de}-menu-submenu-arrow-icon`}):f.createElement(Al,{className:`${de}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Ae,validator:({mode:ot})=>{process.env.NODE_ENV!=="production"&&G(!ot||ot==="vertical","usage",`mode="${ot}" is not supported for Dropdown's Menu.`)}},De)},[Be,nt]=rl("Dropdown",Z.zIndex);let Ge=f.createElement(V0,{alignPoint:Se,...Sn(e,["rootClassName","onOpenChange"]),mouseEnterDelay:x,mouseLeaveDelay:b,visible:Te,builtinPlacements:Pe,arrow:!!r,overlayClassName:we,prefixCls:de,getPopupContainer:g||z,transitionName:ie,trigger:xe,overlay:Ze,placement:ne,onVisibleChange:te,overlayStyle:{...Z,zIndex:Be},autoDestroy:N??k},fe);return Be&&(Ge=f.createElement(nl.Provider,{value:nt},Ge)),Ge},$x=p0(Ps,"align",void 0,"dropdown",e=>e),Bx=e=>f.createElement($x,{...e},f.createElement("span",null));Ps._InternalPanelDoNotUseOrYouWillBeFired=Bx,process.env.NODE_ENV!=="production"&&(Ps.displayName="Dropdown");const op=Ps;function pc(){return pc=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},pc.apply(this,arguments)}const zx=A.forwardRef((e,n)=>{const{prefixCls:r="rc-checkbox",className:o,style:s,checked:l,disabled:c,defaultChecked:d=!1,type:h="checkbox",title:g,onChange:m,...v}=e,y=A.useRef(null),C=A.useRef(null),[_,x]=qn(d,l);A.useImperativeHandle(n,()=>({focus:S=>{var P;(P=y.current)==null||P.focus(S)},blur:()=>{var S;(S=y.current)==null||S.blur()},input:y.current,nativeElement:C.current}));const b=ce(r,o,{[`${r}-checked`]:_,[`${r}-disabled`]:c}),E=S=>{c||("checked"in e||x(S.target.checked),m==null||m({target:{...e,type:h,checked:S.target.checked},stopPropagation(){S.stopPropagation()},preventDefault(){S.preventDefault()},nativeEvent:S.nativeEvent}))};return f.createElement("span",{className:b,title:g,style:s,ref:C},f.createElement("input",pc({},v,{className:`${r}-input`,ref:y,onChange:E,disabled:c,checked:!!_,type:h})),f.createElement("span",{className:`${r}-inner`}))});function Dx(e){const n=A.useRef(null),r=()=>{Ut.cancel(n.current),n.current=null};return[()=>{r(),n.current=Ut(()=>{n.current=null})},l=>{n.current&&(l.stopPropagation(),r()),e==null||e(l)}]}const Fx=e=>{const{checkboxCls:n}=e,r=`${n}-wrapper`;return[{[`${n}-group`]:{...Xr(e),display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}},[r]:{...Xr(e),display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${r}`]:{marginInlineStart:0},[`&${r}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}},[n]:{...Xr(e),position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${n}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${n}-inner`]:Ga(e)},[`${n}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${Le(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:e.calc(e.checkboxSize).div(14).mul(5).equal(),height:e.calc(e.checkboxSize).div(14).mul(8).equal(),border:`${Le(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}}},{[`
|
|
203
|
-
${r}:not(${r}-disabled),
|
|
204
|
-
${n}:not(${n}-disabled)
|
|
205
|
-
`]:{[`&:hover ${n}-inner`]:{borderColor:e.colorPrimary}},[`${r}:not(${r}-disabled)`]:{[`&:hover ${n}-checked:not(${n}-disabled) ${n}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${n}-checked:not(${n}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${n}-checked`]:{[`${n}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}}},[`
|
|
206
|
-
${r}-checked:not(${r}-disabled),
|
|
207
|
-
${n}-checked:not(${n}-disabled)
|
|
208
|
-
`]:{[`&:hover ${n}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[n]:{"&-indeterminate":{"&":{[`${n}-inner`]:{backgroundColor:`${e.colorBgContainer}`,borderColor:`${e.colorBorder}`,"&:after":{top:"50%",insetInlineStart:"50%",width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${n}-inner`]:{backgroundColor:`${e.colorBgContainer}`,borderColor:`${e.colorPrimary}`}}}}},{[`${r}-disabled`]:{cursor:"not-allowed"},[`${n}-disabled`]:{[`&, ${n}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${n}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${n}-indeterminate ${n}-inner::after`]:{background:e.colorTextDisabled}}}]};function Hx(e,n){const r=_n(n,{checkboxCls:`.${e}`,checkboxSize:n.controlInteractiveSize});return Fx(r)}const ip=Vn("Checkbox",(e,{prefixCls:n})=>[Hx(n,e)]),sp=A.createContext(null),Vx=(e,n)=>{const{prefixCls:r,className:o,rootClassName:s,children:l,indeterminate:c=!1,style:d,onMouseEnter:h,onMouseLeave:g,skipGroup:m=!1,disabled:v,classNames:y,styles:C,..._}=e,{getPrefixCls:x,direction:b,className:E,style:S,classNames:P,styles:I}=Ur("checkbox"),M=f.useContext(sp),{isFormItemInput:k}=f.useContext(fs),N=f.useContext(hl),R=((M==null?void 0:M.disabled)||v)??N,B={...e,indeterminate:c,disabled:R},[z,$]=kr([P,y],[I,C],{props:B}),j=f.useRef(_.value),V=f.useRef(null),W=Sr(n,V);if(process.env.NODE_ENV!=="production"){const oe=hn("Checkbox");process.env.NODE_ENV!=="production"&&oe("checked"in _||!!M||!("value"in _),"usage","`value` is not a valid prop, do you mean `checked`?")}f.useEffect(()=>{M==null||M.registerValue(_.value)},[]),f.useEffect(()=>{if(!m)return _.value!==j.current&&(M==null||M.cancelValue(j.current),M==null||M.registerValue(_.value),j.current=_.value),()=>M==null?void 0:M.cancelValue(_.value)},[_.value]),f.useEffect(()=>{var oe;(oe=V.current)!=null&&oe.input&&(V.current.input.indeterminate=c)},[c]);const F=x("checkbox",r),X=no(F),[J,Z]=ip(F,X),le={..._};M&&!m&&(le.onChange=(...oe)=>{_.onChange&&_.onChange.apply(_,oe),M.toggleOption&&M.toggleOption({label:l,value:_.value})},le.name=M.name,le.checked=M.value.includes(_.value));const G=ce(`${F}-wrapper`,{[`${F}-rtl`]:b==="rtl",[`${F}-wrapper-checked`]:le.checked,[`${F}-wrapper-disabled`]:R,[`${F}-wrapper-in-form-item`]:k},E,o,z.root,s,Z,X,J),ie=ce(z.icon,{[`${F}-indeterminate`]:c},_l,J),[ne,de]=Dx(le.onClick);return f.createElement(If,{component:"Checkbox",disabled:R},f.createElement("label",{className:G,style:{...$.root,...S,...d},onMouseEnter:h,onMouseLeave:g,onClick:ne},f.createElement(zx,{...le,onClick:de,prefixCls:F,className:ie,style:$.icon,disabled:R,ref:W}),to(l)&&f.createElement("span",{className:ce(`${F}-label`,z.label),style:$.label},l)))},ap=f.forwardRef(Vx);process.env.NODE_ENV!=="production"&&(ap.displayName="Checkbox");const lp=ap,Wx=f.forwardRef((e,n)=>{const{defaultValue:r,children:o,options:s=[],prefixCls:l,className:c,rootClassName:d,style:h,onChange:g,role:m="group",...v}=e,{getPrefixCls:y,direction:C}=f.useContext(Ot),[_,x]=f.useState(v.value||r||[]),[b,E]=f.useState([]);f.useEffect(()=>{"value"in v&&x(v.value||[])},[v.value]);const S=f.useMemo(()=>s.map(F=>typeof F=="string"||typeof F=="number"?{label:F,value:F}:F),[s]),P=F=>{E(X=>X.filter(J=>J!==F))},I=F=>{E(X=>[].concat(bn(X),[F]))},M=F=>{const X=_.indexOf(F.value),J=bn(_);X===-1?J.push(F.value):J.splice(X,1),"value"in v||x(J),g==null||g(J.filter(Z=>b.includes(Z)).sort((Z,le)=>{const G=S.findIndex(ne=>ne.value===Z),ie=S.findIndex(ne=>ne.value===le);return G-ie}))},k=y("checkbox",l),N=`${k}-group`,R=no(k),[B,z]=ip(k,R),$=Sn(v,["value","disabled"]),j=s.length?S.map(F=>f.createElement(lp,{prefixCls:k,key:F.value.toString(),disabled:"disabled"in F?F.disabled:v.disabled,value:F.value,checked:_.includes(F.value),onChange:F.onChange,className:ce(`${N}-item`,F.className),style:F.style,title:F.title,id:F.id,required:F.required},F.label)):o,V=f.useMemo(()=>({toggleOption:M,value:_,disabled:v.disabled,name:v.name,registerValue:I,cancelValue:P}),[M,_,v.disabled,v.name,I,P]),W=ce(N,{[`${N}-rtl`]:C==="rtl"},c,d,z,R,B);return f.createElement("div",{className:W,style:h,role:m,...$,ref:n},f.createElement(sp.Provider,{value:V},j))}),Is=lp;Is.Group=Wx,Is.__ANT_CHECKBOX=!0,process.env.NODE_ENV!=="production"&&(Is.displayName="Checkbox");const jx=Is,Zx=e=>{const{componentCls:n,borderRadius:r,paddingSM:o,colorBorder:s,paddingXS:l,fontSizeLG:c,fontSizeSM:d,borderRadiusLG:h,borderRadiusSM:g,colorBgContainerDisabled:m,lineWidth:v,antCls:y}=e,[C,_]=gr(y,"space");return{[n]:[{display:"inline-flex",alignItems:"center",gap:0,paddingInline:o,margin:0,borderWidth:v,borderStyle:"solid",borderRadius:r,"&:hover":{zIndex:0},[`&${n}-disabled`]:{color:e.colorTextDisabled},"&-large":{fontSize:c,borderRadius:h},"&-small":{paddingInline:l,borderRadius:g,fontSize:d},"&-compact-last-item":{borderEndStartRadius:0,borderStartStartRadius:0},"&-compact-first-item":{borderEndEndRadius:0,borderStartEndRadius:0},"&-compact-item:not(:first-child):not(:last-child)":{borderRadius:0},"&-compact-item:not(:last-child)":{borderInlineEndWidth:0},"&-compact-item:not(:first-child)":{borderInlineStartWidth:0}},{[C("addon-border-color")]:s,[C("addon-background")]:m,[C("addon-border-color-outlined")]:s,[C("addon-background-filled")]:m,borderColor:_("addon-border-color"),background:_("addon-background"),"&-variant-outlined":{[C("addon-border-color")]:_("addon-border-color-outlined")},"&-variant-filled":{[C("addon-border-color")]:"transparent",[C("addon-background")]:_("addon-background-filled"),[`&${n}-disabled`]:{[C("addon-border-color")]:s,[C("addon-background")]:m}},"&-variant-borderless":{border:"none",background:"transparent"},"&-variant-underlined":{border:"none",background:"transparent"}},{"&-status-error":{[C("addon-border-color-outlined")]:e.colorError,[C("addon-background-filled")]:e.colorErrorBg,color:e.colorError},"&-status-warning":{[C("addon-border-color-outlined")]:e.colorWarning,[C("addon-background-filled")]:e.colorWarningBg,color:e.colorWarning}}]}},Ux=Vn(["Space","Addon"],e=>[Zx(e),Yf(e,{focus:!1})]),qx=A.forwardRef((e,n)=>{const{className:r,children:o,style:s,prefixCls:l,variant:c="outlined",disabled:d,status:h,...g}=e,{getPrefixCls:m,direction:v}=A.useContext(Ot),y=m("space-addon",l),[C,_]=Ux(y),{compactItemClassnames:x,compactSize:b}=wl(y,v),E=x0(y,h),S=ce(y,C,x,_,`${y}-variant-${c}`,E,{[`${y}-${b}`]:b,[`${y}-disabled`]:d},r);return A.createElement("div",{ref:n,className:S,style:s,...g},o)});function cp(e){return["small","middle","large"].includes(e)}function up(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const dp=A.createContext({latestIndex:0}),Gx=dp.Provider,Kx=e=>{const{className:n,prefix:r,index:o,children:s,separator:l,style:c,classNames:d,styles:h}=e,{latestIndex:g}=f.useContext(dp);return to(s)?f.createElement(f.Fragment,null,f.createElement("div",{className:n,style:c},s),o<g&&l&&f.createElement("span",{className:ce(`${r}-item-separator`,d==null?void 0:d.separator),style:h==null?void 0:h.separator},l)):null},Qx=e=>{const{componentCls:n,antCls:r}=e;return{[n]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${n}-item:empty`]:{display:"none"},[`${n}-item > ${r}-badge-not-a-wrapper:only-child`]:{display:"block"}}}},Yx=e=>{const{componentCls:n}=e;return{[n]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}},Xx=Vn("Space",e=>{const n=_n(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[Qx(n),Yx(n)]},()=>({}),{resetStyle:!1}),Ts=f.forwardRef((e,n)=>{const{getPrefixCls:r,direction:o,size:s,className:l,style:c,classNames:d,styles:h}=Ur("space"),{size:g=s??"small",align:m,className:v,rootClassName:y,children:C,direction:_,orientation:x,prefixCls:b,split:E,separator:S,style:P,vertical:I,wrap:M=!1,classNames:k,styles:N,...R}=e,[B,z]=Array.isArray(g)?g:[g,g],$=cp(z),j=cp(B),V=up(z),W=up(B),F=Gn(C,{keepEmpty:!0}),[X,J]=Gd(x,I,_),Z=m===void 0&&!J?"center":m,le=S??E,G=r("space",b),[ie,ne]=Xx(G),de={...e,size:g,orientation:X,align:Z},[oe,ee]=kr([d,k],[h,N],{props:de}),K=ce(G,l,ie,`${G}-${X}`,{[`${G}-rtl`]:o==="rtl",[`${G}-align-${Z}`]:Z,[`${G}-gap-row-${z}`]:$,[`${G}-gap-col-${B}`]:j},v,y,ne,oe.root),Y=ce(`${G}-item`,oe.item),se=F.map((Se,Te)=>{const Ce=(Se==null?void 0:Se.key)||`${Y}-${Te}`;return f.createElement(Kx,{prefix:G,classNames:oe,styles:ee,className:Y,key:Ce,index:Te,separator:le,style:ee.item},Se)});if(process.env.NODE_ENV!=="production"){const Se=hn("Space");[["direction","orientation"],["split","separator"]].forEach(([Te,Ce])=>{Se.deprecated(!(Te in e),Te,Ce)})}const fe=f.useMemo(()=>({latestIndex:F.reduce((Te,Ce,te)=>to(Ce)?te:Te,0)}),[F]);if(F.length===0)return null;const xe={};return M&&(xe.flexWrap="wrap"),!j&&W&&(xe.columnGap=B),!$&&V&&(xe.rowGap=z),f.createElement("div",{ref:n,className:K,style:{...xe,...ee.root,...c,...P},...R},f.createElement(Gx,{value:fe},se))});Ts.Compact=tb,Ts.Addon=qx,process.env.NODE_ENV!=="production"&&(Ts.displayName="Space");const Jx=Ts,fp=e=>{const{getPopupContainer:n,getPrefixCls:r,direction:o}=f.useContext(Ot),{prefixCls:s,type:l="default",danger:c,disabled:d,loading:h,onClick:g,htmlType:m,children:v,className:y,menu:C,arrow:_,autoFocus:x,trigger:b,align:E,open:S,onOpenChange:P,placement:I,getPopupContainer:M,href:k,icon:N=f.createElement(Kh,null),title:R,buttonsRender:B=xe=>xe,mouseEnterDelay:z,mouseLeaveDelay:$,overlayClassName:j,overlayStyle:V,destroyOnHidden:W,destroyPopupOnHide:F,dropdownRender:X,popupRender:J,...Z}=e,le=r("dropdown",s),G=`${le}-button`,ne={menu:C,arrow:_,autoFocus:x,align:E,disabled:d,trigger:d?[]:b,onOpenChange:P,getPopupContainer:M||n,mouseEnterDelay:z,mouseLeaveDelay:$,classNames:{root:j},styles:{root:V},destroyOnHidden:W,popupRender:J||X},{compactSize:de,compactItemClassnames:oe}=wl(le,o),ee=ce(G,oe,y);"destroyPopupOnHide"in e&&(ne.destroyPopupOnHide=F),"open"in e&&(ne.open=S),"placement"in e?ne.placement=I:ne.placement=o==="rtl"?"bottomLeft":"bottomRight",process.env.NODE_ENV!=="production"&&hn("Dropdown.Button").deprecated(!1,"Dropdown.Button","Space.Compact + Dropdown + Button");const K=f.createElement(Xf,{type:l,danger:c,disabled:d,loading:h,onClick:g,htmlType:m,href:k,title:R},v),Y=f.createElement(Xf,{type:l,danger:c,icon:N}),[se,fe]=B([K,Y]);return f.createElement(Jx.Compact,{className:ee,size:de,block:!0,...Z},se,f.createElement(op,{...ne},fe))};fp.__ANT_BUTTON=!0;const ew=fp,hp=op;hp.Button=ew;const tw=hp,aS="",pp=({isRollMap:e,setIsRollMap:n,rollIcon:r,normalIcon:o})=>Zt.jsx(Ih,{title:e?"切换为普通地图":"切换为卷帘",placement:"left",children:Zt.jsx("div",{className:"switch-map-mode",onClick:()=>n(!e),children:e?Zt.jsx("img",{src:r,alt:"卷帘模式",className:"map-icon"}):Zt.jsx("img",{src:o,alt:"普通模式",className:"map-icon"})})}),nw="data:image/png;base64,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",rw="data:image/png;base64,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",ow="data:image/png;base64,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",lS="",iw=A.forwardRef(({mapView:e,isRollMap:n,leftLayerGroupRef:r,rightLayerGroupRef:o,sideBySideControl:s,baseMapList:l,baseMapSelectIcon:c})=>{const[d,h]=A.useState(l),[g,m]=A.useState(!1),v=(_,x)=>{if(!e)return;const b=d.map(E=>E.id===_.id?{...E,checked:x}:E);if(h(b),x){const E=tn.tileLayer(_.mapUrl,{id:_.id,maxZoom:18,zIndex:1,pane:"rightPane",zoomOffset:_.zoomOffset||0});o.current.addLayer(E),s&&s.current.setRightLayers(o.current.getLayers())}else o.current.eachLayer(E=>{E.options.id===_.id&&o.current.removeLayer(E)})},y=()=>{if(!e||!o.current)return;o.current.clearLayers();const _=d.find(x=>x.checked);if(_){const x=tn.tileLayer(_.mapUrl,{id:_.id,pane:"rightPane",zoomOffset:_.zoomOffset||0});o.current.addLayer(x)}};A.useEffect(()=>{y()},[]);const C=()=>Zt.jsx("div",{style:{marginLeft:"32px",marginTop:"-34px",backgroundColor:"white",display:"flex",flexDirection:"column",width:"200px",borderRadius:"5px",padding:"10px",gap:"10px",zIndex:1e3},children:d.map(_=>Zt.jsx(jx,{onChange:x=>v(_,x.target.checked),checked:_.checked,style:{width:"200px"},children:Zt.jsx("span",{children:_.name})},_.id))});return Zt.jsx("div",{id:"select-base-map",children:Zt.jsx(tw,{open:g,onOpenChange:m,dropdownRender:C,children:Zt.jsx("div",{onClick:_=>{_.preventDefault(),m(!g)},className:"select-base-map-button",children:Zt.jsx("img",{src:c,alt:"底图选择器",width:25,height:25})})})})}),sw={center:[35.8617,104.1954],zoom:4},aw=A.forwardRef(({mapSettings:e=sw,rollIcon:n=nw,normalIcon:r=rw,baseMapSelectIcon:o=ow,baseMapList:s=[],onIsRollMapChange:l},c)=>{const d=A.useRef(null),h=A.useRef(null),[g,m]=A.useState(),v=A.useRef(null),y=A.useRef(null),[C,_]=A.useState(e.zoom),x=A.useRef(null),b=A.useRef(null),[E,S]=A.useState(!1),P=A.useRef(null),[I,M]=A.useState(Date.now()),k=A.useRef(E);A.useImperativeHandle(c,()=>({addLeftLayers:R=>{!h.current||!v.current||(R.forEach(z=>{z&&z.addTo(v.current)}),x.current&&x.current.setLeftLayers(v.current.getLayers()))},addRightLayers:R=>{!h.current||!y.current||(R.forEach(z=>{z&&z.addTo(y.current)}),x.current&&x.current.setRightLayers(y.current.getLayers()))},clearLeftLayers:()=>{var R;(R=v.current)==null||R.clearLayers()},clearRightLayers:()=>{var R;(R=y.current)==null||R.clearLayers()},getMapInstance:()=>h.current,toggleRollMap:R=>{var B,z,$;if(S(R),R){const j=((B=v.current)==null?void 0:B.getLayers())||[],V=((z=y.current)==null?void 0:z.getLayers())||[];x.current=new tn.Control.sideBySide(j,V),x.current.addTo(h.current)}else($=x.current)==null||$.remove(),x.current=null},getIsRollMap:()=>k.current,getLeftLayersGroup:()=>v.current,getRightLayersGroup:()=>y.current,getMapRef:()=>h.current})),A.useEffect(()=>{if(!d.current||h.current)return;const R=tn.map(d.current,{zoomControl:!1,doubleClickZoom:!1,attributionControl:!1,crs:tn.CRS.EPSG4326}).setView(e.center,e.zoom);R.invalidateSize(),R.createPane("leftPane").style.zIndex="300",R.createPane("rightPane").style.zIndex="300",v.current=tn.layerGroup().addTo(R),y.current=tn.layerGroup().addTo(R);const B=tn.Control.extend({options:{position:"topleft"},onAdd:V=>{const W=tn.DomUtil.create("div","leaflet-control-container"),F=oo(W);F.render(Zt.jsx(Zc,{zoomLevel:C}));const X=()=>{const J=V.getZoom();_(J),F.render(Zt.jsx(Zc,{zoomLevel:J}))};return V.on("zoomend",X),W}}),z=tn.Control.extend({options:{position:"topleft"},onAdd:V=>{const W=tn.DomUtil.create("div","leaflet-control-container"),F=oo(W);return P.current=F,F.render(Zt.jsx(iw,{mapView:V,isRollMap:E,baseMapSelectIcon:o,leftLayerGroupRef:v,rightLayerGroupRef:y,sideBySideControl:x,baseMapList:s},I)),W}}),$=tn.Control.extend({options:{position:"topleft"},onAdd:V=>{const W=tn.DomUtil.create("div","leaflet-control-container"),F=oo(W);return P.current=F,F.render(Zt.jsx(pp,{isRollMap:E,setIsRollMap:S,rollIcon:n,normalIcon:r},I)),W}}),j=()=>m(R.getZoom());return R.on("zoomend",j),R.addControl(new B),tn.control.zoom({position:"topleft"}).addTo(R),R.addControl(new z),R.addControl(new $),h.current=R,()=>{const V=x.current,W=b.current;if(V&&W){V.off("dividermove",W),R.off("move",W);const F=R.getPane("leftPane"),X=R.getPane("rightPane");F&&(F.style.clip=""),X&&(X.style.clip="")}R.off("zoomend",j),R.remove(),h.current=null}},[]);const N=R=>{var $,j,V;if(S(R),k.current=R,!!h.current)if(R){const W=(($=v.current)==null?void 0:$.getLayers())||[],F=((j=y.current)==null?void 0:j.getLayers())||[];x.current=tn.control.sideBySide(W,F),x.current.addTo(h.current),x.current.on("dividermove",()=>{var X;(X=h.current)==null||X.eachLayer(J=>{J instanceof tn.Marker})})}else{(V=x.current)==null||V.remove(),x.current=null;var B=h.current.getPane("leftPane"),z=h.current.getPane("rightPane");B&&(B.style.clip=""),z&&(z.style.clip="")}};return A.useEffect(()=>{h.current&&(N(E),l==null||l(E),P.current&&P.current.render(Zt.jsx(pp,{isRollMap:E,setIsRollMap:S,rollIcon:n,normalIcon:r},Date.now())))},[E,l]),Zt.jsx("div",{ref:d,style:{height:"100%",width:"100%"}})});fn.default=aw,Object.defineProperties(fn,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
362
|
+
${y?`width: calc(100% - ${d}px);`:""}
|
|
363
|
+
}`,h)}else rc(h);return()=>{rc(h)}},[u,h])}function cE(){return{...X}.useId}let c_=0;const u_=cE(),d_=u_?function(u){const h=u_();return u||(process.env.NODE_ENV==="test"?"test-id":h)}:function(u){const[h,d]=X.useState("ssr-id");return X.useEffect(()=>{const y=c_;c_+=1,d(`rc_unique_${y}`)},[]),u||(process.env.NODE_ENV==="test"?"test-id":h)};let Ws=[];const uE=200;let sp=0;process.env.NODE_ENV;const h_=s=>{if(s.key==="Escape"&&!s.isComposing){if(Date.now()-sp<uE)return;const h=Ws.length;for(let d=h-1;d>=0;d-=1)Ws[d].onEsc({top:d===h-1,event:s})}},f_=()=>{sp=Date.now()};function dE(){window.addEventListener("keydown",h_),window.addEventListener("compositionend",f_)}function hE(){Ws.length===0&&(window.removeEventListener("keydown",h_),window.removeEventListener("compositionend",f_))}function fE(s,u){const h=d_(),d=Ro(u),y=()=>{Ws.find(M=>M.id===h)||Ws.push({id:h,onEsc:d})},k=()=>{Ws=Ws.filter(M=>M.id!==h)};ce.useMemo(()=>{s?y():s||k()},[s]),ce.useEffect(()=>{if(s)return y(),dE(),()=>{k(),hE()}},[s])}const p_=s=>s===!1?!1:!hr()||!s?null:typeof s=="string"?document.querySelector(s):typeof s=="function"?s():s,id=X.forwardRef((s,u)=>{const{open:h,autoLock:d,getContainer:y,debug:k,autoDestroy:M=!0,children:T,onEsc:H}=s,[Z,v]=X.useState(h),V=Z||h;process.env.NODE_ENV!=="production"&&rs(hr()||!h,"Portal only work in client side. Please call 'useEffect' to show Portal instead default render in SSR."),X.useEffect(()=>{(M||h)&&v(h)},[h,M]);const[K,pe]=X.useState(()=>p_(y));X.useEffect(()=>{const Ie=p_(y);pe(()=>Ie??null)});const[de,re]=oE(V&&!K,k),ne=K??de;lE(d&&h&&hr()&&(ne===de||ne===document.body)),fE(h,H);let ue=null;T&&Au(T)&&u&&(ue=nc(T));const ge=Lu(ue,u);if(!V||!hr()||K===void 0)return null;const ve=ne===!1||nE();let xe=T;return u&&(xe=X.cloneElement(T,{ref:ge})),X.createElement(r_.Provider,{value:re},ve?xe:ji.createPortal(xe,ne))});process.env.NODE_ENV!=="production"&&(id.displayName="Portal");function pE(s){const{prefixCls:u,align:h,arrow:d,arrowPos:y}=s,{className:k,content:M,style:T}=d||{},{x:H=0,y:Z=0}=y,v=X.useRef(null);if(!h||!h.points)return null;const V={position:"absolute"};if(h.autoArrow!==!1){const K=h.points[0],pe=h.points[1],de=K[0],re=K[1],ne=pe[0],ue=pe[1];de===ne||!["t","b"].includes(de)?V.top=Z:de==="t"?V.top=0:V.bottom=0,re===ue||!["l","r"].includes(re)?V.left=H:re==="l"?V.left=0:V.right=0}return X.createElement("div",{ref:v,className:ao(`${u}-arrow`,k),style:{...V,...T}},M)}function ap(){return ap=Object.assign?Object.assign.bind():function(s){for(var u=1;u<arguments.length;u++){var h=arguments[u];for(var d in h)Object.prototype.hasOwnProperty.call(h,d)&&(s[d]=h[d])}return s},ap.apply(this,arguments)}function mE(s){const{prefixCls:u,open:h,zIndex:d,mask:y,motion:k,mobile:M}=s;return y?X.createElement(el,ap({},k,{motionAppear:!0,visible:h,removeOnLeave:!0}),({className:T})=>X.createElement("div",{style:{zIndex:d},className:ao(`${u}-mask`,M&&`${u}-mobile-mask`,T)})):null}const m_=X.memo(({children:s})=>s,(s,u)=>u.cache);process.env.NODE_ENV!=="production"&&(m_.displayName="PopupContent");function g_(s,u,h,d,y,k,M,T){var v;const H="auto",Z=s?{}:{left:"-1000vw",top:"-1000vh",right:H,bottom:H};if(!s&&(u||!h)){const{points:V}=d,K=d.dynamicInset||((v=d._experimental)==null?void 0:v.dynamicInset),pe=K&&V[0][1]==="r",de=K&&V[0][0]==="b";pe?(Z.right=y,Z.left=H):(Z.left=M,Z.right=H),de?(Z.bottom=k,Z.top=H):(Z.top=T,Z.bottom=H)}return Z}function lp(){return lp=Object.assign?Object.assign.bind():function(s){for(var u=1;u<arguments.length;u++){var h=arguments[u];for(var d in h)Object.prototype.hasOwnProperty.call(h,d)&&(s[d]=h[d])}return s},lp.apply(this,arguments)}const cp=X.forwardRef((s,u)=>{const{onEsc:h,popup:d,className:y,prefixCls:k,style:M,target:T,onVisibleChanged:H,open:Z,keepDom:v,fresh:V,onClick:K,mask:pe,arrow:de,arrowPos:re,align:ne,motion:ue,maskMotion:ge,mobile:ve,forceRender:xe,getPopupContainer:Ie,autoDestroy:Ue,portal:Pe,children:Oe,zIndex:wt,onMouseEnter:dt,onMouseLeave:Be,onPointerEnter:et,onPointerDownCapture:lt,ready:ot,offsetX:Pt,offsetY:Ut,offsetR:gt,offsetB:Te,onAlign:mn,onPrepare:He,onResize:Ot,stretch:Lt,targetWidth:dn,targetHeight:Je}=s,Ct=typeof d=="function"?d():d,bt=Z||v,Ye=!!ve,[Rt,Ht,On]=X.useMemo(()=>ve?[ve.mask,ve.maskMotion,ve.motion]:[pe,ge,ue],[ve,pe,ge,ue]),Dn=(Ie==null?void 0:Ie.length)>0,[ho,gn]=X.useState(!Ie||!Dn);tr(()=>{!ho&&Dn&&T&&gn(!0)},[ho,Dn,T]);const vt=Ro((En,jn)=>{Ot==null||Ot(En,jn),mn()}),Tt=g_(Ye,ot,Z,ne,gt,Te,Pt,Ut);if(!ho)return null;const vn={};return Lt&&(Lt.includes("height")&&Je?vn.height=Je:Lt.includes("minHeight")&&Je&&(vn.minHeight=Je),Lt.includes("width")&&dn?vn.width=dn:Lt.includes("minWidth")&&dn&&(vn.minWidth=dn)),Z||(vn.pointerEvents="none"),X.createElement(Pe,{open:xe||bt,getContainer:Ie&&(()=>Ie(T)),autoDestroy:Ue,onEsc:h},X.createElement(mE,{prefixCls:k,open:Z,zIndex:wt,mask:Rt,motion:Ht,mobile:Ye}),X.createElement(af,{onResize:vt,disabled:!Z},En=>X.createElement(el,lp({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:xe,leavedClassName:`${k}-hidden`},On,{onAppearPrepare:He,onEnterPrepare:He,visible:Z,onVisibleChanged:jn=>{var Zn;(Zn=ue==null?void 0:ue.onVisibleChanged)==null||Zn.call(ue,jn),H(jn)}}),({className:jn,style:Zn},eo)=>{const to=ao(k,jn,y,{[`${k}-mobile`]:Ye});return X.createElement("div",{ref:Tu(En,u,eo),className:to,style:{"--arrow-x":`${re.x||0}px`,"--arrow-y":`${re.y||0}px`,...Tt,...vn,...Zn,boxSizing:"border-box",zIndex:wt,...M},onMouseEnter:dt,onMouseLeave:Be,onPointerEnter:et,onClick:K,onPointerDownCapture:lt},de&&X.createElement(pE,{prefixCls:k,arrow:de,arrowPos:re,align:ne}),X.createElement(m_,{cache:!Z&&!V},Ct))})),Oe)});process.env.NODE_ENV!=="production"&&(cp.displayName="Popup");const rd=X.createContext(null),v_=X.createContext(null);function y_(s){return s?Array.isArray(s)?s:[s]:[]}function gE(s,u,h){return X.useMemo(()=>{const d=y_(u??s),y=y_(h??s),k=new Set(d),M=new Set(y);return k.has("hover")&&!k.has("click")&&k.add("touch"),M.has("hover")&&!M.has("click")&&M.add("touch"),[k,M]},[s,u,h])}const __=s=>{if(!s)return!1;if(s instanceof Element){if(s.offsetParent)return!0;if(s.getBBox){const{width:u,height:h}=s.getBBox();if(u||h)return!0}if(s.getBoundingClientRect){const{width:u,height:h}=s.getBoundingClientRect();if(u||h)return!0}}return!1};function vE(s=[],u=[],h){const d=(y,k)=>y[k]||"";return h?d(s,0)===d(u,0):d(s,0)===d(u,0)&&d(s,1)===d(u,1)}function b_(s,u,h,d){var M;const{points:y}=h,k=Object.keys(s);for(let T=0;T<k.length;T+=1){const H=k[T];if(vE((M=s[H])==null?void 0:M.points,y,d))return`${u}-placement-${H}`}return""}function xc(s){return s.ownerDocument.defaultView}function up(s){const u=[];let h=s==null?void 0:s.parentElement;const d=["hidden","scroll","clip","auto"];for(;h;){const{overflowX:y,overflowY:k,overflow:M}=xc(h).getComputedStyle(h);[y,k,M].some(T=>d.includes(T))&&u.push(h),h=h.parentElement}return u}function wc(s,u=1){return Number.isNaN(s)?u:s}function Cc(s){return wc(parseFloat(s),0)}function x_(s,u){const h={...s};return(u||[]).forEach(d=>{if(d instanceof HTMLBodyElement||d instanceof HTMLHtmlElement)return;const{overflow:y,overflowClipMargin:k,borderTopWidth:M,borderBottomWidth:T,borderLeftWidth:H,borderRightWidth:Z}=xc(d).getComputedStyle(d),v=d.getBoundingClientRect(),{offsetHeight:V,clientHeight:K,offsetWidth:pe,clientWidth:de}=d,re=Cc(M),ne=Cc(T),ue=Cc(H),ge=Cc(Z),ve=wc(Math.round(v.width/pe*1e3)/1e3),xe=wc(Math.round(v.height/V*1e3)/1e3),Ie=(pe-de-ue-ge)*ve,Ue=(V-K-re-ne)*xe,Pe=re*xe,Oe=ne*xe,wt=ue*ve,dt=ge*ve;let Be=0,et=0;if(y==="clip"){const gt=Cc(k);Be=gt*ve,et=gt*xe}const lt=v.x+wt-Be,ot=v.y+Pe-et,Pt=lt+v.width+2*Be-wt-dt-Ie,Ut=ot+v.height+2*et-Pe-Oe-Ue;h.left=Math.max(h.left,lt),h.top=Math.max(h.top,ot),h.right=Math.min(h.right,Pt),h.bottom=Math.min(h.bottom,Ut)}),h}function w_(s,u=0){const h=`${u}`,d=h.match(/^(.*)\%$/);return d?s*(parseFloat(d[1])/100):parseFloat(h)}function C_(s,u){const[h,d]=u||[];return[w_(s.width,h),w_(s.height,d)]}function S_(s=""){return[s[0],s[1]]}function tl(s,u){const h=u[0],d=u[1];let y,k;return h==="t"?k=s.y:h==="b"?k=s.y+s.height:k=s.y+s.height/2,d==="l"?y=s.x:d==="r"?y=s.x+s.width:y=s.x+s.width/2,{x:y,y:k}}function qs(s,u){const h={t:"b",b:"t",l:"r",r:"l"},d=[...s];return d[u]=h[s[u]]||"c",d}function E_(s){return s.join("")}function P_(s,u,h,d,y,k,M,T){const[H,Z]=X.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:y[d]||{}}),v=X.useRef(0),V=X.useMemo(()=>!u||T?[]:up(u),[u]),K=X.useRef({});s||(()=>{K.current={}})();const de=Ro(()=>{var ue,ge;if(u&&h&&s&&!T){let po=function(zt,yt,Yt=vn){const Vi=Pt.x+zt,Wi=Pt.y+yt,Gn=Vi+Ct,ks=Wi+Je,jt=Math.max(Vi,Yt.left),io=Math.max(Wi,Yt.top),Is=Math.min(Gn,Yt.right),Xe=Math.min(ks,Yt.bottom);return Math.max(0,(Is-jt)*(Xe-io))},Po=function(){mo=Pt.y+Fn,mi=mo+Je,gi=Pt.x+tn,Go=gi+Ct};const ve=u,xe=ve.ownerDocument,Ie=xc(ve),{position:Ue}=Ie.getComputedStyle(ve),Pe=ve.style.left,Oe=ve.style.top,wt=ve.style.right,dt=ve.style.bottom,Be=ve.style.overflow,et={...y[d],...k},lt=xe.createElement("div");(ue=ve.parentElement)==null||ue.appendChild(lt),lt.style.left=`${ve.offsetLeft}px`,lt.style.top=`${ve.offsetTop}px`,lt.style.position=Ue,lt.style.height=`${ve.offsetHeight}px`,lt.style.width=`${ve.offsetWidth}px`,ve.style.left="0",ve.style.top="0",ve.style.right="auto",ve.style.bottom="auto",ve.style.overflow="hidden";let ot;if(Array.isArray(h))ot={x:h[0],y:h[1],width:0,height:0};else{const zt=h.getBoundingClientRect();zt.x=zt.x??zt.left,zt.y=zt.y??zt.top,ot={x:zt.x,y:zt.y,width:zt.width,height:zt.height}}const Pt=ve.getBoundingClientRect(),{height:Ut,width:gt}=Ie.getComputedStyle(ve);Pt.x=Pt.x??Pt.left,Pt.y=Pt.y??Pt.top;const{clientWidth:Te,clientHeight:mn,scrollWidth:He,scrollHeight:Ot,scrollTop:Lt,scrollLeft:dn}=xe.documentElement,Je=Pt.height,Ct=Pt.width,bt=ot.height,Ye=ot.width,Rt={left:0,top:0,right:Te,bottom:mn},Ht={left:-dn,top:-Lt,right:He-dn,bottom:Ot-Lt};let{htmlRegion:On}=et;const Dn="visible",ho="visibleFirst";On!=="scroll"&&On!==ho&&(On=Dn);const gn=On===ho,vt=x_(Ht,V),Tt=x_(Rt,V),vn=On===Dn?Tt:vt,En=gn?Tt:vn;ve.style.left="auto",ve.style.top="auto",ve.style.right="0",ve.style.bottom="0";const jn=ve.getBoundingClientRect();ve.style.left=Pe,ve.style.top=Oe,ve.style.right=wt,ve.style.bottom=dt,ve.style.overflow=Be,(ge=ve.parentElement)==null||ge.removeChild(lt);const Zn=wc(Math.round(Ct/parseFloat(gt)*1e3)/1e3),eo=wc(Math.round(Je/parseFloat(Ut)*1e3)/1e3);if(Zn===0||eo===0||Va(h)&&!__(h))return;const{offset:to,targetOffset:Ri}=et;let[Jn,Kn]=C_(Pt,to);const[ii,fo]=C_(ot,Ri);ot.x-=ii,ot.y-=fo;const[hi,zi]=et.points||[],Si=S_(zi),yn=S_(hi),xo=tl(ot,Si),Vn=tl(Pt,yn),fi={...et};let no=[yn,Si],tn=xo.x-Vn.x+Jn,Fn=xo.y-Vn.y+Kn;const Wn=po(tn,Fn),Wt=po(tn,Fn,Tt),pi=tl(ot,["t","l"]),Rn=tl(Pt,["t","l"]),oo=tl(ot,["b","r"]),ri=tl(Pt,["b","r"]),In=et.overflow||{},{adjustX:Mo,adjustY:or,shiftX:pr,shiftY:ir}=In,Zi=zt=>typeof zt=="boolean"?zt:zt>=0;let mo,mi,gi,Go;Po();const it=Zi(or),Ei=yn[0]===Si[0];if(it&&yn[0]==="t"&&(mi>En.bottom||K.current.bt)){let zt=Fn;Ei?zt-=Je-bt:zt=pi.y-ri.y-Kn;const yt=po(tn,zt),Yt=po(tn,zt,Tt);yt>Wn||yt===Wn&&(!gn||Yt>=Wt)?(K.current.bt=!0,Fn=zt,Kn=-Kn,no=[qs(no[0],0),qs(no[1],0)]):K.current.bt=!1}if(it&&yn[0]==="b"&&(mo<En.top||K.current.tb)){let zt=Fn;Ei?zt+=Je-bt:zt=oo.y-Rn.y-Kn;const yt=po(tn,zt),Yt=po(tn,zt,Tt);yt>Wn||yt===Wn&&(!gn||Yt>=Wt)?(K.current.tb=!0,Fn=zt,Kn=-Kn,no=[qs(no[0],0),qs(no[1],0)]):K.current.tb=!1}const Fo=Zi(Mo),G=yn[1]===Si[1];if(Fo&&yn[1]==="l"&&(Go>En.right||K.current.rl)){let zt=tn;G?zt-=Ct-Ye:zt=pi.x-ri.x-Jn;const yt=po(zt,Fn),Yt=po(zt,Fn,Tt);yt>Wn||yt===Wn&&(!gn||Yt>=Wt)?(K.current.rl=!0,tn=zt,Jn=-Jn,no=[qs(no[0],1),qs(no[1],1)]):K.current.rl=!1}if(Fo&&yn[1]==="r"&&(gi<En.left||K.current.lr)){let zt=tn;G?zt+=Ct-Ye:zt=oo.x-Rn.x-Jn;const yt=po(zt,Fn),Yt=po(zt,Fn,Tt);yt>Wn||yt===Wn&&(!gn||Yt>=Wt)?(K.current.lr=!0,tn=zt,Jn=-Jn,no=[qs(no[0],1),qs(no[1],1)]):K.current.lr=!1}fi.points=[E_(no[0]),E_(no[1])],Po();const Ce=pr===!0?0:pr;typeof Ce=="number"&&(gi<Tt.left&&(tn-=gi-Tt.left-Jn,ot.x+Ye<Tt.left+Ce&&(tn+=ot.x-Tt.left+Ye-Ce)),Go>Tt.right&&(tn-=Go-Tt.right-Jn,ot.x>Tt.right-Ce&&(tn+=ot.x-Tt.right+Ce)));const De=ir===!0?0:ir;typeof De=="number"&&(mo<Tt.top&&(Fn-=mo-Tt.top-Kn,ot.y+bt<Tt.top+De&&(Fn+=ot.y-Tt.top+bt-De)),mi>Tt.bottom&&(Fn-=mi-Tt.bottom-Kn,ot.y>Tt.bottom-De&&(Fn+=ot.y-Tt.bottom+De)));const Ke=Pt.x+tn,Bt=Ke+Ct,_n=Pt.y+Fn,xt=_n+Je,kt=ot.x,qn=kt+Ye,nn=ot.y,Bn=nn+bt,Re=Math.max(Ke,kt),zo=Math.min(Bt,qn),To=(Re+zo)/2-Ke,vi=Math.max(_n,nn),si=Math.min(xt,Bn),Er=(vi+si)/2-_n;M==null||M(u,fi);let rr=jn.right-Pt.x-(tn+Pt.width),Hr=jn.bottom-Pt.y-(Fn+Pt.height);Zn===1&&(tn=Math.floor(tn),rr=Math.floor(rr)),eo===1&&(Fn=Math.floor(Fn),Hr=Math.floor(Hr));const jr={ready:!0,offsetX:tn/Zn,offsetY:Fn/eo,offsetR:rr/Zn,offsetB:Hr/eo,arrowX:To/Zn,arrowY:Er/eo,scaleX:Zn,scaleY:eo,align:fi};Z(jr)}}),re=()=>{v.current+=1;const ue=v.current;Promise.resolve().then(()=>{v.current===ue&&de()})},ne=()=>{Z(ue=>({...ue,ready:!1}))};return tr(ne,[d]),tr(()=>{s||ne()},[s]),[H.ready,H.offsetX,H.offsetY,H.offsetR,H.offsetB,H.arrowX,H.arrowY,H.scaleX,H.scaleY,H.align,re]}function k_(){const s=X.useRef(null),u=()=>{s.current&&(clearTimeout(s.current),s.current=null)},h=(d,y)=>{u(),y===0?d():s.current=setTimeout(()=>{d()},y*1e3)};return X.useEffect(()=>()=>{u()},[]),h}function yE(s,u,h,d,y){tr(()=>{if(s&&u&&h){let V=function(){d(),y()};const k=u,M=h,T=up(k),H=up(M),Z=xc(M),v=new Set([Z,...T,...H]);return v.forEach(K=>{K.addEventListener("scroll",V,{passive:!0})}),Z.addEventListener("resize",V,{passive:!0}),d(),()=>{v.forEach(K=>{K.removeEventListener("scroll",V),Z.removeEventListener("resize",V)})}}},[s,u,h])}function _E(s,u,h,d,y,k,M,T){const H=X.useRef(s);H.current=s;const Z=X.useRef(!1);X.useEffect(()=>{var V,K;if(u&&d&&(!y||k)){const pe=()=>{Z.current=!1},de=ue=>{var ge,ve;H.current&&!M(((ve=(ge=ue.composedPath)==null?void 0:ge.call(ue))==null?void 0:ve[0])||ue.target)&&!Z.current&&T(!1)},re=xc(d);re.addEventListener("pointerdown",pe,!0),re.addEventListener("mousedown",de,!0),re.addEventListener("contextmenu",de,!0);const ne=Qu(h);if(ne&&(ne.addEventListener("mousedown",de,!0),ne.addEventListener("contextmenu",de,!0)),process.env.NODE_ENV!=="production"&&h){const ue=(V=h.getRootNode)==null?void 0:V.call(h),ge=(K=d.getRootNode)==null?void 0:K.call(d);oc(ue===ge,"trigger element and popup element should in same shadow root.")}return()=>{re.removeEventListener("pointerdown",pe,!0),re.removeEventListener("mousedown",de,!0),re.removeEventListener("contextmenu",de,!0),ne&&(ne.removeEventListener("mousedown",de,!0),ne.removeEventListener("contextmenu",de,!0))}}},[u,h,d,y,k]);function v(){Z.current=!0}return v}function bE(){const[s,u]=ce.useState(null),[h,d]=ce.useState(!1),[y,k]=ce.useState(!1),M=ce.useRef(null),T=Ro(Z=>{Z===!1?(M.current=null,d(!1)):y&&h?M.current=Z:(d(!0),u(Z),M.current=null,h||k(!0))}),H=Ro(Z=>{Z?(k(!1),M.current&&(u(M.current),M.current=null)):(k(!1),M.current=null)});return[T,h,s,H]}function dp(){return dp=Object.assign?Object.assign.bind():function(s){for(var u=1;u<arguments.length;u++){var h=arguments[u];for(var d in h)Object.prototype.hasOwnProperty.call(h,d)&&(s[d]=h[d])}return s},dp.apply(this,arguments)}const xE=s=>{const{prefixCls:u,isMobile:h,ready:d,open:y,align:k,offsetR:M,offsetB:T,offsetX:H,offsetY:Z,arrowPos:v,popupSize:V,motion:K,uniqueContainerClassName:pe,uniqueContainerStyle:de}=s,re=`${u}-unique-container`,[ne,ue]=ce.useState(!1),ge=g_(h,d,y,k,M,T,H,Z),ve=ce.useRef(ge);d&&(ve.current=ge);const xe={};return V&&(xe.width=V.width,xe.height=V.height),ce.createElement(el,dp({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,leavedClassName:`${re}-hidden`},K,{visible:y,onVisibleChanged:Ie=>{ue(Ie)}}),({className:Ie,style:Ue})=>{const Pe=ao(re,Ie,pe,{[`${re}-visible`]:ne});return ce.createElement("div",{className:Pe,style:{"--arrow-x":`${(v==null?void 0:v.x)||0}px`,"--arrow-y":`${(v==null?void 0:v.y)||0}px`,...ve.current,...xe,...Ue,...de}})})},wE=({children:s,postTriggerProps:u})=>{const[h,d,y,k]=bE(),M=X.useMemo(()=>!y||!u?y:u(y),[y,u]),[T,H]=X.useState(null),[Z,v]=X.useState(null),V=X.useRef(null),K=Ro(Te=>{V.current=Te,Va(Te)&&T!==Te&&H(Te)}),pe=X.useRef(null),de=k_(),re=Ro((Te,mn)=>{pe.current=mn,de(()=>{h(Te)},Te.delay)}),ne=Te=>{de(()=>{var mn;(mn=pe.current)!=null&&mn.call(pe)||h(!1)},Te)},ue=Ro(Te=>{k(Te)}),[ge,ve,xe,Ie,Ue,Pe,Oe,,,wt,dt]=P_(d,T,M==null?void 0:M.target,M==null?void 0:M.popupPlacement,(M==null?void 0:M.builtinPlacements)||{},M==null?void 0:M.popupAlign,void 0,!1),Be=X.useMemo(()=>{var mn;if(!M)return"";const Te=b_(M.builtinPlacements||{},M.prefixCls||"",wt,!1);return ao(Te,(mn=M.getPopupClassNameFromAlign)==null?void 0:mn.call(M,wt))},[wt,M==null?void 0:M.getPopupClassNameFromAlign,M==null?void 0:M.builtinPlacements,M==null?void 0:M.prefixCls]),et=X.useMemo(()=>({show:re,hide:ne}),[]);X.useEffect(()=>{dt()},[M==null?void 0:M.target]);const lt=Ro(()=>(dt(),Promise.resolve())),ot=X.useRef({}),Pt=X.useContext(rd),Ut=X.useMemo(()=>({registerSubPopup:(Te,mn)=>{ot.current[Te]=mn,Pt==null||Pt.registerSubPopup(Te,mn)}}),[Pt]),gt=M==null?void 0:M.prefixCls;return X.createElement(v_.Provider,{value:et},s,M&&X.createElement(rd.Provider,{value:Ut},X.createElement(cp,{ref:K,portal:id,onEsc:M.onEsc,prefixCls:gt,popup:M.popup,className:ao(M.popupClassName,Be,`${gt}-unique-controlled`),style:M.popupStyle,target:M.target,open:d,keepDom:!0,fresh:!0,autoDestroy:!1,onVisibleChanged:ue,ready:ge,offsetX:ve,offsetY:xe,offsetR:Ie,offsetB:Ue,onAlign:dt,onPrepare:lt,onResize:Te=>v({width:Te.offsetWidth,height:Te.offsetHeight}),arrowPos:{x:Pe,y:Oe},align:wt,zIndex:M.zIndex,mask:M.mask,arrow:M.arrow,motion:M.popupMotion,maskMotion:M.maskMotion,getPopupContainer:M.getPopupContainer},X.createElement(xE,{prefixCls:gt,isMobile:!1,ready:ge,open:d,align:wt,offsetR:Ie,offsetB:Ue,offsetX:ve,offsetY:xe,arrowPos:{x:Pe,y:Oe},popupSize:Z,motion:M.popupMotion,uniqueContainerClassName:ao(M.uniqueContainerClassName,Be),uniqueContainerStyle:M.uniqueContainerStyle}))))};function CE(s=id){const u=X.forwardRef((h,d)=>{const{prefixCls:y="rc-trigger-popup",children:k,action:M="hover",showAction:T,hideAction:H,popupVisible:Z,defaultPopupVisible:v,onOpenChange:V,afterOpenChange:K,onPopupVisibleChange:pe,afterPopupVisibleChange:de,mouseEnterDelay:re,mouseLeaveDelay:ne=.1,focusDelay:ue,blurDelay:ge,mask:ve,maskClosable:xe=!0,getPopupContainer:Ie,forceRender:Ue,autoDestroy:Pe,popup:Oe,popupClassName:wt,uniqueContainerClassName:dt,uniqueContainerStyle:Be,popupStyle:et,popupPlacement:lt,builtinPlacements:ot={},popupAlign:Pt,zIndex:Ut,stretch:gt,getPopupClassNameFromAlign:Te,fresh:mn,unique:He,alignPoint:Ot,onPopupClick:Lt,onPopupAlign:dn,arrow:Je,popupMotion:Ct,maskMotion:bt,mobile:Ye,...Rt}=h,Ht=Pe||!1,On=Z===void 0,Dn=!!Ye,ho=X.useRef({}),gn=X.useContext(rd),vt=X.useMemo(()=>({registerSubPopup:(Xe,Nt)=>{ho.current[Xe]=Nt,gn==null||gn.registerSubPopup(Xe,Nt)}}),[gn]),Tt=X.useContext(v_),vn=d_(),[En,jn]=X.useState(null),Zn=X.useRef(null),eo=Ro(Xe=>{Zn.current=Xe,Va(Xe)&&En!==Xe&&jn(Xe),gn==null||gn.registerSubPopup(vn,Xe)}),[to,Ri]=X.useState(null),Jn=X.useRef(null),Kn=Ro(Xe=>{const Nt=nf(Xe);Va(Nt)&&to!==Nt&&(Ri(Nt),Jn.current=Nt)}),ii={},fo=Ro(Xe=>{var ai,Ki;const Nt=to;return(Nt==null?void 0:Nt.contains(Xe))||((ai=Qu(Nt))==null?void 0:ai.host)===Xe||Xe===Nt||(En==null?void 0:En.contains(Xe))||((Ki=Qu(En))==null?void 0:Ki.host)===Xe||Xe===En||Object.values(ho.current).some(Pi=>(Pi==null?void 0:Pi.contains(Xe))||Xe===Pi)}),hi=Je?{...Je!==!0?Je:{}}:null,[zi,Si]=ev(v||!1,Z),yn=zi||!1,xo=X.useMemo(()=>{const Xe=typeof k=="function"?k({open:yn}):k;return X.Children.only(Xe)},[k,yn]),Vn=(xo==null?void 0:xo.props)||{},fi=Ro(()=>yn),no=Ro((Xe=0)=>({popup:Oe,target:to,delay:Xe,prefixCls:y,popupClassName:wt,uniqueContainerClassName:dt,uniqueContainerStyle:Be,popupStyle:et,popupPlacement:lt,builtinPlacements:ot,popupAlign:Pt,zIndex:Ut,mask:ve,maskClosable:xe,popupMotion:Ct,maskMotion:bt,arrow:hi,getPopupContainer:Ie,getPopupClassNameFromAlign:Te,id:vn,onEsc:Wt}));tr(()=>{Tt&&He&&to&&!On&&!gn&&(yn?Tt.show(no(re),fi):Tt.hide(ne))},[yn,to]);const tn=X.useRef(yn);tn.current=yn;const Fn=Ro(Xe=>{ji.flushSync(()=>{yn!==Xe&&(Si(Xe),V==null||V(Xe),pe==null||pe(Xe))})}),po=k_(),Wn=(Xe,Nt=0)=>{if(Z!==void 0){po(()=>{Fn(Xe)},Nt);return}if(Tt&&He&&On&&!gn){Xe?Tt.show(no(Nt),fi):Tt.hide(Nt);return}po(()=>{Fn(Xe)},Nt)};function Wt({top:Xe}){Xe&&Wn(!1)}const[pi,Rn]=X.useState(!1);tr(Xe=>{(!Xe||yn)&&Rn(!0)},[yn]);const[oo,ri]=X.useState(null),[In,Mo]=X.useState(null),or=Xe=>{Mo([Xe.clientX,Xe.clientY])},[pr,ir,Zi,mo,mi,gi,Go,Po,it,Ei,Fo]=P_(yn,En,Ot&&In!==null?In:to,lt,ot,Pt,dn,Dn),[G,Ce]=gE(M,T,H),De=G.has("click"),Ke=Ce.has("click")||Ce.has("contextMenu"),Bt=Ro(()=>{pi||Fo()});yE(yn,to,En,Bt,()=>{tn.current&&Ot&&Ke&&Wn(!1)}),tr(()=>{Bt()},[In,lt]),tr(()=>{yn&&!(ot!=null&&ot[lt])&&Bt()},[JSON.stringify(Pt)]);const xt=X.useMemo(()=>{const Xe=b_(ot,y,Ei,Ot);return ao(Xe,Te==null?void 0:Te(Ei))},[Ei,Te,ot,y,Ot]);X.useImperativeHandle(d,()=>({nativeElement:Jn.current,popupElement:Zn.current,forceAlign:Bt}));const[kt,qn]=X.useState(0),[nn,Bn]=X.useState(0),Re=()=>{if(gt&&to){const Xe=to.getBoundingClientRect();qn(Xe.width),Bn(Xe.height)}},zo=()=>{Re(),Bt()},Bi=Xe=>{Rn(!1),Fo(),K==null||K(Xe),de==null||de(Xe)},To=()=>new Promise(Xe=>{Re(),ri(()=>Xe)});tr(()=>{oo&&(Fo(),oo(),ri(null))},[oo]);function vi(Xe,Nt,ai,Ki,Pi){ii[Xe]=(go,...Zr)=>{var Pr;(!Pi||!Pi())&&(Ki==null||Ki(go),Wn(Nt,ai)),(Pr=Vn[Xe])==null||Pr.call(Vn,go,...Zr)}}const si=G.has("touch"),Ho=Ce.has("touch"),Er=X.useRef(!1);(si||Ho)&&(ii.onTouchStart=(...Xe)=>{var Nt;Er.current=!0,tn.current&&Ho?Wn(!1):!tn.current&&si&&Wn(!0),(Nt=Vn.onTouchStart)==null||Nt.call(Vn,...Xe)}),(De||Ke)&&(ii.onClick=(Xe,...Nt)=>{var ai;tn.current&&Ke?Wn(!1):!tn.current&&De&&(or(Xe),Wn(!0)),(ai=Vn.onClick)==null||ai.call(Vn,Xe,...Nt),Er.current=!1});const rr=_E(yn,Ke||Ho,to,En,ve,xe,fo,Wn),Hr=G.has("hover"),jr=Ce.has("hover");let zt,yt;const Yt=()=>Er.current;if(Hr){const Xe=Nt=>{or(Nt)};vi("onMouseEnter",!0,re,Xe,Yt),vi("onPointerEnter",!0,re,Xe,Yt),zt=Nt=>{(yn||pi)&&(En!=null&&En.contains(Nt.target))&&Wn(!0,re)},Ot&&(ii.onMouseMove=Nt=>{var ai;(ai=Vn.onMouseMove)==null||ai.call(Vn,Nt)})}jr&&(vi("onMouseLeave",!1,ne,void 0,Yt),vi("onPointerLeave",!1,ne,void 0,Yt),yt=()=>{Wn(!1,ne)}),G.has("focus")&&vi("onFocus",!0,ue),Ce.has("focus")&&vi("onBlur",!1,ge),G.has("contextMenu")&&(ii.onContextMenu=(Xe,...Nt)=>{var ai;tn.current&&Ce.has("contextMenu")?Wn(!1):(or(Xe),Wn(!0)),Xe.preventDefault(),(ai=Vn.onContextMenu)==null||ai.call(Vn,Xe,...Nt)});const Vi=X.useRef(!1);Vi.current||(Vi.current=Ue||yn||pi);const Wi={...Vn,...ii},Gn={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach(Xe=>{Rt[Xe]&&(Gn[Xe]=(...Nt)=>{var ai;(ai=Wi[Xe])==null||ai.call(Wi,...Nt),Rt[Xe](...Nt)})});const jt={x:gi,y:Go};fv(yn,to,zo);const io=Lu(Kn,nc(xo)),Is=X.cloneElement(xo,{...Wi,...Gn,ref:io});return X.createElement(X.Fragment,null,Is,Vi.current&&(!Tt||!He)&&X.createElement(rd.Provider,{value:vt},X.createElement(cp,{portal:s,ref:eo,prefixCls:y,popup:Oe,className:ao(wt,!Dn&&xt),style:et,target:to,onMouseEnter:zt,onMouseLeave:yt,onPointerEnter:zt,zIndex:Ut,open:yn,keepDom:pi,fresh:mn,onClick:Lt,onPointerDownCapture:rr,mask:ve,motion:Ct,maskMotion:bt,onVisibleChanged:Bi,onPrepare:To,forceRender:Ue,autoDestroy:Ht,getPopupContainer:Ie,onEsc:Wt,align:Ei,arrow:hi,arrowPos:jt,ready:pr,offsetX:ir,offsetY:Zi,offsetR:mo,offsetB:mi,onAlign:Bt,stretch:gt,targetWidth:kt/Po,targetHeight:nn/it,mobile:Ye})))});return process.env.NODE_ENV!=="production"&&(u.displayName="Trigger"),u}CE(id);function SE(s){return s&&ce.isValidElement(s)&&s.type===ce.Fragment}const EE=(s,u,h)=>ce.isValidElement(s)?ce.cloneElement(s,typeof h=="function"?h(s.props||{}):h):u;function sd(s,u){return EE(s,s,u)}const PE=({children:s})=>{const{getPrefixCls:u}=ce.useContext(wr),h=u();return ce.isValidElement(s)?ce.createElement(el,{visible:!0,motionName:`${h}-fade`,motionAppear:!0,motionEnter:!0,motionLeave:!1,removeOnLeave:!1},({style:d,className:y})=>sd(s,k=>({className:ao(k.className,y),style:{...k.style,...d}}))):s},ad=[null,null];function kE(s){if(ad[0]!==s){const u={};Object.keys(s).forEach(h=>{u[h]={...s[h],dynamicInset:!1}}),ad[0]=s,ad[1]=u}return ad[1]}const IE=({children:s})=>{const u=h=>{const{id:d,builtinPlacements:y,popup:k}=h,M=typeof k=="function"?k():k,T=kE(y);return{...h,getPopupContainer:null,arrow:!1,popup:ce.createElement(PE,{key:d},M),builtinPlacements:T}};return ce.createElement(wE,{postTriggerProps:u},s)},hp=X.createContext(!1),ME=({children:s,disabled:u})=>{const h=X.useContext(hp);return X.createElement(hp.Provider,{value:u??h},s)},I_=hp,fp=X.createContext(void 0),TE=({children:s,size:u})=>{const h=X.useContext(fp);return X.createElement(fp.Provider,{value:u||h},s)},ld=fp;function LE(){const s=ce.useContext(I_),u=ce.useContext(ld);return{componentDisabled:s,componentSize:u}}function AE(s,u,h){var T;const d=Za("ConfigProvider"),y=s||{},k=y.inherit===!1||!u?{...Yf,hashed:(u==null?void 0:u.hashed)??Yf.hashed,cssVar:u==null?void 0:u.cssVar}:u,M=ce.useId();if(process.env.NODE_ENV!=="production"){const H=y.cssVar||k.cssVar,Z=!!(typeof y.cssVar=="object"&&((T=y.cssVar)!=null&&T.key)||M);process.env.NODE_ENV!=="production"&&d(!H||Z,"breaking","Missing key in `cssVar` config. Please upgrade to React 18 or set `cssVar.key` manually in each ConfigProvider inside `cssVar` enabled ConfigProvider.")}return Jh(()=>{var V;if(!s)return u;const H={...k.components};Object.keys(s.components||{}).forEach(K=>{H[K]={...H[K],...s.components[K]}});const Z=`css-var-${M.replace(/:/g,"")}`,v={prefix:h==null?void 0:h.prefixCls,...k.cssVar,...y.cssVar,key:((V=y.cssVar)==null?void 0:V.key)||Z};return{...k,...y,token:{...k.token,...y.token},components:H,cssVar:v}},[y,k],(H,Z)=>H.some((v,V)=>{const K=Z[V];return!BC(v,K,!0)}))}const pp=X.createContext(!0);process.env.NODE_ENV!=="production"&&(pp.displayName="MotionCacheContext");function OE(s){const u=X.useContext(pp),{children:h}=s,[,d]=yc(),{motion:y}=d,k=X.useRef(!1);return k.current||(k.current=u!==y),k.current?X.createElement(pp.Provider,{value:y},X.createElement(TS,{motion:y},h)):h}const M_=X.memo(({dropdownMatchSelectWidth:s})=>(Za("ConfigProvider").deprecated(s===void 0,"dropdownMatchSelectWidth","popupMatchSelectWidth"),null));process.env.NODE_ENV!=="production"&&(M_.displayName="PropWarning");const RE=process.env.NODE_ENV!=="production"?M_:()=>null,zE=({iconPrefixCls:s,csp:u})=>(bS(s,u),null);let mp=!1;process.env.NODE_ENV;const BE=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"],NE=s=>{},$E=s=>{const{children:u,csp:h,autoInsertSpaceInButton:d,alert:y,affix:k,anchor:M,form:T,locale:H,componentSize:Z,direction:v,space:V,splitter:K,virtual:pe,dropdownMatchSelectWidth:de,popupMatchSelectWidth:re,popupOverflow:ne,legacyLocale:ue,parentContext:ge,iconPrefixCls:ve,theme:xe,componentDisabled:Ie,segmented:Ue,statistic:Pe,spin:Oe,calendar:wt,carousel:dt,cascader:Be,collapse:et,typography:lt,checkbox:ot,descriptions:Pt,divider:Ut,drawer:gt,skeleton:Te,steps:mn,image:He,layout:Ot,list:Lt,mentions:dn,modal:Je,progress:Ct,result:bt,slider:Ye,breadcrumb:Rt,masonry:Ht,menu:On,pagination:Dn,input:ho,textArea:gn,otp:vt,empty:Tt,badge:vn,radio:En,rate:jn,ribbon:Zn,switch:eo,transfer:to,avatar:Ri,message:Jn,tag:Kn,table:ii,card:fo,cardMeta:hi,tabs:zi,timeline:Si,timePicker:yn,upload:xo,notification:Vn,tree:fi,colorPicker:no,datePicker:tn,rangePicker:Fn,flex:po,wave:Wn,dropdown:Wt,warning:pi,tour:Rn,tooltip:oo,popover:ri,popconfirm:In,qrcode:Mo,floatButton:or,floatButtonGroup:pr,variant:ir,inputNumber:Zi,treeSelect:mo,watermark:mi}=s,gi=X.useCallback((xt,kt)=>{const{prefixCls:qn}=s;if(kt)return kt;const nn=qn||ge.getPrefixCls("");return xt?`${nn}-${xt}`:nn},[ge.getPrefixCls,s.prefixCls]),Go=ve||ge.iconPrefixCls||df,Po=h||ge.csp,it=AE(xe,ge.theme,{prefixCls:gi("")});process.env.NODE_ENV!=="production"&&(mp=mp||!!it);const Ei={csp:Po,autoInsertSpaceInButton:d,alert:y,affix:k,anchor:M,locale:H||ue,direction:v,space:V,splitter:K,virtual:pe,popupMatchSelectWidth:re??de,popupOverflow:ne,getPrefixCls:gi,iconPrefixCls:Go,theme:it,segmented:Ue,statistic:Pe,spin:Oe,calendar:wt,carousel:dt,cascader:Be,collapse:et,typography:lt,checkbox:ot,descriptions:Pt,divider:Ut,drawer:gt,skeleton:Te,steps:mn,image:He,input:ho,textArea:gn,otp:vt,layout:Ot,list:Lt,mentions:dn,modal:Je,progress:Ct,result:bt,slider:Ye,breadcrumb:Rt,masonry:Ht,menu:On,pagination:Dn,empty:Tt,badge:vn,radio:En,rate:jn,ribbon:Zn,switch:eo,transfer:to,avatar:Ri,message:Jn,tag:Kn,table:ii,card:fo,cardMeta:hi,tabs:zi,timeline:Si,timePicker:yn,upload:xo,notification:Vn,tree:fi,colorPicker:no,datePicker:tn,rangePicker:Fn,flex:po,wave:Wn,dropdown:Wt,warning:pi,tour:Rn,tooltip:oo,popover:ri,popconfirm:In,qrcode:Mo,floatButton:or,floatButtonGroup:pr,variant:ir,inputNumber:Zi,treeSelect:mo,watermark:mi};process.env.NODE_ENV!=="production"&&Za("ConfigProvider")(!("autoInsertSpaceInButton"in s),"deprecated","`autoInsertSpaceInButton` is deprecated. Please use `{ button: { autoInsertSpace: boolean }}` instead.");const Fo={...ge};Object.keys(Ei).forEach(xt=>{Ei[xt]!==void 0&&(Fo[xt]=Ei[xt])}),BE.forEach(xt=>{const kt=s[xt];kt&&(Fo[xt]=kt)}),typeof d<"u"&&(Fo.button={autoInsertSpace:d,...Fo.button});const G=Jh(()=>Fo,Fo,(xt,kt)=>{const qn=Object.keys(xt),nn=Object.keys(kt);return qn.length!==nn.length||qn.some(Bn=>xt[Bn]!==kt[Bn])}),{layer:Ce}=X.useContext(sc),De=X.useMemo(()=>({prefixCls:Go,csp:Po,layer:Ce?"antd":void 0}),[Go,Po,Ce]);let Ke=X.createElement(X.Fragment,null,X.createElement(zE,{iconPrefixCls:Go,csp:Po}),X.createElement(RE,{dropdownMatchSelectWidth:de}),u);const Bt=X.useMemo(()=>{var xt,kt,qn,nn;return fC(((xt=nd.Form)==null?void 0:xt.defaultValidateMessages)||{},((qn=(kt=G.locale)==null?void 0:kt.Form)==null?void 0:qn.defaultValidateMessages)||{},((nn=G.form)==null?void 0:nn.validateMessages)||{},(T==null?void 0:T.validateMessages)||{})},[G,T==null?void 0:T.validateMessages]);Object.keys(Bt).length>0&&(Ke=X.createElement(tE.Provider,{value:Bt},Ke)),H&&(Ke=X.createElement(JS,{locale:H,_ANT_MARK__:e_},Ke)),(Go||Po)&&(Ke=X.createElement(ep.Provider,{value:De},Ke)),Z&&(Ke=X.createElement(TE,{size:Z},Ke)),Ke=X.createElement(OE,null,Ke),oo!=null&&oo.unique&&(Ke=X.createElement(IE,null,Ke));const _n=X.useMemo(()=>{const{algorithm:xt,token:kt,components:qn,cssVar:nn,...Bn}=it||{},Re=xt&&(!Array.isArray(xt)||xt.length>0)?yf(xt):wy,zo={};Object.entries(qn||{}).forEach(([To,vi])=>{const si={...vi};"algorithm"in si&&(si.algorithm===!0?si.theme=Re:(Array.isArray(si.algorithm)||typeof si.algorithm=="function")&&(si.theme=yf(si.algorithm)),delete si.algorithm),zo[To]=si});const Bi={...mc,...kt};return{...Bn,theme:Re,token:Bi,components:zo,override:{override:Bi,...zo},cssVar:nn}},[it]);return xe&&(Ke=X.createElement(Cy.Provider,{value:_n},Ke)),G.warning&&(Ke=X.createElement(uv.Provider,{value:G.warning},Ke)),Ie!==void 0&&(Ke=X.createElement(ME,{disabled:Ie},Ke)),X.createElement(wr.Provider,{value:G},Ke)},nl=s=>{const u=X.useContext(wr),h=X.useContext(Xy);return X.createElement($E,{parentContext:u,legacyLocale:h,...s})};nl.ConfigContext=wr,nl.SizeContext=ld,nl.config=NE,nl.useConfig=LE,Object.defineProperty(nl,"SizeContext",{get:()=>(process.env.NODE_ENV!=="production"&&tf(!1,"ConfigProvider","ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead."),ld)}),process.env.NODE_ENV!=="production"&&(nl.displayName="ConfigProvider");var DE={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"};const FE=DE;function gp(){return gp=Object.assign?Object.assign.bind():function(s){for(var u=1;u<arguments.length;u++){var h=arguments[u];for(var d in h)Object.prototype.hasOwnProperty.call(h,d)&&(s[d]=h[d])}return s},gp.apply(this,arguments)}const HE=(s,u)=>X.createElement(MS,gp({},s,{ref:u,icon:FE})),T_=X.forwardRef(HE);process.env.NODE_ENV!=="production"&&(T_.displayName="LoadingOutlined");const jE=T_,cd="__rc_react_root__";function ZE(s,u){const h=u[cd]||Iu(u);h.render(s),u[cd]=h}async function VE(s){return Promise.resolve().then(()=>{var u;(u=s[cd])==null||u.unmount(),delete s[cd]})}const WE=yS("Wave",s=>{const{componentCls:u,colorPrimary:h,antCls:d}=s,[,y]=Uu(d,"wave");return{[u]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:y("color",h),boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${s.motionEaseOutCirc}`,`opacity 2s ${s.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${s.motionDurationSlow} ${s.motionEaseInOut}`,`opacity ${s.motionDurationSlow} ${s.motionEaseInOut}`].join(",")}}}}}),L_=`${uf}-wave-target`;function A_(s){return s&&typeof s=="string"&&s!=="#fff"&&s!=="#ffffff"&&s!=="rgb(255, 255, 255)"&&s!=="rgba(255, 255, 255, 1)"&&!/rgba\((?:\d*, ){3}0\)/.test(s)&&s!=="transparent"&&s!=="canvastext"}function qE(s,u=null){const h=getComputedStyle(s),{borderTopColor:d,borderColor:y,backgroundColor:k}=h;return u&&A_(h[u])?h[u]:[d,y,k].find(A_)??null}function vp(s){return Number.isNaN(s)?0:s}const GE=s=>{const{className:u,target:h,component:d,colorSource:y}=s,k=X.useRef(null),{getPrefixCls:M}=X.useContext(wr),T=M(),[H]=Uu(T,"wave"),[Z,v]=X.useState(null),[V,K]=X.useState([]),[pe,de]=X.useState(0),[re,ne]=X.useState(0),[ue,ge]=X.useState(0),[ve,xe]=X.useState(0),[Ie,Ue]=X.useState(!1),Pe={left:pe,top:re,width:ue,height:ve,borderRadius:V.map(dt=>`${dt}px`).join(" ")};Z&&(Pe[H("color")]=Z);function Oe(){const dt=getComputedStyle(h);v(qE(h,y));const Be=dt.position==="static",{borderLeftWidth:et,borderTopWidth:lt}=dt;de(Be?h.offsetLeft:vp(-Number.parseFloat(et))),ne(Be?h.offsetTop:vp(-Number.parseFloat(lt))),ge(h.offsetWidth),xe(h.offsetHeight);const{borderTopLeftRadius:ot,borderTopRightRadius:Pt,borderBottomLeftRadius:Ut,borderBottomRightRadius:gt}=dt;K([ot,Pt,gt,Ut].map(Te=>vp(Number.parseFloat(Te))))}if(X.useEffect(()=>{if(h){const dt=xs(()=>{Oe(),Ue(!0)});let Be;return typeof ResizeObserver<"u"&&(Be=new ResizeObserver(Oe),Be.observe(h)),()=>{xs.cancel(dt),Be==null||Be.disconnect()}}},[h]),!Ie)return null;const wt=(d==="Checkbox"||d==="Radio")&&(h==null?void 0:h.classList.contains(L_));return X.createElement(el,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(dt,Be)=>{var et;if(Be.deadline||Be.propertyName==="opacity"){const lt=(et=k.current)==null?void 0:et.parentElement;VE(lt).then(()=>{lt==null||lt.remove()})}return!1}},({className:dt},Be)=>X.createElement("div",{ref:Tu(k,Be),className:ao(u,dt,{"wave-quick":wt}),style:Pe}))},UE=(s,u)=>{var y;const{component:h}=u;if(h==="Checkbox"&&!((y=s.querySelector("input"))!=null&&y.checked))return;const d=document.createElement("div");d.style.position="absolute",d.style.left="0px",d.style.top="0px",s==null||s.insertBefore(d,s==null?void 0:s.firstChild),ZE(X.createElement(GE,{...u,target:s}),d)},QE=(s,u,h,d)=>{const{wave:y}=X.useContext(wr),[,k,M]=yc(),T=Ro(v=>{const V=s.current;if(y!=null&&y.disabled||!V)return;const K=V.querySelector(`.${L_}`)||V,{showEffect:pe}=y||{};(pe||UE)(K,{className:u,token:k,component:h,event:v,hashId:M,colorSource:d})}),H=X.useRef(null);return X.useEffect(()=>()=>{xs.cancel(H.current)},[]),v=>{xs.cancel(H.current),H.current=xs(()=>{T(v)})}},O_=s=>{const{children:u,disabled:h,component:d,colorSource:y}=s,{getPrefixCls:k}=ce.useContext(wr),M=ce.useRef(null),T=k("wave"),H=WE(T),Z=QE(M,ao(T,H),d,y);if(ce.useEffect(()=>{const V=M.current;if(!V||V.nodeType!==window.Node.ELEMENT_NODE||h)return;const K=pe=>{!__(pe.target)||!V.getAttribute||V.getAttribute("disabled")||V.disabled||V.className.includes("disabled")&&!V.className.includes("disabled:")||V.getAttribute("aria-disabled")==="true"||V.className.includes("-leave")||Z(pe)};return V.addEventListener("click",K,!0),()=>{V.removeEventListener("click",K,!0)}},[h]),!ce.isValidElement(u))return u??null;const v=Au(u)?Tu(nc(u),M):M;return sd(u,{ref:v})};process.env.NODE_ENV!=="production"&&(O_.displayName="Wave");const JE=O_,KE=s=>{const u=ce.useContext(ld);return ce.useMemo(()=>s?typeof s=="string"?s??u:typeof s=="function"?s(u):u:u,[s,u])},YE=X.createContext(null),XE=(s,u)=>{const h=X.useContext(YE),d=X.useMemo(()=>{if(!h)return"";const{compactDirection:y,isFirstItem:k,isLastItem:M}=h,T=y==="vertical"?"-vertical-":"-";return ao(`${s}-compact${T}item`,{[`${s}-compact${T}first-item`]:k,[`${s}-compact${T}last-item`]:M,[`${s}-compact${T}item-rtl`]:u==="rtl"})},[s,u,h]);return{compactSize:h==null?void 0:h.compactSize,compactDirection:h==null?void 0:h.compactDirection,compactItemClassnames:d}},R_=X.createContext(void 0),eP=s=>{const{getPrefixCls:u,direction:h}=X.useContext(wr),{prefixCls:d,size:y,className:k,...M}=s,T=u("btn-group",d),[,,H]=yc(),Z=X.useMemo(()=>{switch(y){case"large":return"lg";case"small":return"sm";default:return""}},[y]);if(process.env.NODE_ENV!=="production"){const V=Za("Button.Group");V.deprecated(!1,"Button.Group","Space.Compact"),process.env.NODE_ENV!=="production"&&V(!y||["large","small","middle"].includes(y),"usage","Invalid prop `size`.")}const v=ao(T,{[`${T}-${Z}`]:Z,[`${T}-rtl`]:h==="rtl"},k,H);return X.createElement(R_.Provider,{value:y},X.createElement("div",{...M,className:v}))},z_=/^[\u4E00-\u9FA5]{2}$/,yp=z_.test.bind(z_);function B_(s){return typeof s=="string"}function ud(s){return s==="text"||s==="link"}function tP(s,u,h,d){if(!n_(s)||s==="")return;const y=u?" ":"";return typeof s!="string"&&typeof s!="number"&&B_(s.type)&&yp(s.props.children)?sd(s,k=>{const M=ao(k.className,d)||void 0,T={...h,...k.style};return{...k,children:k.children.split("").join(y),className:M,style:T}}):B_(s)?ce.createElement("span",{className:d,style:h},yp(s)?s.split("").join(y):s):SE(s)?ce.createElement("span",{className:d,style:h},s):sd(s,k=>({...k,className:ao(k.className,d)||void 0,style:{...k.style,...h}}))}function nP(s,u,h,d){let y=!1;const k=[];return ce.Children.forEach(s,M=>{const T=typeof M,H=T==="string"||T==="number";if(y&&H){const Z=k.length-1,v=k[Z];k[Z]=`${v}${M}`}else k.push(M);y=H}),ce.Children.map(k,M=>tP(M,u,h,d))}["default","primary","danger"].concat(cf(zf));const N_=ce.forwardRef((s,u)=>{const{className:h,style:d,children:y,prefixCls:k}=s,M=ao(`${k}-icon`,h);return ce.createElement("span",{ref:u,className:M,style:d},y)}),$_=ce.forwardRef((s,u)=>{const{prefixCls:h,className:d,style:y,iconClassName:k}=s,M=ao(`${h}-loading-icon`,d);return ce.createElement(N_,{prefixCls:h,className:M,style:y,ref:u},ce.createElement(jE,{className:k}))}),_p=()=>({width:0,opacity:0,transform:"scale(0)"}),bp=s=>({width:s.scrollWidth,opacity:1,transform:"scale(1)"}),oP=s=>{const{prefixCls:u,loading:h,existIcon:d,className:y,style:k,mount:M}=s,T=!!h;return d?ce.createElement($_,{prefixCls:u,className:y,style:k}):ce.createElement(el,{visible:T,motionName:`${u}-loading-icon-motion`,motionAppear:!M,motionEnter:!M,motionLeave:!M,removeOnLeave:!0,onAppearStart:_p,onAppearActive:bp,onEnterStart:_p,onEnterActive:bp,onLeaveStart:bp,onLeaveActive:_p},({className:H,style:Z},v)=>{const V={...k,...Z};return ce.createElement($_,{prefixCls:u,className:ao(y,H),style:V,ref:v})})},D_=(s,u)=>({[`> span, > ${s}`]:{"&:not(:last-child)":{[`&, & > ${s}`]:{"&:not(:disabled)":{borderInlineEndColor:u}}},"&:not(:first-child)":{[`&, & > ${s}`]:{"&:not(:disabled)":{borderInlineStartColor:u}}}}}),iP=s=>{const{componentCls:u,fontSize:h,lineWidth:d,groupBorderColor:y,colorErrorHover:k}=s;return{[`${u}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${u}`]:{"&:not(:last-child)":{[`&, & > ${u}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:s.calc(d).mul(-1).equal(),[`&, & > ${u}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[u]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${u}-icon-only`]:{fontSize:h}},D_(`${u}-primary`,y),D_(`${u}-danger`,k)]}},xp=s=>Math.round(Number(s||0)),rP=s=>{if(s instanceof oi)return s;if(s&&typeof s=="object"&&"h"in s&&"b"in s){const{b:u,...h}=s;return{...h,v:u}}return typeof s=="string"&&/hsb/.test(s)?s.replace(/hsb/,"hsv"):s};class Ps extends oi{constructor(u){super(rP(u))}toHsbString(){const u=this.toHsb(),h=xp(u.s*100),d=xp(u.b*100),y=xp(u.h),k=u.a,M=`hsb(${y}, ${h}%, ${d}%)`,T=`hsba(${y}, ${h}%, ${d}%, ${k.toFixed(k===0?0:2)})`;return k===1?M:T}toHsb(){const{v:u,...h}=this.toHsv();return{...h,b:u,a:this.a}}}const sP="rc-color-picker",ol=s=>s instanceof Ps?s:new Ps(s),aP=ol("#1677ff"),F_=s=>{const{offset:u,targetRef:h,containerRef:d,color:y,type:k}=s,{width:M,height:T}=d.current.getBoundingClientRect(),{width:H,height:Z}=h.current.getBoundingClientRect(),v=H/2,V=Z/2,K=(u.x+v)/M,pe=1-(u.y+V)/T,de=y.toHsb(),re=K,ne=(u.x+v)/M*360;if(k)switch(k){case"hue":return ol({...de,h:ne<=0?0:ne});case"alpha":return ol({...de,a:re<=0?0:re})}return ol({h:de.h,s:K<=0?0:K,b:pe>=1?1:pe,a:de.a})},H_=(s,u)=>{const h=s.toHsb();switch(u){case"hue":return{x:h.h/360*100,y:50};case"alpha":return{x:s.a*100,y:50};default:return{x:h.s*100,y:(1-h.b)*100}}},lP=({color:s,prefixCls:u,className:h,style:d,onClick:y})=>{const k=`${u}-color-block`;return ce.createElement("div",{className:ao(k,h),style:d,onClick:y},ce.createElement("div",{className:`${k}-inner`,style:{background:s}}))};function cP(s){const u="touches"in s?s.touches[0]:s,h=document.documentElement.scrollLeft||document.body.scrollLeft||window.pageXOffset,d=document.documentElement.scrollTop||document.body.scrollTop||window.pageYOffset;return{pageX:u.pageX-h,pageY:u.pageY-d}}function j_(s){const{targetRef:u,containerRef:h,direction:d,onDragChange:y,onDragChangeComplete:k,calculate:M,color:T,disabledDrag:H}=s,[Z,v]=ce.useState({x:0,y:0}),V=ce.useRef(null),K=ce.useRef(null);ce.useEffect(()=>{v(M())},[T]),ce.useEffect(()=>()=>{document.removeEventListener("mousemove",V.current),document.removeEventListener("mouseup",K.current),document.removeEventListener("touchmove",V.current),document.removeEventListener("touchend",K.current),V.current=null,K.current=null},[]);const pe=ue=>{const{pageX:ge,pageY:ve}=cP(ue),{x:xe,y:Ie,width:Ue,height:Pe}=h.current.getBoundingClientRect(),{width:Oe,height:wt}=u.current.getBoundingClientRect(),dt=Oe/2,Be=wt/2,et=Math.max(0,Math.min(ge-xe,Ue))-dt,lt=Math.max(0,Math.min(ve-Ie,Pe))-Be,ot={x:et,y:d==="x"?Z.y:lt};if(Oe===0&&wt===0||Oe!==wt)return!1;y==null||y(ot)},de=ue=>{ue.preventDefault(),pe(ue)},re=ue=>{ue.preventDefault(),document.removeEventListener("mousemove",V.current),document.removeEventListener("mouseup",K.current),document.removeEventListener("touchmove",V.current),document.removeEventListener("touchend",K.current),V.current=null,K.current=null,k==null||k()};return[Z,ue=>{document.removeEventListener("mousemove",V.current),document.removeEventListener("mouseup",K.current),!H&&(pe(ue),document.addEventListener("mousemove",de),document.addEventListener("mouseup",re),document.addEventListener("touchmove",de),document.addEventListener("touchend",re),V.current=de,K.current=re)}]}const Z_=({size:s="default",color:u,prefixCls:h})=>ce.createElement("div",{className:ao(`${h}-handler`,{[`${h}-handler-sm`]:s==="small"}),style:{backgroundColor:u}}),V_=({children:s,style:u,prefixCls:h})=>ce.createElement("div",{className:`${h}-palette`,style:{position:"relative",...u}},s),W_=ce.forwardRef((s,u)=>{const{children:h,x:d,y}=s;return ce.createElement("div",{ref:u,style:{position:"absolute",left:`${d}%`,top:`${y}%`,zIndex:1,transform:"translate(-50%, -50%)"}},h)}),uP=({color:s,onChange:u,prefixCls:h,onChangeComplete:d,disabled:y})=>{const k=ce.useRef(),M=ce.useRef(),T=ce.useRef(s),H=Ro(V=>{const K=F_({offset:V,targetRef:M,containerRef:k,color:s});T.current=K,u(K)}),[Z,v]=j_({color:s,containerRef:k,targetRef:M,calculate:()=>H_(s),onDragChange:H,onDragChangeComplete:()=>d==null?void 0:d(T.current),disabledDrag:y});return ce.createElement("div",{ref:k,className:`${h}-select`,onMouseDown:v,onTouchStart:v},ce.createElement(V_,{prefixCls:h},ce.createElement(W_,{x:Z.x,y:Z.y,ref:M},ce.createElement(Z_,{color:s.toRgbString(),prefixCls:h})),ce.createElement("div",{className:`${h}-saturation`,style:{backgroundColor:`hsl(${s.toHsb().h},100%, 50%)`,backgroundImage:"linear-gradient(0deg, #000, transparent),linear-gradient(90deg, #fff, hsla(0, 0%, 100%, 0))"}})))},dP=(s,u)=>{const[h,d]=ev(s,u);return[ce.useMemo(()=>ol(h),[h]),d]},hP=({colors:s,children:u,direction:h="to right",type:d,prefixCls:y})=>{const k=ce.useMemo(()=>s.map((M,T)=>{let H=ol(M);return d==="alpha"&&T===s.length-1&&(H=new Ps(H.setA(1))),H.toRgbString()}).join(","),[s,d]);return ce.createElement("div",{className:`${y}-gradient`,style:{position:"absolute",inset:0,background:`linear-gradient(${h}, ${k})`}},u)},fP=s=>{const{prefixCls:u,colors:h,disabled:d,onChange:y,onChangeComplete:k,color:M,type:T}=s,H=ce.useRef(null),Z=ce.useRef(null),v=ce.useRef(M),V=ue=>T==="hue"?ue.getHue():ue.a*100,K=Ro(ue=>{const ge=F_({offset:ue,targetRef:Z,containerRef:H,color:M,type:T});v.current=ge,y(V(ge))}),[pe,de]=j_({color:M,targetRef:Z,containerRef:H,calculate:()=>H_(M,T),onDragChange:K,onDragChangeComplete(){k(V(v.current))},direction:"x",disabledDrag:d}),re=ce.useMemo(()=>{if(T==="hue"){const ue=M.toHsb();return ue.s=1,ue.b=1,ue.a=1,new Ps(ue)}return M},[M,T]),ne=ce.useMemo(()=>h.map(ue=>`${ue.color} ${ue.percent}%`),[h]);return ce.createElement("div",{ref:H,className:ao(`${u}-slider`,`${u}-slider-${T}`),onMouseDown:de,onTouchStart:de},ce.createElement(V_,{prefixCls:u},ce.createElement(W_,{x:pe.x,y:pe.y,ref:Z},ce.createElement(Z_,{size:"small",color:re.toHexString(),prefixCls:u})),ce.createElement(hP,{colors:ne,type:T,prefixCls:u})))};function pP(s){return X.useMemo(()=>{const{slider:u}=s||{};return[u||fP]},[s])}function Sc(){return Sc=Object.assign?Object.assign.bind():function(s){for(var u=1;u<arguments.length;u++){var h=arguments[u];for(var d in h)Object.prototype.hasOwnProperty.call(h,d)&&(s[d]=h[d])}return s},Sc.apply(this,arguments)}const mP=[{color:"rgb(255, 0, 0)",percent:0},{color:"rgb(255, 255, 0)",percent:17},{color:"rgb(0, 255, 0)",percent:33},{color:"rgb(0, 255, 255)",percent:50},{color:"rgb(0, 0, 255)",percent:67},{color:"rgb(255, 0, 255)",percent:83},{color:"rgb(255, 0, 0)",percent:100}],gP=ce.forwardRef((s,u)=>{const{value:h,defaultValue:d,prefixCls:y=sP,onChange:k,onChangeComplete:M,className:T,style:H,panelRender:Z,disabledAlpha:v=!1,disabled:V=!1,components:K}=s,[pe]=pP(K),[de,re]=dP(d||aP,h),ne=ce.useMemo(()=>de.setA(1).toRgbString(),[de]),ue=(Be,et)=>{h||re(Be),k==null||k(Be,et)},ge=Be=>new Ps(de.setHue(Be)),ve=Be=>new Ps(de.setA(Be/100)),xe=Be=>{ue(ge(Be),{type:"hue",value:Be})},Ie=Be=>{ue(ve(Be),{type:"alpha",value:Be})},Ue=Be=>{M&&M(ge(Be))},Pe=Be=>{M&&M(ve(Be))},Oe=ao(`${y}-panel`,T,{[`${y}-panel-disabled`]:V}),wt={prefixCls:y,disabled:V,color:de},dt=ce.createElement(ce.Fragment,null,ce.createElement(uP,Sc({onChange:ue},wt,{onChangeComplete:M})),ce.createElement("div",{className:`${y}-slider-container`},ce.createElement("div",{className:ao(`${y}-slider-group`,{[`${y}-slider-group-disabled-alpha`]:v})},ce.createElement(pe,Sc({},wt,{type:"hue",colors:mP,min:0,max:359,value:de.getHue(),onChange:xe,onChangeComplete:Ue})),!v&&ce.createElement(pe,Sc({},wt,{type:"alpha",colors:[{percent:0,color:"rgba(255, 0, 4, 0)"},{percent:100,color:ne}],min:0,max:100,value:de.a*100,onChange:Ie,onChangeComplete:Pe}))),ce.createElement(lP,{color:de.toRgbString(),prefixCls:y})));return ce.createElement("div",{className:Oe,style:H,ref:u},typeof Z=="function"?Z(dt):dt)});process.env.NODE_ENV!=="production"&&(gP.displayName="ColorPicker");const vP=(s,u)=>(s==null?void 0:s.replace(/[^0-9a-f]/gi,"").slice(0,u?8:6))||"",yP=(s,u)=>s?vP(s,u):"";let _P=function(){function s(u){var d;if(hc(this,s),this.cleared=!1,u instanceof s){this.metaColor=u.metaColor.clone(),this.colors=(d=u.colors)==null?void 0:d.map(y=>({color:new s(y.color),percent:y.percent})),this.cleared=u.cleared;return}const h=Array.isArray(u);h&&u.length?(this.colors=u.map(({color:y,percent:k})=>({color:new s(y),percent:k})),this.metaColor=new Ps(this.colors[0].color.metaColor)):this.metaColor=new Ps(h?"":u),(!u||h&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return fc(s,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return yP(this.toHexString(),this.metaColor.a<1)}},{key:"toHexString",value:function(){return this.metaColor.toHexString()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}},{key:"isGradient",value:function(){return!!this.colors&&!this.cleared}},{key:"getColors",value:function(){return this.colors||[{color:this,percent:0}]}},{key:"toCssString",value:function(){const{colors:h}=this;return h?`linear-gradient(90deg, ${h.map(y=>`${y.color.toRgbString()} ${y.percent}%`).join(", ")})`:this.metaColor.toRgbString()}},{key:"equals",value:function(h){return!h||this.isGradient()!==h.isGradient()?!1:this.isGradient()?this.colors.length===h.colors.length&&this.colors.every((d,y)=>{const k=h.colors[y];return d.percent===k.percent&&d.color.equals(k.color)}):this.toHexString()===h.toHexString()}}])}();const bP=(s,u)=>{const{r:h,g:d,b:y,a:k}=s.toRgb(),M=new Ps(s.toRgbString()).onBackground(u).toHsv();return k<=.5?M.v>.5:h*.299+d*.587+y*.114>192},q_=s=>{const{paddingInline:u,onlyIconSize:h,borderColorDisabled:d}=s;return Ja(s,{buttonPaddingHorizontal:u,buttonPaddingVertical:0,buttonIconOnlyFontSize:h,colorBorderDisabled:d})},G_=s=>{const u=s.contentFontSize??s.fontSize,h=s.contentFontSizeSM??s.fontSize,d=s.contentFontSizeLG??s.fontSizeLG,y=s.contentLineHeight??Wu(u),k=s.contentLineHeightSM??Wu(h),M=s.contentLineHeightLG??Wu(d),T=bP(new _P(s.colorBgSolid),"#fff")?"#000":"#fff",H=zf.reduce((V,K)=>({...V,[`${K}ShadowColor`]:`0 ${Wa(s.controlOutlineWidth)} 0 ${vc(s[`${K}1`],s.colorBgContainer)}`}),{}),Z=s.colorBgContainerDisabled,v=s.colorBgContainerDisabled;return{...H,fontWeight:400,iconGap:s.marginXS,defaultShadow:`0 ${s.controlOutlineWidth}px 0 ${s.controlTmpOutline}`,primaryShadow:`0 ${s.controlOutlineWidth}px 0 ${s.controlOutline}`,dangerShadow:`0 ${s.controlOutlineWidth}px 0 ${s.colorErrorOutline}`,primaryColor:s.colorTextLightSolid,dangerColor:s.colorTextLightSolid,borderColorDisabled:s.colorBorderDisabled,defaultGhostColor:s.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:s.colorBgContainer,paddingInline:s.paddingContentHorizontal-s.lineWidth,paddingInlineLG:s.paddingContentHorizontal-s.lineWidth,paddingInlineSM:8-s.lineWidth,onlyIconSize:"inherit",onlyIconSizeSM:"inherit",onlyIconSizeLG:"inherit",groupBorderColor:s.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:s.colorText,textTextHoverColor:s.colorText,textTextActiveColor:s.colorText,textHoverBg:s.colorFillTertiary,defaultColor:s.colorText,defaultBg:s.colorBgContainer,defaultBorderColor:s.colorBorder,defaultBorderColorDisabled:s.colorBorder,defaultHoverBg:s.colorBgContainer,defaultHoverColor:s.colorPrimaryHover,defaultHoverBorderColor:s.colorPrimaryHover,defaultActiveBg:s.colorBgContainer,defaultActiveColor:s.colorPrimaryActive,defaultActiveBorderColor:s.colorPrimaryActive,solidTextColor:T,contentFontSize:u,contentFontSizeSM:h,contentFontSizeLG:d,contentLineHeight:y,contentLineHeightSM:k,contentLineHeightLG:M,paddingBlock:Math.max((s.controlHeight-u*y)/2-s.lineWidth,0),paddingBlockSM:Math.max((s.controlHeightSM-h*k)/2-s.lineWidth,0),paddingBlockLG:Math.max((s.controlHeightLG-d*M)/2-s.lineWidth,0),defaultBgDisabled:Z,dashedBgDisabled:v}},xP=s=>{const{componentCls:u,antCls:h}=s,[d,y]=Uu(h,"btn");return{[u]:[{[d("border-width")]:"1px",[d("border-color")]:"#000",[d("border-color-hover")]:y("border-color"),[d("border-color-active")]:y("border-color"),[d("border-color-disabled")]:y("border-color"),[d("border-style")]:"solid",[d("text-color")]:"#000",[d("text-color-hover")]:y("text-color"),[d("text-color-active")]:y("text-color"),[d("text-color-disabled")]:y("text-color"),[d("bg-color")]:"#ddd",[d("bg-color-hover")]:y("bg-color"),[d("bg-color-active")]:y("bg-color"),[d("bg-color-disabled")]:s.colorBgContainerDisabled,[d("bg-color-container")]:s.colorBgContainer,[d("shadow")]:"none"},{border:[y("border-width"),y("border-style"),y("border-color")].join(" "),color:y("text-color"),backgroundColor:y("bg-color"),[`&:not(:disabled):not(${u}-disabled)`]:{"&:hover":{border:[y("border-width"),y("border-style"),y("border-color-hover")].join(" "),color:y("text-color-hover"),backgroundColor:y("bg-color-hover")},"&:active":{border:[y("border-width"),y("border-style"),y("border-color-active")].join(" "),color:y("text-color-active"),backgroundColor:y("bg-color-active")}}},{[`&${u}-variant-solid`]:{[d("solid-bg-color")]:y("color-base"),[d("solid-bg-color-hover")]:y("color-hover"),[d("solid-bg-color-active")]:y("color-active"),[d("border-color")]:"transparent",[d("text-color")]:s.colorTextLightSolid,[d("bg-color")]:y("solid-bg-color"),[d("bg-color-hover")]:y("solid-bg-color-hover"),[d("bg-color-active")]:y("solid-bg-color-active"),boxShadow:y("shadow")},[`&${u}-variant-outlined, &${u}-variant-dashed`]:{[d("border-color")]:y("color-base"),[d("border-color-hover")]:y("color-hover"),[d("border-color-active")]:y("color-active"),[d("bg-color")]:y("bg-color-container"),[d("text-color")]:y("color-base"),[d("text-color-hover")]:y("color-hover"),[d("text-color-active")]:y("color-active"),boxShadow:y("shadow")},[`&${u}-variant-dashed`]:{[d("border-style")]:"dashed",[d("bg-color-disabled")]:s.dashedBgDisabled},[`&${u}-variant-filled`]:{[d("border-color")]:"transparent",[d("text-color")]:y("color-base"),[d("bg-color")]:y("color-light"),[d("bg-color-hover")]:y("color-light-hover"),[d("bg-color-active")]:y("color-light-active")},[`&${u}-variant-text, &${u}-variant-link`]:{[d("border-color")]:"transparent",[d("text-color")]:y("color-base"),[d("text-color-hover")]:y("color-hover"),[d("text-color-active")]:y("color-active"),[d("bg-color")]:"transparent",[d("bg-color-hover")]:"transparent",[d("bg-color-active")]:"transparent",[`&:disabled, &${s.componentCls}-disabled`]:{background:"transparent",borderColor:"transparent"}},[`&${u}-variant-text`]:{[d("bg-color-hover")]:y("color-light"),[d("bg-color-active")]:y("color-light-active")}},{[`&${u}-variant-link`]:{[d("color-base")]:s.colorLink,[d("color-hover")]:s.colorLinkHover,[d("color-active")]:s.colorLinkActive},[`&${u}-color-primary`]:{[d("color-base")]:s.colorPrimary,[d("color-hover")]:s.colorPrimaryHover,[d("color-active")]:s.colorPrimaryActive,[d("color-light")]:s.colorPrimaryBg,[d("color-light-hover")]:s.colorPrimaryBgHover,[d("color-light-active")]:s.colorPrimaryBorder,[d("shadow")]:s.primaryShadow,[`&${u}-variant-solid`]:{[d("text-color")]:s.primaryColor,[d("text-color-hover")]:y("text-color"),[d("text-color-active")]:y("text-color")}},[`&${u}-color-dangerous`]:{[d("color-base")]:s.colorError,[d("color-hover")]:s.colorErrorHover,[d("color-active")]:s.colorErrorActive,[d("color-light")]:s.colorErrorBg,[d("color-light-hover")]:s.colorErrorBgFilledHover,[d("color-light-active")]:s.colorErrorBgActive,[d("shadow")]:s.dangerShadow,[`&${u}-variant-solid`]:{[d("text-color")]:s.dangerColor,[d("text-color-hover")]:y("text-color"),[d("text-color-active")]:y("text-color")}},[`&${u}-color-default`]:{[d("solid-bg-color")]:s.colorBgSolid,[d("solid-bg-color-hover")]:s.colorBgSolidHover,[d("solid-bg-color-active")]:s.colorBgSolidActive,[d("color-base")]:s.defaultBorderColor,[d("color-hover")]:s.defaultHoverBorderColor,[d("color-active")]:s.defaultActiveBorderColor,[d("color-light")]:s.colorFillTertiary,[d("color-light-hover")]:s.colorFillSecondary,[d("color-light-active")]:s.colorFill,[d("text-color")]:s.defaultColor,[d("text-color-hover")]:s.defaultHoverColor,[d("text-color-active")]:s.defaultActiveColor,[d("shadow")]:s.defaultShadow,[`&${u}-variant-solid`]:{[d("text-color")]:s.solidTextColor,[d("text-color-hover")]:y("text-color"),[d("text-color-active")]:y("text-color")},[`&${u}-variant-filled, &${u}-variant-text`]:{[d("text-color-hover")]:y("text-color"),[d("text-color-active")]:y("text-color")},[`&${u}-variant-outlined, &${u}-variant-dashed`]:{[d("text-color")]:s.defaultColor,[d("text-color-hover")]:s.defaultHoverColor,[d("text-color-active")]:s.defaultActiveColor,[d("bg-color-container")]:s.defaultBg,[d("bg-color-hover")]:s.defaultHoverBg,[d("bg-color-active")]:s.defaultActiveBg},[`&${u}-variant-text`]:{[d("text-color")]:s.textTextColor,[d("text-color-hover")]:s.textTextHoverColor,[d("text-color-active")]:s.textTextActiveColor,[d("bg-color-hover")]:s.textHoverBg},[`&${u}-background-ghost`]:{[`&${u}-variant-outlined, &${u}-variant-dashed`]:{[d("text-color")]:s.defaultGhostColor,[d("border-color")]:s.defaultGhostBorderColor}}}},zf.map(k=>{const M=s[`${k}6`],T=s[`${k}1`],H=s[`${k}5`],Z=s[`${k}2`],v=s[`${k}3`],V=s[`${k}7`],K=s[`${k}ShadowColor`];return{[`&${u}-color-${k}`]:{[d("color-base")]:M,[d("color-hover")]:H,[d("color-active")]:V,[d("color-light")]:T,[d("color-light-hover")]:Z,[d("color-light-active")]:v,[d("shadow")]:K}}}),{[`&:disabled, &${s.componentCls}-disabled`]:{cursor:"not-allowed",borderColor:s.colorBorderDisabled,background:y("bg-color-disabled"),color:s.colorTextDisabled,boxShadow:"none"}},{[`&${u}-background-ghost`]:{[d("bg-color")]:"transparent",[d("shadow")]:"none"}}]}},wP=s=>{const{componentCls:u,iconCls:h,fontWeight:d,opacityLoading:y,motionDurationSlow:k,motionEaseInOut:M,iconGap:T,calc:H}=s;return{[u]:{outline:"none",position:"relative",display:"inline-flex",gap:T,alignItems:"center",justifyContent:"center",fontWeight:d,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",cursor:"pointer",transition:`all ${s.motionDurationMid} ${s.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation","&:disabled > *":{pointerEvents:"none"},[`${u}-icon > svg`]:Py(),"> a":{color:"currentColor"},"&:not(:disabled)":gS(s),[`&${u}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${u}-two-chinese-chars > *:not(${h})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&${u}-icon-only`]:{paddingInline:0,[`&${u}-compact-item`]:{flex:"none"}},[`&${u}-loading`]:{opacity:y,cursor:"default"},[`${u}-loading-icon`]:{transition:["width","opacity","margin"].map(Z=>`${Z} ${k} ${M}`).join(",")},[`&:not(${u}-icon-end)`]:{[`${u}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:H(T).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:H(T).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${u}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:H(T).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:H(T).mul(-1).equal()}}}}}},CP=s=>({minWidth:s.controlHeight,paddingInline:0,borderRadius:"50%"}),wp=(s,u="")=>{const{componentCls:h,controlHeight:d,fontSize:y,borderRadius:k,buttonPaddingHorizontal:M,iconCls:T,buttonPaddingVertical:H,buttonIconOnlyFontSize:Z}=s;return[{[u]:{fontSize:y,height:d,padding:`${Wa(H)} ${Wa(M)}`,borderRadius:k,[`&${h}-icon-only`]:{width:d,[T]:{fontSize:Z}}}},{[`${h}${h}-circle${u}`]:CP(s)},{[`${h}${h}-round${u}`]:{borderRadius:s.controlHeight,[`&:not(${h}-icon-only)`]:{paddingInline:s.buttonPaddingHorizontal}}}]},SP=s=>{const u=Ja(s,{fontSize:s.contentFontSize});return wp(u,s.componentCls)},EP=s=>{const u=Ja(s,{controlHeight:s.controlHeightSM,fontSize:s.contentFontSizeSM,padding:s.paddingXS,buttonPaddingHorizontal:s.paddingInlineSM,buttonPaddingVertical:0,borderRadius:s.borderRadiusSM,buttonIconOnlyFontSize:s.onlyIconSizeSM});return wp(u,`${s.componentCls}-sm`)},PP=s=>{const u=Ja(s,{controlHeight:s.controlHeightLG,fontSize:s.contentFontSizeLG,buttonPaddingHorizontal:s.paddingInlineLG,buttonPaddingVertical:0,borderRadius:s.borderRadiusLG,buttonIconOnlyFontSize:s.onlyIconSizeLG});return wp(u,`${s.componentCls}-lg`)},kP=s=>{const{componentCls:u}=s;return{[u]:{[`&${u}-block`]:{width:"100%"}}}},IP=vS("Button",s=>{const u=q_(s);return[wP(u),SP(u),EP(u),PP(u),kP(u),xP(u),iP(u)]},G_,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function MP(s,u,h,d){const{focusElCls:y,focus:k,borderElCls:M}=h,T=M?"> *":"",H=["hover",k?"focus":null,"active"].filter(Boolean).map(Z=>`&:${Z} ${T}`).join(",");return{[`&-item:not(${u}-last-item)`]:{marginInlineEnd:s.calc(s.lineWidth).mul(-1).equal()},[`&-item:not(${d}-status-success)`]:{zIndex:2},"&-item":{[H]:{zIndex:3},...y?{[`&${y}`]:{zIndex:3}}:{},[`&[disabled] ${T}`]:{zIndex:0}}}}function TP(s,u,h){const{borderElCls:d}=h,y=d?`> ${d}`:"";return{[`&-item:not(${u}-first-item):not(${u}-last-item) ${y}`]:{borderRadius:0},[`&-item:not(${u}-last-item)${u}-first-item`]:{[`& ${y}, &${s}-sm ${y}, &${s}-lg ${y}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${u}-first-item)${u}-last-item`]:{[`& ${y}, &${s}-sm ${y}, &${s}-lg ${y}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function LP(s,u={focus:!0}){const{componentCls:h}=s,{componentCls:d}=u,y=d||h,k=`${y}-compact`;return{[k]:{...MP(s,k,u,y),...TP(y,k,u)}}}function AP(s,u,h){return{[`&-item:not(${u}-last-item)`]:{marginBottom:s.calc(s.lineWidth).mul(-1).equal()},[`&-item:not(${h}-status-success)`]:{zIndex:2},"&-item":{"&:hover,&:focus,&:active":{zIndex:3},"&[disabled]":{zIndex:0}}}}function OP(s,u){return{[`&-item:not(${u}-first-item):not(${u}-last-item)`]:{borderRadius:0},[`&-item${u}-first-item:not(${u}-last-item)`]:{[`&, &${s}-sm, &${s}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${u}-last-item:not(${u}-first-item)`]:{[`&, &${s}-sm, &${s}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function RP(s){const u=`${s.componentCls}-compact-vertical`;return{[u]:{...AP(s,u,s.componentCls),...OP(s.componentCls,u)}}}const zP=s=>{const{antCls:u,componentCls:h,lineWidth:d,calc:y,colorBgContainer:k}=s,M=`${h}-variant-solid:not([disabled])`,T=y(d).mul(-1).equal(),[H,Z]=Uu(u,"btn"),v=V=>({[`${h}-compact${V?"-vertical":""}-item`]:{[H("compact-connect-border-color")]:Z("bg-color-hover"),[`&${M}`]:{transition:"none",[`& + ${M}:before`]:[{position:"absolute",backgroundColor:Z("compact-connect-border-color"),content:'""'},V?{top:T,insetInline:T,height:d}:{insetBlock:T,insetInlineStart:T,width:d}],"&:hover:before":{display:"none"}}}});return[v(),v(!0),{[`${M}${h}-color-default`]:{[H("compact-connect-border-color")]:`color-mix(in srgb, ${Z("bg-color-hover")} 75%, ${k})`}}]},BP=_S(["Button","compact"],s=>{const u=q_(s);return[LP(u),RP(u),zP(u)]},G_);function NP(s){if(typeof s=="object"&&s){let u=s==null?void 0:s.delay;return u=!Number.isNaN(u)&&typeof u=="number"?u:0,{loading:u<=0,delay:u}}return{loading:!!s,delay:0}}const $P={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["link","link"],text:["default","text"]},dd=ce.forwardRef((s,u)=>{const{_skipSemantic:h,loading:d=!1,prefixCls:y,color:k,variant:M,type:T,danger:H=!1,shape:Z,size:v,disabled:V,className:K,rootClassName:pe,children:de,icon:re,iconPosition:ne,iconPlacement:ue,ghost:ge=!1,block:ve=!1,htmlType:xe="button",classNames:Ie,styles:Ue,style:Pe,autoInsertSpace:Oe,autoFocus:wt,...dt}=s,Be=Ou(de),et=T||"default",{button:lt}=ce.useContext(wr),ot=Z||(lt==null?void 0:lt.shape)||"default",[Pt,Ut]=ce.useMemo(()=>{if(k&&M)return[k,M];if(T||H){const In=$P[et]||[];return H?["danger",In[1]]:In}return lt!=null&<.color&&(lt!=null&<.variant)?[lt.color,lt.variant]:["default","outlined"]},[k,M,T,H,lt==null?void 0:lt.color,lt==null?void 0:lt.variant,et]),[gt,Te]=ce.useMemo(()=>ge&&Ut==="solid"?[Pt,"outlined"]:[Pt,Ut],[Pt,Ut,ge]),mn=gt==="danger",He=mn?"dangerous":gt,{getPrefixCls:Ot,direction:Lt,autoInsertSpace:dn,className:Je,style:Ct,classNames:bt,styles:Ye}=LC("button"),Rt=Oe??dn??!0,Ht=Ot("btn",y),[On,Dn]=IP(Ht),ho=ce.useContext(I_),gn=V??ho,vt=ce.useContext(R_),Tt=ce.useMemo(()=>NP(d),[d]),[vn,En]=ce.useState(Tt.loading),[jn,Zn]=ce.useState(!1),eo=ce.useRef(null),to=Lu(u,eo),Ri=Be.length===1&&!re&&!ud(Te),Jn=ce.useRef(!0);ce.useEffect(()=>(Jn.current=!1,()=>{Jn.current=!0}),[]),tr(()=>{let In=null;Tt.delay>0?In=setTimeout(()=>{In=null,En(!0)},Tt.delay):En(Tt.loading);function Mo(){In&&(clearTimeout(In),In=null)}return Mo},[Tt.delay,Tt.loading]),ce.useEffect(()=>{if(!eo.current||!Rt)return;const In=eo.current.textContent||"";Ri&&yp(In)?jn||Zn(!0):jn&&Zn(!1)}),ce.useEffect(()=>{wt&&eo.current&&eo.current.focus()},[]);const Kn=ce.useCallback(In=>{var Mo;if(vn||gn){In.preventDefault();return}(Mo=s.onClick)==null||Mo.call(s,("href"in s,In))},[s.onClick,vn,gn]);if(process.env.NODE_ENV!=="production"){const In=Za("Button");process.env.NODE_ENV!=="production"&&In(!(typeof re=="string"&&re.length>2),"breaking",`\`icon\` is using ReactNode instead of string naming in v4. Please check \`${re}\` at https://ant.design/components/icon`),process.env.NODE_ENV!=="production"&&In(!(ge&&ud(Te)),"usage","`link` or `text` button can't be a `ghost` button."),In.deprecated(!ne,"iconPosition","iconPlacement")}const{compactSize:ii,compactItemClassnames:fo}=XE(Ht,Lt),hi={large:"lg",small:"sm",middle:void 0},zi=KE(In=>v??ii??vt??In),Si=zi?hi[zi]??"":"",yn=vn?"loading":re,xo=ue??ne??"start",Vn=yC(dt,["navigate"]),fi={...s,type:et,color:gt,variant:Te,danger:mn,shape:ot,size:zi,disabled:gn,loading:vn,iconPlacement:xo},[no,tn]=eE([h?void 0:bt,Ie],[h?void 0:Ye,Ue],{props:fi}),Fn=ao(Ht,On,Dn,{[`${Ht}-${ot}`]:ot!=="default"&&ot!=="square"&&ot,[`${Ht}-${et}`]:et,[`${Ht}-dangerous`]:H,[`${Ht}-color-${He}`]:He,[`${Ht}-variant-${Te}`]:Te,[`${Ht}-${Si}`]:Si,[`${Ht}-icon-only`]:!de&&de!==0&&!!yn,[`${Ht}-background-ghost`]:ge&&!ud(Te),[`${Ht}-loading`]:vn,[`${Ht}-two-chinese-chars`]:jn&&Rt&&!vn,[`${Ht}-block`]:ve,[`${Ht}-rtl`]:Lt==="rtl",[`${Ht}-icon-end`]:xo==="end"},fo,K,pe,Je,no.root),po={...tn.root,...Ct,...Pe},Wn={className:no.icon,style:tn.icon},Wt=In=>ce.createElement(N_,{prefixCls:Ht,...Wn},In),pi=ce.createElement(oP,{existIcon:!!re,prefixCls:Ht,loading:vn,mount:Jn.current,...Wn});let Rn;re&&!vn?Rn=Wt(re):d&&typeof d=="object"&&d.icon?Rn=Wt(d.icon):Rn=pi;const oo=n_(de)?nP(de,Ri&&Rt,tn.content,no.content):null;if(Vn.href!==void 0)return ce.createElement("a",{...Vn,className:ao(Fn,{[`${Ht}-disabled`]:gn}),href:gn?void 0:Vn.href,style:po,onClick:Kn,ref:to,tabIndex:gn?-1:0,"aria-disabled":gn},Rn,oo);let ri=ce.createElement("button",{...dt,type:xe,className:Fn,style:po,onClick:Kn,disabled:gn,ref:to},Rn,oo,fo&&ce.createElement(BP,{prefixCls:Ht}));return ud(Te)||(ri=ce.createElement(JE,{component:"Button",disabled:vn},ri)),ri});dd.Group=eP,dd.__ANT_BUTTON=!0,process.env.NODE_ENV!=="production"&&(dd.displayName="Button");const U_=dd;let DP=[{mapUrl:"http://36.110.12.229:9015/usmaps?service=WMTS&version=1.0.0&request=GetTile&tk=53a6c3d4-4821-418d-8403-27213bac20c6&Layer&Style=1&Format=image/png&TileMatrixSet=l&TileMatrix={z}&TileRow={y}&TileCol={x}",center:[30.5984,114.3118],zoomOffset:0,zoom:6,maxZoom:18,type:"4326",id:"imagesky4326",name:"天地图WMTS影像(4326)",checked:!1},{id:"1154781632637710336",name:"4490天地图影像注记",icon:"ca3fe93b207545558ba5c601a8d36c31",mapUrl:"http://10.17.17.243/tdtyxzj_c/{z}/{y}/{x}.png",type:"4326",centre:[23.641,112.983],bounds:null,zoom:7,zoomOffset:1,checked:!0}];function FP(){const[s,u]=ce.useState(!1),h=ce.useRef(null),d=()=>{if(!h.current)return;const k=Yg.marker([30.5984,114.3118],{pane:"leftPane"});h.current.addLeftLayers([k])},y=()=>{if(!h.current)return;const k=Yg.geoJSON({type:"Feature",geometry:{type:"Polygon",coordinates:[[[115.796,40.4934],[116.377,40.3945],[116.236,39.9146],[115.659,40.0129],[115.796,40.4934]]]}},{pane:"rightPane",style:{color:"red",weight:3,opacity:.5,fillColor:"red",fillOpacity:.2}}).addTo(h.current.getRightLayersGroup());h.current.getMapRef().fitBounds(k.getBounds())};return is.jsx(is.Fragment,{children:is.jsxs("div",{className:"app-container",children:[is.jsx("div",{className:"app-content",children:is.jsx(nC,{ref:h,leftLayers:[],rightLayers:[],rollIcon:Yw,normalIcon:Xw,baseMapSelectIcon:eC,baseMapList:DP,onIsRollMapChange:u})}),is.jsxs("div",{className:"app-right",children:[is.jsx(U_,{onClick:d,disabled:!s,children:"添加marker到左侧图层"}),is.jsx(U_,{onClick:y,disabled:!s,children:"添加geojson到右侧图层"})]})]})})}Iu(document.getElementById("root")).render(is.jsx(ce.StrictMode,{children:is.jsx(FP,{})}))});
|